configure 905 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dirsrv 1.0.
  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.0'
  375. PACKAGE_STRING='dirsrv 1.0'
  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 enable_presence_TRUE enable_presence_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir updatedir 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 with_selinux PACKAGE_BASE_VERSION SELINUX_TRUE SELINUX_FALSE OPENLDAP_TRUE OPENLDAP_FALSE nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib ldapsdk_libdir ldapsdk_bindir openldap_inc openldap_lib openldap_libdir openldap_bindir ol_libver 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 pcre_inc pcre_lib pcre_libdir 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.0 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.0:";;
  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. --enable-presence enable the presence plugin (default: no)
  937. Optional Packages:
  938. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  939. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  940. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  941. --with-pic try to use only PIC/non-PIC objects [default=use
  942. both]
  943. --with-tags[=TAGS]
  944. include additional configurations [automatic]
  945. --with-fhs Use FHS layout
  946. --with-fhs-opt Use FHS optional layout
  947. --with-instconfigdir=/path
  948. Base directory for instance specific writable
  949. configuration directories (default
  950. $sysconfdir/$PACKAGE_NAME)
  951. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  952. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  953. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  954. --with-nss=PATH Network Security Services (NSS) directory
  955. --with-nss-inc=PATH Network Security Services (NSS) include directory
  956. --with-nss-lib=PATH Network Security Services (NSS) library directory
  957. --with-openldap=PATH Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  958. --with-openldap-inc=PATH OpenLDAP SDK include directory
  959. --with-openldap-lib=PATH OpenLDAP SDK library directory
  960. --with-openldap-bin=PATH OpenLDAP SDK binary directory
  961. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  962. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  963. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  964. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  965. --with-db=PATH Berkeley DB directory
  966. --with-sasl=PATH Use sasl from supplied path
  967. --with-sasl-inc=PATH SASL include file directory
  968. --with-sasl-lib=PATH SASL library directory
  969. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  970. --with-svrcore-inc=PATH SVRCORE include file directory
  971. --with-svrcore-lib=PATH SVRCORE library directory
  972. --with-icu=PATH ICU directory
  973. --with-icu-inc=PATH ICU include directory
  974. --with-icu-lib=PATH ICU library directory
  975. --with-icu-bin=PATH ICU binary directory
  976. --with-netsnmp=PATH Net-SNMP directory
  977. --with-netsnmp-inc=PATH Net-SNMP include directory
  978. --with-netsnmp-lib=PATH Net-SNMP library directory
  979. --with-kerberos=PATH Use the kerberos API in the server directly - allows
  980. the server to authenticate directly with a keytab -
  981. otherwise, SASL/GSSAPI auth depends on underlying
  982. SASL libraries and external kinit with a keytab - if
  983. PATH is not specified, look for kerberos in the
  984. system locations. This will attempt to use
  985. krb5-config from the PATH to find the libs and
  986. include dirs - you can specify KRB5_CONFIG_BIN to
  987. specify a different filename or absolute path. If
  988. krb5-config does not work, this will attempt to look
  989. in various system directories
  990. --with-kerberos-inc=PATH
  991. Allows you to explicitly set the directory
  992. containing the kerberos include files - implies use
  993. of kerberos
  994. --with-kerberos-lib=PATH
  995. Allows you to explicitly set the directory
  996. containing the kerberos libraries - implies use of
  997. kerberos
  998. --with-pcre=PATH Perl Compatible Regular Expression directory
  999. --with-selinux Build SELinux policy
  1000. Some influential environment variables:
  1001. CXX C++ compiler command
  1002. CXXFLAGS C++ compiler flags
  1003. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1004. nonstandard directory <lib dir>
  1005. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1006. headers in a nonstandard directory <include dir>
  1007. CC C compiler command
  1008. CFLAGS C compiler flags
  1009. CCAS assembler compiler command (defaults to CC)
  1010. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1011. CPP C preprocessor
  1012. CXXCPP C++ preprocessor
  1013. F77 Fortran 77 compiler command
  1014. FFLAGS Fortran 77 compiler flags
  1015. Use these variables to override the choices made by `configure' or to help
  1016. it to find libraries and programs with nonstandard names/locations.
  1017. Report bugs to <http://bugzilla.redhat.com/>.
  1018. _ACEOF
  1019. fi
  1020. if test "$ac_init_help" = "recursive"; then
  1021. # If there are subdirs, report their specific --help.
  1022. ac_popdir=`pwd`
  1023. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1024. test -d $ac_dir || continue
  1025. ac_builddir=.
  1026. if test "$ac_dir" != .; then
  1027. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1028. # A "../" for each directory in $ac_dir_suffix.
  1029. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1030. else
  1031. ac_dir_suffix= ac_top_builddir=
  1032. fi
  1033. case $srcdir in
  1034. .) # No --srcdir option. We are building in place.
  1035. ac_srcdir=.
  1036. if test -z "$ac_top_builddir"; then
  1037. ac_top_srcdir=.
  1038. else
  1039. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1040. fi ;;
  1041. [\\/]* | ?:[\\/]* ) # Absolute path.
  1042. ac_srcdir=$srcdir$ac_dir_suffix;
  1043. ac_top_srcdir=$srcdir ;;
  1044. *) # Relative path.
  1045. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1046. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1047. esac
  1048. # Do not use `cd foo && pwd` to compute absolute paths, because
  1049. # the directories may not exist.
  1050. case `pwd` in
  1051. .) ac_abs_builddir="$ac_dir";;
  1052. *)
  1053. case "$ac_dir" in
  1054. .) ac_abs_builddir=`pwd`;;
  1055. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1056. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1057. esac;;
  1058. esac
  1059. case $ac_abs_builddir in
  1060. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1061. *)
  1062. case ${ac_top_builddir}. in
  1063. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1064. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1065. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1066. esac;;
  1067. esac
  1068. case $ac_abs_builddir in
  1069. .) ac_abs_srcdir=$ac_srcdir;;
  1070. *)
  1071. case $ac_srcdir in
  1072. .) ac_abs_srcdir=$ac_abs_builddir;;
  1073. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1074. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1075. esac;;
  1076. esac
  1077. case $ac_abs_builddir in
  1078. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1079. *)
  1080. case $ac_top_srcdir in
  1081. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1082. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1083. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1084. esac;;
  1085. esac
  1086. cd $ac_dir
  1087. # Check for guested configure; otherwise get Cygnus style configure.
  1088. if test -f $ac_srcdir/configure.gnu; then
  1089. echo
  1090. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1091. elif test -f $ac_srcdir/configure; then
  1092. echo
  1093. $SHELL $ac_srcdir/configure --help=recursive
  1094. elif test -f $ac_srcdir/configure.ac ||
  1095. test -f $ac_srcdir/configure.in; then
  1096. echo
  1097. $ac_configure --help
  1098. else
  1099. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1100. fi
  1101. cd $ac_popdir
  1102. done
  1103. fi
  1104. test -n "$ac_init_help" && exit 0
  1105. if $ac_init_version; then
  1106. cat <<\_ACEOF
  1107. dirsrv configure 1.0
  1108. generated by GNU Autoconf 2.59
  1109. Copyright (C) 2003 Free Software Foundation, Inc.
  1110. This configure script is free software; the Free Software Foundation
  1111. gives unlimited permission to copy, distribute and modify it.
  1112. _ACEOF
  1113. exit 0
  1114. fi
  1115. exec 5>config.log
  1116. cat >&5 <<_ACEOF
  1117. This file contains any messages produced by compilers while
  1118. running configure, to aid debugging if configure makes a mistake.
  1119. It was created by dirsrv $as_me 1.0, which was
  1120. generated by GNU Autoconf 2.59. Invocation command line was
  1121. $ $0 $@
  1122. _ACEOF
  1123. {
  1124. cat <<_ASUNAME
  1125. ## --------- ##
  1126. ## Platform. ##
  1127. ## --------- ##
  1128. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1129. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1130. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1131. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1132. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1133. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1134. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1135. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1136. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1137. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1138. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1139. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1140. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1141. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1142. _ASUNAME
  1143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1144. for as_dir in $PATH
  1145. do
  1146. IFS=$as_save_IFS
  1147. test -z "$as_dir" && as_dir=.
  1148. echo "PATH: $as_dir"
  1149. done
  1150. } >&5
  1151. cat >&5 <<_ACEOF
  1152. ## ----------- ##
  1153. ## Core tests. ##
  1154. ## ----------- ##
  1155. _ACEOF
  1156. # Keep a trace of the command line.
  1157. # Strip out --no-create and --no-recursion so they do not pile up.
  1158. # Strip out --silent because we don't want to record it for future runs.
  1159. # Also quote any args containing shell meta-characters.
  1160. # Make two passes to allow for proper duplicate-argument suppression.
  1161. ac_configure_args=
  1162. ac_configure_args0=
  1163. ac_configure_args1=
  1164. ac_sep=
  1165. ac_must_keep_next=false
  1166. for ac_pass in 1 2
  1167. do
  1168. for ac_arg
  1169. do
  1170. case $ac_arg in
  1171. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1172. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1173. | -silent | --silent | --silen | --sile | --sil)
  1174. continue ;;
  1175. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1176. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1177. esac
  1178. case $ac_pass in
  1179. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1180. 2)
  1181. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1182. if test $ac_must_keep_next = true; then
  1183. ac_must_keep_next=false # Got value, back to normal.
  1184. else
  1185. case $ac_arg in
  1186. *=* | --config-cache | -C | -disable-* | --disable-* \
  1187. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1188. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1189. | -with-* | --with-* | -without-* | --without-* | --x)
  1190. case "$ac_configure_args0 " in
  1191. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1192. esac
  1193. ;;
  1194. -* ) ac_must_keep_next=true ;;
  1195. esac
  1196. fi
  1197. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1198. # Get rid of the leading space.
  1199. ac_sep=" "
  1200. ;;
  1201. esac
  1202. done
  1203. done
  1204. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1205. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1206. # When interrupted or exit'd, cleanup temporary files, and complete
  1207. # config.log. We remove comments because anyway the quotes in there
  1208. # would cause problems or look ugly.
  1209. # WARNING: Be sure not to use single quotes in there, as some shells,
  1210. # such as our DU 5.0 friend, will then `close' the trap.
  1211. trap 'exit_status=$?
  1212. # Save into config.log some information that might help in debugging.
  1213. {
  1214. echo
  1215. cat <<\_ASBOX
  1216. ## ---------------- ##
  1217. ## Cache variables. ##
  1218. ## ---------------- ##
  1219. _ASBOX
  1220. echo
  1221. # The following way of writing the cache mishandles newlines in values,
  1222. {
  1223. (set) 2>&1 |
  1224. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1225. *ac_space=\ *)
  1226. sed -n \
  1227. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1228. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1229. ;;
  1230. *)
  1231. sed -n \
  1232. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1233. ;;
  1234. esac;
  1235. }
  1236. echo
  1237. cat <<\_ASBOX
  1238. ## ----------------- ##
  1239. ## Output variables. ##
  1240. ## ----------------- ##
  1241. _ASBOX
  1242. echo
  1243. for ac_var in $ac_subst_vars
  1244. do
  1245. eval ac_val=$`echo $ac_var`
  1246. echo "$ac_var='"'"'$ac_val'"'"'"
  1247. done | sort
  1248. echo
  1249. if test -n "$ac_subst_files"; then
  1250. cat <<\_ASBOX
  1251. ## ------------- ##
  1252. ## Output files. ##
  1253. ## ------------- ##
  1254. _ASBOX
  1255. echo
  1256. for ac_var in $ac_subst_files
  1257. do
  1258. eval ac_val=$`echo $ac_var`
  1259. echo "$ac_var='"'"'$ac_val'"'"'"
  1260. done | sort
  1261. echo
  1262. fi
  1263. if test -s confdefs.h; then
  1264. cat <<\_ASBOX
  1265. ## ----------- ##
  1266. ## confdefs.h. ##
  1267. ## ----------- ##
  1268. _ASBOX
  1269. echo
  1270. sed "/^$/d" confdefs.h | sort
  1271. echo
  1272. fi
  1273. test "$ac_signal" != 0 &&
  1274. echo "$as_me: caught signal $ac_signal"
  1275. echo "$as_me: exit $exit_status"
  1276. } >&5
  1277. rm -f core *.core &&
  1278. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1279. exit $exit_status
  1280. ' 0
  1281. for ac_signal in 1 2 13 15; do
  1282. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1283. done
  1284. ac_signal=0
  1285. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1286. rm -rf conftest* confdefs.h
  1287. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1288. echo >confdefs.h
  1289. # Predefined preprocessor variables.
  1290. cat >>confdefs.h <<_ACEOF
  1291. #define PACKAGE_NAME "$PACKAGE_NAME"
  1292. _ACEOF
  1293. cat >>confdefs.h <<_ACEOF
  1294. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1295. _ACEOF
  1296. cat >>confdefs.h <<_ACEOF
  1297. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1298. _ACEOF
  1299. cat >>confdefs.h <<_ACEOF
  1300. #define PACKAGE_STRING "$PACKAGE_STRING"
  1301. _ACEOF
  1302. cat >>confdefs.h <<_ACEOF
  1303. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1304. _ACEOF
  1305. # Let the site file select an alternate cache file if it wants to.
  1306. # Prefer explicitly selected file to automatically selected ones.
  1307. if test -z "$CONFIG_SITE"; then
  1308. if test "x$prefix" != xNONE; then
  1309. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1310. else
  1311. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1312. fi
  1313. fi
  1314. for ac_site_file in $CONFIG_SITE; do
  1315. if test -r "$ac_site_file"; then
  1316. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1317. echo "$as_me: loading site script $ac_site_file" >&6;}
  1318. sed 's/^/| /' "$ac_site_file" >&5
  1319. . "$ac_site_file"
  1320. fi
  1321. done
  1322. if test -r "$cache_file"; then
  1323. # Some versions of bash will fail to source /dev/null (special
  1324. # files actually), so we avoid doing that.
  1325. if test -f "$cache_file"; then
  1326. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1327. echo "$as_me: loading cache $cache_file" >&6;}
  1328. case $cache_file in
  1329. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1330. *) . ./$cache_file;;
  1331. esac
  1332. fi
  1333. else
  1334. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1335. echo "$as_me: creating cache $cache_file" >&6;}
  1336. >$cache_file
  1337. fi
  1338. # Check that the precious variables saved in the cache have kept the same
  1339. # value.
  1340. ac_cache_corrupted=false
  1341. for ac_var in `(set) 2>&1 |
  1342. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1343. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1344. eval ac_new_set=\$ac_env_${ac_var}_set
  1345. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1346. eval ac_new_val="\$ac_env_${ac_var}_value"
  1347. case $ac_old_set,$ac_new_set in
  1348. set,)
  1349. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1350. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1351. ac_cache_corrupted=: ;;
  1352. ,set)
  1353. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1354. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1355. ac_cache_corrupted=: ;;
  1356. ,);;
  1357. *)
  1358. if test "x$ac_old_val" != "x$ac_new_val"; then
  1359. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1360. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1361. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1362. echo "$as_me: former value: $ac_old_val" >&2;}
  1363. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1364. echo "$as_me: current value: $ac_new_val" >&2;}
  1365. ac_cache_corrupted=:
  1366. fi;;
  1367. esac
  1368. # Pass precious variables to config.status.
  1369. if test "$ac_new_set" = set; then
  1370. case $ac_new_val in
  1371. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1372. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1373. *) ac_arg=$ac_var=$ac_new_val ;;
  1374. esac
  1375. case " $ac_configure_args " in
  1376. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1377. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1378. esac
  1379. fi
  1380. done
  1381. if $ac_cache_corrupted; then
  1382. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1383. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1384. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1385. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1386. { (exit 1); exit 1; }; }
  1387. fi
  1388. ac_ext=c
  1389. ac_cpp='$CPP $CPPFLAGS'
  1390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1393. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1394. ac_config_headers="$ac_config_headers config.h"
  1395. # include the version information
  1396. . $srcdir/VERSION.sh
  1397. { echo "$as_me:$LINENO: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  1398. echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  1399. cat >>confdefs.h <<_ACEOF
  1400. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  1401. _ACEOF
  1402. cat >>confdefs.h <<_ACEOF
  1403. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1404. _ACEOF
  1405. cat >>confdefs.h <<_ACEOF
  1406. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1407. _ACEOF
  1408. cat >>confdefs.h <<_ACEOF
  1409. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  1410. _ACEOF
  1411. am__api_version="1.9"
  1412. ac_aux_dir=
  1413. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1414. if test -f $ac_dir/install-sh; then
  1415. ac_aux_dir=$ac_dir
  1416. ac_install_sh="$ac_aux_dir/install-sh -c"
  1417. break
  1418. elif test -f $ac_dir/install.sh; then
  1419. ac_aux_dir=$ac_dir
  1420. ac_install_sh="$ac_aux_dir/install.sh -c"
  1421. break
  1422. elif test -f $ac_dir/shtool; then
  1423. ac_aux_dir=$ac_dir
  1424. ac_install_sh="$ac_aux_dir/shtool install -c"
  1425. break
  1426. fi
  1427. done
  1428. if test -z "$ac_aux_dir"; then
  1429. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1430. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1431. { (exit 1); exit 1; }; }
  1432. fi
  1433. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1434. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1435. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1436. # Find a good install program. We prefer a C program (faster),
  1437. # so one script is as good as another. But avoid the broken or
  1438. # incompatible versions:
  1439. # SysV /etc/install, /usr/sbin/install
  1440. # SunOS /usr/etc/install
  1441. # IRIX /sbin/install
  1442. # AIX /bin/install
  1443. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1444. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1445. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1446. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1447. # OS/2's system install, which has a completely different semantic
  1448. # ./install, which can be erroneously created by make from ./install.sh.
  1449. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1450. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1451. if test -z "$INSTALL"; then
  1452. if test "${ac_cv_path_install+set}" = set; then
  1453. echo $ECHO_N "(cached) $ECHO_C" >&6
  1454. else
  1455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1456. for as_dir in $PATH
  1457. do
  1458. IFS=$as_save_IFS
  1459. test -z "$as_dir" && as_dir=.
  1460. # Account for people who put trailing slashes in PATH elements.
  1461. case $as_dir/ in
  1462. ./ | .// | /cC/* | \
  1463. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1464. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1465. /usr/ucb/* ) ;;
  1466. *)
  1467. # OSF1 and SCO ODT 3.0 have their own names for install.
  1468. # Don't use installbsd from OSF since it installs stuff as root
  1469. # by default.
  1470. for ac_prog in ginstall scoinst install; do
  1471. for ac_exec_ext in '' $ac_executable_extensions; do
  1472. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1473. if test $ac_prog = install &&
  1474. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1475. # AIX install. It has an incompatible calling convention.
  1476. :
  1477. elif test $ac_prog = install &&
  1478. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1479. # program-specific install script used by HP pwplus--don't use.
  1480. :
  1481. else
  1482. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1483. break 3
  1484. fi
  1485. fi
  1486. done
  1487. done
  1488. ;;
  1489. esac
  1490. done
  1491. fi
  1492. if test "${ac_cv_path_install+set}" = set; then
  1493. INSTALL=$ac_cv_path_install
  1494. else
  1495. # As a last resort, use the slow shell script. We don't cache a
  1496. # path for INSTALL within a source directory, because that will
  1497. # break other packages using the cache if that directory is
  1498. # removed, or if the path is relative.
  1499. INSTALL=$ac_install_sh
  1500. fi
  1501. fi
  1502. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1503. echo "${ECHO_T}$INSTALL" >&6
  1504. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1505. # It thinks the first close brace ends the variable substitution.
  1506. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1507. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1508. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1509. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1510. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1511. # Just in case
  1512. sleep 1
  1513. echo timestamp > conftest.file
  1514. # Do `set' in a subshell so we don't clobber the current shell's
  1515. # arguments. Must try -L first in case configure is actually a
  1516. # symlink; some systems play weird games with the mod time of symlinks
  1517. # (eg FreeBSD returns the mod time of the symlink's containing
  1518. # directory).
  1519. if (
  1520. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1521. if test "$*" = "X"; then
  1522. # -L didn't work.
  1523. set X `ls -t $srcdir/configure conftest.file`
  1524. fi
  1525. rm -f conftest.file
  1526. if test "$*" != "X $srcdir/configure conftest.file" \
  1527. && test "$*" != "X conftest.file $srcdir/configure"; then
  1528. # If neither matched, then we have a broken ls. This can happen
  1529. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1530. # broken ls alias from the environment. This has actually
  1531. # happened. Such a system could not be considered "sane".
  1532. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1533. alias in your environment" >&5
  1534. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1535. alias in your environment" >&2;}
  1536. { (exit 1); exit 1; }; }
  1537. fi
  1538. test "$2" = conftest.file
  1539. )
  1540. then
  1541. # Ok.
  1542. :
  1543. else
  1544. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1545. Check your system clock" >&5
  1546. echo "$as_me: error: newly created file is older than distributed files!
  1547. Check your system clock" >&2;}
  1548. { (exit 1); exit 1; }; }
  1549. fi
  1550. echo "$as_me:$LINENO: result: yes" >&5
  1551. echo "${ECHO_T}yes" >&6
  1552. test "$program_prefix" != NONE &&
  1553. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1554. # Use a double $ so make ignores it.
  1555. test "$program_suffix" != NONE &&
  1556. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1557. # Double any \ or $. echo might interpret backslashes.
  1558. # By default was `s,x,x', remove it if useless.
  1559. cat <<\_ACEOF >conftest.sed
  1560. s/[\\$]/&&/g;s/;s,x,x,$//
  1561. _ACEOF
  1562. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1563. rm conftest.sed
  1564. # expand $ac_aux_dir to an absolute path
  1565. am_aux_dir=`cd $ac_aux_dir && pwd`
  1566. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1567. # Use eval to expand $SHELL
  1568. if eval "$MISSING --run true"; then
  1569. am_missing_run="$MISSING --run "
  1570. else
  1571. am_missing_run=
  1572. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1573. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1574. fi
  1575. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1576. # We used to keeping the `.' as first argument, in order to
  1577. # allow $(mkdir_p) to be used without argument. As in
  1578. # $(mkdir_p) $(somedir)
  1579. # where $(somedir) is conditionally defined. However this is wrong
  1580. # for two reasons:
  1581. # 1. if the package is installed by a user who cannot write `.'
  1582. # make install will fail,
  1583. # 2. the above comment should most certainly read
  1584. # $(mkdir_p) $(DESTDIR)$(somedir)
  1585. # so it does not work when $(somedir) is undefined and
  1586. # $(DESTDIR) is not.
  1587. # To support the latter case, we have to write
  1588. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1589. # so the `.' trick is pointless.
  1590. mkdir_p='mkdir -p --'
  1591. else
  1592. # On NextStep and OpenStep, the `mkdir' command does not
  1593. # recognize any option. It will interpret all options as
  1594. # directories to create, and then abort because `.' already
  1595. # exists.
  1596. for d in ./-p ./--version;
  1597. do
  1598. test -d $d && rmdir $d
  1599. done
  1600. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1601. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1602. mkdir_p='$(mkinstalldirs)'
  1603. else
  1604. mkdir_p='$(install_sh) -d'
  1605. fi
  1606. fi
  1607. for ac_prog in gawk mawk nawk awk
  1608. do
  1609. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1610. set dummy $ac_prog; ac_word=$2
  1611. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1612. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1613. if test "${ac_cv_prog_AWK+set}" = set; then
  1614. echo $ECHO_N "(cached) $ECHO_C" >&6
  1615. else
  1616. if test -n "$AWK"; then
  1617. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1618. else
  1619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1620. for as_dir in $PATH
  1621. do
  1622. IFS=$as_save_IFS
  1623. test -z "$as_dir" && as_dir=.
  1624. for ac_exec_ext in '' $ac_executable_extensions; do
  1625. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1626. ac_cv_prog_AWK="$ac_prog"
  1627. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1628. break 2
  1629. fi
  1630. done
  1631. done
  1632. fi
  1633. fi
  1634. AWK=$ac_cv_prog_AWK
  1635. if test -n "$AWK"; then
  1636. echo "$as_me:$LINENO: result: $AWK" >&5
  1637. echo "${ECHO_T}$AWK" >&6
  1638. else
  1639. echo "$as_me:$LINENO: result: no" >&5
  1640. echo "${ECHO_T}no" >&6
  1641. fi
  1642. test -n "$AWK" && break
  1643. done
  1644. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1645. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1646. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1647. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1648. echo $ECHO_N "(cached) $ECHO_C" >&6
  1649. else
  1650. cat >conftest.make <<\_ACEOF
  1651. all:
  1652. @echo 'ac_maketemp="$(MAKE)"'
  1653. _ACEOF
  1654. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1655. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1656. if test -n "$ac_maketemp"; then
  1657. eval ac_cv_prog_make_${ac_make}_set=yes
  1658. else
  1659. eval ac_cv_prog_make_${ac_make}_set=no
  1660. fi
  1661. rm -f conftest.make
  1662. fi
  1663. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1664. echo "$as_me:$LINENO: result: yes" >&5
  1665. echo "${ECHO_T}yes" >&6
  1666. SET_MAKE=
  1667. else
  1668. echo "$as_me:$LINENO: result: no" >&5
  1669. echo "${ECHO_T}no" >&6
  1670. SET_MAKE="MAKE=${MAKE-make}"
  1671. fi
  1672. rm -rf .tst 2>/dev/null
  1673. mkdir .tst 2>/dev/null
  1674. if test -d .tst; then
  1675. am__leading_dot=.
  1676. else
  1677. am__leading_dot=_
  1678. fi
  1679. rmdir .tst 2>/dev/null
  1680. # test to see if srcdir already configured
  1681. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1682. test -f $srcdir/config.status; then
  1683. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1684. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1685. { (exit 1); exit 1; }; }
  1686. fi
  1687. # test whether we have cygpath
  1688. if test -z "$CYGPATH_W"; then
  1689. if (cygpath --version) >/dev/null 2>/dev/null; then
  1690. CYGPATH_W='cygpath -w'
  1691. else
  1692. CYGPATH_W=echo
  1693. fi
  1694. fi
  1695. # Define the identity of the package.
  1696. PACKAGE='dirsrv'
  1697. VERSION='1.0'
  1698. # Some tools Automake needs.
  1699. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1700. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1701. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1702. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1703. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1704. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1705. # Installed binaries are usually stripped using `strip' when the user
  1706. # run `make install-strip'. However `strip' might not be the right
  1707. # tool to use in cross-compilation environments, therefore Automake
  1708. # will honor the `STRIP' environment variable to overrule this program.
  1709. if test "$cross_compiling" != no; then
  1710. if test -n "$ac_tool_prefix"; then
  1711. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1712. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1713. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1714. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_STRIP+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. if test -n "$STRIP"; then
  1719. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1720. else
  1721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1722. for as_dir in $PATH
  1723. do
  1724. IFS=$as_save_IFS
  1725. test -z "$as_dir" && as_dir=.
  1726. for ac_exec_ext in '' $ac_executable_extensions; do
  1727. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1728. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1729. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1730. break 2
  1731. fi
  1732. done
  1733. done
  1734. fi
  1735. fi
  1736. STRIP=$ac_cv_prog_STRIP
  1737. if test -n "$STRIP"; then
  1738. echo "$as_me:$LINENO: result: $STRIP" >&5
  1739. echo "${ECHO_T}$STRIP" >&6
  1740. else
  1741. echo "$as_me:$LINENO: result: no" >&5
  1742. echo "${ECHO_T}no" >&6
  1743. fi
  1744. fi
  1745. if test -z "$ac_cv_prog_STRIP"; then
  1746. ac_ct_STRIP=$STRIP
  1747. # Extract the first word of "strip", so it can be a program name with args.
  1748. set dummy strip; ac_word=$2
  1749. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1750. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1751. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1752. echo $ECHO_N "(cached) $ECHO_C" >&6
  1753. else
  1754. if test -n "$ac_ct_STRIP"; then
  1755. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1756. else
  1757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1758. for as_dir in $PATH
  1759. do
  1760. IFS=$as_save_IFS
  1761. test -z "$as_dir" && as_dir=.
  1762. for ac_exec_ext in '' $ac_executable_extensions; do
  1763. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1764. ac_cv_prog_ac_ct_STRIP="strip"
  1765. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1766. break 2
  1767. fi
  1768. done
  1769. done
  1770. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1771. fi
  1772. fi
  1773. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1774. if test -n "$ac_ct_STRIP"; then
  1775. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1776. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1777. else
  1778. echo "$as_me:$LINENO: result: no" >&5
  1779. echo "${ECHO_T}no" >&6
  1780. fi
  1781. STRIP=$ac_ct_STRIP
  1782. else
  1783. STRIP="$ac_cv_prog_STRIP"
  1784. fi
  1785. fi
  1786. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1787. # We need awk for the "check" target. The system "awk" is bad on
  1788. # some platforms.
  1789. # Always define AMTAR for backward compatibility.
  1790. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1791. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1792. # define these for automake distdir
  1793. VERSION=$PACKAGE_VERSION
  1794. PACKAGE=$PACKAGE_TARNAME
  1795. cat >>confdefs.h <<_ACEOF
  1796. #define VERSION "$VERSION"
  1797. _ACEOF
  1798. cat >>confdefs.h <<_ACEOF
  1799. #define PACKAGE "$PACKAGE"
  1800. _ACEOF
  1801. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1802. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1803. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1804. if test "${enable_maintainer_mode+set}" = set; then
  1805. enableval="$enable_maintainer_mode"
  1806. USE_MAINTAINER_MODE=$enableval
  1807. else
  1808. USE_MAINTAINER_MODE=no
  1809. fi;
  1810. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1811. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1812. if test $USE_MAINTAINER_MODE = yes; then
  1813. MAINTAINER_MODE_TRUE=
  1814. MAINTAINER_MODE_FALSE='#'
  1815. else
  1816. MAINTAINER_MODE_TRUE='#'
  1817. MAINTAINER_MODE_FALSE=
  1818. fi
  1819. MAINT=$MAINTAINER_MODE_TRUE
  1820. # Make sure we can run config.sub.
  1821. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1822. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1823. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1824. { (exit 1); exit 1; }; }
  1825. echo "$as_me:$LINENO: checking build system type" >&5
  1826. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1827. if test "${ac_cv_build+set}" = set; then
  1828. echo $ECHO_N "(cached) $ECHO_C" >&6
  1829. else
  1830. ac_cv_build_alias=$build_alias
  1831. test -z "$ac_cv_build_alias" &&
  1832. ac_cv_build_alias=`$ac_config_guess`
  1833. test -z "$ac_cv_build_alias" &&
  1834. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1835. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1836. { (exit 1); exit 1; }; }
  1837. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1838. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1839. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1840. { (exit 1); exit 1; }; }
  1841. fi
  1842. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1843. echo "${ECHO_T}$ac_cv_build" >&6
  1844. build=$ac_cv_build
  1845. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1846. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1847. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1848. echo "$as_me:$LINENO: checking host system type" >&5
  1849. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1850. if test "${ac_cv_host+set}" = set; then
  1851. echo $ECHO_N "(cached) $ECHO_C" >&6
  1852. else
  1853. ac_cv_host_alias=$host_alias
  1854. test -z "$ac_cv_host_alias" &&
  1855. ac_cv_host_alias=$ac_cv_build_alias
  1856. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1857. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1858. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1859. { (exit 1); exit 1; }; }
  1860. fi
  1861. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1862. echo "${ECHO_T}$ac_cv_host" >&6
  1863. host=$ac_cv_host
  1864. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1865. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1866. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1867. # Checks for programs.
  1868. ac_ext=cc
  1869. ac_cpp='$CXXCPP $CPPFLAGS'
  1870. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1871. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1872. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1873. if test -n "$ac_tool_prefix"; then
  1874. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1875. do
  1876. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1877. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1878. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1879. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1880. if test "${ac_cv_prog_CXX+set}" = set; then
  1881. echo $ECHO_N "(cached) $ECHO_C" >&6
  1882. else
  1883. if test -n "$CXX"; then
  1884. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1885. else
  1886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1887. for as_dir in $PATH
  1888. do
  1889. IFS=$as_save_IFS
  1890. test -z "$as_dir" && as_dir=.
  1891. for ac_exec_ext in '' $ac_executable_extensions; do
  1892. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1893. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1894. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1895. break 2
  1896. fi
  1897. done
  1898. done
  1899. fi
  1900. fi
  1901. CXX=$ac_cv_prog_CXX
  1902. if test -n "$CXX"; then
  1903. echo "$as_me:$LINENO: result: $CXX" >&5
  1904. echo "${ECHO_T}$CXX" >&6
  1905. else
  1906. echo "$as_me:$LINENO: result: no" >&5
  1907. echo "${ECHO_T}no" >&6
  1908. fi
  1909. test -n "$CXX" && break
  1910. done
  1911. fi
  1912. if test -z "$CXX"; then
  1913. ac_ct_CXX=$CXX
  1914. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1915. do
  1916. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1917. set dummy $ac_prog; ac_word=$2
  1918. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1919. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1920. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1921. echo $ECHO_N "(cached) $ECHO_C" >&6
  1922. else
  1923. if test -n "$ac_ct_CXX"; then
  1924. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1925. else
  1926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1927. for as_dir in $PATH
  1928. do
  1929. IFS=$as_save_IFS
  1930. test -z "$as_dir" && as_dir=.
  1931. for ac_exec_ext in '' $ac_executable_extensions; do
  1932. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1933. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1934. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1935. break 2
  1936. fi
  1937. done
  1938. done
  1939. fi
  1940. fi
  1941. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1942. if test -n "$ac_ct_CXX"; then
  1943. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1944. echo "${ECHO_T}$ac_ct_CXX" >&6
  1945. else
  1946. echo "$as_me:$LINENO: result: no" >&5
  1947. echo "${ECHO_T}no" >&6
  1948. fi
  1949. test -n "$ac_ct_CXX" && break
  1950. done
  1951. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1952. CXX=$ac_ct_CXX
  1953. fi
  1954. # Provide some information about the compiler.
  1955. echo "$as_me:$LINENO:" \
  1956. "checking for C++ compiler version" >&5
  1957. ac_compiler=`set X $ac_compile; echo $2`
  1958. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1959. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1960. ac_status=$?
  1961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1962. (exit $ac_status); }
  1963. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1964. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1965. ac_status=$?
  1966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1967. (exit $ac_status); }
  1968. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1969. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1970. ac_status=$?
  1971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1972. (exit $ac_status); }
  1973. cat >conftest.$ac_ext <<_ACEOF
  1974. /* confdefs.h. */
  1975. _ACEOF
  1976. cat confdefs.h >>conftest.$ac_ext
  1977. cat >>conftest.$ac_ext <<_ACEOF
  1978. /* end confdefs.h. */
  1979. int
  1980. main ()
  1981. {
  1982. ;
  1983. return 0;
  1984. }
  1985. _ACEOF
  1986. ac_clean_files_save=$ac_clean_files
  1987. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1988. # Try to create an executable without -o first, disregard a.out.
  1989. # It will help us diagnose broken compilers, and finding out an intuition
  1990. # of exeext.
  1991. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1992. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1993. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1994. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1995. (eval $ac_link_default) 2>&5
  1996. ac_status=$?
  1997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1998. (exit $ac_status); }; then
  1999. # Find the output, starting from the most likely. This scheme is
  2000. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2001. # resort.
  2002. # Be careful to initialize this variable, since it used to be cached.
  2003. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2004. ac_cv_exeext=
  2005. # b.out is created by i960 compilers.
  2006. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2007. do
  2008. test -f "$ac_file" || continue
  2009. case $ac_file in
  2010. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2011. ;;
  2012. conftest.$ac_ext )
  2013. # This is the source file.
  2014. ;;
  2015. [ab].out )
  2016. # We found the default executable, but exeext='' is most
  2017. # certainly right.
  2018. break;;
  2019. *.* )
  2020. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2021. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2022. # but it would be cool to find out if it's true. Does anybody
  2023. # maintain Libtool? --akim.
  2024. export ac_cv_exeext
  2025. break;;
  2026. * )
  2027. break;;
  2028. esac
  2029. done
  2030. else
  2031. echo "$as_me: failed program was:" >&5
  2032. sed 's/^/| /' conftest.$ac_ext >&5
  2033. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2034. See \`config.log' for more details." >&5
  2035. echo "$as_me: error: C++ compiler cannot create executables
  2036. See \`config.log' for more details." >&2;}
  2037. { (exit 77); exit 77; }; }
  2038. fi
  2039. ac_exeext=$ac_cv_exeext
  2040. echo "$as_me:$LINENO: result: $ac_file" >&5
  2041. echo "${ECHO_T}$ac_file" >&6
  2042. # Check the compiler produces executables we can run. If not, either
  2043. # the compiler is broken, or we cross compile.
  2044. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2045. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  2046. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2047. # If not cross compiling, check that we can run a simple program.
  2048. if test "$cross_compiling" != yes; then
  2049. if { ac_try='./$ac_file'
  2050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2051. (eval $ac_try) 2>&5
  2052. ac_status=$?
  2053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2054. (exit $ac_status); }; }; then
  2055. cross_compiling=no
  2056. else
  2057. if test "$cross_compiling" = maybe; then
  2058. cross_compiling=yes
  2059. else
  2060. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2061. If you meant to cross compile, use \`--host'.
  2062. See \`config.log' for more details." >&5
  2063. echo "$as_me: error: cannot run C++ compiled programs.
  2064. If you meant to cross compile, use \`--host'.
  2065. See \`config.log' for more details." >&2;}
  2066. { (exit 1); exit 1; }; }
  2067. fi
  2068. fi
  2069. fi
  2070. echo "$as_me:$LINENO: result: yes" >&5
  2071. echo "${ECHO_T}yes" >&6
  2072. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2073. ac_clean_files=$ac_clean_files_save
  2074. # Check the compiler produces executables we can run. If not, either
  2075. # the compiler is broken, or we cross compile.
  2076. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2077. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2078. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2079. echo "${ECHO_T}$cross_compiling" >&6
  2080. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2081. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2082. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2083. (eval $ac_link) 2>&5
  2084. ac_status=$?
  2085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2086. (exit $ac_status); }; then
  2087. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2088. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2089. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2090. # `rm'.
  2091. for ac_file in conftest.exe conftest conftest.*; do
  2092. test -f "$ac_file" || continue
  2093. case $ac_file in
  2094. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2095. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2096. export ac_cv_exeext
  2097. break;;
  2098. * ) break;;
  2099. esac
  2100. done
  2101. else
  2102. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2103. See \`config.log' for more details." >&5
  2104. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2105. See \`config.log' for more details." >&2;}
  2106. { (exit 1); exit 1; }; }
  2107. fi
  2108. rm -f conftest$ac_cv_exeext
  2109. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2110. echo "${ECHO_T}$ac_cv_exeext" >&6
  2111. rm -f conftest.$ac_ext
  2112. EXEEXT=$ac_cv_exeext
  2113. ac_exeext=$EXEEXT
  2114. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2115. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2116. if test "${ac_cv_objext+set}" = set; then
  2117. echo $ECHO_N "(cached) $ECHO_C" >&6
  2118. else
  2119. cat >conftest.$ac_ext <<_ACEOF
  2120. /* confdefs.h. */
  2121. _ACEOF
  2122. cat confdefs.h >>conftest.$ac_ext
  2123. cat >>conftest.$ac_ext <<_ACEOF
  2124. /* end confdefs.h. */
  2125. int
  2126. main ()
  2127. {
  2128. ;
  2129. return 0;
  2130. }
  2131. _ACEOF
  2132. rm -f conftest.o conftest.obj
  2133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2134. (eval $ac_compile) 2>&5
  2135. ac_status=$?
  2136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. (exit $ac_status); }; then
  2138. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2139. case $ac_file in
  2140. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2141. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2142. break;;
  2143. esac
  2144. done
  2145. else
  2146. echo "$as_me: failed program was:" >&5
  2147. sed 's/^/| /' conftest.$ac_ext >&5
  2148. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2149. See \`config.log' for more details." >&5
  2150. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2151. See \`config.log' for more details." >&2;}
  2152. { (exit 1); exit 1; }; }
  2153. fi
  2154. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2155. fi
  2156. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2157. echo "${ECHO_T}$ac_cv_objext" >&6
  2158. OBJEXT=$ac_cv_objext
  2159. ac_objext=$OBJEXT
  2160. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2161. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2162. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2163. echo $ECHO_N "(cached) $ECHO_C" >&6
  2164. else
  2165. cat >conftest.$ac_ext <<_ACEOF
  2166. /* confdefs.h. */
  2167. _ACEOF
  2168. cat confdefs.h >>conftest.$ac_ext
  2169. cat >>conftest.$ac_ext <<_ACEOF
  2170. /* end confdefs.h. */
  2171. int
  2172. main ()
  2173. {
  2174. #ifndef __GNUC__
  2175. choke me
  2176. #endif
  2177. ;
  2178. return 0;
  2179. }
  2180. _ACEOF
  2181. rm -f conftest.$ac_objext
  2182. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2183. (eval $ac_compile) 2>conftest.er1
  2184. ac_status=$?
  2185. grep -v '^ *+' conftest.er1 >conftest.err
  2186. rm -f conftest.er1
  2187. cat conftest.err >&5
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); } &&
  2190. { ac_try='test -z "$ac_cxx_werror_flag"
  2191. || test ! -s conftest.err'
  2192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2193. (eval $ac_try) 2>&5
  2194. ac_status=$?
  2195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2196. (exit $ac_status); }; } &&
  2197. { ac_try='test -s conftest.$ac_objext'
  2198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2199. (eval $ac_try) 2>&5
  2200. ac_status=$?
  2201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2202. (exit $ac_status); }; }; then
  2203. ac_compiler_gnu=yes
  2204. else
  2205. echo "$as_me: failed program was:" >&5
  2206. sed 's/^/| /' conftest.$ac_ext >&5
  2207. ac_compiler_gnu=no
  2208. fi
  2209. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2210. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2211. fi
  2212. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2213. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2214. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2215. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2216. ac_save_CXXFLAGS=$CXXFLAGS
  2217. CXXFLAGS="-g"
  2218. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2219. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2220. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2221. echo $ECHO_N "(cached) $ECHO_C" >&6
  2222. else
  2223. cat >conftest.$ac_ext <<_ACEOF
  2224. /* confdefs.h. */
  2225. _ACEOF
  2226. cat confdefs.h >>conftest.$ac_ext
  2227. cat >>conftest.$ac_ext <<_ACEOF
  2228. /* end confdefs.h. */
  2229. int
  2230. main ()
  2231. {
  2232. ;
  2233. return 0;
  2234. }
  2235. _ACEOF
  2236. rm -f conftest.$ac_objext
  2237. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2238. (eval $ac_compile) 2>conftest.er1
  2239. ac_status=$?
  2240. grep -v '^ *+' conftest.er1 >conftest.err
  2241. rm -f conftest.er1
  2242. cat conftest.err >&5
  2243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2244. (exit $ac_status); } &&
  2245. { ac_try='test -z "$ac_cxx_werror_flag"
  2246. || test ! -s conftest.err'
  2247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2248. (eval $ac_try) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }; } &&
  2252. { ac_try='test -s conftest.$ac_objext'
  2253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2254. (eval $ac_try) 2>&5
  2255. ac_status=$?
  2256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2257. (exit $ac_status); }; }; then
  2258. ac_cv_prog_cxx_g=yes
  2259. else
  2260. echo "$as_me: failed program was:" >&5
  2261. sed 's/^/| /' conftest.$ac_ext >&5
  2262. ac_cv_prog_cxx_g=no
  2263. fi
  2264. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2265. fi
  2266. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2267. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2268. if test "$ac_test_CXXFLAGS" = set; then
  2269. CXXFLAGS=$ac_save_CXXFLAGS
  2270. elif test $ac_cv_prog_cxx_g = yes; then
  2271. if test "$GXX" = yes; then
  2272. CXXFLAGS="-g -O2"
  2273. else
  2274. CXXFLAGS="-g"
  2275. fi
  2276. else
  2277. if test "$GXX" = yes; then
  2278. CXXFLAGS="-O2"
  2279. else
  2280. CXXFLAGS=
  2281. fi
  2282. fi
  2283. for ac_declaration in \
  2284. '' \
  2285. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2286. 'extern "C" void std::exit (int); using std::exit;' \
  2287. 'extern "C" void exit (int) throw ();' \
  2288. 'extern "C" void exit (int);' \
  2289. 'void exit (int);'
  2290. do
  2291. cat >conftest.$ac_ext <<_ACEOF
  2292. /* confdefs.h. */
  2293. _ACEOF
  2294. cat confdefs.h >>conftest.$ac_ext
  2295. cat >>conftest.$ac_ext <<_ACEOF
  2296. /* end confdefs.h. */
  2297. $ac_declaration
  2298. #include <stdlib.h>
  2299. int
  2300. main ()
  2301. {
  2302. exit (42);
  2303. ;
  2304. return 0;
  2305. }
  2306. _ACEOF
  2307. rm -f conftest.$ac_objext
  2308. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2309. (eval $ac_compile) 2>conftest.er1
  2310. ac_status=$?
  2311. grep -v '^ *+' conftest.er1 >conftest.err
  2312. rm -f conftest.er1
  2313. cat conftest.err >&5
  2314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2315. (exit $ac_status); } &&
  2316. { ac_try='test -z "$ac_cxx_werror_flag"
  2317. || test ! -s conftest.err'
  2318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2319. (eval $ac_try) 2>&5
  2320. ac_status=$?
  2321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2322. (exit $ac_status); }; } &&
  2323. { ac_try='test -s conftest.$ac_objext'
  2324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2325. (eval $ac_try) 2>&5
  2326. ac_status=$?
  2327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2328. (exit $ac_status); }; }; then
  2329. :
  2330. else
  2331. echo "$as_me: failed program was:" >&5
  2332. sed 's/^/| /' conftest.$ac_ext >&5
  2333. continue
  2334. fi
  2335. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2336. cat >conftest.$ac_ext <<_ACEOF
  2337. /* confdefs.h. */
  2338. _ACEOF
  2339. cat confdefs.h >>conftest.$ac_ext
  2340. cat >>conftest.$ac_ext <<_ACEOF
  2341. /* end confdefs.h. */
  2342. $ac_declaration
  2343. int
  2344. main ()
  2345. {
  2346. exit (42);
  2347. ;
  2348. return 0;
  2349. }
  2350. _ACEOF
  2351. rm -f conftest.$ac_objext
  2352. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2353. (eval $ac_compile) 2>conftest.er1
  2354. ac_status=$?
  2355. grep -v '^ *+' conftest.er1 >conftest.err
  2356. rm -f conftest.er1
  2357. cat conftest.err >&5
  2358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2359. (exit $ac_status); } &&
  2360. { ac_try='test -z "$ac_cxx_werror_flag"
  2361. || test ! -s conftest.err'
  2362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2363. (eval $ac_try) 2>&5
  2364. ac_status=$?
  2365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2366. (exit $ac_status); }; } &&
  2367. { ac_try='test -s conftest.$ac_objext'
  2368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2369. (eval $ac_try) 2>&5
  2370. ac_status=$?
  2371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2372. (exit $ac_status); }; }; then
  2373. break
  2374. else
  2375. echo "$as_me: failed program was:" >&5
  2376. sed 's/^/| /' conftest.$ac_ext >&5
  2377. fi
  2378. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2379. done
  2380. rm -f conftest*
  2381. if test -n "$ac_declaration"; then
  2382. echo '#ifdef __cplusplus' >>confdefs.h
  2383. echo $ac_declaration >>confdefs.h
  2384. echo '#endif' >>confdefs.h
  2385. fi
  2386. ac_ext=c
  2387. ac_cpp='$CPP $CPPFLAGS'
  2388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2391. DEPDIR="${am__leading_dot}deps"
  2392. ac_config_commands="$ac_config_commands depfiles"
  2393. am_make=${MAKE-make}
  2394. cat > confinc << 'END'
  2395. am__doit:
  2396. @echo done
  2397. .PHONY: am__doit
  2398. END
  2399. # If we don't find an include directive, just comment out the code.
  2400. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2401. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2402. am__include="#"
  2403. am__quote=
  2404. _am_result=none
  2405. # First try GNU make style include.
  2406. echo "include confinc" > confmf
  2407. # We grep out `Entering directory' and `Leaving directory'
  2408. # messages which can occur if `w' ends up in MAKEFLAGS.
  2409. # In particular we don't look at `^make:' because GNU make might
  2410. # be invoked under some other name (usually "gmake"), in which
  2411. # case it prints its new name instead of `make'.
  2412. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2413. am__include=include
  2414. am__quote=
  2415. _am_result=GNU
  2416. fi
  2417. # Now try BSD make style include.
  2418. if test "$am__include" = "#"; then
  2419. echo '.include "confinc"' > confmf
  2420. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2421. am__include=.include
  2422. am__quote="\""
  2423. _am_result=BSD
  2424. fi
  2425. fi
  2426. echo "$as_me:$LINENO: result: $_am_result" >&5
  2427. echo "${ECHO_T}$_am_result" >&6
  2428. rm -f confinc confmf
  2429. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2430. if test "${enable_dependency_tracking+set}" = set; then
  2431. enableval="$enable_dependency_tracking"
  2432. fi;
  2433. if test "x$enable_dependency_tracking" != xno; then
  2434. am_depcomp="$ac_aux_dir/depcomp"
  2435. AMDEPBACKSLASH='\'
  2436. fi
  2437. if test "x$enable_dependency_tracking" != xno; then
  2438. AMDEP_TRUE=
  2439. AMDEP_FALSE='#'
  2440. else
  2441. AMDEP_TRUE='#'
  2442. AMDEP_FALSE=
  2443. fi
  2444. depcc="$CXX" am_compiler_list=
  2445. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2446. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2447. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2448. echo $ECHO_N "(cached) $ECHO_C" >&6
  2449. else
  2450. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2451. # We make a subdir and do the tests there. Otherwise we can end up
  2452. # making bogus files that we don't know about and never remove. For
  2453. # instance it was reported that on HP-UX the gcc test will end up
  2454. # making a dummy file named `D' -- because `-MD' means `put the output
  2455. # in D'.
  2456. mkdir conftest.dir
  2457. # Copy depcomp to subdir because otherwise we won't find it if we're
  2458. # using a relative directory.
  2459. cp "$am_depcomp" conftest.dir
  2460. cd conftest.dir
  2461. # We will build objects and dependencies in a subdirectory because
  2462. # it helps to detect inapplicable dependency modes. For instance
  2463. # both Tru64's cc and ICC support -MD to output dependencies as a
  2464. # side effect of compilation, but ICC will put the dependencies in
  2465. # the current directory while Tru64 will put them in the object
  2466. # directory.
  2467. mkdir sub
  2468. am_cv_CXX_dependencies_compiler_type=none
  2469. if test "$am_compiler_list" = ""; then
  2470. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2471. fi
  2472. for depmode in $am_compiler_list; do
  2473. # Setup a source with many dependencies, because some compilers
  2474. # like to wrap large dependency lists on column 80 (with \), and
  2475. # we should not choose a depcomp mode which is confused by this.
  2476. #
  2477. # We need to recreate these files for each test, as the compiler may
  2478. # overwrite some of them when testing with obscure command lines.
  2479. # This happens at least with the AIX C compiler.
  2480. : > sub/conftest.c
  2481. for i in 1 2 3 4 5 6; do
  2482. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2483. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2484. # Solaris 8's {/usr,}/bin/sh.
  2485. touch sub/conftst$i.h
  2486. done
  2487. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2488. case $depmode in
  2489. nosideeffect)
  2490. # after this tag, mechanisms are not by side-effect, so they'll
  2491. # only be used when explicitly requested
  2492. if test "x$enable_dependency_tracking" = xyes; then
  2493. continue
  2494. else
  2495. break
  2496. fi
  2497. ;;
  2498. none) break ;;
  2499. esac
  2500. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2501. # mode. It turns out that the SunPro C++ compiler does not properly
  2502. # handle `-M -o', and we need to detect this.
  2503. if depmode=$depmode \
  2504. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2505. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2506. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2507. >/dev/null 2>conftest.err &&
  2508. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2509. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2510. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2511. # icc doesn't choke on unknown options, it will just issue warnings
  2512. # or remarks (even with -Werror). So we grep stderr for any message
  2513. # that says an option was ignored or not supported.
  2514. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2515. # icc: Command line warning: ignoring option '-M'; no argument required
  2516. # The diagnosis changed in icc 8.0:
  2517. # icc: Command line remark: option '-MP' not supported
  2518. if (grep 'ignoring option' conftest.err ||
  2519. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2520. am_cv_CXX_dependencies_compiler_type=$depmode
  2521. break
  2522. fi
  2523. fi
  2524. done
  2525. cd ..
  2526. rm -rf conftest.dir
  2527. else
  2528. am_cv_CXX_dependencies_compiler_type=none
  2529. fi
  2530. fi
  2531. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2532. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2533. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2534. if
  2535. test "x$enable_dependency_tracking" != xno \
  2536. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2537. am__fastdepCXX_TRUE=
  2538. am__fastdepCXX_FALSE='#'
  2539. else
  2540. am__fastdepCXX_TRUE='#'
  2541. am__fastdepCXX_FALSE=
  2542. fi
  2543. ac_ext=c
  2544. ac_cpp='$CPP $CPPFLAGS'
  2545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2548. if test -n "$ac_tool_prefix"; then
  2549. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2550. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2551. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2552. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2553. if test "${ac_cv_prog_CC+set}" = set; then
  2554. echo $ECHO_N "(cached) $ECHO_C" >&6
  2555. else
  2556. if test -n "$CC"; then
  2557. ac_cv_prog_CC="$CC" # Let the user override the test.
  2558. else
  2559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560. for as_dir in $PATH
  2561. do
  2562. IFS=$as_save_IFS
  2563. test -z "$as_dir" && as_dir=.
  2564. for ac_exec_ext in '' $ac_executable_extensions; do
  2565. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2566. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2567. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2568. break 2
  2569. fi
  2570. done
  2571. done
  2572. fi
  2573. fi
  2574. CC=$ac_cv_prog_CC
  2575. if test -n "$CC"; then
  2576. echo "$as_me:$LINENO: result: $CC" >&5
  2577. echo "${ECHO_T}$CC" >&6
  2578. else
  2579. echo "$as_me:$LINENO: result: no" >&5
  2580. echo "${ECHO_T}no" >&6
  2581. fi
  2582. fi
  2583. if test -z "$ac_cv_prog_CC"; then
  2584. ac_ct_CC=$CC
  2585. # Extract the first word of "gcc", so it can be a program name with args.
  2586. set dummy gcc; ac_word=$2
  2587. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2588. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2589. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2590. echo $ECHO_N "(cached) $ECHO_C" >&6
  2591. else
  2592. if test -n "$ac_ct_CC"; then
  2593. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2594. else
  2595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2596. for as_dir in $PATH
  2597. do
  2598. IFS=$as_save_IFS
  2599. test -z "$as_dir" && as_dir=.
  2600. for ac_exec_ext in '' $ac_executable_extensions; do
  2601. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2602. ac_cv_prog_ac_ct_CC="gcc"
  2603. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2604. break 2
  2605. fi
  2606. done
  2607. done
  2608. fi
  2609. fi
  2610. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2611. if test -n "$ac_ct_CC"; then
  2612. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2613. echo "${ECHO_T}$ac_ct_CC" >&6
  2614. else
  2615. echo "$as_me:$LINENO: result: no" >&5
  2616. echo "${ECHO_T}no" >&6
  2617. fi
  2618. CC=$ac_ct_CC
  2619. else
  2620. CC="$ac_cv_prog_CC"
  2621. fi
  2622. if test -z "$CC"; then
  2623. if test -n "$ac_tool_prefix"; then
  2624. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2625. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2626. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2627. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2628. if test "${ac_cv_prog_CC+set}" = set; then
  2629. echo $ECHO_N "(cached) $ECHO_C" >&6
  2630. else
  2631. if test -n "$CC"; then
  2632. ac_cv_prog_CC="$CC" # Let the user override the test.
  2633. else
  2634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2635. for as_dir in $PATH
  2636. do
  2637. IFS=$as_save_IFS
  2638. test -z "$as_dir" && as_dir=.
  2639. for ac_exec_ext in '' $ac_executable_extensions; do
  2640. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2641. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2642. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2643. break 2
  2644. fi
  2645. done
  2646. done
  2647. fi
  2648. fi
  2649. CC=$ac_cv_prog_CC
  2650. if test -n "$CC"; then
  2651. echo "$as_me:$LINENO: result: $CC" >&5
  2652. echo "${ECHO_T}$CC" >&6
  2653. else
  2654. echo "$as_me:$LINENO: result: no" >&5
  2655. echo "${ECHO_T}no" >&6
  2656. fi
  2657. fi
  2658. if test -z "$ac_cv_prog_CC"; then
  2659. ac_ct_CC=$CC
  2660. # Extract the first word of "cc", so it can be a program name with args.
  2661. set dummy cc; ac_word=$2
  2662. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2663. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2664. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2665. echo $ECHO_N "(cached) $ECHO_C" >&6
  2666. else
  2667. if test -n "$ac_ct_CC"; then
  2668. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2669. else
  2670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2671. for as_dir in $PATH
  2672. do
  2673. IFS=$as_save_IFS
  2674. test -z "$as_dir" && as_dir=.
  2675. for ac_exec_ext in '' $ac_executable_extensions; do
  2676. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2677. ac_cv_prog_ac_ct_CC="cc"
  2678. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2679. break 2
  2680. fi
  2681. done
  2682. done
  2683. fi
  2684. fi
  2685. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2686. if test -n "$ac_ct_CC"; then
  2687. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2688. echo "${ECHO_T}$ac_ct_CC" >&6
  2689. else
  2690. echo "$as_me:$LINENO: result: no" >&5
  2691. echo "${ECHO_T}no" >&6
  2692. fi
  2693. CC=$ac_ct_CC
  2694. else
  2695. CC="$ac_cv_prog_CC"
  2696. fi
  2697. fi
  2698. if test -z "$CC"; then
  2699. # Extract the first word of "cc", so it can be a program name with args.
  2700. set dummy cc; ac_word=$2
  2701. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2702. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2703. if test "${ac_cv_prog_CC+set}" = set; then
  2704. echo $ECHO_N "(cached) $ECHO_C" >&6
  2705. else
  2706. if test -n "$CC"; then
  2707. ac_cv_prog_CC="$CC" # Let the user override the test.
  2708. else
  2709. ac_prog_rejected=no
  2710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2711. for as_dir in $PATH
  2712. do
  2713. IFS=$as_save_IFS
  2714. test -z "$as_dir" && as_dir=.
  2715. for ac_exec_ext in '' $ac_executable_extensions; do
  2716. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2717. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2718. ac_prog_rejected=yes
  2719. continue
  2720. fi
  2721. ac_cv_prog_CC="cc"
  2722. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2723. break 2
  2724. fi
  2725. done
  2726. done
  2727. if test $ac_prog_rejected = yes; then
  2728. # We found a bogon in the path, so make sure we never use it.
  2729. set dummy $ac_cv_prog_CC
  2730. shift
  2731. if test $# != 0; then
  2732. # We chose a different compiler from the bogus one.
  2733. # However, it has the same basename, so the bogon will be chosen
  2734. # first if we set CC to just the basename; use the full file name.
  2735. shift
  2736. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2737. fi
  2738. fi
  2739. fi
  2740. fi
  2741. CC=$ac_cv_prog_CC
  2742. if test -n "$CC"; then
  2743. echo "$as_me:$LINENO: result: $CC" >&5
  2744. echo "${ECHO_T}$CC" >&6
  2745. else
  2746. echo "$as_me:$LINENO: result: no" >&5
  2747. echo "${ECHO_T}no" >&6
  2748. fi
  2749. fi
  2750. if test -z "$CC"; then
  2751. if test -n "$ac_tool_prefix"; then
  2752. for ac_prog in cl
  2753. do
  2754. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2755. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2756. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2757. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2758. if test "${ac_cv_prog_CC+set}" = set; then
  2759. echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. else
  2761. if test -n "$CC"; then
  2762. ac_cv_prog_CC="$CC" # Let the user override the test.
  2763. else
  2764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2765. for as_dir in $PATH
  2766. do
  2767. IFS=$as_save_IFS
  2768. test -z "$as_dir" && as_dir=.
  2769. for ac_exec_ext in '' $ac_executable_extensions; do
  2770. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2771. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2772. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2773. break 2
  2774. fi
  2775. done
  2776. done
  2777. fi
  2778. fi
  2779. CC=$ac_cv_prog_CC
  2780. if test -n "$CC"; then
  2781. echo "$as_me:$LINENO: result: $CC" >&5
  2782. echo "${ECHO_T}$CC" >&6
  2783. else
  2784. echo "$as_me:$LINENO: result: no" >&5
  2785. echo "${ECHO_T}no" >&6
  2786. fi
  2787. test -n "$CC" && break
  2788. done
  2789. fi
  2790. if test -z "$CC"; then
  2791. ac_ct_CC=$CC
  2792. for ac_prog in cl
  2793. do
  2794. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2795. set dummy $ac_prog; ac_word=$2
  2796. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2797. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2798. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2799. echo $ECHO_N "(cached) $ECHO_C" >&6
  2800. else
  2801. if test -n "$ac_ct_CC"; then
  2802. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2803. else
  2804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2805. for as_dir in $PATH
  2806. do
  2807. IFS=$as_save_IFS
  2808. test -z "$as_dir" && as_dir=.
  2809. for ac_exec_ext in '' $ac_executable_extensions; do
  2810. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2811. ac_cv_prog_ac_ct_CC="$ac_prog"
  2812. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2813. break 2
  2814. fi
  2815. done
  2816. done
  2817. fi
  2818. fi
  2819. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2820. if test -n "$ac_ct_CC"; then
  2821. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2822. echo "${ECHO_T}$ac_ct_CC" >&6
  2823. else
  2824. echo "$as_me:$LINENO: result: no" >&5
  2825. echo "${ECHO_T}no" >&6
  2826. fi
  2827. test -n "$ac_ct_CC" && break
  2828. done
  2829. CC=$ac_ct_CC
  2830. fi
  2831. fi
  2832. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2833. See \`config.log' for more details." >&5
  2834. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2835. See \`config.log' for more details." >&2;}
  2836. { (exit 1); exit 1; }; }
  2837. # Provide some information about the compiler.
  2838. echo "$as_me:$LINENO:" \
  2839. "checking for C compiler version" >&5
  2840. ac_compiler=`set X $ac_compile; echo $2`
  2841. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2842. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2843. ac_status=$?
  2844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2845. (exit $ac_status); }
  2846. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2847. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2848. ac_status=$?
  2849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850. (exit $ac_status); }
  2851. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2852. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2853. ac_status=$?
  2854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2855. (exit $ac_status); }
  2856. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2857. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2858. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2859. echo $ECHO_N "(cached) $ECHO_C" >&6
  2860. else
  2861. cat >conftest.$ac_ext <<_ACEOF
  2862. /* confdefs.h. */
  2863. _ACEOF
  2864. cat confdefs.h >>conftest.$ac_ext
  2865. cat >>conftest.$ac_ext <<_ACEOF
  2866. /* end confdefs.h. */
  2867. int
  2868. main ()
  2869. {
  2870. #ifndef __GNUC__
  2871. choke me
  2872. #endif
  2873. ;
  2874. return 0;
  2875. }
  2876. _ACEOF
  2877. rm -f conftest.$ac_objext
  2878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2879. (eval $ac_compile) 2>conftest.er1
  2880. ac_status=$?
  2881. grep -v '^ *+' conftest.er1 >conftest.err
  2882. rm -f conftest.er1
  2883. cat conftest.err >&5
  2884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2885. (exit $ac_status); } &&
  2886. { ac_try='test -z "$ac_c_werror_flag"
  2887. || test ! -s conftest.err'
  2888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2889. (eval $ac_try) 2>&5
  2890. ac_status=$?
  2891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2892. (exit $ac_status); }; } &&
  2893. { ac_try='test -s conftest.$ac_objext'
  2894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2895. (eval $ac_try) 2>&5
  2896. ac_status=$?
  2897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2898. (exit $ac_status); }; }; then
  2899. ac_compiler_gnu=yes
  2900. else
  2901. echo "$as_me: failed program was:" >&5
  2902. sed 's/^/| /' conftest.$ac_ext >&5
  2903. ac_compiler_gnu=no
  2904. fi
  2905. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2906. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2907. fi
  2908. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2909. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2910. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2911. ac_test_CFLAGS=${CFLAGS+set}
  2912. ac_save_CFLAGS=$CFLAGS
  2913. CFLAGS="-g"
  2914. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2915. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2916. if test "${ac_cv_prog_cc_g+set}" = set; then
  2917. echo $ECHO_N "(cached) $ECHO_C" >&6
  2918. else
  2919. cat >conftest.$ac_ext <<_ACEOF
  2920. /* confdefs.h. */
  2921. _ACEOF
  2922. cat confdefs.h >>conftest.$ac_ext
  2923. cat >>conftest.$ac_ext <<_ACEOF
  2924. /* end confdefs.h. */
  2925. int
  2926. main ()
  2927. {
  2928. ;
  2929. return 0;
  2930. }
  2931. _ACEOF
  2932. rm -f conftest.$ac_objext
  2933. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2934. (eval $ac_compile) 2>conftest.er1
  2935. ac_status=$?
  2936. grep -v '^ *+' conftest.er1 >conftest.err
  2937. rm -f conftest.er1
  2938. cat conftest.err >&5
  2939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2940. (exit $ac_status); } &&
  2941. { ac_try='test -z "$ac_c_werror_flag"
  2942. || test ! -s conftest.err'
  2943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2944. (eval $ac_try) 2>&5
  2945. ac_status=$?
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); }; } &&
  2948. { ac_try='test -s conftest.$ac_objext'
  2949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2950. (eval $ac_try) 2>&5
  2951. ac_status=$?
  2952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2953. (exit $ac_status); }; }; then
  2954. ac_cv_prog_cc_g=yes
  2955. else
  2956. echo "$as_me: failed program was:" >&5
  2957. sed 's/^/| /' conftest.$ac_ext >&5
  2958. ac_cv_prog_cc_g=no
  2959. fi
  2960. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2961. fi
  2962. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2963. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2964. if test "$ac_test_CFLAGS" = set; then
  2965. CFLAGS=$ac_save_CFLAGS
  2966. elif test $ac_cv_prog_cc_g = yes; then
  2967. if test "$GCC" = yes; then
  2968. CFLAGS="-g -O2"
  2969. else
  2970. CFLAGS="-g"
  2971. fi
  2972. else
  2973. if test "$GCC" = yes; then
  2974. CFLAGS="-O2"
  2975. else
  2976. CFLAGS=
  2977. fi
  2978. fi
  2979. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2980. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2981. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2982. echo $ECHO_N "(cached) $ECHO_C" >&6
  2983. else
  2984. ac_cv_prog_cc_stdc=no
  2985. ac_save_CC=$CC
  2986. cat >conftest.$ac_ext <<_ACEOF
  2987. /* confdefs.h. */
  2988. _ACEOF
  2989. cat confdefs.h >>conftest.$ac_ext
  2990. cat >>conftest.$ac_ext <<_ACEOF
  2991. /* end confdefs.h. */
  2992. #include <stdarg.h>
  2993. #include <stdio.h>
  2994. #include <sys/types.h>
  2995. #include <sys/stat.h>
  2996. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2997. struct buf { int x; };
  2998. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2999. static char *e (p, i)
  3000. char **p;
  3001. int i;
  3002. {
  3003. return p[i];
  3004. }
  3005. static char *f (char * (*g) (char **, int), char **p, ...)
  3006. {
  3007. char *s;
  3008. va_list v;
  3009. va_start (v,p);
  3010. s = g (p, va_arg (v,int));
  3011. va_end (v);
  3012. return s;
  3013. }
  3014. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3015. function prototypes and stuff, but not '\xHH' hex character constants.
  3016. These don't provoke an error unfortunately, instead are silently treated
  3017. as 'x'. The following induces an error, until -std1 is added to get
  3018. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3019. array size at least. It's necessary to write '\x00'==0 to get something
  3020. that's true only with -std1. */
  3021. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3022. int test (int i, double x);
  3023. struct s1 {int (*f) (int a);};
  3024. struct s2 {int (*f) (double a);};
  3025. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3026. int argc;
  3027. char **argv;
  3028. int
  3029. main ()
  3030. {
  3031. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3032. ;
  3033. return 0;
  3034. }
  3035. _ACEOF
  3036. # Don't try gcc -ansi; that turns off useful extensions and
  3037. # breaks some systems' header files.
  3038. # AIX -qlanglvl=ansi
  3039. # Ultrix and OSF/1 -std1
  3040. # HP-UX 10.20 and later -Ae
  3041. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3042. # SVR4 -Xc -D__EXTENSIONS__
  3043. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3044. do
  3045. CC="$ac_save_CC $ac_arg"
  3046. rm -f conftest.$ac_objext
  3047. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3048. (eval $ac_compile) 2>conftest.er1
  3049. ac_status=$?
  3050. grep -v '^ *+' conftest.er1 >conftest.err
  3051. rm -f conftest.er1
  3052. cat conftest.err >&5
  3053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3054. (exit $ac_status); } &&
  3055. { ac_try='test -z "$ac_c_werror_flag"
  3056. || test ! -s conftest.err'
  3057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3058. (eval $ac_try) 2>&5
  3059. ac_status=$?
  3060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3061. (exit $ac_status); }; } &&
  3062. { ac_try='test -s conftest.$ac_objext'
  3063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3064. (eval $ac_try) 2>&5
  3065. ac_status=$?
  3066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3067. (exit $ac_status); }; }; then
  3068. ac_cv_prog_cc_stdc=$ac_arg
  3069. break
  3070. else
  3071. echo "$as_me: failed program was:" >&5
  3072. sed 's/^/| /' conftest.$ac_ext >&5
  3073. fi
  3074. rm -f conftest.err conftest.$ac_objext
  3075. done
  3076. rm -f conftest.$ac_ext conftest.$ac_objext
  3077. CC=$ac_save_CC
  3078. fi
  3079. case "x$ac_cv_prog_cc_stdc" in
  3080. x|xno)
  3081. echo "$as_me:$LINENO: result: none needed" >&5
  3082. echo "${ECHO_T}none needed" >&6 ;;
  3083. *)
  3084. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3085. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3086. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3087. esac
  3088. # Some people use a C++ compiler to compile C. Since we use `exit',
  3089. # in C++ we need to declare it. In case someone uses the same compiler
  3090. # for both compiling C and C++ we need to have the C++ compiler decide
  3091. # the declaration of exit, since it's the most demanding environment.
  3092. cat >conftest.$ac_ext <<_ACEOF
  3093. #ifndef __cplusplus
  3094. choke me
  3095. #endif
  3096. _ACEOF
  3097. rm -f conftest.$ac_objext
  3098. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3099. (eval $ac_compile) 2>conftest.er1
  3100. ac_status=$?
  3101. grep -v '^ *+' conftest.er1 >conftest.err
  3102. rm -f conftest.er1
  3103. cat conftest.err >&5
  3104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3105. (exit $ac_status); } &&
  3106. { ac_try='test -z "$ac_c_werror_flag"
  3107. || test ! -s conftest.err'
  3108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3109. (eval $ac_try) 2>&5
  3110. ac_status=$?
  3111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3112. (exit $ac_status); }; } &&
  3113. { ac_try='test -s conftest.$ac_objext'
  3114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3115. (eval $ac_try) 2>&5
  3116. ac_status=$?
  3117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3118. (exit $ac_status); }; }; then
  3119. for ac_declaration in \
  3120. '' \
  3121. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3122. 'extern "C" void std::exit (int); using std::exit;' \
  3123. 'extern "C" void exit (int) throw ();' \
  3124. 'extern "C" void exit (int);' \
  3125. 'void exit (int);'
  3126. do
  3127. cat >conftest.$ac_ext <<_ACEOF
  3128. /* confdefs.h. */
  3129. _ACEOF
  3130. cat confdefs.h >>conftest.$ac_ext
  3131. cat >>conftest.$ac_ext <<_ACEOF
  3132. /* end confdefs.h. */
  3133. $ac_declaration
  3134. #include <stdlib.h>
  3135. int
  3136. main ()
  3137. {
  3138. exit (42);
  3139. ;
  3140. return 0;
  3141. }
  3142. _ACEOF
  3143. rm -f conftest.$ac_objext
  3144. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3145. (eval $ac_compile) 2>conftest.er1
  3146. ac_status=$?
  3147. grep -v '^ *+' conftest.er1 >conftest.err
  3148. rm -f conftest.er1
  3149. cat conftest.err >&5
  3150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3151. (exit $ac_status); } &&
  3152. { ac_try='test -z "$ac_c_werror_flag"
  3153. || test ! -s conftest.err'
  3154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3155. (eval $ac_try) 2>&5
  3156. ac_status=$?
  3157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3158. (exit $ac_status); }; } &&
  3159. { ac_try='test -s conftest.$ac_objext'
  3160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3161. (eval $ac_try) 2>&5
  3162. ac_status=$?
  3163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3164. (exit $ac_status); }; }; then
  3165. :
  3166. else
  3167. echo "$as_me: failed program was:" >&5
  3168. sed 's/^/| /' conftest.$ac_ext >&5
  3169. continue
  3170. fi
  3171. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3172. cat >conftest.$ac_ext <<_ACEOF
  3173. /* confdefs.h. */
  3174. _ACEOF
  3175. cat confdefs.h >>conftest.$ac_ext
  3176. cat >>conftest.$ac_ext <<_ACEOF
  3177. /* end confdefs.h. */
  3178. $ac_declaration
  3179. int
  3180. main ()
  3181. {
  3182. exit (42);
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. rm -f conftest.$ac_objext
  3188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3189. (eval $ac_compile) 2>conftest.er1
  3190. ac_status=$?
  3191. grep -v '^ *+' conftest.er1 >conftest.err
  3192. rm -f conftest.er1
  3193. cat conftest.err >&5
  3194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3195. (exit $ac_status); } &&
  3196. { ac_try='test -z "$ac_c_werror_flag"
  3197. || test ! -s conftest.err'
  3198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3199. (eval $ac_try) 2>&5
  3200. ac_status=$?
  3201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3202. (exit $ac_status); }; } &&
  3203. { ac_try='test -s conftest.$ac_objext'
  3204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3205. (eval $ac_try) 2>&5
  3206. ac_status=$?
  3207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3208. (exit $ac_status); }; }; then
  3209. break
  3210. else
  3211. echo "$as_me: failed program was:" >&5
  3212. sed 's/^/| /' conftest.$ac_ext >&5
  3213. fi
  3214. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. done
  3216. rm -f conftest*
  3217. if test -n "$ac_declaration"; then
  3218. echo '#ifdef __cplusplus' >>confdefs.h
  3219. echo $ac_declaration >>confdefs.h
  3220. echo '#endif' >>confdefs.h
  3221. fi
  3222. else
  3223. echo "$as_me: failed program was:" >&5
  3224. sed 's/^/| /' conftest.$ac_ext >&5
  3225. fi
  3226. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3227. ac_ext=c
  3228. ac_cpp='$CPP $CPPFLAGS'
  3229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3232. depcc="$CC" am_compiler_list=
  3233. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3234. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3235. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3236. echo $ECHO_N "(cached) $ECHO_C" >&6
  3237. else
  3238. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3239. # We make a subdir and do the tests there. Otherwise we can end up
  3240. # making bogus files that we don't know about and never remove. For
  3241. # instance it was reported that on HP-UX the gcc test will end up
  3242. # making a dummy file named `D' -- because `-MD' means `put the output
  3243. # in D'.
  3244. mkdir conftest.dir
  3245. # Copy depcomp to subdir because otherwise we won't find it if we're
  3246. # using a relative directory.
  3247. cp "$am_depcomp" conftest.dir
  3248. cd conftest.dir
  3249. # We will build objects and dependencies in a subdirectory because
  3250. # it helps to detect inapplicable dependency modes. For instance
  3251. # both Tru64's cc and ICC support -MD to output dependencies as a
  3252. # side effect of compilation, but ICC will put the dependencies in
  3253. # the current directory while Tru64 will put them in the object
  3254. # directory.
  3255. mkdir sub
  3256. am_cv_CC_dependencies_compiler_type=none
  3257. if test "$am_compiler_list" = ""; then
  3258. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3259. fi
  3260. for depmode in $am_compiler_list; do
  3261. # Setup a source with many dependencies, because some compilers
  3262. # like to wrap large dependency lists on column 80 (with \), and
  3263. # we should not choose a depcomp mode which is confused by this.
  3264. #
  3265. # We need to recreate these files for each test, as the compiler may
  3266. # overwrite some of them when testing with obscure command lines.
  3267. # This happens at least with the AIX C compiler.
  3268. : > sub/conftest.c
  3269. for i in 1 2 3 4 5 6; do
  3270. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3271. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3272. # Solaris 8's {/usr,}/bin/sh.
  3273. touch sub/conftst$i.h
  3274. done
  3275. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3276. case $depmode in
  3277. nosideeffect)
  3278. # after this tag, mechanisms are not by side-effect, so they'll
  3279. # only be used when explicitly requested
  3280. if test "x$enable_dependency_tracking" = xyes; then
  3281. continue
  3282. else
  3283. break
  3284. fi
  3285. ;;
  3286. none) break ;;
  3287. esac
  3288. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3289. # mode. It turns out that the SunPro C++ compiler does not properly
  3290. # handle `-M -o', and we need to detect this.
  3291. if depmode=$depmode \
  3292. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3293. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3294. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3295. >/dev/null 2>conftest.err &&
  3296. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3297. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3298. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3299. # icc doesn't choke on unknown options, it will just issue warnings
  3300. # or remarks (even with -Werror). So we grep stderr for any message
  3301. # that says an option was ignored or not supported.
  3302. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3303. # icc: Command line warning: ignoring option '-M'; no argument required
  3304. # The diagnosis changed in icc 8.0:
  3305. # icc: Command line remark: option '-MP' not supported
  3306. if (grep 'ignoring option' conftest.err ||
  3307. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3308. am_cv_CC_dependencies_compiler_type=$depmode
  3309. break
  3310. fi
  3311. fi
  3312. done
  3313. cd ..
  3314. rm -rf conftest.dir
  3315. else
  3316. am_cv_CC_dependencies_compiler_type=none
  3317. fi
  3318. fi
  3319. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3320. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3321. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3322. if
  3323. test "x$enable_dependency_tracking" != xno \
  3324. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3325. am__fastdepCC_TRUE=
  3326. am__fastdepCC_FALSE='#'
  3327. else
  3328. am__fastdepCC_TRUE='#'
  3329. am__fastdepCC_FALSE=
  3330. fi
  3331. if test "x$CC" != xcc; then
  3332. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3333. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3334. else
  3335. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3336. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3337. fi
  3338. set dummy $CC; ac_cc=`echo $2 |
  3339. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3340. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3341. echo $ECHO_N "(cached) $ECHO_C" >&6
  3342. else
  3343. cat >conftest.$ac_ext <<_ACEOF
  3344. /* confdefs.h. */
  3345. _ACEOF
  3346. cat confdefs.h >>conftest.$ac_ext
  3347. cat >>conftest.$ac_ext <<_ACEOF
  3348. /* end confdefs.h. */
  3349. int
  3350. main ()
  3351. {
  3352. ;
  3353. return 0;
  3354. }
  3355. _ACEOF
  3356. # Make sure it works both with $CC and with simple cc.
  3357. # We do the test twice because some compilers refuse to overwrite an
  3358. # existing .o file with -o, though they will create one.
  3359. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3360. if { (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. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3366. (eval $ac_try) 2>&5
  3367. ac_status=$?
  3368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3369. (exit $ac_status); };
  3370. then
  3371. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3372. if test "x$CC" != xcc; then
  3373. # Test first that cc exists at all.
  3374. if { ac_try='cc -c conftest.$ac_ext >&5'
  3375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3376. (eval $ac_try) 2>&5
  3377. ac_status=$?
  3378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3379. (exit $ac_status); }; }; then
  3380. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3381. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3382. (eval $ac_try) 2>&5
  3383. ac_status=$?
  3384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3385. (exit $ac_status); } &&
  3386. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3387. (eval $ac_try) 2>&5
  3388. ac_status=$?
  3389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3390. (exit $ac_status); };
  3391. then
  3392. # cc works too.
  3393. :
  3394. else
  3395. # cc exists but doesn't like -o.
  3396. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3397. fi
  3398. fi
  3399. fi
  3400. else
  3401. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3402. fi
  3403. rm -f conftest*
  3404. fi
  3405. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3406. echo "$as_me:$LINENO: result: yes" >&5
  3407. echo "${ECHO_T}yes" >&6
  3408. else
  3409. echo "$as_me:$LINENO: result: no" >&5
  3410. echo "${ECHO_T}no" >&6
  3411. cat >>confdefs.h <<\_ACEOF
  3412. #define NO_MINUS_C_MINUS_O 1
  3413. _ACEOF
  3414. fi
  3415. # FIXME: we rely on the cache variable name because
  3416. # there is no other way.
  3417. set dummy $CC
  3418. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3419. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3420. # Losing compiler, so override with the script.
  3421. # FIXME: It is wrong to rewrite CC.
  3422. # But if we don't then we get into trouble of one sort or another.
  3423. # A longer-term fix would be to have automake use am__CC in this case,
  3424. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3425. CC="$am_aux_dir/compile $CC"
  3426. fi
  3427. # By default we simply use the C compiler to build assembly code.
  3428. test "${CCAS+set}" = set || CCAS=$CC
  3429. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3430. # disable static libs by default - we only use a couple
  3431. # Check whether --enable-static or --disable-static was given.
  3432. if test "${enable_static+set}" = set; then
  3433. enableval="$enable_static"
  3434. p=${PACKAGE-default}
  3435. case $enableval in
  3436. yes) enable_static=yes ;;
  3437. no) enable_static=no ;;
  3438. *)
  3439. enable_static=no
  3440. # Look at the argument we got. We use all the common list separators.
  3441. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3442. for pkg in $enableval; do
  3443. IFS="$lt_save_ifs"
  3444. if test "X$pkg" = "X$p"; then
  3445. enable_static=yes
  3446. fi
  3447. done
  3448. IFS="$lt_save_ifs"
  3449. ;;
  3450. esac
  3451. else
  3452. enable_static=no
  3453. fi;
  3454. # Check whether --enable-shared or --disable-shared was given.
  3455. if test "${enable_shared+set}" = set; then
  3456. enableval="$enable_shared"
  3457. p=${PACKAGE-default}
  3458. case $enableval in
  3459. yes) enable_shared=yes ;;
  3460. no) enable_shared=no ;;
  3461. *)
  3462. enable_shared=no
  3463. # Look at the argument we got. We use all the common list separators.
  3464. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3465. for pkg in $enableval; do
  3466. IFS="$lt_save_ifs"
  3467. if test "X$pkg" = "X$p"; then
  3468. enable_shared=yes
  3469. fi
  3470. done
  3471. IFS="$lt_save_ifs"
  3472. ;;
  3473. esac
  3474. else
  3475. enable_shared=yes
  3476. fi;
  3477. # Check whether --enable-fast-install or --disable-fast-install was given.
  3478. if test "${enable_fast_install+set}" = set; then
  3479. enableval="$enable_fast_install"
  3480. p=${PACKAGE-default}
  3481. case $enableval in
  3482. yes) enable_fast_install=yes ;;
  3483. no) enable_fast_install=no ;;
  3484. *)
  3485. enable_fast_install=no
  3486. # Look at the argument we got. We use all the common list separators.
  3487. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3488. for pkg in $enableval; do
  3489. IFS="$lt_save_ifs"
  3490. if test "X$pkg" = "X$p"; then
  3491. enable_fast_install=yes
  3492. fi
  3493. done
  3494. IFS="$lt_save_ifs"
  3495. ;;
  3496. esac
  3497. else
  3498. enable_fast_install=yes
  3499. fi;
  3500. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3501. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3502. if test "${lt_cv_path_SED+set}" = set; then
  3503. echo $ECHO_N "(cached) $ECHO_C" >&6
  3504. else
  3505. # Loop through the user's path and test for sed and gsed.
  3506. # Then use that list of sed's as ones to test for truncation.
  3507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3508. for as_dir in $PATH
  3509. do
  3510. IFS=$as_save_IFS
  3511. test -z "$as_dir" && as_dir=.
  3512. for lt_ac_prog in sed gsed; do
  3513. for ac_exec_ext in '' $ac_executable_extensions; do
  3514. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3515. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3516. fi
  3517. done
  3518. done
  3519. done
  3520. IFS=$as_save_IFS
  3521. lt_ac_max=0
  3522. lt_ac_count=0
  3523. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3524. # along with /bin/sed that truncates output.
  3525. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3526. test ! -f $lt_ac_sed && continue
  3527. cat /dev/null > conftest.in
  3528. lt_ac_count=0
  3529. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3530. # Check for GNU sed and select it if it is found.
  3531. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3532. lt_cv_path_SED=$lt_ac_sed
  3533. break
  3534. fi
  3535. while true; do
  3536. cat conftest.in conftest.in >conftest.tmp
  3537. mv conftest.tmp conftest.in
  3538. cp conftest.in conftest.nl
  3539. echo >>conftest.nl
  3540. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3541. cmp -s conftest.out conftest.nl || break
  3542. # 10000 chars as input seems more than enough
  3543. test $lt_ac_count -gt 10 && break
  3544. lt_ac_count=`expr $lt_ac_count + 1`
  3545. if test $lt_ac_count -gt $lt_ac_max; then
  3546. lt_ac_max=$lt_ac_count
  3547. lt_cv_path_SED=$lt_ac_sed
  3548. fi
  3549. done
  3550. done
  3551. fi
  3552. SED=$lt_cv_path_SED
  3553. echo "$as_me:$LINENO: result: $SED" >&5
  3554. echo "${ECHO_T}$SED" >&6
  3555. echo "$as_me:$LINENO: checking for egrep" >&5
  3556. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3557. if test "${ac_cv_prog_egrep+set}" = set; then
  3558. echo $ECHO_N "(cached) $ECHO_C" >&6
  3559. else
  3560. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3561. then ac_cv_prog_egrep='grep -E'
  3562. else ac_cv_prog_egrep='egrep'
  3563. fi
  3564. fi
  3565. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3566. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3567. EGREP=$ac_cv_prog_egrep
  3568. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3569. if test "${with_gnu_ld+set}" = set; then
  3570. withval="$with_gnu_ld"
  3571. test "$withval" = no || with_gnu_ld=yes
  3572. else
  3573. with_gnu_ld=no
  3574. fi;
  3575. ac_prog=ld
  3576. if test "$GCC" = yes; then
  3577. # Check if gcc -print-prog-name=ld gives a path.
  3578. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3579. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3580. case $host in
  3581. *-*-mingw*)
  3582. # gcc leaves a trailing carriage return which upsets mingw
  3583. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3584. *)
  3585. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3586. esac
  3587. case $ac_prog in
  3588. # Accept absolute paths.
  3589. [\\/]* | ?:[\\/]*)
  3590. re_direlt='/[^/][^/]*/\.\./'
  3591. # Canonicalize the pathname of ld
  3592. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3593. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3594. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3595. done
  3596. test -z "$LD" && LD="$ac_prog"
  3597. ;;
  3598. "")
  3599. # If it fails, then pretend we aren't using GCC.
  3600. ac_prog=ld
  3601. ;;
  3602. *)
  3603. # If it is relative, then search for the first ld in PATH.
  3604. with_gnu_ld=unknown
  3605. ;;
  3606. esac
  3607. elif test "$with_gnu_ld" = yes; then
  3608. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3609. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3610. else
  3611. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3612. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3613. fi
  3614. if test "${lt_cv_path_LD+set}" = set; then
  3615. echo $ECHO_N "(cached) $ECHO_C" >&6
  3616. else
  3617. if test -z "$LD"; then
  3618. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3619. for ac_dir in $PATH; do
  3620. IFS="$lt_save_ifs"
  3621. test -z "$ac_dir" && ac_dir=.
  3622. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3623. lt_cv_path_LD="$ac_dir/$ac_prog"
  3624. # Check to see if the program is GNU ld. I'd rather use --version,
  3625. # but apparently some variants of GNU ld only accept -v.
  3626. # Break only if it was the GNU/non-GNU ld that we prefer.
  3627. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3628. *GNU* | *'with BFD'*)
  3629. test "$with_gnu_ld" != no && break
  3630. ;;
  3631. *)
  3632. test "$with_gnu_ld" != yes && break
  3633. ;;
  3634. esac
  3635. fi
  3636. done
  3637. IFS="$lt_save_ifs"
  3638. else
  3639. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3640. fi
  3641. fi
  3642. LD="$lt_cv_path_LD"
  3643. if test -n "$LD"; then
  3644. echo "$as_me:$LINENO: result: $LD" >&5
  3645. echo "${ECHO_T}$LD" >&6
  3646. else
  3647. echo "$as_me:$LINENO: result: no" >&5
  3648. echo "${ECHO_T}no" >&6
  3649. fi
  3650. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3651. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3652. { (exit 1); exit 1; }; }
  3653. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3654. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3655. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3656. echo $ECHO_N "(cached) $ECHO_C" >&6
  3657. else
  3658. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3659. case `$LD -v 2>&1 </dev/null` in
  3660. *GNU* | *'with BFD'*)
  3661. lt_cv_prog_gnu_ld=yes
  3662. ;;
  3663. *)
  3664. lt_cv_prog_gnu_ld=no
  3665. ;;
  3666. esac
  3667. fi
  3668. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3669. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3670. with_gnu_ld=$lt_cv_prog_gnu_ld
  3671. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3672. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3673. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3674. echo $ECHO_N "(cached) $ECHO_C" >&6
  3675. else
  3676. lt_cv_ld_reload_flag='-r'
  3677. fi
  3678. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3679. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3680. reload_flag=$lt_cv_ld_reload_flag
  3681. case $reload_flag in
  3682. "" | " "*) ;;
  3683. *) reload_flag=" $reload_flag" ;;
  3684. esac
  3685. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3686. case $host_os in
  3687. darwin*)
  3688. if test "$GCC" = yes; then
  3689. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3690. else
  3691. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3692. fi
  3693. ;;
  3694. esac
  3695. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3696. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3697. if test "${lt_cv_path_NM+set}" = set; then
  3698. echo $ECHO_N "(cached) $ECHO_C" >&6
  3699. else
  3700. if test -n "$NM"; then
  3701. # Let the user override the test.
  3702. lt_cv_path_NM="$NM"
  3703. else
  3704. lt_nm_to_check="${ac_tool_prefix}nm"
  3705. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3706. lt_nm_to_check="$lt_nm_to_check nm"
  3707. fi
  3708. for lt_tmp_nm in $lt_nm_to_check; do
  3709. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3710. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3711. IFS="$lt_save_ifs"
  3712. test -z "$ac_dir" && ac_dir=.
  3713. tmp_nm="$ac_dir/$lt_tmp_nm"
  3714. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3715. # Check to see if the nm accepts a BSD-compat flag.
  3716. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3717. # nm: unknown option "B" ignored
  3718. # Tru64's nm complains that /dev/null is an invalid object file
  3719. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3720. */dev/null* | *'Invalid file or object type'*)
  3721. lt_cv_path_NM="$tmp_nm -B"
  3722. break
  3723. ;;
  3724. *)
  3725. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3726. */dev/null*)
  3727. lt_cv_path_NM="$tmp_nm -p"
  3728. break
  3729. ;;
  3730. *)
  3731. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3732. continue # so that we can try to find one that supports BSD flags
  3733. ;;
  3734. esac
  3735. ;;
  3736. esac
  3737. fi
  3738. done
  3739. IFS="$lt_save_ifs"
  3740. done
  3741. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3742. fi
  3743. fi
  3744. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3745. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3746. NM="$lt_cv_path_NM"
  3747. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3748. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3749. LN_S=$as_ln_s
  3750. if test "$LN_S" = "ln -s"; then
  3751. echo "$as_me:$LINENO: result: yes" >&5
  3752. echo "${ECHO_T}yes" >&6
  3753. else
  3754. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3755. echo "${ECHO_T}no, using $LN_S" >&6
  3756. fi
  3757. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3758. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3759. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3760. echo $ECHO_N "(cached) $ECHO_C" >&6
  3761. else
  3762. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3763. lt_cv_file_magic_test_file=
  3764. lt_cv_deplibs_check_method='unknown'
  3765. # Need to set the preceding variable on all platforms that support
  3766. # interlibrary dependencies.
  3767. # 'none' -- dependencies not supported.
  3768. # `unknown' -- same as none, but documents that we really don't know.
  3769. # 'pass_all' -- all dependencies passed with no checks.
  3770. # 'test_compile' -- check by making test program.
  3771. # 'file_magic [[regex]]' -- check by looking for files in library path
  3772. # which responds to the $file_magic_cmd with a given extended regex.
  3773. # If you have `file' or equivalent on your system and you're not sure
  3774. # whether `pass_all' will *always* work, you probably want this one.
  3775. case $host_os in
  3776. aix4* | aix5*)
  3777. lt_cv_deplibs_check_method=pass_all
  3778. ;;
  3779. beos*)
  3780. lt_cv_deplibs_check_method=pass_all
  3781. ;;
  3782. bsdi[45]*)
  3783. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3784. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3785. lt_cv_file_magic_test_file=/shlib/libc.so
  3786. ;;
  3787. cygwin*)
  3788. # func_win32_libid is a shell function defined in ltmain.sh
  3789. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3790. lt_cv_file_magic_cmd='func_win32_libid'
  3791. ;;
  3792. mingw* | pw32*)
  3793. # Base MSYS/MinGW do not provide the 'file' command needed by
  3794. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3795. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3796. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3797. ;;
  3798. darwin* | rhapsody*)
  3799. lt_cv_deplibs_check_method=pass_all
  3800. ;;
  3801. freebsd* | kfreebsd*-gnu | dragonfly*)
  3802. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3803. case $host_cpu in
  3804. i*86 )
  3805. # Not sure whether the presence of OpenBSD here was a mistake.
  3806. # Let's accept both of them until this is cleared up.
  3807. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3808. lt_cv_file_magic_cmd=/usr/bin/file
  3809. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3810. ;;
  3811. esac
  3812. else
  3813. lt_cv_deplibs_check_method=pass_all
  3814. fi
  3815. ;;
  3816. gnu*)
  3817. lt_cv_deplibs_check_method=pass_all
  3818. ;;
  3819. hpux10.20* | hpux11*)
  3820. lt_cv_file_magic_cmd=/usr/bin/file
  3821. case $host_cpu in
  3822. ia64*)
  3823. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3824. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3825. ;;
  3826. hppa*64*)
  3827. 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]'
  3828. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3829. ;;
  3830. *)
  3831. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3832. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3833. ;;
  3834. esac
  3835. ;;
  3836. interix3*)
  3837. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3838. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3839. ;;
  3840. irix5* | irix6* | nonstopux*)
  3841. case $LD in
  3842. *-32|*"-32 ") libmagic=32-bit;;
  3843. *-n32|*"-n32 ") libmagic=N32;;
  3844. *-64|*"-64 ") libmagic=64-bit;;
  3845. *) libmagic=never-match;;
  3846. esac
  3847. lt_cv_deplibs_check_method=pass_all
  3848. ;;
  3849. # This must be Linux ELF.
  3850. linux*)
  3851. lt_cv_deplibs_check_method=pass_all
  3852. ;;
  3853. netbsd*)
  3854. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3855. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3856. else
  3857. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3858. fi
  3859. ;;
  3860. newos6*)
  3861. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3862. lt_cv_file_magic_cmd=/usr/bin/file
  3863. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3864. ;;
  3865. nto-qnx*)
  3866. lt_cv_deplibs_check_method=unknown
  3867. ;;
  3868. openbsd*)
  3869. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3870. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3871. else
  3872. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3873. fi
  3874. ;;
  3875. osf3* | osf4* | osf5*)
  3876. lt_cv_deplibs_check_method=pass_all
  3877. ;;
  3878. solaris*)
  3879. lt_cv_deplibs_check_method=pass_all
  3880. ;;
  3881. sysv4 | sysv4.3*)
  3882. case $host_vendor in
  3883. motorola)
  3884. 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]'
  3885. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3886. ;;
  3887. ncr)
  3888. lt_cv_deplibs_check_method=pass_all
  3889. ;;
  3890. sequent)
  3891. lt_cv_file_magic_cmd='/bin/file'
  3892. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3893. ;;
  3894. sni)
  3895. lt_cv_file_magic_cmd='/bin/file'
  3896. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3897. lt_cv_file_magic_test_file=/lib/libc.so
  3898. ;;
  3899. siemens)
  3900. lt_cv_deplibs_check_method=pass_all
  3901. ;;
  3902. pc)
  3903. lt_cv_deplibs_check_method=pass_all
  3904. ;;
  3905. esac
  3906. ;;
  3907. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3908. lt_cv_deplibs_check_method=pass_all
  3909. ;;
  3910. esac
  3911. fi
  3912. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3913. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3914. file_magic_cmd=$lt_cv_file_magic_cmd
  3915. deplibs_check_method=$lt_cv_deplibs_check_method
  3916. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3917. # If no C compiler was specified, use CC.
  3918. LTCC=${LTCC-"$CC"}
  3919. # If no C compiler flags were specified, use CFLAGS.
  3920. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3921. # Allow CC to be a program name with arguments.
  3922. compiler=$CC
  3923. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3924. if test "${enable_libtool_lock+set}" = set; then
  3925. enableval="$enable_libtool_lock"
  3926. fi;
  3927. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3928. # Some flags need to be propagated to the compiler or linker for good
  3929. # libtool support.
  3930. case $host in
  3931. ia64-*-hpux*)
  3932. # Find out which ABI we are using.
  3933. echo 'int i;' > conftest.$ac_ext
  3934. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3935. (eval $ac_compile) 2>&5
  3936. ac_status=$?
  3937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3938. (exit $ac_status); }; then
  3939. case `/usr/bin/file conftest.$ac_objext` in
  3940. *ELF-32*)
  3941. HPUX_IA64_MODE="32"
  3942. ;;
  3943. *ELF-64*)
  3944. HPUX_IA64_MODE="64"
  3945. ;;
  3946. esac
  3947. fi
  3948. rm -rf conftest*
  3949. ;;
  3950. *-*-irix6*)
  3951. # Find out which ABI we are using.
  3952. echo '#line 4390 "configure"' > conftest.$ac_ext
  3953. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3954. (eval $ac_compile) 2>&5
  3955. ac_status=$?
  3956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3957. (exit $ac_status); }; then
  3958. if test "$lt_cv_prog_gnu_ld" = yes; then
  3959. case `/usr/bin/file conftest.$ac_objext` in
  3960. *32-bit*)
  3961. LD="${LD-ld} -melf32bsmip"
  3962. ;;
  3963. *N32*)
  3964. LD="${LD-ld} -melf32bmipn32"
  3965. ;;
  3966. *64-bit*)
  3967. LD="${LD-ld} -melf64bmip"
  3968. ;;
  3969. esac
  3970. else
  3971. case `/usr/bin/file conftest.$ac_objext` in
  3972. *32-bit*)
  3973. LD="${LD-ld} -32"
  3974. ;;
  3975. *N32*)
  3976. LD="${LD-ld} -n32"
  3977. ;;
  3978. *64-bit*)
  3979. LD="${LD-ld} -64"
  3980. ;;
  3981. esac
  3982. fi
  3983. fi
  3984. rm -rf conftest*
  3985. ;;
  3986. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3987. # Find out which ABI we are using.
  3988. echo 'int i;' > conftest.$ac_ext
  3989. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3990. (eval $ac_compile) 2>&5
  3991. ac_status=$?
  3992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3993. (exit $ac_status); }; then
  3994. case `/usr/bin/file conftest.o` in
  3995. *32-bit*)
  3996. case $host in
  3997. x86_64-*linux*)
  3998. LD="${LD-ld} -m elf_i386"
  3999. ;;
  4000. ppc64-*linux*|powerpc64-*linux*)
  4001. LD="${LD-ld} -m elf32ppclinux"
  4002. ;;
  4003. s390x-*linux*)
  4004. LD="${LD-ld} -m elf_s390"
  4005. ;;
  4006. sparc64-*linux*)
  4007. LD="${LD-ld} -m elf32_sparc"
  4008. ;;
  4009. esac
  4010. ;;
  4011. *64-bit*)
  4012. case $host in
  4013. x86_64-*linux*)
  4014. LD="${LD-ld} -m elf_x86_64"
  4015. ;;
  4016. ppc*-*linux*|powerpc*-*linux*)
  4017. LD="${LD-ld} -m elf64ppc"
  4018. ;;
  4019. s390*-*linux*)
  4020. LD="${LD-ld} -m elf64_s390"
  4021. ;;
  4022. sparc*-*linux*)
  4023. LD="${LD-ld} -m elf64_sparc"
  4024. ;;
  4025. esac
  4026. ;;
  4027. esac
  4028. fi
  4029. rm -rf conftest*
  4030. ;;
  4031. *-*-sco3.2v5*)
  4032. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4033. SAVE_CFLAGS="$CFLAGS"
  4034. CFLAGS="$CFLAGS -belf"
  4035. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4036. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4037. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4038. echo $ECHO_N "(cached) $ECHO_C" >&6
  4039. else
  4040. ac_ext=c
  4041. ac_cpp='$CPP $CPPFLAGS'
  4042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4045. cat >conftest.$ac_ext <<_ACEOF
  4046. /* confdefs.h. */
  4047. _ACEOF
  4048. cat confdefs.h >>conftest.$ac_ext
  4049. cat >>conftest.$ac_ext <<_ACEOF
  4050. /* end confdefs.h. */
  4051. int
  4052. main ()
  4053. {
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. rm -f conftest.$ac_objext conftest$ac_exeext
  4059. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4060. (eval $ac_link) 2>conftest.er1
  4061. ac_status=$?
  4062. grep -v '^ *+' conftest.er1 >conftest.err
  4063. rm -f conftest.er1
  4064. cat conftest.err >&5
  4065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); } &&
  4067. { ac_try='test -z "$ac_c_werror_flag"
  4068. || test ! -s conftest.err'
  4069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4070. (eval $ac_try) 2>&5
  4071. ac_status=$?
  4072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073. (exit $ac_status); }; } &&
  4074. { ac_try='test -s conftest$ac_exeext'
  4075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4076. (eval $ac_try) 2>&5
  4077. ac_status=$?
  4078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4079. (exit $ac_status); }; }; then
  4080. lt_cv_cc_needs_belf=yes
  4081. else
  4082. echo "$as_me: failed program was:" >&5
  4083. sed 's/^/| /' conftest.$ac_ext >&5
  4084. lt_cv_cc_needs_belf=no
  4085. fi
  4086. rm -f conftest.err conftest.$ac_objext \
  4087. conftest$ac_exeext conftest.$ac_ext
  4088. ac_ext=c
  4089. ac_cpp='$CPP $CPPFLAGS'
  4090. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4091. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4092. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4093. fi
  4094. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4095. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4096. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4097. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4098. CFLAGS="$SAVE_CFLAGS"
  4099. fi
  4100. ;;
  4101. sparc*-*solaris*)
  4102. # Find out which ABI we are using.
  4103. echo 'int i;' > conftest.$ac_ext
  4104. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4105. (eval $ac_compile) 2>&5
  4106. ac_status=$?
  4107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4108. (exit $ac_status); }; then
  4109. case `/usr/bin/file conftest.o` in
  4110. *64-bit*)
  4111. case $lt_cv_prog_gnu_ld in
  4112. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4113. *) LD="${LD-ld} -64" ;;
  4114. esac
  4115. ;;
  4116. esac
  4117. fi
  4118. rm -rf conftest*
  4119. ;;
  4120. esac
  4121. need_locks="$enable_libtool_lock"
  4122. ac_ext=c
  4123. ac_cpp='$CPP $CPPFLAGS'
  4124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4127. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4128. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4129. # On Suns, sometimes $CPP names a directory.
  4130. if test -n "$CPP" && test -d "$CPP"; then
  4131. CPP=
  4132. fi
  4133. if test -z "$CPP"; then
  4134. if test "${ac_cv_prog_CPP+set}" = set; then
  4135. echo $ECHO_N "(cached) $ECHO_C" >&6
  4136. else
  4137. # Double quotes because CPP needs to be expanded
  4138. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4139. do
  4140. ac_preproc_ok=false
  4141. for ac_c_preproc_warn_flag in '' yes
  4142. do
  4143. # Use a header file that comes with gcc, so configuring glibc
  4144. # with a fresh cross-compiler works.
  4145. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4146. # <limits.h> exists even on freestanding compilers.
  4147. # On the NeXT, cc -E runs the code through the compiler's parser,
  4148. # not just through cpp. "Syntax error" is here to catch this case.
  4149. cat >conftest.$ac_ext <<_ACEOF
  4150. /* confdefs.h. */
  4151. _ACEOF
  4152. cat confdefs.h >>conftest.$ac_ext
  4153. cat >>conftest.$ac_ext <<_ACEOF
  4154. /* end confdefs.h. */
  4155. #ifdef __STDC__
  4156. # include <limits.h>
  4157. #else
  4158. # include <assert.h>
  4159. #endif
  4160. Syntax error
  4161. _ACEOF
  4162. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4163. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4164. ac_status=$?
  4165. grep -v '^ *+' conftest.er1 >conftest.err
  4166. rm -f conftest.er1
  4167. cat conftest.err >&5
  4168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4169. (exit $ac_status); } >/dev/null; then
  4170. if test -s conftest.err; then
  4171. ac_cpp_err=$ac_c_preproc_warn_flag
  4172. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4173. else
  4174. ac_cpp_err=
  4175. fi
  4176. else
  4177. ac_cpp_err=yes
  4178. fi
  4179. if test -z "$ac_cpp_err"; then
  4180. :
  4181. else
  4182. echo "$as_me: failed program was:" >&5
  4183. sed 's/^/| /' conftest.$ac_ext >&5
  4184. # Broken: fails on valid input.
  4185. continue
  4186. fi
  4187. rm -f conftest.err conftest.$ac_ext
  4188. # OK, works on sane cases. Now check whether non-existent headers
  4189. # can be detected and how.
  4190. cat >conftest.$ac_ext <<_ACEOF
  4191. /* confdefs.h. */
  4192. _ACEOF
  4193. cat confdefs.h >>conftest.$ac_ext
  4194. cat >>conftest.$ac_ext <<_ACEOF
  4195. /* end confdefs.h. */
  4196. #include <ac_nonexistent.h>
  4197. _ACEOF
  4198. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4199. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4200. ac_status=$?
  4201. grep -v '^ *+' conftest.er1 >conftest.err
  4202. rm -f conftest.er1
  4203. cat conftest.err >&5
  4204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); } >/dev/null; then
  4206. if test -s conftest.err; then
  4207. ac_cpp_err=$ac_c_preproc_warn_flag
  4208. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4209. else
  4210. ac_cpp_err=
  4211. fi
  4212. else
  4213. ac_cpp_err=yes
  4214. fi
  4215. if test -z "$ac_cpp_err"; then
  4216. # Broken: success on invalid input.
  4217. continue
  4218. else
  4219. echo "$as_me: failed program was:" >&5
  4220. sed 's/^/| /' conftest.$ac_ext >&5
  4221. # Passes both tests.
  4222. ac_preproc_ok=:
  4223. break
  4224. fi
  4225. rm -f conftest.err conftest.$ac_ext
  4226. done
  4227. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4228. rm -f conftest.err conftest.$ac_ext
  4229. if $ac_preproc_ok; then
  4230. break
  4231. fi
  4232. done
  4233. ac_cv_prog_CPP=$CPP
  4234. fi
  4235. CPP=$ac_cv_prog_CPP
  4236. else
  4237. ac_cv_prog_CPP=$CPP
  4238. fi
  4239. echo "$as_me:$LINENO: result: $CPP" >&5
  4240. echo "${ECHO_T}$CPP" >&6
  4241. ac_preproc_ok=false
  4242. for ac_c_preproc_warn_flag in '' yes
  4243. do
  4244. # Use a header file that comes with gcc, so configuring glibc
  4245. # with a fresh cross-compiler works.
  4246. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4247. # <limits.h> exists even on freestanding compilers.
  4248. # On the NeXT, cc -E runs the code through the compiler's parser,
  4249. # not just through cpp. "Syntax error" is here to catch this case.
  4250. cat >conftest.$ac_ext <<_ACEOF
  4251. /* confdefs.h. */
  4252. _ACEOF
  4253. cat confdefs.h >>conftest.$ac_ext
  4254. cat >>conftest.$ac_ext <<_ACEOF
  4255. /* end confdefs.h. */
  4256. #ifdef __STDC__
  4257. # include <limits.h>
  4258. #else
  4259. # include <assert.h>
  4260. #endif
  4261. Syntax error
  4262. _ACEOF
  4263. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4264. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4265. ac_status=$?
  4266. grep -v '^ *+' conftest.er1 >conftest.err
  4267. rm -f conftest.er1
  4268. cat conftest.err >&5
  4269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4270. (exit $ac_status); } >/dev/null; then
  4271. if test -s conftest.err; then
  4272. ac_cpp_err=$ac_c_preproc_warn_flag
  4273. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4274. else
  4275. ac_cpp_err=
  4276. fi
  4277. else
  4278. ac_cpp_err=yes
  4279. fi
  4280. if test -z "$ac_cpp_err"; then
  4281. :
  4282. else
  4283. echo "$as_me: failed program was:" >&5
  4284. sed 's/^/| /' conftest.$ac_ext >&5
  4285. # Broken: fails on valid input.
  4286. continue
  4287. fi
  4288. rm -f conftest.err conftest.$ac_ext
  4289. # OK, works on sane cases. Now check whether non-existent headers
  4290. # can be detected and how.
  4291. cat >conftest.$ac_ext <<_ACEOF
  4292. /* confdefs.h. */
  4293. _ACEOF
  4294. cat confdefs.h >>conftest.$ac_ext
  4295. cat >>conftest.$ac_ext <<_ACEOF
  4296. /* end confdefs.h. */
  4297. #include <ac_nonexistent.h>
  4298. _ACEOF
  4299. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4300. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4301. ac_status=$?
  4302. grep -v '^ *+' conftest.er1 >conftest.err
  4303. rm -f conftest.er1
  4304. cat conftest.err >&5
  4305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4306. (exit $ac_status); } >/dev/null; then
  4307. if test -s conftest.err; then
  4308. ac_cpp_err=$ac_c_preproc_warn_flag
  4309. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4310. else
  4311. ac_cpp_err=
  4312. fi
  4313. else
  4314. ac_cpp_err=yes
  4315. fi
  4316. if test -z "$ac_cpp_err"; then
  4317. # Broken: success on invalid input.
  4318. continue
  4319. else
  4320. echo "$as_me: failed program was:" >&5
  4321. sed 's/^/| /' conftest.$ac_ext >&5
  4322. # Passes both tests.
  4323. ac_preproc_ok=:
  4324. break
  4325. fi
  4326. rm -f conftest.err conftest.$ac_ext
  4327. done
  4328. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4329. rm -f conftest.err conftest.$ac_ext
  4330. if $ac_preproc_ok; then
  4331. :
  4332. else
  4333. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4334. See \`config.log' for more details." >&5
  4335. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4336. See \`config.log' for more details." >&2;}
  4337. { (exit 1); exit 1; }; }
  4338. fi
  4339. ac_ext=c
  4340. ac_cpp='$CPP $CPPFLAGS'
  4341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4344. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4345. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4346. if test "${ac_cv_header_stdc+set}" = set; then
  4347. echo $ECHO_N "(cached) $ECHO_C" >&6
  4348. else
  4349. cat >conftest.$ac_ext <<_ACEOF
  4350. /* confdefs.h. */
  4351. _ACEOF
  4352. cat confdefs.h >>conftest.$ac_ext
  4353. cat >>conftest.$ac_ext <<_ACEOF
  4354. /* end confdefs.h. */
  4355. #include <stdlib.h>
  4356. #include <stdarg.h>
  4357. #include <string.h>
  4358. #include <float.h>
  4359. int
  4360. main ()
  4361. {
  4362. ;
  4363. return 0;
  4364. }
  4365. _ACEOF
  4366. rm -f conftest.$ac_objext
  4367. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4368. (eval $ac_compile) 2>conftest.er1
  4369. ac_status=$?
  4370. grep -v '^ *+' conftest.er1 >conftest.err
  4371. rm -f conftest.er1
  4372. cat conftest.err >&5
  4373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4374. (exit $ac_status); } &&
  4375. { ac_try='test -z "$ac_c_werror_flag"
  4376. || test ! -s conftest.err'
  4377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4378. (eval $ac_try) 2>&5
  4379. ac_status=$?
  4380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4381. (exit $ac_status); }; } &&
  4382. { ac_try='test -s conftest.$ac_objext'
  4383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4384. (eval $ac_try) 2>&5
  4385. ac_status=$?
  4386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4387. (exit $ac_status); }; }; then
  4388. ac_cv_header_stdc=yes
  4389. else
  4390. echo "$as_me: failed program was:" >&5
  4391. sed 's/^/| /' conftest.$ac_ext >&5
  4392. ac_cv_header_stdc=no
  4393. fi
  4394. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4395. if test $ac_cv_header_stdc = yes; then
  4396. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4397. cat >conftest.$ac_ext <<_ACEOF
  4398. /* confdefs.h. */
  4399. _ACEOF
  4400. cat confdefs.h >>conftest.$ac_ext
  4401. cat >>conftest.$ac_ext <<_ACEOF
  4402. /* end confdefs.h. */
  4403. #include <string.h>
  4404. _ACEOF
  4405. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4406. $EGREP "memchr" >/dev/null 2>&1; then
  4407. :
  4408. else
  4409. ac_cv_header_stdc=no
  4410. fi
  4411. rm -f conftest*
  4412. fi
  4413. if test $ac_cv_header_stdc = yes; then
  4414. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4415. cat >conftest.$ac_ext <<_ACEOF
  4416. /* confdefs.h. */
  4417. _ACEOF
  4418. cat confdefs.h >>conftest.$ac_ext
  4419. cat >>conftest.$ac_ext <<_ACEOF
  4420. /* end confdefs.h. */
  4421. #include <stdlib.h>
  4422. _ACEOF
  4423. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4424. $EGREP "free" >/dev/null 2>&1; then
  4425. :
  4426. else
  4427. ac_cv_header_stdc=no
  4428. fi
  4429. rm -f conftest*
  4430. fi
  4431. if test $ac_cv_header_stdc = yes; then
  4432. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4433. if test "$cross_compiling" = yes; then
  4434. :
  4435. else
  4436. cat >conftest.$ac_ext <<_ACEOF
  4437. /* confdefs.h. */
  4438. _ACEOF
  4439. cat confdefs.h >>conftest.$ac_ext
  4440. cat >>conftest.$ac_ext <<_ACEOF
  4441. /* end confdefs.h. */
  4442. #include <ctype.h>
  4443. #if ((' ' & 0x0FF) == 0x020)
  4444. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4445. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4446. #else
  4447. # define ISLOWER(c) \
  4448. (('a' <= (c) && (c) <= 'i') \
  4449. || ('j' <= (c) && (c) <= 'r') \
  4450. || ('s' <= (c) && (c) <= 'z'))
  4451. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4452. #endif
  4453. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4454. int
  4455. main ()
  4456. {
  4457. int i;
  4458. for (i = 0; i < 256; i++)
  4459. if (XOR (islower (i), ISLOWER (i))
  4460. || toupper (i) != TOUPPER (i))
  4461. exit(2);
  4462. exit (0);
  4463. }
  4464. _ACEOF
  4465. rm -f conftest$ac_exeext
  4466. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4467. (eval $ac_link) 2>&5
  4468. ac_status=$?
  4469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4470. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4472. (eval $ac_try) 2>&5
  4473. ac_status=$?
  4474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4475. (exit $ac_status); }; }; then
  4476. :
  4477. else
  4478. echo "$as_me: program exited with status $ac_status" >&5
  4479. echo "$as_me: failed program was:" >&5
  4480. sed 's/^/| /' conftest.$ac_ext >&5
  4481. ( exit $ac_status )
  4482. ac_cv_header_stdc=no
  4483. fi
  4484. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4485. fi
  4486. fi
  4487. fi
  4488. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4489. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4490. if test $ac_cv_header_stdc = yes; then
  4491. cat >>confdefs.h <<\_ACEOF
  4492. #define STDC_HEADERS 1
  4493. _ACEOF
  4494. fi
  4495. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4496. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4497. inttypes.h stdint.h unistd.h
  4498. do
  4499. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4500. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4501. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4502. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4503. echo $ECHO_N "(cached) $ECHO_C" >&6
  4504. else
  4505. cat >conftest.$ac_ext <<_ACEOF
  4506. /* confdefs.h. */
  4507. _ACEOF
  4508. cat confdefs.h >>conftest.$ac_ext
  4509. cat >>conftest.$ac_ext <<_ACEOF
  4510. /* end confdefs.h. */
  4511. $ac_includes_default
  4512. #include <$ac_header>
  4513. _ACEOF
  4514. rm -f conftest.$ac_objext
  4515. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4516. (eval $ac_compile) 2>conftest.er1
  4517. ac_status=$?
  4518. grep -v '^ *+' conftest.er1 >conftest.err
  4519. rm -f conftest.er1
  4520. cat conftest.err >&5
  4521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4522. (exit $ac_status); } &&
  4523. { ac_try='test -z "$ac_c_werror_flag"
  4524. || test ! -s conftest.err'
  4525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4526. (eval $ac_try) 2>&5
  4527. ac_status=$?
  4528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4529. (exit $ac_status); }; } &&
  4530. { ac_try='test -s conftest.$ac_objext'
  4531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4532. (eval $ac_try) 2>&5
  4533. ac_status=$?
  4534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4535. (exit $ac_status); }; }; then
  4536. eval "$as_ac_Header=yes"
  4537. else
  4538. echo "$as_me: failed program was:" >&5
  4539. sed 's/^/| /' conftest.$ac_ext >&5
  4540. eval "$as_ac_Header=no"
  4541. fi
  4542. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4543. fi
  4544. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4545. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4546. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4547. cat >>confdefs.h <<_ACEOF
  4548. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4549. _ACEOF
  4550. fi
  4551. done
  4552. for ac_header in dlfcn.h
  4553. do
  4554. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4555. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4556. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4557. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4558. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4559. echo $ECHO_N "(cached) $ECHO_C" >&6
  4560. fi
  4561. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4562. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4563. else
  4564. # Is the header compilable?
  4565. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4566. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4567. cat >conftest.$ac_ext <<_ACEOF
  4568. /* confdefs.h. */
  4569. _ACEOF
  4570. cat confdefs.h >>conftest.$ac_ext
  4571. cat >>conftest.$ac_ext <<_ACEOF
  4572. /* end confdefs.h. */
  4573. $ac_includes_default
  4574. #include <$ac_header>
  4575. _ACEOF
  4576. rm -f conftest.$ac_objext
  4577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4578. (eval $ac_compile) 2>conftest.er1
  4579. ac_status=$?
  4580. grep -v '^ *+' conftest.er1 >conftest.err
  4581. rm -f conftest.er1
  4582. cat conftest.err >&5
  4583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. (exit $ac_status); } &&
  4585. { ac_try='test -z "$ac_c_werror_flag"
  4586. || test ! -s conftest.err'
  4587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4588. (eval $ac_try) 2>&5
  4589. ac_status=$?
  4590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4591. (exit $ac_status); }; } &&
  4592. { ac_try='test -s conftest.$ac_objext'
  4593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4594. (eval $ac_try) 2>&5
  4595. ac_status=$?
  4596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4597. (exit $ac_status); }; }; then
  4598. ac_header_compiler=yes
  4599. else
  4600. echo "$as_me: failed program was:" >&5
  4601. sed 's/^/| /' conftest.$ac_ext >&5
  4602. ac_header_compiler=no
  4603. fi
  4604. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4605. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4606. echo "${ECHO_T}$ac_header_compiler" >&6
  4607. # Is the header present?
  4608. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4609. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4610. cat >conftest.$ac_ext <<_ACEOF
  4611. /* confdefs.h. */
  4612. _ACEOF
  4613. cat confdefs.h >>conftest.$ac_ext
  4614. cat >>conftest.$ac_ext <<_ACEOF
  4615. /* end confdefs.h. */
  4616. #include <$ac_header>
  4617. _ACEOF
  4618. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4619. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4620. ac_status=$?
  4621. grep -v '^ *+' conftest.er1 >conftest.err
  4622. rm -f conftest.er1
  4623. cat conftest.err >&5
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); } >/dev/null; then
  4626. if test -s conftest.err; then
  4627. ac_cpp_err=$ac_c_preproc_warn_flag
  4628. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4629. else
  4630. ac_cpp_err=
  4631. fi
  4632. else
  4633. ac_cpp_err=yes
  4634. fi
  4635. if test -z "$ac_cpp_err"; then
  4636. ac_header_preproc=yes
  4637. else
  4638. echo "$as_me: failed program was:" >&5
  4639. sed 's/^/| /' conftest.$ac_ext >&5
  4640. ac_header_preproc=no
  4641. fi
  4642. rm -f conftest.err conftest.$ac_ext
  4643. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4644. echo "${ECHO_T}$ac_header_preproc" >&6
  4645. # So? What about this header?
  4646. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4647. yes:no: )
  4648. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4649. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4650. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4651. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4652. ac_header_preproc=yes
  4653. ;;
  4654. no:yes:* )
  4655. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4656. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4657. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4658. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4659. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4660. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4661. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4662. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4663. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4664. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4665. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4666. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4667. (
  4668. cat <<\_ASBOX
  4669. ## ------------------------------------------ ##
  4670. ## Report this to http://bugzilla.redhat.com/ ##
  4671. ## ------------------------------------------ ##
  4672. _ASBOX
  4673. ) |
  4674. sed "s/^/$as_me: WARNING: /" >&2
  4675. ;;
  4676. esac
  4677. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4678. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4679. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4680. echo $ECHO_N "(cached) $ECHO_C" >&6
  4681. else
  4682. eval "$as_ac_Header=\$ac_header_preproc"
  4683. fi
  4684. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4685. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4686. fi
  4687. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4688. cat >>confdefs.h <<_ACEOF
  4689. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4690. _ACEOF
  4691. fi
  4692. done
  4693. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4694. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4695. (test "X$CXX" != "Xg++"))) ; then
  4696. ac_ext=cc
  4697. ac_cpp='$CXXCPP $CPPFLAGS'
  4698. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4699. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4700. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4701. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4702. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4703. if test -z "$CXXCPP"; then
  4704. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4705. echo $ECHO_N "(cached) $ECHO_C" >&6
  4706. else
  4707. # Double quotes because CXXCPP needs to be expanded
  4708. for CXXCPP in "$CXX -E" "/lib/cpp"
  4709. do
  4710. ac_preproc_ok=false
  4711. for ac_cxx_preproc_warn_flag in '' yes
  4712. do
  4713. # Use a header file that comes with gcc, so configuring glibc
  4714. # with a fresh cross-compiler works.
  4715. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4716. # <limits.h> exists even on freestanding compilers.
  4717. # On the NeXT, cc -E runs the code through the compiler's parser,
  4718. # not just through cpp. "Syntax error" is here to catch this case.
  4719. cat >conftest.$ac_ext <<_ACEOF
  4720. /* confdefs.h. */
  4721. _ACEOF
  4722. cat confdefs.h >>conftest.$ac_ext
  4723. cat >>conftest.$ac_ext <<_ACEOF
  4724. /* end confdefs.h. */
  4725. #ifdef __STDC__
  4726. # include <limits.h>
  4727. #else
  4728. # include <assert.h>
  4729. #endif
  4730. Syntax error
  4731. _ACEOF
  4732. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4733. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4734. ac_status=$?
  4735. grep -v '^ *+' conftest.er1 >conftest.err
  4736. rm -f conftest.er1
  4737. cat conftest.err >&5
  4738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4739. (exit $ac_status); } >/dev/null; then
  4740. if test -s conftest.err; then
  4741. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4742. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4743. else
  4744. ac_cpp_err=
  4745. fi
  4746. else
  4747. ac_cpp_err=yes
  4748. fi
  4749. if test -z "$ac_cpp_err"; then
  4750. :
  4751. else
  4752. echo "$as_me: failed program was:" >&5
  4753. sed 's/^/| /' conftest.$ac_ext >&5
  4754. # Broken: fails on valid input.
  4755. continue
  4756. fi
  4757. rm -f conftest.err conftest.$ac_ext
  4758. # OK, works on sane cases. Now check whether non-existent headers
  4759. # can be detected and how.
  4760. cat >conftest.$ac_ext <<_ACEOF
  4761. /* confdefs.h. */
  4762. _ACEOF
  4763. cat confdefs.h >>conftest.$ac_ext
  4764. cat >>conftest.$ac_ext <<_ACEOF
  4765. /* end confdefs.h. */
  4766. #include <ac_nonexistent.h>
  4767. _ACEOF
  4768. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4769. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4770. ac_status=$?
  4771. grep -v '^ *+' conftest.er1 >conftest.err
  4772. rm -f conftest.er1
  4773. cat conftest.err >&5
  4774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4775. (exit $ac_status); } >/dev/null; then
  4776. if test -s conftest.err; then
  4777. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4778. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4779. else
  4780. ac_cpp_err=
  4781. fi
  4782. else
  4783. ac_cpp_err=yes
  4784. fi
  4785. if test -z "$ac_cpp_err"; then
  4786. # Broken: success on invalid input.
  4787. continue
  4788. else
  4789. echo "$as_me: failed program was:" >&5
  4790. sed 's/^/| /' conftest.$ac_ext >&5
  4791. # Passes both tests.
  4792. ac_preproc_ok=:
  4793. break
  4794. fi
  4795. rm -f conftest.err conftest.$ac_ext
  4796. done
  4797. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4798. rm -f conftest.err conftest.$ac_ext
  4799. if $ac_preproc_ok; then
  4800. break
  4801. fi
  4802. done
  4803. ac_cv_prog_CXXCPP=$CXXCPP
  4804. fi
  4805. CXXCPP=$ac_cv_prog_CXXCPP
  4806. else
  4807. ac_cv_prog_CXXCPP=$CXXCPP
  4808. fi
  4809. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4810. echo "${ECHO_T}$CXXCPP" >&6
  4811. ac_preproc_ok=false
  4812. for ac_cxx_preproc_warn_flag in '' yes
  4813. do
  4814. # Use a header file that comes with gcc, so configuring glibc
  4815. # with a fresh cross-compiler works.
  4816. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4817. # <limits.h> exists even on freestanding compilers.
  4818. # On the NeXT, cc -E runs the code through the compiler's parser,
  4819. # not just through cpp. "Syntax error" is here to catch this case.
  4820. cat >conftest.$ac_ext <<_ACEOF
  4821. /* confdefs.h. */
  4822. _ACEOF
  4823. cat confdefs.h >>conftest.$ac_ext
  4824. cat >>conftest.$ac_ext <<_ACEOF
  4825. /* end confdefs.h. */
  4826. #ifdef __STDC__
  4827. # include <limits.h>
  4828. #else
  4829. # include <assert.h>
  4830. #endif
  4831. Syntax error
  4832. _ACEOF
  4833. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4834. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4835. ac_status=$?
  4836. grep -v '^ *+' conftest.er1 >conftest.err
  4837. rm -f conftest.er1
  4838. cat conftest.err >&5
  4839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4840. (exit $ac_status); } >/dev/null; then
  4841. if test -s conftest.err; then
  4842. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4843. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4844. else
  4845. ac_cpp_err=
  4846. fi
  4847. else
  4848. ac_cpp_err=yes
  4849. fi
  4850. if test -z "$ac_cpp_err"; then
  4851. :
  4852. else
  4853. echo "$as_me: failed program was:" >&5
  4854. sed 's/^/| /' conftest.$ac_ext >&5
  4855. # Broken: fails on valid input.
  4856. continue
  4857. fi
  4858. rm -f conftest.err conftest.$ac_ext
  4859. # OK, works on sane cases. Now check whether non-existent headers
  4860. # can be detected and how.
  4861. cat >conftest.$ac_ext <<_ACEOF
  4862. /* confdefs.h. */
  4863. _ACEOF
  4864. cat confdefs.h >>conftest.$ac_ext
  4865. cat >>conftest.$ac_ext <<_ACEOF
  4866. /* end confdefs.h. */
  4867. #include <ac_nonexistent.h>
  4868. _ACEOF
  4869. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4870. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4871. ac_status=$?
  4872. grep -v '^ *+' conftest.er1 >conftest.err
  4873. rm -f conftest.er1
  4874. cat conftest.err >&5
  4875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4876. (exit $ac_status); } >/dev/null; then
  4877. if test -s conftest.err; then
  4878. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4879. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4880. else
  4881. ac_cpp_err=
  4882. fi
  4883. else
  4884. ac_cpp_err=yes
  4885. fi
  4886. if test -z "$ac_cpp_err"; then
  4887. # Broken: success on invalid input.
  4888. continue
  4889. else
  4890. echo "$as_me: failed program was:" >&5
  4891. sed 's/^/| /' conftest.$ac_ext >&5
  4892. # Passes both tests.
  4893. ac_preproc_ok=:
  4894. break
  4895. fi
  4896. rm -f conftest.err conftest.$ac_ext
  4897. done
  4898. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4899. rm -f conftest.err conftest.$ac_ext
  4900. if $ac_preproc_ok; then
  4901. :
  4902. else
  4903. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4904. See \`config.log' for more details." >&5
  4905. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4906. See \`config.log' for more details." >&2;}
  4907. { (exit 1); exit 1; }; }
  4908. fi
  4909. ac_ext=cc
  4910. ac_cpp='$CXXCPP $CPPFLAGS'
  4911. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4912. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4913. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4914. fi
  4915. ac_ext=f
  4916. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4917. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4918. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4919. if test -n "$ac_tool_prefix"; then
  4920. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4921. do
  4922. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4923. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4924. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4925. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4926. if test "${ac_cv_prog_F77+set}" = set; then
  4927. echo $ECHO_N "(cached) $ECHO_C" >&6
  4928. else
  4929. if test -n "$F77"; then
  4930. ac_cv_prog_F77="$F77" # Let the user override the test.
  4931. else
  4932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4933. for as_dir in $PATH
  4934. do
  4935. IFS=$as_save_IFS
  4936. test -z "$as_dir" && as_dir=.
  4937. for ac_exec_ext in '' $ac_executable_extensions; do
  4938. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4939. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4940. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4941. break 2
  4942. fi
  4943. done
  4944. done
  4945. fi
  4946. fi
  4947. F77=$ac_cv_prog_F77
  4948. if test -n "$F77"; then
  4949. echo "$as_me:$LINENO: result: $F77" >&5
  4950. echo "${ECHO_T}$F77" >&6
  4951. else
  4952. echo "$as_me:$LINENO: result: no" >&5
  4953. echo "${ECHO_T}no" >&6
  4954. fi
  4955. test -n "$F77" && break
  4956. done
  4957. fi
  4958. if test -z "$F77"; then
  4959. ac_ct_F77=$F77
  4960. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4961. do
  4962. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4963. set dummy $ac_prog; ac_word=$2
  4964. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4965. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4966. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4967. echo $ECHO_N "(cached) $ECHO_C" >&6
  4968. else
  4969. if test -n "$ac_ct_F77"; then
  4970. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4971. else
  4972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4973. for as_dir in $PATH
  4974. do
  4975. IFS=$as_save_IFS
  4976. test -z "$as_dir" && as_dir=.
  4977. for ac_exec_ext in '' $ac_executable_extensions; do
  4978. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4979. ac_cv_prog_ac_ct_F77="$ac_prog"
  4980. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4981. break 2
  4982. fi
  4983. done
  4984. done
  4985. fi
  4986. fi
  4987. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4988. if test -n "$ac_ct_F77"; then
  4989. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4990. echo "${ECHO_T}$ac_ct_F77" >&6
  4991. else
  4992. echo "$as_me:$LINENO: result: no" >&5
  4993. echo "${ECHO_T}no" >&6
  4994. fi
  4995. test -n "$ac_ct_F77" && break
  4996. done
  4997. F77=$ac_ct_F77
  4998. fi
  4999. # Provide some information about the compiler.
  5000. echo "$as_me:5525:" \
  5001. "checking for Fortran 77 compiler version" >&5
  5002. ac_compiler=`set X $ac_compile; echo $2`
  5003. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5004. (eval $ac_compiler --version </dev/null >&5) 2>&5
  5005. ac_status=$?
  5006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5007. (exit $ac_status); }
  5008. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5009. (eval $ac_compiler -v </dev/null >&5) 2>&5
  5010. ac_status=$?
  5011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); }
  5013. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5014. (eval $ac_compiler -V </dev/null >&5) 2>&5
  5015. ac_status=$?
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); }
  5018. rm -f a.out
  5019. # If we don't use `.F' as extension, the preprocessor is not run on the
  5020. # input file. (Note that this only needs to work for GNU compilers.)
  5021. ac_save_ext=$ac_ext
  5022. ac_ext=F
  5023. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5024. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  5025. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5026. echo $ECHO_N "(cached) $ECHO_C" >&6
  5027. else
  5028. cat >conftest.$ac_ext <<_ACEOF
  5029. program main
  5030. #ifndef __GNUC__
  5031. choke me
  5032. #endif
  5033. end
  5034. _ACEOF
  5035. rm -f conftest.$ac_objext
  5036. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5037. (eval $ac_compile) 2>conftest.er1
  5038. ac_status=$?
  5039. grep -v '^ *+' conftest.er1 >conftest.err
  5040. rm -f conftest.er1
  5041. cat conftest.err >&5
  5042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5043. (exit $ac_status); } &&
  5044. { ac_try='test -z "$ac_f77_werror_flag"
  5045. || test ! -s conftest.err'
  5046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5047. (eval $ac_try) 2>&5
  5048. ac_status=$?
  5049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. (exit $ac_status); }; } &&
  5051. { ac_try='test -s conftest.$ac_objext'
  5052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5053. (eval $ac_try) 2>&5
  5054. ac_status=$?
  5055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5056. (exit $ac_status); }; }; then
  5057. ac_compiler_gnu=yes
  5058. else
  5059. echo "$as_me: failed program was:" >&5
  5060. sed 's/^/| /' conftest.$ac_ext >&5
  5061. ac_compiler_gnu=no
  5062. fi
  5063. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5064. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5065. fi
  5066. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5067. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5068. ac_ext=$ac_save_ext
  5069. ac_test_FFLAGS=${FFLAGS+set}
  5070. ac_save_FFLAGS=$FFLAGS
  5071. FFLAGS=
  5072. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5073. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5074. if test "${ac_cv_prog_f77_g+set}" = set; then
  5075. echo $ECHO_N "(cached) $ECHO_C" >&6
  5076. else
  5077. FFLAGS=-g
  5078. cat >conftest.$ac_ext <<_ACEOF
  5079. program main
  5080. end
  5081. _ACEOF
  5082. rm -f conftest.$ac_objext
  5083. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5084. (eval $ac_compile) 2>conftest.er1
  5085. ac_status=$?
  5086. grep -v '^ *+' conftest.er1 >conftest.err
  5087. rm -f conftest.er1
  5088. cat conftest.err >&5
  5089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5090. (exit $ac_status); } &&
  5091. { ac_try='test -z "$ac_f77_werror_flag"
  5092. || test ! -s conftest.err'
  5093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5094. (eval $ac_try) 2>&5
  5095. ac_status=$?
  5096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5097. (exit $ac_status); }; } &&
  5098. { ac_try='test -s conftest.$ac_objext'
  5099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5100. (eval $ac_try) 2>&5
  5101. ac_status=$?
  5102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5103. (exit $ac_status); }; }; then
  5104. ac_cv_prog_f77_g=yes
  5105. else
  5106. echo "$as_me: failed program was:" >&5
  5107. sed 's/^/| /' conftest.$ac_ext >&5
  5108. ac_cv_prog_f77_g=no
  5109. fi
  5110. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5111. fi
  5112. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5113. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5114. if test "$ac_test_FFLAGS" = set; then
  5115. FFLAGS=$ac_save_FFLAGS
  5116. elif test $ac_cv_prog_f77_g = yes; then
  5117. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5118. FFLAGS="-g -O2"
  5119. else
  5120. FFLAGS="-g"
  5121. fi
  5122. else
  5123. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5124. FFLAGS="-O2"
  5125. else
  5126. FFLAGS=
  5127. fi
  5128. fi
  5129. G77=`test $ac_compiler_gnu = yes && echo yes`
  5130. ac_ext=c
  5131. ac_cpp='$CPP $CPPFLAGS'
  5132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5135. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5136. # find the maximum length of command line arguments
  5137. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5138. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5139. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5140. echo $ECHO_N "(cached) $ECHO_C" >&6
  5141. else
  5142. i=0
  5143. teststring="ABCD"
  5144. case $build_os in
  5145. msdosdjgpp*)
  5146. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5147. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5148. # during glob expansion). Even if it were fixed, the result of this
  5149. # check would be larger than it should be.
  5150. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5151. ;;
  5152. gnu*)
  5153. # Under GNU Hurd, this test is not required because there is
  5154. # no limit to the length of command line arguments.
  5155. # Libtool will interpret -1 as no limit whatsoever
  5156. lt_cv_sys_max_cmd_len=-1;
  5157. ;;
  5158. cygwin* | mingw*)
  5159. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5160. # about 5 minutes as the teststring grows exponentially.
  5161. # Worse, since 9x/ME are not pre-emptively multitasking,
  5162. # you end up with a "frozen" computer, even though with patience
  5163. # the test eventually succeeds (with a max line length of 256k).
  5164. # Instead, let's just punt: use the minimum linelength reported by
  5165. # all of the supported platforms: 8192 (on NT/2K/XP).
  5166. lt_cv_sys_max_cmd_len=8192;
  5167. ;;
  5168. amigaos*)
  5169. # On AmigaOS with pdksh, this test takes hours, literally.
  5170. # So we just punt and use a minimum line length of 8192.
  5171. lt_cv_sys_max_cmd_len=8192;
  5172. ;;
  5173. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5174. # This has been around since 386BSD, at least. Likely further.
  5175. if test -x /sbin/sysctl; then
  5176. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5177. elif test -x /usr/sbin/sysctl; then
  5178. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5179. else
  5180. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5181. fi
  5182. # And add a safety zone
  5183. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5184. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5185. ;;
  5186. interix*)
  5187. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5188. lt_cv_sys_max_cmd_len=196608
  5189. ;;
  5190. osf*)
  5191. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5192. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5193. # nice to cause kernel panics so lets avoid the loop below.
  5194. # First set a reasonable default.
  5195. lt_cv_sys_max_cmd_len=16384
  5196. #
  5197. if test -x /sbin/sysconfig; then
  5198. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5199. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5200. esac
  5201. fi
  5202. ;;
  5203. sco3.2v5*)
  5204. lt_cv_sys_max_cmd_len=102400
  5205. ;;
  5206. sysv5* | sco5v6* | sysv4.2uw2*)
  5207. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5208. if test -n "$kargmax"; then
  5209. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5210. else
  5211. lt_cv_sys_max_cmd_len=32768
  5212. fi
  5213. ;;
  5214. *)
  5215. # If test is not a shell built-in, we'll probably end up computing a
  5216. # maximum length that is only half of the actual maximum length, but
  5217. # we can't tell.
  5218. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5219. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5220. = "XX$teststring") >/dev/null 2>&1 &&
  5221. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5222. lt_cv_sys_max_cmd_len=$new_result &&
  5223. test $i != 17 # 1/2 MB should be enough
  5224. do
  5225. i=`expr $i + 1`
  5226. teststring=$teststring$teststring
  5227. done
  5228. teststring=
  5229. # Add a significant safety factor because C++ compilers can tack on massive
  5230. # amounts of additional arguments before passing them to the linker.
  5231. # It appears as though 1/2 is a usable value.
  5232. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5233. ;;
  5234. esac
  5235. fi
  5236. if test -n $lt_cv_sys_max_cmd_len ; then
  5237. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5238. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5239. else
  5240. echo "$as_me:$LINENO: result: none" >&5
  5241. echo "${ECHO_T}none" >&6
  5242. fi
  5243. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5244. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5245. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5246. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5247. echo $ECHO_N "(cached) $ECHO_C" >&6
  5248. else
  5249. # These are sane defaults that work on at least a few old systems.
  5250. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5251. # Character class describing NM global symbol codes.
  5252. symcode='[BCDEGRST]'
  5253. # Regexp to match symbols that can be accessed directly from C.
  5254. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5255. # Transform an extracted symbol line into a proper C declaration
  5256. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5257. # Transform an extracted symbol line into symbol name and symbol address
  5258. 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'"
  5259. # Define system-specific variables.
  5260. case $host_os in
  5261. aix*)
  5262. symcode='[BCDT]'
  5263. ;;
  5264. cygwin* | mingw* | pw32*)
  5265. symcode='[ABCDGISTW]'
  5266. ;;
  5267. hpux*) # Its linker distinguishes data from code symbols
  5268. if test "$host_cpu" = ia64; then
  5269. symcode='[ABCDEGRST]'
  5270. fi
  5271. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5272. 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'"
  5273. ;;
  5274. linux*)
  5275. if test "$host_cpu" = ia64; then
  5276. symcode='[ABCDGIRSTW]'
  5277. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5278. 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'"
  5279. fi
  5280. ;;
  5281. irix* | nonstopux*)
  5282. symcode='[BCDEGRST]'
  5283. ;;
  5284. osf*)
  5285. symcode='[BCDEGQRST]'
  5286. ;;
  5287. solaris*)
  5288. symcode='[BDRT]'
  5289. ;;
  5290. sco3.2v5*)
  5291. symcode='[DT]'
  5292. ;;
  5293. sysv4.2uw2*)
  5294. symcode='[DT]'
  5295. ;;
  5296. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5297. symcode='[ABDT]'
  5298. ;;
  5299. sysv4)
  5300. symcode='[DFNSTU]'
  5301. ;;
  5302. esac
  5303. # Handle CRLF in mingw tool chain
  5304. opt_cr=
  5305. case $build_os in
  5306. mingw*)
  5307. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5308. ;;
  5309. esac
  5310. # If we're using GNU nm, then use its standard symbol codes.
  5311. case `$NM -V 2>&1` in
  5312. *GNU* | *'with BFD'*)
  5313. symcode='[ABCDGIRSTW]' ;;
  5314. esac
  5315. # Try without a prefix undercore, then with it.
  5316. for ac_symprfx in "" "_"; do
  5317. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5318. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5319. # Write the raw and C identifiers.
  5320. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5321. # Check to see that the pipe works correctly.
  5322. pipe_works=no
  5323. rm -f conftest*
  5324. cat > conftest.$ac_ext <<EOF
  5325. #ifdef __cplusplus
  5326. extern "C" {
  5327. #endif
  5328. char nm_test_var;
  5329. void nm_test_func(){}
  5330. #ifdef __cplusplus
  5331. }
  5332. #endif
  5333. int main(){nm_test_var='a';nm_test_func();return(0);}
  5334. EOF
  5335. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5336. (eval $ac_compile) 2>&5
  5337. ac_status=$?
  5338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5339. (exit $ac_status); }; then
  5340. # Now try to grab the symbols.
  5341. nlist=conftest.nm
  5342. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5343. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5344. ac_status=$?
  5345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346. (exit $ac_status); } && test -s "$nlist"; then
  5347. # Try sorting and uniquifying the output.
  5348. if sort "$nlist" | uniq > "$nlist"T; then
  5349. mv -f "$nlist"T "$nlist"
  5350. else
  5351. rm -f "$nlist"T
  5352. fi
  5353. # Make sure that we snagged all the symbols we need.
  5354. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5355. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5356. cat <<EOF > conftest.$ac_ext
  5357. #ifdef __cplusplus
  5358. extern "C" {
  5359. #endif
  5360. EOF
  5361. # Now generate the symbol file.
  5362. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5363. cat <<EOF >> conftest.$ac_ext
  5364. #if defined (__STDC__) && __STDC__
  5365. # define lt_ptr_t void *
  5366. #else
  5367. # define lt_ptr_t char *
  5368. # define const
  5369. #endif
  5370. /* The mapping between symbol names and symbols. */
  5371. const struct {
  5372. const char *name;
  5373. lt_ptr_t address;
  5374. }
  5375. lt_preloaded_symbols[] =
  5376. {
  5377. EOF
  5378. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5379. cat <<\EOF >> conftest.$ac_ext
  5380. {0, (lt_ptr_t) 0}
  5381. };
  5382. #ifdef __cplusplus
  5383. }
  5384. #endif
  5385. EOF
  5386. # Now try linking the two files.
  5387. mv conftest.$ac_objext conftstm.$ac_objext
  5388. lt_save_LIBS="$LIBS"
  5389. lt_save_CFLAGS="$CFLAGS"
  5390. LIBS="conftstm.$ac_objext"
  5391. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5392. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5393. (eval $ac_link) 2>&5
  5394. ac_status=$?
  5395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5396. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5397. pipe_works=yes
  5398. fi
  5399. LIBS="$lt_save_LIBS"
  5400. CFLAGS="$lt_save_CFLAGS"
  5401. else
  5402. echo "cannot find nm_test_func in $nlist" >&5
  5403. fi
  5404. else
  5405. echo "cannot find nm_test_var in $nlist" >&5
  5406. fi
  5407. else
  5408. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5409. fi
  5410. else
  5411. echo "$progname: failed program was:" >&5
  5412. cat conftest.$ac_ext >&5
  5413. fi
  5414. rm -f conftest* conftst*
  5415. # Do not use the global_symbol_pipe unless it works.
  5416. if test "$pipe_works" = yes; then
  5417. break
  5418. else
  5419. lt_cv_sys_global_symbol_pipe=
  5420. fi
  5421. done
  5422. fi
  5423. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5424. lt_cv_sys_global_symbol_to_cdecl=
  5425. fi
  5426. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5427. echo "$as_me:$LINENO: result: failed" >&5
  5428. echo "${ECHO_T}failed" >&6
  5429. else
  5430. echo "$as_me:$LINENO: result: ok" >&5
  5431. echo "${ECHO_T}ok" >&6
  5432. fi
  5433. echo "$as_me:$LINENO: checking for objdir" >&5
  5434. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5435. if test "${lt_cv_objdir+set}" = set; then
  5436. echo $ECHO_N "(cached) $ECHO_C" >&6
  5437. else
  5438. rm -f .libs 2>/dev/null
  5439. mkdir .libs 2>/dev/null
  5440. if test -d .libs; then
  5441. lt_cv_objdir=.libs
  5442. else
  5443. # MS-DOS does not allow filenames that begin with a dot.
  5444. lt_cv_objdir=_libs
  5445. fi
  5446. rmdir .libs 2>/dev/null
  5447. fi
  5448. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5449. echo "${ECHO_T}$lt_cv_objdir" >&6
  5450. objdir=$lt_cv_objdir
  5451. case $host_os in
  5452. aix3*)
  5453. # AIX sometimes has problems with the GCC collect2 program. For some
  5454. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5455. # vanish in a puff of smoke.
  5456. if test "X${COLLECT_NAMES+set}" != Xset; then
  5457. COLLECT_NAMES=
  5458. export COLLECT_NAMES
  5459. fi
  5460. ;;
  5461. esac
  5462. # Sed substitution that helps us do robust quoting. It backslashifies
  5463. # metacharacters that are still active within double-quoted strings.
  5464. Xsed='sed -e 1s/^X//'
  5465. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5466. # Same as above, but do not quote variable references.
  5467. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5468. # Sed substitution to delay expansion of an escaped shell variable in a
  5469. # double_quote_subst'ed string.
  5470. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5471. # Sed substitution to avoid accidental globbing in evaled expressions
  5472. no_glob_subst='s/\*/\\\*/g'
  5473. # Constants:
  5474. rm="rm -f"
  5475. # Global variables:
  5476. default_ofile=libtool
  5477. can_build_shared=yes
  5478. # All known linkers require a `.a' archive for static linking (except MSVC,
  5479. # which needs '.lib').
  5480. libext=a
  5481. ltmain="$ac_aux_dir/ltmain.sh"
  5482. ofile="$default_ofile"
  5483. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5484. if test -n "$ac_tool_prefix"; then
  5485. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5486. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5487. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5488. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5489. if test "${ac_cv_prog_AR+set}" = set; then
  5490. echo $ECHO_N "(cached) $ECHO_C" >&6
  5491. else
  5492. if test -n "$AR"; then
  5493. ac_cv_prog_AR="$AR" # Let the user override the test.
  5494. else
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5502. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5503. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. fi
  5509. fi
  5510. AR=$ac_cv_prog_AR
  5511. if test -n "$AR"; then
  5512. echo "$as_me:$LINENO: result: $AR" >&5
  5513. echo "${ECHO_T}$AR" >&6
  5514. else
  5515. echo "$as_me:$LINENO: result: no" >&5
  5516. echo "${ECHO_T}no" >&6
  5517. fi
  5518. fi
  5519. if test -z "$ac_cv_prog_AR"; then
  5520. ac_ct_AR=$AR
  5521. # Extract the first word of "ar", so it can be a program name with args.
  5522. set dummy ar; ac_word=$2
  5523. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5524. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5525. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5526. echo $ECHO_N "(cached) $ECHO_C" >&6
  5527. else
  5528. if test -n "$ac_ct_AR"; then
  5529. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5530. else
  5531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5532. for as_dir in $PATH
  5533. do
  5534. IFS=$as_save_IFS
  5535. test -z "$as_dir" && as_dir=.
  5536. for ac_exec_ext in '' $ac_executable_extensions; do
  5537. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5538. ac_cv_prog_ac_ct_AR="ar"
  5539. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5540. break 2
  5541. fi
  5542. done
  5543. done
  5544. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5545. fi
  5546. fi
  5547. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5548. if test -n "$ac_ct_AR"; then
  5549. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5550. echo "${ECHO_T}$ac_ct_AR" >&6
  5551. else
  5552. echo "$as_me:$LINENO: result: no" >&5
  5553. echo "${ECHO_T}no" >&6
  5554. fi
  5555. AR=$ac_ct_AR
  5556. else
  5557. AR="$ac_cv_prog_AR"
  5558. fi
  5559. if test -n "$ac_tool_prefix"; then
  5560. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5561. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5562. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5563. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5564. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5565. echo $ECHO_N "(cached) $ECHO_C" >&6
  5566. else
  5567. if test -n "$RANLIB"; then
  5568. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5569. else
  5570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5571. for as_dir in $PATH
  5572. do
  5573. IFS=$as_save_IFS
  5574. test -z "$as_dir" && as_dir=.
  5575. for ac_exec_ext in '' $ac_executable_extensions; do
  5576. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5577. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5578. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5579. break 2
  5580. fi
  5581. done
  5582. done
  5583. fi
  5584. fi
  5585. RANLIB=$ac_cv_prog_RANLIB
  5586. if test -n "$RANLIB"; then
  5587. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5588. echo "${ECHO_T}$RANLIB" >&6
  5589. else
  5590. echo "$as_me:$LINENO: result: no" >&5
  5591. echo "${ECHO_T}no" >&6
  5592. fi
  5593. fi
  5594. if test -z "$ac_cv_prog_RANLIB"; then
  5595. ac_ct_RANLIB=$RANLIB
  5596. # Extract the first word of "ranlib", so it can be a program name with args.
  5597. set dummy ranlib; ac_word=$2
  5598. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5599. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5600. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5601. echo $ECHO_N "(cached) $ECHO_C" >&6
  5602. else
  5603. if test -n "$ac_ct_RANLIB"; then
  5604. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5605. else
  5606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5607. for as_dir in $PATH
  5608. do
  5609. IFS=$as_save_IFS
  5610. test -z "$as_dir" && as_dir=.
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5613. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5614. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5615. break 2
  5616. fi
  5617. done
  5618. done
  5619. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5620. fi
  5621. fi
  5622. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5623. if test -n "$ac_ct_RANLIB"; then
  5624. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5625. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5626. else
  5627. echo "$as_me:$LINENO: result: no" >&5
  5628. echo "${ECHO_T}no" >&6
  5629. fi
  5630. RANLIB=$ac_ct_RANLIB
  5631. else
  5632. RANLIB="$ac_cv_prog_RANLIB"
  5633. fi
  5634. if test -n "$ac_tool_prefix"; then
  5635. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5636. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5637. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5638. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5639. if test "${ac_cv_prog_STRIP+set}" = set; then
  5640. echo $ECHO_N "(cached) $ECHO_C" >&6
  5641. else
  5642. if test -n "$STRIP"; then
  5643. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5644. else
  5645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5646. for as_dir in $PATH
  5647. do
  5648. IFS=$as_save_IFS
  5649. test -z "$as_dir" && as_dir=.
  5650. for ac_exec_ext in '' $ac_executable_extensions; do
  5651. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5652. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5653. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5654. break 2
  5655. fi
  5656. done
  5657. done
  5658. fi
  5659. fi
  5660. STRIP=$ac_cv_prog_STRIP
  5661. if test -n "$STRIP"; then
  5662. echo "$as_me:$LINENO: result: $STRIP" >&5
  5663. echo "${ECHO_T}$STRIP" >&6
  5664. else
  5665. echo "$as_me:$LINENO: result: no" >&5
  5666. echo "${ECHO_T}no" >&6
  5667. fi
  5668. fi
  5669. if test -z "$ac_cv_prog_STRIP"; then
  5670. ac_ct_STRIP=$STRIP
  5671. # Extract the first word of "strip", so it can be a program name with args.
  5672. set dummy strip; ac_word=$2
  5673. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5674. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5675. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5676. echo $ECHO_N "(cached) $ECHO_C" >&6
  5677. else
  5678. if test -n "$ac_ct_STRIP"; then
  5679. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5688. ac_cv_prog_ac_ct_STRIP="strip"
  5689. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5695. fi
  5696. fi
  5697. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5698. if test -n "$ac_ct_STRIP"; then
  5699. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5700. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5701. else
  5702. echo "$as_me:$LINENO: result: no" >&5
  5703. echo "${ECHO_T}no" >&6
  5704. fi
  5705. STRIP=$ac_ct_STRIP
  5706. else
  5707. STRIP="$ac_cv_prog_STRIP"
  5708. fi
  5709. old_CC="$CC"
  5710. old_CFLAGS="$CFLAGS"
  5711. # Set sane defaults for various variables
  5712. test -z "$AR" && AR=ar
  5713. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5714. test -z "$AS" && AS=as
  5715. test -z "$CC" && CC=cc
  5716. test -z "$LTCC" && LTCC=$CC
  5717. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5718. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5719. test -z "$LD" && LD=ld
  5720. test -z "$LN_S" && LN_S="ln -s"
  5721. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5722. test -z "$NM" && NM=nm
  5723. test -z "$SED" && SED=sed
  5724. test -z "$OBJDUMP" && OBJDUMP=objdump
  5725. test -z "$RANLIB" && RANLIB=:
  5726. test -z "$STRIP" && STRIP=:
  5727. test -z "$ac_objext" && ac_objext=o
  5728. # Determine commands to create old-style static archives.
  5729. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5730. old_postinstall_cmds='chmod 644 $oldlib'
  5731. old_postuninstall_cmds=
  5732. if test -n "$RANLIB"; then
  5733. case $host_os in
  5734. openbsd*)
  5735. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5736. ;;
  5737. *)
  5738. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5739. ;;
  5740. esac
  5741. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5742. fi
  5743. for cc_temp in $compiler""; do
  5744. case $cc_temp in
  5745. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5746. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5747. \-*) ;;
  5748. *) break;;
  5749. esac
  5750. done
  5751. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5752. # Only perform the check for file, if the check method requires it
  5753. case $deplibs_check_method in
  5754. file_magic*)
  5755. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5756. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5757. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5758. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5759. echo $ECHO_N "(cached) $ECHO_C" >&6
  5760. else
  5761. case $MAGIC_CMD in
  5762. [\\/*] | ?:[\\/]*)
  5763. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5764. ;;
  5765. *)
  5766. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5767. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5768. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5769. for ac_dir in $ac_dummy; do
  5770. IFS="$lt_save_ifs"
  5771. test -z "$ac_dir" && ac_dir=.
  5772. if test -f $ac_dir/${ac_tool_prefix}file; then
  5773. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5774. if test -n "$file_magic_test_file"; then
  5775. case $deplibs_check_method in
  5776. "file_magic "*)
  5777. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5778. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5779. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5780. $EGREP "$file_magic_regex" > /dev/null; then
  5781. :
  5782. else
  5783. cat <<EOF 1>&2
  5784. *** Warning: the command libtool uses to detect shared libraries,
  5785. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5786. *** The result is that libtool may fail to recognize shared libraries
  5787. *** as such. This will affect the creation of libtool libraries that
  5788. *** depend on shared libraries, but programs linked with such libtool
  5789. *** libraries will work regardless of this problem. Nevertheless, you
  5790. *** may want to report the problem to your system manager and/or to
  5791. *** [email protected]
  5792. EOF
  5793. fi ;;
  5794. esac
  5795. fi
  5796. break
  5797. fi
  5798. done
  5799. IFS="$lt_save_ifs"
  5800. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5801. ;;
  5802. esac
  5803. fi
  5804. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5805. if test -n "$MAGIC_CMD"; then
  5806. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5807. echo "${ECHO_T}$MAGIC_CMD" >&6
  5808. else
  5809. echo "$as_me:$LINENO: result: no" >&5
  5810. echo "${ECHO_T}no" >&6
  5811. fi
  5812. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5813. if test -n "$ac_tool_prefix"; then
  5814. echo "$as_me:$LINENO: checking for file" >&5
  5815. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5816. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5817. echo $ECHO_N "(cached) $ECHO_C" >&6
  5818. else
  5819. case $MAGIC_CMD in
  5820. [\\/*] | ?:[\\/]*)
  5821. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5822. ;;
  5823. *)
  5824. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5825. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5826. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5827. for ac_dir in $ac_dummy; do
  5828. IFS="$lt_save_ifs"
  5829. test -z "$ac_dir" && ac_dir=.
  5830. if test -f $ac_dir/file; then
  5831. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5832. if test -n "$file_magic_test_file"; then
  5833. case $deplibs_check_method in
  5834. "file_magic "*)
  5835. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5836. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5837. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5838. $EGREP "$file_magic_regex" > /dev/null; then
  5839. :
  5840. else
  5841. cat <<EOF 1>&2
  5842. *** Warning: the command libtool uses to detect shared libraries,
  5843. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5844. *** The result is that libtool may fail to recognize shared libraries
  5845. *** as such. This will affect the creation of libtool libraries that
  5846. *** depend on shared libraries, but programs linked with such libtool
  5847. *** libraries will work regardless of this problem. Nevertheless, you
  5848. *** may want to report the problem to your system manager and/or to
  5849. *** [email protected]
  5850. EOF
  5851. fi ;;
  5852. esac
  5853. fi
  5854. break
  5855. fi
  5856. done
  5857. IFS="$lt_save_ifs"
  5858. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5859. ;;
  5860. esac
  5861. fi
  5862. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5863. if test -n "$MAGIC_CMD"; then
  5864. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5865. echo "${ECHO_T}$MAGIC_CMD" >&6
  5866. else
  5867. echo "$as_me:$LINENO: result: no" >&5
  5868. echo "${ECHO_T}no" >&6
  5869. fi
  5870. else
  5871. MAGIC_CMD=:
  5872. fi
  5873. fi
  5874. fi
  5875. ;;
  5876. esac
  5877. enable_dlopen=no
  5878. enable_win32_dll=no
  5879. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5880. if test "${enable_libtool_lock+set}" = set; then
  5881. enableval="$enable_libtool_lock"
  5882. fi;
  5883. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5884. # Check whether --with-pic or --without-pic was given.
  5885. if test "${with_pic+set}" = set; then
  5886. withval="$with_pic"
  5887. pic_mode="$withval"
  5888. else
  5889. pic_mode=default
  5890. fi;
  5891. test -z "$pic_mode" && pic_mode=default
  5892. # Use C for the default configuration in the libtool script
  5893. tagname=
  5894. lt_save_CC="$CC"
  5895. ac_ext=c
  5896. ac_cpp='$CPP $CPPFLAGS'
  5897. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5898. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5899. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5900. # Source file extension for C test sources.
  5901. ac_ext=c
  5902. # Object file extension for compiled C test sources.
  5903. objext=o
  5904. objext=$objext
  5905. # Code to be used in simple compile tests
  5906. lt_simple_compile_test_code="int some_variable = 0;\n"
  5907. # Code to be used in simple link tests
  5908. lt_simple_link_test_code='int main(){return(0);}\n'
  5909. # If no C compiler was specified, use CC.
  5910. LTCC=${LTCC-"$CC"}
  5911. # If no C compiler flags were specified, use CFLAGS.
  5912. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5913. # Allow CC to be a program name with arguments.
  5914. compiler=$CC
  5915. # save warnings/boilerplate of simple test code
  5916. ac_outfile=conftest.$ac_objext
  5917. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5918. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5919. _lt_compiler_boilerplate=`cat conftest.err`
  5920. $rm conftest*
  5921. ac_outfile=conftest.$ac_objext
  5922. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5923. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5924. _lt_linker_boilerplate=`cat conftest.err`
  5925. $rm conftest*
  5926. lt_prog_compiler_no_builtin_flag=
  5927. if test "$GCC" = yes; then
  5928. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5929. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5930. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5931. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5932. echo $ECHO_N "(cached) $ECHO_C" >&6
  5933. else
  5934. lt_cv_prog_compiler_rtti_exceptions=no
  5935. ac_outfile=conftest.$ac_objext
  5936. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5937. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5938. # Insert the option either (1) after the last *FLAGS variable, or
  5939. # (2) before a word containing "conftest.", or (3) at the end.
  5940. # Note that $ac_compile itself does not contain backslashes and begins
  5941. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5942. # The option is referenced via a variable to avoid confusing sed.
  5943. lt_compile=`echo "$ac_compile" | $SED \
  5944. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5945. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5946. -e 's:$: $lt_compiler_flag:'`
  5947. (eval echo "\"\$as_me:6588: $lt_compile\"" >&5)
  5948. (eval "$lt_compile" 2>conftest.err)
  5949. ac_status=$?
  5950. cat conftest.err >&5
  5951. echo "$as_me:6592: \$? = $ac_status" >&5
  5952. if (exit $ac_status) && test -s "$ac_outfile"; then
  5953. # The compiler can only warn and ignore the option if not recognized
  5954. # So say no if there are warnings other than the usual output.
  5955. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5956. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5957. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5958. lt_cv_prog_compiler_rtti_exceptions=yes
  5959. fi
  5960. fi
  5961. $rm conftest*
  5962. fi
  5963. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5964. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5965. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5966. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5967. else
  5968. :
  5969. fi
  5970. fi
  5971. lt_prog_compiler_wl=
  5972. lt_prog_compiler_pic=
  5973. lt_prog_compiler_static=
  5974. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5975. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5976. if test "$GCC" = yes; then
  5977. lt_prog_compiler_wl='-Wl,'
  5978. lt_prog_compiler_static='-static'
  5979. case $host_os in
  5980. aix*)
  5981. # All AIX code is PIC.
  5982. if test "$host_cpu" = ia64; then
  5983. # AIX 5 now supports IA64 processor
  5984. lt_prog_compiler_static='-Bstatic'
  5985. fi
  5986. ;;
  5987. amigaos*)
  5988. # FIXME: we need at least 68020 code to build shared libraries, but
  5989. # adding the `-m68020' flag to GCC prevents building anything better,
  5990. # like `-m68040'.
  5991. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5992. ;;
  5993. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5994. # PIC is the default for these OSes.
  5995. ;;
  5996. mingw* | pw32* | os2*)
  5997. # This hack is so that the source file can tell whether it is being
  5998. # built for inclusion in a dll (and should export symbols for example).
  5999. lt_prog_compiler_pic='-DDLL_EXPORT'
  6000. ;;
  6001. darwin* | rhapsody*)
  6002. # PIC is the default on this platform
  6003. # Common symbols not allowed in MH_DYLIB files
  6004. lt_prog_compiler_pic='-fno-common'
  6005. ;;
  6006. interix3*)
  6007. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6008. # Instead, we relocate shared libraries at runtime.
  6009. ;;
  6010. msdosdjgpp*)
  6011. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6012. # on systems that don't support them.
  6013. lt_prog_compiler_can_build_shared=no
  6014. enable_shared=no
  6015. ;;
  6016. sysv4*MP*)
  6017. if test -d /usr/nec; then
  6018. lt_prog_compiler_pic=-Kconform_pic
  6019. fi
  6020. ;;
  6021. hpux*)
  6022. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6023. # not for PA HP-UX.
  6024. case $host_cpu in
  6025. hppa*64*|ia64*)
  6026. # +Z the default
  6027. ;;
  6028. *)
  6029. lt_prog_compiler_pic='-fPIC'
  6030. ;;
  6031. esac
  6032. ;;
  6033. *)
  6034. lt_prog_compiler_pic='-fPIC'
  6035. ;;
  6036. esac
  6037. else
  6038. # PORTME Check for flag to pass linker flags through the system compiler.
  6039. case $host_os in
  6040. aix*)
  6041. lt_prog_compiler_wl='-Wl,'
  6042. if test "$host_cpu" = ia64; then
  6043. # AIX 5 now supports IA64 processor
  6044. lt_prog_compiler_static='-Bstatic'
  6045. else
  6046. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6047. fi
  6048. ;;
  6049. darwin*)
  6050. # PIC is the default on this platform
  6051. # Common symbols not allowed in MH_DYLIB files
  6052. case $cc_basename in
  6053. xlc*)
  6054. lt_prog_compiler_pic='-qnocommon'
  6055. lt_prog_compiler_wl='-Wl,'
  6056. ;;
  6057. esac
  6058. ;;
  6059. mingw* | pw32* | os2*)
  6060. # This hack is so that the source file can tell whether it is being
  6061. # built for inclusion in a dll (and should export symbols for example).
  6062. lt_prog_compiler_pic='-DDLL_EXPORT'
  6063. ;;
  6064. hpux9* | hpux10* | hpux11*)
  6065. lt_prog_compiler_wl='-Wl,'
  6066. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6067. # not for PA HP-UX.
  6068. case $host_cpu in
  6069. hppa*64*|ia64*)
  6070. # +Z the default
  6071. ;;
  6072. *)
  6073. lt_prog_compiler_pic='+Z'
  6074. ;;
  6075. esac
  6076. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6077. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6078. ;;
  6079. irix5* | irix6* | nonstopux*)
  6080. lt_prog_compiler_wl='-Wl,'
  6081. # PIC (with -KPIC) is the default.
  6082. lt_prog_compiler_static='-non_shared'
  6083. ;;
  6084. newsos6)
  6085. lt_prog_compiler_pic='-KPIC'
  6086. lt_prog_compiler_static='-Bstatic'
  6087. ;;
  6088. linux*)
  6089. case $cc_basename in
  6090. icc* | ecc*)
  6091. lt_prog_compiler_wl='-Wl,'
  6092. lt_prog_compiler_pic='-KPIC'
  6093. lt_prog_compiler_static='-static'
  6094. ;;
  6095. pgcc* | pgf77* | pgf90* | pgf95*)
  6096. # Portland Group compilers (*not* the Pentium gcc compiler,
  6097. # which looks to be a dead project)
  6098. lt_prog_compiler_wl='-Wl,'
  6099. lt_prog_compiler_pic='-fpic'
  6100. lt_prog_compiler_static='-Bstatic'
  6101. ;;
  6102. ccc*)
  6103. lt_prog_compiler_wl='-Wl,'
  6104. # All Alpha code is PIC.
  6105. lt_prog_compiler_static='-non_shared'
  6106. ;;
  6107. esac
  6108. ;;
  6109. osf3* | osf4* | osf5*)
  6110. lt_prog_compiler_wl='-Wl,'
  6111. # All OSF/1 code is PIC.
  6112. lt_prog_compiler_static='-non_shared'
  6113. ;;
  6114. solaris*)
  6115. lt_prog_compiler_pic='-KPIC'
  6116. lt_prog_compiler_static='-Bstatic'
  6117. case $cc_basename in
  6118. f77* | f90* | f95*)
  6119. lt_prog_compiler_wl='-Qoption ld ';;
  6120. *)
  6121. lt_prog_compiler_wl='-Wl,';;
  6122. esac
  6123. ;;
  6124. sunos4*)
  6125. lt_prog_compiler_wl='-Qoption ld '
  6126. lt_prog_compiler_pic='-PIC'
  6127. lt_prog_compiler_static='-Bstatic'
  6128. ;;
  6129. sysv4 | sysv4.2uw2* | sysv4.3*)
  6130. lt_prog_compiler_wl='-Wl,'
  6131. lt_prog_compiler_pic='-KPIC'
  6132. lt_prog_compiler_static='-Bstatic'
  6133. ;;
  6134. sysv4*MP*)
  6135. if test -d /usr/nec ;then
  6136. lt_prog_compiler_pic='-Kconform_pic'
  6137. lt_prog_compiler_static='-Bstatic'
  6138. fi
  6139. ;;
  6140. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6141. lt_prog_compiler_wl='-Wl,'
  6142. lt_prog_compiler_pic='-KPIC'
  6143. lt_prog_compiler_static='-Bstatic'
  6144. ;;
  6145. unicos*)
  6146. lt_prog_compiler_wl='-Wl,'
  6147. lt_prog_compiler_can_build_shared=no
  6148. ;;
  6149. uts4*)
  6150. lt_prog_compiler_pic='-pic'
  6151. lt_prog_compiler_static='-Bstatic'
  6152. ;;
  6153. *)
  6154. lt_prog_compiler_can_build_shared=no
  6155. ;;
  6156. esac
  6157. fi
  6158. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6159. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6160. #
  6161. # Check to make sure the PIC flag actually works.
  6162. #
  6163. if test -n "$lt_prog_compiler_pic"; then
  6164. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6165. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6166. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6167. echo $ECHO_N "(cached) $ECHO_C" >&6
  6168. else
  6169. lt_prog_compiler_pic_works=no
  6170. ac_outfile=conftest.$ac_objext
  6171. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6172. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6173. # Insert the option either (1) after the last *FLAGS variable, or
  6174. # (2) before a word containing "conftest.", or (3) at the end.
  6175. # Note that $ac_compile itself does not contain backslashes and begins
  6176. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6177. # The option is referenced via a variable to avoid confusing sed.
  6178. lt_compile=`echo "$ac_compile" | $SED \
  6179. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6180. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6181. -e 's:$: $lt_compiler_flag:'`
  6182. (eval echo "\"\$as_me:6856: $lt_compile\"" >&5)
  6183. (eval "$lt_compile" 2>conftest.err)
  6184. ac_status=$?
  6185. cat conftest.err >&5
  6186. echo "$as_me:6860: \$? = $ac_status" >&5
  6187. if (exit $ac_status) && test -s "$ac_outfile"; then
  6188. # The compiler can only warn and ignore the option if not recognized
  6189. # So say no if there are warnings other than the usual output.
  6190. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6191. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6192. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6193. lt_prog_compiler_pic_works=yes
  6194. fi
  6195. fi
  6196. $rm conftest*
  6197. fi
  6198. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6199. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6200. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6201. case $lt_prog_compiler_pic in
  6202. "" | " "*) ;;
  6203. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6204. esac
  6205. else
  6206. lt_prog_compiler_pic=
  6207. lt_prog_compiler_can_build_shared=no
  6208. fi
  6209. fi
  6210. case $host_os in
  6211. # For platforms which do not support PIC, -DPIC is meaningless:
  6212. *djgpp*)
  6213. lt_prog_compiler_pic=
  6214. ;;
  6215. *)
  6216. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6217. ;;
  6218. esac
  6219. #
  6220. # Check to make sure the static flag actually works.
  6221. #
  6222. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6223. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6224. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6225. if test "${lt_prog_compiler_static_works+set}" = set; then
  6226. echo $ECHO_N "(cached) $ECHO_C" >&6
  6227. else
  6228. lt_prog_compiler_static_works=no
  6229. save_LDFLAGS="$LDFLAGS"
  6230. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6231. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6232. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6233. # The linker can only warn and ignore the option if not recognized
  6234. # So say no if there are warnings
  6235. if test -s conftest.err; then
  6236. # Append any errors to the config.log.
  6237. cat conftest.err 1>&5
  6238. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6239. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6240. if diff conftest.exp conftest.er2 >/dev/null; then
  6241. lt_prog_compiler_static_works=yes
  6242. fi
  6243. else
  6244. lt_prog_compiler_static_works=yes
  6245. fi
  6246. fi
  6247. $rm conftest*
  6248. LDFLAGS="$save_LDFLAGS"
  6249. fi
  6250. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6251. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6252. if test x"$lt_prog_compiler_static_works" = xyes; then
  6253. :
  6254. else
  6255. lt_prog_compiler_static=
  6256. fi
  6257. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6258. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6259. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6260. echo $ECHO_N "(cached) $ECHO_C" >&6
  6261. else
  6262. lt_cv_prog_compiler_c_o=no
  6263. $rm -r conftest 2>/dev/null
  6264. mkdir conftest
  6265. cd conftest
  6266. mkdir out
  6267. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6268. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6269. # Insert the option either (1) after the last *FLAGS variable, or
  6270. # (2) before a word containing "conftest.", or (3) at the end.
  6271. # Note that $ac_compile itself does not contain backslashes and begins
  6272. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6273. lt_compile=`echo "$ac_compile" | $SED \
  6274. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6275. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6276. -e 's:$: $lt_compiler_flag:'`
  6277. (eval echo "\"\$as_me:6960: $lt_compile\"" >&5)
  6278. (eval "$lt_compile" 2>out/conftest.err)
  6279. ac_status=$?
  6280. cat out/conftest.err >&5
  6281. echo "$as_me:6964: \$? = $ac_status" >&5
  6282. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6283. then
  6284. # The compiler can only warn and ignore the option if not recognized
  6285. # So say no if there are warnings
  6286. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6287. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6288. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6289. lt_cv_prog_compiler_c_o=yes
  6290. fi
  6291. fi
  6292. chmod u+w . 2>&5
  6293. $rm conftest*
  6294. # SGI C++ compiler will create directory out/ii_files/ for
  6295. # template instantiation
  6296. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6297. $rm out/* && rmdir out
  6298. cd ..
  6299. rmdir conftest
  6300. $rm conftest*
  6301. fi
  6302. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6303. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6304. hard_links="nottested"
  6305. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6306. # do not overwrite the value of need_locks provided by the user
  6307. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6308. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6309. hard_links=yes
  6310. $rm conftest*
  6311. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6312. touch conftest.a
  6313. ln conftest.a conftest.b 2>&5 || hard_links=no
  6314. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6315. echo "$as_me:$LINENO: result: $hard_links" >&5
  6316. echo "${ECHO_T}$hard_links" >&6
  6317. if test "$hard_links" = no; then
  6318. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6319. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6320. need_locks=warn
  6321. fi
  6322. else
  6323. need_locks=no
  6324. fi
  6325. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6326. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6327. runpath_var=
  6328. allow_undefined_flag=
  6329. enable_shared_with_static_runtimes=no
  6330. archive_cmds=
  6331. archive_expsym_cmds=
  6332. old_archive_From_new_cmds=
  6333. old_archive_from_expsyms_cmds=
  6334. export_dynamic_flag_spec=
  6335. whole_archive_flag_spec=
  6336. thread_safe_flag_spec=
  6337. hardcode_libdir_flag_spec=
  6338. hardcode_libdir_flag_spec_ld=
  6339. hardcode_libdir_separator=
  6340. hardcode_direct=no
  6341. hardcode_minus_L=no
  6342. hardcode_shlibpath_var=unsupported
  6343. link_all_deplibs=unknown
  6344. hardcode_automatic=no
  6345. module_cmds=
  6346. module_expsym_cmds=
  6347. always_export_symbols=no
  6348. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6349. # include_expsyms should be a list of space-separated symbols to be *always*
  6350. # included in the symbol list
  6351. include_expsyms=
  6352. # exclude_expsyms can be an extended regexp of symbols to exclude
  6353. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6354. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6355. # as well as any symbol that contains `d'.
  6356. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6357. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6358. # platforms (ab)use it in PIC code, but their linkers get confused if
  6359. # the symbol is explicitly referenced. Since portable code cannot
  6360. # rely on this symbol name, it's probably fine to never include it in
  6361. # preloaded symbol tables.
  6362. extract_expsyms_cmds=
  6363. # Just being paranoid about ensuring that cc_basename is set.
  6364. for cc_temp in $compiler""; do
  6365. case $cc_temp in
  6366. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6367. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6368. \-*) ;;
  6369. *) break;;
  6370. esac
  6371. done
  6372. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6373. case $host_os in
  6374. cygwin* | mingw* | pw32*)
  6375. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6376. # When not using gcc, we currently assume that we are using
  6377. # Microsoft Visual C++.
  6378. if test "$GCC" != yes; then
  6379. with_gnu_ld=no
  6380. fi
  6381. ;;
  6382. interix*)
  6383. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6384. with_gnu_ld=yes
  6385. ;;
  6386. openbsd*)
  6387. with_gnu_ld=no
  6388. ;;
  6389. esac
  6390. ld_shlibs=yes
  6391. if test "$with_gnu_ld" = yes; then
  6392. # If archive_cmds runs LD, not CC, wlarc should be empty
  6393. wlarc='${wl}'
  6394. # Set some defaults for GNU ld with shared library support. These
  6395. # are reset later if shared libraries are not supported. Putting them
  6396. # here allows them to be overridden if necessary.
  6397. runpath_var=LD_RUN_PATH
  6398. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6399. export_dynamic_flag_spec='${wl}--export-dynamic'
  6400. # ancient GNU ld didn't support --whole-archive et. al.
  6401. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6402. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6403. else
  6404. whole_archive_flag_spec=
  6405. fi
  6406. supports_anon_versioning=no
  6407. case `$LD -v 2>/dev/null` in
  6408. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6409. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6410. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6411. *\ 2.11.*) ;; # other 2.11 versions
  6412. *) supports_anon_versioning=yes ;;
  6413. esac
  6414. # See if GNU ld supports shared libraries.
  6415. case $host_os in
  6416. aix3* | aix4* | aix5*)
  6417. # On AIX/PPC, the GNU linker is very broken
  6418. if test "$host_cpu" != ia64; then
  6419. ld_shlibs=no
  6420. cat <<EOF 1>&2
  6421. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6422. *** to be unable to reliably create shared libraries on AIX.
  6423. *** Therefore, libtool is disabling shared libraries support. If you
  6424. *** really care for shared libraries, you may want to modify your PATH
  6425. *** so that a non-GNU linker is found, and then restart.
  6426. EOF
  6427. fi
  6428. ;;
  6429. amigaos*)
  6430. 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)'
  6431. hardcode_libdir_flag_spec='-L$libdir'
  6432. hardcode_minus_L=yes
  6433. # Samuel A. Falvo II <[email protected]> reports
  6434. # that the semantics of dynamic libraries on AmigaOS, at least up
  6435. # to version 4, is to share data among multiple programs linked
  6436. # with the same dynamic library. Since this doesn't match the
  6437. # behavior of shared libraries on other platforms, we can't use
  6438. # them.
  6439. ld_shlibs=no
  6440. ;;
  6441. beos*)
  6442. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6443. allow_undefined_flag=unsupported
  6444. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6445. # support --undefined. This deserves some investigation. FIXME
  6446. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6447. else
  6448. ld_shlibs=no
  6449. fi
  6450. ;;
  6451. cygwin* | mingw* | pw32*)
  6452. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6453. # as there is no search path for DLLs.
  6454. hardcode_libdir_flag_spec='-L$libdir'
  6455. allow_undefined_flag=unsupported
  6456. always_export_symbols=no
  6457. enable_shared_with_static_runtimes=yes
  6458. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6459. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6460. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6461. # If the export-symbols file already is a .def file (1st line
  6462. # is EXPORTS), use it as is; otherwise, prepend...
  6463. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6464. cp $export_symbols $output_objdir/$soname.def;
  6465. else
  6466. echo EXPORTS > $output_objdir/$soname.def;
  6467. cat $export_symbols >> $output_objdir/$soname.def;
  6468. fi~
  6469. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6470. else
  6471. ld_shlibs=no
  6472. fi
  6473. ;;
  6474. interix3*)
  6475. hardcode_direct=no
  6476. hardcode_shlibpath_var=no
  6477. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6478. export_dynamic_flag_spec='${wl}-E'
  6479. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6480. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6481. # default) and relocated if they conflict, which is a slow very memory
  6482. # consuming and fragmenting process. To avoid this, we pick a random,
  6483. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6484. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6485. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6486. 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'
  6487. ;;
  6488. linux*)
  6489. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6490. tmp_addflag=
  6491. case $cc_basename,$host_cpu in
  6492. pgcc*) # Portland Group C compiler
  6493. 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'
  6494. tmp_addflag=' $pic_flag'
  6495. ;;
  6496. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6497. 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'
  6498. tmp_addflag=' $pic_flag -Mnomain' ;;
  6499. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6500. tmp_addflag=' -i_dynamic' ;;
  6501. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6502. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6503. ifc* | ifort*) # Intel Fortran compiler
  6504. tmp_addflag=' -nofor_main' ;;
  6505. esac
  6506. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6507. if test $supports_anon_versioning = yes; then
  6508. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6509. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6510. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6511. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6512. fi
  6513. else
  6514. ld_shlibs=no
  6515. fi
  6516. ;;
  6517. netbsd*)
  6518. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6519. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6520. wlarc=
  6521. else
  6522. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6523. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6524. fi
  6525. ;;
  6526. solaris*)
  6527. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6528. ld_shlibs=no
  6529. cat <<EOF 1>&2
  6530. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6531. *** create shared libraries on Solaris systems. Therefore, libtool
  6532. *** is disabling shared libraries support. We urge you to upgrade GNU
  6533. *** binutils to release 2.9.1 or newer. Another option is to modify
  6534. *** your PATH or compiler configuration so that the native linker is
  6535. *** used, and then restart.
  6536. EOF
  6537. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6538. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6539. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6540. else
  6541. ld_shlibs=no
  6542. fi
  6543. ;;
  6544. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6545. case `$LD -v 2>&1` in
  6546. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6547. ld_shlibs=no
  6548. cat <<_LT_EOF 1>&2
  6549. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6550. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6551. *** is disabling shared libraries support. We urge you to upgrade GNU
  6552. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6553. *** your PATH or compiler configuration so that the native linker is
  6554. *** used, and then restart.
  6555. _LT_EOF
  6556. ;;
  6557. *)
  6558. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6559. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6560. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6561. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6562. else
  6563. ld_shlibs=no
  6564. fi
  6565. ;;
  6566. esac
  6567. ;;
  6568. sunos4*)
  6569. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6570. wlarc=
  6571. hardcode_direct=yes
  6572. hardcode_shlibpath_var=no
  6573. ;;
  6574. *)
  6575. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6576. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6577. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6578. else
  6579. ld_shlibs=no
  6580. fi
  6581. ;;
  6582. esac
  6583. if test "$ld_shlibs" = no; then
  6584. runpath_var=
  6585. hardcode_libdir_flag_spec=
  6586. export_dynamic_flag_spec=
  6587. whole_archive_flag_spec=
  6588. fi
  6589. else
  6590. # PORTME fill in a description of your system's linker (not GNU ld)
  6591. case $host_os in
  6592. aix3*)
  6593. allow_undefined_flag=unsupported
  6594. always_export_symbols=yes
  6595. 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'
  6596. # Note: this linker hardcodes the directories in LIBPATH if there
  6597. # are no directories specified by -L.
  6598. hardcode_minus_L=yes
  6599. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6600. # Neither direct hardcoding nor static linking is supported with a
  6601. # broken collect2.
  6602. hardcode_direct=unsupported
  6603. fi
  6604. ;;
  6605. aix4* | aix5*)
  6606. if test "$host_cpu" = ia64; then
  6607. # On IA64, the linker does run time linking by default, so we don't
  6608. # have to do anything special.
  6609. aix_use_runtimelinking=no
  6610. exp_sym_flag='-Bexport'
  6611. no_entry_flag=""
  6612. else
  6613. # If we're using GNU nm, then we don't want the "-C" option.
  6614. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6615. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6616. 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'
  6617. else
  6618. 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'
  6619. fi
  6620. aix_use_runtimelinking=no
  6621. # Test if we are trying to use run time linking or normal
  6622. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6623. # need to do runtime linking.
  6624. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6625. for ld_flag in $LDFLAGS; do
  6626. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6627. aix_use_runtimelinking=yes
  6628. break
  6629. fi
  6630. done
  6631. ;;
  6632. esac
  6633. exp_sym_flag='-bexport'
  6634. no_entry_flag='-bnoentry'
  6635. fi
  6636. # When large executables or shared objects are built, AIX ld can
  6637. # have problems creating the table of contents. If linking a library
  6638. # or program results in "error TOC overflow" add -mminimal-toc to
  6639. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6640. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6641. archive_cmds=''
  6642. hardcode_direct=yes
  6643. hardcode_libdir_separator=':'
  6644. link_all_deplibs=yes
  6645. if test "$GCC" = yes; then
  6646. case $host_os in aix4.[012]|aix4.[012].*)
  6647. # We only want to do this on AIX 4.2 and lower, the check
  6648. # below for broken collect2 doesn't work under 4.3+
  6649. collect2name=`${CC} -print-prog-name=collect2`
  6650. if test -f "$collect2name" && \
  6651. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6652. then
  6653. # We have reworked collect2
  6654. hardcode_direct=yes
  6655. else
  6656. # We have old collect2
  6657. hardcode_direct=unsupported
  6658. # It fails to find uninstalled libraries when the uninstalled
  6659. # path is not listed in the libpath. Setting hardcode_minus_L
  6660. # to unsupported forces relinking
  6661. hardcode_minus_L=yes
  6662. hardcode_libdir_flag_spec='-L$libdir'
  6663. hardcode_libdir_separator=
  6664. fi
  6665. ;;
  6666. esac
  6667. shared_flag='-shared'
  6668. if test "$aix_use_runtimelinking" = yes; then
  6669. shared_flag="$shared_flag "'${wl}-G'
  6670. fi
  6671. else
  6672. # not using gcc
  6673. if test "$host_cpu" = ia64; then
  6674. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6675. # chokes on -Wl,-G. The following line is correct:
  6676. shared_flag='-G'
  6677. else
  6678. if test "$aix_use_runtimelinking" = yes; then
  6679. shared_flag='${wl}-G'
  6680. else
  6681. shared_flag='${wl}-bM:SRE'
  6682. fi
  6683. fi
  6684. fi
  6685. # It seems that -bexpall does not export symbols beginning with
  6686. # underscore (_), so it is better to generate a list of symbols to export.
  6687. always_export_symbols=yes
  6688. if test "$aix_use_runtimelinking" = yes; then
  6689. # Warning - without using the other runtime loading flags (-brtl),
  6690. # -berok will link without error, but may produce a broken library.
  6691. allow_undefined_flag='-berok'
  6692. # Determine the default libpath from the value encoded in an empty executable.
  6693. cat >conftest.$ac_ext <<_ACEOF
  6694. /* confdefs.h. */
  6695. _ACEOF
  6696. cat confdefs.h >>conftest.$ac_ext
  6697. cat >>conftest.$ac_ext <<_ACEOF
  6698. /* end confdefs.h. */
  6699. int
  6700. main ()
  6701. {
  6702. ;
  6703. return 0;
  6704. }
  6705. _ACEOF
  6706. rm -f conftest.$ac_objext conftest$ac_exeext
  6707. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6708. (eval $ac_link) 2>conftest.er1
  6709. ac_status=$?
  6710. grep -v '^ *+' conftest.er1 >conftest.err
  6711. rm -f conftest.er1
  6712. cat conftest.err >&5
  6713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6714. (exit $ac_status); } &&
  6715. { ac_try='test -z "$ac_c_werror_flag"
  6716. || test ! -s conftest.err'
  6717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6718. (eval $ac_try) 2>&5
  6719. ac_status=$?
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); }; } &&
  6722. { ac_try='test -s conftest$ac_exeext'
  6723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6724. (eval $ac_try) 2>&5
  6725. ac_status=$?
  6726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6727. (exit $ac_status); }; }; then
  6728. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6729. }'`
  6730. # Check for a 64-bit object if we didn't find anything.
  6731. 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; }
  6732. }'`; fi
  6733. else
  6734. echo "$as_me: failed program was:" >&5
  6735. sed 's/^/| /' conftest.$ac_ext >&5
  6736. fi
  6737. rm -f conftest.err conftest.$ac_objext \
  6738. conftest$ac_exeext conftest.$ac_ext
  6739. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6740. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6741. 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"
  6742. else
  6743. if test "$host_cpu" = ia64; then
  6744. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6745. allow_undefined_flag="-z nodefs"
  6746. 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"
  6747. else
  6748. # Determine the default libpath from the value encoded in an empty executable.
  6749. cat >conftest.$ac_ext <<_ACEOF
  6750. /* confdefs.h. */
  6751. _ACEOF
  6752. cat confdefs.h >>conftest.$ac_ext
  6753. cat >>conftest.$ac_ext <<_ACEOF
  6754. /* end confdefs.h. */
  6755. int
  6756. main ()
  6757. {
  6758. ;
  6759. return 0;
  6760. }
  6761. _ACEOF
  6762. rm -f conftest.$ac_objext conftest$ac_exeext
  6763. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6764. (eval $ac_link) 2>conftest.er1
  6765. ac_status=$?
  6766. grep -v '^ *+' conftest.er1 >conftest.err
  6767. rm -f conftest.er1
  6768. cat conftest.err >&5
  6769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6770. (exit $ac_status); } &&
  6771. { ac_try='test -z "$ac_c_werror_flag"
  6772. || test ! -s conftest.err'
  6773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6774. (eval $ac_try) 2>&5
  6775. ac_status=$?
  6776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. (exit $ac_status); }; } &&
  6778. { ac_try='test -s conftest$ac_exeext'
  6779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6780. (eval $ac_try) 2>&5
  6781. ac_status=$?
  6782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6783. (exit $ac_status); }; }; then
  6784. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6785. }'`
  6786. # Check for a 64-bit object if we didn't find anything.
  6787. 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; }
  6788. }'`; fi
  6789. else
  6790. echo "$as_me: failed program was:" >&5
  6791. sed 's/^/| /' conftest.$ac_ext >&5
  6792. fi
  6793. rm -f conftest.err conftest.$ac_objext \
  6794. conftest$ac_exeext conftest.$ac_ext
  6795. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6796. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6797. # Warning - without using the other run time loading flags,
  6798. # -berok will link without error, but may produce a broken library.
  6799. no_undefined_flag=' ${wl}-bernotok'
  6800. allow_undefined_flag=' ${wl}-berok'
  6801. # Exported symbols can be pulled into shared objects from archives
  6802. whole_archive_flag_spec='$convenience'
  6803. archive_cmds_need_lc=yes
  6804. # This is similar to how AIX traditionally builds its shared libraries.
  6805. 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'
  6806. fi
  6807. fi
  6808. ;;
  6809. amigaos*)
  6810. 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)'
  6811. hardcode_libdir_flag_spec='-L$libdir'
  6812. hardcode_minus_L=yes
  6813. # see comment about different semantics on the GNU ld section
  6814. ld_shlibs=no
  6815. ;;
  6816. bsdi[45]*)
  6817. export_dynamic_flag_spec=-rdynamic
  6818. ;;
  6819. cygwin* | mingw* | pw32*)
  6820. # When not using gcc, we currently assume that we are using
  6821. # Microsoft Visual C++.
  6822. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6823. # no search path for DLLs.
  6824. hardcode_libdir_flag_spec=' '
  6825. allow_undefined_flag=unsupported
  6826. # Tell ltmain to make .lib files, not .a files.
  6827. libext=lib
  6828. # Tell ltmain to make .dll files, not .so files.
  6829. shrext_cmds=".dll"
  6830. # FIXME: Setting linknames here is a bad hack.
  6831. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6832. # The linker will automatically build a .lib file if we build a DLL.
  6833. old_archive_From_new_cmds='true'
  6834. # FIXME: Should let the user specify the lib program.
  6835. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6836. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6837. enable_shared_with_static_runtimes=yes
  6838. ;;
  6839. darwin* | rhapsody*)
  6840. case $host_os in
  6841. rhapsody* | darwin1.[012])
  6842. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6843. ;;
  6844. *) # Darwin 1.3 on
  6845. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6846. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6847. else
  6848. case ${MACOSX_DEPLOYMENT_TARGET} in
  6849. 10.[012])
  6850. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6851. ;;
  6852. 10.*)
  6853. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6854. ;;
  6855. esac
  6856. fi
  6857. ;;
  6858. esac
  6859. archive_cmds_need_lc=no
  6860. hardcode_direct=no
  6861. hardcode_automatic=yes
  6862. hardcode_shlibpath_var=unsupported
  6863. whole_archive_flag_spec=''
  6864. link_all_deplibs=yes
  6865. if test "$GCC" = yes ; then
  6866. output_verbose_link_cmd='echo'
  6867. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6868. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6869. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6870. 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}'
  6871. 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}'
  6872. else
  6873. case $cc_basename in
  6874. xlc*)
  6875. output_verbose_link_cmd='echo'
  6876. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6877. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6878. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6879. 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}'
  6880. 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}'
  6881. ;;
  6882. *)
  6883. ld_shlibs=no
  6884. ;;
  6885. esac
  6886. fi
  6887. ;;
  6888. dgux*)
  6889. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6890. hardcode_libdir_flag_spec='-L$libdir'
  6891. hardcode_shlibpath_var=no
  6892. ;;
  6893. freebsd1*)
  6894. ld_shlibs=no
  6895. ;;
  6896. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6897. # support. Future versions do this automatically, but an explicit c++rt0.o
  6898. # does not break anything, and helps significantly (at the cost of a little
  6899. # extra space).
  6900. freebsd2.2*)
  6901. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6902. hardcode_libdir_flag_spec='-R$libdir'
  6903. hardcode_direct=yes
  6904. hardcode_shlibpath_var=no
  6905. ;;
  6906. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6907. freebsd2*)
  6908. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6909. hardcode_direct=yes
  6910. hardcode_minus_L=yes
  6911. hardcode_shlibpath_var=no
  6912. ;;
  6913. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6914. freebsd* | kfreebsd*-gnu | dragonfly*)
  6915. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6916. hardcode_libdir_flag_spec='-R$libdir'
  6917. hardcode_direct=yes
  6918. hardcode_shlibpath_var=no
  6919. ;;
  6920. hpux9*)
  6921. if test "$GCC" = yes; then
  6922. 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'
  6923. else
  6924. 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'
  6925. fi
  6926. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6927. hardcode_libdir_separator=:
  6928. hardcode_direct=yes
  6929. # hardcode_minus_L: Not really in the search PATH,
  6930. # but as the default location of the library.
  6931. hardcode_minus_L=yes
  6932. export_dynamic_flag_spec='${wl}-E'
  6933. ;;
  6934. hpux10*)
  6935. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6936. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6937. else
  6938. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6939. fi
  6940. if test "$with_gnu_ld" = no; then
  6941. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6942. hardcode_libdir_separator=:
  6943. hardcode_direct=yes
  6944. export_dynamic_flag_spec='${wl}-E'
  6945. # hardcode_minus_L: Not really in the search PATH,
  6946. # but as the default location of the library.
  6947. hardcode_minus_L=yes
  6948. fi
  6949. ;;
  6950. hpux11*)
  6951. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6952. case $host_cpu in
  6953. hppa*64*)
  6954. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6955. ;;
  6956. ia64*)
  6957. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6958. ;;
  6959. *)
  6960. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6961. ;;
  6962. esac
  6963. else
  6964. case $host_cpu in
  6965. hppa*64*)
  6966. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6967. ;;
  6968. ia64*)
  6969. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6970. ;;
  6971. *)
  6972. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6973. ;;
  6974. esac
  6975. fi
  6976. if test "$with_gnu_ld" = no; then
  6977. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6978. hardcode_libdir_separator=:
  6979. case $host_cpu in
  6980. hppa*64*|ia64*)
  6981. hardcode_libdir_flag_spec_ld='+b $libdir'
  6982. hardcode_direct=no
  6983. hardcode_shlibpath_var=no
  6984. ;;
  6985. *)
  6986. hardcode_direct=yes
  6987. export_dynamic_flag_spec='${wl}-E'
  6988. # hardcode_minus_L: Not really in the search PATH,
  6989. # but as the default location of the library.
  6990. hardcode_minus_L=yes
  6991. ;;
  6992. esac
  6993. fi
  6994. ;;
  6995. irix5* | irix6* | nonstopux*)
  6996. if test "$GCC" = yes; then
  6997. 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'
  6998. else
  6999. 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'
  7000. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7001. fi
  7002. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7003. hardcode_libdir_separator=:
  7004. link_all_deplibs=yes
  7005. ;;
  7006. netbsd*)
  7007. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7008. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7009. else
  7010. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7011. fi
  7012. hardcode_libdir_flag_spec='-R$libdir'
  7013. hardcode_direct=yes
  7014. hardcode_shlibpath_var=no
  7015. ;;
  7016. newsos6)
  7017. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7018. hardcode_direct=yes
  7019. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7020. hardcode_libdir_separator=:
  7021. hardcode_shlibpath_var=no
  7022. ;;
  7023. openbsd*)
  7024. hardcode_direct=yes
  7025. hardcode_shlibpath_var=no
  7026. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7027. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7028. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7029. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7030. export_dynamic_flag_spec='${wl}-E'
  7031. else
  7032. case $host_os in
  7033. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7034. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7035. hardcode_libdir_flag_spec='-R$libdir'
  7036. ;;
  7037. *)
  7038. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7039. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7040. ;;
  7041. esac
  7042. fi
  7043. ;;
  7044. os2*)
  7045. hardcode_libdir_flag_spec='-L$libdir'
  7046. hardcode_minus_L=yes
  7047. allow_undefined_flag=unsupported
  7048. 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'
  7049. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7050. ;;
  7051. osf3*)
  7052. if test "$GCC" = yes; then
  7053. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7054. 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'
  7055. else
  7056. allow_undefined_flag=' -expect_unresolved \*'
  7057. 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'
  7058. fi
  7059. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7060. hardcode_libdir_separator=:
  7061. ;;
  7062. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7063. if test "$GCC" = yes; then
  7064. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7065. 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'
  7066. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7067. else
  7068. allow_undefined_flag=' -expect_unresolved \*'
  7069. 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'
  7070. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7071. $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'
  7072. # Both c and cxx compiler support -rpath directly
  7073. hardcode_libdir_flag_spec='-rpath $libdir'
  7074. fi
  7075. hardcode_libdir_separator=:
  7076. ;;
  7077. solaris*)
  7078. no_undefined_flag=' -z text'
  7079. if test "$GCC" = yes; then
  7080. wlarc='${wl}'
  7081. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7082. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7083. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7084. else
  7085. wlarc=''
  7086. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7087. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7088. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7089. fi
  7090. hardcode_libdir_flag_spec='-R$libdir'
  7091. hardcode_shlibpath_var=no
  7092. case $host_os in
  7093. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7094. *)
  7095. # The compiler driver will combine linker options so we
  7096. # cannot just pass the convience library names through
  7097. # without $wl, iff we do not link with $LD.
  7098. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7099. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7100. case $wlarc in
  7101. '')
  7102. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7103. *)
  7104. 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' ;;
  7105. esac ;;
  7106. esac
  7107. link_all_deplibs=yes
  7108. ;;
  7109. sunos4*)
  7110. if test "x$host_vendor" = xsequent; then
  7111. # Use $CC to link under sequent, because it throws in some extra .o
  7112. # files that make .init and .fini sections work.
  7113. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7114. else
  7115. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7116. fi
  7117. hardcode_libdir_flag_spec='-L$libdir'
  7118. hardcode_direct=yes
  7119. hardcode_minus_L=yes
  7120. hardcode_shlibpath_var=no
  7121. ;;
  7122. sysv4)
  7123. case $host_vendor in
  7124. sni)
  7125. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7126. hardcode_direct=yes # is this really true???
  7127. ;;
  7128. siemens)
  7129. ## LD is ld it makes a PLAMLIB
  7130. ## CC just makes a GrossModule.
  7131. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7132. reload_cmds='$CC -r -o $output$reload_objs'
  7133. hardcode_direct=no
  7134. ;;
  7135. motorola)
  7136. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7137. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7138. ;;
  7139. esac
  7140. runpath_var='LD_RUN_PATH'
  7141. hardcode_shlibpath_var=no
  7142. ;;
  7143. sysv4.3*)
  7144. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7145. hardcode_shlibpath_var=no
  7146. export_dynamic_flag_spec='-Bexport'
  7147. ;;
  7148. sysv4*MP*)
  7149. if test -d /usr/nec; then
  7150. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7151. hardcode_shlibpath_var=no
  7152. runpath_var=LD_RUN_PATH
  7153. hardcode_runpath_var=yes
  7154. ld_shlibs=yes
  7155. fi
  7156. ;;
  7157. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7158. no_undefined_flag='${wl}-z,text'
  7159. archive_cmds_need_lc=no
  7160. hardcode_shlibpath_var=no
  7161. runpath_var='LD_RUN_PATH'
  7162. if test "$GCC" = yes; then
  7163. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7164. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7165. else
  7166. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7167. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7168. fi
  7169. ;;
  7170. sysv5* | sco3.2v5* | sco5v6*)
  7171. # Note: We can NOT use -z defs as we might desire, because we do not
  7172. # link with -lc, and that would cause any symbols used from libc to
  7173. # always be unresolved, which means just about no library would
  7174. # ever link correctly. If we're not using GNU ld we use -z text
  7175. # though, which does catch some bad symbols but isn't as heavy-handed
  7176. # as -z defs.
  7177. no_undefined_flag='${wl}-z,text'
  7178. allow_undefined_flag='${wl}-z,nodefs'
  7179. archive_cmds_need_lc=no
  7180. hardcode_shlibpath_var=no
  7181. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7182. hardcode_libdir_separator=':'
  7183. link_all_deplibs=yes
  7184. export_dynamic_flag_spec='${wl}-Bexport'
  7185. runpath_var='LD_RUN_PATH'
  7186. if test "$GCC" = yes; then
  7187. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7188. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7189. else
  7190. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7191. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7192. fi
  7193. ;;
  7194. uts4*)
  7195. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7196. hardcode_libdir_flag_spec='-L$libdir'
  7197. hardcode_shlibpath_var=no
  7198. ;;
  7199. *)
  7200. ld_shlibs=no
  7201. ;;
  7202. esac
  7203. fi
  7204. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7205. echo "${ECHO_T}$ld_shlibs" >&6
  7206. test "$ld_shlibs" = no && can_build_shared=no
  7207. #
  7208. # Do we need to explicitly link libc?
  7209. #
  7210. case "x$archive_cmds_need_lc" in
  7211. x|xyes)
  7212. # Assume -lc should be added
  7213. archive_cmds_need_lc=yes
  7214. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7215. case $archive_cmds in
  7216. *'~'*)
  7217. # FIXME: we may have to deal with multi-command sequences.
  7218. ;;
  7219. '$CC '*)
  7220. # Test whether the compiler implicitly links with -lc since on some
  7221. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7222. # to ld, don't add -lc before -lgcc.
  7223. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7224. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7225. $rm conftest*
  7226. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7227. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7228. (eval $ac_compile) 2>&5
  7229. ac_status=$?
  7230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7231. (exit $ac_status); } 2>conftest.err; then
  7232. soname=conftest
  7233. lib=conftest
  7234. libobjs=conftest.$ac_objext
  7235. deplibs=
  7236. wl=$lt_prog_compiler_wl
  7237. pic_flag=$lt_prog_compiler_pic
  7238. compiler_flags=-v
  7239. linker_flags=-v
  7240. verstring=
  7241. output_objdir=.
  7242. libname=conftest
  7243. lt_save_allow_undefined_flag=$allow_undefined_flag
  7244. allow_undefined_flag=
  7245. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7246. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7247. ac_status=$?
  7248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7249. (exit $ac_status); }
  7250. then
  7251. archive_cmds_need_lc=no
  7252. else
  7253. archive_cmds_need_lc=yes
  7254. fi
  7255. allow_undefined_flag=$lt_save_allow_undefined_flag
  7256. else
  7257. cat conftest.err 1>&5
  7258. fi
  7259. $rm conftest*
  7260. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7261. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7262. ;;
  7263. esac
  7264. fi
  7265. ;;
  7266. esac
  7267. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7268. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7269. library_names_spec=
  7270. libname_spec='lib$name'
  7271. soname_spec=
  7272. shrext_cmds=".so"
  7273. postinstall_cmds=
  7274. postuninstall_cmds=
  7275. finish_cmds=
  7276. finish_eval=
  7277. shlibpath_var=
  7278. shlibpath_overrides_runpath=unknown
  7279. version_type=none
  7280. dynamic_linker="$host_os ld.so"
  7281. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7282. if test "$GCC" = yes; then
  7283. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7284. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7285. # if the path contains ";" then we assume it to be the separator
  7286. # otherwise default to the standard path separator (i.e. ":") - it is
  7287. # assumed that no part of a normal pathname contains ";" but that should
  7288. # okay in the real world where ";" in dirpaths is itself problematic.
  7289. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7290. else
  7291. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7292. fi
  7293. else
  7294. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7295. fi
  7296. need_lib_prefix=unknown
  7297. hardcode_into_libs=no
  7298. # when you set need_version to no, make sure it does not cause -set_version
  7299. # flags to be left without arguments
  7300. need_version=unknown
  7301. case $host_os in
  7302. aix3*)
  7303. version_type=linux
  7304. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7305. shlibpath_var=LIBPATH
  7306. # AIX 3 has no versioning support, so we append a major version to the name.
  7307. soname_spec='${libname}${release}${shared_ext}$major'
  7308. ;;
  7309. aix4* | aix5*)
  7310. version_type=linux
  7311. need_lib_prefix=no
  7312. need_version=no
  7313. hardcode_into_libs=yes
  7314. if test "$host_cpu" = ia64; then
  7315. # AIX 5 supports IA64
  7316. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7317. shlibpath_var=LD_LIBRARY_PATH
  7318. else
  7319. # With GCC up to 2.95.x, collect2 would create an import file
  7320. # for dependence libraries. The import file would start with
  7321. # the line `#! .'. This would cause the generated library to
  7322. # depend on `.', always an invalid library. This was fixed in
  7323. # development snapshots of GCC prior to 3.0.
  7324. case $host_os in
  7325. aix4 | aix4.[01] | aix4.[01].*)
  7326. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7327. echo ' yes '
  7328. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7329. :
  7330. else
  7331. can_build_shared=no
  7332. fi
  7333. ;;
  7334. esac
  7335. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7336. # soname into executable. Probably we can add versioning support to
  7337. # collect2, so additional links can be useful in future.
  7338. if test "$aix_use_runtimelinking" = yes; then
  7339. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7340. # instead of lib<name>.a to let people know that these are not
  7341. # typical AIX shared libraries.
  7342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7343. else
  7344. # We preserve .a as extension for shared libraries through AIX4.2
  7345. # and later when we are not doing run time linking.
  7346. library_names_spec='${libname}${release}.a $libname.a'
  7347. soname_spec='${libname}${release}${shared_ext}$major'
  7348. fi
  7349. shlibpath_var=LIBPATH
  7350. fi
  7351. ;;
  7352. amigaos*)
  7353. library_names_spec='$libname.ixlibrary $libname.a'
  7354. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7355. 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'
  7356. ;;
  7357. beos*)
  7358. library_names_spec='${libname}${shared_ext}'
  7359. dynamic_linker="$host_os ld.so"
  7360. shlibpath_var=LIBRARY_PATH
  7361. ;;
  7362. bsdi[45]*)
  7363. version_type=linux
  7364. need_version=no
  7365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7366. soname_spec='${libname}${release}${shared_ext}$major'
  7367. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7368. shlibpath_var=LD_LIBRARY_PATH
  7369. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7370. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7371. # the default ld.so.conf also contains /usr/contrib/lib and
  7372. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7373. # libtool to hard-code these into programs
  7374. ;;
  7375. cygwin* | mingw* | pw32*)
  7376. version_type=windows
  7377. shrext_cmds=".dll"
  7378. need_version=no
  7379. need_lib_prefix=no
  7380. case $GCC,$host_os in
  7381. yes,cygwin* | yes,mingw* | yes,pw32*)
  7382. library_names_spec='$libname.dll.a'
  7383. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7384. postinstall_cmds='base_file=`basename \${file}`~
  7385. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7386. dldir=$destdir/`dirname \$dlpath`~
  7387. test -d \$dldir || mkdir -p \$dldir~
  7388. $install_prog $dir/$dlname \$dldir/$dlname~
  7389. chmod a+x \$dldir/$dlname'
  7390. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7391. dlpath=$dir/\$dldll~
  7392. $rm \$dlpath'
  7393. shlibpath_overrides_runpath=yes
  7394. case $host_os in
  7395. cygwin*)
  7396. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7397. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7398. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7399. ;;
  7400. mingw*)
  7401. # MinGW DLLs use traditional 'lib' prefix
  7402. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7403. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7404. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7405. # It is most probably a Windows format PATH printed by
  7406. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7407. # path with ; separators, and with drive letters. We can handle the
  7408. # drive letters (cygwin fileutils understands them), so leave them,
  7409. # especially as we might pass files found there to a mingw objdump,
  7410. # which wouldn't understand a cygwinified path. Ahh.
  7411. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7412. else
  7413. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7414. fi
  7415. ;;
  7416. pw32*)
  7417. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7418. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7419. ;;
  7420. esac
  7421. ;;
  7422. *)
  7423. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7424. ;;
  7425. esac
  7426. dynamic_linker='Win32 ld.exe'
  7427. # FIXME: first we should search . and the directory the executable is in
  7428. shlibpath_var=PATH
  7429. ;;
  7430. darwin* | rhapsody*)
  7431. dynamic_linker="$host_os dyld"
  7432. version_type=darwin
  7433. need_lib_prefix=no
  7434. need_version=no
  7435. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7436. soname_spec='${libname}${release}${major}$shared_ext'
  7437. shlibpath_overrides_runpath=yes
  7438. shlibpath_var=DYLD_LIBRARY_PATH
  7439. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7440. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7441. if test "$GCC" = yes; then
  7442. 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"`
  7443. else
  7444. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7445. fi
  7446. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7447. ;;
  7448. dgux*)
  7449. version_type=linux
  7450. need_lib_prefix=no
  7451. need_version=no
  7452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7453. soname_spec='${libname}${release}${shared_ext}$major'
  7454. shlibpath_var=LD_LIBRARY_PATH
  7455. ;;
  7456. freebsd1*)
  7457. dynamic_linker=no
  7458. ;;
  7459. kfreebsd*-gnu)
  7460. version_type=linux
  7461. need_lib_prefix=no
  7462. need_version=no
  7463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7464. soname_spec='${libname}${release}${shared_ext}$major'
  7465. shlibpath_var=LD_LIBRARY_PATH
  7466. shlibpath_overrides_runpath=no
  7467. hardcode_into_libs=yes
  7468. dynamic_linker='GNU ld.so'
  7469. ;;
  7470. freebsd* | dragonfly*)
  7471. # DragonFly does not have aout. When/if they implement a new
  7472. # versioning mechanism, adjust this.
  7473. if test -x /usr/bin/objformat; then
  7474. objformat=`/usr/bin/objformat`
  7475. else
  7476. case $host_os in
  7477. freebsd[123]*) objformat=aout ;;
  7478. *) objformat=elf ;;
  7479. esac
  7480. fi
  7481. version_type=freebsd-$objformat
  7482. case $version_type in
  7483. freebsd-elf*)
  7484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7485. need_version=no
  7486. need_lib_prefix=no
  7487. ;;
  7488. freebsd-*)
  7489. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7490. need_version=yes
  7491. ;;
  7492. esac
  7493. shlibpath_var=LD_LIBRARY_PATH
  7494. case $host_os in
  7495. freebsd2*)
  7496. shlibpath_overrides_runpath=yes
  7497. ;;
  7498. freebsd3.[01]* | freebsdelf3.[01]*)
  7499. shlibpath_overrides_runpath=yes
  7500. hardcode_into_libs=yes
  7501. ;;
  7502. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7503. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7504. shlibpath_overrides_runpath=no
  7505. hardcode_into_libs=yes
  7506. ;;
  7507. freebsd*) # from 4.6 on
  7508. shlibpath_overrides_runpath=yes
  7509. hardcode_into_libs=yes
  7510. ;;
  7511. esac
  7512. ;;
  7513. gnu*)
  7514. version_type=linux
  7515. need_lib_prefix=no
  7516. need_version=no
  7517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7518. soname_spec='${libname}${release}${shared_ext}$major'
  7519. shlibpath_var=LD_LIBRARY_PATH
  7520. hardcode_into_libs=yes
  7521. ;;
  7522. hpux9* | hpux10* | hpux11*)
  7523. # Give a soname corresponding to the major version so that dld.sl refuses to
  7524. # link against other versions.
  7525. version_type=sunos
  7526. need_lib_prefix=no
  7527. need_version=no
  7528. case $host_cpu in
  7529. ia64*)
  7530. shrext_cmds='.so'
  7531. hardcode_into_libs=yes
  7532. dynamic_linker="$host_os dld.so"
  7533. shlibpath_var=LD_LIBRARY_PATH
  7534. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7536. soname_spec='${libname}${release}${shared_ext}$major'
  7537. if test "X$HPUX_IA64_MODE" = X32; then
  7538. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7539. else
  7540. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7541. fi
  7542. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7543. ;;
  7544. hppa*64*)
  7545. shrext_cmds='.sl'
  7546. hardcode_into_libs=yes
  7547. dynamic_linker="$host_os dld.sl"
  7548. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7549. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7551. soname_spec='${libname}${release}${shared_ext}$major'
  7552. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7553. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7554. ;;
  7555. *)
  7556. shrext_cmds='.sl'
  7557. dynamic_linker="$host_os dld.sl"
  7558. shlibpath_var=SHLIB_PATH
  7559. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7561. soname_spec='${libname}${release}${shared_ext}$major'
  7562. ;;
  7563. esac
  7564. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7565. postinstall_cmds='chmod 555 $lib'
  7566. ;;
  7567. interix3*)
  7568. version_type=linux
  7569. need_lib_prefix=no
  7570. need_version=no
  7571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7572. soname_spec='${libname}${release}${shared_ext}$major'
  7573. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7574. shlibpath_var=LD_LIBRARY_PATH
  7575. shlibpath_overrides_runpath=no
  7576. hardcode_into_libs=yes
  7577. ;;
  7578. irix5* | irix6* | nonstopux*)
  7579. case $host_os in
  7580. nonstopux*) version_type=nonstopux ;;
  7581. *)
  7582. if test "$lt_cv_prog_gnu_ld" = yes; then
  7583. version_type=linux
  7584. else
  7585. version_type=irix
  7586. fi ;;
  7587. esac
  7588. need_lib_prefix=no
  7589. need_version=no
  7590. soname_spec='${libname}${release}${shared_ext}$major'
  7591. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7592. case $host_os in
  7593. irix5* | nonstopux*)
  7594. libsuff= shlibsuff=
  7595. ;;
  7596. *)
  7597. case $LD in # libtool.m4 will add one of these switches to LD
  7598. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7599. libsuff= shlibsuff= libmagic=32-bit;;
  7600. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7601. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7602. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7603. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7604. *) libsuff= shlibsuff= libmagic=never-match;;
  7605. esac
  7606. ;;
  7607. esac
  7608. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7609. shlibpath_overrides_runpath=no
  7610. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7611. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7612. hardcode_into_libs=yes
  7613. ;;
  7614. # No shared lib support for Linux oldld, aout, or coff.
  7615. linux*oldld* | linux*aout* | linux*coff*)
  7616. dynamic_linker=no
  7617. ;;
  7618. # This must be Linux ELF.
  7619. linux*)
  7620. version_type=linux
  7621. need_lib_prefix=no
  7622. need_version=no
  7623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7624. soname_spec='${libname}${release}${shared_ext}$major'
  7625. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7626. shlibpath_var=LD_LIBRARY_PATH
  7627. shlibpath_overrides_runpath=no
  7628. # This implies no fast_install, which is unacceptable.
  7629. # Some rework will be needed to allow for fast_install
  7630. # before this can be enabled.
  7631. hardcode_into_libs=yes
  7632. # find out which ABI we are using
  7633. libsuff=
  7634. case "$host_cpu" in
  7635. x86_64*|s390x*|powerpc64*)
  7636. echo '#line 8429 "configure"' > conftest.$ac_ext
  7637. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7638. (eval $ac_compile) 2>&5
  7639. ac_status=$?
  7640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7641. (exit $ac_status); }; then
  7642. case `/usr/bin/file conftest.$ac_objext` in
  7643. *64-bit*)
  7644. libsuff=64
  7645. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7646. ;;
  7647. esac
  7648. fi
  7649. rm -rf conftest*
  7650. ;;
  7651. esac
  7652. # Append ld.so.conf contents to the search path
  7653. if test -f /etc/ld.so.conf; then
  7654. 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' ' '`
  7655. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7656. fi
  7657. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7658. # powerpc, because MkLinux only supported shared libraries with the
  7659. # GNU dynamic linker. Since this was broken with cross compilers,
  7660. # most powerpc-linux boxes support dynamic linking these days and
  7661. # people can always --disable-shared, the test was removed, and we
  7662. # assume the GNU/Linux dynamic linker is in use.
  7663. dynamic_linker='GNU/Linux ld.so'
  7664. ;;
  7665. knetbsd*-gnu)
  7666. version_type=linux
  7667. need_lib_prefix=no
  7668. need_version=no
  7669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7670. soname_spec='${libname}${release}${shared_ext}$major'
  7671. shlibpath_var=LD_LIBRARY_PATH
  7672. shlibpath_overrides_runpath=no
  7673. hardcode_into_libs=yes
  7674. dynamic_linker='GNU ld.so'
  7675. ;;
  7676. netbsd*)
  7677. version_type=sunos
  7678. need_lib_prefix=no
  7679. need_version=no
  7680. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7682. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7683. dynamic_linker='NetBSD (a.out) ld.so'
  7684. else
  7685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7686. soname_spec='${libname}${release}${shared_ext}$major'
  7687. dynamic_linker='NetBSD ld.elf_so'
  7688. fi
  7689. shlibpath_var=LD_LIBRARY_PATH
  7690. shlibpath_overrides_runpath=yes
  7691. hardcode_into_libs=yes
  7692. ;;
  7693. newsos6)
  7694. version_type=linux
  7695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7696. shlibpath_var=LD_LIBRARY_PATH
  7697. shlibpath_overrides_runpath=yes
  7698. ;;
  7699. nto-qnx*)
  7700. version_type=linux
  7701. need_lib_prefix=no
  7702. need_version=no
  7703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7704. soname_spec='${libname}${release}${shared_ext}$major'
  7705. shlibpath_var=LD_LIBRARY_PATH
  7706. shlibpath_overrides_runpath=yes
  7707. ;;
  7708. openbsd*)
  7709. version_type=sunos
  7710. sys_lib_dlsearch_path_spec="/usr/lib"
  7711. need_lib_prefix=no
  7712. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7713. case $host_os in
  7714. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7715. *) need_version=no ;;
  7716. esac
  7717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7718. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7719. shlibpath_var=LD_LIBRARY_PATH
  7720. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7721. case $host_os in
  7722. openbsd2.[89] | openbsd2.[89].*)
  7723. shlibpath_overrides_runpath=no
  7724. ;;
  7725. *)
  7726. shlibpath_overrides_runpath=yes
  7727. ;;
  7728. esac
  7729. else
  7730. shlibpath_overrides_runpath=yes
  7731. fi
  7732. ;;
  7733. os2*)
  7734. libname_spec='$name'
  7735. shrext_cmds=".dll"
  7736. need_lib_prefix=no
  7737. library_names_spec='$libname${shared_ext} $libname.a'
  7738. dynamic_linker='OS/2 ld.exe'
  7739. shlibpath_var=LIBPATH
  7740. ;;
  7741. osf3* | osf4* | osf5*)
  7742. version_type=osf
  7743. need_lib_prefix=no
  7744. need_version=no
  7745. soname_spec='${libname}${release}${shared_ext}$major'
  7746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7747. shlibpath_var=LD_LIBRARY_PATH
  7748. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7749. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7750. ;;
  7751. solaris*)
  7752. version_type=linux
  7753. need_lib_prefix=no
  7754. need_version=no
  7755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7756. soname_spec='${libname}${release}${shared_ext}$major'
  7757. shlibpath_var=LD_LIBRARY_PATH
  7758. shlibpath_overrides_runpath=yes
  7759. hardcode_into_libs=yes
  7760. # ldd complains unless libraries are executable
  7761. postinstall_cmds='chmod +x $lib'
  7762. ;;
  7763. sunos4*)
  7764. version_type=sunos
  7765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7766. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7767. shlibpath_var=LD_LIBRARY_PATH
  7768. shlibpath_overrides_runpath=yes
  7769. if test "$with_gnu_ld" = yes; then
  7770. need_lib_prefix=no
  7771. fi
  7772. need_version=yes
  7773. ;;
  7774. sysv4 | sysv4.3*)
  7775. version_type=linux
  7776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7777. soname_spec='${libname}${release}${shared_ext}$major'
  7778. shlibpath_var=LD_LIBRARY_PATH
  7779. case $host_vendor in
  7780. sni)
  7781. shlibpath_overrides_runpath=no
  7782. need_lib_prefix=no
  7783. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7784. runpath_var=LD_RUN_PATH
  7785. ;;
  7786. siemens)
  7787. need_lib_prefix=no
  7788. ;;
  7789. motorola)
  7790. need_lib_prefix=no
  7791. need_version=no
  7792. shlibpath_overrides_runpath=no
  7793. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7794. ;;
  7795. esac
  7796. ;;
  7797. sysv4*MP*)
  7798. if test -d /usr/nec ;then
  7799. version_type=linux
  7800. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7801. soname_spec='$libname${shared_ext}.$major'
  7802. shlibpath_var=LD_LIBRARY_PATH
  7803. fi
  7804. ;;
  7805. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7806. version_type=freebsd-elf
  7807. need_lib_prefix=no
  7808. need_version=no
  7809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7810. soname_spec='${libname}${release}${shared_ext}$major'
  7811. shlibpath_var=LD_LIBRARY_PATH
  7812. hardcode_into_libs=yes
  7813. if test "$with_gnu_ld" = yes; then
  7814. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7815. shlibpath_overrides_runpath=no
  7816. else
  7817. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7818. shlibpath_overrides_runpath=yes
  7819. case $host_os in
  7820. sco3.2v5*)
  7821. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7822. ;;
  7823. esac
  7824. fi
  7825. sys_lib_dlsearch_path_spec='/usr/lib'
  7826. ;;
  7827. uts4*)
  7828. version_type=linux
  7829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7830. soname_spec='${libname}${release}${shared_ext}$major'
  7831. shlibpath_var=LD_LIBRARY_PATH
  7832. ;;
  7833. *)
  7834. dynamic_linker=no
  7835. ;;
  7836. esac
  7837. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7838. echo "${ECHO_T}$dynamic_linker" >&6
  7839. test "$dynamic_linker" = no && can_build_shared=no
  7840. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7841. if test "$GCC" = yes; then
  7842. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7843. fi
  7844. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7845. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7846. hardcode_action=
  7847. if test -n "$hardcode_libdir_flag_spec" || \
  7848. test -n "$runpath_var" || \
  7849. test "X$hardcode_automatic" = "Xyes" ; then
  7850. # We can hardcode non-existant directories.
  7851. if test "$hardcode_direct" != no &&
  7852. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7853. # have to relink, otherwise we might link with an installed library
  7854. # when we should be linking with a yet-to-be-installed one
  7855. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7856. test "$hardcode_minus_L" != no; then
  7857. # Linking always hardcodes the temporary library directory.
  7858. hardcode_action=relink
  7859. else
  7860. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7861. hardcode_action=immediate
  7862. fi
  7863. else
  7864. # We cannot hardcode anything, or else we can only hardcode existing
  7865. # directories.
  7866. hardcode_action=unsupported
  7867. fi
  7868. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7869. echo "${ECHO_T}$hardcode_action" >&6
  7870. if test "$hardcode_action" = relink; then
  7871. # Fast installation is not supported
  7872. enable_fast_install=no
  7873. elif test "$shlibpath_overrides_runpath" = yes ||
  7874. test "$enable_shared" = no; then
  7875. # Fast installation is not necessary
  7876. enable_fast_install=needless
  7877. fi
  7878. striplib=
  7879. old_striplib=
  7880. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7881. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7882. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7883. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7884. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7885. echo "$as_me:$LINENO: result: yes" >&5
  7886. echo "${ECHO_T}yes" >&6
  7887. else
  7888. # FIXME - insert some real tests, host_os isn't really good enough
  7889. case $host_os in
  7890. darwin*)
  7891. if test -n "$STRIP" ; then
  7892. striplib="$STRIP -x"
  7893. echo "$as_me:$LINENO: result: yes" >&5
  7894. echo "${ECHO_T}yes" >&6
  7895. else
  7896. echo "$as_me:$LINENO: result: no" >&5
  7897. echo "${ECHO_T}no" >&6
  7898. fi
  7899. ;;
  7900. *)
  7901. echo "$as_me:$LINENO: result: no" >&5
  7902. echo "${ECHO_T}no" >&6
  7903. ;;
  7904. esac
  7905. fi
  7906. if test "x$enable_dlopen" != xyes; then
  7907. enable_dlopen=unknown
  7908. enable_dlopen_self=unknown
  7909. enable_dlopen_self_static=unknown
  7910. else
  7911. lt_cv_dlopen=no
  7912. lt_cv_dlopen_libs=
  7913. case $host_os in
  7914. beos*)
  7915. lt_cv_dlopen="load_add_on"
  7916. lt_cv_dlopen_libs=
  7917. lt_cv_dlopen_self=yes
  7918. ;;
  7919. mingw* | pw32*)
  7920. lt_cv_dlopen="LoadLibrary"
  7921. lt_cv_dlopen_libs=
  7922. ;;
  7923. cygwin*)
  7924. lt_cv_dlopen="dlopen"
  7925. lt_cv_dlopen_libs=
  7926. ;;
  7927. darwin*)
  7928. # if libdl is installed we need to link against it
  7929. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7930. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7931. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7932. echo $ECHO_N "(cached) $ECHO_C" >&6
  7933. else
  7934. ac_check_lib_save_LIBS=$LIBS
  7935. LIBS="-ldl $LIBS"
  7936. cat >conftest.$ac_ext <<_ACEOF
  7937. /* confdefs.h. */
  7938. _ACEOF
  7939. cat confdefs.h >>conftest.$ac_ext
  7940. cat >>conftest.$ac_ext <<_ACEOF
  7941. /* end confdefs.h. */
  7942. /* Override any gcc2 internal prototype to avoid an error. */
  7943. #ifdef __cplusplus
  7944. extern "C"
  7945. #endif
  7946. /* We use char because int might match the return type of a gcc2
  7947. builtin and then its argument prototype would still apply. */
  7948. char dlopen ();
  7949. int
  7950. main ()
  7951. {
  7952. dlopen ();
  7953. ;
  7954. return 0;
  7955. }
  7956. _ACEOF
  7957. rm -f conftest.$ac_objext conftest$ac_exeext
  7958. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7959. (eval $ac_link) 2>conftest.er1
  7960. ac_status=$?
  7961. grep -v '^ *+' conftest.er1 >conftest.err
  7962. rm -f conftest.er1
  7963. cat conftest.err >&5
  7964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7965. (exit $ac_status); } &&
  7966. { ac_try='test -z "$ac_c_werror_flag"
  7967. || test ! -s conftest.err'
  7968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7969. (eval $ac_try) 2>&5
  7970. ac_status=$?
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); }; } &&
  7973. { ac_try='test -s conftest$ac_exeext'
  7974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7975. (eval $ac_try) 2>&5
  7976. ac_status=$?
  7977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7978. (exit $ac_status); }; }; then
  7979. ac_cv_lib_dl_dlopen=yes
  7980. else
  7981. echo "$as_me: failed program was:" >&5
  7982. sed 's/^/| /' conftest.$ac_ext >&5
  7983. ac_cv_lib_dl_dlopen=no
  7984. fi
  7985. rm -f conftest.err conftest.$ac_objext \
  7986. conftest$ac_exeext conftest.$ac_ext
  7987. LIBS=$ac_check_lib_save_LIBS
  7988. fi
  7989. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7990. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7991. if test $ac_cv_lib_dl_dlopen = yes; then
  7992. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7993. else
  7994. lt_cv_dlopen="dyld"
  7995. lt_cv_dlopen_libs=
  7996. lt_cv_dlopen_self=yes
  7997. fi
  7998. ;;
  7999. *)
  8000. echo "$as_me:$LINENO: checking for shl_load" >&5
  8001. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  8002. if test "${ac_cv_func_shl_load+set}" = set; then
  8003. echo $ECHO_N "(cached) $ECHO_C" >&6
  8004. else
  8005. cat >conftest.$ac_ext <<_ACEOF
  8006. /* confdefs.h. */
  8007. _ACEOF
  8008. cat confdefs.h >>conftest.$ac_ext
  8009. cat >>conftest.$ac_ext <<_ACEOF
  8010. /* end confdefs.h. */
  8011. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8012. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8013. #define shl_load innocuous_shl_load
  8014. /* System header to define __stub macros and hopefully few prototypes,
  8015. which can conflict with char shl_load (); below.
  8016. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8017. <limits.h> exists even on freestanding compilers. */
  8018. #ifdef __STDC__
  8019. # include <limits.h>
  8020. #else
  8021. # include <assert.h>
  8022. #endif
  8023. #undef shl_load
  8024. /* Override any gcc2 internal prototype to avoid an error. */
  8025. #ifdef __cplusplus
  8026. extern "C"
  8027. {
  8028. #endif
  8029. /* We use char because int might match the return type of a gcc2
  8030. builtin and then its argument prototype would still apply. */
  8031. char shl_load ();
  8032. /* The GNU C library defines this for functions which it implements
  8033. to always fail with ENOSYS. Some functions are actually named
  8034. something starting with __ and the normal name is an alias. */
  8035. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8036. choke me
  8037. #else
  8038. char (*f) () = shl_load;
  8039. #endif
  8040. #ifdef __cplusplus
  8041. }
  8042. #endif
  8043. int
  8044. main ()
  8045. {
  8046. return f != shl_load;
  8047. ;
  8048. return 0;
  8049. }
  8050. _ACEOF
  8051. rm -f conftest.$ac_objext conftest$ac_exeext
  8052. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8053. (eval $ac_link) 2>conftest.er1
  8054. ac_status=$?
  8055. grep -v '^ *+' conftest.er1 >conftest.err
  8056. rm -f conftest.er1
  8057. cat conftest.err >&5
  8058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8059. (exit $ac_status); } &&
  8060. { ac_try='test -z "$ac_c_werror_flag"
  8061. || test ! -s conftest.err'
  8062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8063. (eval $ac_try) 2>&5
  8064. ac_status=$?
  8065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8066. (exit $ac_status); }; } &&
  8067. { ac_try='test -s conftest$ac_exeext'
  8068. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8069. (eval $ac_try) 2>&5
  8070. ac_status=$?
  8071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072. (exit $ac_status); }; }; then
  8073. ac_cv_func_shl_load=yes
  8074. else
  8075. echo "$as_me: failed program was:" >&5
  8076. sed 's/^/| /' conftest.$ac_ext >&5
  8077. ac_cv_func_shl_load=no
  8078. fi
  8079. rm -f conftest.err conftest.$ac_objext \
  8080. conftest$ac_exeext conftest.$ac_ext
  8081. fi
  8082. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8083. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8084. if test $ac_cv_func_shl_load = yes; then
  8085. lt_cv_dlopen="shl_load"
  8086. else
  8087. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8088. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8089. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8090. echo $ECHO_N "(cached) $ECHO_C" >&6
  8091. else
  8092. ac_check_lib_save_LIBS=$LIBS
  8093. LIBS="-ldld $LIBS"
  8094. cat >conftest.$ac_ext <<_ACEOF
  8095. /* confdefs.h. */
  8096. _ACEOF
  8097. cat confdefs.h >>conftest.$ac_ext
  8098. cat >>conftest.$ac_ext <<_ACEOF
  8099. /* end confdefs.h. */
  8100. /* Override any gcc2 internal prototype to avoid an error. */
  8101. #ifdef __cplusplus
  8102. extern "C"
  8103. #endif
  8104. /* We use char because int might match the return type of a gcc2
  8105. builtin and then its argument prototype would still apply. */
  8106. char shl_load ();
  8107. int
  8108. main ()
  8109. {
  8110. shl_load ();
  8111. ;
  8112. return 0;
  8113. }
  8114. _ACEOF
  8115. rm -f conftest.$ac_objext conftest$ac_exeext
  8116. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8117. (eval $ac_link) 2>conftest.er1
  8118. ac_status=$?
  8119. grep -v '^ *+' conftest.er1 >conftest.err
  8120. rm -f conftest.er1
  8121. cat conftest.err >&5
  8122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8123. (exit $ac_status); } &&
  8124. { ac_try='test -z "$ac_c_werror_flag"
  8125. || test ! -s conftest.err'
  8126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8127. (eval $ac_try) 2>&5
  8128. ac_status=$?
  8129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8130. (exit $ac_status); }; } &&
  8131. { ac_try='test -s conftest$ac_exeext'
  8132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8133. (eval $ac_try) 2>&5
  8134. ac_status=$?
  8135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8136. (exit $ac_status); }; }; then
  8137. ac_cv_lib_dld_shl_load=yes
  8138. else
  8139. echo "$as_me: failed program was:" >&5
  8140. sed 's/^/| /' conftest.$ac_ext >&5
  8141. ac_cv_lib_dld_shl_load=no
  8142. fi
  8143. rm -f conftest.err conftest.$ac_objext \
  8144. conftest$ac_exeext conftest.$ac_ext
  8145. LIBS=$ac_check_lib_save_LIBS
  8146. fi
  8147. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8148. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8149. if test $ac_cv_lib_dld_shl_load = yes; then
  8150. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8151. else
  8152. echo "$as_me:$LINENO: checking for dlopen" >&5
  8153. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8154. if test "${ac_cv_func_dlopen+set}" = set; then
  8155. echo $ECHO_N "(cached) $ECHO_C" >&6
  8156. else
  8157. cat >conftest.$ac_ext <<_ACEOF
  8158. /* confdefs.h. */
  8159. _ACEOF
  8160. cat confdefs.h >>conftest.$ac_ext
  8161. cat >>conftest.$ac_ext <<_ACEOF
  8162. /* end confdefs.h. */
  8163. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8164. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8165. #define dlopen innocuous_dlopen
  8166. /* System header to define __stub macros and hopefully few prototypes,
  8167. which can conflict with char dlopen (); below.
  8168. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8169. <limits.h> exists even on freestanding compilers. */
  8170. #ifdef __STDC__
  8171. # include <limits.h>
  8172. #else
  8173. # include <assert.h>
  8174. #endif
  8175. #undef dlopen
  8176. /* Override any gcc2 internal prototype to avoid an error. */
  8177. #ifdef __cplusplus
  8178. extern "C"
  8179. {
  8180. #endif
  8181. /* We use char because int might match the return type of a gcc2
  8182. builtin and then its argument prototype would still apply. */
  8183. char dlopen ();
  8184. /* The GNU C library defines this for functions which it implements
  8185. to always fail with ENOSYS. Some functions are actually named
  8186. something starting with __ and the normal name is an alias. */
  8187. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8188. choke me
  8189. #else
  8190. char (*f) () = dlopen;
  8191. #endif
  8192. #ifdef __cplusplus
  8193. }
  8194. #endif
  8195. int
  8196. main ()
  8197. {
  8198. return f != dlopen;
  8199. ;
  8200. return 0;
  8201. }
  8202. _ACEOF
  8203. rm -f conftest.$ac_objext conftest$ac_exeext
  8204. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8205. (eval $ac_link) 2>conftest.er1
  8206. ac_status=$?
  8207. grep -v '^ *+' conftest.er1 >conftest.err
  8208. rm -f conftest.er1
  8209. cat conftest.err >&5
  8210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8211. (exit $ac_status); } &&
  8212. { ac_try='test -z "$ac_c_werror_flag"
  8213. || test ! -s conftest.err'
  8214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8215. (eval $ac_try) 2>&5
  8216. ac_status=$?
  8217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8218. (exit $ac_status); }; } &&
  8219. { ac_try='test -s conftest$ac_exeext'
  8220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8221. (eval $ac_try) 2>&5
  8222. ac_status=$?
  8223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8224. (exit $ac_status); }; }; then
  8225. ac_cv_func_dlopen=yes
  8226. else
  8227. echo "$as_me: failed program was:" >&5
  8228. sed 's/^/| /' conftest.$ac_ext >&5
  8229. ac_cv_func_dlopen=no
  8230. fi
  8231. rm -f conftest.err conftest.$ac_objext \
  8232. conftest$ac_exeext conftest.$ac_ext
  8233. fi
  8234. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8235. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8236. if test $ac_cv_func_dlopen = yes; then
  8237. lt_cv_dlopen="dlopen"
  8238. else
  8239. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8240. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8241. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8242. echo $ECHO_N "(cached) $ECHO_C" >&6
  8243. else
  8244. ac_check_lib_save_LIBS=$LIBS
  8245. LIBS="-ldl $LIBS"
  8246. cat >conftest.$ac_ext <<_ACEOF
  8247. /* confdefs.h. */
  8248. _ACEOF
  8249. cat confdefs.h >>conftest.$ac_ext
  8250. cat >>conftest.$ac_ext <<_ACEOF
  8251. /* end confdefs.h. */
  8252. /* Override any gcc2 internal prototype to avoid an error. */
  8253. #ifdef __cplusplus
  8254. extern "C"
  8255. #endif
  8256. /* We use char because int might match the return type of a gcc2
  8257. builtin and then its argument prototype would still apply. */
  8258. char dlopen ();
  8259. int
  8260. main ()
  8261. {
  8262. dlopen ();
  8263. ;
  8264. return 0;
  8265. }
  8266. _ACEOF
  8267. rm -f conftest.$ac_objext conftest$ac_exeext
  8268. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8269. (eval $ac_link) 2>conftest.er1
  8270. ac_status=$?
  8271. grep -v '^ *+' conftest.er1 >conftest.err
  8272. rm -f conftest.er1
  8273. cat conftest.err >&5
  8274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8275. (exit $ac_status); } &&
  8276. { ac_try='test -z "$ac_c_werror_flag"
  8277. || test ! -s conftest.err'
  8278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8279. (eval $ac_try) 2>&5
  8280. ac_status=$?
  8281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8282. (exit $ac_status); }; } &&
  8283. { ac_try='test -s conftest$ac_exeext'
  8284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8285. (eval $ac_try) 2>&5
  8286. ac_status=$?
  8287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8288. (exit $ac_status); }; }; then
  8289. ac_cv_lib_dl_dlopen=yes
  8290. else
  8291. echo "$as_me: failed program was:" >&5
  8292. sed 's/^/| /' conftest.$ac_ext >&5
  8293. ac_cv_lib_dl_dlopen=no
  8294. fi
  8295. rm -f conftest.err conftest.$ac_objext \
  8296. conftest$ac_exeext conftest.$ac_ext
  8297. LIBS=$ac_check_lib_save_LIBS
  8298. fi
  8299. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8300. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8301. if test $ac_cv_lib_dl_dlopen = yes; then
  8302. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8303. else
  8304. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8305. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8306. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8307. echo $ECHO_N "(cached) $ECHO_C" >&6
  8308. else
  8309. ac_check_lib_save_LIBS=$LIBS
  8310. LIBS="-lsvld $LIBS"
  8311. cat >conftest.$ac_ext <<_ACEOF
  8312. /* confdefs.h. */
  8313. _ACEOF
  8314. cat confdefs.h >>conftest.$ac_ext
  8315. cat >>conftest.$ac_ext <<_ACEOF
  8316. /* end confdefs.h. */
  8317. /* Override any gcc2 internal prototype to avoid an error. */
  8318. #ifdef __cplusplus
  8319. extern "C"
  8320. #endif
  8321. /* We use char because int might match the return type of a gcc2
  8322. builtin and then its argument prototype would still apply. */
  8323. char dlopen ();
  8324. int
  8325. main ()
  8326. {
  8327. dlopen ();
  8328. ;
  8329. return 0;
  8330. }
  8331. _ACEOF
  8332. rm -f conftest.$ac_objext conftest$ac_exeext
  8333. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8334. (eval $ac_link) 2>conftest.er1
  8335. ac_status=$?
  8336. grep -v '^ *+' conftest.er1 >conftest.err
  8337. rm -f conftest.er1
  8338. cat conftest.err >&5
  8339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. (exit $ac_status); } &&
  8341. { ac_try='test -z "$ac_c_werror_flag"
  8342. || test ! -s conftest.err'
  8343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8344. (eval $ac_try) 2>&5
  8345. ac_status=$?
  8346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8347. (exit $ac_status); }; } &&
  8348. { ac_try='test -s conftest$ac_exeext'
  8349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8350. (eval $ac_try) 2>&5
  8351. ac_status=$?
  8352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8353. (exit $ac_status); }; }; then
  8354. ac_cv_lib_svld_dlopen=yes
  8355. else
  8356. echo "$as_me: failed program was:" >&5
  8357. sed 's/^/| /' conftest.$ac_ext >&5
  8358. ac_cv_lib_svld_dlopen=no
  8359. fi
  8360. rm -f conftest.err conftest.$ac_objext \
  8361. conftest$ac_exeext conftest.$ac_ext
  8362. LIBS=$ac_check_lib_save_LIBS
  8363. fi
  8364. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8365. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8366. if test $ac_cv_lib_svld_dlopen = yes; then
  8367. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8368. else
  8369. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8370. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8371. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8372. echo $ECHO_N "(cached) $ECHO_C" >&6
  8373. else
  8374. ac_check_lib_save_LIBS=$LIBS
  8375. LIBS="-ldld $LIBS"
  8376. cat >conftest.$ac_ext <<_ACEOF
  8377. /* confdefs.h. */
  8378. _ACEOF
  8379. cat confdefs.h >>conftest.$ac_ext
  8380. cat >>conftest.$ac_ext <<_ACEOF
  8381. /* end confdefs.h. */
  8382. /* Override any gcc2 internal prototype to avoid an error. */
  8383. #ifdef __cplusplus
  8384. extern "C"
  8385. #endif
  8386. /* We use char because int might match the return type of a gcc2
  8387. builtin and then its argument prototype would still apply. */
  8388. char dld_link ();
  8389. int
  8390. main ()
  8391. {
  8392. dld_link ();
  8393. ;
  8394. return 0;
  8395. }
  8396. _ACEOF
  8397. rm -f conftest.$ac_objext conftest$ac_exeext
  8398. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8399. (eval $ac_link) 2>conftest.er1
  8400. ac_status=$?
  8401. grep -v '^ *+' conftest.er1 >conftest.err
  8402. rm -f conftest.er1
  8403. cat conftest.err >&5
  8404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8405. (exit $ac_status); } &&
  8406. { ac_try='test -z "$ac_c_werror_flag"
  8407. || test ! -s conftest.err'
  8408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8409. (eval $ac_try) 2>&5
  8410. ac_status=$?
  8411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8412. (exit $ac_status); }; } &&
  8413. { ac_try='test -s conftest$ac_exeext'
  8414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8415. (eval $ac_try) 2>&5
  8416. ac_status=$?
  8417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8418. (exit $ac_status); }; }; then
  8419. ac_cv_lib_dld_dld_link=yes
  8420. else
  8421. echo "$as_me: failed program was:" >&5
  8422. sed 's/^/| /' conftest.$ac_ext >&5
  8423. ac_cv_lib_dld_dld_link=no
  8424. fi
  8425. rm -f conftest.err conftest.$ac_objext \
  8426. conftest$ac_exeext conftest.$ac_ext
  8427. LIBS=$ac_check_lib_save_LIBS
  8428. fi
  8429. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8430. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8431. if test $ac_cv_lib_dld_dld_link = yes; then
  8432. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8433. fi
  8434. fi
  8435. fi
  8436. fi
  8437. fi
  8438. fi
  8439. ;;
  8440. esac
  8441. if test "x$lt_cv_dlopen" != xno; then
  8442. enable_dlopen=yes
  8443. else
  8444. enable_dlopen=no
  8445. fi
  8446. case $lt_cv_dlopen in
  8447. dlopen)
  8448. save_CPPFLAGS="$CPPFLAGS"
  8449. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8450. save_LDFLAGS="$LDFLAGS"
  8451. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8452. save_LIBS="$LIBS"
  8453. LIBS="$lt_cv_dlopen_libs $LIBS"
  8454. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8455. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8456. if test "${lt_cv_dlopen_self+set}" = set; then
  8457. echo $ECHO_N "(cached) $ECHO_C" >&6
  8458. else
  8459. if test "$cross_compiling" = yes; then :
  8460. lt_cv_dlopen_self=cross
  8461. else
  8462. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8463. lt_status=$lt_dlunknown
  8464. cat > conftest.$ac_ext <<EOF
  8465. #line 9326 "configure"
  8466. #include "confdefs.h"
  8467. #if HAVE_DLFCN_H
  8468. #include <dlfcn.h>
  8469. #endif
  8470. #include <stdio.h>
  8471. #ifdef RTLD_GLOBAL
  8472. # define LT_DLGLOBAL RTLD_GLOBAL
  8473. #else
  8474. # ifdef DL_GLOBAL
  8475. # define LT_DLGLOBAL DL_GLOBAL
  8476. # else
  8477. # define LT_DLGLOBAL 0
  8478. # endif
  8479. #endif
  8480. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8481. find out it does not work in some platform. */
  8482. #ifndef LT_DLLAZY_OR_NOW
  8483. # ifdef RTLD_LAZY
  8484. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8485. # else
  8486. # ifdef DL_LAZY
  8487. # define LT_DLLAZY_OR_NOW DL_LAZY
  8488. # else
  8489. # ifdef RTLD_NOW
  8490. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8491. # else
  8492. # ifdef DL_NOW
  8493. # define LT_DLLAZY_OR_NOW DL_NOW
  8494. # else
  8495. # define LT_DLLAZY_OR_NOW 0
  8496. # endif
  8497. # endif
  8498. # endif
  8499. # endif
  8500. #endif
  8501. #ifdef __cplusplus
  8502. extern "C" void exit (int);
  8503. #endif
  8504. void fnord() { int i=42;}
  8505. int main ()
  8506. {
  8507. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8508. int status = $lt_dlunknown;
  8509. if (self)
  8510. {
  8511. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8512. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8513. /* dlclose (self); */
  8514. }
  8515. else
  8516. puts (dlerror ());
  8517. exit (status);
  8518. }
  8519. EOF
  8520. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8521. (eval $ac_link) 2>&5
  8522. ac_status=$?
  8523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8524. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8525. (./conftest; exit; ) >&5 2>/dev/null
  8526. lt_status=$?
  8527. case x$lt_status in
  8528. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8529. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8530. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8531. esac
  8532. else :
  8533. # compilation failed
  8534. lt_cv_dlopen_self=no
  8535. fi
  8536. fi
  8537. rm -fr conftest*
  8538. fi
  8539. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8540. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8541. if test "x$lt_cv_dlopen_self" = xyes; then
  8542. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8543. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8544. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8545. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8546. echo $ECHO_N "(cached) $ECHO_C" >&6
  8547. else
  8548. if test "$cross_compiling" = yes; then :
  8549. lt_cv_dlopen_self_static=cross
  8550. else
  8551. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8552. lt_status=$lt_dlunknown
  8553. cat > conftest.$ac_ext <<EOF
  8554. #line 9426 "configure"
  8555. #include "confdefs.h"
  8556. #if HAVE_DLFCN_H
  8557. #include <dlfcn.h>
  8558. #endif
  8559. #include <stdio.h>
  8560. #ifdef RTLD_GLOBAL
  8561. # define LT_DLGLOBAL RTLD_GLOBAL
  8562. #else
  8563. # ifdef DL_GLOBAL
  8564. # define LT_DLGLOBAL DL_GLOBAL
  8565. # else
  8566. # define LT_DLGLOBAL 0
  8567. # endif
  8568. #endif
  8569. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8570. find out it does not work in some platform. */
  8571. #ifndef LT_DLLAZY_OR_NOW
  8572. # ifdef RTLD_LAZY
  8573. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8574. # else
  8575. # ifdef DL_LAZY
  8576. # define LT_DLLAZY_OR_NOW DL_LAZY
  8577. # else
  8578. # ifdef RTLD_NOW
  8579. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8580. # else
  8581. # ifdef DL_NOW
  8582. # define LT_DLLAZY_OR_NOW DL_NOW
  8583. # else
  8584. # define LT_DLLAZY_OR_NOW 0
  8585. # endif
  8586. # endif
  8587. # endif
  8588. # endif
  8589. #endif
  8590. #ifdef __cplusplus
  8591. extern "C" void exit (int);
  8592. #endif
  8593. void fnord() { int i=42;}
  8594. int main ()
  8595. {
  8596. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8597. int status = $lt_dlunknown;
  8598. if (self)
  8599. {
  8600. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8601. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8602. /* dlclose (self); */
  8603. }
  8604. else
  8605. puts (dlerror ());
  8606. exit (status);
  8607. }
  8608. EOF
  8609. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8610. (eval $ac_link) 2>&5
  8611. ac_status=$?
  8612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8613. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8614. (./conftest; exit; ) >&5 2>/dev/null
  8615. lt_status=$?
  8616. case x$lt_status in
  8617. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8618. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8619. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8620. esac
  8621. else :
  8622. # compilation failed
  8623. lt_cv_dlopen_self_static=no
  8624. fi
  8625. fi
  8626. rm -fr conftest*
  8627. fi
  8628. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8629. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8630. fi
  8631. CPPFLAGS="$save_CPPFLAGS"
  8632. LDFLAGS="$save_LDFLAGS"
  8633. LIBS="$save_LIBS"
  8634. ;;
  8635. esac
  8636. case $lt_cv_dlopen_self in
  8637. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8638. *) enable_dlopen_self=unknown ;;
  8639. esac
  8640. case $lt_cv_dlopen_self_static in
  8641. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8642. *) enable_dlopen_self_static=unknown ;;
  8643. esac
  8644. fi
  8645. # Report which library types will actually be built
  8646. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8647. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8648. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8649. echo "${ECHO_T}$can_build_shared" >&6
  8650. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8651. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8652. test "$can_build_shared" = "no" && enable_shared=no
  8653. # On AIX, shared libraries and static libraries use the same namespace, and
  8654. # are all built from PIC.
  8655. case $host_os in
  8656. aix3*)
  8657. test "$enable_shared" = yes && enable_static=no
  8658. if test -n "$RANLIB"; then
  8659. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8660. postinstall_cmds='$RANLIB $lib'
  8661. fi
  8662. ;;
  8663. aix4* | aix5*)
  8664. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8665. test "$enable_shared" = yes && enable_static=no
  8666. fi
  8667. ;;
  8668. esac
  8669. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8670. echo "${ECHO_T}$enable_shared" >&6
  8671. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8672. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8673. # Make sure either enable_shared or enable_static is yes.
  8674. test "$enable_shared" = yes || enable_static=yes
  8675. echo "$as_me:$LINENO: result: $enable_static" >&5
  8676. echo "${ECHO_T}$enable_static" >&6
  8677. # The else clause should only fire when bootstrapping the
  8678. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8679. # with your package, and you will get complaints that there are
  8680. # no rules to generate ltmain.sh.
  8681. if test -f "$ltmain"; then
  8682. # See if we are running on zsh, and set the options which allow our commands through
  8683. # without removal of \ escapes.
  8684. if test -n "${ZSH_VERSION+set}" ; then
  8685. setopt NO_GLOB_SUBST
  8686. fi
  8687. # Now quote all the things that may contain metacharacters while being
  8688. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8689. # variables and quote the copies for generation of the libtool script.
  8690. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8691. SED SHELL STRIP \
  8692. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8693. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8694. deplibs_check_method reload_flag reload_cmds need_locks \
  8695. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8696. lt_cv_sys_global_symbol_to_c_name_address \
  8697. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8698. old_postinstall_cmds old_postuninstall_cmds \
  8699. compiler \
  8700. CC \
  8701. LD \
  8702. lt_prog_compiler_wl \
  8703. lt_prog_compiler_pic \
  8704. lt_prog_compiler_static \
  8705. lt_prog_compiler_no_builtin_flag \
  8706. export_dynamic_flag_spec \
  8707. thread_safe_flag_spec \
  8708. whole_archive_flag_spec \
  8709. enable_shared_with_static_runtimes \
  8710. old_archive_cmds \
  8711. old_archive_from_new_cmds \
  8712. predep_objects \
  8713. postdep_objects \
  8714. predeps \
  8715. postdeps \
  8716. compiler_lib_search_path \
  8717. archive_cmds \
  8718. archive_expsym_cmds \
  8719. postinstall_cmds \
  8720. postuninstall_cmds \
  8721. old_archive_from_expsyms_cmds \
  8722. allow_undefined_flag \
  8723. no_undefined_flag \
  8724. export_symbols_cmds \
  8725. hardcode_libdir_flag_spec \
  8726. hardcode_libdir_flag_spec_ld \
  8727. hardcode_libdir_separator \
  8728. hardcode_automatic \
  8729. module_cmds \
  8730. module_expsym_cmds \
  8731. lt_cv_prog_compiler_c_o \
  8732. exclude_expsyms \
  8733. include_expsyms; do
  8734. case $var in
  8735. old_archive_cmds | \
  8736. old_archive_from_new_cmds | \
  8737. archive_cmds | \
  8738. archive_expsym_cmds | \
  8739. module_cmds | \
  8740. module_expsym_cmds | \
  8741. old_archive_from_expsyms_cmds | \
  8742. export_symbols_cmds | \
  8743. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8744. postinstall_cmds | postuninstall_cmds | \
  8745. old_postinstall_cmds | old_postuninstall_cmds | \
  8746. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8747. # Double-quote double-evaled strings.
  8748. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8749. ;;
  8750. *)
  8751. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8752. ;;
  8753. esac
  8754. done
  8755. case $lt_echo in
  8756. *'\$0 --fallback-echo"')
  8757. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8758. ;;
  8759. esac
  8760. cfgfile="${ofile}T"
  8761. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8762. $rm -f "$cfgfile"
  8763. { echo "$as_me:$LINENO: creating $ofile" >&5
  8764. echo "$as_me: creating $ofile" >&6;}
  8765. cat <<__EOF__ >> "$cfgfile"
  8766. #! $SHELL
  8767. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8768. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8769. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8770. #
  8771. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8772. # Free Software Foundation, Inc.
  8773. #
  8774. # This file is part of GNU Libtool:
  8775. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8776. #
  8777. # This program is free software; you can redistribute it and/or modify
  8778. # it under the terms of the GNU General Public License as published by
  8779. # the Free Software Foundation; either version 2 of the License, or
  8780. # (at your option) any later version.
  8781. #
  8782. # This program is distributed in the hope that it will be useful, but
  8783. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8784. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8785. # General Public License for more details.
  8786. #
  8787. # You should have received a copy of the GNU General Public License
  8788. # along with this program; if not, write to the Free Software
  8789. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8790. #
  8791. # As a special exception to the GNU General Public License, if you
  8792. # distribute this file as part of a program that contains a
  8793. # configuration script generated by Autoconf, you may include it under
  8794. # the same distribution terms that you use for the rest of that program.
  8795. # A sed program that does not truncate output.
  8796. SED=$lt_SED
  8797. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8798. Xsed="$SED -e 1s/^X//"
  8799. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8800. # if CDPATH is set.
  8801. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8802. # The names of the tagged configurations supported by this script.
  8803. available_tags=
  8804. # ### BEGIN LIBTOOL CONFIG
  8805. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8806. # Shell to use when invoking shell scripts.
  8807. SHELL=$lt_SHELL
  8808. # Whether or not to build shared libraries.
  8809. build_libtool_libs=$enable_shared
  8810. # Whether or not to build static libraries.
  8811. build_old_libs=$enable_static
  8812. # Whether or not to add -lc for building shared libraries.
  8813. build_libtool_need_lc=$archive_cmds_need_lc
  8814. # Whether or not to disallow shared libs when runtime libs are static
  8815. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8816. # Whether or not to optimize for fast installation.
  8817. fast_install=$enable_fast_install
  8818. # The host system.
  8819. host_alias=$host_alias
  8820. host=$host
  8821. host_os=$host_os
  8822. # The build system.
  8823. build_alias=$build_alias
  8824. build=$build
  8825. build_os=$build_os
  8826. # An echo program that does not interpret backslashes.
  8827. echo=$lt_echo
  8828. # The archiver.
  8829. AR=$lt_AR
  8830. AR_FLAGS=$lt_AR_FLAGS
  8831. # A C compiler.
  8832. LTCC=$lt_LTCC
  8833. # LTCC compiler flags.
  8834. LTCFLAGS=$lt_LTCFLAGS
  8835. # A language-specific compiler.
  8836. CC=$lt_compiler
  8837. # Is the compiler the GNU C compiler?
  8838. with_gcc=$GCC
  8839. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  8840. gcc_ver=\`gcc -dumpversion\`
  8841. # An ERE matcher.
  8842. EGREP=$lt_EGREP
  8843. # The linker used to build libraries.
  8844. LD=$lt_LD
  8845. # Whether we need hard or soft links.
  8846. LN_S=$lt_LN_S
  8847. # A BSD-compatible nm program.
  8848. NM=$lt_NM
  8849. # A symbol stripping program
  8850. STRIP=$lt_STRIP
  8851. # Used to examine libraries when file_magic_cmd begins "file"
  8852. MAGIC_CMD=$MAGIC_CMD
  8853. # Used on cygwin: DLL creation program.
  8854. DLLTOOL="$DLLTOOL"
  8855. # Used on cygwin: object dumper.
  8856. OBJDUMP="$OBJDUMP"
  8857. # Used on cygwin: assembler.
  8858. AS="$AS"
  8859. # The name of the directory that contains temporary libtool files.
  8860. objdir=$objdir
  8861. # How to create reloadable object files.
  8862. reload_flag=$lt_reload_flag
  8863. reload_cmds=$lt_reload_cmds
  8864. # How to pass a linker flag through the compiler.
  8865. wl=$lt_lt_prog_compiler_wl
  8866. # Object file suffix (normally "o").
  8867. objext="$ac_objext"
  8868. # Old archive suffix (normally "a").
  8869. libext="$libext"
  8870. # Shared library suffix (normally ".so").
  8871. shrext_cmds='$shrext_cmds'
  8872. # Executable file suffix (normally "").
  8873. exeext="$exeext"
  8874. # Additional compiler flags for building library objects.
  8875. pic_flag=$lt_lt_prog_compiler_pic
  8876. pic_mode=$pic_mode
  8877. # What is the maximum length of a command?
  8878. max_cmd_len=$lt_cv_sys_max_cmd_len
  8879. # Does compiler simultaneously support -c and -o options?
  8880. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8881. # Must we lock files when doing compilation?
  8882. need_locks=$lt_need_locks
  8883. # Do we need the lib prefix for modules?
  8884. need_lib_prefix=$need_lib_prefix
  8885. # Do we need a version for libraries?
  8886. need_version=$need_version
  8887. # Whether dlopen is supported.
  8888. dlopen_support=$enable_dlopen
  8889. # Whether dlopen of programs is supported.
  8890. dlopen_self=$enable_dlopen_self
  8891. # Whether dlopen of statically linked programs is supported.
  8892. dlopen_self_static=$enable_dlopen_self_static
  8893. # Compiler flag to prevent dynamic linking.
  8894. link_static_flag=$lt_lt_prog_compiler_static
  8895. # Compiler flag to turn off builtin functions.
  8896. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8897. # Compiler flag to allow reflexive dlopens.
  8898. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8899. # Compiler flag to generate shared objects directly from archives.
  8900. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8901. # Compiler flag to generate thread-safe objects.
  8902. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8903. # Library versioning type.
  8904. version_type=$version_type
  8905. # Format of library name prefix.
  8906. libname_spec=$lt_libname_spec
  8907. # List of archive names. First name is the real one, the rest are links.
  8908. # The last name is the one that the linker finds with -lNAME.
  8909. library_names_spec=$lt_library_names_spec
  8910. # The coded name of the library, if different from the real name.
  8911. soname_spec=$lt_soname_spec
  8912. # Commands used to build and install an old-style archive.
  8913. RANLIB=$lt_RANLIB
  8914. old_archive_cmds=$lt_old_archive_cmds
  8915. old_postinstall_cmds=$lt_old_postinstall_cmds
  8916. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8917. # Create an old-style archive from a shared archive.
  8918. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8919. # Create a temporary old-style archive to link instead of a shared archive.
  8920. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8921. # Commands used to build and install a shared archive.
  8922. archive_cmds=$lt_archive_cmds
  8923. archive_expsym_cmds=$lt_archive_expsym_cmds
  8924. postinstall_cmds=$lt_postinstall_cmds
  8925. postuninstall_cmds=$lt_postuninstall_cmds
  8926. # Commands used to build a loadable module (assumed same as above if empty)
  8927. module_cmds=$lt_module_cmds
  8928. module_expsym_cmds=$lt_module_expsym_cmds
  8929. # Commands to strip libraries.
  8930. old_striplib=$lt_old_striplib
  8931. striplib=$lt_striplib
  8932. # Dependencies to place before the objects being linked to create a
  8933. # shared library.
  8934. predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8935. # Dependencies to place after the objects being linked to create a
  8936. # shared library.
  8937. postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8938. # Dependencies to place before the objects being linked to create a
  8939. # shared library.
  8940. predeps=$lt_predeps
  8941. # Dependencies to place after the objects being linked to create a
  8942. # shared library.
  8943. postdeps=$lt_postdeps
  8944. # The library search path used internally by the compiler when linking
  8945. # a shared library.
  8946. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8947. # Method to check whether dependent libraries are shared objects.
  8948. deplibs_check_method=$lt_deplibs_check_method
  8949. # Command to use when deplibs_check_method == file_magic.
  8950. file_magic_cmd=$lt_file_magic_cmd
  8951. # Flag that allows shared libraries with undefined symbols to be built.
  8952. allow_undefined_flag=$lt_allow_undefined_flag
  8953. # Flag that forces no undefined symbols.
  8954. no_undefined_flag=$lt_no_undefined_flag
  8955. # Commands used to finish a libtool library installation in a directory.
  8956. finish_cmds=$lt_finish_cmds
  8957. # Same as above, but a single script fragment to be evaled but not shown.
  8958. finish_eval=$lt_finish_eval
  8959. # Take the output of nm and produce a listing of raw symbols and C names.
  8960. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8961. # Transform the output of nm in a proper C declaration
  8962. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8963. # Transform the output of nm in a C name address pair
  8964. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8965. # This is the shared library runtime path variable.
  8966. runpath_var=$runpath_var
  8967. # This is the shared library path variable.
  8968. shlibpath_var=$shlibpath_var
  8969. # Is shlibpath searched before the hard-coded library search path?
  8970. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8971. # How to hardcode a shared library path into an executable.
  8972. hardcode_action=$hardcode_action
  8973. # Whether we should hardcode library paths into libraries.
  8974. hardcode_into_libs=$hardcode_into_libs
  8975. # Flag to hardcode \$libdir into a binary during linking.
  8976. # This must work even if \$libdir does not exist.
  8977. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8978. # If ld is used when linking, flag to hardcode \$libdir into
  8979. # a binary during linking. This must work even if \$libdir does
  8980. # not exist.
  8981. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8982. # Whether we need a single -rpath flag with a separated argument.
  8983. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8984. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8985. # resulting binary.
  8986. hardcode_direct=$hardcode_direct
  8987. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8988. # resulting binary.
  8989. hardcode_minus_L=$hardcode_minus_L
  8990. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8991. # the resulting binary.
  8992. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8993. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8994. # and all subsequent libraries and executables linked against it.
  8995. hardcode_automatic=$hardcode_automatic
  8996. # Variables whose values should be saved in libtool wrapper scripts and
  8997. # restored at relink time.
  8998. variables_saved_for_relink="$variables_saved_for_relink"
  8999. # Whether libtool must link a program against all its dependency libraries.
  9000. link_all_deplibs=$link_all_deplibs
  9001. # Compile-time system search path for libraries
  9002. 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"\`
  9003. # Run-time system search path for libraries
  9004. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9005. # Fix the shell variable \$srcfile for the compiler.
  9006. fix_srcfile_path="$fix_srcfile_path"
  9007. # Set to yes if exported symbols are required.
  9008. always_export_symbols=$always_export_symbols
  9009. # The commands to list exported symbols.
  9010. export_symbols_cmds=$lt_export_symbols_cmds
  9011. # The commands to extract the exported symbol list from a shared archive.
  9012. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9013. # Symbols that should not be listed in the preloaded symbols.
  9014. exclude_expsyms=$lt_exclude_expsyms
  9015. # Symbols that must always be exported.
  9016. include_expsyms=$lt_include_expsyms
  9017. # ### END LIBTOOL CONFIG
  9018. __EOF__
  9019. case $host_os in
  9020. aix3*)
  9021. cat <<\EOF >> "$cfgfile"
  9022. # AIX sometimes has problems with the GCC collect2 program. For some
  9023. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9024. # vanish in a puff of smoke.
  9025. if test "X${COLLECT_NAMES+set}" != Xset; then
  9026. COLLECT_NAMES=
  9027. export COLLECT_NAMES
  9028. fi
  9029. EOF
  9030. ;;
  9031. esac
  9032. # We use sed instead of cat because bash on DJGPP gets confused if
  9033. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9034. # text mode, it properly converts lines to CR/LF. This bash problem
  9035. # is reportedly fixed, but why not run on old versions too?
  9036. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9037. mv -f "$cfgfile" "$ofile" || \
  9038. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9039. chmod +x "$ofile"
  9040. else
  9041. # If there is no Makefile yet, we rely on a make rule to execute
  9042. # `config.status --recheck' to rerun these tests and create the
  9043. # libtool script then.
  9044. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9045. if test -f "$ltmain_in"; then
  9046. test -f Makefile && make "$ltmain"
  9047. fi
  9048. fi
  9049. ac_ext=c
  9050. ac_cpp='$CPP $CPPFLAGS'
  9051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9054. CC="$lt_save_CC"
  9055. # Check whether --with-tags or --without-tags was given.
  9056. if test "${with_tags+set}" = set; then
  9057. withval="$with_tags"
  9058. tagnames="$withval"
  9059. fi;
  9060. if test -f "$ltmain" && test -n "$tagnames"; then
  9061. if test ! -f "${ofile}"; then
  9062. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9063. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9064. fi
  9065. if test -z "$LTCC"; then
  9066. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9067. if test -z "$LTCC"; then
  9068. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9069. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9070. else
  9071. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9072. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9073. fi
  9074. fi
  9075. if test -z "$LTCFLAGS"; then
  9076. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9077. fi
  9078. # Extract list of available tagged configurations in $ofile.
  9079. # Note that this assumes the entire list is on one line.
  9080. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9081. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9082. for tagname in $tagnames; do
  9083. IFS="$lt_save_ifs"
  9084. # Check whether tagname contains only valid characters
  9085. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9086. "") ;;
  9087. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9088. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9089. { (exit 1); exit 1; }; }
  9090. ;;
  9091. esac
  9092. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9093. then
  9094. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9095. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9096. { (exit 1); exit 1; }; }
  9097. fi
  9098. # Update the list of available tags.
  9099. if test -n "$tagname"; then
  9100. echo appending configuration tag \"$tagname\" to $ofile
  9101. case $tagname in
  9102. CXX)
  9103. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9104. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9105. (test "X$CXX" != "Xg++"))) ; then
  9106. ac_ext=cc
  9107. ac_cpp='$CXXCPP $CPPFLAGS'
  9108. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9109. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9110. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9111. archive_cmds_need_lc_CXX=no
  9112. allow_undefined_flag_CXX=
  9113. always_export_symbols_CXX=no
  9114. archive_expsym_cmds_CXX=
  9115. export_dynamic_flag_spec_CXX=
  9116. hardcode_direct_CXX=no
  9117. hardcode_libdir_flag_spec_CXX=
  9118. hardcode_libdir_flag_spec_ld_CXX=
  9119. hardcode_libdir_separator_CXX=
  9120. hardcode_minus_L_CXX=no
  9121. hardcode_shlibpath_var_CXX=unsupported
  9122. hardcode_automatic_CXX=no
  9123. module_cmds_CXX=
  9124. module_expsym_cmds_CXX=
  9125. link_all_deplibs_CXX=unknown
  9126. old_archive_cmds_CXX=$old_archive_cmds
  9127. no_undefined_flag_CXX=
  9128. whole_archive_flag_spec_CXX=
  9129. enable_shared_with_static_runtimes_CXX=no
  9130. # Dependencies to place before and after the object being linked:
  9131. predep_objects_CXX=
  9132. postdep_objects_CXX=
  9133. predeps_CXX=
  9134. postdeps_CXX=
  9135. compiler_lib_search_path_CXX=
  9136. # Source file extension for C++ test sources.
  9137. ac_ext=cpp
  9138. # Object file extension for compiled C++ test sources.
  9139. objext=o
  9140. objext_CXX=$objext
  9141. # Code to be used in simple compile tests
  9142. lt_simple_compile_test_code="int some_variable = 0;\n"
  9143. # Code to be used in simple link tests
  9144. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9145. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9146. # If no C compiler was specified, use CC.
  9147. LTCC=${LTCC-"$CC"}
  9148. # If no C compiler flags were specified, use CFLAGS.
  9149. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9150. # Allow CC to be a program name with arguments.
  9151. compiler=$CC
  9152. # save warnings/boilerplate of simple test code
  9153. ac_outfile=conftest.$ac_objext
  9154. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9155. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9156. _lt_compiler_boilerplate=`cat conftest.err`
  9157. $rm conftest*
  9158. ac_outfile=conftest.$ac_objext
  9159. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9160. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9161. _lt_linker_boilerplate=`cat conftest.err`
  9162. $rm conftest*
  9163. # Allow CC to be a program name with arguments.
  9164. lt_save_CC=$CC
  9165. lt_save_LD=$LD
  9166. lt_save_GCC=$GCC
  9167. GCC=$GXX
  9168. lt_save_with_gnu_ld=$with_gnu_ld
  9169. lt_save_path_LD=$lt_cv_path_LD
  9170. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9171. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9172. else
  9173. $as_unset lt_cv_prog_gnu_ld
  9174. fi
  9175. if test -n "${lt_cv_path_LDCXX+set}"; then
  9176. lt_cv_path_LD=$lt_cv_path_LDCXX
  9177. else
  9178. $as_unset lt_cv_path_LD
  9179. fi
  9180. test -z "${LDCXX+set}" || LD=$LDCXX
  9181. CC=${CXX-"c++"}
  9182. compiler=$CC
  9183. compiler_CXX=$CC
  9184. for cc_temp in $compiler""; do
  9185. case $cc_temp in
  9186. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9187. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9188. \-*) ;;
  9189. *) break;;
  9190. esac
  9191. done
  9192. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9193. # We don't want -fno-exception wen compiling C++ code, so set the
  9194. # no_builtin_flag separately
  9195. if test "$GXX" = yes; then
  9196. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9197. else
  9198. lt_prog_compiler_no_builtin_flag_CXX=
  9199. fi
  9200. if test "$GXX" = yes; then
  9201. # Set up default GNU C++ configuration
  9202. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9203. if test "${with_gnu_ld+set}" = set; then
  9204. withval="$with_gnu_ld"
  9205. test "$withval" = no || with_gnu_ld=yes
  9206. else
  9207. with_gnu_ld=no
  9208. fi;
  9209. ac_prog=ld
  9210. if test "$GCC" = yes; then
  9211. # Check if gcc -print-prog-name=ld gives a path.
  9212. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9213. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9214. case $host in
  9215. *-*-mingw*)
  9216. # gcc leaves a trailing carriage return which upsets mingw
  9217. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9218. *)
  9219. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9220. esac
  9221. case $ac_prog in
  9222. # Accept absolute paths.
  9223. [\\/]* | ?:[\\/]*)
  9224. re_direlt='/[^/][^/]*/\.\./'
  9225. # Canonicalize the pathname of ld
  9226. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9227. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9228. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9229. done
  9230. test -z "$LD" && LD="$ac_prog"
  9231. ;;
  9232. "")
  9233. # If it fails, then pretend we aren't using GCC.
  9234. ac_prog=ld
  9235. ;;
  9236. *)
  9237. # If it is relative, then search for the first ld in PATH.
  9238. with_gnu_ld=unknown
  9239. ;;
  9240. esac
  9241. elif test "$with_gnu_ld" = yes; then
  9242. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9243. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9244. else
  9245. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9246. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9247. fi
  9248. if test "${lt_cv_path_LD+set}" = set; then
  9249. echo $ECHO_N "(cached) $ECHO_C" >&6
  9250. else
  9251. if test -z "$LD"; then
  9252. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9253. for ac_dir in $PATH; do
  9254. IFS="$lt_save_ifs"
  9255. test -z "$ac_dir" && ac_dir=.
  9256. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9257. lt_cv_path_LD="$ac_dir/$ac_prog"
  9258. # Check to see if the program is GNU ld. I'd rather use --version,
  9259. # but apparently some variants of GNU ld only accept -v.
  9260. # Break only if it was the GNU/non-GNU ld that we prefer.
  9261. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9262. *GNU* | *'with BFD'*)
  9263. test "$with_gnu_ld" != no && break
  9264. ;;
  9265. *)
  9266. test "$with_gnu_ld" != yes && break
  9267. ;;
  9268. esac
  9269. fi
  9270. done
  9271. IFS="$lt_save_ifs"
  9272. else
  9273. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9274. fi
  9275. fi
  9276. LD="$lt_cv_path_LD"
  9277. if test -n "$LD"; then
  9278. echo "$as_me:$LINENO: result: $LD" >&5
  9279. echo "${ECHO_T}$LD" >&6
  9280. else
  9281. echo "$as_me:$LINENO: result: no" >&5
  9282. echo "${ECHO_T}no" >&6
  9283. fi
  9284. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9285. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9286. { (exit 1); exit 1; }; }
  9287. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9288. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9289. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9290. echo $ECHO_N "(cached) $ECHO_C" >&6
  9291. else
  9292. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9293. case `$LD -v 2>&1 </dev/null` in
  9294. *GNU* | *'with BFD'*)
  9295. lt_cv_prog_gnu_ld=yes
  9296. ;;
  9297. *)
  9298. lt_cv_prog_gnu_ld=no
  9299. ;;
  9300. esac
  9301. fi
  9302. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9303. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9304. with_gnu_ld=$lt_cv_prog_gnu_ld
  9305. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9306. # archiving commands below assume that GNU ld is being used.
  9307. if test "$with_gnu_ld" = yes; then
  9308. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9309. 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'
  9310. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9311. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9312. # If archive_cmds runs LD, not CC, wlarc should be empty
  9313. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9314. # investigate it a little bit more. (MM)
  9315. wlarc='${wl}'
  9316. # ancient GNU ld didn't support --whole-archive et. al.
  9317. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9318. grep 'no-whole-archive' > /dev/null; then
  9319. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9320. else
  9321. whole_archive_flag_spec_CXX=
  9322. fi
  9323. else
  9324. with_gnu_ld=no
  9325. wlarc=
  9326. # A generic and very simple default shared library creation
  9327. # command for GNU C++ for the case where it uses the native
  9328. # linker, instead of GNU ld. If possible, this setting should
  9329. # overridden to take advantage of the native linker features on
  9330. # the platform it is being used on.
  9331. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9332. fi
  9333. # Commands to make compiler produce verbose output that lists
  9334. # what "hidden" libraries, object files and flags are used when
  9335. # linking a shared library.
  9336. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9337. else
  9338. GXX=no
  9339. with_gnu_ld=no
  9340. wlarc=
  9341. fi
  9342. # PORTME: fill in a description of your system's C++ link characteristics
  9343. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9344. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9345. ld_shlibs_CXX=yes
  9346. case $host_os in
  9347. aix3*)
  9348. # FIXME: insert proper C++ library support
  9349. ld_shlibs_CXX=no
  9350. ;;
  9351. aix4* | aix5*)
  9352. if test "$host_cpu" = ia64; then
  9353. # On IA64, the linker does run time linking by default, so we don't
  9354. # have to do anything special.
  9355. aix_use_runtimelinking=no
  9356. exp_sym_flag='-Bexport'
  9357. no_entry_flag=""
  9358. else
  9359. aix_use_runtimelinking=no
  9360. # Test if we are trying to use run time linking or normal
  9361. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9362. # need to do runtime linking.
  9363. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9364. for ld_flag in $LDFLAGS; do
  9365. case $ld_flag in
  9366. *-brtl*)
  9367. aix_use_runtimelinking=yes
  9368. break
  9369. ;;
  9370. esac
  9371. done
  9372. ;;
  9373. esac
  9374. exp_sym_flag='-bexport'
  9375. no_entry_flag='-bnoentry'
  9376. fi
  9377. # When large executables or shared objects are built, AIX ld can
  9378. # have problems creating the table of contents. If linking a library
  9379. # or program results in "error TOC overflow" add -mminimal-toc to
  9380. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9381. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9382. archive_cmds_CXX=''
  9383. hardcode_direct_CXX=yes
  9384. hardcode_libdir_separator_CXX=':'
  9385. link_all_deplibs_CXX=yes
  9386. if test "$GXX" = yes; then
  9387. case $host_os in aix4.[012]|aix4.[012].*)
  9388. # We only want to do this on AIX 4.2 and lower, the check
  9389. # below for broken collect2 doesn't work under 4.3+
  9390. collect2name=`${CC} -print-prog-name=collect2`
  9391. if test -f "$collect2name" && \
  9392. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9393. then
  9394. # We have reworked collect2
  9395. hardcode_direct_CXX=yes
  9396. else
  9397. # We have old collect2
  9398. hardcode_direct_CXX=unsupported
  9399. # It fails to find uninstalled libraries when the uninstalled
  9400. # path is not listed in the libpath. Setting hardcode_minus_L
  9401. # to unsupported forces relinking
  9402. hardcode_minus_L_CXX=yes
  9403. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9404. hardcode_libdir_separator_CXX=
  9405. fi
  9406. ;;
  9407. esac
  9408. shared_flag='-shared'
  9409. if test "$aix_use_runtimelinking" = yes; then
  9410. shared_flag="$shared_flag "'${wl}-G'
  9411. fi
  9412. else
  9413. # not using gcc
  9414. if test "$host_cpu" = ia64; then
  9415. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9416. # chokes on -Wl,-G. The following line is correct:
  9417. shared_flag='-G'
  9418. else
  9419. if test "$aix_use_runtimelinking" = yes; then
  9420. shared_flag='${wl}-G'
  9421. else
  9422. shared_flag='${wl}-bM:SRE'
  9423. fi
  9424. fi
  9425. fi
  9426. # It seems that -bexpall does not export symbols beginning with
  9427. # underscore (_), so it is better to generate a list of symbols to export.
  9428. always_export_symbols_CXX=yes
  9429. if test "$aix_use_runtimelinking" = yes; then
  9430. # Warning - without using the other runtime loading flags (-brtl),
  9431. # -berok will link without error, but may produce a broken library.
  9432. allow_undefined_flag_CXX='-berok'
  9433. # Determine the default libpath from the value encoded in an empty executable.
  9434. cat >conftest.$ac_ext <<_ACEOF
  9435. /* confdefs.h. */
  9436. _ACEOF
  9437. cat confdefs.h >>conftest.$ac_ext
  9438. cat >>conftest.$ac_ext <<_ACEOF
  9439. /* end confdefs.h. */
  9440. int
  9441. main ()
  9442. {
  9443. ;
  9444. return 0;
  9445. }
  9446. _ACEOF
  9447. rm -f conftest.$ac_objext conftest$ac_exeext
  9448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9449. (eval $ac_link) 2>conftest.er1
  9450. ac_status=$?
  9451. grep -v '^ *+' conftest.er1 >conftest.err
  9452. rm -f conftest.er1
  9453. cat conftest.err >&5
  9454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9455. (exit $ac_status); } &&
  9456. { ac_try='test -z "$ac_cxx_werror_flag"
  9457. || test ! -s conftest.err'
  9458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9459. (eval $ac_try) 2>&5
  9460. ac_status=$?
  9461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9462. (exit $ac_status); }; } &&
  9463. { ac_try='test -s conftest$ac_exeext'
  9464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9465. (eval $ac_try) 2>&5
  9466. ac_status=$?
  9467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9468. (exit $ac_status); }; }; then
  9469. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9470. }'`
  9471. # Check for a 64-bit object if we didn't find anything.
  9472. 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; }
  9473. }'`; fi
  9474. else
  9475. echo "$as_me: failed program was:" >&5
  9476. sed 's/^/| /' conftest.$ac_ext >&5
  9477. fi
  9478. rm -f conftest.err conftest.$ac_objext \
  9479. conftest$ac_exeext conftest.$ac_ext
  9480. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9481. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9482. 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"
  9483. else
  9484. if test "$host_cpu" = ia64; then
  9485. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9486. allow_undefined_flag_CXX="-z nodefs"
  9487. 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"
  9488. else
  9489. # Determine the default libpath from the value encoded in an empty executable.
  9490. cat >conftest.$ac_ext <<_ACEOF
  9491. /* confdefs.h. */
  9492. _ACEOF
  9493. cat confdefs.h >>conftest.$ac_ext
  9494. cat >>conftest.$ac_ext <<_ACEOF
  9495. /* end confdefs.h. */
  9496. int
  9497. main ()
  9498. {
  9499. ;
  9500. return 0;
  9501. }
  9502. _ACEOF
  9503. rm -f conftest.$ac_objext conftest$ac_exeext
  9504. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9505. (eval $ac_link) 2>conftest.er1
  9506. ac_status=$?
  9507. grep -v '^ *+' conftest.er1 >conftest.err
  9508. rm -f conftest.er1
  9509. cat conftest.err >&5
  9510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9511. (exit $ac_status); } &&
  9512. { ac_try='test -z "$ac_cxx_werror_flag"
  9513. || test ! -s conftest.err'
  9514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9515. (eval $ac_try) 2>&5
  9516. ac_status=$?
  9517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9518. (exit $ac_status); }; } &&
  9519. { ac_try='test -s conftest$ac_exeext'
  9520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9521. (eval $ac_try) 2>&5
  9522. ac_status=$?
  9523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9524. (exit $ac_status); }; }; then
  9525. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9526. }'`
  9527. # Check for a 64-bit object if we didn't find anything.
  9528. 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; }
  9529. }'`; fi
  9530. else
  9531. echo "$as_me: failed program was:" >&5
  9532. sed 's/^/| /' conftest.$ac_ext >&5
  9533. fi
  9534. rm -f conftest.err conftest.$ac_objext \
  9535. conftest$ac_exeext conftest.$ac_ext
  9536. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9537. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9538. # Warning - without using the other run time loading flags,
  9539. # -berok will link without error, but may produce a broken library.
  9540. no_undefined_flag_CXX=' ${wl}-bernotok'
  9541. allow_undefined_flag_CXX=' ${wl}-berok'
  9542. # Exported symbols can be pulled into shared objects from archives
  9543. whole_archive_flag_spec_CXX='$convenience'
  9544. archive_cmds_need_lc_CXX=yes
  9545. # This is similar to how AIX traditionally builds its shared libraries.
  9546. 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'
  9547. fi
  9548. fi
  9549. ;;
  9550. beos*)
  9551. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9552. allow_undefined_flag_CXX=unsupported
  9553. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9554. # support --undefined. This deserves some investigation. FIXME
  9555. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9556. else
  9557. ld_shlibs_CXX=no
  9558. fi
  9559. ;;
  9560. chorus*)
  9561. case $cc_basename in
  9562. *)
  9563. # FIXME: insert proper C++ library support
  9564. ld_shlibs_CXX=no
  9565. ;;
  9566. esac
  9567. ;;
  9568. cygwin* | mingw* | pw32*)
  9569. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9570. # as there is no search path for DLLs.
  9571. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9572. allow_undefined_flag_CXX=unsupported
  9573. always_export_symbols_CXX=no
  9574. enable_shared_with_static_runtimes_CXX=yes
  9575. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9576. 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'
  9577. # If the export-symbols file already is a .def file (1st line
  9578. # is EXPORTS), use it as is; otherwise, prepend...
  9579. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9580. cp $export_symbols $output_objdir/$soname.def;
  9581. else
  9582. echo EXPORTS > $output_objdir/$soname.def;
  9583. cat $export_symbols >> $output_objdir/$soname.def;
  9584. fi~
  9585. $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'
  9586. else
  9587. ld_shlibs_CXX=no
  9588. fi
  9589. ;;
  9590. darwin* | rhapsody*)
  9591. case $host_os in
  9592. rhapsody* | darwin1.[012])
  9593. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9594. ;;
  9595. *) # Darwin 1.3 on
  9596. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9597. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9598. else
  9599. case ${MACOSX_DEPLOYMENT_TARGET} in
  9600. 10.[012])
  9601. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9602. ;;
  9603. 10.*)
  9604. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9605. ;;
  9606. esac
  9607. fi
  9608. ;;
  9609. esac
  9610. archive_cmds_need_lc_CXX=no
  9611. hardcode_direct_CXX=no
  9612. hardcode_automatic_CXX=yes
  9613. hardcode_shlibpath_var_CXX=unsupported
  9614. whole_archive_flag_spec_CXX=''
  9615. link_all_deplibs_CXX=yes
  9616. if test "$GXX" = yes ; then
  9617. lt_int_apple_cc_single_mod=no
  9618. output_verbose_link_cmd='echo'
  9619. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9620. lt_int_apple_cc_single_mod=yes
  9621. fi
  9622. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9623. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9624. else
  9625. 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'
  9626. fi
  9627. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9628. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9629. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9630. 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}'
  9631. else
  9632. 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}'
  9633. fi
  9634. 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}'
  9635. else
  9636. case $cc_basename in
  9637. xlc*)
  9638. output_verbose_link_cmd='echo'
  9639. 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'
  9640. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9641. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9642. 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}'
  9643. 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}'
  9644. ;;
  9645. *)
  9646. ld_shlibs_CXX=no
  9647. ;;
  9648. esac
  9649. fi
  9650. ;;
  9651. dgux*)
  9652. case $cc_basename in
  9653. ec++*)
  9654. # FIXME: insert proper C++ library support
  9655. ld_shlibs_CXX=no
  9656. ;;
  9657. ghcx*)
  9658. # Green Hills C++ Compiler
  9659. # FIXME: insert proper C++ library support
  9660. ld_shlibs_CXX=no
  9661. ;;
  9662. *)
  9663. # FIXME: insert proper C++ library support
  9664. ld_shlibs_CXX=no
  9665. ;;
  9666. esac
  9667. ;;
  9668. freebsd[12]*)
  9669. # C++ shared libraries reported to be fairly broken before switch to ELF
  9670. ld_shlibs_CXX=no
  9671. ;;
  9672. freebsd-elf*)
  9673. archive_cmds_need_lc_CXX=no
  9674. ;;
  9675. freebsd* | kfreebsd*-gnu | dragonfly*)
  9676. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9677. # conventions
  9678. ld_shlibs_CXX=yes
  9679. ;;
  9680. gnu*)
  9681. ;;
  9682. hpux9*)
  9683. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9684. hardcode_libdir_separator_CXX=:
  9685. export_dynamic_flag_spec_CXX='${wl}-E'
  9686. hardcode_direct_CXX=yes
  9687. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9688. # but as the default
  9689. # location of the library.
  9690. case $cc_basename in
  9691. CC*)
  9692. # FIXME: insert proper C++ library support
  9693. ld_shlibs_CXX=no
  9694. ;;
  9695. aCC*)
  9696. 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'
  9697. # Commands to make compiler produce verbose output that lists
  9698. # what "hidden" libraries, object files and flags are used when
  9699. # linking a shared library.
  9700. #
  9701. # There doesn't appear to be a way to prevent this compiler from
  9702. # explicitly linking system object files so we need to strip them
  9703. # from the output so that they don't get included in the library
  9704. # dependencies.
  9705. 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'
  9706. ;;
  9707. *)
  9708. if test "$GXX" = yes; then
  9709. 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'
  9710. else
  9711. # FIXME: insert proper C++ library support
  9712. ld_shlibs_CXX=no
  9713. fi
  9714. ;;
  9715. esac
  9716. ;;
  9717. hpux10*|hpux11*)
  9718. if test $with_gnu_ld = no; then
  9719. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9720. hardcode_libdir_separator_CXX=:
  9721. case $host_cpu in
  9722. hppa*64*|ia64*)
  9723. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9724. ;;
  9725. *)
  9726. export_dynamic_flag_spec_CXX='${wl}-E'
  9727. ;;
  9728. esac
  9729. fi
  9730. case $host_cpu in
  9731. hppa*64*|ia64*)
  9732. hardcode_direct_CXX=no
  9733. hardcode_shlibpath_var_CXX=no
  9734. ;;
  9735. *)
  9736. hardcode_direct_CXX=yes
  9737. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9738. # but as the default
  9739. # location of the library.
  9740. ;;
  9741. esac
  9742. case $cc_basename in
  9743. CC*)
  9744. # FIXME: insert proper C++ library support
  9745. ld_shlibs_CXX=no
  9746. ;;
  9747. aCC*)
  9748. case $host_cpu in
  9749. hppa*64*)
  9750. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9751. ;;
  9752. ia64*)
  9753. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9754. ;;
  9755. *)
  9756. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9757. ;;
  9758. esac
  9759. # Commands to make compiler produce verbose output that lists
  9760. # what "hidden" libraries, object files and flags are used when
  9761. # linking a shared library.
  9762. #
  9763. # There doesn't appear to be a way to prevent this compiler from
  9764. # explicitly linking system object files so we need to strip them
  9765. # from the output so that they don't get included in the library
  9766. # dependencies.
  9767. 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'
  9768. ;;
  9769. *)
  9770. if test "$GXX" = yes; then
  9771. if test $with_gnu_ld = no; then
  9772. case $host_cpu in
  9773. hppa*64*)
  9774. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9775. ;;
  9776. ia64*)
  9777. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9778. ;;
  9779. *)
  9780. 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'
  9781. ;;
  9782. esac
  9783. fi
  9784. else
  9785. # FIXME: insert proper C++ library support
  9786. ld_shlibs_CXX=no
  9787. fi
  9788. ;;
  9789. esac
  9790. ;;
  9791. interix3*)
  9792. hardcode_direct_CXX=no
  9793. hardcode_shlibpath_var_CXX=no
  9794. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9795. export_dynamic_flag_spec_CXX='${wl}-E'
  9796. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9797. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9798. # default) and relocated if they conflict, which is a slow very memory
  9799. # consuming and fragmenting process. To avoid this, we pick a random,
  9800. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9801. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9802. 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'
  9803. 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'
  9804. ;;
  9805. irix5* | irix6*)
  9806. case $cc_basename in
  9807. CC*)
  9808. # SGI C++
  9809. 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'
  9810. # Archives containing C++ object files must be created using
  9811. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9812. # necessary to make sure instantiated templates are included
  9813. # in the archive.
  9814. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9815. ;;
  9816. *)
  9817. if test "$GXX" = yes; then
  9818. if test "$with_gnu_ld" = no; then
  9819. 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'
  9820. else
  9821. 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'
  9822. fi
  9823. fi
  9824. link_all_deplibs_CXX=yes
  9825. ;;
  9826. esac
  9827. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9828. hardcode_libdir_separator_CXX=:
  9829. ;;
  9830. linux*)
  9831. case $cc_basename in
  9832. KCC*)
  9833. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9834. # KCC will only create a shared library if the output file
  9835. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9836. # to its proper name (with version) after linking.
  9837. 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'
  9838. 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'
  9839. # Commands to make compiler produce verbose output that lists
  9840. # what "hidden" libraries, object files and flags are used when
  9841. # linking a shared library.
  9842. #
  9843. # There doesn't appear to be a way to prevent this compiler from
  9844. # explicitly linking system object files so we need to strip them
  9845. # from the output so that they don't get included in the library
  9846. # dependencies.
  9847. 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'
  9848. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9849. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9850. # Archives containing C++ object files must be created using
  9851. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9852. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9853. ;;
  9854. icpc*)
  9855. # Intel C++
  9856. with_gnu_ld=yes
  9857. # version 8.0 and above of icpc choke on multiply defined symbols
  9858. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9859. # earlier do not add the objects themselves.
  9860. case `$CC -V 2>&1` in
  9861. *"Version 7."*)
  9862. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9863. 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'
  9864. ;;
  9865. *) # Version 8.0 or newer
  9866. tmp_idyn=
  9867. case $host_cpu in
  9868. ia64*) tmp_idyn=' -i_dynamic';;
  9869. esac
  9870. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9871. 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'
  9872. ;;
  9873. esac
  9874. archive_cmds_need_lc_CXX=no
  9875. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9876. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9877. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9878. ;;
  9879. pgCC*)
  9880. # Portland Group C++ compiler
  9881. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9882. 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'
  9883. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9884. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9885. 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'
  9886. ;;
  9887. cxx*)
  9888. # Compaq C++
  9889. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9890. 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'
  9891. runpath_var=LD_RUN_PATH
  9892. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9893. hardcode_libdir_separator_CXX=:
  9894. # Commands to make compiler produce verbose output that lists
  9895. # what "hidden" libraries, object files and flags are used when
  9896. # linking a shared library.
  9897. #
  9898. # There doesn't appear to be a way to prevent this compiler from
  9899. # explicitly linking system object files so we need to strip them
  9900. # from the output so that they don't get included in the library
  9901. # dependencies.
  9902. 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'
  9903. ;;
  9904. esac
  9905. ;;
  9906. lynxos*)
  9907. # FIXME: insert proper C++ library support
  9908. ld_shlibs_CXX=no
  9909. ;;
  9910. m88k*)
  9911. # FIXME: insert proper C++ library support
  9912. ld_shlibs_CXX=no
  9913. ;;
  9914. mvs*)
  9915. case $cc_basename in
  9916. cxx*)
  9917. # FIXME: insert proper C++ library support
  9918. ld_shlibs_CXX=no
  9919. ;;
  9920. *)
  9921. # FIXME: insert proper C++ library support
  9922. ld_shlibs_CXX=no
  9923. ;;
  9924. esac
  9925. ;;
  9926. netbsd*)
  9927. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9928. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9929. wlarc=
  9930. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9931. hardcode_direct_CXX=yes
  9932. hardcode_shlibpath_var_CXX=no
  9933. fi
  9934. # Workaround some broken pre-1.5 toolchains
  9935. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9936. ;;
  9937. openbsd2*)
  9938. # C++ shared libraries are fairly broken
  9939. ld_shlibs_CXX=no
  9940. ;;
  9941. openbsd*)
  9942. hardcode_direct_CXX=yes
  9943. hardcode_shlibpath_var_CXX=no
  9944. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9945. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9946. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9947. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9948. export_dynamic_flag_spec_CXX='${wl}-E'
  9949. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9950. fi
  9951. output_verbose_link_cmd='echo'
  9952. ;;
  9953. osf3*)
  9954. case $cc_basename in
  9955. KCC*)
  9956. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9957. # KCC will only create a shared library if the output file
  9958. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9959. # to its proper name (with version) after linking.
  9960. 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'
  9961. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9962. hardcode_libdir_separator_CXX=:
  9963. # Archives containing C++ object files must be created using
  9964. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9965. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9966. ;;
  9967. RCC*)
  9968. # Rational C++ 2.4.1
  9969. # FIXME: insert proper C++ library support
  9970. ld_shlibs_CXX=no
  9971. ;;
  9972. cxx*)
  9973. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9974. 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'
  9975. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9976. hardcode_libdir_separator_CXX=:
  9977. # Commands to make compiler produce verbose output that lists
  9978. # what "hidden" libraries, object files and flags are used when
  9979. # linking a shared library.
  9980. #
  9981. # There doesn't appear to be a way to prevent this compiler from
  9982. # explicitly linking system object files so we need to strip them
  9983. # from the output so that they don't get included in the library
  9984. # dependencies.
  9985. 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'
  9986. ;;
  9987. *)
  9988. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9989. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9990. 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'
  9991. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9992. hardcode_libdir_separator_CXX=:
  9993. # Commands to make compiler produce verbose output that lists
  9994. # what "hidden" libraries, object files and flags are used when
  9995. # linking a shared library.
  9996. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9997. else
  9998. # FIXME: insert proper C++ library support
  9999. ld_shlibs_CXX=no
  10000. fi
  10001. ;;
  10002. esac
  10003. ;;
  10004. osf4* | osf5*)
  10005. case $cc_basename in
  10006. KCC*)
  10007. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10008. # KCC will only create a shared library if the output file
  10009. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10010. # to its proper name (with version) after linking.
  10011. 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'
  10012. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10013. hardcode_libdir_separator_CXX=:
  10014. # Archives containing C++ object files must be created using
  10015. # the KAI C++ compiler.
  10016. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10017. ;;
  10018. RCC*)
  10019. # Rational C++ 2.4.1
  10020. # FIXME: insert proper C++ library support
  10021. ld_shlibs_CXX=no
  10022. ;;
  10023. cxx*)
  10024. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10025. 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'
  10026. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10027. echo "-hidden">> $lib.exp~
  10028. $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~
  10029. $rm $lib.exp'
  10030. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10031. hardcode_libdir_separator_CXX=:
  10032. # Commands to make compiler produce verbose output that lists
  10033. # what "hidden" libraries, object files and flags are used when
  10034. # linking a shared library.
  10035. #
  10036. # There doesn't appear to be a way to prevent this compiler from
  10037. # explicitly linking system object files so we need to strip them
  10038. # from the output so that they don't get included in the library
  10039. # dependencies.
  10040. 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'
  10041. ;;
  10042. *)
  10043. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10044. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10045. 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'
  10046. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10047. hardcode_libdir_separator_CXX=:
  10048. # Commands to make compiler produce verbose output that lists
  10049. # what "hidden" libraries, object files and flags are used when
  10050. # linking a shared library.
  10051. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10052. else
  10053. # FIXME: insert proper C++ library support
  10054. ld_shlibs_CXX=no
  10055. fi
  10056. ;;
  10057. esac
  10058. ;;
  10059. psos*)
  10060. # FIXME: insert proper C++ library support
  10061. ld_shlibs_CXX=no
  10062. ;;
  10063. sunos4*)
  10064. case $cc_basename in
  10065. CC*)
  10066. # Sun C++ 4.x
  10067. # FIXME: insert proper C++ library support
  10068. ld_shlibs_CXX=no
  10069. ;;
  10070. lcc*)
  10071. # Lucid
  10072. # FIXME: insert proper C++ library support
  10073. ld_shlibs_CXX=no
  10074. ;;
  10075. *)
  10076. # FIXME: insert proper C++ library support
  10077. ld_shlibs_CXX=no
  10078. ;;
  10079. esac
  10080. ;;
  10081. solaris*)
  10082. case $cc_basename in
  10083. CC*)
  10084. # Sun C++ 4.2, 5.x and Centerline C++
  10085. archive_cmds_need_lc_CXX=yes
  10086. no_undefined_flag_CXX=' -zdefs'
  10087. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10088. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10089. $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'
  10090. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10091. hardcode_shlibpath_var_CXX=no
  10092. case $host_os in
  10093. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10094. *)
  10095. # The C++ compiler is used as linker so we must use $wl
  10096. # flag to pass the commands to the underlying system
  10097. # linker. We must also pass each convience library through
  10098. # to the system linker between allextract/defaultextract.
  10099. # The C++ compiler will combine linker options so we
  10100. # cannot just pass the convience library names through
  10101. # without $wl.
  10102. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10103. 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'
  10104. ;;
  10105. esac
  10106. link_all_deplibs_CXX=yes
  10107. output_verbose_link_cmd='echo'
  10108. # Archives containing C++ object files must be created using
  10109. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10110. # necessary to make sure instantiated templates are included
  10111. # in the archive.
  10112. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10113. ;;
  10114. gcx*)
  10115. # Green Hills C++ Compiler
  10116. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10117. # The C++ compiler must be used to create the archive.
  10118. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10119. ;;
  10120. *)
  10121. # GNU C++ compiler with Solaris linker
  10122. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10123. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10124. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10125. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10126. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10127. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10128. # Commands to make compiler produce verbose output that lists
  10129. # what "hidden" libraries, object files and flags are used when
  10130. # linking a shared library.
  10131. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10132. else
  10133. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10134. # platform.
  10135. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10136. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10137. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10138. # Commands to make compiler produce verbose output that lists
  10139. # what "hidden" libraries, object files and flags are used when
  10140. # linking a shared library.
  10141. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10142. fi
  10143. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10144. fi
  10145. ;;
  10146. esac
  10147. ;;
  10148. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10149. no_undefined_flag_CXX='${wl}-z,text'
  10150. archive_cmds_need_lc_CXX=no
  10151. hardcode_shlibpath_var_CXX=no
  10152. runpath_var='LD_RUN_PATH'
  10153. case $cc_basename in
  10154. CC*)
  10155. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10156. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10157. ;;
  10158. *)
  10159. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10160. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10161. ;;
  10162. esac
  10163. ;;
  10164. sysv5* | sco3.2v5* | sco5v6*)
  10165. # Note: We can NOT use -z defs as we might desire, because we do not
  10166. # link with -lc, and that would cause any symbols used from libc to
  10167. # always be unresolved, which means just about no library would
  10168. # ever link correctly. If we're not using GNU ld we use -z text
  10169. # though, which does catch some bad symbols but isn't as heavy-handed
  10170. # as -z defs.
  10171. # For security reasons, it is highly recommended that you always
  10172. # use absolute paths for naming shared libraries, and exclude the
  10173. # DT_RUNPATH tag from executables and libraries. But doing so
  10174. # requires that you compile everything twice, which is a pain.
  10175. # So that behaviour is only enabled if SCOABSPATH is set to a
  10176. # non-empty value in the environment. Most likely only useful for
  10177. # creating official distributions of packages.
  10178. # This is a hack until libtool officially supports absolute path
  10179. # names for shared libraries.
  10180. no_undefined_flag_CXX='${wl}-z,text'
  10181. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10182. archive_cmds_need_lc_CXX=no
  10183. hardcode_shlibpath_var_CXX=no
  10184. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10185. hardcode_libdir_separator_CXX=':'
  10186. link_all_deplibs_CXX=yes
  10187. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10188. runpath_var='LD_RUN_PATH'
  10189. case $cc_basename in
  10190. CC*)
  10191. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10192. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10193. ;;
  10194. *)
  10195. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10196. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10197. ;;
  10198. esac
  10199. ;;
  10200. tandem*)
  10201. case $cc_basename in
  10202. NCC*)
  10203. # NonStop-UX NCC 3.20
  10204. # FIXME: insert proper C++ library support
  10205. ld_shlibs_CXX=no
  10206. ;;
  10207. *)
  10208. # FIXME: insert proper C++ library support
  10209. ld_shlibs_CXX=no
  10210. ;;
  10211. esac
  10212. ;;
  10213. vxworks*)
  10214. # FIXME: insert proper C++ library support
  10215. ld_shlibs_CXX=no
  10216. ;;
  10217. *)
  10218. # FIXME: insert proper C++ library support
  10219. ld_shlibs_CXX=no
  10220. ;;
  10221. esac
  10222. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10223. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10224. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10225. GCC_CXX="$GXX"
  10226. LD_CXX="$LD"
  10227. cat > conftest.$ac_ext <<EOF
  10228. class Foo
  10229. {
  10230. public:
  10231. Foo (void) { a = 0; }
  10232. private:
  10233. int a;
  10234. };
  10235. EOF
  10236. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10237. (eval $ac_compile) 2>&5
  10238. ac_status=$?
  10239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10240. (exit $ac_status); }; then
  10241. # Parse the compiler output and extract the necessary
  10242. # objects, libraries and library flags.
  10243. # Sentinel used to keep track of whether or not we are before
  10244. # the conftest object file.
  10245. pre_test_object_deps_done=no
  10246. # The `*' in the case matches for architectures that use `case' in
  10247. # $output_verbose_cmd can trigger glob expansion during the loop
  10248. # eval without this substitution.
  10249. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10250. for p in `eval $output_verbose_link_cmd`; do
  10251. case $p in
  10252. -L* | -R* | -l*)
  10253. # Some compilers place space between "-{L,R}" and the path.
  10254. # Remove the space.
  10255. if test $p = "-L" \
  10256. || test $p = "-R"; then
  10257. prev=$p
  10258. continue
  10259. else
  10260. prev=
  10261. fi
  10262. if test "$pre_test_object_deps_done" = no; then
  10263. case $p in
  10264. -L* | -R*)
  10265. # Internal compiler library paths should come after those
  10266. # provided the user. The postdeps already come after the
  10267. # user supplied libs so there is no need to process them.
  10268. if test -z "$compiler_lib_search_path_CXX"; then
  10269. compiler_lib_search_path_CXX="${prev}${p}"
  10270. else
  10271. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10272. fi
  10273. ;;
  10274. # The "-l" case would never come before the object being
  10275. # linked, so don't bother handling this case.
  10276. esac
  10277. else
  10278. if test -z "$postdeps_CXX"; then
  10279. postdeps_CXX="${prev}${p}"
  10280. else
  10281. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10282. fi
  10283. fi
  10284. ;;
  10285. *.$objext)
  10286. # This assumes that the test object file only shows up
  10287. # once in the compiler output.
  10288. if test "$p" = "conftest.$objext"; then
  10289. pre_test_object_deps_done=yes
  10290. continue
  10291. fi
  10292. if test "$pre_test_object_deps_done" = no; then
  10293. if test -z "$predep_objects_CXX"; then
  10294. predep_objects_CXX="$p"
  10295. else
  10296. predep_objects_CXX="$predep_objects_CXX $p"
  10297. fi
  10298. else
  10299. if test -z "$postdep_objects_CXX"; then
  10300. postdep_objects_CXX="$p"
  10301. else
  10302. postdep_objects_CXX="$postdep_objects_CXX $p"
  10303. fi
  10304. fi
  10305. ;;
  10306. *) ;; # Ignore the rest.
  10307. esac
  10308. done
  10309. # Clean up.
  10310. rm -f a.out a.exe
  10311. else
  10312. echo "libtool.m4: error: problem compiling CXX test program"
  10313. fi
  10314. $rm -f confest.$objext
  10315. # PORTME: override above test on systems where it is broken
  10316. case $host_os in
  10317. interix3*)
  10318. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10319. # hack all around it, let's just trust "g++" to DTRT.
  10320. predep_objects_CXX=
  10321. postdep_objects_CXX=
  10322. postdeps_CXX=
  10323. ;;
  10324. solaris*)
  10325. case $cc_basename in
  10326. CC*)
  10327. # Adding this requires a known-good setup of shared libraries for
  10328. # Sun compiler versions before 5.6, else PIC objects from an old
  10329. # archive will be linked into the output, leading to subtle bugs.
  10330. postdeps_CXX='-lCstd -lCrun'
  10331. ;;
  10332. esac
  10333. ;;
  10334. esac
  10335. case " $postdeps_CXX " in
  10336. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10337. esac
  10338. lt_prog_compiler_wl_CXX=
  10339. lt_prog_compiler_pic_CXX=
  10340. lt_prog_compiler_static_CXX=
  10341. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10342. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10343. # C++ specific cases for pic, static, wl, etc.
  10344. if test "$GXX" = yes; then
  10345. lt_prog_compiler_wl_CXX='-Wl,'
  10346. lt_prog_compiler_static_CXX='-static'
  10347. case $host_os in
  10348. aix*)
  10349. # All AIX code is PIC.
  10350. if test "$host_cpu" = ia64; then
  10351. # AIX 5 now supports IA64 processor
  10352. lt_prog_compiler_static_CXX='-Bstatic'
  10353. fi
  10354. ;;
  10355. amigaos*)
  10356. # FIXME: we need at least 68020 code to build shared libraries, but
  10357. # adding the `-m68020' flag to GCC prevents building anything better,
  10358. # like `-m68040'.
  10359. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10360. ;;
  10361. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10362. # PIC is the default for these OSes.
  10363. ;;
  10364. mingw* | os2* | pw32*)
  10365. # This hack is so that the source file can tell whether it is being
  10366. # built for inclusion in a dll (and should export symbols for example).
  10367. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10368. ;;
  10369. darwin* | rhapsody*)
  10370. # PIC is the default on this platform
  10371. # Common symbols not allowed in MH_DYLIB files
  10372. lt_prog_compiler_pic_CXX='-fno-common'
  10373. ;;
  10374. *djgpp*)
  10375. # DJGPP does not support shared libraries at all
  10376. lt_prog_compiler_pic_CXX=
  10377. ;;
  10378. interix3*)
  10379. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10380. # Instead, we relocate shared libraries at runtime.
  10381. ;;
  10382. sysv4*MP*)
  10383. if test -d /usr/nec; then
  10384. lt_prog_compiler_pic_CXX=-Kconform_pic
  10385. fi
  10386. ;;
  10387. hpux*)
  10388. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10389. # not for PA HP-UX.
  10390. case $host_cpu in
  10391. hppa*64*|ia64*)
  10392. ;;
  10393. *)
  10394. lt_prog_compiler_pic_CXX='-fPIC'
  10395. ;;
  10396. esac
  10397. ;;
  10398. *)
  10399. lt_prog_compiler_pic_CXX='-fPIC'
  10400. ;;
  10401. esac
  10402. else
  10403. case $host_os in
  10404. aix4* | aix5*)
  10405. # All AIX code is PIC.
  10406. if test "$host_cpu" = ia64; then
  10407. # AIX 5 now supports IA64 processor
  10408. lt_prog_compiler_static_CXX='-Bstatic'
  10409. else
  10410. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10411. fi
  10412. ;;
  10413. chorus*)
  10414. case $cc_basename in
  10415. cxch68*)
  10416. # Green Hills C++ Compiler
  10417. # _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"
  10418. ;;
  10419. esac
  10420. ;;
  10421. darwin*)
  10422. # PIC is the default on this platform
  10423. # Common symbols not allowed in MH_DYLIB files
  10424. case $cc_basename in
  10425. xlc*)
  10426. lt_prog_compiler_pic_CXX='-qnocommon'
  10427. lt_prog_compiler_wl_CXX='-Wl,'
  10428. ;;
  10429. esac
  10430. ;;
  10431. dgux*)
  10432. case $cc_basename in
  10433. ec++*)
  10434. lt_prog_compiler_pic_CXX='-KPIC'
  10435. ;;
  10436. ghcx*)
  10437. # Green Hills C++ Compiler
  10438. lt_prog_compiler_pic_CXX='-pic'
  10439. ;;
  10440. *)
  10441. ;;
  10442. esac
  10443. ;;
  10444. freebsd* | kfreebsd*-gnu | dragonfly*)
  10445. # FreeBSD uses GNU C++
  10446. ;;
  10447. hpux9* | hpux10* | hpux11*)
  10448. case $cc_basename in
  10449. CC*)
  10450. lt_prog_compiler_wl_CXX='-Wl,'
  10451. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10452. if test "$host_cpu" != ia64; then
  10453. lt_prog_compiler_pic_CXX='+Z'
  10454. fi
  10455. ;;
  10456. aCC*)
  10457. lt_prog_compiler_wl_CXX='-Wl,'
  10458. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10459. case $host_cpu in
  10460. hppa*64*|ia64*)
  10461. # +Z the default
  10462. ;;
  10463. *)
  10464. lt_prog_compiler_pic_CXX='+Z'
  10465. ;;
  10466. esac
  10467. ;;
  10468. *)
  10469. ;;
  10470. esac
  10471. ;;
  10472. interix*)
  10473. # This is c89, which is MS Visual C++ (no shared libs)
  10474. # Anyone wants to do a port?
  10475. ;;
  10476. irix5* | irix6* | nonstopux*)
  10477. case $cc_basename in
  10478. CC*)
  10479. lt_prog_compiler_wl_CXX='-Wl,'
  10480. lt_prog_compiler_static_CXX='-non_shared'
  10481. # CC pic flag -KPIC is the default.
  10482. ;;
  10483. *)
  10484. ;;
  10485. esac
  10486. ;;
  10487. linux*)
  10488. case $cc_basename in
  10489. KCC*)
  10490. # KAI C++ Compiler
  10491. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10492. lt_prog_compiler_pic_CXX='-fPIC'
  10493. ;;
  10494. icpc* | ecpc*)
  10495. # Intel C++
  10496. lt_prog_compiler_wl_CXX='-Wl,'
  10497. lt_prog_compiler_pic_CXX='-KPIC'
  10498. lt_prog_compiler_static_CXX='-static'
  10499. ;;
  10500. pgCC*)
  10501. # Portland Group C++ compiler.
  10502. lt_prog_compiler_wl_CXX='-Wl,'
  10503. lt_prog_compiler_pic_CXX='-fpic'
  10504. lt_prog_compiler_static_CXX='-Bstatic'
  10505. ;;
  10506. cxx*)
  10507. # Compaq C++
  10508. # Make sure the PIC flag is empty. It appears that all Alpha
  10509. # Linux and Compaq Tru64 Unix objects are PIC.
  10510. lt_prog_compiler_pic_CXX=
  10511. lt_prog_compiler_static_CXX='-non_shared'
  10512. ;;
  10513. *)
  10514. ;;
  10515. esac
  10516. ;;
  10517. lynxos*)
  10518. ;;
  10519. m88k*)
  10520. ;;
  10521. mvs*)
  10522. case $cc_basename in
  10523. cxx*)
  10524. lt_prog_compiler_pic_CXX='-W c,exportall'
  10525. ;;
  10526. *)
  10527. ;;
  10528. esac
  10529. ;;
  10530. netbsd*)
  10531. ;;
  10532. osf3* | osf4* | osf5*)
  10533. case $cc_basename in
  10534. KCC*)
  10535. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10536. ;;
  10537. RCC*)
  10538. # Rational C++ 2.4.1
  10539. lt_prog_compiler_pic_CXX='-pic'
  10540. ;;
  10541. cxx*)
  10542. # Digital/Compaq C++
  10543. lt_prog_compiler_wl_CXX='-Wl,'
  10544. # Make sure the PIC flag is empty. It appears that all Alpha
  10545. # Linux and Compaq Tru64 Unix objects are PIC.
  10546. lt_prog_compiler_pic_CXX=
  10547. lt_prog_compiler_static_CXX='-non_shared'
  10548. ;;
  10549. *)
  10550. ;;
  10551. esac
  10552. ;;
  10553. psos*)
  10554. ;;
  10555. solaris*)
  10556. case $cc_basename in
  10557. CC*)
  10558. # Sun C++ 4.2, 5.x and Centerline C++
  10559. lt_prog_compiler_pic_CXX='-KPIC'
  10560. lt_prog_compiler_static_CXX='-Bstatic'
  10561. lt_prog_compiler_wl_CXX='-Qoption ld '
  10562. ;;
  10563. gcx*)
  10564. # Green Hills C++ Compiler
  10565. lt_prog_compiler_pic_CXX='-PIC'
  10566. ;;
  10567. *)
  10568. ;;
  10569. esac
  10570. ;;
  10571. sunos4*)
  10572. case $cc_basename in
  10573. CC*)
  10574. # Sun C++ 4.x
  10575. lt_prog_compiler_pic_CXX='-pic'
  10576. lt_prog_compiler_static_CXX='-Bstatic'
  10577. ;;
  10578. lcc*)
  10579. # Lucid
  10580. lt_prog_compiler_pic_CXX='-pic'
  10581. ;;
  10582. *)
  10583. ;;
  10584. esac
  10585. ;;
  10586. tandem*)
  10587. case $cc_basename in
  10588. NCC*)
  10589. # NonStop-UX NCC 3.20
  10590. lt_prog_compiler_pic_CXX='-KPIC'
  10591. ;;
  10592. *)
  10593. ;;
  10594. esac
  10595. ;;
  10596. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10597. case $cc_basename in
  10598. CC*)
  10599. lt_prog_compiler_wl_CXX='-Wl,'
  10600. lt_prog_compiler_pic_CXX='-KPIC'
  10601. lt_prog_compiler_static_CXX='-Bstatic'
  10602. ;;
  10603. esac
  10604. ;;
  10605. vxworks*)
  10606. ;;
  10607. *)
  10608. lt_prog_compiler_can_build_shared_CXX=no
  10609. ;;
  10610. esac
  10611. fi
  10612. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10613. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10614. #
  10615. # Check to make sure the PIC flag actually works.
  10616. #
  10617. if test -n "$lt_prog_compiler_pic_CXX"; then
  10618. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10619. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10620. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10621. echo $ECHO_N "(cached) $ECHO_C" >&6
  10622. else
  10623. lt_prog_compiler_pic_works_CXX=no
  10624. ac_outfile=conftest.$ac_objext
  10625. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10626. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10627. # Insert the option either (1) after the last *FLAGS variable, or
  10628. # (2) before a word containing "conftest.", or (3) at the end.
  10629. # Note that $ac_compile itself does not contain backslashes and begins
  10630. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10631. # The option is referenced via a variable to avoid confusing sed.
  10632. lt_compile=`echo "$ac_compile" | $SED \
  10633. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10634. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10635. -e 's:$: $lt_compiler_flag:'`
  10636. (eval echo "\"\$as_me:11769: $lt_compile\"" >&5)
  10637. (eval "$lt_compile" 2>conftest.err)
  10638. ac_status=$?
  10639. cat conftest.err >&5
  10640. echo "$as_me:11773: \$? = $ac_status" >&5
  10641. if (exit $ac_status) && test -s "$ac_outfile"; then
  10642. # The compiler can only warn and ignore the option if not recognized
  10643. # So say no if there are warnings other than the usual output.
  10644. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10645. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10646. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10647. lt_prog_compiler_pic_works_CXX=yes
  10648. fi
  10649. fi
  10650. $rm conftest*
  10651. fi
  10652. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10653. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10654. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10655. case $lt_prog_compiler_pic_CXX in
  10656. "" | " "*) ;;
  10657. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10658. esac
  10659. else
  10660. lt_prog_compiler_pic_CXX=
  10661. lt_prog_compiler_can_build_shared_CXX=no
  10662. fi
  10663. fi
  10664. case $host_os in
  10665. # For platforms which do not support PIC, -DPIC is meaningless:
  10666. *djgpp*)
  10667. lt_prog_compiler_pic_CXX=
  10668. ;;
  10669. *)
  10670. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10671. ;;
  10672. esac
  10673. #
  10674. # Check to make sure the static flag actually works.
  10675. #
  10676. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10677. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10678. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10679. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10680. echo $ECHO_N "(cached) $ECHO_C" >&6
  10681. else
  10682. lt_prog_compiler_static_works_CXX=no
  10683. save_LDFLAGS="$LDFLAGS"
  10684. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10685. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10686. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10687. # The linker can only warn and ignore the option if not recognized
  10688. # So say no if there are warnings
  10689. if test -s conftest.err; then
  10690. # Append any errors to the config.log.
  10691. cat conftest.err 1>&5
  10692. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10693. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10694. if diff conftest.exp conftest.er2 >/dev/null; then
  10695. lt_prog_compiler_static_works_CXX=yes
  10696. fi
  10697. else
  10698. lt_prog_compiler_static_works_CXX=yes
  10699. fi
  10700. fi
  10701. $rm conftest*
  10702. LDFLAGS="$save_LDFLAGS"
  10703. fi
  10704. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10705. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10706. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10707. :
  10708. else
  10709. lt_prog_compiler_static_CXX=
  10710. fi
  10711. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10712. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10713. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10714. echo $ECHO_N "(cached) $ECHO_C" >&6
  10715. else
  10716. lt_cv_prog_compiler_c_o_CXX=no
  10717. $rm -r conftest 2>/dev/null
  10718. mkdir conftest
  10719. cd conftest
  10720. mkdir out
  10721. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10722. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10723. # Insert the option either (1) after the last *FLAGS variable, or
  10724. # (2) before a word containing "conftest.", or (3) at the end.
  10725. # Note that $ac_compile itself does not contain backslashes and begins
  10726. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10727. lt_compile=`echo "$ac_compile" | $SED \
  10728. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10729. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10730. -e 's:$: $lt_compiler_flag:'`
  10731. (eval echo "\"\$as_me:11873: $lt_compile\"" >&5)
  10732. (eval "$lt_compile" 2>out/conftest.err)
  10733. ac_status=$?
  10734. cat out/conftest.err >&5
  10735. echo "$as_me:11877: \$? = $ac_status" >&5
  10736. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10737. then
  10738. # The compiler can only warn and ignore the option if not recognized
  10739. # So say no if there are warnings
  10740. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10741. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10742. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10743. lt_cv_prog_compiler_c_o_CXX=yes
  10744. fi
  10745. fi
  10746. chmod u+w . 2>&5
  10747. $rm conftest*
  10748. # SGI C++ compiler will create directory out/ii_files/ for
  10749. # template instantiation
  10750. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10751. $rm out/* && rmdir out
  10752. cd ..
  10753. rmdir conftest
  10754. $rm conftest*
  10755. fi
  10756. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10757. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10758. hard_links="nottested"
  10759. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10760. # do not overwrite the value of need_locks provided by the user
  10761. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10762. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10763. hard_links=yes
  10764. $rm conftest*
  10765. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10766. touch conftest.a
  10767. ln conftest.a conftest.b 2>&5 || hard_links=no
  10768. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10769. echo "$as_me:$LINENO: result: $hard_links" >&5
  10770. echo "${ECHO_T}$hard_links" >&6
  10771. if test "$hard_links" = no; then
  10772. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10773. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10774. need_locks=warn
  10775. fi
  10776. else
  10777. need_locks=no
  10778. fi
  10779. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10780. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10781. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10782. case $host_os in
  10783. aix4* | aix5*)
  10784. # If we're using GNU nm, then we don't want the "-C" option.
  10785. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10786. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10787. 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'
  10788. else
  10789. 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'
  10790. fi
  10791. ;;
  10792. pw32*)
  10793. export_symbols_cmds_CXX="$ltdll_cmds"
  10794. ;;
  10795. cygwin* | mingw*)
  10796. 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'
  10797. ;;
  10798. *)
  10799. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10800. ;;
  10801. esac
  10802. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10803. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10804. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10805. #
  10806. # Do we need to explicitly link libc?
  10807. #
  10808. case "x$archive_cmds_need_lc_CXX" in
  10809. x|xyes)
  10810. # Assume -lc should be added
  10811. archive_cmds_need_lc_CXX=yes
  10812. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10813. case $archive_cmds_CXX in
  10814. *'~'*)
  10815. # FIXME: we may have to deal with multi-command sequences.
  10816. ;;
  10817. '$CC '*)
  10818. # Test whether the compiler implicitly links with -lc since on some
  10819. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10820. # to ld, don't add -lc before -lgcc.
  10821. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10822. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10823. $rm conftest*
  10824. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10825. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10826. (eval $ac_compile) 2>&5
  10827. ac_status=$?
  10828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10829. (exit $ac_status); } 2>conftest.err; then
  10830. soname=conftest
  10831. lib=conftest
  10832. libobjs=conftest.$ac_objext
  10833. deplibs=
  10834. wl=$lt_prog_compiler_wl_CXX
  10835. pic_flag=$lt_prog_compiler_pic_CXX
  10836. compiler_flags=-v
  10837. linker_flags=-v
  10838. verstring=
  10839. output_objdir=.
  10840. libname=conftest
  10841. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10842. allow_undefined_flag_CXX=
  10843. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10844. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10845. ac_status=$?
  10846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10847. (exit $ac_status); }
  10848. then
  10849. archive_cmds_need_lc_CXX=no
  10850. else
  10851. archive_cmds_need_lc_CXX=yes
  10852. fi
  10853. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10854. else
  10855. cat conftest.err 1>&5
  10856. fi
  10857. $rm conftest*
  10858. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10859. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10860. ;;
  10861. esac
  10862. fi
  10863. ;;
  10864. esac
  10865. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10866. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10867. library_names_spec=
  10868. libname_spec='lib$name'
  10869. soname_spec=
  10870. shrext_cmds=".so"
  10871. postinstall_cmds=
  10872. postuninstall_cmds=
  10873. finish_cmds=
  10874. finish_eval=
  10875. shlibpath_var=
  10876. shlibpath_overrides_runpath=unknown
  10877. version_type=none
  10878. dynamic_linker="$host_os ld.so"
  10879. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10880. if test "$GCC" = yes; then
  10881. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10882. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10883. # if the path contains ";" then we assume it to be the separator
  10884. # otherwise default to the standard path separator (i.e. ":") - it is
  10885. # assumed that no part of a normal pathname contains ";" but that should
  10886. # okay in the real world where ";" in dirpaths is itself problematic.
  10887. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10888. else
  10889. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10890. fi
  10891. else
  10892. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10893. fi
  10894. need_lib_prefix=unknown
  10895. hardcode_into_libs=no
  10896. # when you set need_version to no, make sure it does not cause -set_version
  10897. # flags to be left without arguments
  10898. need_version=unknown
  10899. case $host_os in
  10900. aix3*)
  10901. version_type=linux
  10902. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10903. shlibpath_var=LIBPATH
  10904. # AIX 3 has no versioning support, so we append a major version to the name.
  10905. soname_spec='${libname}${release}${shared_ext}$major'
  10906. ;;
  10907. aix4* | aix5*)
  10908. version_type=linux
  10909. need_lib_prefix=no
  10910. need_version=no
  10911. hardcode_into_libs=yes
  10912. if test "$host_cpu" = ia64; then
  10913. # AIX 5 supports IA64
  10914. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10915. shlibpath_var=LD_LIBRARY_PATH
  10916. else
  10917. # With GCC up to 2.95.x, collect2 would create an import file
  10918. # for dependence libraries. The import file would start with
  10919. # the line `#! .'. This would cause the generated library to
  10920. # depend on `.', always an invalid library. This was fixed in
  10921. # development snapshots of GCC prior to 3.0.
  10922. case $host_os in
  10923. aix4 | aix4.[01] | aix4.[01].*)
  10924. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10925. echo ' yes '
  10926. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10927. :
  10928. else
  10929. can_build_shared=no
  10930. fi
  10931. ;;
  10932. esac
  10933. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10934. # soname into executable. Probably we can add versioning support to
  10935. # collect2, so additional links can be useful in future.
  10936. if test "$aix_use_runtimelinking" = yes; then
  10937. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10938. # instead of lib<name>.a to let people know that these are not
  10939. # typical AIX shared libraries.
  10940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10941. else
  10942. # We preserve .a as extension for shared libraries through AIX4.2
  10943. # and later when we are not doing run time linking.
  10944. library_names_spec='${libname}${release}.a $libname.a'
  10945. soname_spec='${libname}${release}${shared_ext}$major'
  10946. fi
  10947. shlibpath_var=LIBPATH
  10948. fi
  10949. ;;
  10950. amigaos*)
  10951. library_names_spec='$libname.ixlibrary $libname.a'
  10952. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10953. 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'
  10954. ;;
  10955. beos*)
  10956. library_names_spec='${libname}${shared_ext}'
  10957. dynamic_linker="$host_os ld.so"
  10958. shlibpath_var=LIBRARY_PATH
  10959. ;;
  10960. bsdi[45]*)
  10961. version_type=linux
  10962. need_version=no
  10963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10964. soname_spec='${libname}${release}${shared_ext}$major'
  10965. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10966. shlibpath_var=LD_LIBRARY_PATH
  10967. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10968. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10969. # the default ld.so.conf also contains /usr/contrib/lib and
  10970. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10971. # libtool to hard-code these into programs
  10972. ;;
  10973. cygwin* | mingw* | pw32*)
  10974. version_type=windows
  10975. shrext_cmds=".dll"
  10976. need_version=no
  10977. need_lib_prefix=no
  10978. case $GCC,$host_os in
  10979. yes,cygwin* | yes,mingw* | yes,pw32*)
  10980. library_names_spec='$libname.dll.a'
  10981. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10982. postinstall_cmds='base_file=`basename \${file}`~
  10983. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10984. dldir=$destdir/`dirname \$dlpath`~
  10985. test -d \$dldir || mkdir -p \$dldir~
  10986. $install_prog $dir/$dlname \$dldir/$dlname~
  10987. chmod a+x \$dldir/$dlname'
  10988. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10989. dlpath=$dir/\$dldll~
  10990. $rm \$dlpath'
  10991. shlibpath_overrides_runpath=yes
  10992. case $host_os in
  10993. cygwin*)
  10994. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10995. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10996. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10997. ;;
  10998. mingw*)
  10999. # MinGW DLLs use traditional 'lib' prefix
  11000. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11001. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11002. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11003. # It is most probably a Windows format PATH printed by
  11004. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11005. # path with ; separators, and with drive letters. We can handle the
  11006. # drive letters (cygwin fileutils understands them), so leave them,
  11007. # especially as we might pass files found there to a mingw objdump,
  11008. # which wouldn't understand a cygwinified path. Ahh.
  11009. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11010. else
  11011. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11012. fi
  11013. ;;
  11014. pw32*)
  11015. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11016. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11017. ;;
  11018. esac
  11019. ;;
  11020. *)
  11021. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11022. ;;
  11023. esac
  11024. dynamic_linker='Win32 ld.exe'
  11025. # FIXME: first we should search . and the directory the executable is in
  11026. shlibpath_var=PATH
  11027. ;;
  11028. darwin* | rhapsody*)
  11029. dynamic_linker="$host_os dyld"
  11030. version_type=darwin
  11031. need_lib_prefix=no
  11032. need_version=no
  11033. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11034. soname_spec='${libname}${release}${major}$shared_ext'
  11035. shlibpath_overrides_runpath=yes
  11036. shlibpath_var=DYLD_LIBRARY_PATH
  11037. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11038. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11039. if test "$GCC" = yes; then
  11040. 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"`
  11041. else
  11042. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11043. fi
  11044. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11045. ;;
  11046. dgux*)
  11047. version_type=linux
  11048. need_lib_prefix=no
  11049. need_version=no
  11050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11051. soname_spec='${libname}${release}${shared_ext}$major'
  11052. shlibpath_var=LD_LIBRARY_PATH
  11053. ;;
  11054. freebsd1*)
  11055. dynamic_linker=no
  11056. ;;
  11057. kfreebsd*-gnu)
  11058. version_type=linux
  11059. need_lib_prefix=no
  11060. need_version=no
  11061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11062. soname_spec='${libname}${release}${shared_ext}$major'
  11063. shlibpath_var=LD_LIBRARY_PATH
  11064. shlibpath_overrides_runpath=no
  11065. hardcode_into_libs=yes
  11066. dynamic_linker='GNU ld.so'
  11067. ;;
  11068. freebsd* | dragonfly*)
  11069. # DragonFly does not have aout. When/if they implement a new
  11070. # versioning mechanism, adjust this.
  11071. if test -x /usr/bin/objformat; then
  11072. objformat=`/usr/bin/objformat`
  11073. else
  11074. case $host_os in
  11075. freebsd[123]*) objformat=aout ;;
  11076. *) objformat=elf ;;
  11077. esac
  11078. fi
  11079. version_type=freebsd-$objformat
  11080. case $version_type in
  11081. freebsd-elf*)
  11082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11083. need_version=no
  11084. need_lib_prefix=no
  11085. ;;
  11086. freebsd-*)
  11087. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11088. need_version=yes
  11089. ;;
  11090. esac
  11091. shlibpath_var=LD_LIBRARY_PATH
  11092. case $host_os in
  11093. freebsd2*)
  11094. shlibpath_overrides_runpath=yes
  11095. ;;
  11096. freebsd3.[01]* | freebsdelf3.[01]*)
  11097. shlibpath_overrides_runpath=yes
  11098. hardcode_into_libs=yes
  11099. ;;
  11100. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11101. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11102. shlibpath_overrides_runpath=no
  11103. hardcode_into_libs=yes
  11104. ;;
  11105. freebsd*) # from 4.6 on
  11106. shlibpath_overrides_runpath=yes
  11107. hardcode_into_libs=yes
  11108. ;;
  11109. esac
  11110. ;;
  11111. gnu*)
  11112. version_type=linux
  11113. need_lib_prefix=no
  11114. need_version=no
  11115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11116. soname_spec='${libname}${release}${shared_ext}$major'
  11117. shlibpath_var=LD_LIBRARY_PATH
  11118. hardcode_into_libs=yes
  11119. ;;
  11120. hpux9* | hpux10* | hpux11*)
  11121. # Give a soname corresponding to the major version so that dld.sl refuses to
  11122. # link against other versions.
  11123. version_type=sunos
  11124. need_lib_prefix=no
  11125. need_version=no
  11126. case $host_cpu in
  11127. ia64*)
  11128. shrext_cmds='.so'
  11129. hardcode_into_libs=yes
  11130. dynamic_linker="$host_os dld.so"
  11131. shlibpath_var=LD_LIBRARY_PATH
  11132. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11134. soname_spec='${libname}${release}${shared_ext}$major'
  11135. if test "X$HPUX_IA64_MODE" = X32; then
  11136. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11137. else
  11138. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11139. fi
  11140. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11141. ;;
  11142. hppa*64*)
  11143. shrext_cmds='.sl'
  11144. hardcode_into_libs=yes
  11145. dynamic_linker="$host_os dld.sl"
  11146. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11147. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11149. soname_spec='${libname}${release}${shared_ext}$major'
  11150. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11151. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11152. ;;
  11153. *)
  11154. shrext_cmds='.sl'
  11155. dynamic_linker="$host_os dld.sl"
  11156. shlibpath_var=SHLIB_PATH
  11157. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11159. soname_spec='${libname}${release}${shared_ext}$major'
  11160. ;;
  11161. esac
  11162. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11163. postinstall_cmds='chmod 555 $lib'
  11164. ;;
  11165. interix3*)
  11166. version_type=linux
  11167. need_lib_prefix=no
  11168. need_version=no
  11169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11170. soname_spec='${libname}${release}${shared_ext}$major'
  11171. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11172. shlibpath_var=LD_LIBRARY_PATH
  11173. shlibpath_overrides_runpath=no
  11174. hardcode_into_libs=yes
  11175. ;;
  11176. irix5* | irix6* | nonstopux*)
  11177. case $host_os in
  11178. nonstopux*) version_type=nonstopux ;;
  11179. *)
  11180. if test "$lt_cv_prog_gnu_ld" = yes; then
  11181. version_type=linux
  11182. else
  11183. version_type=irix
  11184. fi ;;
  11185. esac
  11186. need_lib_prefix=no
  11187. need_version=no
  11188. soname_spec='${libname}${release}${shared_ext}$major'
  11189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11190. case $host_os in
  11191. irix5* | nonstopux*)
  11192. libsuff= shlibsuff=
  11193. ;;
  11194. *)
  11195. case $LD in # libtool.m4 will add one of these switches to LD
  11196. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11197. libsuff= shlibsuff= libmagic=32-bit;;
  11198. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11199. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11200. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11201. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11202. *) libsuff= shlibsuff= libmagic=never-match;;
  11203. esac
  11204. ;;
  11205. esac
  11206. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11207. shlibpath_overrides_runpath=no
  11208. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11209. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11210. hardcode_into_libs=yes
  11211. ;;
  11212. # No shared lib support for Linux oldld, aout, or coff.
  11213. linux*oldld* | linux*aout* | linux*coff*)
  11214. dynamic_linker=no
  11215. ;;
  11216. # This must be Linux ELF.
  11217. linux*)
  11218. version_type=linux
  11219. need_lib_prefix=no
  11220. need_version=no
  11221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11222. soname_spec='${libname}${release}${shared_ext}$major'
  11223. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11224. shlibpath_var=LD_LIBRARY_PATH
  11225. shlibpath_overrides_runpath=no
  11226. # This implies no fast_install, which is unacceptable.
  11227. # Some rework will be needed to allow for fast_install
  11228. # before this can be enabled.
  11229. hardcode_into_libs=yes
  11230. # find out which ABI we are using
  11231. libsuff=
  11232. case "$host_cpu" in
  11233. x86_64*|s390x*|powerpc64*)
  11234. echo '#line 12409 "configure"' > conftest.$ac_ext
  11235. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11236. (eval $ac_compile) 2>&5
  11237. ac_status=$?
  11238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11239. (exit $ac_status); }; then
  11240. case `/usr/bin/file conftest.$ac_objext` in
  11241. *64-bit*)
  11242. libsuff=64
  11243. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11244. ;;
  11245. esac
  11246. fi
  11247. rm -rf conftest*
  11248. ;;
  11249. esac
  11250. # Append ld.so.conf contents to the search path
  11251. if test -f /etc/ld.so.conf; then
  11252. 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' ' '`
  11253. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  11254. fi
  11255. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11256. # powerpc, because MkLinux only supported shared libraries with the
  11257. # GNU dynamic linker. Since this was broken with cross compilers,
  11258. # most powerpc-linux boxes support dynamic linking these days and
  11259. # people can always --disable-shared, the test was removed, and we
  11260. # assume the GNU/Linux dynamic linker is in use.
  11261. dynamic_linker='GNU/Linux ld.so'
  11262. ;;
  11263. knetbsd*-gnu)
  11264. version_type=linux
  11265. need_lib_prefix=no
  11266. need_version=no
  11267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11268. soname_spec='${libname}${release}${shared_ext}$major'
  11269. shlibpath_var=LD_LIBRARY_PATH
  11270. shlibpath_overrides_runpath=no
  11271. hardcode_into_libs=yes
  11272. dynamic_linker='GNU ld.so'
  11273. ;;
  11274. netbsd*)
  11275. version_type=sunos
  11276. need_lib_prefix=no
  11277. need_version=no
  11278. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11280. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11281. dynamic_linker='NetBSD (a.out) ld.so'
  11282. else
  11283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11284. soname_spec='${libname}${release}${shared_ext}$major'
  11285. dynamic_linker='NetBSD ld.elf_so'
  11286. fi
  11287. shlibpath_var=LD_LIBRARY_PATH
  11288. shlibpath_overrides_runpath=yes
  11289. hardcode_into_libs=yes
  11290. ;;
  11291. newsos6)
  11292. version_type=linux
  11293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11294. shlibpath_var=LD_LIBRARY_PATH
  11295. shlibpath_overrides_runpath=yes
  11296. ;;
  11297. nto-qnx*)
  11298. version_type=linux
  11299. need_lib_prefix=no
  11300. need_version=no
  11301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11302. soname_spec='${libname}${release}${shared_ext}$major'
  11303. shlibpath_var=LD_LIBRARY_PATH
  11304. shlibpath_overrides_runpath=yes
  11305. ;;
  11306. openbsd*)
  11307. version_type=sunos
  11308. sys_lib_dlsearch_path_spec="/usr/lib"
  11309. need_lib_prefix=no
  11310. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11311. case $host_os in
  11312. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11313. *) need_version=no ;;
  11314. esac
  11315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11316. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11317. shlibpath_var=LD_LIBRARY_PATH
  11318. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11319. case $host_os in
  11320. openbsd2.[89] | openbsd2.[89].*)
  11321. shlibpath_overrides_runpath=no
  11322. ;;
  11323. *)
  11324. shlibpath_overrides_runpath=yes
  11325. ;;
  11326. esac
  11327. else
  11328. shlibpath_overrides_runpath=yes
  11329. fi
  11330. ;;
  11331. os2*)
  11332. libname_spec='$name'
  11333. shrext_cmds=".dll"
  11334. need_lib_prefix=no
  11335. library_names_spec='$libname${shared_ext} $libname.a'
  11336. dynamic_linker='OS/2 ld.exe'
  11337. shlibpath_var=LIBPATH
  11338. ;;
  11339. osf3* | osf4* | osf5*)
  11340. version_type=osf
  11341. need_lib_prefix=no
  11342. need_version=no
  11343. soname_spec='${libname}${release}${shared_ext}$major'
  11344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11345. shlibpath_var=LD_LIBRARY_PATH
  11346. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11347. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11348. ;;
  11349. solaris*)
  11350. version_type=linux
  11351. need_lib_prefix=no
  11352. need_version=no
  11353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11354. soname_spec='${libname}${release}${shared_ext}$major'
  11355. shlibpath_var=LD_LIBRARY_PATH
  11356. shlibpath_overrides_runpath=yes
  11357. hardcode_into_libs=yes
  11358. # ldd complains unless libraries are executable
  11359. postinstall_cmds='chmod +x $lib'
  11360. ;;
  11361. sunos4*)
  11362. version_type=sunos
  11363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11364. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11365. shlibpath_var=LD_LIBRARY_PATH
  11366. shlibpath_overrides_runpath=yes
  11367. if test "$with_gnu_ld" = yes; then
  11368. need_lib_prefix=no
  11369. fi
  11370. need_version=yes
  11371. ;;
  11372. sysv4 | sysv4.3*)
  11373. version_type=linux
  11374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11375. soname_spec='${libname}${release}${shared_ext}$major'
  11376. shlibpath_var=LD_LIBRARY_PATH
  11377. case $host_vendor in
  11378. sni)
  11379. shlibpath_overrides_runpath=no
  11380. need_lib_prefix=no
  11381. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11382. runpath_var=LD_RUN_PATH
  11383. ;;
  11384. siemens)
  11385. need_lib_prefix=no
  11386. ;;
  11387. motorola)
  11388. need_lib_prefix=no
  11389. need_version=no
  11390. shlibpath_overrides_runpath=no
  11391. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11392. ;;
  11393. esac
  11394. ;;
  11395. sysv4*MP*)
  11396. if test -d /usr/nec ;then
  11397. version_type=linux
  11398. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11399. soname_spec='$libname${shared_ext}.$major'
  11400. shlibpath_var=LD_LIBRARY_PATH
  11401. fi
  11402. ;;
  11403. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11404. version_type=freebsd-elf
  11405. need_lib_prefix=no
  11406. need_version=no
  11407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11408. soname_spec='${libname}${release}${shared_ext}$major'
  11409. shlibpath_var=LD_LIBRARY_PATH
  11410. hardcode_into_libs=yes
  11411. if test "$with_gnu_ld" = yes; then
  11412. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11413. shlibpath_overrides_runpath=no
  11414. else
  11415. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11416. shlibpath_overrides_runpath=yes
  11417. case $host_os in
  11418. sco3.2v5*)
  11419. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11420. ;;
  11421. esac
  11422. fi
  11423. sys_lib_dlsearch_path_spec='/usr/lib'
  11424. ;;
  11425. uts4*)
  11426. version_type=linux
  11427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11428. soname_spec='${libname}${release}${shared_ext}$major'
  11429. shlibpath_var=LD_LIBRARY_PATH
  11430. ;;
  11431. *)
  11432. dynamic_linker=no
  11433. ;;
  11434. esac
  11435. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11436. echo "${ECHO_T}$dynamic_linker" >&6
  11437. test "$dynamic_linker" = no && can_build_shared=no
  11438. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11439. if test "$GCC" = yes; then
  11440. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11441. fi
  11442. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11443. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11444. hardcode_action_CXX=
  11445. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11446. test -n "$runpath_var_CXX" || \
  11447. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11448. # We can hardcode non-existant directories.
  11449. if test "$hardcode_direct_CXX" != no &&
  11450. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11451. # have to relink, otherwise we might link with an installed library
  11452. # when we should be linking with a yet-to-be-installed one
  11453. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11454. test "$hardcode_minus_L_CXX" != no; then
  11455. # Linking always hardcodes the temporary library directory.
  11456. hardcode_action_CXX=relink
  11457. else
  11458. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11459. hardcode_action_CXX=immediate
  11460. fi
  11461. else
  11462. # We cannot hardcode anything, or else we can only hardcode existing
  11463. # directories.
  11464. hardcode_action_CXX=unsupported
  11465. fi
  11466. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11467. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11468. if test "$hardcode_action_CXX" = relink; then
  11469. # Fast installation is not supported
  11470. enable_fast_install=no
  11471. elif test "$shlibpath_overrides_runpath" = yes ||
  11472. test "$enable_shared" = no; then
  11473. # Fast installation is not necessary
  11474. enable_fast_install=needless
  11475. fi
  11476. # The else clause should only fire when bootstrapping the
  11477. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11478. # with your package, and you will get complaints that there are
  11479. # no rules to generate ltmain.sh.
  11480. if test -f "$ltmain"; then
  11481. # See if we are running on zsh, and set the options which allow our commands through
  11482. # without removal of \ escapes.
  11483. if test -n "${ZSH_VERSION+set}" ; then
  11484. setopt NO_GLOB_SUBST
  11485. fi
  11486. # Now quote all the things that may contain metacharacters while being
  11487. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11488. # variables and quote the copies for generation of the libtool script.
  11489. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11490. SED SHELL STRIP \
  11491. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11492. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11493. deplibs_check_method reload_flag reload_cmds need_locks \
  11494. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11495. lt_cv_sys_global_symbol_to_c_name_address \
  11496. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11497. old_postinstall_cmds old_postuninstall_cmds \
  11498. compiler_CXX \
  11499. CC_CXX \
  11500. LD_CXX \
  11501. lt_prog_compiler_wl_CXX \
  11502. lt_prog_compiler_pic_CXX \
  11503. lt_prog_compiler_static_CXX \
  11504. lt_prog_compiler_no_builtin_flag_CXX \
  11505. export_dynamic_flag_spec_CXX \
  11506. thread_safe_flag_spec_CXX \
  11507. whole_archive_flag_spec_CXX \
  11508. enable_shared_with_static_runtimes_CXX \
  11509. old_archive_cmds_CXX \
  11510. old_archive_from_new_cmds_CXX \
  11511. predep_objects_CXX \
  11512. postdep_objects_CXX \
  11513. predeps_CXX \
  11514. postdeps_CXX \
  11515. compiler_lib_search_path_CXX \
  11516. archive_cmds_CXX \
  11517. archive_expsym_cmds_CXX \
  11518. postinstall_cmds_CXX \
  11519. postuninstall_cmds_CXX \
  11520. old_archive_from_expsyms_cmds_CXX \
  11521. allow_undefined_flag_CXX \
  11522. no_undefined_flag_CXX \
  11523. export_symbols_cmds_CXX \
  11524. hardcode_libdir_flag_spec_CXX \
  11525. hardcode_libdir_flag_spec_ld_CXX \
  11526. hardcode_libdir_separator_CXX \
  11527. hardcode_automatic_CXX \
  11528. module_cmds_CXX \
  11529. module_expsym_cmds_CXX \
  11530. lt_cv_prog_compiler_c_o_CXX \
  11531. exclude_expsyms_CXX \
  11532. include_expsyms_CXX; do
  11533. case $var in
  11534. old_archive_cmds_CXX | \
  11535. old_archive_from_new_cmds_CXX | \
  11536. archive_cmds_CXX | \
  11537. archive_expsym_cmds_CXX | \
  11538. module_cmds_CXX | \
  11539. module_expsym_cmds_CXX | \
  11540. old_archive_from_expsyms_cmds_CXX | \
  11541. export_symbols_cmds_CXX | \
  11542. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11543. postinstall_cmds | postuninstall_cmds | \
  11544. old_postinstall_cmds | old_postuninstall_cmds | \
  11545. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11546. # Double-quote double-evaled strings.
  11547. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11548. ;;
  11549. *)
  11550. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11551. ;;
  11552. esac
  11553. done
  11554. case $lt_echo in
  11555. *'\$0 --fallback-echo"')
  11556. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11557. ;;
  11558. esac
  11559. cfgfile="$ofile"
  11560. cat <<__EOF__ >> "$cfgfile"
  11561. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11562. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11563. # Shell to use when invoking shell scripts.
  11564. SHELL=$lt_SHELL
  11565. # Whether or not to build shared libraries.
  11566. build_libtool_libs=$enable_shared
  11567. # Whether or not to build static libraries.
  11568. build_old_libs=$enable_static
  11569. # Whether or not to add -lc for building shared libraries.
  11570. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11571. # Whether or not to disallow shared libs when runtime libs are static
  11572. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11573. # Whether or not to optimize for fast installation.
  11574. fast_install=$enable_fast_install
  11575. # The host system.
  11576. host_alias=$host_alias
  11577. host=$host
  11578. host_os=$host_os
  11579. # The build system.
  11580. build_alias=$build_alias
  11581. build=$build
  11582. build_os=$build_os
  11583. # An echo program that does not interpret backslashes.
  11584. echo=$lt_echo
  11585. # The archiver.
  11586. AR=$lt_AR
  11587. AR_FLAGS=$lt_AR_FLAGS
  11588. # A C compiler.
  11589. LTCC=$lt_LTCC
  11590. # LTCC compiler flags.
  11591. LTCFLAGS=$lt_LTCFLAGS
  11592. # A language-specific compiler.
  11593. CC=$lt_compiler_CXX
  11594. # Is the compiler the GNU C compiler?
  11595. with_gcc=$GCC_CXX
  11596. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  11597. gcc_ver=\`gcc -dumpversion\`
  11598. # An ERE matcher.
  11599. EGREP=$lt_EGREP
  11600. # The linker used to build libraries.
  11601. LD=$lt_LD_CXX
  11602. # Whether we need hard or soft links.
  11603. LN_S=$lt_LN_S
  11604. # A BSD-compatible nm program.
  11605. NM=$lt_NM
  11606. # A symbol stripping program
  11607. STRIP=$lt_STRIP
  11608. # Used to examine libraries when file_magic_cmd begins "file"
  11609. MAGIC_CMD=$MAGIC_CMD
  11610. # Used on cygwin: DLL creation program.
  11611. DLLTOOL="$DLLTOOL"
  11612. # Used on cygwin: object dumper.
  11613. OBJDUMP="$OBJDUMP"
  11614. # Used on cygwin: assembler.
  11615. AS="$AS"
  11616. # The name of the directory that contains temporary libtool files.
  11617. objdir=$objdir
  11618. # How to create reloadable object files.
  11619. reload_flag=$lt_reload_flag
  11620. reload_cmds=$lt_reload_cmds
  11621. # How to pass a linker flag through the compiler.
  11622. wl=$lt_lt_prog_compiler_wl_CXX
  11623. # Object file suffix (normally "o").
  11624. objext="$ac_objext"
  11625. # Old archive suffix (normally "a").
  11626. libext="$libext"
  11627. # Shared library suffix (normally ".so").
  11628. shrext_cmds='$shrext_cmds'
  11629. # Executable file suffix (normally "").
  11630. exeext="$exeext"
  11631. # Additional compiler flags for building library objects.
  11632. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11633. pic_mode=$pic_mode
  11634. # What is the maximum length of a command?
  11635. max_cmd_len=$lt_cv_sys_max_cmd_len
  11636. # Does compiler simultaneously support -c and -o options?
  11637. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11638. # Must we lock files when doing compilation?
  11639. need_locks=$lt_need_locks
  11640. # Do we need the lib prefix for modules?
  11641. need_lib_prefix=$need_lib_prefix
  11642. # Do we need a version for libraries?
  11643. need_version=$need_version
  11644. # Whether dlopen is supported.
  11645. dlopen_support=$enable_dlopen
  11646. # Whether dlopen of programs is supported.
  11647. dlopen_self=$enable_dlopen_self
  11648. # Whether dlopen of statically linked programs is supported.
  11649. dlopen_self_static=$enable_dlopen_self_static
  11650. # Compiler flag to prevent dynamic linking.
  11651. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11652. # Compiler flag to turn off builtin functions.
  11653. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11654. # Compiler flag to allow reflexive dlopens.
  11655. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11656. # Compiler flag to generate shared objects directly from archives.
  11657. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11658. # Compiler flag to generate thread-safe objects.
  11659. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11660. # Library versioning type.
  11661. version_type=$version_type
  11662. # Format of library name prefix.
  11663. libname_spec=$lt_libname_spec
  11664. # List of archive names. First name is the real one, the rest are links.
  11665. # The last name is the one that the linker finds with -lNAME.
  11666. library_names_spec=$lt_library_names_spec
  11667. # The coded name of the library, if different from the real name.
  11668. soname_spec=$lt_soname_spec
  11669. # Commands used to build and install an old-style archive.
  11670. RANLIB=$lt_RANLIB
  11671. old_archive_cmds=$lt_old_archive_cmds_CXX
  11672. old_postinstall_cmds=$lt_old_postinstall_cmds
  11673. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11674. # Create an old-style archive from a shared archive.
  11675. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11676. # Create a temporary old-style archive to link instead of a shared archive.
  11677. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11678. # Commands used to build and install a shared archive.
  11679. archive_cmds=$lt_archive_cmds_CXX
  11680. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11681. postinstall_cmds=$lt_postinstall_cmds
  11682. postuninstall_cmds=$lt_postuninstall_cmds
  11683. # Commands used to build a loadable module (assumed same as above if empty)
  11684. module_cmds=$lt_module_cmds_CXX
  11685. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11686. # Commands to strip libraries.
  11687. old_striplib=$lt_old_striplib
  11688. striplib=$lt_striplib
  11689. # Dependencies to place before the objects being linked to create a
  11690. # shared library.
  11691. predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11692. # Dependencies to place after the objects being linked to create a
  11693. # shared library.
  11694. postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11695. # Dependencies to place before the objects being linked to create a
  11696. # shared library.
  11697. predeps=$lt_predeps_CXX
  11698. # Dependencies to place after the objects being linked to create a
  11699. # shared library.
  11700. postdeps=$lt_postdeps_CXX
  11701. # The library search path used internally by the compiler when linking
  11702. # a shared library.
  11703. 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"\`
  11704. # Method to check whether dependent libraries are shared objects.
  11705. deplibs_check_method=$lt_deplibs_check_method
  11706. # Command to use when deplibs_check_method == file_magic.
  11707. file_magic_cmd=$lt_file_magic_cmd
  11708. # Flag that allows shared libraries with undefined symbols to be built.
  11709. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11710. # Flag that forces no undefined symbols.
  11711. no_undefined_flag=$lt_no_undefined_flag_CXX
  11712. # Commands used to finish a libtool library installation in a directory.
  11713. finish_cmds=$lt_finish_cmds
  11714. # Same as above, but a single script fragment to be evaled but not shown.
  11715. finish_eval=$lt_finish_eval
  11716. # Take the output of nm and produce a listing of raw symbols and C names.
  11717. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11718. # Transform the output of nm in a proper C declaration
  11719. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11720. # Transform the output of nm in a C name address pair
  11721. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11722. # This is the shared library runtime path variable.
  11723. runpath_var=$runpath_var
  11724. # This is the shared library path variable.
  11725. shlibpath_var=$shlibpath_var
  11726. # Is shlibpath searched before the hard-coded library search path?
  11727. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11728. # How to hardcode a shared library path into an executable.
  11729. hardcode_action=$hardcode_action_CXX
  11730. # Whether we should hardcode library paths into libraries.
  11731. hardcode_into_libs=$hardcode_into_libs
  11732. # Flag to hardcode \$libdir into a binary during linking.
  11733. # This must work even if \$libdir does not exist.
  11734. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11735. # If ld is used when linking, flag to hardcode \$libdir into
  11736. # a binary during linking. This must work even if \$libdir does
  11737. # not exist.
  11738. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11739. # Whether we need a single -rpath flag with a separated argument.
  11740. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11741. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11742. # resulting binary.
  11743. hardcode_direct=$hardcode_direct_CXX
  11744. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11745. # resulting binary.
  11746. hardcode_minus_L=$hardcode_minus_L_CXX
  11747. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11748. # the resulting binary.
  11749. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11750. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11751. # and all subsequent libraries and executables linked against it.
  11752. hardcode_automatic=$hardcode_automatic_CXX
  11753. # Variables whose values should be saved in libtool wrapper scripts and
  11754. # restored at relink time.
  11755. variables_saved_for_relink="$variables_saved_for_relink"
  11756. # Whether libtool must link a program against all its dependency libraries.
  11757. link_all_deplibs=$link_all_deplibs_CXX
  11758. # Compile-time system search path for libraries
  11759. 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"\`
  11760. # Run-time system search path for libraries
  11761. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11762. # Fix the shell variable \$srcfile for the compiler.
  11763. fix_srcfile_path="$fix_srcfile_path_CXX"
  11764. # Set to yes if exported symbols are required.
  11765. always_export_symbols=$always_export_symbols_CXX
  11766. # The commands to list exported symbols.
  11767. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11768. # The commands to extract the exported symbol list from a shared archive.
  11769. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11770. # Symbols that should not be listed in the preloaded symbols.
  11771. exclude_expsyms=$lt_exclude_expsyms_CXX
  11772. # Symbols that must always be exported.
  11773. include_expsyms=$lt_include_expsyms_CXX
  11774. # ### END LIBTOOL TAG CONFIG: $tagname
  11775. __EOF__
  11776. else
  11777. # If there is no Makefile yet, we rely on a make rule to execute
  11778. # `config.status --recheck' to rerun these tests and create the
  11779. # libtool script then.
  11780. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11781. if test -f "$ltmain_in"; then
  11782. test -f Makefile && make "$ltmain"
  11783. fi
  11784. fi
  11785. ac_ext=c
  11786. ac_cpp='$CPP $CPPFLAGS'
  11787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11790. CC=$lt_save_CC
  11791. LDCXX=$LD
  11792. LD=$lt_save_LD
  11793. GCC=$lt_save_GCC
  11794. with_gnu_ldcxx=$with_gnu_ld
  11795. with_gnu_ld=$lt_save_with_gnu_ld
  11796. lt_cv_path_LDCXX=$lt_cv_path_LD
  11797. lt_cv_path_LD=$lt_save_path_LD
  11798. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11799. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11800. else
  11801. tagname=""
  11802. fi
  11803. ;;
  11804. F77)
  11805. if test -n "$F77" && test "X$F77" != "Xno"; then
  11806. ac_ext=f
  11807. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11808. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11809. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11810. archive_cmds_need_lc_F77=no
  11811. allow_undefined_flag_F77=
  11812. always_export_symbols_F77=no
  11813. archive_expsym_cmds_F77=
  11814. export_dynamic_flag_spec_F77=
  11815. hardcode_direct_F77=no
  11816. hardcode_libdir_flag_spec_F77=
  11817. hardcode_libdir_flag_spec_ld_F77=
  11818. hardcode_libdir_separator_F77=
  11819. hardcode_minus_L_F77=no
  11820. hardcode_automatic_F77=no
  11821. module_cmds_F77=
  11822. module_expsym_cmds_F77=
  11823. link_all_deplibs_F77=unknown
  11824. old_archive_cmds_F77=$old_archive_cmds
  11825. no_undefined_flag_F77=
  11826. whole_archive_flag_spec_F77=
  11827. enable_shared_with_static_runtimes_F77=no
  11828. # Source file extension for f77 test sources.
  11829. ac_ext=f
  11830. # Object file extension for compiled f77 test sources.
  11831. objext=o
  11832. objext_F77=$objext
  11833. # Code to be used in simple compile tests
  11834. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11835. # Code to be used in simple link tests
  11836. lt_simple_link_test_code=" program t\n end\n"
  11837. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11838. # If no C compiler was specified, use CC.
  11839. LTCC=${LTCC-"$CC"}
  11840. # If no C compiler flags were specified, use CFLAGS.
  11841. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11842. # Allow CC to be a program name with arguments.
  11843. compiler=$CC
  11844. # save warnings/boilerplate of simple test code
  11845. ac_outfile=conftest.$ac_objext
  11846. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11847. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11848. _lt_compiler_boilerplate=`cat conftest.err`
  11849. $rm conftest*
  11850. ac_outfile=conftest.$ac_objext
  11851. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11852. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11853. _lt_linker_boilerplate=`cat conftest.err`
  11854. $rm conftest*
  11855. # Allow CC to be a program name with arguments.
  11856. lt_save_CC="$CC"
  11857. CC=${F77-"f77"}
  11858. compiler=$CC
  11859. compiler_F77=$CC
  11860. for cc_temp in $compiler""; do
  11861. case $cc_temp in
  11862. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11863. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11864. \-*) ;;
  11865. *) break;;
  11866. esac
  11867. done
  11868. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11869. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11870. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11871. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11872. echo "${ECHO_T}$can_build_shared" >&6
  11873. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11874. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11875. test "$can_build_shared" = "no" && enable_shared=no
  11876. # On AIX, shared libraries and static libraries use the same namespace, and
  11877. # are all built from PIC.
  11878. case $host_os in
  11879. aix3*)
  11880. test "$enable_shared" = yes && enable_static=no
  11881. if test -n "$RANLIB"; then
  11882. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11883. postinstall_cmds='$RANLIB $lib'
  11884. fi
  11885. ;;
  11886. aix4* | aix5*)
  11887. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11888. test "$enable_shared" = yes && enable_static=no
  11889. fi
  11890. ;;
  11891. esac
  11892. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11893. echo "${ECHO_T}$enable_shared" >&6
  11894. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11895. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11896. # Make sure either enable_shared or enable_static is yes.
  11897. test "$enable_shared" = yes || enable_static=yes
  11898. echo "$as_me:$LINENO: result: $enable_static" >&5
  11899. echo "${ECHO_T}$enable_static" >&6
  11900. GCC_F77="$G77"
  11901. LD_F77="$LD"
  11902. lt_prog_compiler_wl_F77=
  11903. lt_prog_compiler_pic_F77=
  11904. lt_prog_compiler_static_F77=
  11905. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11906. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11907. if test "$GCC" = yes; then
  11908. lt_prog_compiler_wl_F77='-Wl,'
  11909. lt_prog_compiler_static_F77='-static'
  11910. case $host_os in
  11911. aix*)
  11912. # All AIX code is PIC.
  11913. if test "$host_cpu" = ia64; then
  11914. # AIX 5 now supports IA64 processor
  11915. lt_prog_compiler_static_F77='-Bstatic'
  11916. fi
  11917. ;;
  11918. amigaos*)
  11919. # FIXME: we need at least 68020 code to build shared libraries, but
  11920. # adding the `-m68020' flag to GCC prevents building anything better,
  11921. # like `-m68040'.
  11922. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11923. ;;
  11924. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11925. # PIC is the default for these OSes.
  11926. ;;
  11927. mingw* | pw32* | os2*)
  11928. # This hack is so that the source file can tell whether it is being
  11929. # built for inclusion in a dll (and should export symbols for example).
  11930. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11931. ;;
  11932. darwin* | rhapsody*)
  11933. # PIC is the default on this platform
  11934. # Common symbols not allowed in MH_DYLIB files
  11935. lt_prog_compiler_pic_F77='-fno-common'
  11936. ;;
  11937. interix3*)
  11938. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11939. # Instead, we relocate shared libraries at runtime.
  11940. ;;
  11941. msdosdjgpp*)
  11942. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11943. # on systems that don't support them.
  11944. lt_prog_compiler_can_build_shared_F77=no
  11945. enable_shared=no
  11946. ;;
  11947. sysv4*MP*)
  11948. if test -d /usr/nec; then
  11949. lt_prog_compiler_pic_F77=-Kconform_pic
  11950. fi
  11951. ;;
  11952. hpux*)
  11953. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11954. # not for PA HP-UX.
  11955. case $host_cpu in
  11956. hppa*64*|ia64*)
  11957. # +Z the default
  11958. ;;
  11959. *)
  11960. lt_prog_compiler_pic_F77='-fPIC'
  11961. ;;
  11962. esac
  11963. ;;
  11964. *)
  11965. lt_prog_compiler_pic_F77='-fPIC'
  11966. ;;
  11967. esac
  11968. else
  11969. # PORTME Check for flag to pass linker flags through the system compiler.
  11970. case $host_os in
  11971. aix*)
  11972. lt_prog_compiler_wl_F77='-Wl,'
  11973. if test "$host_cpu" = ia64; then
  11974. # AIX 5 now supports IA64 processor
  11975. lt_prog_compiler_static_F77='-Bstatic'
  11976. else
  11977. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11978. fi
  11979. ;;
  11980. darwin*)
  11981. # PIC is the default on this platform
  11982. # Common symbols not allowed in MH_DYLIB files
  11983. case $cc_basename in
  11984. xlc*)
  11985. lt_prog_compiler_pic_F77='-qnocommon'
  11986. lt_prog_compiler_wl_F77='-Wl,'
  11987. ;;
  11988. esac
  11989. ;;
  11990. mingw* | pw32* | os2*)
  11991. # This hack is so that the source file can tell whether it is being
  11992. # built for inclusion in a dll (and should export symbols for example).
  11993. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11994. ;;
  11995. hpux9* | hpux10* | hpux11*)
  11996. lt_prog_compiler_wl_F77='-Wl,'
  11997. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11998. # not for PA HP-UX.
  11999. case $host_cpu in
  12000. hppa*64*|ia64*)
  12001. # +Z the default
  12002. ;;
  12003. *)
  12004. lt_prog_compiler_pic_F77='+Z'
  12005. ;;
  12006. esac
  12007. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12008. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12009. ;;
  12010. irix5* | irix6* | nonstopux*)
  12011. lt_prog_compiler_wl_F77='-Wl,'
  12012. # PIC (with -KPIC) is the default.
  12013. lt_prog_compiler_static_F77='-non_shared'
  12014. ;;
  12015. newsos6)
  12016. lt_prog_compiler_pic_F77='-KPIC'
  12017. lt_prog_compiler_static_F77='-Bstatic'
  12018. ;;
  12019. linux*)
  12020. case $cc_basename in
  12021. icc* | ecc*)
  12022. lt_prog_compiler_wl_F77='-Wl,'
  12023. lt_prog_compiler_pic_F77='-KPIC'
  12024. lt_prog_compiler_static_F77='-static'
  12025. ;;
  12026. pgcc* | pgf77* | pgf90* | pgf95*)
  12027. # Portland Group compilers (*not* the Pentium gcc compiler,
  12028. # which looks to be a dead project)
  12029. lt_prog_compiler_wl_F77='-Wl,'
  12030. lt_prog_compiler_pic_F77='-fpic'
  12031. lt_prog_compiler_static_F77='-Bstatic'
  12032. ;;
  12033. ccc*)
  12034. lt_prog_compiler_wl_F77='-Wl,'
  12035. # All Alpha code is PIC.
  12036. lt_prog_compiler_static_F77='-non_shared'
  12037. ;;
  12038. esac
  12039. ;;
  12040. osf3* | osf4* | osf5*)
  12041. lt_prog_compiler_wl_F77='-Wl,'
  12042. # All OSF/1 code is PIC.
  12043. lt_prog_compiler_static_F77='-non_shared'
  12044. ;;
  12045. solaris*)
  12046. lt_prog_compiler_pic_F77='-KPIC'
  12047. lt_prog_compiler_static_F77='-Bstatic'
  12048. case $cc_basename in
  12049. f77* | f90* | f95*)
  12050. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12051. *)
  12052. lt_prog_compiler_wl_F77='-Wl,';;
  12053. esac
  12054. ;;
  12055. sunos4*)
  12056. lt_prog_compiler_wl_F77='-Qoption ld '
  12057. lt_prog_compiler_pic_F77='-PIC'
  12058. lt_prog_compiler_static_F77='-Bstatic'
  12059. ;;
  12060. sysv4 | sysv4.2uw2* | sysv4.3*)
  12061. lt_prog_compiler_wl_F77='-Wl,'
  12062. lt_prog_compiler_pic_F77='-KPIC'
  12063. lt_prog_compiler_static_F77='-Bstatic'
  12064. ;;
  12065. sysv4*MP*)
  12066. if test -d /usr/nec ;then
  12067. lt_prog_compiler_pic_F77='-Kconform_pic'
  12068. lt_prog_compiler_static_F77='-Bstatic'
  12069. fi
  12070. ;;
  12071. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12072. lt_prog_compiler_wl_F77='-Wl,'
  12073. lt_prog_compiler_pic_F77='-KPIC'
  12074. lt_prog_compiler_static_F77='-Bstatic'
  12075. ;;
  12076. unicos*)
  12077. lt_prog_compiler_wl_F77='-Wl,'
  12078. lt_prog_compiler_can_build_shared_F77=no
  12079. ;;
  12080. uts4*)
  12081. lt_prog_compiler_pic_F77='-pic'
  12082. lt_prog_compiler_static_F77='-Bstatic'
  12083. ;;
  12084. *)
  12085. lt_prog_compiler_can_build_shared_F77=no
  12086. ;;
  12087. esac
  12088. fi
  12089. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12090. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12091. #
  12092. # Check to make sure the PIC flag actually works.
  12093. #
  12094. if test -n "$lt_prog_compiler_pic_F77"; then
  12095. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12096. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12097. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12098. echo $ECHO_N "(cached) $ECHO_C" >&6
  12099. else
  12100. lt_prog_compiler_pic_works_F77=no
  12101. ac_outfile=conftest.$ac_objext
  12102. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12103. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12104. # Insert the option either (1) after the last *FLAGS variable, or
  12105. # (2) before a word containing "conftest.", or (3) at the end.
  12106. # Note that $ac_compile itself does not contain backslashes and begins
  12107. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12108. # The option is referenced via a variable to avoid confusing sed.
  12109. lt_compile=`echo "$ac_compile" | $SED \
  12110. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12111. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12112. -e 's:$: $lt_compiler_flag:'`
  12113. (eval echo "\"\$as_me:13467: $lt_compile\"" >&5)
  12114. (eval "$lt_compile" 2>conftest.err)
  12115. ac_status=$?
  12116. cat conftest.err >&5
  12117. echo "$as_me:13471: \$? = $ac_status" >&5
  12118. if (exit $ac_status) && test -s "$ac_outfile"; then
  12119. # The compiler can only warn and ignore the option if not recognized
  12120. # So say no if there are warnings other than the usual output.
  12121. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12122. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12123. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12124. lt_prog_compiler_pic_works_F77=yes
  12125. fi
  12126. fi
  12127. $rm conftest*
  12128. fi
  12129. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12130. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12131. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12132. case $lt_prog_compiler_pic_F77 in
  12133. "" | " "*) ;;
  12134. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12135. esac
  12136. else
  12137. lt_prog_compiler_pic_F77=
  12138. lt_prog_compiler_can_build_shared_F77=no
  12139. fi
  12140. fi
  12141. case $host_os in
  12142. # For platforms which do not support PIC, -DPIC is meaningless:
  12143. *djgpp*)
  12144. lt_prog_compiler_pic_F77=
  12145. ;;
  12146. *)
  12147. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12148. ;;
  12149. esac
  12150. #
  12151. # Check to make sure the static flag actually works.
  12152. #
  12153. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12154. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12155. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12156. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12157. echo $ECHO_N "(cached) $ECHO_C" >&6
  12158. else
  12159. lt_prog_compiler_static_works_F77=no
  12160. save_LDFLAGS="$LDFLAGS"
  12161. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12162. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12163. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12164. # The linker can only warn and ignore the option if not recognized
  12165. # So say no if there are warnings
  12166. if test -s conftest.err; then
  12167. # Append any errors to the config.log.
  12168. cat conftest.err 1>&5
  12169. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12170. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12171. if diff conftest.exp conftest.er2 >/dev/null; then
  12172. lt_prog_compiler_static_works_F77=yes
  12173. fi
  12174. else
  12175. lt_prog_compiler_static_works_F77=yes
  12176. fi
  12177. fi
  12178. $rm conftest*
  12179. LDFLAGS="$save_LDFLAGS"
  12180. fi
  12181. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12182. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12183. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12184. :
  12185. else
  12186. lt_prog_compiler_static_F77=
  12187. fi
  12188. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12189. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12190. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12191. echo $ECHO_N "(cached) $ECHO_C" >&6
  12192. else
  12193. lt_cv_prog_compiler_c_o_F77=no
  12194. $rm -r conftest 2>/dev/null
  12195. mkdir conftest
  12196. cd conftest
  12197. mkdir out
  12198. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12199. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12200. # Insert the option either (1) after the last *FLAGS variable, or
  12201. # (2) before a word containing "conftest.", or (3) at the end.
  12202. # Note that $ac_compile itself does not contain backslashes and begins
  12203. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12204. lt_compile=`echo "$ac_compile" | $SED \
  12205. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12206. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12207. -e 's:$: $lt_compiler_flag:'`
  12208. (eval echo "\"\$as_me:13571: $lt_compile\"" >&5)
  12209. (eval "$lt_compile" 2>out/conftest.err)
  12210. ac_status=$?
  12211. cat out/conftest.err >&5
  12212. echo "$as_me:13575: \$? = $ac_status" >&5
  12213. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12214. then
  12215. # The compiler can only warn and ignore the option if not recognized
  12216. # So say no if there are warnings
  12217. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12218. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12219. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12220. lt_cv_prog_compiler_c_o_F77=yes
  12221. fi
  12222. fi
  12223. chmod u+w . 2>&5
  12224. $rm conftest*
  12225. # SGI C++ compiler will create directory out/ii_files/ for
  12226. # template instantiation
  12227. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12228. $rm out/* && rmdir out
  12229. cd ..
  12230. rmdir conftest
  12231. $rm conftest*
  12232. fi
  12233. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12234. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12235. hard_links="nottested"
  12236. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12237. # do not overwrite the value of need_locks provided by the user
  12238. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12239. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12240. hard_links=yes
  12241. $rm conftest*
  12242. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12243. touch conftest.a
  12244. ln conftest.a conftest.b 2>&5 || hard_links=no
  12245. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12246. echo "$as_me:$LINENO: result: $hard_links" >&5
  12247. echo "${ECHO_T}$hard_links" >&6
  12248. if test "$hard_links" = no; then
  12249. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12250. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12251. need_locks=warn
  12252. fi
  12253. else
  12254. need_locks=no
  12255. fi
  12256. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12257. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12258. runpath_var=
  12259. allow_undefined_flag_F77=
  12260. enable_shared_with_static_runtimes_F77=no
  12261. archive_cmds_F77=
  12262. archive_expsym_cmds_F77=
  12263. old_archive_From_new_cmds_F77=
  12264. old_archive_from_expsyms_cmds_F77=
  12265. export_dynamic_flag_spec_F77=
  12266. whole_archive_flag_spec_F77=
  12267. thread_safe_flag_spec_F77=
  12268. hardcode_libdir_flag_spec_F77=
  12269. hardcode_libdir_flag_spec_ld_F77=
  12270. hardcode_libdir_separator_F77=
  12271. hardcode_direct_F77=no
  12272. hardcode_minus_L_F77=no
  12273. hardcode_shlibpath_var_F77=unsupported
  12274. link_all_deplibs_F77=unknown
  12275. hardcode_automatic_F77=no
  12276. module_cmds_F77=
  12277. module_expsym_cmds_F77=
  12278. always_export_symbols_F77=no
  12279. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12280. # include_expsyms should be a list of space-separated symbols to be *always*
  12281. # included in the symbol list
  12282. include_expsyms_F77=
  12283. # exclude_expsyms can be an extended regexp of symbols to exclude
  12284. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12285. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12286. # as well as any symbol that contains `d'.
  12287. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12288. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12289. # platforms (ab)use it in PIC code, but their linkers get confused if
  12290. # the symbol is explicitly referenced. Since portable code cannot
  12291. # rely on this symbol name, it's probably fine to never include it in
  12292. # preloaded symbol tables.
  12293. extract_expsyms_cmds=
  12294. # Just being paranoid about ensuring that cc_basename is set.
  12295. for cc_temp in $compiler""; do
  12296. case $cc_temp in
  12297. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12298. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12299. \-*) ;;
  12300. *) break;;
  12301. esac
  12302. done
  12303. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12304. case $host_os in
  12305. cygwin* | mingw* | pw32*)
  12306. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12307. # When not using gcc, we currently assume that we are using
  12308. # Microsoft Visual C++.
  12309. if test "$GCC" != yes; then
  12310. with_gnu_ld=no
  12311. fi
  12312. ;;
  12313. interix*)
  12314. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12315. with_gnu_ld=yes
  12316. ;;
  12317. openbsd*)
  12318. with_gnu_ld=no
  12319. ;;
  12320. esac
  12321. ld_shlibs_F77=yes
  12322. if test "$with_gnu_ld" = yes; then
  12323. # If archive_cmds runs LD, not CC, wlarc should be empty
  12324. wlarc='${wl}'
  12325. # Set some defaults for GNU ld with shared library support. These
  12326. # are reset later if shared libraries are not supported. Putting them
  12327. # here allows them to be overridden if necessary.
  12328. runpath_var=LD_RUN_PATH
  12329. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12330. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12331. # ancient GNU ld didn't support --whole-archive et. al.
  12332. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12333. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12334. else
  12335. whole_archive_flag_spec_F77=
  12336. fi
  12337. supports_anon_versioning=no
  12338. case `$LD -v 2>/dev/null` in
  12339. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12340. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12341. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12342. *\ 2.11.*) ;; # other 2.11 versions
  12343. *) supports_anon_versioning=yes ;;
  12344. esac
  12345. # See if GNU ld supports shared libraries.
  12346. case $host_os in
  12347. aix3* | aix4* | aix5*)
  12348. # On AIX/PPC, the GNU linker is very broken
  12349. if test "$host_cpu" != ia64; then
  12350. ld_shlibs_F77=no
  12351. cat <<EOF 1>&2
  12352. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12353. *** to be unable to reliably create shared libraries on AIX.
  12354. *** Therefore, libtool is disabling shared libraries support. If you
  12355. *** really care for shared libraries, you may want to modify your PATH
  12356. *** so that a non-GNU linker is found, and then restart.
  12357. EOF
  12358. fi
  12359. ;;
  12360. amigaos*)
  12361. 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)'
  12362. hardcode_libdir_flag_spec_F77='-L$libdir'
  12363. hardcode_minus_L_F77=yes
  12364. # Samuel A. Falvo II <[email protected]> reports
  12365. # that the semantics of dynamic libraries on AmigaOS, at least up
  12366. # to version 4, is to share data among multiple programs linked
  12367. # with the same dynamic library. Since this doesn't match the
  12368. # behavior of shared libraries on other platforms, we can't use
  12369. # them.
  12370. ld_shlibs_F77=no
  12371. ;;
  12372. beos*)
  12373. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12374. allow_undefined_flag_F77=unsupported
  12375. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12376. # support --undefined. This deserves some investigation. FIXME
  12377. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12378. else
  12379. ld_shlibs_F77=no
  12380. fi
  12381. ;;
  12382. cygwin* | mingw* | pw32*)
  12383. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12384. # as there is no search path for DLLs.
  12385. hardcode_libdir_flag_spec_F77='-L$libdir'
  12386. allow_undefined_flag_F77=unsupported
  12387. always_export_symbols_F77=no
  12388. enable_shared_with_static_runtimes_F77=yes
  12389. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12390. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12391. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12392. # If the export-symbols file already is a .def file (1st line
  12393. # is EXPORTS), use it as is; otherwise, prepend...
  12394. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12395. cp $export_symbols $output_objdir/$soname.def;
  12396. else
  12397. echo EXPORTS > $output_objdir/$soname.def;
  12398. cat $export_symbols >> $output_objdir/$soname.def;
  12399. fi~
  12400. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12401. else
  12402. ld_shlibs_F77=no
  12403. fi
  12404. ;;
  12405. interix3*)
  12406. hardcode_direct_F77=no
  12407. hardcode_shlibpath_var_F77=no
  12408. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12409. export_dynamic_flag_spec_F77='${wl}-E'
  12410. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12411. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12412. # default) and relocated if they conflict, which is a slow very memory
  12413. # consuming and fragmenting process. To avoid this, we pick a random,
  12414. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12415. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12416. 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'
  12417. 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'
  12418. ;;
  12419. linux*)
  12420. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12421. tmp_addflag=
  12422. case $cc_basename,$host_cpu in
  12423. pgcc*) # Portland Group C compiler
  12424. 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'
  12425. tmp_addflag=' $pic_flag'
  12426. ;;
  12427. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12428. 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'
  12429. tmp_addflag=' $pic_flag -Mnomain' ;;
  12430. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12431. tmp_addflag=' -i_dynamic' ;;
  12432. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12433. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12434. ifc* | ifort*) # Intel Fortran compiler
  12435. tmp_addflag=' -nofor_main' ;;
  12436. esac
  12437. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12438. if test $supports_anon_versioning = yes; then
  12439. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12440. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12441. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12442. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12443. fi
  12444. else
  12445. ld_shlibs_F77=no
  12446. fi
  12447. ;;
  12448. netbsd*)
  12449. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12450. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12451. wlarc=
  12452. else
  12453. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12454. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12455. fi
  12456. ;;
  12457. solaris*)
  12458. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12459. ld_shlibs_F77=no
  12460. cat <<EOF 1>&2
  12461. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12462. *** create shared libraries on Solaris systems. Therefore, libtool
  12463. *** is disabling shared libraries support. We urge you to upgrade GNU
  12464. *** binutils to release 2.9.1 or newer. Another option is to modify
  12465. *** your PATH or compiler configuration so that the native linker is
  12466. *** used, and then restart.
  12467. EOF
  12468. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12469. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12470. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12471. else
  12472. ld_shlibs_F77=no
  12473. fi
  12474. ;;
  12475. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12476. case `$LD -v 2>&1` in
  12477. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12478. ld_shlibs_F77=no
  12479. cat <<_LT_EOF 1>&2
  12480. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12481. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12482. *** is disabling shared libraries support. We urge you to upgrade GNU
  12483. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12484. *** your PATH or compiler configuration so that the native linker is
  12485. *** used, and then restart.
  12486. _LT_EOF
  12487. ;;
  12488. *)
  12489. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12490. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12491. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12492. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12493. else
  12494. ld_shlibs_F77=no
  12495. fi
  12496. ;;
  12497. esac
  12498. ;;
  12499. sunos4*)
  12500. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12501. wlarc=
  12502. hardcode_direct_F77=yes
  12503. hardcode_shlibpath_var_F77=no
  12504. ;;
  12505. *)
  12506. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12507. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12508. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12509. else
  12510. ld_shlibs_F77=no
  12511. fi
  12512. ;;
  12513. esac
  12514. if test "$ld_shlibs_F77" = no; then
  12515. runpath_var=
  12516. hardcode_libdir_flag_spec_F77=
  12517. export_dynamic_flag_spec_F77=
  12518. whole_archive_flag_spec_F77=
  12519. fi
  12520. else
  12521. # PORTME fill in a description of your system's linker (not GNU ld)
  12522. case $host_os in
  12523. aix3*)
  12524. allow_undefined_flag_F77=unsupported
  12525. always_export_symbols_F77=yes
  12526. 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'
  12527. # Note: this linker hardcodes the directories in LIBPATH if there
  12528. # are no directories specified by -L.
  12529. hardcode_minus_L_F77=yes
  12530. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12531. # Neither direct hardcoding nor static linking is supported with a
  12532. # broken collect2.
  12533. hardcode_direct_F77=unsupported
  12534. fi
  12535. ;;
  12536. aix4* | aix5*)
  12537. if test "$host_cpu" = ia64; then
  12538. # On IA64, the linker does run time linking by default, so we don't
  12539. # have to do anything special.
  12540. aix_use_runtimelinking=no
  12541. exp_sym_flag='-Bexport'
  12542. no_entry_flag=""
  12543. else
  12544. # If we're using GNU nm, then we don't want the "-C" option.
  12545. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12546. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12547. 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'
  12548. else
  12549. 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'
  12550. fi
  12551. aix_use_runtimelinking=no
  12552. # Test if we are trying to use run time linking or normal
  12553. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12554. # need to do runtime linking.
  12555. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12556. for ld_flag in $LDFLAGS; do
  12557. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12558. aix_use_runtimelinking=yes
  12559. break
  12560. fi
  12561. done
  12562. ;;
  12563. esac
  12564. exp_sym_flag='-bexport'
  12565. no_entry_flag='-bnoentry'
  12566. fi
  12567. # When large executables or shared objects are built, AIX ld can
  12568. # have problems creating the table of contents. If linking a library
  12569. # or program results in "error TOC overflow" add -mminimal-toc to
  12570. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12571. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12572. archive_cmds_F77=''
  12573. hardcode_direct_F77=yes
  12574. hardcode_libdir_separator_F77=':'
  12575. link_all_deplibs_F77=yes
  12576. if test "$GCC" = yes; then
  12577. case $host_os in aix4.[012]|aix4.[012].*)
  12578. # We only want to do this on AIX 4.2 and lower, the check
  12579. # below for broken collect2 doesn't work under 4.3+
  12580. collect2name=`${CC} -print-prog-name=collect2`
  12581. if test -f "$collect2name" && \
  12582. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12583. then
  12584. # We have reworked collect2
  12585. hardcode_direct_F77=yes
  12586. else
  12587. # We have old collect2
  12588. hardcode_direct_F77=unsupported
  12589. # It fails to find uninstalled libraries when the uninstalled
  12590. # path is not listed in the libpath. Setting hardcode_minus_L
  12591. # to unsupported forces relinking
  12592. hardcode_minus_L_F77=yes
  12593. hardcode_libdir_flag_spec_F77='-L$libdir'
  12594. hardcode_libdir_separator_F77=
  12595. fi
  12596. ;;
  12597. esac
  12598. shared_flag='-shared'
  12599. if test "$aix_use_runtimelinking" = yes; then
  12600. shared_flag="$shared_flag "'${wl}-G'
  12601. fi
  12602. else
  12603. # not using gcc
  12604. if test "$host_cpu" = ia64; then
  12605. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12606. # chokes on -Wl,-G. The following line is correct:
  12607. shared_flag='-G'
  12608. else
  12609. if test "$aix_use_runtimelinking" = yes; then
  12610. shared_flag='${wl}-G'
  12611. else
  12612. shared_flag='${wl}-bM:SRE'
  12613. fi
  12614. fi
  12615. fi
  12616. # It seems that -bexpall does not export symbols beginning with
  12617. # underscore (_), so it is better to generate a list of symbols to export.
  12618. always_export_symbols_F77=yes
  12619. if test "$aix_use_runtimelinking" = yes; then
  12620. # Warning - without using the other runtime loading flags (-brtl),
  12621. # -berok will link without error, but may produce a broken library.
  12622. allow_undefined_flag_F77='-berok'
  12623. # Determine the default libpath from the value encoded in an empty executable.
  12624. cat >conftest.$ac_ext <<_ACEOF
  12625. program main
  12626. end
  12627. _ACEOF
  12628. rm -f conftest.$ac_objext conftest$ac_exeext
  12629. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12630. (eval $ac_link) 2>conftest.er1
  12631. ac_status=$?
  12632. grep -v '^ *+' conftest.er1 >conftest.err
  12633. rm -f conftest.er1
  12634. cat conftest.err >&5
  12635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12636. (exit $ac_status); } &&
  12637. { ac_try='test -z "$ac_f77_werror_flag"
  12638. || test ! -s conftest.err'
  12639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12640. (eval $ac_try) 2>&5
  12641. ac_status=$?
  12642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12643. (exit $ac_status); }; } &&
  12644. { ac_try='test -s conftest$ac_exeext'
  12645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12646. (eval $ac_try) 2>&5
  12647. ac_status=$?
  12648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12649. (exit $ac_status); }; }; then
  12650. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12651. }'`
  12652. # Check for a 64-bit object if we didn't find anything.
  12653. 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; }
  12654. }'`; fi
  12655. else
  12656. echo "$as_me: failed program was:" >&5
  12657. sed 's/^/| /' conftest.$ac_ext >&5
  12658. fi
  12659. rm -f conftest.err conftest.$ac_objext \
  12660. conftest$ac_exeext conftest.$ac_ext
  12661. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12662. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12663. 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"
  12664. else
  12665. if test "$host_cpu" = ia64; then
  12666. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12667. allow_undefined_flag_F77="-z nodefs"
  12668. 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"
  12669. else
  12670. # Determine the default libpath from the value encoded in an empty executable.
  12671. cat >conftest.$ac_ext <<_ACEOF
  12672. program main
  12673. end
  12674. _ACEOF
  12675. rm -f conftest.$ac_objext conftest$ac_exeext
  12676. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12677. (eval $ac_link) 2>conftest.er1
  12678. ac_status=$?
  12679. grep -v '^ *+' conftest.er1 >conftest.err
  12680. rm -f conftest.er1
  12681. cat conftest.err >&5
  12682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12683. (exit $ac_status); } &&
  12684. { ac_try='test -z "$ac_f77_werror_flag"
  12685. || test ! -s conftest.err'
  12686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12687. (eval $ac_try) 2>&5
  12688. ac_status=$?
  12689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12690. (exit $ac_status); }; } &&
  12691. { ac_try='test -s conftest$ac_exeext'
  12692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12693. (eval $ac_try) 2>&5
  12694. ac_status=$?
  12695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12696. (exit $ac_status); }; }; then
  12697. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12698. }'`
  12699. # Check for a 64-bit object if we didn't find anything.
  12700. 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; }
  12701. }'`; fi
  12702. else
  12703. echo "$as_me: failed program was:" >&5
  12704. sed 's/^/| /' conftest.$ac_ext >&5
  12705. fi
  12706. rm -f conftest.err conftest.$ac_objext \
  12707. conftest$ac_exeext conftest.$ac_ext
  12708. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12709. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12710. # Warning - without using the other run time loading flags,
  12711. # -berok will link without error, but may produce a broken library.
  12712. no_undefined_flag_F77=' ${wl}-bernotok'
  12713. allow_undefined_flag_F77=' ${wl}-berok'
  12714. # Exported symbols can be pulled into shared objects from archives
  12715. whole_archive_flag_spec_F77='$convenience'
  12716. archive_cmds_need_lc_F77=yes
  12717. # This is similar to how AIX traditionally builds its shared libraries.
  12718. 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'
  12719. fi
  12720. fi
  12721. ;;
  12722. amigaos*)
  12723. 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)'
  12724. hardcode_libdir_flag_spec_F77='-L$libdir'
  12725. hardcode_minus_L_F77=yes
  12726. # see comment about different semantics on the GNU ld section
  12727. ld_shlibs_F77=no
  12728. ;;
  12729. bsdi[45]*)
  12730. export_dynamic_flag_spec_F77=-rdynamic
  12731. ;;
  12732. cygwin* | mingw* | pw32*)
  12733. # When not using gcc, we currently assume that we are using
  12734. # Microsoft Visual C++.
  12735. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12736. # no search path for DLLs.
  12737. hardcode_libdir_flag_spec_F77=' '
  12738. allow_undefined_flag_F77=unsupported
  12739. # Tell ltmain to make .lib files, not .a files.
  12740. libext=lib
  12741. # Tell ltmain to make .dll files, not .so files.
  12742. shrext_cmds=".dll"
  12743. # FIXME: Setting linknames here is a bad hack.
  12744. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12745. # The linker will automatically build a .lib file if we build a DLL.
  12746. old_archive_From_new_cmds_F77='true'
  12747. # FIXME: Should let the user specify the lib program.
  12748. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12749. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12750. enable_shared_with_static_runtimes_F77=yes
  12751. ;;
  12752. darwin* | rhapsody*)
  12753. case $host_os in
  12754. rhapsody* | darwin1.[012])
  12755. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12756. ;;
  12757. *) # Darwin 1.3 on
  12758. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12759. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12760. else
  12761. case ${MACOSX_DEPLOYMENT_TARGET} in
  12762. 10.[012])
  12763. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12764. ;;
  12765. 10.*)
  12766. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12767. ;;
  12768. esac
  12769. fi
  12770. ;;
  12771. esac
  12772. archive_cmds_need_lc_F77=no
  12773. hardcode_direct_F77=no
  12774. hardcode_automatic_F77=yes
  12775. hardcode_shlibpath_var_F77=unsupported
  12776. whole_archive_flag_spec_F77=''
  12777. link_all_deplibs_F77=yes
  12778. if test "$GCC" = yes ; then
  12779. output_verbose_link_cmd='echo'
  12780. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12781. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12782. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12783. 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}'
  12784. 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}'
  12785. else
  12786. case $cc_basename in
  12787. xlc*)
  12788. output_verbose_link_cmd='echo'
  12789. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12790. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12791. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12792. 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}'
  12793. 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}'
  12794. ;;
  12795. *)
  12796. ld_shlibs_F77=no
  12797. ;;
  12798. esac
  12799. fi
  12800. ;;
  12801. dgux*)
  12802. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12803. hardcode_libdir_flag_spec_F77='-L$libdir'
  12804. hardcode_shlibpath_var_F77=no
  12805. ;;
  12806. freebsd1*)
  12807. ld_shlibs_F77=no
  12808. ;;
  12809. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12810. # support. Future versions do this automatically, but an explicit c++rt0.o
  12811. # does not break anything, and helps significantly (at the cost of a little
  12812. # extra space).
  12813. freebsd2.2*)
  12814. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12815. hardcode_libdir_flag_spec_F77='-R$libdir'
  12816. hardcode_direct_F77=yes
  12817. hardcode_shlibpath_var_F77=no
  12818. ;;
  12819. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12820. freebsd2*)
  12821. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12822. hardcode_direct_F77=yes
  12823. hardcode_minus_L_F77=yes
  12824. hardcode_shlibpath_var_F77=no
  12825. ;;
  12826. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12827. freebsd* | kfreebsd*-gnu | dragonfly*)
  12828. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12829. hardcode_libdir_flag_spec_F77='-R$libdir'
  12830. hardcode_direct_F77=yes
  12831. hardcode_shlibpath_var_F77=no
  12832. ;;
  12833. hpux9*)
  12834. if test "$GCC" = yes; then
  12835. 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'
  12836. else
  12837. 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'
  12838. fi
  12839. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12840. hardcode_libdir_separator_F77=:
  12841. hardcode_direct_F77=yes
  12842. # hardcode_minus_L: Not really in the search PATH,
  12843. # but as the default location of the library.
  12844. hardcode_minus_L_F77=yes
  12845. export_dynamic_flag_spec_F77='${wl}-E'
  12846. ;;
  12847. hpux10*)
  12848. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12849. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12850. else
  12851. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12852. fi
  12853. if test "$with_gnu_ld" = no; then
  12854. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12855. hardcode_libdir_separator_F77=:
  12856. hardcode_direct_F77=yes
  12857. export_dynamic_flag_spec_F77='${wl}-E'
  12858. # hardcode_minus_L: Not really in the search PATH,
  12859. # but as the default location of the library.
  12860. hardcode_minus_L_F77=yes
  12861. fi
  12862. ;;
  12863. hpux11*)
  12864. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12865. case $host_cpu in
  12866. hppa*64*)
  12867. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12868. ;;
  12869. ia64*)
  12870. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12871. ;;
  12872. *)
  12873. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12874. ;;
  12875. esac
  12876. else
  12877. case $host_cpu in
  12878. hppa*64*)
  12879. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12880. ;;
  12881. ia64*)
  12882. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12883. ;;
  12884. *)
  12885. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12886. ;;
  12887. esac
  12888. fi
  12889. if test "$with_gnu_ld" = no; then
  12890. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12891. hardcode_libdir_separator_F77=:
  12892. case $host_cpu in
  12893. hppa*64*|ia64*)
  12894. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12895. hardcode_direct_F77=no
  12896. hardcode_shlibpath_var_F77=no
  12897. ;;
  12898. *)
  12899. hardcode_direct_F77=yes
  12900. export_dynamic_flag_spec_F77='${wl}-E'
  12901. # hardcode_minus_L: Not really in the search PATH,
  12902. # but as the default location of the library.
  12903. hardcode_minus_L_F77=yes
  12904. ;;
  12905. esac
  12906. fi
  12907. ;;
  12908. irix5* | irix6* | nonstopux*)
  12909. if test "$GCC" = yes; then
  12910. 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'
  12911. else
  12912. 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'
  12913. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12914. fi
  12915. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12916. hardcode_libdir_separator_F77=:
  12917. link_all_deplibs_F77=yes
  12918. ;;
  12919. netbsd*)
  12920. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12921. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12922. else
  12923. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12924. fi
  12925. hardcode_libdir_flag_spec_F77='-R$libdir'
  12926. hardcode_direct_F77=yes
  12927. hardcode_shlibpath_var_F77=no
  12928. ;;
  12929. newsos6)
  12930. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12931. hardcode_direct_F77=yes
  12932. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12933. hardcode_libdir_separator_F77=:
  12934. hardcode_shlibpath_var_F77=no
  12935. ;;
  12936. openbsd*)
  12937. hardcode_direct_F77=yes
  12938. hardcode_shlibpath_var_F77=no
  12939. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12940. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12941. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12942. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12943. export_dynamic_flag_spec_F77='${wl}-E'
  12944. else
  12945. case $host_os in
  12946. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12947. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12948. hardcode_libdir_flag_spec_F77='-R$libdir'
  12949. ;;
  12950. *)
  12951. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12952. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12953. ;;
  12954. esac
  12955. fi
  12956. ;;
  12957. os2*)
  12958. hardcode_libdir_flag_spec_F77='-L$libdir'
  12959. hardcode_minus_L_F77=yes
  12960. allow_undefined_flag_F77=unsupported
  12961. 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'
  12962. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12963. ;;
  12964. osf3*)
  12965. if test "$GCC" = yes; then
  12966. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12967. 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'
  12968. else
  12969. allow_undefined_flag_F77=' -expect_unresolved \*'
  12970. 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'
  12971. fi
  12972. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12973. hardcode_libdir_separator_F77=:
  12974. ;;
  12975. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12976. if test "$GCC" = yes; then
  12977. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12978. 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'
  12979. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12980. else
  12981. allow_undefined_flag_F77=' -expect_unresolved \*'
  12982. 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'
  12983. 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~
  12984. $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'
  12985. # Both c and cxx compiler support -rpath directly
  12986. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12987. fi
  12988. hardcode_libdir_separator_F77=:
  12989. ;;
  12990. solaris*)
  12991. no_undefined_flag_F77=' -z text'
  12992. if test "$GCC" = yes; then
  12993. wlarc='${wl}'
  12994. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12995. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12996. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12997. else
  12998. wlarc=''
  12999. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13000. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13001. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13002. fi
  13003. hardcode_libdir_flag_spec_F77='-R$libdir'
  13004. hardcode_shlibpath_var_F77=no
  13005. case $host_os in
  13006. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13007. *)
  13008. # The compiler driver will combine linker options so we
  13009. # cannot just pass the convience library names through
  13010. # without $wl, iff we do not link with $LD.
  13011. # Luckily, gcc supports the same syntax we need for Sun Studio.
  13012. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13013. case $wlarc in
  13014. '')
  13015. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  13016. *)
  13017. 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' ;;
  13018. esac ;;
  13019. esac
  13020. link_all_deplibs_F77=yes
  13021. ;;
  13022. sunos4*)
  13023. if test "x$host_vendor" = xsequent; then
  13024. # Use $CC to link under sequent, because it throws in some extra .o
  13025. # files that make .init and .fini sections work.
  13026. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13027. else
  13028. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13029. fi
  13030. hardcode_libdir_flag_spec_F77='-L$libdir'
  13031. hardcode_direct_F77=yes
  13032. hardcode_minus_L_F77=yes
  13033. hardcode_shlibpath_var_F77=no
  13034. ;;
  13035. sysv4)
  13036. case $host_vendor in
  13037. sni)
  13038. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13039. hardcode_direct_F77=yes # is this really true???
  13040. ;;
  13041. siemens)
  13042. ## LD is ld it makes a PLAMLIB
  13043. ## CC just makes a GrossModule.
  13044. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13045. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13046. hardcode_direct_F77=no
  13047. ;;
  13048. motorola)
  13049. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13050. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13051. ;;
  13052. esac
  13053. runpath_var='LD_RUN_PATH'
  13054. hardcode_shlibpath_var_F77=no
  13055. ;;
  13056. sysv4.3*)
  13057. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13058. hardcode_shlibpath_var_F77=no
  13059. export_dynamic_flag_spec_F77='-Bexport'
  13060. ;;
  13061. sysv4*MP*)
  13062. if test -d /usr/nec; then
  13063. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13064. hardcode_shlibpath_var_F77=no
  13065. runpath_var=LD_RUN_PATH
  13066. hardcode_runpath_var=yes
  13067. ld_shlibs_F77=yes
  13068. fi
  13069. ;;
  13070. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13071. no_undefined_flag_F77='${wl}-z,text'
  13072. archive_cmds_need_lc_F77=no
  13073. hardcode_shlibpath_var_F77=no
  13074. runpath_var='LD_RUN_PATH'
  13075. if test "$GCC" = yes; then
  13076. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13077. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13078. else
  13079. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13080. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13081. fi
  13082. ;;
  13083. sysv5* | sco3.2v5* | sco5v6*)
  13084. # Note: We can NOT use -z defs as we might desire, because we do not
  13085. # link with -lc, and that would cause any symbols used from libc to
  13086. # always be unresolved, which means just about no library would
  13087. # ever link correctly. If we're not using GNU ld we use -z text
  13088. # though, which does catch some bad symbols but isn't as heavy-handed
  13089. # as -z defs.
  13090. no_undefined_flag_F77='${wl}-z,text'
  13091. allow_undefined_flag_F77='${wl}-z,nodefs'
  13092. archive_cmds_need_lc_F77=no
  13093. hardcode_shlibpath_var_F77=no
  13094. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13095. hardcode_libdir_separator_F77=':'
  13096. link_all_deplibs_F77=yes
  13097. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13098. runpath_var='LD_RUN_PATH'
  13099. if test "$GCC" = yes; then
  13100. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13101. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13102. else
  13103. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13104. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13105. fi
  13106. ;;
  13107. uts4*)
  13108. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13109. hardcode_libdir_flag_spec_F77='-L$libdir'
  13110. hardcode_shlibpath_var_F77=no
  13111. ;;
  13112. *)
  13113. ld_shlibs_F77=no
  13114. ;;
  13115. esac
  13116. fi
  13117. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13118. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13119. test "$ld_shlibs_F77" = no && can_build_shared=no
  13120. #
  13121. # Do we need to explicitly link libc?
  13122. #
  13123. case "x$archive_cmds_need_lc_F77" in
  13124. x|xyes)
  13125. # Assume -lc should be added
  13126. archive_cmds_need_lc_F77=yes
  13127. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13128. case $archive_cmds_F77 in
  13129. *'~'*)
  13130. # FIXME: we may have to deal with multi-command sequences.
  13131. ;;
  13132. '$CC '*)
  13133. # Test whether the compiler implicitly links with -lc since on some
  13134. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13135. # to ld, don't add -lc before -lgcc.
  13136. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13137. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13138. $rm conftest*
  13139. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13140. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13141. (eval $ac_compile) 2>&5
  13142. ac_status=$?
  13143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13144. (exit $ac_status); } 2>conftest.err; then
  13145. soname=conftest
  13146. lib=conftest
  13147. libobjs=conftest.$ac_objext
  13148. deplibs=
  13149. wl=$lt_prog_compiler_wl_F77
  13150. pic_flag=$lt_prog_compiler_pic_F77
  13151. compiler_flags=-v
  13152. linker_flags=-v
  13153. verstring=
  13154. output_objdir=.
  13155. libname=conftest
  13156. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13157. allow_undefined_flag_F77=
  13158. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13159. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13160. ac_status=$?
  13161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13162. (exit $ac_status); }
  13163. then
  13164. archive_cmds_need_lc_F77=no
  13165. else
  13166. archive_cmds_need_lc_F77=yes
  13167. fi
  13168. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13169. else
  13170. cat conftest.err 1>&5
  13171. fi
  13172. $rm conftest*
  13173. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13174. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13175. ;;
  13176. esac
  13177. fi
  13178. ;;
  13179. esac
  13180. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13181. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13182. library_names_spec=
  13183. libname_spec='lib$name'
  13184. soname_spec=
  13185. shrext_cmds=".so"
  13186. postinstall_cmds=
  13187. postuninstall_cmds=
  13188. finish_cmds=
  13189. finish_eval=
  13190. shlibpath_var=
  13191. shlibpath_overrides_runpath=unknown
  13192. version_type=none
  13193. dynamic_linker="$host_os ld.so"
  13194. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13195. if test "$GCC" = yes; then
  13196. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13197. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13198. # if the path contains ";" then we assume it to be the separator
  13199. # otherwise default to the standard path separator (i.e. ":") - it is
  13200. # assumed that no part of a normal pathname contains ";" but that should
  13201. # okay in the real world where ";" in dirpaths is itself problematic.
  13202. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13203. else
  13204. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13205. fi
  13206. else
  13207. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13208. fi
  13209. need_lib_prefix=unknown
  13210. hardcode_into_libs=no
  13211. # when you set need_version to no, make sure it does not cause -set_version
  13212. # flags to be left without arguments
  13213. need_version=unknown
  13214. case $host_os in
  13215. aix3*)
  13216. version_type=linux
  13217. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13218. shlibpath_var=LIBPATH
  13219. # AIX 3 has no versioning support, so we append a major version to the name.
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. ;;
  13222. aix4* | aix5*)
  13223. version_type=linux
  13224. need_lib_prefix=no
  13225. need_version=no
  13226. hardcode_into_libs=yes
  13227. if test "$host_cpu" = ia64; then
  13228. # AIX 5 supports IA64
  13229. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13230. shlibpath_var=LD_LIBRARY_PATH
  13231. else
  13232. # With GCC up to 2.95.x, collect2 would create an import file
  13233. # for dependence libraries. The import file would start with
  13234. # the line `#! .'. This would cause the generated library to
  13235. # depend on `.', always an invalid library. This was fixed in
  13236. # development snapshots of GCC prior to 3.0.
  13237. case $host_os in
  13238. aix4 | aix4.[01] | aix4.[01].*)
  13239. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13240. echo ' yes '
  13241. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13242. :
  13243. else
  13244. can_build_shared=no
  13245. fi
  13246. ;;
  13247. esac
  13248. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13249. # soname into executable. Probably we can add versioning support to
  13250. # collect2, so additional links can be useful in future.
  13251. if test "$aix_use_runtimelinking" = yes; then
  13252. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13253. # instead of lib<name>.a to let people know that these are not
  13254. # typical AIX shared libraries.
  13255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13256. else
  13257. # We preserve .a as extension for shared libraries through AIX4.2
  13258. # and later when we are not doing run time linking.
  13259. library_names_spec='${libname}${release}.a $libname.a'
  13260. soname_spec='${libname}${release}${shared_ext}$major'
  13261. fi
  13262. shlibpath_var=LIBPATH
  13263. fi
  13264. ;;
  13265. amigaos*)
  13266. library_names_spec='$libname.ixlibrary $libname.a'
  13267. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13268. 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'
  13269. ;;
  13270. beos*)
  13271. library_names_spec='${libname}${shared_ext}'
  13272. dynamic_linker="$host_os ld.so"
  13273. shlibpath_var=LIBRARY_PATH
  13274. ;;
  13275. bsdi[45]*)
  13276. version_type=linux
  13277. need_version=no
  13278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13279. soname_spec='${libname}${release}${shared_ext}$major'
  13280. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13281. shlibpath_var=LD_LIBRARY_PATH
  13282. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13283. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13284. # the default ld.so.conf also contains /usr/contrib/lib and
  13285. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13286. # libtool to hard-code these into programs
  13287. ;;
  13288. cygwin* | mingw* | pw32*)
  13289. version_type=windows
  13290. shrext_cmds=".dll"
  13291. need_version=no
  13292. need_lib_prefix=no
  13293. case $GCC,$host_os in
  13294. yes,cygwin* | yes,mingw* | yes,pw32*)
  13295. library_names_spec='$libname.dll.a'
  13296. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13297. postinstall_cmds='base_file=`basename \${file}`~
  13298. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13299. dldir=$destdir/`dirname \$dlpath`~
  13300. test -d \$dldir || mkdir -p \$dldir~
  13301. $install_prog $dir/$dlname \$dldir/$dlname~
  13302. chmod a+x \$dldir/$dlname'
  13303. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13304. dlpath=$dir/\$dldll~
  13305. $rm \$dlpath'
  13306. shlibpath_overrides_runpath=yes
  13307. case $host_os in
  13308. cygwin*)
  13309. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13310. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13311. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13312. ;;
  13313. mingw*)
  13314. # MinGW DLLs use traditional 'lib' prefix
  13315. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13316. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13317. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13318. # It is most probably a Windows format PATH printed by
  13319. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13320. # path with ; separators, and with drive letters. We can handle the
  13321. # drive letters (cygwin fileutils understands them), so leave them,
  13322. # especially as we might pass files found there to a mingw objdump,
  13323. # which wouldn't understand a cygwinified path. Ahh.
  13324. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13325. else
  13326. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13327. fi
  13328. ;;
  13329. pw32*)
  13330. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13331. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13332. ;;
  13333. esac
  13334. ;;
  13335. *)
  13336. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13337. ;;
  13338. esac
  13339. dynamic_linker='Win32 ld.exe'
  13340. # FIXME: first we should search . and the directory the executable is in
  13341. shlibpath_var=PATH
  13342. ;;
  13343. darwin* | rhapsody*)
  13344. dynamic_linker="$host_os dyld"
  13345. version_type=darwin
  13346. need_lib_prefix=no
  13347. need_version=no
  13348. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13349. soname_spec='${libname}${release}${major}$shared_ext'
  13350. shlibpath_overrides_runpath=yes
  13351. shlibpath_var=DYLD_LIBRARY_PATH
  13352. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13353. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13354. if test "$GCC" = yes; then
  13355. 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"`
  13356. else
  13357. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13358. fi
  13359. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13360. ;;
  13361. dgux*)
  13362. version_type=linux
  13363. need_lib_prefix=no
  13364. need_version=no
  13365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13366. soname_spec='${libname}${release}${shared_ext}$major'
  13367. shlibpath_var=LD_LIBRARY_PATH
  13368. ;;
  13369. freebsd1*)
  13370. dynamic_linker=no
  13371. ;;
  13372. kfreebsd*-gnu)
  13373. version_type=linux
  13374. need_lib_prefix=no
  13375. need_version=no
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. shlibpath_var=LD_LIBRARY_PATH
  13379. shlibpath_overrides_runpath=no
  13380. hardcode_into_libs=yes
  13381. dynamic_linker='GNU ld.so'
  13382. ;;
  13383. freebsd* | dragonfly*)
  13384. # DragonFly does not have aout. When/if they implement a new
  13385. # versioning mechanism, adjust this.
  13386. if test -x /usr/bin/objformat; then
  13387. objformat=`/usr/bin/objformat`
  13388. else
  13389. case $host_os in
  13390. freebsd[123]*) objformat=aout ;;
  13391. *) objformat=elf ;;
  13392. esac
  13393. fi
  13394. version_type=freebsd-$objformat
  13395. case $version_type in
  13396. freebsd-elf*)
  13397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13398. need_version=no
  13399. need_lib_prefix=no
  13400. ;;
  13401. freebsd-*)
  13402. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13403. need_version=yes
  13404. ;;
  13405. esac
  13406. shlibpath_var=LD_LIBRARY_PATH
  13407. case $host_os in
  13408. freebsd2*)
  13409. shlibpath_overrides_runpath=yes
  13410. ;;
  13411. freebsd3.[01]* | freebsdelf3.[01]*)
  13412. shlibpath_overrides_runpath=yes
  13413. hardcode_into_libs=yes
  13414. ;;
  13415. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13416. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13417. shlibpath_overrides_runpath=no
  13418. hardcode_into_libs=yes
  13419. ;;
  13420. freebsd*) # from 4.6 on
  13421. shlibpath_overrides_runpath=yes
  13422. hardcode_into_libs=yes
  13423. ;;
  13424. esac
  13425. ;;
  13426. gnu*)
  13427. version_type=linux
  13428. need_lib_prefix=no
  13429. need_version=no
  13430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13431. soname_spec='${libname}${release}${shared_ext}$major'
  13432. shlibpath_var=LD_LIBRARY_PATH
  13433. hardcode_into_libs=yes
  13434. ;;
  13435. hpux9* | hpux10* | hpux11*)
  13436. # Give a soname corresponding to the major version so that dld.sl refuses to
  13437. # link against other versions.
  13438. version_type=sunos
  13439. need_lib_prefix=no
  13440. need_version=no
  13441. case $host_cpu in
  13442. ia64*)
  13443. shrext_cmds='.so'
  13444. hardcode_into_libs=yes
  13445. dynamic_linker="$host_os dld.so"
  13446. shlibpath_var=LD_LIBRARY_PATH
  13447. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13449. soname_spec='${libname}${release}${shared_ext}$major'
  13450. if test "X$HPUX_IA64_MODE" = X32; then
  13451. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13452. else
  13453. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13454. fi
  13455. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13456. ;;
  13457. hppa*64*)
  13458. shrext_cmds='.sl'
  13459. hardcode_into_libs=yes
  13460. dynamic_linker="$host_os dld.sl"
  13461. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13462. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13464. soname_spec='${libname}${release}${shared_ext}$major'
  13465. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13466. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13467. ;;
  13468. *)
  13469. shrext_cmds='.sl'
  13470. dynamic_linker="$host_os dld.sl"
  13471. shlibpath_var=SHLIB_PATH
  13472. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13474. soname_spec='${libname}${release}${shared_ext}$major'
  13475. ;;
  13476. esac
  13477. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13478. postinstall_cmds='chmod 555 $lib'
  13479. ;;
  13480. interix3*)
  13481. version_type=linux
  13482. need_lib_prefix=no
  13483. need_version=no
  13484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13485. soname_spec='${libname}${release}${shared_ext}$major'
  13486. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13487. shlibpath_var=LD_LIBRARY_PATH
  13488. shlibpath_overrides_runpath=no
  13489. hardcode_into_libs=yes
  13490. ;;
  13491. irix5* | irix6* | nonstopux*)
  13492. case $host_os in
  13493. nonstopux*) version_type=nonstopux ;;
  13494. *)
  13495. if test "$lt_cv_prog_gnu_ld" = yes; then
  13496. version_type=linux
  13497. else
  13498. version_type=irix
  13499. fi ;;
  13500. esac
  13501. need_lib_prefix=no
  13502. need_version=no
  13503. soname_spec='${libname}${release}${shared_ext}$major'
  13504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13505. case $host_os in
  13506. irix5* | nonstopux*)
  13507. libsuff= shlibsuff=
  13508. ;;
  13509. *)
  13510. case $LD in # libtool.m4 will add one of these switches to LD
  13511. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13512. libsuff= shlibsuff= libmagic=32-bit;;
  13513. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13514. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13515. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13516. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13517. *) libsuff= shlibsuff= libmagic=never-match;;
  13518. esac
  13519. ;;
  13520. esac
  13521. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13522. shlibpath_overrides_runpath=no
  13523. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13524. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13525. hardcode_into_libs=yes
  13526. ;;
  13527. # No shared lib support for Linux oldld, aout, or coff.
  13528. linux*oldld* | linux*aout* | linux*coff*)
  13529. dynamic_linker=no
  13530. ;;
  13531. # This must be Linux ELF.
  13532. linux*)
  13533. version_type=linux
  13534. need_lib_prefix=no
  13535. need_version=no
  13536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13537. soname_spec='${libname}${release}${shared_ext}$major'
  13538. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13539. shlibpath_var=LD_LIBRARY_PATH
  13540. shlibpath_overrides_runpath=no
  13541. # This implies no fast_install, which is unacceptable.
  13542. # Some rework will be needed to allow for fast_install
  13543. # before this can be enabled.
  13544. hardcode_into_libs=yes
  13545. # find out which ABI we are using
  13546. libsuff=
  13547. case "$host_cpu" in
  13548. x86_64*|s390x*|powerpc64*)
  13549. echo '#line 15020 "configure"' > conftest.$ac_ext
  13550. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13551. (eval $ac_compile) 2>&5
  13552. ac_status=$?
  13553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13554. (exit $ac_status); }; then
  13555. case `/usr/bin/file conftest.$ac_objext` in
  13556. *64-bit*)
  13557. libsuff=64
  13558. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13559. ;;
  13560. esac
  13561. fi
  13562. rm -rf conftest*
  13563. ;;
  13564. esac
  13565. # Append ld.so.conf contents to the search path
  13566. if test -f /etc/ld.so.conf; then
  13567. 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' ' '`
  13568. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13569. fi
  13570. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13571. # powerpc, because MkLinux only supported shared libraries with the
  13572. # GNU dynamic linker. Since this was broken with cross compilers,
  13573. # most powerpc-linux boxes support dynamic linking these days and
  13574. # people can always --disable-shared, the test was removed, and we
  13575. # assume the GNU/Linux dynamic linker is in use.
  13576. dynamic_linker='GNU/Linux ld.so'
  13577. ;;
  13578. knetbsd*-gnu)
  13579. version_type=linux
  13580. need_lib_prefix=no
  13581. need_version=no
  13582. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13583. soname_spec='${libname}${release}${shared_ext}$major'
  13584. shlibpath_var=LD_LIBRARY_PATH
  13585. shlibpath_overrides_runpath=no
  13586. hardcode_into_libs=yes
  13587. dynamic_linker='GNU ld.so'
  13588. ;;
  13589. netbsd*)
  13590. version_type=sunos
  13591. need_lib_prefix=no
  13592. need_version=no
  13593. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13595. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13596. dynamic_linker='NetBSD (a.out) ld.so'
  13597. else
  13598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13599. soname_spec='${libname}${release}${shared_ext}$major'
  13600. dynamic_linker='NetBSD ld.elf_so'
  13601. fi
  13602. shlibpath_var=LD_LIBRARY_PATH
  13603. shlibpath_overrides_runpath=yes
  13604. hardcode_into_libs=yes
  13605. ;;
  13606. newsos6)
  13607. version_type=linux
  13608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13609. shlibpath_var=LD_LIBRARY_PATH
  13610. shlibpath_overrides_runpath=yes
  13611. ;;
  13612. nto-qnx*)
  13613. version_type=linux
  13614. need_lib_prefix=no
  13615. need_version=no
  13616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13617. soname_spec='${libname}${release}${shared_ext}$major'
  13618. shlibpath_var=LD_LIBRARY_PATH
  13619. shlibpath_overrides_runpath=yes
  13620. ;;
  13621. openbsd*)
  13622. version_type=sunos
  13623. sys_lib_dlsearch_path_spec="/usr/lib"
  13624. need_lib_prefix=no
  13625. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13626. case $host_os in
  13627. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13628. *) need_version=no ;;
  13629. esac
  13630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13631. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13632. shlibpath_var=LD_LIBRARY_PATH
  13633. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13634. case $host_os in
  13635. openbsd2.[89] | openbsd2.[89].*)
  13636. shlibpath_overrides_runpath=no
  13637. ;;
  13638. *)
  13639. shlibpath_overrides_runpath=yes
  13640. ;;
  13641. esac
  13642. else
  13643. shlibpath_overrides_runpath=yes
  13644. fi
  13645. ;;
  13646. os2*)
  13647. libname_spec='$name'
  13648. shrext_cmds=".dll"
  13649. need_lib_prefix=no
  13650. library_names_spec='$libname${shared_ext} $libname.a'
  13651. dynamic_linker='OS/2 ld.exe'
  13652. shlibpath_var=LIBPATH
  13653. ;;
  13654. osf3* | osf4* | osf5*)
  13655. version_type=osf
  13656. need_lib_prefix=no
  13657. need_version=no
  13658. soname_spec='${libname}${release}${shared_ext}$major'
  13659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13660. shlibpath_var=LD_LIBRARY_PATH
  13661. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13662. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13663. ;;
  13664. solaris*)
  13665. version_type=linux
  13666. need_lib_prefix=no
  13667. need_version=no
  13668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13669. soname_spec='${libname}${release}${shared_ext}$major'
  13670. shlibpath_var=LD_LIBRARY_PATH
  13671. shlibpath_overrides_runpath=yes
  13672. hardcode_into_libs=yes
  13673. # ldd complains unless libraries are executable
  13674. postinstall_cmds='chmod +x $lib'
  13675. ;;
  13676. sunos4*)
  13677. version_type=sunos
  13678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13679. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13680. shlibpath_var=LD_LIBRARY_PATH
  13681. shlibpath_overrides_runpath=yes
  13682. if test "$with_gnu_ld" = yes; then
  13683. need_lib_prefix=no
  13684. fi
  13685. need_version=yes
  13686. ;;
  13687. sysv4 | sysv4.3*)
  13688. version_type=linux
  13689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13690. soname_spec='${libname}${release}${shared_ext}$major'
  13691. shlibpath_var=LD_LIBRARY_PATH
  13692. case $host_vendor in
  13693. sni)
  13694. shlibpath_overrides_runpath=no
  13695. need_lib_prefix=no
  13696. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13697. runpath_var=LD_RUN_PATH
  13698. ;;
  13699. siemens)
  13700. need_lib_prefix=no
  13701. ;;
  13702. motorola)
  13703. need_lib_prefix=no
  13704. need_version=no
  13705. shlibpath_overrides_runpath=no
  13706. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13707. ;;
  13708. esac
  13709. ;;
  13710. sysv4*MP*)
  13711. if test -d /usr/nec ;then
  13712. version_type=linux
  13713. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13714. soname_spec='$libname${shared_ext}.$major'
  13715. shlibpath_var=LD_LIBRARY_PATH
  13716. fi
  13717. ;;
  13718. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13719. version_type=freebsd-elf
  13720. need_lib_prefix=no
  13721. need_version=no
  13722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13723. soname_spec='${libname}${release}${shared_ext}$major'
  13724. shlibpath_var=LD_LIBRARY_PATH
  13725. hardcode_into_libs=yes
  13726. if test "$with_gnu_ld" = yes; then
  13727. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13728. shlibpath_overrides_runpath=no
  13729. else
  13730. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13731. shlibpath_overrides_runpath=yes
  13732. case $host_os in
  13733. sco3.2v5*)
  13734. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13735. ;;
  13736. esac
  13737. fi
  13738. sys_lib_dlsearch_path_spec='/usr/lib'
  13739. ;;
  13740. uts4*)
  13741. version_type=linux
  13742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13743. soname_spec='${libname}${release}${shared_ext}$major'
  13744. shlibpath_var=LD_LIBRARY_PATH
  13745. ;;
  13746. *)
  13747. dynamic_linker=no
  13748. ;;
  13749. esac
  13750. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13751. echo "${ECHO_T}$dynamic_linker" >&6
  13752. test "$dynamic_linker" = no && can_build_shared=no
  13753. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13754. if test "$GCC" = yes; then
  13755. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13756. fi
  13757. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13758. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13759. hardcode_action_F77=
  13760. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13761. test -n "$runpath_var_F77" || \
  13762. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13763. # We can hardcode non-existant directories.
  13764. if test "$hardcode_direct_F77" != no &&
  13765. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13766. # have to relink, otherwise we might link with an installed library
  13767. # when we should be linking with a yet-to-be-installed one
  13768. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13769. test "$hardcode_minus_L_F77" != no; then
  13770. # Linking always hardcodes the temporary library directory.
  13771. hardcode_action_F77=relink
  13772. else
  13773. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13774. hardcode_action_F77=immediate
  13775. fi
  13776. else
  13777. # We cannot hardcode anything, or else we can only hardcode existing
  13778. # directories.
  13779. hardcode_action_F77=unsupported
  13780. fi
  13781. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13782. echo "${ECHO_T}$hardcode_action_F77" >&6
  13783. if test "$hardcode_action_F77" = relink; then
  13784. # Fast installation is not supported
  13785. enable_fast_install=no
  13786. elif test "$shlibpath_overrides_runpath" = yes ||
  13787. test "$enable_shared" = no; then
  13788. # Fast installation is not necessary
  13789. enable_fast_install=needless
  13790. fi
  13791. # The else clause should only fire when bootstrapping the
  13792. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13793. # with your package, and you will get complaints that there are
  13794. # no rules to generate ltmain.sh.
  13795. if test -f "$ltmain"; then
  13796. # See if we are running on zsh, and set the options which allow our commands through
  13797. # without removal of \ escapes.
  13798. if test -n "${ZSH_VERSION+set}" ; then
  13799. setopt NO_GLOB_SUBST
  13800. fi
  13801. # Now quote all the things that may contain metacharacters while being
  13802. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13803. # variables and quote the copies for generation of the libtool script.
  13804. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13805. SED SHELL STRIP \
  13806. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13807. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13808. deplibs_check_method reload_flag reload_cmds need_locks \
  13809. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13810. lt_cv_sys_global_symbol_to_c_name_address \
  13811. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13812. old_postinstall_cmds old_postuninstall_cmds \
  13813. compiler_F77 \
  13814. CC_F77 \
  13815. LD_F77 \
  13816. lt_prog_compiler_wl_F77 \
  13817. lt_prog_compiler_pic_F77 \
  13818. lt_prog_compiler_static_F77 \
  13819. lt_prog_compiler_no_builtin_flag_F77 \
  13820. export_dynamic_flag_spec_F77 \
  13821. thread_safe_flag_spec_F77 \
  13822. whole_archive_flag_spec_F77 \
  13823. enable_shared_with_static_runtimes_F77 \
  13824. old_archive_cmds_F77 \
  13825. old_archive_from_new_cmds_F77 \
  13826. predep_objects_F77 \
  13827. postdep_objects_F77 \
  13828. predeps_F77 \
  13829. postdeps_F77 \
  13830. compiler_lib_search_path_F77 \
  13831. archive_cmds_F77 \
  13832. archive_expsym_cmds_F77 \
  13833. postinstall_cmds_F77 \
  13834. postuninstall_cmds_F77 \
  13835. old_archive_from_expsyms_cmds_F77 \
  13836. allow_undefined_flag_F77 \
  13837. no_undefined_flag_F77 \
  13838. export_symbols_cmds_F77 \
  13839. hardcode_libdir_flag_spec_F77 \
  13840. hardcode_libdir_flag_spec_ld_F77 \
  13841. hardcode_libdir_separator_F77 \
  13842. hardcode_automatic_F77 \
  13843. module_cmds_F77 \
  13844. module_expsym_cmds_F77 \
  13845. lt_cv_prog_compiler_c_o_F77 \
  13846. exclude_expsyms_F77 \
  13847. include_expsyms_F77; do
  13848. case $var in
  13849. old_archive_cmds_F77 | \
  13850. old_archive_from_new_cmds_F77 | \
  13851. archive_cmds_F77 | \
  13852. archive_expsym_cmds_F77 | \
  13853. module_cmds_F77 | \
  13854. module_expsym_cmds_F77 | \
  13855. old_archive_from_expsyms_cmds_F77 | \
  13856. export_symbols_cmds_F77 | \
  13857. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13858. postinstall_cmds | postuninstall_cmds | \
  13859. old_postinstall_cmds | old_postuninstall_cmds | \
  13860. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13861. # Double-quote double-evaled strings.
  13862. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13863. ;;
  13864. *)
  13865. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13866. ;;
  13867. esac
  13868. done
  13869. case $lt_echo in
  13870. *'\$0 --fallback-echo"')
  13871. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13872. ;;
  13873. esac
  13874. cfgfile="$ofile"
  13875. cat <<__EOF__ >> "$cfgfile"
  13876. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13877. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13878. # Shell to use when invoking shell scripts.
  13879. SHELL=$lt_SHELL
  13880. # Whether or not to build shared libraries.
  13881. build_libtool_libs=$enable_shared
  13882. # Whether or not to build static libraries.
  13883. build_old_libs=$enable_static
  13884. # Whether or not to add -lc for building shared libraries.
  13885. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13886. # Whether or not to disallow shared libs when runtime libs are static
  13887. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13888. # Whether or not to optimize for fast installation.
  13889. fast_install=$enable_fast_install
  13890. # The host system.
  13891. host_alias=$host_alias
  13892. host=$host
  13893. host_os=$host_os
  13894. # The build system.
  13895. build_alias=$build_alias
  13896. build=$build
  13897. build_os=$build_os
  13898. # An echo program that does not interpret backslashes.
  13899. echo=$lt_echo
  13900. # The archiver.
  13901. AR=$lt_AR
  13902. AR_FLAGS=$lt_AR_FLAGS
  13903. # A C compiler.
  13904. LTCC=$lt_LTCC
  13905. # LTCC compiler flags.
  13906. LTCFLAGS=$lt_LTCFLAGS
  13907. # A language-specific compiler.
  13908. CC=$lt_compiler_F77
  13909. # Is the compiler the GNU C compiler?
  13910. with_gcc=$GCC_F77
  13911. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  13912. gcc_ver=\`gcc -dumpversion\`
  13913. # An ERE matcher.
  13914. EGREP=$lt_EGREP
  13915. # The linker used to build libraries.
  13916. LD=$lt_LD_F77
  13917. # Whether we need hard or soft links.
  13918. LN_S=$lt_LN_S
  13919. # A BSD-compatible nm program.
  13920. NM=$lt_NM
  13921. # A symbol stripping program
  13922. STRIP=$lt_STRIP
  13923. # Used to examine libraries when file_magic_cmd begins "file"
  13924. MAGIC_CMD=$MAGIC_CMD
  13925. # Used on cygwin: DLL creation program.
  13926. DLLTOOL="$DLLTOOL"
  13927. # Used on cygwin: object dumper.
  13928. OBJDUMP="$OBJDUMP"
  13929. # Used on cygwin: assembler.
  13930. AS="$AS"
  13931. # The name of the directory that contains temporary libtool files.
  13932. objdir=$objdir
  13933. # How to create reloadable object files.
  13934. reload_flag=$lt_reload_flag
  13935. reload_cmds=$lt_reload_cmds
  13936. # How to pass a linker flag through the compiler.
  13937. wl=$lt_lt_prog_compiler_wl_F77
  13938. # Object file suffix (normally "o").
  13939. objext="$ac_objext"
  13940. # Old archive suffix (normally "a").
  13941. libext="$libext"
  13942. # Shared library suffix (normally ".so").
  13943. shrext_cmds='$shrext_cmds'
  13944. # Executable file suffix (normally "").
  13945. exeext="$exeext"
  13946. # Additional compiler flags for building library objects.
  13947. pic_flag=$lt_lt_prog_compiler_pic_F77
  13948. pic_mode=$pic_mode
  13949. # What is the maximum length of a command?
  13950. max_cmd_len=$lt_cv_sys_max_cmd_len
  13951. # Does compiler simultaneously support -c and -o options?
  13952. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13953. # Must we lock files when doing compilation?
  13954. need_locks=$lt_need_locks
  13955. # Do we need the lib prefix for modules?
  13956. need_lib_prefix=$need_lib_prefix
  13957. # Do we need a version for libraries?
  13958. need_version=$need_version
  13959. # Whether dlopen is supported.
  13960. dlopen_support=$enable_dlopen
  13961. # Whether dlopen of programs is supported.
  13962. dlopen_self=$enable_dlopen_self
  13963. # Whether dlopen of statically linked programs is supported.
  13964. dlopen_self_static=$enable_dlopen_self_static
  13965. # Compiler flag to prevent dynamic linking.
  13966. link_static_flag=$lt_lt_prog_compiler_static_F77
  13967. # Compiler flag to turn off builtin functions.
  13968. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13969. # Compiler flag to allow reflexive dlopens.
  13970. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13971. # Compiler flag to generate shared objects directly from archives.
  13972. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13973. # Compiler flag to generate thread-safe objects.
  13974. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13975. # Library versioning type.
  13976. version_type=$version_type
  13977. # Format of library name prefix.
  13978. libname_spec=$lt_libname_spec
  13979. # List of archive names. First name is the real one, the rest are links.
  13980. # The last name is the one that the linker finds with -lNAME.
  13981. library_names_spec=$lt_library_names_spec
  13982. # The coded name of the library, if different from the real name.
  13983. soname_spec=$lt_soname_spec
  13984. # Commands used to build and install an old-style archive.
  13985. RANLIB=$lt_RANLIB
  13986. old_archive_cmds=$lt_old_archive_cmds_F77
  13987. old_postinstall_cmds=$lt_old_postinstall_cmds
  13988. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13989. # Create an old-style archive from a shared archive.
  13990. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13991. # Create a temporary old-style archive to link instead of a shared archive.
  13992. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13993. # Commands used to build and install a shared archive.
  13994. archive_cmds=$lt_archive_cmds_F77
  13995. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13996. postinstall_cmds=$lt_postinstall_cmds
  13997. postuninstall_cmds=$lt_postuninstall_cmds
  13998. # Commands used to build a loadable module (assumed same as above if empty)
  13999. module_cmds=$lt_module_cmds_F77
  14000. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14001. # Commands to strip libraries.
  14002. old_striplib=$lt_old_striplib
  14003. striplib=$lt_striplib
  14004. # Dependencies to place before the objects being linked to create a
  14005. # shared library.
  14006. predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14007. # Dependencies to place after the objects being linked to create a
  14008. # shared library.
  14009. postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  14010. # Dependencies to place before the objects being linked to create a
  14011. # shared library.
  14012. predeps=$lt_predeps_F77
  14013. # Dependencies to place after the objects being linked to create a
  14014. # shared library.
  14015. postdeps=$lt_postdeps_F77
  14016. # The library search path used internally by the compiler when linking
  14017. # a shared library.
  14018. 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"\`
  14019. # Method to check whether dependent libraries are shared objects.
  14020. deplibs_check_method=$lt_deplibs_check_method
  14021. # Command to use when deplibs_check_method == file_magic.
  14022. file_magic_cmd=$lt_file_magic_cmd
  14023. # Flag that allows shared libraries with undefined symbols to be built.
  14024. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14025. # Flag that forces no undefined symbols.
  14026. no_undefined_flag=$lt_no_undefined_flag_F77
  14027. # Commands used to finish a libtool library installation in a directory.
  14028. finish_cmds=$lt_finish_cmds
  14029. # Same as above, but a single script fragment to be evaled but not shown.
  14030. finish_eval=$lt_finish_eval
  14031. # Take the output of nm and produce a listing of raw symbols and C names.
  14032. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14033. # Transform the output of nm in a proper C declaration
  14034. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14035. # Transform the output of nm in a C name address pair
  14036. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14037. # This is the shared library runtime path variable.
  14038. runpath_var=$runpath_var
  14039. # This is the shared library path variable.
  14040. shlibpath_var=$shlibpath_var
  14041. # Is shlibpath searched before the hard-coded library search path?
  14042. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14043. # How to hardcode a shared library path into an executable.
  14044. hardcode_action=$hardcode_action_F77
  14045. # Whether we should hardcode library paths into libraries.
  14046. hardcode_into_libs=$hardcode_into_libs
  14047. # Flag to hardcode \$libdir into a binary during linking.
  14048. # This must work even if \$libdir does not exist.
  14049. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14050. # If ld is used when linking, flag to hardcode \$libdir into
  14051. # a binary during linking. This must work even if \$libdir does
  14052. # not exist.
  14053. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14054. # Whether we need a single -rpath flag with a separated argument.
  14055. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14056. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14057. # resulting binary.
  14058. hardcode_direct=$hardcode_direct_F77
  14059. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14060. # resulting binary.
  14061. hardcode_minus_L=$hardcode_minus_L_F77
  14062. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14063. # the resulting binary.
  14064. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14065. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14066. # and all subsequent libraries and executables linked against it.
  14067. hardcode_automatic=$hardcode_automatic_F77
  14068. # Variables whose values should be saved in libtool wrapper scripts and
  14069. # restored at relink time.
  14070. variables_saved_for_relink="$variables_saved_for_relink"
  14071. # Whether libtool must link a program against all its dependency libraries.
  14072. link_all_deplibs=$link_all_deplibs_F77
  14073. # Compile-time system search path for libraries
  14074. 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"\`
  14075. # Run-time system search path for libraries
  14076. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14077. # Fix the shell variable \$srcfile for the compiler.
  14078. fix_srcfile_path="$fix_srcfile_path_F77"
  14079. # Set to yes if exported symbols are required.
  14080. always_export_symbols=$always_export_symbols_F77
  14081. # The commands to list exported symbols.
  14082. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14083. # The commands to extract the exported symbol list from a shared archive.
  14084. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14085. # Symbols that should not be listed in the preloaded symbols.
  14086. exclude_expsyms=$lt_exclude_expsyms_F77
  14087. # Symbols that must always be exported.
  14088. include_expsyms=$lt_include_expsyms_F77
  14089. # ### END LIBTOOL TAG CONFIG: $tagname
  14090. __EOF__
  14091. else
  14092. # If there is no Makefile yet, we rely on a make rule to execute
  14093. # `config.status --recheck' to rerun these tests and create the
  14094. # libtool script then.
  14095. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14096. if test -f "$ltmain_in"; then
  14097. test -f Makefile && make "$ltmain"
  14098. fi
  14099. fi
  14100. ac_ext=c
  14101. ac_cpp='$CPP $CPPFLAGS'
  14102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14105. CC="$lt_save_CC"
  14106. else
  14107. tagname=""
  14108. fi
  14109. ;;
  14110. GCJ)
  14111. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14112. # Source file extension for Java test sources.
  14113. ac_ext=java
  14114. # Object file extension for compiled Java test sources.
  14115. objext=o
  14116. objext_GCJ=$objext
  14117. # Code to be used in simple compile tests
  14118. lt_simple_compile_test_code="class foo {}\n"
  14119. # Code to be used in simple link tests
  14120. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14121. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14122. # If no C compiler was specified, use CC.
  14123. LTCC=${LTCC-"$CC"}
  14124. # If no C compiler flags were specified, use CFLAGS.
  14125. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14126. # Allow CC to be a program name with arguments.
  14127. compiler=$CC
  14128. # save warnings/boilerplate of simple test code
  14129. ac_outfile=conftest.$ac_objext
  14130. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14131. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14132. _lt_compiler_boilerplate=`cat conftest.err`
  14133. $rm conftest*
  14134. ac_outfile=conftest.$ac_objext
  14135. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14136. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14137. _lt_linker_boilerplate=`cat conftest.err`
  14138. $rm conftest*
  14139. # Allow CC to be a program name with arguments.
  14140. lt_save_CC="$CC"
  14141. CC=${GCJ-"gcj"}
  14142. compiler=$CC
  14143. compiler_GCJ=$CC
  14144. for cc_temp in $compiler""; do
  14145. case $cc_temp in
  14146. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14147. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14148. \-*) ;;
  14149. *) break;;
  14150. esac
  14151. done
  14152. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14153. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14154. archive_cmds_need_lc_GCJ=no
  14155. old_archive_cmds_GCJ=$old_archive_cmds
  14156. lt_prog_compiler_no_builtin_flag_GCJ=
  14157. if test "$GCC" = yes; then
  14158. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14159. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14160. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14161. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14162. echo $ECHO_N "(cached) $ECHO_C" >&6
  14163. else
  14164. lt_cv_prog_compiler_rtti_exceptions=no
  14165. ac_outfile=conftest.$ac_objext
  14166. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14167. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14168. # Insert the option either (1) after the last *FLAGS variable, or
  14169. # (2) before a word containing "conftest.", or (3) at the end.
  14170. # Note that $ac_compile itself does not contain backslashes and begins
  14171. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14172. # The option is referenced via a variable to avoid confusing sed.
  14173. lt_compile=`echo "$ac_compile" | $SED \
  14174. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14175. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14176. -e 's:$: $lt_compiler_flag:'`
  14177. (eval echo "\"\$as_me:15798: $lt_compile\"" >&5)
  14178. (eval "$lt_compile" 2>conftest.err)
  14179. ac_status=$?
  14180. cat conftest.err >&5
  14181. echo "$as_me:15802: \$? = $ac_status" >&5
  14182. if (exit $ac_status) && test -s "$ac_outfile"; then
  14183. # The compiler can only warn and ignore the option if not recognized
  14184. # So say no if there are warnings other than the usual output.
  14185. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14186. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14187. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14188. lt_cv_prog_compiler_rtti_exceptions=yes
  14189. fi
  14190. fi
  14191. $rm conftest*
  14192. fi
  14193. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14194. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14195. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14196. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14197. else
  14198. :
  14199. fi
  14200. fi
  14201. lt_prog_compiler_wl_GCJ=
  14202. lt_prog_compiler_pic_GCJ=
  14203. lt_prog_compiler_static_GCJ=
  14204. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14205. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14206. if test "$GCC" = yes; then
  14207. lt_prog_compiler_wl_GCJ='-Wl,'
  14208. lt_prog_compiler_static_GCJ='-static'
  14209. case $host_os in
  14210. aix*)
  14211. # All AIX code is PIC.
  14212. if test "$host_cpu" = ia64; then
  14213. # AIX 5 now supports IA64 processor
  14214. lt_prog_compiler_static_GCJ='-Bstatic'
  14215. fi
  14216. ;;
  14217. amigaos*)
  14218. # FIXME: we need at least 68020 code to build shared libraries, but
  14219. # adding the `-m68020' flag to GCC prevents building anything better,
  14220. # like `-m68040'.
  14221. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14222. ;;
  14223. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14224. # PIC is the default for these OSes.
  14225. ;;
  14226. mingw* | pw32* | os2*)
  14227. # This hack is so that the source file can tell whether it is being
  14228. # built for inclusion in a dll (and should export symbols for example).
  14229. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14230. ;;
  14231. darwin* | rhapsody*)
  14232. # PIC is the default on this platform
  14233. # Common symbols not allowed in MH_DYLIB files
  14234. lt_prog_compiler_pic_GCJ='-fno-common'
  14235. ;;
  14236. interix3*)
  14237. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14238. # Instead, we relocate shared libraries at runtime.
  14239. ;;
  14240. msdosdjgpp*)
  14241. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14242. # on systems that don't support them.
  14243. lt_prog_compiler_can_build_shared_GCJ=no
  14244. enable_shared=no
  14245. ;;
  14246. sysv4*MP*)
  14247. if test -d /usr/nec; then
  14248. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14249. fi
  14250. ;;
  14251. hpux*)
  14252. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14253. # not for PA HP-UX.
  14254. case $host_cpu in
  14255. hppa*64*|ia64*)
  14256. # +Z the default
  14257. ;;
  14258. *)
  14259. lt_prog_compiler_pic_GCJ='-fPIC'
  14260. ;;
  14261. esac
  14262. ;;
  14263. *)
  14264. lt_prog_compiler_pic_GCJ='-fPIC'
  14265. ;;
  14266. esac
  14267. else
  14268. # PORTME Check for flag to pass linker flags through the system compiler.
  14269. case $host_os in
  14270. aix*)
  14271. lt_prog_compiler_wl_GCJ='-Wl,'
  14272. if test "$host_cpu" = ia64; then
  14273. # AIX 5 now supports IA64 processor
  14274. lt_prog_compiler_static_GCJ='-Bstatic'
  14275. else
  14276. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14277. fi
  14278. ;;
  14279. darwin*)
  14280. # PIC is the default on this platform
  14281. # Common symbols not allowed in MH_DYLIB files
  14282. case $cc_basename in
  14283. xlc*)
  14284. lt_prog_compiler_pic_GCJ='-qnocommon'
  14285. lt_prog_compiler_wl_GCJ='-Wl,'
  14286. ;;
  14287. esac
  14288. ;;
  14289. mingw* | pw32* | os2*)
  14290. # This hack is so that the source file can tell whether it is being
  14291. # built for inclusion in a dll (and should export symbols for example).
  14292. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14293. ;;
  14294. hpux9* | hpux10* | hpux11*)
  14295. lt_prog_compiler_wl_GCJ='-Wl,'
  14296. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14297. # not for PA HP-UX.
  14298. case $host_cpu in
  14299. hppa*64*|ia64*)
  14300. # +Z the default
  14301. ;;
  14302. *)
  14303. lt_prog_compiler_pic_GCJ='+Z'
  14304. ;;
  14305. esac
  14306. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14307. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14308. ;;
  14309. irix5* | irix6* | nonstopux*)
  14310. lt_prog_compiler_wl_GCJ='-Wl,'
  14311. # PIC (with -KPIC) is the default.
  14312. lt_prog_compiler_static_GCJ='-non_shared'
  14313. ;;
  14314. newsos6)
  14315. lt_prog_compiler_pic_GCJ='-KPIC'
  14316. lt_prog_compiler_static_GCJ='-Bstatic'
  14317. ;;
  14318. linux*)
  14319. case $cc_basename in
  14320. icc* | ecc*)
  14321. lt_prog_compiler_wl_GCJ='-Wl,'
  14322. lt_prog_compiler_pic_GCJ='-KPIC'
  14323. lt_prog_compiler_static_GCJ='-static'
  14324. ;;
  14325. pgcc* | pgf77* | pgf90* | pgf95*)
  14326. # Portland Group compilers (*not* the Pentium gcc compiler,
  14327. # which looks to be a dead project)
  14328. lt_prog_compiler_wl_GCJ='-Wl,'
  14329. lt_prog_compiler_pic_GCJ='-fpic'
  14330. lt_prog_compiler_static_GCJ='-Bstatic'
  14331. ;;
  14332. ccc*)
  14333. lt_prog_compiler_wl_GCJ='-Wl,'
  14334. # All Alpha code is PIC.
  14335. lt_prog_compiler_static_GCJ='-non_shared'
  14336. ;;
  14337. esac
  14338. ;;
  14339. osf3* | osf4* | osf5*)
  14340. lt_prog_compiler_wl_GCJ='-Wl,'
  14341. # All OSF/1 code is PIC.
  14342. lt_prog_compiler_static_GCJ='-non_shared'
  14343. ;;
  14344. solaris*)
  14345. lt_prog_compiler_pic_GCJ='-KPIC'
  14346. lt_prog_compiler_static_GCJ='-Bstatic'
  14347. case $cc_basename in
  14348. f77* | f90* | f95*)
  14349. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14350. *)
  14351. lt_prog_compiler_wl_GCJ='-Wl,';;
  14352. esac
  14353. ;;
  14354. sunos4*)
  14355. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14356. lt_prog_compiler_pic_GCJ='-PIC'
  14357. lt_prog_compiler_static_GCJ='-Bstatic'
  14358. ;;
  14359. sysv4 | sysv4.2uw2* | sysv4.3*)
  14360. lt_prog_compiler_wl_GCJ='-Wl,'
  14361. lt_prog_compiler_pic_GCJ='-KPIC'
  14362. lt_prog_compiler_static_GCJ='-Bstatic'
  14363. ;;
  14364. sysv4*MP*)
  14365. if test -d /usr/nec ;then
  14366. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14367. lt_prog_compiler_static_GCJ='-Bstatic'
  14368. fi
  14369. ;;
  14370. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14371. lt_prog_compiler_wl_GCJ='-Wl,'
  14372. lt_prog_compiler_pic_GCJ='-KPIC'
  14373. lt_prog_compiler_static_GCJ='-Bstatic'
  14374. ;;
  14375. unicos*)
  14376. lt_prog_compiler_wl_GCJ='-Wl,'
  14377. lt_prog_compiler_can_build_shared_GCJ=no
  14378. ;;
  14379. uts4*)
  14380. lt_prog_compiler_pic_GCJ='-pic'
  14381. lt_prog_compiler_static_GCJ='-Bstatic'
  14382. ;;
  14383. *)
  14384. lt_prog_compiler_can_build_shared_GCJ=no
  14385. ;;
  14386. esac
  14387. fi
  14388. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14389. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14390. #
  14391. # Check to make sure the PIC flag actually works.
  14392. #
  14393. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14394. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14395. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14396. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14397. echo $ECHO_N "(cached) $ECHO_C" >&6
  14398. else
  14399. lt_prog_compiler_pic_works_GCJ=no
  14400. ac_outfile=conftest.$ac_objext
  14401. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14402. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14403. # Insert the option either (1) after the last *FLAGS variable, or
  14404. # (2) before a word containing "conftest.", or (3) at the end.
  14405. # Note that $ac_compile itself does not contain backslashes and begins
  14406. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14407. # The option is referenced via a variable to avoid confusing sed.
  14408. lt_compile=`echo "$ac_compile" | $SED \
  14409. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14410. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14411. -e 's:$: $lt_compiler_flag:'`
  14412. (eval echo "\"\$as_me:16066: $lt_compile\"" >&5)
  14413. (eval "$lt_compile" 2>conftest.err)
  14414. ac_status=$?
  14415. cat conftest.err >&5
  14416. echo "$as_me:16070: \$? = $ac_status" >&5
  14417. if (exit $ac_status) && test -s "$ac_outfile"; then
  14418. # The compiler can only warn and ignore the option if not recognized
  14419. # So say no if there are warnings other than the usual output.
  14420. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14421. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14422. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14423. lt_prog_compiler_pic_works_GCJ=yes
  14424. fi
  14425. fi
  14426. $rm conftest*
  14427. fi
  14428. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14429. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14430. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14431. case $lt_prog_compiler_pic_GCJ in
  14432. "" | " "*) ;;
  14433. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14434. esac
  14435. else
  14436. lt_prog_compiler_pic_GCJ=
  14437. lt_prog_compiler_can_build_shared_GCJ=no
  14438. fi
  14439. fi
  14440. case $host_os in
  14441. # For platforms which do not support PIC, -DPIC is meaningless:
  14442. *djgpp*)
  14443. lt_prog_compiler_pic_GCJ=
  14444. ;;
  14445. *)
  14446. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14447. ;;
  14448. esac
  14449. #
  14450. # Check to make sure the static flag actually works.
  14451. #
  14452. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14453. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14454. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14455. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14456. echo $ECHO_N "(cached) $ECHO_C" >&6
  14457. else
  14458. lt_prog_compiler_static_works_GCJ=no
  14459. save_LDFLAGS="$LDFLAGS"
  14460. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14461. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14462. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14463. # The linker can only warn and ignore the option if not recognized
  14464. # So say no if there are warnings
  14465. if test -s conftest.err; then
  14466. # Append any errors to the config.log.
  14467. cat conftest.err 1>&5
  14468. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14469. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14470. if diff conftest.exp conftest.er2 >/dev/null; then
  14471. lt_prog_compiler_static_works_GCJ=yes
  14472. fi
  14473. else
  14474. lt_prog_compiler_static_works_GCJ=yes
  14475. fi
  14476. fi
  14477. $rm conftest*
  14478. LDFLAGS="$save_LDFLAGS"
  14479. fi
  14480. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14481. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14482. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14483. :
  14484. else
  14485. lt_prog_compiler_static_GCJ=
  14486. fi
  14487. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14488. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14489. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14490. echo $ECHO_N "(cached) $ECHO_C" >&6
  14491. else
  14492. lt_cv_prog_compiler_c_o_GCJ=no
  14493. $rm -r conftest 2>/dev/null
  14494. mkdir conftest
  14495. cd conftest
  14496. mkdir out
  14497. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14498. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14499. # Insert the option either (1) after the last *FLAGS variable, or
  14500. # (2) before a word containing "conftest.", or (3) at the end.
  14501. # Note that $ac_compile itself does not contain backslashes and begins
  14502. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14503. lt_compile=`echo "$ac_compile" | $SED \
  14504. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14505. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14506. -e 's:$: $lt_compiler_flag:'`
  14507. (eval echo "\"\$as_me:16170: $lt_compile\"" >&5)
  14508. (eval "$lt_compile" 2>out/conftest.err)
  14509. ac_status=$?
  14510. cat out/conftest.err >&5
  14511. echo "$as_me:16174: \$? = $ac_status" >&5
  14512. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14513. then
  14514. # The compiler can only warn and ignore the option if not recognized
  14515. # So say no if there are warnings
  14516. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14517. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14518. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14519. lt_cv_prog_compiler_c_o_GCJ=yes
  14520. fi
  14521. fi
  14522. chmod u+w . 2>&5
  14523. $rm conftest*
  14524. # SGI C++ compiler will create directory out/ii_files/ for
  14525. # template instantiation
  14526. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14527. $rm out/* && rmdir out
  14528. cd ..
  14529. rmdir conftest
  14530. $rm conftest*
  14531. fi
  14532. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14533. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14534. hard_links="nottested"
  14535. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14536. # do not overwrite the value of need_locks provided by the user
  14537. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14538. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14539. hard_links=yes
  14540. $rm conftest*
  14541. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14542. touch conftest.a
  14543. ln conftest.a conftest.b 2>&5 || hard_links=no
  14544. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14545. echo "$as_me:$LINENO: result: $hard_links" >&5
  14546. echo "${ECHO_T}$hard_links" >&6
  14547. if test "$hard_links" = no; then
  14548. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14549. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14550. need_locks=warn
  14551. fi
  14552. else
  14553. need_locks=no
  14554. fi
  14555. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14556. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14557. runpath_var=
  14558. allow_undefined_flag_GCJ=
  14559. enable_shared_with_static_runtimes_GCJ=no
  14560. archive_cmds_GCJ=
  14561. archive_expsym_cmds_GCJ=
  14562. old_archive_From_new_cmds_GCJ=
  14563. old_archive_from_expsyms_cmds_GCJ=
  14564. export_dynamic_flag_spec_GCJ=
  14565. whole_archive_flag_spec_GCJ=
  14566. thread_safe_flag_spec_GCJ=
  14567. hardcode_libdir_flag_spec_GCJ=
  14568. hardcode_libdir_flag_spec_ld_GCJ=
  14569. hardcode_libdir_separator_GCJ=
  14570. hardcode_direct_GCJ=no
  14571. hardcode_minus_L_GCJ=no
  14572. hardcode_shlibpath_var_GCJ=unsupported
  14573. link_all_deplibs_GCJ=unknown
  14574. hardcode_automatic_GCJ=no
  14575. module_cmds_GCJ=
  14576. module_expsym_cmds_GCJ=
  14577. always_export_symbols_GCJ=no
  14578. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14579. # include_expsyms should be a list of space-separated symbols to be *always*
  14580. # included in the symbol list
  14581. include_expsyms_GCJ=
  14582. # exclude_expsyms can be an extended regexp of symbols to exclude
  14583. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14584. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14585. # as well as any symbol that contains `d'.
  14586. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14587. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14588. # platforms (ab)use it in PIC code, but their linkers get confused if
  14589. # the symbol is explicitly referenced. Since portable code cannot
  14590. # rely on this symbol name, it's probably fine to never include it in
  14591. # preloaded symbol tables.
  14592. extract_expsyms_cmds=
  14593. # Just being paranoid about ensuring that cc_basename is set.
  14594. for cc_temp in $compiler""; do
  14595. case $cc_temp in
  14596. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14597. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14598. \-*) ;;
  14599. *) break;;
  14600. esac
  14601. done
  14602. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14603. case $host_os in
  14604. cygwin* | mingw* | pw32*)
  14605. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14606. # When not using gcc, we currently assume that we are using
  14607. # Microsoft Visual C++.
  14608. if test "$GCC" != yes; then
  14609. with_gnu_ld=no
  14610. fi
  14611. ;;
  14612. interix*)
  14613. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14614. with_gnu_ld=yes
  14615. ;;
  14616. openbsd*)
  14617. with_gnu_ld=no
  14618. ;;
  14619. esac
  14620. ld_shlibs_GCJ=yes
  14621. if test "$with_gnu_ld" = yes; then
  14622. # If archive_cmds runs LD, not CC, wlarc should be empty
  14623. wlarc='${wl}'
  14624. # Set some defaults for GNU ld with shared library support. These
  14625. # are reset later if shared libraries are not supported. Putting them
  14626. # here allows them to be overridden if necessary.
  14627. runpath_var=LD_RUN_PATH
  14628. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14629. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14630. # ancient GNU ld didn't support --whole-archive et. al.
  14631. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14632. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14633. else
  14634. whole_archive_flag_spec_GCJ=
  14635. fi
  14636. supports_anon_versioning=no
  14637. case `$LD -v 2>/dev/null` in
  14638. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14639. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14640. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14641. *\ 2.11.*) ;; # other 2.11 versions
  14642. *) supports_anon_versioning=yes ;;
  14643. esac
  14644. # See if GNU ld supports shared libraries.
  14645. case $host_os in
  14646. aix3* | aix4* | aix5*)
  14647. # On AIX/PPC, the GNU linker is very broken
  14648. if test "$host_cpu" != ia64; then
  14649. ld_shlibs_GCJ=no
  14650. cat <<EOF 1>&2
  14651. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14652. *** to be unable to reliably create shared libraries on AIX.
  14653. *** Therefore, libtool is disabling shared libraries support. If you
  14654. *** really care for shared libraries, you may want to modify your PATH
  14655. *** so that a non-GNU linker is found, and then restart.
  14656. EOF
  14657. fi
  14658. ;;
  14659. amigaos*)
  14660. 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)'
  14661. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14662. hardcode_minus_L_GCJ=yes
  14663. # Samuel A. Falvo II <[email protected]> reports
  14664. # that the semantics of dynamic libraries on AmigaOS, at least up
  14665. # to version 4, is to share data among multiple programs linked
  14666. # with the same dynamic library. Since this doesn't match the
  14667. # behavior of shared libraries on other platforms, we can't use
  14668. # them.
  14669. ld_shlibs_GCJ=no
  14670. ;;
  14671. beos*)
  14672. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14673. allow_undefined_flag_GCJ=unsupported
  14674. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14675. # support --undefined. This deserves some investigation. FIXME
  14676. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14677. else
  14678. ld_shlibs_GCJ=no
  14679. fi
  14680. ;;
  14681. cygwin* | mingw* | pw32*)
  14682. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14683. # as there is no search path for DLLs.
  14684. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14685. allow_undefined_flag_GCJ=unsupported
  14686. always_export_symbols_GCJ=no
  14687. enable_shared_with_static_runtimes_GCJ=yes
  14688. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14689. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14690. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14691. # If the export-symbols file already is a .def file (1st line
  14692. # is EXPORTS), use it as is; otherwise, prepend...
  14693. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14694. cp $export_symbols $output_objdir/$soname.def;
  14695. else
  14696. echo EXPORTS > $output_objdir/$soname.def;
  14697. cat $export_symbols >> $output_objdir/$soname.def;
  14698. fi~
  14699. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14700. else
  14701. ld_shlibs_GCJ=no
  14702. fi
  14703. ;;
  14704. interix3*)
  14705. hardcode_direct_GCJ=no
  14706. hardcode_shlibpath_var_GCJ=no
  14707. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14708. export_dynamic_flag_spec_GCJ='${wl}-E'
  14709. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14710. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14711. # default) and relocated if they conflict, which is a slow very memory
  14712. # consuming and fragmenting process. To avoid this, we pick a random,
  14713. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14714. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14715. 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'
  14716. 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'
  14717. ;;
  14718. linux*)
  14719. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14720. tmp_addflag=
  14721. case $cc_basename,$host_cpu in
  14722. pgcc*) # Portland Group C compiler
  14723. 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'
  14724. tmp_addflag=' $pic_flag'
  14725. ;;
  14726. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14727. 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'
  14728. tmp_addflag=' $pic_flag -Mnomain' ;;
  14729. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14730. tmp_addflag=' -i_dynamic' ;;
  14731. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14732. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14733. ifc* | ifort*) # Intel Fortran compiler
  14734. tmp_addflag=' -nofor_main' ;;
  14735. esac
  14736. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14737. if test $supports_anon_versioning = yes; then
  14738. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14739. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14740. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14741. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14742. fi
  14743. else
  14744. ld_shlibs_GCJ=no
  14745. fi
  14746. ;;
  14747. netbsd*)
  14748. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14749. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14750. wlarc=
  14751. else
  14752. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14753. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14754. fi
  14755. ;;
  14756. solaris*)
  14757. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14758. ld_shlibs_GCJ=no
  14759. cat <<EOF 1>&2
  14760. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14761. *** create shared libraries on Solaris systems. Therefore, libtool
  14762. *** is disabling shared libraries support. We urge you to upgrade GNU
  14763. *** binutils to release 2.9.1 or newer. Another option is to modify
  14764. *** your PATH or compiler configuration so that the native linker is
  14765. *** used, and then restart.
  14766. EOF
  14767. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14768. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14769. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14770. else
  14771. ld_shlibs_GCJ=no
  14772. fi
  14773. ;;
  14774. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14775. case `$LD -v 2>&1` in
  14776. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14777. ld_shlibs_GCJ=no
  14778. cat <<_LT_EOF 1>&2
  14779. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14780. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14781. *** is disabling shared libraries support. We urge you to upgrade GNU
  14782. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14783. *** your PATH or compiler configuration so that the native linker is
  14784. *** used, and then restart.
  14785. _LT_EOF
  14786. ;;
  14787. *)
  14788. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14789. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14790. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14791. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14792. else
  14793. ld_shlibs_GCJ=no
  14794. fi
  14795. ;;
  14796. esac
  14797. ;;
  14798. sunos4*)
  14799. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14800. wlarc=
  14801. hardcode_direct_GCJ=yes
  14802. hardcode_shlibpath_var_GCJ=no
  14803. ;;
  14804. *)
  14805. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14806. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14807. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14808. else
  14809. ld_shlibs_GCJ=no
  14810. fi
  14811. ;;
  14812. esac
  14813. if test "$ld_shlibs_GCJ" = no; then
  14814. runpath_var=
  14815. hardcode_libdir_flag_spec_GCJ=
  14816. export_dynamic_flag_spec_GCJ=
  14817. whole_archive_flag_spec_GCJ=
  14818. fi
  14819. else
  14820. # PORTME fill in a description of your system's linker (not GNU ld)
  14821. case $host_os in
  14822. aix3*)
  14823. allow_undefined_flag_GCJ=unsupported
  14824. always_export_symbols_GCJ=yes
  14825. 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'
  14826. # Note: this linker hardcodes the directories in LIBPATH if there
  14827. # are no directories specified by -L.
  14828. hardcode_minus_L_GCJ=yes
  14829. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14830. # Neither direct hardcoding nor static linking is supported with a
  14831. # broken collect2.
  14832. hardcode_direct_GCJ=unsupported
  14833. fi
  14834. ;;
  14835. aix4* | aix5*)
  14836. if test "$host_cpu" = ia64; then
  14837. # On IA64, the linker does run time linking by default, so we don't
  14838. # have to do anything special.
  14839. aix_use_runtimelinking=no
  14840. exp_sym_flag='-Bexport'
  14841. no_entry_flag=""
  14842. else
  14843. # If we're using GNU nm, then we don't want the "-C" option.
  14844. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14845. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14846. 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'
  14847. else
  14848. 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'
  14849. fi
  14850. aix_use_runtimelinking=no
  14851. # Test if we are trying to use run time linking or normal
  14852. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14853. # need to do runtime linking.
  14854. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14855. for ld_flag in $LDFLAGS; do
  14856. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14857. aix_use_runtimelinking=yes
  14858. break
  14859. fi
  14860. done
  14861. ;;
  14862. esac
  14863. exp_sym_flag='-bexport'
  14864. no_entry_flag='-bnoentry'
  14865. fi
  14866. # When large executables or shared objects are built, AIX ld can
  14867. # have problems creating the table of contents. If linking a library
  14868. # or program results in "error TOC overflow" add -mminimal-toc to
  14869. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14870. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14871. archive_cmds_GCJ=''
  14872. hardcode_direct_GCJ=yes
  14873. hardcode_libdir_separator_GCJ=':'
  14874. link_all_deplibs_GCJ=yes
  14875. if test "$GCC" = yes; then
  14876. case $host_os in aix4.[012]|aix4.[012].*)
  14877. # We only want to do this on AIX 4.2 and lower, the check
  14878. # below for broken collect2 doesn't work under 4.3+
  14879. collect2name=`${CC} -print-prog-name=collect2`
  14880. if test -f "$collect2name" && \
  14881. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14882. then
  14883. # We have reworked collect2
  14884. hardcode_direct_GCJ=yes
  14885. else
  14886. # We have old collect2
  14887. hardcode_direct_GCJ=unsupported
  14888. # It fails to find uninstalled libraries when the uninstalled
  14889. # path is not listed in the libpath. Setting hardcode_minus_L
  14890. # to unsupported forces relinking
  14891. hardcode_minus_L_GCJ=yes
  14892. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14893. hardcode_libdir_separator_GCJ=
  14894. fi
  14895. ;;
  14896. esac
  14897. shared_flag='-shared'
  14898. if test "$aix_use_runtimelinking" = yes; then
  14899. shared_flag="$shared_flag "'${wl}-G'
  14900. fi
  14901. else
  14902. # not using gcc
  14903. if test "$host_cpu" = ia64; then
  14904. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14905. # chokes on -Wl,-G. The following line is correct:
  14906. shared_flag='-G'
  14907. else
  14908. if test "$aix_use_runtimelinking" = yes; then
  14909. shared_flag='${wl}-G'
  14910. else
  14911. shared_flag='${wl}-bM:SRE'
  14912. fi
  14913. fi
  14914. fi
  14915. # It seems that -bexpall does not export symbols beginning with
  14916. # underscore (_), so it is better to generate a list of symbols to export.
  14917. always_export_symbols_GCJ=yes
  14918. if test "$aix_use_runtimelinking" = yes; then
  14919. # Warning - without using the other runtime loading flags (-brtl),
  14920. # -berok will link without error, but may produce a broken library.
  14921. allow_undefined_flag_GCJ='-berok'
  14922. # Determine the default libpath from the value encoded in an empty executable.
  14923. cat >conftest.$ac_ext <<_ACEOF
  14924. /* confdefs.h. */
  14925. _ACEOF
  14926. cat confdefs.h >>conftest.$ac_ext
  14927. cat >>conftest.$ac_ext <<_ACEOF
  14928. /* end confdefs.h. */
  14929. int
  14930. main ()
  14931. {
  14932. ;
  14933. return 0;
  14934. }
  14935. _ACEOF
  14936. rm -f conftest.$ac_objext conftest$ac_exeext
  14937. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14938. (eval $ac_link) 2>conftest.er1
  14939. ac_status=$?
  14940. grep -v '^ *+' conftest.er1 >conftest.err
  14941. rm -f conftest.er1
  14942. cat conftest.err >&5
  14943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14944. (exit $ac_status); } &&
  14945. { ac_try='test -z "$ac_c_werror_flag"
  14946. || test ! -s conftest.err'
  14947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14948. (eval $ac_try) 2>&5
  14949. ac_status=$?
  14950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14951. (exit $ac_status); }; } &&
  14952. { ac_try='test -s conftest$ac_exeext'
  14953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14954. (eval $ac_try) 2>&5
  14955. ac_status=$?
  14956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14957. (exit $ac_status); }; }; then
  14958. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14959. }'`
  14960. # Check for a 64-bit object if we didn't find anything.
  14961. 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; }
  14962. }'`; fi
  14963. else
  14964. echo "$as_me: failed program was:" >&5
  14965. sed 's/^/| /' conftest.$ac_ext >&5
  14966. fi
  14967. rm -f conftest.err conftest.$ac_objext \
  14968. conftest$ac_exeext conftest.$ac_ext
  14969. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14970. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14971. 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"
  14972. else
  14973. if test "$host_cpu" = ia64; then
  14974. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14975. allow_undefined_flag_GCJ="-z nodefs"
  14976. 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"
  14977. else
  14978. # Determine the default libpath from the value encoded in an empty executable.
  14979. cat >conftest.$ac_ext <<_ACEOF
  14980. /* confdefs.h. */
  14981. _ACEOF
  14982. cat confdefs.h >>conftest.$ac_ext
  14983. cat >>conftest.$ac_ext <<_ACEOF
  14984. /* end confdefs.h. */
  14985. int
  14986. main ()
  14987. {
  14988. ;
  14989. return 0;
  14990. }
  14991. _ACEOF
  14992. rm -f conftest.$ac_objext conftest$ac_exeext
  14993. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14994. (eval $ac_link) 2>conftest.er1
  14995. ac_status=$?
  14996. grep -v '^ *+' conftest.er1 >conftest.err
  14997. rm -f conftest.er1
  14998. cat conftest.err >&5
  14999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15000. (exit $ac_status); } &&
  15001. { ac_try='test -z "$ac_c_werror_flag"
  15002. || test ! -s conftest.err'
  15003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15004. (eval $ac_try) 2>&5
  15005. ac_status=$?
  15006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15007. (exit $ac_status); }; } &&
  15008. { ac_try='test -s conftest$ac_exeext'
  15009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  15010. (eval $ac_try) 2>&5
  15011. ac_status=$?
  15012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15013. (exit $ac_status); }; }; then
  15014. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  15015. }'`
  15016. # Check for a 64-bit object if we didn't find anything.
  15017. 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; }
  15018. }'`; fi
  15019. else
  15020. echo "$as_me: failed program was:" >&5
  15021. sed 's/^/| /' conftest.$ac_ext >&5
  15022. fi
  15023. rm -f conftest.err conftest.$ac_objext \
  15024. conftest$ac_exeext conftest.$ac_ext
  15025. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15026. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15027. # Warning - without using the other run time loading flags,
  15028. # -berok will link without error, but may produce a broken library.
  15029. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15030. allow_undefined_flag_GCJ=' ${wl}-berok'
  15031. # Exported symbols can be pulled into shared objects from archives
  15032. whole_archive_flag_spec_GCJ='$convenience'
  15033. archive_cmds_need_lc_GCJ=yes
  15034. # This is similar to how AIX traditionally builds its shared libraries.
  15035. 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'
  15036. fi
  15037. fi
  15038. ;;
  15039. amigaos*)
  15040. 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)'
  15041. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15042. hardcode_minus_L_GCJ=yes
  15043. # see comment about different semantics on the GNU ld section
  15044. ld_shlibs_GCJ=no
  15045. ;;
  15046. bsdi[45]*)
  15047. export_dynamic_flag_spec_GCJ=-rdynamic
  15048. ;;
  15049. cygwin* | mingw* | pw32*)
  15050. # When not using gcc, we currently assume that we are using
  15051. # Microsoft Visual C++.
  15052. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15053. # no search path for DLLs.
  15054. hardcode_libdir_flag_spec_GCJ=' '
  15055. allow_undefined_flag_GCJ=unsupported
  15056. # Tell ltmain to make .lib files, not .a files.
  15057. libext=lib
  15058. # Tell ltmain to make .dll files, not .so files.
  15059. shrext_cmds=".dll"
  15060. # FIXME: Setting linknames here is a bad hack.
  15061. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15062. # The linker will automatically build a .lib file if we build a DLL.
  15063. old_archive_From_new_cmds_GCJ='true'
  15064. # FIXME: Should let the user specify the lib program.
  15065. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15066. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15067. enable_shared_with_static_runtimes_GCJ=yes
  15068. ;;
  15069. darwin* | rhapsody*)
  15070. case $host_os in
  15071. rhapsody* | darwin1.[012])
  15072. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15073. ;;
  15074. *) # Darwin 1.3 on
  15075. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15076. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15077. else
  15078. case ${MACOSX_DEPLOYMENT_TARGET} in
  15079. 10.[012])
  15080. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15081. ;;
  15082. 10.*)
  15083. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15084. ;;
  15085. esac
  15086. fi
  15087. ;;
  15088. esac
  15089. archive_cmds_need_lc_GCJ=no
  15090. hardcode_direct_GCJ=no
  15091. hardcode_automatic_GCJ=yes
  15092. hardcode_shlibpath_var_GCJ=unsupported
  15093. whole_archive_flag_spec_GCJ=''
  15094. link_all_deplibs_GCJ=yes
  15095. if test "$GCC" = yes ; then
  15096. output_verbose_link_cmd='echo'
  15097. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15098. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15099. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15100. 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}'
  15101. 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}'
  15102. else
  15103. case $cc_basename in
  15104. xlc*)
  15105. output_verbose_link_cmd='echo'
  15106. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15107. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15108. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15109. 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}'
  15110. 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}'
  15111. ;;
  15112. *)
  15113. ld_shlibs_GCJ=no
  15114. ;;
  15115. esac
  15116. fi
  15117. ;;
  15118. dgux*)
  15119. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15120. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15121. hardcode_shlibpath_var_GCJ=no
  15122. ;;
  15123. freebsd1*)
  15124. ld_shlibs_GCJ=no
  15125. ;;
  15126. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15127. # support. Future versions do this automatically, but an explicit c++rt0.o
  15128. # does not break anything, and helps significantly (at the cost of a little
  15129. # extra space).
  15130. freebsd2.2*)
  15131. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15132. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15133. hardcode_direct_GCJ=yes
  15134. hardcode_shlibpath_var_GCJ=no
  15135. ;;
  15136. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15137. freebsd2*)
  15138. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15139. hardcode_direct_GCJ=yes
  15140. hardcode_minus_L_GCJ=yes
  15141. hardcode_shlibpath_var_GCJ=no
  15142. ;;
  15143. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15144. freebsd* | kfreebsd*-gnu | dragonfly*)
  15145. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15146. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15147. hardcode_direct_GCJ=yes
  15148. hardcode_shlibpath_var_GCJ=no
  15149. ;;
  15150. hpux9*)
  15151. if test "$GCC" = yes; then
  15152. 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'
  15153. else
  15154. 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'
  15155. fi
  15156. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15157. hardcode_libdir_separator_GCJ=:
  15158. hardcode_direct_GCJ=yes
  15159. # hardcode_minus_L: Not really in the search PATH,
  15160. # but as the default location of the library.
  15161. hardcode_minus_L_GCJ=yes
  15162. export_dynamic_flag_spec_GCJ='${wl}-E'
  15163. ;;
  15164. hpux10*)
  15165. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15166. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15167. else
  15168. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15169. fi
  15170. if test "$with_gnu_ld" = no; then
  15171. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15172. hardcode_libdir_separator_GCJ=:
  15173. hardcode_direct_GCJ=yes
  15174. export_dynamic_flag_spec_GCJ='${wl}-E'
  15175. # hardcode_minus_L: Not really in the search PATH,
  15176. # but as the default location of the library.
  15177. hardcode_minus_L_GCJ=yes
  15178. fi
  15179. ;;
  15180. hpux11*)
  15181. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15182. case $host_cpu in
  15183. hppa*64*)
  15184. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15185. ;;
  15186. ia64*)
  15187. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15188. ;;
  15189. *)
  15190. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15191. ;;
  15192. esac
  15193. else
  15194. case $host_cpu in
  15195. hppa*64*)
  15196. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15197. ;;
  15198. ia64*)
  15199. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15200. ;;
  15201. *)
  15202. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15203. ;;
  15204. esac
  15205. fi
  15206. if test "$with_gnu_ld" = no; then
  15207. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15208. hardcode_libdir_separator_GCJ=:
  15209. case $host_cpu in
  15210. hppa*64*|ia64*)
  15211. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15212. hardcode_direct_GCJ=no
  15213. hardcode_shlibpath_var_GCJ=no
  15214. ;;
  15215. *)
  15216. hardcode_direct_GCJ=yes
  15217. export_dynamic_flag_spec_GCJ='${wl}-E'
  15218. # hardcode_minus_L: Not really in the search PATH,
  15219. # but as the default location of the library.
  15220. hardcode_minus_L_GCJ=yes
  15221. ;;
  15222. esac
  15223. fi
  15224. ;;
  15225. irix5* | irix6* | nonstopux*)
  15226. if test "$GCC" = yes; then
  15227. 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'
  15228. else
  15229. 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'
  15230. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15231. fi
  15232. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15233. hardcode_libdir_separator_GCJ=:
  15234. link_all_deplibs_GCJ=yes
  15235. ;;
  15236. netbsd*)
  15237. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15238. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15239. else
  15240. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15241. fi
  15242. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15243. hardcode_direct_GCJ=yes
  15244. hardcode_shlibpath_var_GCJ=no
  15245. ;;
  15246. newsos6)
  15247. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15248. hardcode_direct_GCJ=yes
  15249. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15250. hardcode_libdir_separator_GCJ=:
  15251. hardcode_shlibpath_var_GCJ=no
  15252. ;;
  15253. openbsd*)
  15254. hardcode_direct_GCJ=yes
  15255. hardcode_shlibpath_var_GCJ=no
  15256. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15257. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15258. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15259. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15260. export_dynamic_flag_spec_GCJ='${wl}-E'
  15261. else
  15262. case $host_os in
  15263. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15264. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15265. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15266. ;;
  15267. *)
  15268. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15269. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15270. ;;
  15271. esac
  15272. fi
  15273. ;;
  15274. os2*)
  15275. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15276. hardcode_minus_L_GCJ=yes
  15277. allow_undefined_flag_GCJ=unsupported
  15278. 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'
  15279. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15280. ;;
  15281. osf3*)
  15282. if test "$GCC" = yes; then
  15283. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15284. 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'
  15285. else
  15286. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15287. 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'
  15288. fi
  15289. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15290. hardcode_libdir_separator_GCJ=:
  15291. ;;
  15292. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15293. if test "$GCC" = yes; then
  15294. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15295. 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'
  15296. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15297. else
  15298. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15299. 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'
  15300. 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~
  15301. $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'
  15302. # Both c and cxx compiler support -rpath directly
  15303. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15304. fi
  15305. hardcode_libdir_separator_GCJ=:
  15306. ;;
  15307. solaris*)
  15308. no_undefined_flag_GCJ=' -z text'
  15309. if test "$GCC" = yes; then
  15310. wlarc='${wl}'
  15311. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15312. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15313. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15314. else
  15315. wlarc=''
  15316. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15317. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15318. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15319. fi
  15320. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15321. hardcode_shlibpath_var_GCJ=no
  15322. case $host_os in
  15323. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15324. *)
  15325. # The compiler driver will combine linker options so we
  15326. # cannot just pass the convience library names through
  15327. # without $wl, iff we do not link with $LD.
  15328. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15329. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15330. case $wlarc in
  15331. '')
  15332. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15333. *)
  15334. 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' ;;
  15335. esac ;;
  15336. esac
  15337. link_all_deplibs_GCJ=yes
  15338. ;;
  15339. sunos4*)
  15340. if test "x$host_vendor" = xsequent; then
  15341. # Use $CC to link under sequent, because it throws in some extra .o
  15342. # files that make .init and .fini sections work.
  15343. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15344. else
  15345. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15346. fi
  15347. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15348. hardcode_direct_GCJ=yes
  15349. hardcode_minus_L_GCJ=yes
  15350. hardcode_shlibpath_var_GCJ=no
  15351. ;;
  15352. sysv4)
  15353. case $host_vendor in
  15354. sni)
  15355. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15356. hardcode_direct_GCJ=yes # is this really true???
  15357. ;;
  15358. siemens)
  15359. ## LD is ld it makes a PLAMLIB
  15360. ## CC just makes a GrossModule.
  15361. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15362. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15363. hardcode_direct_GCJ=no
  15364. ;;
  15365. motorola)
  15366. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15367. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15368. ;;
  15369. esac
  15370. runpath_var='LD_RUN_PATH'
  15371. hardcode_shlibpath_var_GCJ=no
  15372. ;;
  15373. sysv4.3*)
  15374. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15375. hardcode_shlibpath_var_GCJ=no
  15376. export_dynamic_flag_spec_GCJ='-Bexport'
  15377. ;;
  15378. sysv4*MP*)
  15379. if test -d /usr/nec; then
  15380. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15381. hardcode_shlibpath_var_GCJ=no
  15382. runpath_var=LD_RUN_PATH
  15383. hardcode_runpath_var=yes
  15384. ld_shlibs_GCJ=yes
  15385. fi
  15386. ;;
  15387. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15388. no_undefined_flag_GCJ='${wl}-z,text'
  15389. archive_cmds_need_lc_GCJ=no
  15390. hardcode_shlibpath_var_GCJ=no
  15391. runpath_var='LD_RUN_PATH'
  15392. if test "$GCC" = yes; then
  15393. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15394. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15395. else
  15396. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15397. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15398. fi
  15399. ;;
  15400. sysv5* | sco3.2v5* | sco5v6*)
  15401. # Note: We can NOT use -z defs as we might desire, because we do not
  15402. # link with -lc, and that would cause any symbols used from libc to
  15403. # always be unresolved, which means just about no library would
  15404. # ever link correctly. If we're not using GNU ld we use -z text
  15405. # though, which does catch some bad symbols but isn't as heavy-handed
  15406. # as -z defs.
  15407. no_undefined_flag_GCJ='${wl}-z,text'
  15408. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15409. archive_cmds_need_lc_GCJ=no
  15410. hardcode_shlibpath_var_GCJ=no
  15411. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15412. hardcode_libdir_separator_GCJ=':'
  15413. link_all_deplibs_GCJ=yes
  15414. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15415. runpath_var='LD_RUN_PATH'
  15416. if test "$GCC" = yes; then
  15417. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15418. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15419. else
  15420. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15421. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15422. fi
  15423. ;;
  15424. uts4*)
  15425. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15426. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15427. hardcode_shlibpath_var_GCJ=no
  15428. ;;
  15429. *)
  15430. ld_shlibs_GCJ=no
  15431. ;;
  15432. esac
  15433. fi
  15434. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15435. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15436. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15437. #
  15438. # Do we need to explicitly link libc?
  15439. #
  15440. case "x$archive_cmds_need_lc_GCJ" in
  15441. x|xyes)
  15442. # Assume -lc should be added
  15443. archive_cmds_need_lc_GCJ=yes
  15444. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15445. case $archive_cmds_GCJ in
  15446. *'~'*)
  15447. # FIXME: we may have to deal with multi-command sequences.
  15448. ;;
  15449. '$CC '*)
  15450. # Test whether the compiler implicitly links with -lc since on some
  15451. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15452. # to ld, don't add -lc before -lgcc.
  15453. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15454. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15455. $rm conftest*
  15456. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15457. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15458. (eval $ac_compile) 2>&5
  15459. ac_status=$?
  15460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15461. (exit $ac_status); } 2>conftest.err; then
  15462. soname=conftest
  15463. lib=conftest
  15464. libobjs=conftest.$ac_objext
  15465. deplibs=
  15466. wl=$lt_prog_compiler_wl_GCJ
  15467. pic_flag=$lt_prog_compiler_pic_GCJ
  15468. compiler_flags=-v
  15469. linker_flags=-v
  15470. verstring=
  15471. output_objdir=.
  15472. libname=conftest
  15473. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15474. allow_undefined_flag_GCJ=
  15475. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15476. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15477. ac_status=$?
  15478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15479. (exit $ac_status); }
  15480. then
  15481. archive_cmds_need_lc_GCJ=no
  15482. else
  15483. archive_cmds_need_lc_GCJ=yes
  15484. fi
  15485. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15486. else
  15487. cat conftest.err 1>&5
  15488. fi
  15489. $rm conftest*
  15490. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15491. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15492. ;;
  15493. esac
  15494. fi
  15495. ;;
  15496. esac
  15497. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15498. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15499. library_names_spec=
  15500. libname_spec='lib$name'
  15501. soname_spec=
  15502. shrext_cmds=".so"
  15503. postinstall_cmds=
  15504. postuninstall_cmds=
  15505. finish_cmds=
  15506. finish_eval=
  15507. shlibpath_var=
  15508. shlibpath_overrides_runpath=unknown
  15509. version_type=none
  15510. dynamic_linker="$host_os ld.so"
  15511. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15512. if test "$GCC" = yes; then
  15513. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15514. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15515. # if the path contains ";" then we assume it to be the separator
  15516. # otherwise default to the standard path separator (i.e. ":") - it is
  15517. # assumed that no part of a normal pathname contains ";" but that should
  15518. # okay in the real world where ";" in dirpaths is itself problematic.
  15519. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15520. else
  15521. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15522. fi
  15523. else
  15524. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15525. fi
  15526. need_lib_prefix=unknown
  15527. hardcode_into_libs=no
  15528. # when you set need_version to no, make sure it does not cause -set_version
  15529. # flags to be left without arguments
  15530. need_version=unknown
  15531. case $host_os in
  15532. aix3*)
  15533. version_type=linux
  15534. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15535. shlibpath_var=LIBPATH
  15536. # AIX 3 has no versioning support, so we append a major version to the name.
  15537. soname_spec='${libname}${release}${shared_ext}$major'
  15538. ;;
  15539. aix4* | aix5*)
  15540. version_type=linux
  15541. need_lib_prefix=no
  15542. need_version=no
  15543. hardcode_into_libs=yes
  15544. if test "$host_cpu" = ia64; then
  15545. # AIX 5 supports IA64
  15546. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15547. shlibpath_var=LD_LIBRARY_PATH
  15548. else
  15549. # With GCC up to 2.95.x, collect2 would create an import file
  15550. # for dependence libraries. The import file would start with
  15551. # the line `#! .'. This would cause the generated library to
  15552. # depend on `.', always an invalid library. This was fixed in
  15553. # development snapshots of GCC prior to 3.0.
  15554. case $host_os in
  15555. aix4 | aix4.[01] | aix4.[01].*)
  15556. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15557. echo ' yes '
  15558. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15559. :
  15560. else
  15561. can_build_shared=no
  15562. fi
  15563. ;;
  15564. esac
  15565. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15566. # soname into executable. Probably we can add versioning support to
  15567. # collect2, so additional links can be useful in future.
  15568. if test "$aix_use_runtimelinking" = yes; then
  15569. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15570. # instead of lib<name>.a to let people know that these are not
  15571. # typical AIX shared libraries.
  15572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15573. else
  15574. # We preserve .a as extension for shared libraries through AIX4.2
  15575. # and later when we are not doing run time linking.
  15576. library_names_spec='${libname}${release}.a $libname.a'
  15577. soname_spec='${libname}${release}${shared_ext}$major'
  15578. fi
  15579. shlibpath_var=LIBPATH
  15580. fi
  15581. ;;
  15582. amigaos*)
  15583. library_names_spec='$libname.ixlibrary $libname.a'
  15584. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15585. 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'
  15586. ;;
  15587. beos*)
  15588. library_names_spec='${libname}${shared_ext}'
  15589. dynamic_linker="$host_os ld.so"
  15590. shlibpath_var=LIBRARY_PATH
  15591. ;;
  15592. bsdi[45]*)
  15593. version_type=linux
  15594. need_version=no
  15595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15596. soname_spec='${libname}${release}${shared_ext}$major'
  15597. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15598. shlibpath_var=LD_LIBRARY_PATH
  15599. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15600. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15601. # the default ld.so.conf also contains /usr/contrib/lib and
  15602. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15603. # libtool to hard-code these into programs
  15604. ;;
  15605. cygwin* | mingw* | pw32*)
  15606. version_type=windows
  15607. shrext_cmds=".dll"
  15608. need_version=no
  15609. need_lib_prefix=no
  15610. case $GCC,$host_os in
  15611. yes,cygwin* | yes,mingw* | yes,pw32*)
  15612. library_names_spec='$libname.dll.a'
  15613. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15614. postinstall_cmds='base_file=`basename \${file}`~
  15615. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15616. dldir=$destdir/`dirname \$dlpath`~
  15617. test -d \$dldir || mkdir -p \$dldir~
  15618. $install_prog $dir/$dlname \$dldir/$dlname~
  15619. chmod a+x \$dldir/$dlname'
  15620. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15621. dlpath=$dir/\$dldll~
  15622. $rm \$dlpath'
  15623. shlibpath_overrides_runpath=yes
  15624. case $host_os in
  15625. cygwin*)
  15626. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15627. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15628. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15629. ;;
  15630. mingw*)
  15631. # MinGW DLLs use traditional 'lib' prefix
  15632. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15633. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15634. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15635. # It is most probably a Windows format PATH printed by
  15636. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15637. # path with ; separators, and with drive letters. We can handle the
  15638. # drive letters (cygwin fileutils understands them), so leave them,
  15639. # especially as we might pass files found there to a mingw objdump,
  15640. # which wouldn't understand a cygwinified path. Ahh.
  15641. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15642. else
  15643. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15644. fi
  15645. ;;
  15646. pw32*)
  15647. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15648. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15649. ;;
  15650. esac
  15651. ;;
  15652. *)
  15653. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15654. ;;
  15655. esac
  15656. dynamic_linker='Win32 ld.exe'
  15657. # FIXME: first we should search . and the directory the executable is in
  15658. shlibpath_var=PATH
  15659. ;;
  15660. darwin* | rhapsody*)
  15661. dynamic_linker="$host_os dyld"
  15662. version_type=darwin
  15663. need_lib_prefix=no
  15664. need_version=no
  15665. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15666. soname_spec='${libname}${release}${major}$shared_ext'
  15667. shlibpath_overrides_runpath=yes
  15668. shlibpath_var=DYLD_LIBRARY_PATH
  15669. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15670. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15671. if test "$GCC" = yes; then
  15672. 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"`
  15673. else
  15674. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15675. fi
  15676. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15677. ;;
  15678. dgux*)
  15679. version_type=linux
  15680. need_lib_prefix=no
  15681. need_version=no
  15682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15683. soname_spec='${libname}${release}${shared_ext}$major'
  15684. shlibpath_var=LD_LIBRARY_PATH
  15685. ;;
  15686. freebsd1*)
  15687. dynamic_linker=no
  15688. ;;
  15689. kfreebsd*-gnu)
  15690. version_type=linux
  15691. need_lib_prefix=no
  15692. need_version=no
  15693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15694. soname_spec='${libname}${release}${shared_ext}$major'
  15695. shlibpath_var=LD_LIBRARY_PATH
  15696. shlibpath_overrides_runpath=no
  15697. hardcode_into_libs=yes
  15698. dynamic_linker='GNU ld.so'
  15699. ;;
  15700. freebsd* | dragonfly*)
  15701. # DragonFly does not have aout. When/if they implement a new
  15702. # versioning mechanism, adjust this.
  15703. if test -x /usr/bin/objformat; then
  15704. objformat=`/usr/bin/objformat`
  15705. else
  15706. case $host_os in
  15707. freebsd[123]*) objformat=aout ;;
  15708. *) objformat=elf ;;
  15709. esac
  15710. fi
  15711. version_type=freebsd-$objformat
  15712. case $version_type in
  15713. freebsd-elf*)
  15714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15715. need_version=no
  15716. need_lib_prefix=no
  15717. ;;
  15718. freebsd-*)
  15719. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15720. need_version=yes
  15721. ;;
  15722. esac
  15723. shlibpath_var=LD_LIBRARY_PATH
  15724. case $host_os in
  15725. freebsd2*)
  15726. shlibpath_overrides_runpath=yes
  15727. ;;
  15728. freebsd3.[01]* | freebsdelf3.[01]*)
  15729. shlibpath_overrides_runpath=yes
  15730. hardcode_into_libs=yes
  15731. ;;
  15732. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15733. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15734. shlibpath_overrides_runpath=no
  15735. hardcode_into_libs=yes
  15736. ;;
  15737. freebsd*) # from 4.6 on
  15738. shlibpath_overrides_runpath=yes
  15739. hardcode_into_libs=yes
  15740. ;;
  15741. esac
  15742. ;;
  15743. gnu*)
  15744. version_type=linux
  15745. need_lib_prefix=no
  15746. need_version=no
  15747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15748. soname_spec='${libname}${release}${shared_ext}$major'
  15749. shlibpath_var=LD_LIBRARY_PATH
  15750. hardcode_into_libs=yes
  15751. ;;
  15752. hpux9* | hpux10* | hpux11*)
  15753. # Give a soname corresponding to the major version so that dld.sl refuses to
  15754. # link against other versions.
  15755. version_type=sunos
  15756. need_lib_prefix=no
  15757. need_version=no
  15758. case $host_cpu in
  15759. ia64*)
  15760. shrext_cmds='.so'
  15761. hardcode_into_libs=yes
  15762. dynamic_linker="$host_os dld.so"
  15763. shlibpath_var=LD_LIBRARY_PATH
  15764. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15766. soname_spec='${libname}${release}${shared_ext}$major'
  15767. if test "X$HPUX_IA64_MODE" = X32; then
  15768. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15769. else
  15770. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15771. fi
  15772. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15773. ;;
  15774. hppa*64*)
  15775. shrext_cmds='.sl'
  15776. hardcode_into_libs=yes
  15777. dynamic_linker="$host_os dld.sl"
  15778. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15779. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15781. soname_spec='${libname}${release}${shared_ext}$major'
  15782. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15783. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15784. ;;
  15785. *)
  15786. shrext_cmds='.sl'
  15787. dynamic_linker="$host_os dld.sl"
  15788. shlibpath_var=SHLIB_PATH
  15789. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15791. soname_spec='${libname}${release}${shared_ext}$major'
  15792. ;;
  15793. esac
  15794. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15795. postinstall_cmds='chmod 555 $lib'
  15796. ;;
  15797. interix3*)
  15798. version_type=linux
  15799. need_lib_prefix=no
  15800. need_version=no
  15801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15802. soname_spec='${libname}${release}${shared_ext}$major'
  15803. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15804. shlibpath_var=LD_LIBRARY_PATH
  15805. shlibpath_overrides_runpath=no
  15806. hardcode_into_libs=yes
  15807. ;;
  15808. irix5* | irix6* | nonstopux*)
  15809. case $host_os in
  15810. nonstopux*) version_type=nonstopux ;;
  15811. *)
  15812. if test "$lt_cv_prog_gnu_ld" = yes; then
  15813. version_type=linux
  15814. else
  15815. version_type=irix
  15816. fi ;;
  15817. esac
  15818. need_lib_prefix=no
  15819. need_version=no
  15820. soname_spec='${libname}${release}${shared_ext}$major'
  15821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15822. case $host_os in
  15823. irix5* | nonstopux*)
  15824. libsuff= shlibsuff=
  15825. ;;
  15826. *)
  15827. case $LD in # libtool.m4 will add one of these switches to LD
  15828. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15829. libsuff= shlibsuff= libmagic=32-bit;;
  15830. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15831. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15832. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15833. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15834. *) libsuff= shlibsuff= libmagic=never-match;;
  15835. esac
  15836. ;;
  15837. esac
  15838. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15839. shlibpath_overrides_runpath=no
  15840. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15841. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15842. hardcode_into_libs=yes
  15843. ;;
  15844. # No shared lib support for Linux oldld, aout, or coff.
  15845. linux*oldld* | linux*aout* | linux*coff*)
  15846. dynamic_linker=no
  15847. ;;
  15848. # This must be Linux ELF.
  15849. linux*)
  15850. version_type=linux
  15851. need_lib_prefix=no
  15852. need_version=no
  15853. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15854. soname_spec='${libname}${release}${shared_ext}$major'
  15855. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15856. shlibpath_var=LD_LIBRARY_PATH
  15857. shlibpath_overrides_runpath=no
  15858. # This implies no fast_install, which is unacceptable.
  15859. # Some rework will be needed to allow for fast_install
  15860. # before this can be enabled.
  15861. hardcode_into_libs=yes
  15862. # find out which ABI we are using
  15863. libsuff=
  15864. case "$host_cpu" in
  15865. x86_64*|s390x*|powerpc64*)
  15866. echo '#line 17639 "configure"' > conftest.$ac_ext
  15867. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15868. (eval $ac_compile) 2>&5
  15869. ac_status=$?
  15870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15871. (exit $ac_status); }; then
  15872. case `/usr/bin/file conftest.$ac_objext` in
  15873. *64-bit*)
  15874. libsuff=64
  15875. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15876. ;;
  15877. esac
  15878. fi
  15879. rm -rf conftest*
  15880. ;;
  15881. esac
  15882. # Append ld.so.conf contents to the search path
  15883. if test -f /etc/ld.so.conf; then
  15884. 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' ' '`
  15885. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15886. fi
  15887. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15888. # powerpc, because MkLinux only supported shared libraries with the
  15889. # GNU dynamic linker. Since this was broken with cross compilers,
  15890. # most powerpc-linux boxes support dynamic linking these days and
  15891. # people can always --disable-shared, the test was removed, and we
  15892. # assume the GNU/Linux dynamic linker is in use.
  15893. dynamic_linker='GNU/Linux ld.so'
  15894. ;;
  15895. knetbsd*-gnu)
  15896. version_type=linux
  15897. need_lib_prefix=no
  15898. need_version=no
  15899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15900. soname_spec='${libname}${release}${shared_ext}$major'
  15901. shlibpath_var=LD_LIBRARY_PATH
  15902. shlibpath_overrides_runpath=no
  15903. hardcode_into_libs=yes
  15904. dynamic_linker='GNU ld.so'
  15905. ;;
  15906. netbsd*)
  15907. version_type=sunos
  15908. need_lib_prefix=no
  15909. need_version=no
  15910. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15912. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15913. dynamic_linker='NetBSD (a.out) ld.so'
  15914. else
  15915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15916. soname_spec='${libname}${release}${shared_ext}$major'
  15917. dynamic_linker='NetBSD ld.elf_so'
  15918. fi
  15919. shlibpath_var=LD_LIBRARY_PATH
  15920. shlibpath_overrides_runpath=yes
  15921. hardcode_into_libs=yes
  15922. ;;
  15923. newsos6)
  15924. version_type=linux
  15925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15926. shlibpath_var=LD_LIBRARY_PATH
  15927. shlibpath_overrides_runpath=yes
  15928. ;;
  15929. nto-qnx*)
  15930. version_type=linux
  15931. need_lib_prefix=no
  15932. need_version=no
  15933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15934. soname_spec='${libname}${release}${shared_ext}$major'
  15935. shlibpath_var=LD_LIBRARY_PATH
  15936. shlibpath_overrides_runpath=yes
  15937. ;;
  15938. openbsd*)
  15939. version_type=sunos
  15940. sys_lib_dlsearch_path_spec="/usr/lib"
  15941. need_lib_prefix=no
  15942. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15943. case $host_os in
  15944. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15945. *) need_version=no ;;
  15946. esac
  15947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15948. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15949. shlibpath_var=LD_LIBRARY_PATH
  15950. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15951. case $host_os in
  15952. openbsd2.[89] | openbsd2.[89].*)
  15953. shlibpath_overrides_runpath=no
  15954. ;;
  15955. *)
  15956. shlibpath_overrides_runpath=yes
  15957. ;;
  15958. esac
  15959. else
  15960. shlibpath_overrides_runpath=yes
  15961. fi
  15962. ;;
  15963. os2*)
  15964. libname_spec='$name'
  15965. shrext_cmds=".dll"
  15966. need_lib_prefix=no
  15967. library_names_spec='$libname${shared_ext} $libname.a'
  15968. dynamic_linker='OS/2 ld.exe'
  15969. shlibpath_var=LIBPATH
  15970. ;;
  15971. osf3* | osf4* | osf5*)
  15972. version_type=osf
  15973. need_lib_prefix=no
  15974. need_version=no
  15975. soname_spec='${libname}${release}${shared_ext}$major'
  15976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15977. shlibpath_var=LD_LIBRARY_PATH
  15978. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15979. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15980. ;;
  15981. solaris*)
  15982. version_type=linux
  15983. need_lib_prefix=no
  15984. need_version=no
  15985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15986. soname_spec='${libname}${release}${shared_ext}$major'
  15987. shlibpath_var=LD_LIBRARY_PATH
  15988. shlibpath_overrides_runpath=yes
  15989. hardcode_into_libs=yes
  15990. # ldd complains unless libraries are executable
  15991. postinstall_cmds='chmod +x $lib'
  15992. ;;
  15993. sunos4*)
  15994. version_type=sunos
  15995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15996. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15997. shlibpath_var=LD_LIBRARY_PATH
  15998. shlibpath_overrides_runpath=yes
  15999. if test "$with_gnu_ld" = yes; then
  16000. need_lib_prefix=no
  16001. fi
  16002. need_version=yes
  16003. ;;
  16004. sysv4 | sysv4.3*)
  16005. version_type=linux
  16006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16007. soname_spec='${libname}${release}${shared_ext}$major'
  16008. shlibpath_var=LD_LIBRARY_PATH
  16009. case $host_vendor in
  16010. sni)
  16011. shlibpath_overrides_runpath=no
  16012. need_lib_prefix=no
  16013. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16014. runpath_var=LD_RUN_PATH
  16015. ;;
  16016. siemens)
  16017. need_lib_prefix=no
  16018. ;;
  16019. motorola)
  16020. need_lib_prefix=no
  16021. need_version=no
  16022. shlibpath_overrides_runpath=no
  16023. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16024. ;;
  16025. esac
  16026. ;;
  16027. sysv4*MP*)
  16028. if test -d /usr/nec ;then
  16029. version_type=linux
  16030. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16031. soname_spec='$libname${shared_ext}.$major'
  16032. shlibpath_var=LD_LIBRARY_PATH
  16033. fi
  16034. ;;
  16035. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16036. version_type=freebsd-elf
  16037. need_lib_prefix=no
  16038. need_version=no
  16039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16040. soname_spec='${libname}${release}${shared_ext}$major'
  16041. shlibpath_var=LD_LIBRARY_PATH
  16042. hardcode_into_libs=yes
  16043. if test "$with_gnu_ld" = yes; then
  16044. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16045. shlibpath_overrides_runpath=no
  16046. else
  16047. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16048. shlibpath_overrides_runpath=yes
  16049. case $host_os in
  16050. sco3.2v5*)
  16051. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16052. ;;
  16053. esac
  16054. fi
  16055. sys_lib_dlsearch_path_spec='/usr/lib'
  16056. ;;
  16057. uts4*)
  16058. version_type=linux
  16059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16060. soname_spec='${libname}${release}${shared_ext}$major'
  16061. shlibpath_var=LD_LIBRARY_PATH
  16062. ;;
  16063. *)
  16064. dynamic_linker=no
  16065. ;;
  16066. esac
  16067. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16068. echo "${ECHO_T}$dynamic_linker" >&6
  16069. test "$dynamic_linker" = no && can_build_shared=no
  16070. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16071. if test "$GCC" = yes; then
  16072. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16073. fi
  16074. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16075. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16076. hardcode_action_GCJ=
  16077. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16078. test -n "$runpath_var_GCJ" || \
  16079. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16080. # We can hardcode non-existant directories.
  16081. if test "$hardcode_direct_GCJ" != no &&
  16082. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16083. # have to relink, otherwise we might link with an installed library
  16084. # when we should be linking with a yet-to-be-installed one
  16085. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16086. test "$hardcode_minus_L_GCJ" != no; then
  16087. # Linking always hardcodes the temporary library directory.
  16088. hardcode_action_GCJ=relink
  16089. else
  16090. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16091. hardcode_action_GCJ=immediate
  16092. fi
  16093. else
  16094. # We cannot hardcode anything, or else we can only hardcode existing
  16095. # directories.
  16096. hardcode_action_GCJ=unsupported
  16097. fi
  16098. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16099. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16100. if test "$hardcode_action_GCJ" = relink; then
  16101. # Fast installation is not supported
  16102. enable_fast_install=no
  16103. elif test "$shlibpath_overrides_runpath" = yes ||
  16104. test "$enable_shared" = no; then
  16105. # Fast installation is not necessary
  16106. enable_fast_install=needless
  16107. fi
  16108. # The else clause should only fire when bootstrapping the
  16109. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16110. # with your package, and you will get complaints that there are
  16111. # no rules to generate ltmain.sh.
  16112. if test -f "$ltmain"; then
  16113. # See if we are running on zsh, and set the options which allow our commands through
  16114. # without removal of \ escapes.
  16115. if test -n "${ZSH_VERSION+set}" ; then
  16116. setopt NO_GLOB_SUBST
  16117. fi
  16118. # Now quote all the things that may contain metacharacters while being
  16119. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16120. # variables and quote the copies for generation of the libtool script.
  16121. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16122. SED SHELL STRIP \
  16123. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16124. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16125. deplibs_check_method reload_flag reload_cmds need_locks \
  16126. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16127. lt_cv_sys_global_symbol_to_c_name_address \
  16128. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16129. old_postinstall_cmds old_postuninstall_cmds \
  16130. compiler_GCJ \
  16131. CC_GCJ \
  16132. LD_GCJ \
  16133. lt_prog_compiler_wl_GCJ \
  16134. lt_prog_compiler_pic_GCJ \
  16135. lt_prog_compiler_static_GCJ \
  16136. lt_prog_compiler_no_builtin_flag_GCJ \
  16137. export_dynamic_flag_spec_GCJ \
  16138. thread_safe_flag_spec_GCJ \
  16139. whole_archive_flag_spec_GCJ \
  16140. enable_shared_with_static_runtimes_GCJ \
  16141. old_archive_cmds_GCJ \
  16142. old_archive_from_new_cmds_GCJ \
  16143. predep_objects_GCJ \
  16144. postdep_objects_GCJ \
  16145. predeps_GCJ \
  16146. postdeps_GCJ \
  16147. compiler_lib_search_path_GCJ \
  16148. archive_cmds_GCJ \
  16149. archive_expsym_cmds_GCJ \
  16150. postinstall_cmds_GCJ \
  16151. postuninstall_cmds_GCJ \
  16152. old_archive_from_expsyms_cmds_GCJ \
  16153. allow_undefined_flag_GCJ \
  16154. no_undefined_flag_GCJ \
  16155. export_symbols_cmds_GCJ \
  16156. hardcode_libdir_flag_spec_GCJ \
  16157. hardcode_libdir_flag_spec_ld_GCJ \
  16158. hardcode_libdir_separator_GCJ \
  16159. hardcode_automatic_GCJ \
  16160. module_cmds_GCJ \
  16161. module_expsym_cmds_GCJ \
  16162. lt_cv_prog_compiler_c_o_GCJ \
  16163. exclude_expsyms_GCJ \
  16164. include_expsyms_GCJ; do
  16165. case $var in
  16166. old_archive_cmds_GCJ | \
  16167. old_archive_from_new_cmds_GCJ | \
  16168. archive_cmds_GCJ | \
  16169. archive_expsym_cmds_GCJ | \
  16170. module_cmds_GCJ | \
  16171. module_expsym_cmds_GCJ | \
  16172. old_archive_from_expsyms_cmds_GCJ | \
  16173. export_symbols_cmds_GCJ | \
  16174. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16175. postinstall_cmds | postuninstall_cmds | \
  16176. old_postinstall_cmds | old_postuninstall_cmds | \
  16177. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16178. # Double-quote double-evaled strings.
  16179. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16180. ;;
  16181. *)
  16182. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16183. ;;
  16184. esac
  16185. done
  16186. case $lt_echo in
  16187. *'\$0 --fallback-echo"')
  16188. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16189. ;;
  16190. esac
  16191. cfgfile="$ofile"
  16192. cat <<__EOF__ >> "$cfgfile"
  16193. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16194. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16195. # Shell to use when invoking shell scripts.
  16196. SHELL=$lt_SHELL
  16197. # Whether or not to build shared libraries.
  16198. build_libtool_libs=$enable_shared
  16199. # Whether or not to build static libraries.
  16200. build_old_libs=$enable_static
  16201. # Whether or not to add -lc for building shared libraries.
  16202. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16203. # Whether or not to disallow shared libs when runtime libs are static
  16204. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16205. # Whether or not to optimize for fast installation.
  16206. fast_install=$enable_fast_install
  16207. # The host system.
  16208. host_alias=$host_alias
  16209. host=$host
  16210. host_os=$host_os
  16211. # The build system.
  16212. build_alias=$build_alias
  16213. build=$build
  16214. build_os=$build_os
  16215. # An echo program that does not interpret backslashes.
  16216. echo=$lt_echo
  16217. # The archiver.
  16218. AR=$lt_AR
  16219. AR_FLAGS=$lt_AR_FLAGS
  16220. # A C compiler.
  16221. LTCC=$lt_LTCC
  16222. # LTCC compiler flags.
  16223. LTCFLAGS=$lt_LTCFLAGS
  16224. # A language-specific compiler.
  16225. CC=$lt_compiler_GCJ
  16226. # Is the compiler the GNU C compiler?
  16227. with_gcc=$GCC_GCJ
  16228. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16229. gcc_ver=\`gcc -dumpversion\`
  16230. # An ERE matcher.
  16231. EGREP=$lt_EGREP
  16232. # The linker used to build libraries.
  16233. LD=$lt_LD_GCJ
  16234. # Whether we need hard or soft links.
  16235. LN_S=$lt_LN_S
  16236. # A BSD-compatible nm program.
  16237. NM=$lt_NM
  16238. # A symbol stripping program
  16239. STRIP=$lt_STRIP
  16240. # Used to examine libraries when file_magic_cmd begins "file"
  16241. MAGIC_CMD=$MAGIC_CMD
  16242. # Used on cygwin: DLL creation program.
  16243. DLLTOOL="$DLLTOOL"
  16244. # Used on cygwin: object dumper.
  16245. OBJDUMP="$OBJDUMP"
  16246. # Used on cygwin: assembler.
  16247. AS="$AS"
  16248. # The name of the directory that contains temporary libtool files.
  16249. objdir=$objdir
  16250. # How to create reloadable object files.
  16251. reload_flag=$lt_reload_flag
  16252. reload_cmds=$lt_reload_cmds
  16253. # How to pass a linker flag through the compiler.
  16254. wl=$lt_lt_prog_compiler_wl_GCJ
  16255. # Object file suffix (normally "o").
  16256. objext="$ac_objext"
  16257. # Old archive suffix (normally "a").
  16258. libext="$libext"
  16259. # Shared library suffix (normally ".so").
  16260. shrext_cmds='$shrext_cmds'
  16261. # Executable file suffix (normally "").
  16262. exeext="$exeext"
  16263. # Additional compiler flags for building library objects.
  16264. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16265. pic_mode=$pic_mode
  16266. # What is the maximum length of a command?
  16267. max_cmd_len=$lt_cv_sys_max_cmd_len
  16268. # Does compiler simultaneously support -c and -o options?
  16269. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16270. # Must we lock files when doing compilation?
  16271. need_locks=$lt_need_locks
  16272. # Do we need the lib prefix for modules?
  16273. need_lib_prefix=$need_lib_prefix
  16274. # Do we need a version for libraries?
  16275. need_version=$need_version
  16276. # Whether dlopen is supported.
  16277. dlopen_support=$enable_dlopen
  16278. # Whether dlopen of programs is supported.
  16279. dlopen_self=$enable_dlopen_self
  16280. # Whether dlopen of statically linked programs is supported.
  16281. dlopen_self_static=$enable_dlopen_self_static
  16282. # Compiler flag to prevent dynamic linking.
  16283. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16284. # Compiler flag to turn off builtin functions.
  16285. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16286. # Compiler flag to allow reflexive dlopens.
  16287. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16288. # Compiler flag to generate shared objects directly from archives.
  16289. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16290. # Compiler flag to generate thread-safe objects.
  16291. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16292. # Library versioning type.
  16293. version_type=$version_type
  16294. # Format of library name prefix.
  16295. libname_spec=$lt_libname_spec
  16296. # List of archive names. First name is the real one, the rest are links.
  16297. # The last name is the one that the linker finds with -lNAME.
  16298. library_names_spec=$lt_library_names_spec
  16299. # The coded name of the library, if different from the real name.
  16300. soname_spec=$lt_soname_spec
  16301. # Commands used to build and install an old-style archive.
  16302. RANLIB=$lt_RANLIB
  16303. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16304. old_postinstall_cmds=$lt_old_postinstall_cmds
  16305. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16306. # Create an old-style archive from a shared archive.
  16307. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16308. # Create a temporary old-style archive to link instead of a shared archive.
  16309. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16310. # Commands used to build and install a shared archive.
  16311. archive_cmds=$lt_archive_cmds_GCJ
  16312. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16313. postinstall_cmds=$lt_postinstall_cmds
  16314. postuninstall_cmds=$lt_postuninstall_cmds
  16315. # Commands used to build a loadable module (assumed same as above if empty)
  16316. module_cmds=$lt_module_cmds_GCJ
  16317. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16318. # Commands to strip libraries.
  16319. old_striplib=$lt_old_striplib
  16320. striplib=$lt_striplib
  16321. # Dependencies to place before the objects being linked to create a
  16322. # shared library.
  16323. predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16324. # Dependencies to place after the objects being linked to create a
  16325. # shared library.
  16326. postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16327. # Dependencies to place before the objects being linked to create a
  16328. # shared library.
  16329. predeps=$lt_predeps_GCJ
  16330. # Dependencies to place after the objects being linked to create a
  16331. # shared library.
  16332. postdeps=$lt_postdeps_GCJ
  16333. # The library search path used internally by the compiler when linking
  16334. # a shared library.
  16335. 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"\`
  16336. # Method to check whether dependent libraries are shared objects.
  16337. deplibs_check_method=$lt_deplibs_check_method
  16338. # Command to use when deplibs_check_method == file_magic.
  16339. file_magic_cmd=$lt_file_magic_cmd
  16340. # Flag that allows shared libraries with undefined symbols to be built.
  16341. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16342. # Flag that forces no undefined symbols.
  16343. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16344. # Commands used to finish a libtool library installation in a directory.
  16345. finish_cmds=$lt_finish_cmds
  16346. # Same as above, but a single script fragment to be evaled but not shown.
  16347. finish_eval=$lt_finish_eval
  16348. # Take the output of nm and produce a listing of raw symbols and C names.
  16349. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16350. # Transform the output of nm in a proper C declaration
  16351. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16352. # Transform the output of nm in a C name address pair
  16353. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16354. # This is the shared library runtime path variable.
  16355. runpath_var=$runpath_var
  16356. # This is the shared library path variable.
  16357. shlibpath_var=$shlibpath_var
  16358. # Is shlibpath searched before the hard-coded library search path?
  16359. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16360. # How to hardcode a shared library path into an executable.
  16361. hardcode_action=$hardcode_action_GCJ
  16362. # Whether we should hardcode library paths into libraries.
  16363. hardcode_into_libs=$hardcode_into_libs
  16364. # Flag to hardcode \$libdir into a binary during linking.
  16365. # This must work even if \$libdir does not exist.
  16366. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16367. # If ld is used when linking, flag to hardcode \$libdir into
  16368. # a binary during linking. This must work even if \$libdir does
  16369. # not exist.
  16370. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16371. # Whether we need a single -rpath flag with a separated argument.
  16372. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16373. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16374. # resulting binary.
  16375. hardcode_direct=$hardcode_direct_GCJ
  16376. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16377. # resulting binary.
  16378. hardcode_minus_L=$hardcode_minus_L_GCJ
  16379. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16380. # the resulting binary.
  16381. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16382. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16383. # and all subsequent libraries and executables linked against it.
  16384. hardcode_automatic=$hardcode_automatic_GCJ
  16385. # Variables whose values should be saved in libtool wrapper scripts and
  16386. # restored at relink time.
  16387. variables_saved_for_relink="$variables_saved_for_relink"
  16388. # Whether libtool must link a program against all its dependency libraries.
  16389. link_all_deplibs=$link_all_deplibs_GCJ
  16390. # Compile-time system search path for libraries
  16391. 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"\`
  16392. # Run-time system search path for libraries
  16393. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16394. # Fix the shell variable \$srcfile for the compiler.
  16395. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16396. # Set to yes if exported symbols are required.
  16397. always_export_symbols=$always_export_symbols_GCJ
  16398. # The commands to list exported symbols.
  16399. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16400. # The commands to extract the exported symbol list from a shared archive.
  16401. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16402. # Symbols that should not be listed in the preloaded symbols.
  16403. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16404. # Symbols that must always be exported.
  16405. include_expsyms=$lt_include_expsyms_GCJ
  16406. # ### END LIBTOOL TAG CONFIG: $tagname
  16407. __EOF__
  16408. else
  16409. # If there is no Makefile yet, we rely on a make rule to execute
  16410. # `config.status --recheck' to rerun these tests and create the
  16411. # libtool script then.
  16412. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16413. if test -f "$ltmain_in"; then
  16414. test -f Makefile && make "$ltmain"
  16415. fi
  16416. fi
  16417. ac_ext=c
  16418. ac_cpp='$CPP $CPPFLAGS'
  16419. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16420. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16421. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16422. CC="$lt_save_CC"
  16423. else
  16424. tagname=""
  16425. fi
  16426. ;;
  16427. RC)
  16428. # Source file extension for RC test sources.
  16429. ac_ext=rc
  16430. # Object file extension for compiled RC test sources.
  16431. objext=o
  16432. objext_RC=$objext
  16433. # Code to be used in simple compile tests
  16434. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16435. # Code to be used in simple link tests
  16436. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16437. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16438. # If no C compiler was specified, use CC.
  16439. LTCC=${LTCC-"$CC"}
  16440. # If no C compiler flags were specified, use CFLAGS.
  16441. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16442. # Allow CC to be a program name with arguments.
  16443. compiler=$CC
  16444. # save warnings/boilerplate of simple test code
  16445. ac_outfile=conftest.$ac_objext
  16446. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16447. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16448. _lt_compiler_boilerplate=`cat conftest.err`
  16449. $rm conftest*
  16450. ac_outfile=conftest.$ac_objext
  16451. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16452. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16453. _lt_linker_boilerplate=`cat conftest.err`
  16454. $rm conftest*
  16455. # Allow CC to be a program name with arguments.
  16456. lt_save_CC="$CC"
  16457. CC=${RC-"windres"}
  16458. compiler=$CC
  16459. compiler_RC=$CC
  16460. for cc_temp in $compiler""; do
  16461. case $cc_temp in
  16462. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16463. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16464. \-*) ;;
  16465. *) break;;
  16466. esac
  16467. done
  16468. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16469. lt_cv_prog_compiler_c_o_RC=yes
  16470. # The else clause should only fire when bootstrapping the
  16471. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16472. # with your package, and you will get complaints that there are
  16473. # no rules to generate ltmain.sh.
  16474. if test -f "$ltmain"; then
  16475. # See if we are running on zsh, and set the options which allow our commands through
  16476. # without removal of \ escapes.
  16477. if test -n "${ZSH_VERSION+set}" ; then
  16478. setopt NO_GLOB_SUBST
  16479. fi
  16480. # Now quote all the things that may contain metacharacters while being
  16481. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16482. # variables and quote the copies for generation of the libtool script.
  16483. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16484. SED SHELL STRIP \
  16485. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16486. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16487. deplibs_check_method reload_flag reload_cmds need_locks \
  16488. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16489. lt_cv_sys_global_symbol_to_c_name_address \
  16490. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16491. old_postinstall_cmds old_postuninstall_cmds \
  16492. compiler_RC \
  16493. CC_RC \
  16494. LD_RC \
  16495. lt_prog_compiler_wl_RC \
  16496. lt_prog_compiler_pic_RC \
  16497. lt_prog_compiler_static_RC \
  16498. lt_prog_compiler_no_builtin_flag_RC \
  16499. export_dynamic_flag_spec_RC \
  16500. thread_safe_flag_spec_RC \
  16501. whole_archive_flag_spec_RC \
  16502. enable_shared_with_static_runtimes_RC \
  16503. old_archive_cmds_RC \
  16504. old_archive_from_new_cmds_RC \
  16505. predep_objects_RC \
  16506. postdep_objects_RC \
  16507. predeps_RC \
  16508. postdeps_RC \
  16509. compiler_lib_search_path_RC \
  16510. archive_cmds_RC \
  16511. archive_expsym_cmds_RC \
  16512. postinstall_cmds_RC \
  16513. postuninstall_cmds_RC \
  16514. old_archive_from_expsyms_cmds_RC \
  16515. allow_undefined_flag_RC \
  16516. no_undefined_flag_RC \
  16517. export_symbols_cmds_RC \
  16518. hardcode_libdir_flag_spec_RC \
  16519. hardcode_libdir_flag_spec_ld_RC \
  16520. hardcode_libdir_separator_RC \
  16521. hardcode_automatic_RC \
  16522. module_cmds_RC \
  16523. module_expsym_cmds_RC \
  16524. lt_cv_prog_compiler_c_o_RC \
  16525. exclude_expsyms_RC \
  16526. include_expsyms_RC; do
  16527. case $var in
  16528. old_archive_cmds_RC | \
  16529. old_archive_from_new_cmds_RC | \
  16530. archive_cmds_RC | \
  16531. archive_expsym_cmds_RC | \
  16532. module_cmds_RC | \
  16533. module_expsym_cmds_RC | \
  16534. old_archive_from_expsyms_cmds_RC | \
  16535. export_symbols_cmds_RC | \
  16536. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16537. postinstall_cmds | postuninstall_cmds | \
  16538. old_postinstall_cmds | old_postuninstall_cmds | \
  16539. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16540. # Double-quote double-evaled strings.
  16541. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16542. ;;
  16543. *)
  16544. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16545. ;;
  16546. esac
  16547. done
  16548. case $lt_echo in
  16549. *'\$0 --fallback-echo"')
  16550. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16551. ;;
  16552. esac
  16553. cfgfile="$ofile"
  16554. cat <<__EOF__ >> "$cfgfile"
  16555. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16556. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16557. # Shell to use when invoking shell scripts.
  16558. SHELL=$lt_SHELL
  16559. # Whether or not to build shared libraries.
  16560. build_libtool_libs=$enable_shared
  16561. # Whether or not to build static libraries.
  16562. build_old_libs=$enable_static
  16563. # Whether or not to add -lc for building shared libraries.
  16564. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16565. # Whether or not to disallow shared libs when runtime libs are static
  16566. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16567. # Whether or not to optimize for fast installation.
  16568. fast_install=$enable_fast_install
  16569. # The host system.
  16570. host_alias=$host_alias
  16571. host=$host
  16572. host_os=$host_os
  16573. # The build system.
  16574. build_alias=$build_alias
  16575. build=$build
  16576. build_os=$build_os
  16577. # An echo program that does not interpret backslashes.
  16578. echo=$lt_echo
  16579. # The archiver.
  16580. AR=$lt_AR
  16581. AR_FLAGS=$lt_AR_FLAGS
  16582. # A C compiler.
  16583. LTCC=$lt_LTCC
  16584. # LTCC compiler flags.
  16585. LTCFLAGS=$lt_LTCFLAGS
  16586. # A language-specific compiler.
  16587. CC=$lt_compiler_RC
  16588. # Is the compiler the GNU C compiler?
  16589. with_gcc=$GCC_RC
  16590. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16591. gcc_ver=\`gcc -dumpversion\`
  16592. # An ERE matcher.
  16593. EGREP=$lt_EGREP
  16594. # The linker used to build libraries.
  16595. LD=$lt_LD_RC
  16596. # Whether we need hard or soft links.
  16597. LN_S=$lt_LN_S
  16598. # A BSD-compatible nm program.
  16599. NM=$lt_NM
  16600. # A symbol stripping program
  16601. STRIP=$lt_STRIP
  16602. # Used to examine libraries when file_magic_cmd begins "file"
  16603. MAGIC_CMD=$MAGIC_CMD
  16604. # Used on cygwin: DLL creation program.
  16605. DLLTOOL="$DLLTOOL"
  16606. # Used on cygwin: object dumper.
  16607. OBJDUMP="$OBJDUMP"
  16608. # Used on cygwin: assembler.
  16609. AS="$AS"
  16610. # The name of the directory that contains temporary libtool files.
  16611. objdir=$objdir
  16612. # How to create reloadable object files.
  16613. reload_flag=$lt_reload_flag
  16614. reload_cmds=$lt_reload_cmds
  16615. # How to pass a linker flag through the compiler.
  16616. wl=$lt_lt_prog_compiler_wl_RC
  16617. # Object file suffix (normally "o").
  16618. objext="$ac_objext"
  16619. # Old archive suffix (normally "a").
  16620. libext="$libext"
  16621. # Shared library suffix (normally ".so").
  16622. shrext_cmds='$shrext_cmds'
  16623. # Executable file suffix (normally "").
  16624. exeext="$exeext"
  16625. # Additional compiler flags for building library objects.
  16626. pic_flag=$lt_lt_prog_compiler_pic_RC
  16627. pic_mode=$pic_mode
  16628. # What is the maximum length of a command?
  16629. max_cmd_len=$lt_cv_sys_max_cmd_len
  16630. # Does compiler simultaneously support -c and -o options?
  16631. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16632. # Must we lock files when doing compilation?
  16633. need_locks=$lt_need_locks
  16634. # Do we need the lib prefix for modules?
  16635. need_lib_prefix=$need_lib_prefix
  16636. # Do we need a version for libraries?
  16637. need_version=$need_version
  16638. # Whether dlopen is supported.
  16639. dlopen_support=$enable_dlopen
  16640. # Whether dlopen of programs is supported.
  16641. dlopen_self=$enable_dlopen_self
  16642. # Whether dlopen of statically linked programs is supported.
  16643. dlopen_self_static=$enable_dlopen_self_static
  16644. # Compiler flag to prevent dynamic linking.
  16645. link_static_flag=$lt_lt_prog_compiler_static_RC
  16646. # Compiler flag to turn off builtin functions.
  16647. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16648. # Compiler flag to allow reflexive dlopens.
  16649. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16650. # Compiler flag to generate shared objects directly from archives.
  16651. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16652. # Compiler flag to generate thread-safe objects.
  16653. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16654. # Library versioning type.
  16655. version_type=$version_type
  16656. # Format of library name prefix.
  16657. libname_spec=$lt_libname_spec
  16658. # List of archive names. First name is the real one, the rest are links.
  16659. # The last name is the one that the linker finds with -lNAME.
  16660. library_names_spec=$lt_library_names_spec
  16661. # The coded name of the library, if different from the real name.
  16662. soname_spec=$lt_soname_spec
  16663. # Commands used to build and install an old-style archive.
  16664. RANLIB=$lt_RANLIB
  16665. old_archive_cmds=$lt_old_archive_cmds_RC
  16666. old_postinstall_cmds=$lt_old_postinstall_cmds
  16667. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16668. # Create an old-style archive from a shared archive.
  16669. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16670. # Create a temporary old-style archive to link instead of a shared archive.
  16671. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16672. # Commands used to build and install a shared archive.
  16673. archive_cmds=$lt_archive_cmds_RC
  16674. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16675. postinstall_cmds=$lt_postinstall_cmds
  16676. postuninstall_cmds=$lt_postuninstall_cmds
  16677. # Commands used to build a loadable module (assumed same as above if empty)
  16678. module_cmds=$lt_module_cmds_RC
  16679. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16680. # Commands to strip libraries.
  16681. old_striplib=$lt_old_striplib
  16682. striplib=$lt_striplib
  16683. # Dependencies to place before the objects being linked to create a
  16684. # shared library.
  16685. predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16686. # Dependencies to place after the objects being linked to create a
  16687. # shared library.
  16688. postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16689. # Dependencies to place before the objects being linked to create a
  16690. # shared library.
  16691. predeps=$lt_predeps_RC
  16692. # Dependencies to place after the objects being linked to create a
  16693. # shared library.
  16694. postdeps=$lt_postdeps_RC
  16695. # The library search path used internally by the compiler when linking
  16696. # a shared library.
  16697. 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"\`
  16698. # Method to check whether dependent libraries are shared objects.
  16699. deplibs_check_method=$lt_deplibs_check_method
  16700. # Command to use when deplibs_check_method == file_magic.
  16701. file_magic_cmd=$lt_file_magic_cmd
  16702. # Flag that allows shared libraries with undefined symbols to be built.
  16703. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16704. # Flag that forces no undefined symbols.
  16705. no_undefined_flag=$lt_no_undefined_flag_RC
  16706. # Commands used to finish a libtool library installation in a directory.
  16707. finish_cmds=$lt_finish_cmds
  16708. # Same as above, but a single script fragment to be evaled but not shown.
  16709. finish_eval=$lt_finish_eval
  16710. # Take the output of nm and produce a listing of raw symbols and C names.
  16711. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16712. # Transform the output of nm in a proper C declaration
  16713. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16714. # Transform the output of nm in a C name address pair
  16715. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16716. # This is the shared library runtime path variable.
  16717. runpath_var=$runpath_var
  16718. # This is the shared library path variable.
  16719. shlibpath_var=$shlibpath_var
  16720. # Is shlibpath searched before the hard-coded library search path?
  16721. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16722. # How to hardcode a shared library path into an executable.
  16723. hardcode_action=$hardcode_action_RC
  16724. # Whether we should hardcode library paths into libraries.
  16725. hardcode_into_libs=$hardcode_into_libs
  16726. # Flag to hardcode \$libdir into a binary during linking.
  16727. # This must work even if \$libdir does not exist.
  16728. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16729. # If ld is used when linking, flag to hardcode \$libdir into
  16730. # a binary during linking. This must work even if \$libdir does
  16731. # not exist.
  16732. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16733. # Whether we need a single -rpath flag with a separated argument.
  16734. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16735. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16736. # resulting binary.
  16737. hardcode_direct=$hardcode_direct_RC
  16738. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16739. # resulting binary.
  16740. hardcode_minus_L=$hardcode_minus_L_RC
  16741. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16742. # the resulting binary.
  16743. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16744. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16745. # and all subsequent libraries and executables linked against it.
  16746. hardcode_automatic=$hardcode_automatic_RC
  16747. # Variables whose values should be saved in libtool wrapper scripts and
  16748. # restored at relink time.
  16749. variables_saved_for_relink="$variables_saved_for_relink"
  16750. # Whether libtool must link a program against all its dependency libraries.
  16751. link_all_deplibs=$link_all_deplibs_RC
  16752. # Compile-time system search path for libraries
  16753. 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"\`
  16754. # Run-time system search path for libraries
  16755. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16756. # Fix the shell variable \$srcfile for the compiler.
  16757. fix_srcfile_path="$fix_srcfile_path_RC"
  16758. # Set to yes if exported symbols are required.
  16759. always_export_symbols=$always_export_symbols_RC
  16760. # The commands to list exported symbols.
  16761. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16762. # The commands to extract the exported symbol list from a shared archive.
  16763. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16764. # Symbols that should not be listed in the preloaded symbols.
  16765. exclude_expsyms=$lt_exclude_expsyms_RC
  16766. # Symbols that must always be exported.
  16767. include_expsyms=$lt_include_expsyms_RC
  16768. # ### END LIBTOOL TAG CONFIG: $tagname
  16769. __EOF__
  16770. else
  16771. # If there is no Makefile yet, we rely on a make rule to execute
  16772. # `config.status --recheck' to rerun these tests and create the
  16773. # libtool script then.
  16774. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16775. if test -f "$ltmain_in"; then
  16776. test -f Makefile && make "$ltmain"
  16777. fi
  16778. fi
  16779. ac_ext=c
  16780. ac_cpp='$CPP $CPPFLAGS'
  16781. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16782. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16783. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16784. CC="$lt_save_CC"
  16785. ;;
  16786. *)
  16787. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16788. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16789. { (exit 1); exit 1; }; }
  16790. ;;
  16791. esac
  16792. # Append the new tag name to the list of available tags.
  16793. if test -n "$tagname" ; then
  16794. available_tags="$available_tags $tagname"
  16795. fi
  16796. fi
  16797. done
  16798. IFS="$lt_save_ifs"
  16799. # Now substitute the updated list of available tags.
  16800. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16801. mv "${ofile}T" "$ofile"
  16802. chmod +x "$ofile"
  16803. else
  16804. rm -f "${ofile}T"
  16805. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16806. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16807. { (exit 1); exit 1; }; }
  16808. fi
  16809. fi
  16810. # This can be used to rebuild libtool when needed
  16811. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16812. # Always use our own libtool.
  16813. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16814. # Prevent multiple expansion
  16815. # Checks for header files.
  16816. ac_header_dirent=no
  16817. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16818. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16819. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16820. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16821. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16822. echo $ECHO_N "(cached) $ECHO_C" >&6
  16823. else
  16824. cat >conftest.$ac_ext <<_ACEOF
  16825. /* confdefs.h. */
  16826. _ACEOF
  16827. cat confdefs.h >>conftest.$ac_ext
  16828. cat >>conftest.$ac_ext <<_ACEOF
  16829. /* end confdefs.h. */
  16830. #include <sys/types.h>
  16831. #include <$ac_hdr>
  16832. int
  16833. main ()
  16834. {
  16835. if ((DIR *) 0)
  16836. return 0;
  16837. ;
  16838. return 0;
  16839. }
  16840. _ACEOF
  16841. rm -f conftest.$ac_objext
  16842. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16843. (eval $ac_compile) 2>conftest.er1
  16844. ac_status=$?
  16845. grep -v '^ *+' conftest.er1 >conftest.err
  16846. rm -f conftest.er1
  16847. cat conftest.err >&5
  16848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16849. (exit $ac_status); } &&
  16850. { ac_try='test -z "$ac_c_werror_flag"
  16851. || test ! -s conftest.err'
  16852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16853. (eval $ac_try) 2>&5
  16854. ac_status=$?
  16855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16856. (exit $ac_status); }; } &&
  16857. { ac_try='test -s conftest.$ac_objext'
  16858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16859. (eval $ac_try) 2>&5
  16860. ac_status=$?
  16861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16862. (exit $ac_status); }; }; then
  16863. eval "$as_ac_Header=yes"
  16864. else
  16865. echo "$as_me: failed program was:" >&5
  16866. sed 's/^/| /' conftest.$ac_ext >&5
  16867. eval "$as_ac_Header=no"
  16868. fi
  16869. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16870. fi
  16871. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16872. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16873. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16874. cat >>confdefs.h <<_ACEOF
  16875. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16876. _ACEOF
  16877. ac_header_dirent=$ac_hdr; break
  16878. fi
  16879. done
  16880. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16881. if test $ac_header_dirent = dirent.h; then
  16882. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16883. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16884. if test "${ac_cv_search_opendir+set}" = set; then
  16885. echo $ECHO_N "(cached) $ECHO_C" >&6
  16886. else
  16887. ac_func_search_save_LIBS=$LIBS
  16888. ac_cv_search_opendir=no
  16889. cat >conftest.$ac_ext <<_ACEOF
  16890. /* confdefs.h. */
  16891. _ACEOF
  16892. cat confdefs.h >>conftest.$ac_ext
  16893. cat >>conftest.$ac_ext <<_ACEOF
  16894. /* end confdefs.h. */
  16895. /* Override any gcc2 internal prototype to avoid an error. */
  16896. #ifdef __cplusplus
  16897. extern "C"
  16898. #endif
  16899. /* We use char because int might match the return type of a gcc2
  16900. builtin and then its argument prototype would still apply. */
  16901. char opendir ();
  16902. int
  16903. main ()
  16904. {
  16905. opendir ();
  16906. ;
  16907. return 0;
  16908. }
  16909. _ACEOF
  16910. rm -f conftest.$ac_objext conftest$ac_exeext
  16911. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16912. (eval $ac_link) 2>conftest.er1
  16913. ac_status=$?
  16914. grep -v '^ *+' conftest.er1 >conftest.err
  16915. rm -f conftest.er1
  16916. cat conftest.err >&5
  16917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16918. (exit $ac_status); } &&
  16919. { ac_try='test -z "$ac_c_werror_flag"
  16920. || test ! -s conftest.err'
  16921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16922. (eval $ac_try) 2>&5
  16923. ac_status=$?
  16924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16925. (exit $ac_status); }; } &&
  16926. { ac_try='test -s conftest$ac_exeext'
  16927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16928. (eval $ac_try) 2>&5
  16929. ac_status=$?
  16930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16931. (exit $ac_status); }; }; then
  16932. ac_cv_search_opendir="none required"
  16933. else
  16934. echo "$as_me: failed program was:" >&5
  16935. sed 's/^/| /' conftest.$ac_ext >&5
  16936. fi
  16937. rm -f conftest.err conftest.$ac_objext \
  16938. conftest$ac_exeext conftest.$ac_ext
  16939. if test "$ac_cv_search_opendir" = no; then
  16940. for ac_lib in dir; do
  16941. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16942. cat >conftest.$ac_ext <<_ACEOF
  16943. /* confdefs.h. */
  16944. _ACEOF
  16945. cat confdefs.h >>conftest.$ac_ext
  16946. cat >>conftest.$ac_ext <<_ACEOF
  16947. /* end confdefs.h. */
  16948. /* Override any gcc2 internal prototype to avoid an error. */
  16949. #ifdef __cplusplus
  16950. extern "C"
  16951. #endif
  16952. /* We use char because int might match the return type of a gcc2
  16953. builtin and then its argument prototype would still apply. */
  16954. char opendir ();
  16955. int
  16956. main ()
  16957. {
  16958. opendir ();
  16959. ;
  16960. return 0;
  16961. }
  16962. _ACEOF
  16963. rm -f conftest.$ac_objext conftest$ac_exeext
  16964. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16965. (eval $ac_link) 2>conftest.er1
  16966. ac_status=$?
  16967. grep -v '^ *+' conftest.er1 >conftest.err
  16968. rm -f conftest.er1
  16969. cat conftest.err >&5
  16970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16971. (exit $ac_status); } &&
  16972. { ac_try='test -z "$ac_c_werror_flag"
  16973. || test ! -s conftest.err'
  16974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16975. (eval $ac_try) 2>&5
  16976. ac_status=$?
  16977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16978. (exit $ac_status); }; } &&
  16979. { ac_try='test -s conftest$ac_exeext'
  16980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16981. (eval $ac_try) 2>&5
  16982. ac_status=$?
  16983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16984. (exit $ac_status); }; }; then
  16985. ac_cv_search_opendir="-l$ac_lib"
  16986. break
  16987. else
  16988. echo "$as_me: failed program was:" >&5
  16989. sed 's/^/| /' conftest.$ac_ext >&5
  16990. fi
  16991. rm -f conftest.err conftest.$ac_objext \
  16992. conftest$ac_exeext conftest.$ac_ext
  16993. done
  16994. fi
  16995. LIBS=$ac_func_search_save_LIBS
  16996. fi
  16997. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16998. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16999. if test "$ac_cv_search_opendir" != no; then
  17000. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17001. fi
  17002. else
  17003. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17004. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  17005. if test "${ac_cv_search_opendir+set}" = set; then
  17006. echo $ECHO_N "(cached) $ECHO_C" >&6
  17007. else
  17008. ac_func_search_save_LIBS=$LIBS
  17009. ac_cv_search_opendir=no
  17010. cat >conftest.$ac_ext <<_ACEOF
  17011. /* confdefs.h. */
  17012. _ACEOF
  17013. cat confdefs.h >>conftest.$ac_ext
  17014. cat >>conftest.$ac_ext <<_ACEOF
  17015. /* end confdefs.h. */
  17016. /* Override any gcc2 internal prototype to avoid an error. */
  17017. #ifdef __cplusplus
  17018. extern "C"
  17019. #endif
  17020. /* We use char because int might match the return type of a gcc2
  17021. builtin and then its argument prototype would still apply. */
  17022. char opendir ();
  17023. int
  17024. main ()
  17025. {
  17026. opendir ();
  17027. ;
  17028. return 0;
  17029. }
  17030. _ACEOF
  17031. rm -f conftest.$ac_objext conftest$ac_exeext
  17032. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17033. (eval $ac_link) 2>conftest.er1
  17034. ac_status=$?
  17035. grep -v '^ *+' conftest.er1 >conftest.err
  17036. rm -f conftest.er1
  17037. cat conftest.err >&5
  17038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17039. (exit $ac_status); } &&
  17040. { ac_try='test -z "$ac_c_werror_flag"
  17041. || test ! -s conftest.err'
  17042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17043. (eval $ac_try) 2>&5
  17044. ac_status=$?
  17045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17046. (exit $ac_status); }; } &&
  17047. { ac_try='test -s conftest$ac_exeext'
  17048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17049. (eval $ac_try) 2>&5
  17050. ac_status=$?
  17051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17052. (exit $ac_status); }; }; then
  17053. ac_cv_search_opendir="none required"
  17054. else
  17055. echo "$as_me: failed program was:" >&5
  17056. sed 's/^/| /' conftest.$ac_ext >&5
  17057. fi
  17058. rm -f conftest.err conftest.$ac_objext \
  17059. conftest$ac_exeext conftest.$ac_ext
  17060. if test "$ac_cv_search_opendir" = no; then
  17061. for ac_lib in x; do
  17062. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17063. cat >conftest.$ac_ext <<_ACEOF
  17064. /* confdefs.h. */
  17065. _ACEOF
  17066. cat confdefs.h >>conftest.$ac_ext
  17067. cat >>conftest.$ac_ext <<_ACEOF
  17068. /* end confdefs.h. */
  17069. /* Override any gcc2 internal prototype to avoid an error. */
  17070. #ifdef __cplusplus
  17071. extern "C"
  17072. #endif
  17073. /* We use char because int might match the return type of a gcc2
  17074. builtin and then its argument prototype would still apply. */
  17075. char opendir ();
  17076. int
  17077. main ()
  17078. {
  17079. opendir ();
  17080. ;
  17081. return 0;
  17082. }
  17083. _ACEOF
  17084. rm -f conftest.$ac_objext conftest$ac_exeext
  17085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17086. (eval $ac_link) 2>conftest.er1
  17087. ac_status=$?
  17088. grep -v '^ *+' conftest.er1 >conftest.err
  17089. rm -f conftest.er1
  17090. cat conftest.err >&5
  17091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17092. (exit $ac_status); } &&
  17093. { ac_try='test -z "$ac_c_werror_flag"
  17094. || test ! -s conftest.err'
  17095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17096. (eval $ac_try) 2>&5
  17097. ac_status=$?
  17098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17099. (exit $ac_status); }; } &&
  17100. { ac_try='test -s conftest$ac_exeext'
  17101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17102. (eval $ac_try) 2>&5
  17103. ac_status=$?
  17104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17105. (exit $ac_status); }; }; then
  17106. ac_cv_search_opendir="-l$ac_lib"
  17107. break
  17108. else
  17109. echo "$as_me: failed program was:" >&5
  17110. sed 's/^/| /' conftest.$ac_ext >&5
  17111. fi
  17112. rm -f conftest.err conftest.$ac_objext \
  17113. conftest$ac_exeext conftest.$ac_ext
  17114. done
  17115. fi
  17116. LIBS=$ac_func_search_save_LIBS
  17117. fi
  17118. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17119. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17120. if test "$ac_cv_search_opendir" != no; then
  17121. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17122. fi
  17123. fi
  17124. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17125. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17126. if test "${ac_cv_header_stdc+set}" = set; then
  17127. echo $ECHO_N "(cached) $ECHO_C" >&6
  17128. else
  17129. cat >conftest.$ac_ext <<_ACEOF
  17130. /* confdefs.h. */
  17131. _ACEOF
  17132. cat confdefs.h >>conftest.$ac_ext
  17133. cat >>conftest.$ac_ext <<_ACEOF
  17134. /* end confdefs.h. */
  17135. #include <stdlib.h>
  17136. #include <stdarg.h>
  17137. #include <string.h>
  17138. #include <float.h>
  17139. int
  17140. main ()
  17141. {
  17142. ;
  17143. return 0;
  17144. }
  17145. _ACEOF
  17146. rm -f conftest.$ac_objext
  17147. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17148. (eval $ac_compile) 2>conftest.er1
  17149. ac_status=$?
  17150. grep -v '^ *+' conftest.er1 >conftest.err
  17151. rm -f conftest.er1
  17152. cat conftest.err >&5
  17153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17154. (exit $ac_status); } &&
  17155. { ac_try='test -z "$ac_c_werror_flag"
  17156. || test ! -s conftest.err'
  17157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17158. (eval $ac_try) 2>&5
  17159. ac_status=$?
  17160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17161. (exit $ac_status); }; } &&
  17162. { ac_try='test -s conftest.$ac_objext'
  17163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17164. (eval $ac_try) 2>&5
  17165. ac_status=$?
  17166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17167. (exit $ac_status); }; }; then
  17168. ac_cv_header_stdc=yes
  17169. else
  17170. echo "$as_me: failed program was:" >&5
  17171. sed 's/^/| /' conftest.$ac_ext >&5
  17172. ac_cv_header_stdc=no
  17173. fi
  17174. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17175. if test $ac_cv_header_stdc = yes; then
  17176. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17177. cat >conftest.$ac_ext <<_ACEOF
  17178. /* confdefs.h. */
  17179. _ACEOF
  17180. cat confdefs.h >>conftest.$ac_ext
  17181. cat >>conftest.$ac_ext <<_ACEOF
  17182. /* end confdefs.h. */
  17183. #include <string.h>
  17184. _ACEOF
  17185. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17186. $EGREP "memchr" >/dev/null 2>&1; then
  17187. :
  17188. else
  17189. ac_cv_header_stdc=no
  17190. fi
  17191. rm -f conftest*
  17192. fi
  17193. if test $ac_cv_header_stdc = yes; then
  17194. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17195. cat >conftest.$ac_ext <<_ACEOF
  17196. /* confdefs.h. */
  17197. _ACEOF
  17198. cat confdefs.h >>conftest.$ac_ext
  17199. cat >>conftest.$ac_ext <<_ACEOF
  17200. /* end confdefs.h. */
  17201. #include <stdlib.h>
  17202. _ACEOF
  17203. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17204. $EGREP "free" >/dev/null 2>&1; then
  17205. :
  17206. else
  17207. ac_cv_header_stdc=no
  17208. fi
  17209. rm -f conftest*
  17210. fi
  17211. if test $ac_cv_header_stdc = yes; then
  17212. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17213. if test "$cross_compiling" = yes; then
  17214. :
  17215. else
  17216. cat >conftest.$ac_ext <<_ACEOF
  17217. /* confdefs.h. */
  17218. _ACEOF
  17219. cat confdefs.h >>conftest.$ac_ext
  17220. cat >>conftest.$ac_ext <<_ACEOF
  17221. /* end confdefs.h. */
  17222. #include <ctype.h>
  17223. #if ((' ' & 0x0FF) == 0x020)
  17224. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17225. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17226. #else
  17227. # define ISLOWER(c) \
  17228. (('a' <= (c) && (c) <= 'i') \
  17229. || ('j' <= (c) && (c) <= 'r') \
  17230. || ('s' <= (c) && (c) <= 'z'))
  17231. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17232. #endif
  17233. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17234. int
  17235. main ()
  17236. {
  17237. int i;
  17238. for (i = 0; i < 256; i++)
  17239. if (XOR (islower (i), ISLOWER (i))
  17240. || toupper (i) != TOUPPER (i))
  17241. exit(2);
  17242. exit (0);
  17243. }
  17244. _ACEOF
  17245. rm -f conftest$ac_exeext
  17246. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17247. (eval $ac_link) 2>&5
  17248. ac_status=$?
  17249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17250. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17252. (eval $ac_try) 2>&5
  17253. ac_status=$?
  17254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17255. (exit $ac_status); }; }; then
  17256. :
  17257. else
  17258. echo "$as_me: program exited with status $ac_status" >&5
  17259. echo "$as_me: failed program was:" >&5
  17260. sed 's/^/| /' conftest.$ac_ext >&5
  17261. ( exit $ac_status )
  17262. ac_cv_header_stdc=no
  17263. fi
  17264. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17265. fi
  17266. fi
  17267. fi
  17268. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17269. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17270. if test $ac_cv_header_stdc = yes; then
  17271. cat >>confdefs.h <<\_ACEOF
  17272. #define STDC_HEADERS 1
  17273. _ACEOF
  17274. fi
  17275. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17276. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17277. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17278. echo $ECHO_N "(cached) $ECHO_C" >&6
  17279. else
  17280. cat >conftest.$ac_ext <<_ACEOF
  17281. /* confdefs.h. */
  17282. _ACEOF
  17283. cat confdefs.h >>conftest.$ac_ext
  17284. cat >>conftest.$ac_ext <<_ACEOF
  17285. /* end confdefs.h. */
  17286. #include <sys/types.h>
  17287. #include <sys/wait.h>
  17288. #ifndef WEXITSTATUS
  17289. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17290. #endif
  17291. #ifndef WIFEXITED
  17292. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17293. #endif
  17294. int
  17295. main ()
  17296. {
  17297. int s;
  17298. wait (&s);
  17299. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17300. ;
  17301. return 0;
  17302. }
  17303. _ACEOF
  17304. rm -f conftest.$ac_objext
  17305. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17306. (eval $ac_compile) 2>conftest.er1
  17307. ac_status=$?
  17308. grep -v '^ *+' conftest.er1 >conftest.err
  17309. rm -f conftest.er1
  17310. cat conftest.err >&5
  17311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17312. (exit $ac_status); } &&
  17313. { ac_try='test -z "$ac_c_werror_flag"
  17314. || test ! -s conftest.err'
  17315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17316. (eval $ac_try) 2>&5
  17317. ac_status=$?
  17318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17319. (exit $ac_status); }; } &&
  17320. { ac_try='test -s conftest.$ac_objext'
  17321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17322. (eval $ac_try) 2>&5
  17323. ac_status=$?
  17324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17325. (exit $ac_status); }; }; then
  17326. ac_cv_header_sys_wait_h=yes
  17327. else
  17328. echo "$as_me: failed program was:" >&5
  17329. sed 's/^/| /' conftest.$ac_ext >&5
  17330. ac_cv_header_sys_wait_h=no
  17331. fi
  17332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17333. fi
  17334. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17335. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17336. if test $ac_cv_header_sys_wait_h = yes; then
  17337. cat >>confdefs.h <<\_ACEOF
  17338. #define HAVE_SYS_WAIT_H 1
  17339. _ACEOF
  17340. fi
  17341. 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
  17342. do
  17343. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17344. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17345. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17346. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17347. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17348. echo $ECHO_N "(cached) $ECHO_C" >&6
  17349. fi
  17350. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17351. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17352. else
  17353. # Is the header compilable?
  17354. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17355. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17356. cat >conftest.$ac_ext <<_ACEOF
  17357. /* confdefs.h. */
  17358. _ACEOF
  17359. cat confdefs.h >>conftest.$ac_ext
  17360. cat >>conftest.$ac_ext <<_ACEOF
  17361. /* end confdefs.h. */
  17362. $ac_includes_default
  17363. #include <$ac_header>
  17364. _ACEOF
  17365. rm -f conftest.$ac_objext
  17366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17367. (eval $ac_compile) 2>conftest.er1
  17368. ac_status=$?
  17369. grep -v '^ *+' conftest.er1 >conftest.err
  17370. rm -f conftest.er1
  17371. cat conftest.err >&5
  17372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17373. (exit $ac_status); } &&
  17374. { ac_try='test -z "$ac_c_werror_flag"
  17375. || test ! -s conftest.err'
  17376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17377. (eval $ac_try) 2>&5
  17378. ac_status=$?
  17379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17380. (exit $ac_status); }; } &&
  17381. { ac_try='test -s conftest.$ac_objext'
  17382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17383. (eval $ac_try) 2>&5
  17384. ac_status=$?
  17385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17386. (exit $ac_status); }; }; then
  17387. ac_header_compiler=yes
  17388. else
  17389. echo "$as_me: failed program was:" >&5
  17390. sed 's/^/| /' conftest.$ac_ext >&5
  17391. ac_header_compiler=no
  17392. fi
  17393. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17394. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17395. echo "${ECHO_T}$ac_header_compiler" >&6
  17396. # Is the header present?
  17397. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17398. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17399. cat >conftest.$ac_ext <<_ACEOF
  17400. /* confdefs.h. */
  17401. _ACEOF
  17402. cat confdefs.h >>conftest.$ac_ext
  17403. cat >>conftest.$ac_ext <<_ACEOF
  17404. /* end confdefs.h. */
  17405. #include <$ac_header>
  17406. _ACEOF
  17407. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17408. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17409. ac_status=$?
  17410. grep -v '^ *+' conftest.er1 >conftest.err
  17411. rm -f conftest.er1
  17412. cat conftest.err >&5
  17413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17414. (exit $ac_status); } >/dev/null; then
  17415. if test -s conftest.err; then
  17416. ac_cpp_err=$ac_c_preproc_warn_flag
  17417. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17418. else
  17419. ac_cpp_err=
  17420. fi
  17421. else
  17422. ac_cpp_err=yes
  17423. fi
  17424. if test -z "$ac_cpp_err"; then
  17425. ac_header_preproc=yes
  17426. else
  17427. echo "$as_me: failed program was:" >&5
  17428. sed 's/^/| /' conftest.$ac_ext >&5
  17429. ac_header_preproc=no
  17430. fi
  17431. rm -f conftest.err conftest.$ac_ext
  17432. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17433. echo "${ECHO_T}$ac_header_preproc" >&6
  17434. # So? What about this header?
  17435. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17436. yes:no: )
  17437. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17438. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17439. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17440. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17441. ac_header_preproc=yes
  17442. ;;
  17443. no:yes:* )
  17444. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17445. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17446. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17447. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17448. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17449. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17450. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17451. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17452. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17453. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17454. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17455. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17456. (
  17457. cat <<\_ASBOX
  17458. ## ------------------------------------------ ##
  17459. ## Report this to http://bugzilla.redhat.com/ ##
  17460. ## ------------------------------------------ ##
  17461. _ASBOX
  17462. ) |
  17463. sed "s/^/$as_me: WARNING: /" >&2
  17464. ;;
  17465. esac
  17466. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17467. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17468. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17469. echo $ECHO_N "(cached) $ECHO_C" >&6
  17470. else
  17471. eval "$as_ac_Header=\$ac_header_preproc"
  17472. fi
  17473. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17474. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17475. fi
  17476. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17477. cat >>confdefs.h <<_ACEOF
  17478. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17479. _ACEOF
  17480. fi
  17481. done
  17482. # Checks for typedefs, structures, and compiler characteristics.
  17483. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17484. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17485. if test "${ac_cv_header_stat_broken+set}" = set; then
  17486. echo $ECHO_N "(cached) $ECHO_C" >&6
  17487. else
  17488. cat >conftest.$ac_ext <<_ACEOF
  17489. /* confdefs.h. */
  17490. _ACEOF
  17491. cat confdefs.h >>conftest.$ac_ext
  17492. cat >>conftest.$ac_ext <<_ACEOF
  17493. /* end confdefs.h. */
  17494. #include <sys/types.h>
  17495. #include <sys/stat.h>
  17496. #if defined(S_ISBLK) && defined(S_IFDIR)
  17497. # if S_ISBLK (S_IFDIR)
  17498. You lose.
  17499. # endif
  17500. #endif
  17501. #if defined(S_ISBLK) && defined(S_IFCHR)
  17502. # if S_ISBLK (S_IFCHR)
  17503. You lose.
  17504. # endif
  17505. #endif
  17506. #if defined(S_ISLNK) && defined(S_IFREG)
  17507. # if S_ISLNK (S_IFREG)
  17508. You lose.
  17509. # endif
  17510. #endif
  17511. #if defined(S_ISSOCK) && defined(S_IFREG)
  17512. # if S_ISSOCK (S_IFREG)
  17513. You lose.
  17514. # endif
  17515. #endif
  17516. _ACEOF
  17517. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17518. $EGREP "You lose" >/dev/null 2>&1; then
  17519. ac_cv_header_stat_broken=yes
  17520. else
  17521. ac_cv_header_stat_broken=no
  17522. fi
  17523. rm -f conftest*
  17524. fi
  17525. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17526. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17527. if test $ac_cv_header_stat_broken = yes; then
  17528. cat >>confdefs.h <<\_ACEOF
  17529. #define STAT_MACROS_BROKEN 1
  17530. _ACEOF
  17531. fi
  17532. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17533. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17534. if test "${ac_cv_c_const+set}" = set; then
  17535. echo $ECHO_N "(cached) $ECHO_C" >&6
  17536. else
  17537. cat >conftest.$ac_ext <<_ACEOF
  17538. /* confdefs.h. */
  17539. _ACEOF
  17540. cat confdefs.h >>conftest.$ac_ext
  17541. cat >>conftest.$ac_ext <<_ACEOF
  17542. /* end confdefs.h. */
  17543. int
  17544. main ()
  17545. {
  17546. /* FIXME: Include the comments suggested by Paul. */
  17547. #ifndef __cplusplus
  17548. /* Ultrix mips cc rejects this. */
  17549. typedef int charset[2];
  17550. const charset x;
  17551. /* SunOS 4.1.1 cc rejects this. */
  17552. char const *const *ccp;
  17553. char **p;
  17554. /* NEC SVR4.0.2 mips cc rejects this. */
  17555. struct point {int x, y;};
  17556. static struct point const zero = {0,0};
  17557. /* AIX XL C 1.02.0.0 rejects this.
  17558. It does not let you subtract one const X* pointer from another in
  17559. an arm of an if-expression whose if-part is not a constant
  17560. expression */
  17561. const char *g = "string";
  17562. ccp = &g + (g ? g-g : 0);
  17563. /* HPUX 7.0 cc rejects these. */
  17564. ++ccp;
  17565. p = (char**) ccp;
  17566. ccp = (char const *const *) p;
  17567. { /* SCO 3.2v4 cc rejects this. */
  17568. char *t;
  17569. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17570. *t++ = 0;
  17571. }
  17572. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17573. int x[] = {25, 17};
  17574. const int *foo = &x[0];
  17575. ++foo;
  17576. }
  17577. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17578. typedef const int *iptr;
  17579. iptr p = 0;
  17580. ++p;
  17581. }
  17582. { /* AIX XL C 1.02.0.0 rejects this saying
  17583. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17584. struct s { int j; const int *ap[3]; };
  17585. struct s *b; b->j = 5;
  17586. }
  17587. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17588. const int foo = 10;
  17589. }
  17590. #endif
  17591. ;
  17592. return 0;
  17593. }
  17594. _ACEOF
  17595. rm -f conftest.$ac_objext
  17596. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17597. (eval $ac_compile) 2>conftest.er1
  17598. ac_status=$?
  17599. grep -v '^ *+' conftest.er1 >conftest.err
  17600. rm -f conftest.er1
  17601. cat conftest.err >&5
  17602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17603. (exit $ac_status); } &&
  17604. { ac_try='test -z "$ac_c_werror_flag"
  17605. || test ! -s conftest.err'
  17606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17607. (eval $ac_try) 2>&5
  17608. ac_status=$?
  17609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17610. (exit $ac_status); }; } &&
  17611. { ac_try='test -s conftest.$ac_objext'
  17612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17613. (eval $ac_try) 2>&5
  17614. ac_status=$?
  17615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17616. (exit $ac_status); }; }; then
  17617. ac_cv_c_const=yes
  17618. else
  17619. echo "$as_me: failed program was:" >&5
  17620. sed 's/^/| /' conftest.$ac_ext >&5
  17621. ac_cv_c_const=no
  17622. fi
  17623. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17624. fi
  17625. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17626. echo "${ECHO_T}$ac_cv_c_const" >&6
  17627. if test $ac_cv_c_const = no; then
  17628. cat >>confdefs.h <<\_ACEOF
  17629. #define const
  17630. _ACEOF
  17631. fi
  17632. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17633. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17634. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17635. echo $ECHO_N "(cached) $ECHO_C" >&6
  17636. else
  17637. cat >conftest.$ac_ext <<_ACEOF
  17638. /* confdefs.h. */
  17639. _ACEOF
  17640. cat confdefs.h >>conftest.$ac_ext
  17641. cat >>conftest.$ac_ext <<_ACEOF
  17642. /* end confdefs.h. */
  17643. #include <stdbool.h>
  17644. #ifndef bool
  17645. # error bool is not defined
  17646. #endif
  17647. #ifndef false
  17648. # error false is not defined
  17649. #endif
  17650. #if false
  17651. # error false is not 0
  17652. #endif
  17653. #ifndef true
  17654. # error true is not defined
  17655. #endif
  17656. #if true != 1
  17657. # error true is not 1
  17658. #endif
  17659. #ifndef __bool_true_false_are_defined
  17660. # error __bool_true_false_are_defined is not defined
  17661. #endif
  17662. struct s { _Bool s: 1; _Bool t; } s;
  17663. char a[true == 1 ? 1 : -1];
  17664. char b[false == 0 ? 1 : -1];
  17665. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17666. char d[(bool) -0.5 == true ? 1 : -1];
  17667. bool e = &s;
  17668. char f[(_Bool) -0.0 == false ? 1 : -1];
  17669. char g[true];
  17670. char h[sizeof (_Bool)];
  17671. char i[sizeof s.t];
  17672. int
  17673. main ()
  17674. {
  17675. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17676. ;
  17677. return 0;
  17678. }
  17679. _ACEOF
  17680. rm -f conftest.$ac_objext
  17681. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17682. (eval $ac_compile) 2>conftest.er1
  17683. ac_status=$?
  17684. grep -v '^ *+' conftest.er1 >conftest.err
  17685. rm -f conftest.er1
  17686. cat conftest.err >&5
  17687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17688. (exit $ac_status); } &&
  17689. { ac_try='test -z "$ac_c_werror_flag"
  17690. || test ! -s conftest.err'
  17691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17692. (eval $ac_try) 2>&5
  17693. ac_status=$?
  17694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17695. (exit $ac_status); }; } &&
  17696. { ac_try='test -s conftest.$ac_objext'
  17697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17698. (eval $ac_try) 2>&5
  17699. ac_status=$?
  17700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17701. (exit $ac_status); }; }; then
  17702. ac_cv_header_stdbool_h=yes
  17703. else
  17704. echo "$as_me: failed program was:" >&5
  17705. sed 's/^/| /' conftest.$ac_ext >&5
  17706. ac_cv_header_stdbool_h=no
  17707. fi
  17708. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17709. fi
  17710. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17711. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17712. echo "$as_me:$LINENO: checking for _Bool" >&5
  17713. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17714. if test "${ac_cv_type__Bool+set}" = set; then
  17715. echo $ECHO_N "(cached) $ECHO_C" >&6
  17716. else
  17717. cat >conftest.$ac_ext <<_ACEOF
  17718. /* confdefs.h. */
  17719. _ACEOF
  17720. cat confdefs.h >>conftest.$ac_ext
  17721. cat >>conftest.$ac_ext <<_ACEOF
  17722. /* end confdefs.h. */
  17723. $ac_includes_default
  17724. int
  17725. main ()
  17726. {
  17727. if ((_Bool *) 0)
  17728. return 0;
  17729. if (sizeof (_Bool))
  17730. return 0;
  17731. ;
  17732. return 0;
  17733. }
  17734. _ACEOF
  17735. rm -f conftest.$ac_objext
  17736. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17737. (eval $ac_compile) 2>conftest.er1
  17738. ac_status=$?
  17739. grep -v '^ *+' conftest.er1 >conftest.err
  17740. rm -f conftest.er1
  17741. cat conftest.err >&5
  17742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17743. (exit $ac_status); } &&
  17744. { ac_try='test -z "$ac_c_werror_flag"
  17745. || test ! -s conftest.err'
  17746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17747. (eval $ac_try) 2>&5
  17748. ac_status=$?
  17749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17750. (exit $ac_status); }; } &&
  17751. { ac_try='test -s conftest.$ac_objext'
  17752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17753. (eval $ac_try) 2>&5
  17754. ac_status=$?
  17755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17756. (exit $ac_status); }; }; then
  17757. ac_cv_type__Bool=yes
  17758. else
  17759. echo "$as_me: failed program was:" >&5
  17760. sed 's/^/| /' conftest.$ac_ext >&5
  17761. ac_cv_type__Bool=no
  17762. fi
  17763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17764. fi
  17765. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17766. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17767. if test $ac_cv_type__Bool = yes; then
  17768. cat >>confdefs.h <<_ACEOF
  17769. #define HAVE__BOOL 1
  17770. _ACEOF
  17771. fi
  17772. if test $ac_cv_header_stdbool_h = yes; then
  17773. cat >>confdefs.h <<\_ACEOF
  17774. #define HAVE_STDBOOL_H 1
  17775. _ACEOF
  17776. fi
  17777. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17778. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17779. if test "${ac_cv_type_uid_t+set}" = set; then
  17780. echo $ECHO_N "(cached) $ECHO_C" >&6
  17781. else
  17782. cat >conftest.$ac_ext <<_ACEOF
  17783. /* confdefs.h. */
  17784. _ACEOF
  17785. cat confdefs.h >>conftest.$ac_ext
  17786. cat >>conftest.$ac_ext <<_ACEOF
  17787. /* end confdefs.h. */
  17788. #include <sys/types.h>
  17789. _ACEOF
  17790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17791. $EGREP "uid_t" >/dev/null 2>&1; then
  17792. ac_cv_type_uid_t=yes
  17793. else
  17794. ac_cv_type_uid_t=no
  17795. fi
  17796. rm -f conftest*
  17797. fi
  17798. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17799. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17800. if test $ac_cv_type_uid_t = no; then
  17801. cat >>confdefs.h <<\_ACEOF
  17802. #define uid_t int
  17803. _ACEOF
  17804. cat >>confdefs.h <<\_ACEOF
  17805. #define gid_t int
  17806. _ACEOF
  17807. fi
  17808. echo "$as_me:$LINENO: checking for pid_t" >&5
  17809. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17810. if test "${ac_cv_type_pid_t+set}" = set; then
  17811. echo $ECHO_N "(cached) $ECHO_C" >&6
  17812. else
  17813. cat >conftest.$ac_ext <<_ACEOF
  17814. /* confdefs.h. */
  17815. _ACEOF
  17816. cat confdefs.h >>conftest.$ac_ext
  17817. cat >>conftest.$ac_ext <<_ACEOF
  17818. /* end confdefs.h. */
  17819. $ac_includes_default
  17820. int
  17821. main ()
  17822. {
  17823. if ((pid_t *) 0)
  17824. return 0;
  17825. if (sizeof (pid_t))
  17826. return 0;
  17827. ;
  17828. return 0;
  17829. }
  17830. _ACEOF
  17831. rm -f conftest.$ac_objext
  17832. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17833. (eval $ac_compile) 2>conftest.er1
  17834. ac_status=$?
  17835. grep -v '^ *+' conftest.er1 >conftest.err
  17836. rm -f conftest.er1
  17837. cat conftest.err >&5
  17838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17839. (exit $ac_status); } &&
  17840. { ac_try='test -z "$ac_c_werror_flag"
  17841. || test ! -s conftest.err'
  17842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17843. (eval $ac_try) 2>&5
  17844. ac_status=$?
  17845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17846. (exit $ac_status); }; } &&
  17847. { ac_try='test -s conftest.$ac_objext'
  17848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17849. (eval $ac_try) 2>&5
  17850. ac_status=$?
  17851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17852. (exit $ac_status); }; }; then
  17853. ac_cv_type_pid_t=yes
  17854. else
  17855. echo "$as_me: failed program was:" >&5
  17856. sed 's/^/| /' conftest.$ac_ext >&5
  17857. ac_cv_type_pid_t=no
  17858. fi
  17859. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17860. fi
  17861. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17862. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17863. if test $ac_cv_type_pid_t = yes; then
  17864. :
  17865. else
  17866. cat >>confdefs.h <<_ACEOF
  17867. #define pid_t int
  17868. _ACEOF
  17869. fi
  17870. echo "$as_me:$LINENO: checking for size_t" >&5
  17871. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17872. if test "${ac_cv_type_size_t+set}" = set; then
  17873. echo $ECHO_N "(cached) $ECHO_C" >&6
  17874. else
  17875. cat >conftest.$ac_ext <<_ACEOF
  17876. /* confdefs.h. */
  17877. _ACEOF
  17878. cat confdefs.h >>conftest.$ac_ext
  17879. cat >>conftest.$ac_ext <<_ACEOF
  17880. /* end confdefs.h. */
  17881. $ac_includes_default
  17882. int
  17883. main ()
  17884. {
  17885. if ((size_t *) 0)
  17886. return 0;
  17887. if (sizeof (size_t))
  17888. return 0;
  17889. ;
  17890. return 0;
  17891. }
  17892. _ACEOF
  17893. rm -f conftest.$ac_objext
  17894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17895. (eval $ac_compile) 2>conftest.er1
  17896. ac_status=$?
  17897. grep -v '^ *+' conftest.er1 >conftest.err
  17898. rm -f conftest.er1
  17899. cat conftest.err >&5
  17900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17901. (exit $ac_status); } &&
  17902. { ac_try='test -z "$ac_c_werror_flag"
  17903. || test ! -s conftest.err'
  17904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17905. (eval $ac_try) 2>&5
  17906. ac_status=$?
  17907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17908. (exit $ac_status); }; } &&
  17909. { ac_try='test -s conftest.$ac_objext'
  17910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17911. (eval $ac_try) 2>&5
  17912. ac_status=$?
  17913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17914. (exit $ac_status); }; }; then
  17915. ac_cv_type_size_t=yes
  17916. else
  17917. echo "$as_me: failed program was:" >&5
  17918. sed 's/^/| /' conftest.$ac_ext >&5
  17919. ac_cv_type_size_t=no
  17920. fi
  17921. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17922. fi
  17923. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17924. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17925. if test $ac_cv_type_size_t = yes; then
  17926. :
  17927. else
  17928. cat >>confdefs.h <<_ACEOF
  17929. #define size_t unsigned
  17930. _ACEOF
  17931. fi
  17932. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17933. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17934. if test "${ac_cv_header_time+set}" = set; then
  17935. echo $ECHO_N "(cached) $ECHO_C" >&6
  17936. else
  17937. cat >conftest.$ac_ext <<_ACEOF
  17938. /* confdefs.h. */
  17939. _ACEOF
  17940. cat confdefs.h >>conftest.$ac_ext
  17941. cat >>conftest.$ac_ext <<_ACEOF
  17942. /* end confdefs.h. */
  17943. #include <sys/types.h>
  17944. #include <sys/time.h>
  17945. #include <time.h>
  17946. int
  17947. main ()
  17948. {
  17949. if ((struct tm *) 0)
  17950. return 0;
  17951. ;
  17952. return 0;
  17953. }
  17954. _ACEOF
  17955. rm -f conftest.$ac_objext
  17956. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17957. (eval $ac_compile) 2>conftest.er1
  17958. ac_status=$?
  17959. grep -v '^ *+' conftest.er1 >conftest.err
  17960. rm -f conftest.er1
  17961. cat conftest.err >&5
  17962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17963. (exit $ac_status); } &&
  17964. { ac_try='test -z "$ac_c_werror_flag"
  17965. || test ! -s conftest.err'
  17966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17967. (eval $ac_try) 2>&5
  17968. ac_status=$?
  17969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17970. (exit $ac_status); }; } &&
  17971. { ac_try='test -s conftest.$ac_objext'
  17972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17973. (eval $ac_try) 2>&5
  17974. ac_status=$?
  17975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17976. (exit $ac_status); }; }; then
  17977. ac_cv_header_time=yes
  17978. else
  17979. echo "$as_me: failed program was:" >&5
  17980. sed 's/^/| /' conftest.$ac_ext >&5
  17981. ac_cv_header_time=no
  17982. fi
  17983. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17984. fi
  17985. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17986. echo "${ECHO_T}$ac_cv_header_time" >&6
  17987. if test $ac_cv_header_time = yes; then
  17988. cat >>confdefs.h <<\_ACEOF
  17989. #define TIME_WITH_SYS_TIME 1
  17990. _ACEOF
  17991. fi
  17992. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17993. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17994. if test "${ac_cv_struct_tm+set}" = set; then
  17995. echo $ECHO_N "(cached) $ECHO_C" >&6
  17996. else
  17997. cat >conftest.$ac_ext <<_ACEOF
  17998. /* confdefs.h. */
  17999. _ACEOF
  18000. cat confdefs.h >>conftest.$ac_ext
  18001. cat >>conftest.$ac_ext <<_ACEOF
  18002. /* end confdefs.h. */
  18003. #include <sys/types.h>
  18004. #include <time.h>
  18005. int
  18006. main ()
  18007. {
  18008. struct tm *tp; tp->tm_sec;
  18009. ;
  18010. return 0;
  18011. }
  18012. _ACEOF
  18013. rm -f conftest.$ac_objext
  18014. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18015. (eval $ac_compile) 2>conftest.er1
  18016. ac_status=$?
  18017. grep -v '^ *+' conftest.er1 >conftest.err
  18018. rm -f conftest.er1
  18019. cat conftest.err >&5
  18020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18021. (exit $ac_status); } &&
  18022. { ac_try='test -z "$ac_c_werror_flag"
  18023. || test ! -s conftest.err'
  18024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18025. (eval $ac_try) 2>&5
  18026. ac_status=$?
  18027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18028. (exit $ac_status); }; } &&
  18029. { ac_try='test -s conftest.$ac_objext'
  18030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18031. (eval $ac_try) 2>&5
  18032. ac_status=$?
  18033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18034. (exit $ac_status); }; }; then
  18035. ac_cv_struct_tm=time.h
  18036. else
  18037. echo "$as_me: failed program was:" >&5
  18038. sed 's/^/| /' conftest.$ac_ext >&5
  18039. ac_cv_struct_tm=sys/time.h
  18040. fi
  18041. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18042. fi
  18043. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18044. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  18045. if test $ac_cv_struct_tm = sys/time.h; then
  18046. cat >>confdefs.h <<\_ACEOF
  18047. #define TM_IN_SYS_TIME 1
  18048. _ACEOF
  18049. fi
  18050. # Checks for library functions.
  18051. for ac_header in unistd.h
  18052. do
  18053. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18054. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18055. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18056. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18057. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18058. echo $ECHO_N "(cached) $ECHO_C" >&6
  18059. fi
  18060. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18061. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18062. else
  18063. # Is the header compilable?
  18064. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18065. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18066. cat >conftest.$ac_ext <<_ACEOF
  18067. /* confdefs.h. */
  18068. _ACEOF
  18069. cat confdefs.h >>conftest.$ac_ext
  18070. cat >>conftest.$ac_ext <<_ACEOF
  18071. /* end confdefs.h. */
  18072. $ac_includes_default
  18073. #include <$ac_header>
  18074. _ACEOF
  18075. rm -f conftest.$ac_objext
  18076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18077. (eval $ac_compile) 2>conftest.er1
  18078. ac_status=$?
  18079. grep -v '^ *+' conftest.er1 >conftest.err
  18080. rm -f conftest.er1
  18081. cat conftest.err >&5
  18082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18083. (exit $ac_status); } &&
  18084. { ac_try='test -z "$ac_c_werror_flag"
  18085. || test ! -s conftest.err'
  18086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18087. (eval $ac_try) 2>&5
  18088. ac_status=$?
  18089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18090. (exit $ac_status); }; } &&
  18091. { ac_try='test -s conftest.$ac_objext'
  18092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18093. (eval $ac_try) 2>&5
  18094. ac_status=$?
  18095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18096. (exit $ac_status); }; }; then
  18097. ac_header_compiler=yes
  18098. else
  18099. echo "$as_me: failed program was:" >&5
  18100. sed 's/^/| /' conftest.$ac_ext >&5
  18101. ac_header_compiler=no
  18102. fi
  18103. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18104. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18105. echo "${ECHO_T}$ac_header_compiler" >&6
  18106. # Is the header present?
  18107. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18108. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18109. cat >conftest.$ac_ext <<_ACEOF
  18110. /* confdefs.h. */
  18111. _ACEOF
  18112. cat confdefs.h >>conftest.$ac_ext
  18113. cat >>conftest.$ac_ext <<_ACEOF
  18114. /* end confdefs.h. */
  18115. #include <$ac_header>
  18116. _ACEOF
  18117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18118. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18119. ac_status=$?
  18120. grep -v '^ *+' conftest.er1 >conftest.err
  18121. rm -f conftest.er1
  18122. cat conftest.err >&5
  18123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18124. (exit $ac_status); } >/dev/null; then
  18125. if test -s conftest.err; then
  18126. ac_cpp_err=$ac_c_preproc_warn_flag
  18127. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18128. else
  18129. ac_cpp_err=
  18130. fi
  18131. else
  18132. ac_cpp_err=yes
  18133. fi
  18134. if test -z "$ac_cpp_err"; then
  18135. ac_header_preproc=yes
  18136. else
  18137. echo "$as_me: failed program was:" >&5
  18138. sed 's/^/| /' conftest.$ac_ext >&5
  18139. ac_header_preproc=no
  18140. fi
  18141. rm -f conftest.err conftest.$ac_ext
  18142. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18143. echo "${ECHO_T}$ac_header_preproc" >&6
  18144. # So? What about this header?
  18145. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18146. yes:no: )
  18147. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18148. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18149. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18150. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18151. ac_header_preproc=yes
  18152. ;;
  18153. no:yes:* )
  18154. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18155. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18156. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18157. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18158. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18159. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18160. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18161. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18162. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18163. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18164. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18165. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18166. (
  18167. cat <<\_ASBOX
  18168. ## ------------------------------------------ ##
  18169. ## Report this to http://bugzilla.redhat.com/ ##
  18170. ## ------------------------------------------ ##
  18171. _ASBOX
  18172. ) |
  18173. sed "s/^/$as_me: WARNING: /" >&2
  18174. ;;
  18175. esac
  18176. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18177. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18178. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18179. echo $ECHO_N "(cached) $ECHO_C" >&6
  18180. else
  18181. eval "$as_ac_Header=\$ac_header_preproc"
  18182. fi
  18183. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18184. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18185. fi
  18186. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18187. cat >>confdefs.h <<_ACEOF
  18188. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18189. _ACEOF
  18190. fi
  18191. done
  18192. echo "$as_me:$LINENO: checking for working chown" >&5
  18193. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18194. if test "${ac_cv_func_chown_works+set}" = set; then
  18195. echo $ECHO_N "(cached) $ECHO_C" >&6
  18196. else
  18197. if test "$cross_compiling" = yes; then
  18198. ac_cv_func_chown_works=no
  18199. else
  18200. cat >conftest.$ac_ext <<_ACEOF
  18201. /* confdefs.h. */
  18202. _ACEOF
  18203. cat confdefs.h >>conftest.$ac_ext
  18204. cat >>conftest.$ac_ext <<_ACEOF
  18205. /* end confdefs.h. */
  18206. $ac_includes_default
  18207. #include <fcntl.h>
  18208. int
  18209. main ()
  18210. {
  18211. char *f = "conftest.chown";
  18212. struct stat before, after;
  18213. if (creat (f, 0600) < 0)
  18214. exit (1);
  18215. if (stat (f, &before) < 0)
  18216. exit (1);
  18217. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18218. exit (1);
  18219. if (stat (f, &after) < 0)
  18220. exit (1);
  18221. exit ((before.st_uid == after.st_uid
  18222. && before.st_gid == after.st_gid) ? 0 : 1);
  18223. ;
  18224. return 0;
  18225. }
  18226. _ACEOF
  18227. rm -f conftest$ac_exeext
  18228. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18229. (eval $ac_link) 2>&5
  18230. ac_status=$?
  18231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18232. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18234. (eval $ac_try) 2>&5
  18235. ac_status=$?
  18236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18237. (exit $ac_status); }; }; then
  18238. ac_cv_func_chown_works=yes
  18239. else
  18240. echo "$as_me: program exited with status $ac_status" >&5
  18241. echo "$as_me: failed program was:" >&5
  18242. sed 's/^/| /' conftest.$ac_ext >&5
  18243. ( exit $ac_status )
  18244. ac_cv_func_chown_works=no
  18245. fi
  18246. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18247. fi
  18248. rm -f conftest.chown
  18249. fi
  18250. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18251. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18252. if test $ac_cv_func_chown_works = yes; then
  18253. cat >>confdefs.h <<\_ACEOF
  18254. #define HAVE_CHOWN 1
  18255. _ACEOF
  18256. fi
  18257. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18258. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18259. if test "${ac_cv_func_closedir_void+set}" = set; then
  18260. echo $ECHO_N "(cached) $ECHO_C" >&6
  18261. else
  18262. if test "$cross_compiling" = yes; then
  18263. ac_cv_func_closedir_void=yes
  18264. else
  18265. cat >conftest.$ac_ext <<_ACEOF
  18266. /* confdefs.h. */
  18267. _ACEOF
  18268. cat confdefs.h >>conftest.$ac_ext
  18269. cat >>conftest.$ac_ext <<_ACEOF
  18270. /* end confdefs.h. */
  18271. $ac_includes_default
  18272. #include <$ac_header_dirent>
  18273. #ifndef __cplusplus
  18274. int closedir ();
  18275. #endif
  18276. int
  18277. main ()
  18278. {
  18279. exit (closedir (opendir (".")) != 0);
  18280. ;
  18281. return 0;
  18282. }
  18283. _ACEOF
  18284. rm -f conftest$ac_exeext
  18285. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18286. (eval $ac_link) 2>&5
  18287. ac_status=$?
  18288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18289. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18290. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18291. (eval $ac_try) 2>&5
  18292. ac_status=$?
  18293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18294. (exit $ac_status); }; }; then
  18295. ac_cv_func_closedir_void=no
  18296. else
  18297. echo "$as_me: program exited with status $ac_status" >&5
  18298. echo "$as_me: failed program was:" >&5
  18299. sed 's/^/| /' conftest.$ac_ext >&5
  18300. ( exit $ac_status )
  18301. ac_cv_func_closedir_void=yes
  18302. fi
  18303. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18304. fi
  18305. fi
  18306. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18307. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18308. if test $ac_cv_func_closedir_void = yes; then
  18309. cat >>confdefs.h <<\_ACEOF
  18310. #define CLOSEDIR_VOID 1
  18311. _ACEOF
  18312. fi
  18313. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18314. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18315. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18316. echo $ECHO_N "(cached) $ECHO_C" >&6
  18317. else
  18318. cat >conftest.$ac_ext <<_ACEOF
  18319. /* confdefs.h. */
  18320. _ACEOF
  18321. cat confdefs.h >>conftest.$ac_ext
  18322. cat >>conftest.$ac_ext <<_ACEOF
  18323. /* end confdefs.h. */
  18324. $ac_includes_default
  18325. int
  18326. main ()
  18327. {
  18328. error_at_line (0, 0, "", 0, "");
  18329. ;
  18330. return 0;
  18331. }
  18332. _ACEOF
  18333. rm -f conftest.$ac_objext conftest$ac_exeext
  18334. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18335. (eval $ac_link) 2>conftest.er1
  18336. ac_status=$?
  18337. grep -v '^ *+' conftest.er1 >conftest.err
  18338. rm -f conftest.er1
  18339. cat conftest.err >&5
  18340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18341. (exit $ac_status); } &&
  18342. { ac_try='test -z "$ac_c_werror_flag"
  18343. || test ! -s conftest.err'
  18344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18345. (eval $ac_try) 2>&5
  18346. ac_status=$?
  18347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18348. (exit $ac_status); }; } &&
  18349. { ac_try='test -s conftest$ac_exeext'
  18350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18351. (eval $ac_try) 2>&5
  18352. ac_status=$?
  18353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18354. (exit $ac_status); }; }; then
  18355. ac_cv_lib_error_at_line=yes
  18356. else
  18357. echo "$as_me: failed program was:" >&5
  18358. sed 's/^/| /' conftest.$ac_ext >&5
  18359. ac_cv_lib_error_at_line=no
  18360. fi
  18361. rm -f conftest.err conftest.$ac_objext \
  18362. conftest$ac_exeext conftest.$ac_ext
  18363. fi
  18364. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18365. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18366. if test $ac_cv_lib_error_at_line = no; then
  18367. case $LIBOBJS in
  18368. "error.$ac_objext" | \
  18369. *" error.$ac_objext" | \
  18370. "error.$ac_objext "* | \
  18371. *" error.$ac_objext "* ) ;;
  18372. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18373. esac
  18374. fi
  18375. for ac_header in unistd.h vfork.h
  18376. do
  18377. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18378. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18379. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18380. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18381. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18382. echo $ECHO_N "(cached) $ECHO_C" >&6
  18383. fi
  18384. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18385. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18386. else
  18387. # Is the header compilable?
  18388. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18389. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18390. cat >conftest.$ac_ext <<_ACEOF
  18391. /* confdefs.h. */
  18392. _ACEOF
  18393. cat confdefs.h >>conftest.$ac_ext
  18394. cat >>conftest.$ac_ext <<_ACEOF
  18395. /* end confdefs.h. */
  18396. $ac_includes_default
  18397. #include <$ac_header>
  18398. _ACEOF
  18399. rm -f conftest.$ac_objext
  18400. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18401. (eval $ac_compile) 2>conftest.er1
  18402. ac_status=$?
  18403. grep -v '^ *+' conftest.er1 >conftest.err
  18404. rm -f conftest.er1
  18405. cat conftest.err >&5
  18406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18407. (exit $ac_status); } &&
  18408. { ac_try='test -z "$ac_c_werror_flag"
  18409. || test ! -s conftest.err'
  18410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18411. (eval $ac_try) 2>&5
  18412. ac_status=$?
  18413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18414. (exit $ac_status); }; } &&
  18415. { ac_try='test -s conftest.$ac_objext'
  18416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18417. (eval $ac_try) 2>&5
  18418. ac_status=$?
  18419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18420. (exit $ac_status); }; }; then
  18421. ac_header_compiler=yes
  18422. else
  18423. echo "$as_me: failed program was:" >&5
  18424. sed 's/^/| /' conftest.$ac_ext >&5
  18425. ac_header_compiler=no
  18426. fi
  18427. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18428. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18429. echo "${ECHO_T}$ac_header_compiler" >&6
  18430. # Is the header present?
  18431. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18432. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18433. cat >conftest.$ac_ext <<_ACEOF
  18434. /* confdefs.h. */
  18435. _ACEOF
  18436. cat confdefs.h >>conftest.$ac_ext
  18437. cat >>conftest.$ac_ext <<_ACEOF
  18438. /* end confdefs.h. */
  18439. #include <$ac_header>
  18440. _ACEOF
  18441. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18442. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18443. ac_status=$?
  18444. grep -v '^ *+' conftest.er1 >conftest.err
  18445. rm -f conftest.er1
  18446. cat conftest.err >&5
  18447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18448. (exit $ac_status); } >/dev/null; then
  18449. if test -s conftest.err; then
  18450. ac_cpp_err=$ac_c_preproc_warn_flag
  18451. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18452. else
  18453. ac_cpp_err=
  18454. fi
  18455. else
  18456. ac_cpp_err=yes
  18457. fi
  18458. if test -z "$ac_cpp_err"; then
  18459. ac_header_preproc=yes
  18460. else
  18461. echo "$as_me: failed program was:" >&5
  18462. sed 's/^/| /' conftest.$ac_ext >&5
  18463. ac_header_preproc=no
  18464. fi
  18465. rm -f conftest.err conftest.$ac_ext
  18466. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18467. echo "${ECHO_T}$ac_header_preproc" >&6
  18468. # So? What about this header?
  18469. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18470. yes:no: )
  18471. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18472. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18473. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18474. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18475. ac_header_preproc=yes
  18476. ;;
  18477. no:yes:* )
  18478. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18479. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18480. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18481. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18482. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18483. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18484. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18485. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18486. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18487. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18488. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18489. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18490. (
  18491. cat <<\_ASBOX
  18492. ## ------------------------------------------ ##
  18493. ## Report this to http://bugzilla.redhat.com/ ##
  18494. ## ------------------------------------------ ##
  18495. _ASBOX
  18496. ) |
  18497. sed "s/^/$as_me: WARNING: /" >&2
  18498. ;;
  18499. esac
  18500. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18501. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18502. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18503. echo $ECHO_N "(cached) $ECHO_C" >&6
  18504. else
  18505. eval "$as_ac_Header=\$ac_header_preproc"
  18506. fi
  18507. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18508. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18509. fi
  18510. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18511. cat >>confdefs.h <<_ACEOF
  18512. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18513. _ACEOF
  18514. fi
  18515. done
  18516. for ac_func in fork vfork
  18517. do
  18518. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18519. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18520. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18521. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18522. echo $ECHO_N "(cached) $ECHO_C" >&6
  18523. else
  18524. cat >conftest.$ac_ext <<_ACEOF
  18525. /* confdefs.h. */
  18526. _ACEOF
  18527. cat confdefs.h >>conftest.$ac_ext
  18528. cat >>conftest.$ac_ext <<_ACEOF
  18529. /* end confdefs.h. */
  18530. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18531. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18532. #define $ac_func innocuous_$ac_func
  18533. /* System header to define __stub macros and hopefully few prototypes,
  18534. which can conflict with char $ac_func (); below.
  18535. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18536. <limits.h> exists even on freestanding compilers. */
  18537. #ifdef __STDC__
  18538. # include <limits.h>
  18539. #else
  18540. # include <assert.h>
  18541. #endif
  18542. #undef $ac_func
  18543. /* Override any gcc2 internal prototype to avoid an error. */
  18544. #ifdef __cplusplus
  18545. extern "C"
  18546. {
  18547. #endif
  18548. /* We use char because int might match the return type of a gcc2
  18549. builtin and then its argument prototype would still apply. */
  18550. char $ac_func ();
  18551. /* The GNU C library defines this for functions which it implements
  18552. to always fail with ENOSYS. Some functions are actually named
  18553. something starting with __ and the normal name is an alias. */
  18554. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18555. choke me
  18556. #else
  18557. char (*f) () = $ac_func;
  18558. #endif
  18559. #ifdef __cplusplus
  18560. }
  18561. #endif
  18562. int
  18563. main ()
  18564. {
  18565. return f != $ac_func;
  18566. ;
  18567. return 0;
  18568. }
  18569. _ACEOF
  18570. rm -f conftest.$ac_objext conftest$ac_exeext
  18571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18572. (eval $ac_link) 2>conftest.er1
  18573. ac_status=$?
  18574. grep -v '^ *+' conftest.er1 >conftest.err
  18575. rm -f conftest.er1
  18576. cat conftest.err >&5
  18577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18578. (exit $ac_status); } &&
  18579. { ac_try='test -z "$ac_c_werror_flag"
  18580. || test ! -s conftest.err'
  18581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18582. (eval $ac_try) 2>&5
  18583. ac_status=$?
  18584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18585. (exit $ac_status); }; } &&
  18586. { ac_try='test -s conftest$ac_exeext'
  18587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18588. (eval $ac_try) 2>&5
  18589. ac_status=$?
  18590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18591. (exit $ac_status); }; }; then
  18592. eval "$as_ac_var=yes"
  18593. else
  18594. echo "$as_me: failed program was:" >&5
  18595. sed 's/^/| /' conftest.$ac_ext >&5
  18596. eval "$as_ac_var=no"
  18597. fi
  18598. rm -f conftest.err conftest.$ac_objext \
  18599. conftest$ac_exeext conftest.$ac_ext
  18600. fi
  18601. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18602. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18603. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18604. cat >>confdefs.h <<_ACEOF
  18605. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18606. _ACEOF
  18607. fi
  18608. done
  18609. if test "x$ac_cv_func_fork" = xyes; then
  18610. echo "$as_me:$LINENO: checking for working fork" >&5
  18611. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18612. if test "${ac_cv_func_fork_works+set}" = set; then
  18613. echo $ECHO_N "(cached) $ECHO_C" >&6
  18614. else
  18615. if test "$cross_compiling" = yes; then
  18616. ac_cv_func_fork_works=cross
  18617. else
  18618. cat >conftest.$ac_ext <<_ACEOF
  18619. /* By Ruediger Kuhlmann. */
  18620. #include <sys/types.h>
  18621. #if HAVE_UNISTD_H
  18622. # include <unistd.h>
  18623. #endif
  18624. /* Some systems only have a dummy stub for fork() */
  18625. int main ()
  18626. {
  18627. if (fork() < 0)
  18628. exit (1);
  18629. exit (0);
  18630. }
  18631. _ACEOF
  18632. rm -f conftest$ac_exeext
  18633. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18634. (eval $ac_link) 2>&5
  18635. ac_status=$?
  18636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18637. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18639. (eval $ac_try) 2>&5
  18640. ac_status=$?
  18641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18642. (exit $ac_status); }; }; then
  18643. ac_cv_func_fork_works=yes
  18644. else
  18645. echo "$as_me: program exited with status $ac_status" >&5
  18646. echo "$as_me: failed program was:" >&5
  18647. sed 's/^/| /' conftest.$ac_ext >&5
  18648. ( exit $ac_status )
  18649. ac_cv_func_fork_works=no
  18650. fi
  18651. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18652. fi
  18653. fi
  18654. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18655. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18656. else
  18657. ac_cv_func_fork_works=$ac_cv_func_fork
  18658. fi
  18659. if test "x$ac_cv_func_fork_works" = xcross; then
  18660. case $host in
  18661. *-*-amigaos* | *-*-msdosdjgpp*)
  18662. # Override, as these systems have only a dummy fork() stub
  18663. ac_cv_func_fork_works=no
  18664. ;;
  18665. *)
  18666. ac_cv_func_fork_works=yes
  18667. ;;
  18668. esac
  18669. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18670. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18671. fi
  18672. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18673. if test "x$ac_cv_func_vfork" = xyes; then
  18674. echo "$as_me:$LINENO: checking for working vfork" >&5
  18675. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18676. if test "${ac_cv_func_vfork_works+set}" = set; then
  18677. echo $ECHO_N "(cached) $ECHO_C" >&6
  18678. else
  18679. if test "$cross_compiling" = yes; then
  18680. ac_cv_func_vfork_works=cross
  18681. else
  18682. cat >conftest.$ac_ext <<_ACEOF
  18683. /* confdefs.h. */
  18684. _ACEOF
  18685. cat confdefs.h >>conftest.$ac_ext
  18686. cat >>conftest.$ac_ext <<_ACEOF
  18687. /* end confdefs.h. */
  18688. /* Thanks to Paul Eggert for this test. */
  18689. #include <stdio.h>
  18690. #include <stdlib.h>
  18691. #include <sys/types.h>
  18692. #include <sys/stat.h>
  18693. #include <sys/wait.h>
  18694. #if HAVE_UNISTD_H
  18695. # include <unistd.h>
  18696. #endif
  18697. #if HAVE_VFORK_H
  18698. # include <vfork.h>
  18699. #endif
  18700. /* On some sparc systems, changes by the child to local and incoming
  18701. argument registers are propagated back to the parent. The compiler
  18702. is told about this with #include <vfork.h>, but some compilers
  18703. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18704. static variable whose address is put into a register that is
  18705. clobbered by the vfork. */
  18706. static void
  18707. #ifdef __cplusplus
  18708. sparc_address_test (int arg)
  18709. # else
  18710. sparc_address_test (arg) int arg;
  18711. #endif
  18712. {
  18713. static pid_t child;
  18714. if (!child) {
  18715. child = vfork ();
  18716. if (child < 0) {
  18717. perror ("vfork");
  18718. _exit(2);
  18719. }
  18720. if (!child) {
  18721. arg = getpid();
  18722. write(-1, "", 0);
  18723. _exit (arg);
  18724. }
  18725. }
  18726. }
  18727. int
  18728. main ()
  18729. {
  18730. pid_t parent = getpid ();
  18731. pid_t child;
  18732. sparc_address_test (0);
  18733. child = vfork ();
  18734. if (child == 0) {
  18735. /* Here is another test for sparc vfork register problems. This
  18736. test uses lots of local variables, at least as many local
  18737. variables as main has allocated so far including compiler
  18738. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18739. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18740. reuse the register of parent for one of the local variables,
  18741. since it will think that parent can't possibly be used any more
  18742. in this routine. Assigning to the local variable will thus
  18743. munge parent in the parent process. */
  18744. pid_t
  18745. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18746. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18747. /* Convince the compiler that p..p7 are live; otherwise, it might
  18748. use the same hardware register for all 8 local variables. */
  18749. if (p != p1 || p != p2 || p != p3 || p != p4
  18750. || p != p5 || p != p6 || p != p7)
  18751. _exit(1);
  18752. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18753. from child file descriptors. If the child closes a descriptor
  18754. before it execs or exits, this munges the parent's descriptor
  18755. as well. Test for this by closing stdout in the child. */
  18756. _exit(close(fileno(stdout)) != 0);
  18757. } else {
  18758. int status;
  18759. struct stat st;
  18760. while (wait(&status) != child)
  18761. ;
  18762. exit(
  18763. /* Was there some problem with vforking? */
  18764. child < 0
  18765. /* Did the child fail? (This shouldn't happen.) */
  18766. || status
  18767. /* Did the vfork/compiler bug occur? */
  18768. || parent != getpid()
  18769. /* Did the file descriptor bug occur? */
  18770. || fstat(fileno(stdout), &st) != 0
  18771. );
  18772. }
  18773. }
  18774. _ACEOF
  18775. rm -f conftest$ac_exeext
  18776. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18777. (eval $ac_link) 2>&5
  18778. ac_status=$?
  18779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18780. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18782. (eval $ac_try) 2>&5
  18783. ac_status=$?
  18784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18785. (exit $ac_status); }; }; then
  18786. ac_cv_func_vfork_works=yes
  18787. else
  18788. echo "$as_me: program exited with status $ac_status" >&5
  18789. echo "$as_me: failed program was:" >&5
  18790. sed 's/^/| /' conftest.$ac_ext >&5
  18791. ( exit $ac_status )
  18792. ac_cv_func_vfork_works=no
  18793. fi
  18794. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18795. fi
  18796. fi
  18797. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18798. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18799. fi;
  18800. if test "x$ac_cv_func_fork_works" = xcross; then
  18801. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18802. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18803. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18804. fi
  18805. if test "x$ac_cv_func_vfork_works" = xyes; then
  18806. cat >>confdefs.h <<\_ACEOF
  18807. #define HAVE_WORKING_VFORK 1
  18808. _ACEOF
  18809. else
  18810. cat >>confdefs.h <<\_ACEOF
  18811. #define vfork fork
  18812. _ACEOF
  18813. fi
  18814. if test "x$ac_cv_func_fork_works" = xyes; then
  18815. cat >>confdefs.h <<\_ACEOF
  18816. #define HAVE_WORKING_FORK 1
  18817. _ACEOF
  18818. fi
  18819. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18820. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18821. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18822. echo $ECHO_N "(cached) $ECHO_C" >&6
  18823. else
  18824. rm -f conftest.sym conftest.file
  18825. echo >conftest.file
  18826. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18827. if test "$cross_compiling" = yes; then
  18828. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18829. else
  18830. cat >conftest.$ac_ext <<_ACEOF
  18831. /* confdefs.h. */
  18832. _ACEOF
  18833. cat confdefs.h >>conftest.$ac_ext
  18834. cat >>conftest.$ac_ext <<_ACEOF
  18835. /* end confdefs.h. */
  18836. $ac_includes_default
  18837. int
  18838. main ()
  18839. {
  18840. struct stat sbuf;
  18841. /* Linux will dereference the symlink and fail.
  18842. That is better in the sense that it means we will not
  18843. have to compile and use the lstat wrapper. */
  18844. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18845. ;
  18846. return 0;
  18847. }
  18848. _ACEOF
  18849. rm -f conftest$ac_exeext
  18850. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18851. (eval $ac_link) 2>&5
  18852. ac_status=$?
  18853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18854. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18856. (eval $ac_try) 2>&5
  18857. ac_status=$?
  18858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18859. (exit $ac_status); }; }; then
  18860. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18861. else
  18862. echo "$as_me: program exited with status $ac_status" >&5
  18863. echo "$as_me: failed program was:" >&5
  18864. sed 's/^/| /' conftest.$ac_ext >&5
  18865. ( exit $ac_status )
  18866. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18867. fi
  18868. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18869. fi
  18870. else
  18871. # If the `ln -s' command failed, then we probably don't even
  18872. # have an lstat function.
  18873. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18874. fi
  18875. rm -f conftest.sym conftest.file
  18876. fi
  18877. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18878. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18879. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18880. cat >>confdefs.h <<_ACEOF
  18881. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18882. _ACEOF
  18883. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18884. case $LIBOBJS in
  18885. "lstat.$ac_objext" | \
  18886. *" lstat.$ac_objext" | \
  18887. "lstat.$ac_objext "* | \
  18888. *" lstat.$ac_objext "* ) ;;
  18889. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18890. esac
  18891. fi
  18892. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18893. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18894. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18895. echo $ECHO_N "(cached) $ECHO_C" >&6
  18896. else
  18897. if test "$cross_compiling" = yes; then
  18898. ac_cv_func_lstat_empty_string_bug=yes
  18899. else
  18900. cat >conftest.$ac_ext <<_ACEOF
  18901. /* confdefs.h. */
  18902. _ACEOF
  18903. cat confdefs.h >>conftest.$ac_ext
  18904. cat >>conftest.$ac_ext <<_ACEOF
  18905. /* end confdefs.h. */
  18906. $ac_includes_default
  18907. int
  18908. main ()
  18909. {
  18910. struct stat sbuf;
  18911. exit (lstat ("", &sbuf) ? 1 : 0);
  18912. ;
  18913. return 0;
  18914. }
  18915. _ACEOF
  18916. rm -f conftest$ac_exeext
  18917. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18918. (eval $ac_link) 2>&5
  18919. ac_status=$?
  18920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18921. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18922. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18923. (eval $ac_try) 2>&5
  18924. ac_status=$?
  18925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18926. (exit $ac_status); }; }; then
  18927. ac_cv_func_lstat_empty_string_bug=yes
  18928. else
  18929. echo "$as_me: program exited with status $ac_status" >&5
  18930. echo "$as_me: failed program was:" >&5
  18931. sed 's/^/| /' conftest.$ac_ext >&5
  18932. ( exit $ac_status )
  18933. ac_cv_func_lstat_empty_string_bug=no
  18934. fi
  18935. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18936. fi
  18937. fi
  18938. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18939. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18940. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18941. case $LIBOBJS in
  18942. "lstat.$ac_objext" | \
  18943. *" lstat.$ac_objext" | \
  18944. "lstat.$ac_objext "* | \
  18945. *" lstat.$ac_objext "* ) ;;
  18946. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18947. esac
  18948. cat >>confdefs.h <<_ACEOF
  18949. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18950. _ACEOF
  18951. fi
  18952. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18953. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18954. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18955. echo $ECHO_N "(cached) $ECHO_C" >&6
  18956. else
  18957. rm -f conftest.sym conftest.file
  18958. echo >conftest.file
  18959. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18960. if test "$cross_compiling" = yes; then
  18961. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18962. else
  18963. cat >conftest.$ac_ext <<_ACEOF
  18964. /* confdefs.h. */
  18965. _ACEOF
  18966. cat confdefs.h >>conftest.$ac_ext
  18967. cat >>conftest.$ac_ext <<_ACEOF
  18968. /* end confdefs.h. */
  18969. $ac_includes_default
  18970. int
  18971. main ()
  18972. {
  18973. struct stat sbuf;
  18974. /* Linux will dereference the symlink and fail.
  18975. That is better in the sense that it means we will not
  18976. have to compile and use the lstat wrapper. */
  18977. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18978. ;
  18979. return 0;
  18980. }
  18981. _ACEOF
  18982. rm -f conftest$ac_exeext
  18983. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18984. (eval $ac_link) 2>&5
  18985. ac_status=$?
  18986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18987. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18989. (eval $ac_try) 2>&5
  18990. ac_status=$?
  18991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18992. (exit $ac_status); }; }; then
  18993. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18994. else
  18995. echo "$as_me: program exited with status $ac_status" >&5
  18996. echo "$as_me: failed program was:" >&5
  18997. sed 's/^/| /' conftest.$ac_ext >&5
  18998. ( exit $ac_status )
  18999. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19000. fi
  19001. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19002. fi
  19003. else
  19004. # If the `ln -s' command failed, then we probably don't even
  19005. # have an lstat function.
  19006. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19007. fi
  19008. rm -f conftest.sym conftest.file
  19009. fi
  19010. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19011. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  19012. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  19013. cat >>confdefs.h <<_ACEOF
  19014. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  19015. _ACEOF
  19016. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  19017. case $LIBOBJS in
  19018. "lstat.$ac_objext" | \
  19019. *" lstat.$ac_objext" | \
  19020. "lstat.$ac_objext "* | \
  19021. *" lstat.$ac_objext "* ) ;;
  19022. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  19023. esac
  19024. fi
  19025. for ac_header in stdlib.h
  19026. do
  19027. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19028. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19029. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19030. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19031. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19032. echo $ECHO_N "(cached) $ECHO_C" >&6
  19033. fi
  19034. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19035. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19036. else
  19037. # Is the header compilable?
  19038. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19039. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19040. cat >conftest.$ac_ext <<_ACEOF
  19041. /* confdefs.h. */
  19042. _ACEOF
  19043. cat confdefs.h >>conftest.$ac_ext
  19044. cat >>conftest.$ac_ext <<_ACEOF
  19045. /* end confdefs.h. */
  19046. $ac_includes_default
  19047. #include <$ac_header>
  19048. _ACEOF
  19049. rm -f conftest.$ac_objext
  19050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19051. (eval $ac_compile) 2>conftest.er1
  19052. ac_status=$?
  19053. grep -v '^ *+' conftest.er1 >conftest.err
  19054. rm -f conftest.er1
  19055. cat conftest.err >&5
  19056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19057. (exit $ac_status); } &&
  19058. { ac_try='test -z "$ac_c_werror_flag"
  19059. || test ! -s conftest.err'
  19060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19061. (eval $ac_try) 2>&5
  19062. ac_status=$?
  19063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19064. (exit $ac_status); }; } &&
  19065. { ac_try='test -s conftest.$ac_objext'
  19066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19067. (eval $ac_try) 2>&5
  19068. ac_status=$?
  19069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19070. (exit $ac_status); }; }; then
  19071. ac_header_compiler=yes
  19072. else
  19073. echo "$as_me: failed program was:" >&5
  19074. sed 's/^/| /' conftest.$ac_ext >&5
  19075. ac_header_compiler=no
  19076. fi
  19077. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19078. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19079. echo "${ECHO_T}$ac_header_compiler" >&6
  19080. # Is the header present?
  19081. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19082. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19083. cat >conftest.$ac_ext <<_ACEOF
  19084. /* confdefs.h. */
  19085. _ACEOF
  19086. cat confdefs.h >>conftest.$ac_ext
  19087. cat >>conftest.$ac_ext <<_ACEOF
  19088. /* end confdefs.h. */
  19089. #include <$ac_header>
  19090. _ACEOF
  19091. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19092. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19093. ac_status=$?
  19094. grep -v '^ *+' conftest.er1 >conftest.err
  19095. rm -f conftest.er1
  19096. cat conftest.err >&5
  19097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19098. (exit $ac_status); } >/dev/null; then
  19099. if test -s conftest.err; then
  19100. ac_cpp_err=$ac_c_preproc_warn_flag
  19101. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19102. else
  19103. ac_cpp_err=
  19104. fi
  19105. else
  19106. ac_cpp_err=yes
  19107. fi
  19108. if test -z "$ac_cpp_err"; then
  19109. ac_header_preproc=yes
  19110. else
  19111. echo "$as_me: failed program was:" >&5
  19112. sed 's/^/| /' conftest.$ac_ext >&5
  19113. ac_header_preproc=no
  19114. fi
  19115. rm -f conftest.err conftest.$ac_ext
  19116. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19117. echo "${ECHO_T}$ac_header_preproc" >&6
  19118. # So? What about this header?
  19119. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19120. yes:no: )
  19121. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19122. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19123. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19124. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19125. ac_header_preproc=yes
  19126. ;;
  19127. no:yes:* )
  19128. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19129. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19130. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19131. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19132. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19133. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19134. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19135. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19136. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19137. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19138. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19139. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19140. (
  19141. cat <<\_ASBOX
  19142. ## ------------------------------------------ ##
  19143. ## Report this to http://bugzilla.redhat.com/ ##
  19144. ## ------------------------------------------ ##
  19145. _ASBOX
  19146. ) |
  19147. sed "s/^/$as_me: WARNING: /" >&2
  19148. ;;
  19149. esac
  19150. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19151. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19152. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19153. echo $ECHO_N "(cached) $ECHO_C" >&6
  19154. else
  19155. eval "$as_ac_Header=\$ac_header_preproc"
  19156. fi
  19157. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19158. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19159. fi
  19160. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19161. cat >>confdefs.h <<_ACEOF
  19162. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19163. _ACEOF
  19164. fi
  19165. done
  19166. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19167. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19168. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19169. echo $ECHO_N "(cached) $ECHO_C" >&6
  19170. else
  19171. if test "$cross_compiling" = yes; then
  19172. ac_cv_func_malloc_0_nonnull=no
  19173. else
  19174. cat >conftest.$ac_ext <<_ACEOF
  19175. /* confdefs.h. */
  19176. _ACEOF
  19177. cat confdefs.h >>conftest.$ac_ext
  19178. cat >>conftest.$ac_ext <<_ACEOF
  19179. /* end confdefs.h. */
  19180. #if STDC_HEADERS || HAVE_STDLIB_H
  19181. # include <stdlib.h>
  19182. #else
  19183. char *malloc ();
  19184. #endif
  19185. int
  19186. main ()
  19187. {
  19188. exit (malloc (0) ? 0 : 1);
  19189. ;
  19190. return 0;
  19191. }
  19192. _ACEOF
  19193. rm -f conftest$ac_exeext
  19194. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19195. (eval $ac_link) 2>&5
  19196. ac_status=$?
  19197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19198. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19200. (eval $ac_try) 2>&5
  19201. ac_status=$?
  19202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19203. (exit $ac_status); }; }; then
  19204. ac_cv_func_malloc_0_nonnull=yes
  19205. else
  19206. echo "$as_me: program exited with status $ac_status" >&5
  19207. echo "$as_me: failed program was:" >&5
  19208. sed 's/^/| /' conftest.$ac_ext >&5
  19209. ( exit $ac_status )
  19210. ac_cv_func_malloc_0_nonnull=no
  19211. fi
  19212. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19213. fi
  19214. fi
  19215. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19216. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19217. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19218. cat >>confdefs.h <<\_ACEOF
  19219. #define HAVE_MALLOC 1
  19220. _ACEOF
  19221. else
  19222. cat >>confdefs.h <<\_ACEOF
  19223. #define HAVE_MALLOC 0
  19224. _ACEOF
  19225. case $LIBOBJS in
  19226. "malloc.$ac_objext" | \
  19227. *" malloc.$ac_objext" | \
  19228. "malloc.$ac_objext "* | \
  19229. *" malloc.$ac_objext "* ) ;;
  19230. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19231. esac
  19232. cat >>confdefs.h <<\_ACEOF
  19233. #define malloc rpl_malloc
  19234. _ACEOF
  19235. fi
  19236. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19237. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19238. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19239. echo $ECHO_N "(cached) $ECHO_C" >&6
  19240. else
  19241. if test "$cross_compiling" = yes; then
  19242. ac_cv_func_memcmp_working=no
  19243. else
  19244. cat >conftest.$ac_ext <<_ACEOF
  19245. /* confdefs.h. */
  19246. _ACEOF
  19247. cat confdefs.h >>conftest.$ac_ext
  19248. cat >>conftest.$ac_ext <<_ACEOF
  19249. /* end confdefs.h. */
  19250. $ac_includes_default
  19251. int
  19252. main ()
  19253. {
  19254. /* Some versions of memcmp are not 8-bit clean. */
  19255. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19256. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19257. exit (1);
  19258. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19259. or more and with at least one buffer not starting on a 4-byte boundary.
  19260. William Lewis provided this test program. */
  19261. {
  19262. char foo[21];
  19263. char bar[21];
  19264. int i;
  19265. for (i = 0; i < 4; i++)
  19266. {
  19267. char *a = foo + i;
  19268. char *b = bar + i;
  19269. strcpy (a, "--------01111111");
  19270. strcpy (b, "--------10000000");
  19271. if (memcmp (a, b, 16) >= 0)
  19272. exit (1);
  19273. }
  19274. exit (0);
  19275. }
  19276. ;
  19277. return 0;
  19278. }
  19279. _ACEOF
  19280. rm -f conftest$ac_exeext
  19281. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19282. (eval $ac_link) 2>&5
  19283. ac_status=$?
  19284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19285. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19287. (eval $ac_try) 2>&5
  19288. ac_status=$?
  19289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19290. (exit $ac_status); }; }; then
  19291. ac_cv_func_memcmp_working=yes
  19292. else
  19293. echo "$as_me: program exited with status $ac_status" >&5
  19294. echo "$as_me: failed program was:" >&5
  19295. sed 's/^/| /' conftest.$ac_ext >&5
  19296. ( exit $ac_status )
  19297. ac_cv_func_memcmp_working=no
  19298. fi
  19299. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19300. fi
  19301. fi
  19302. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19303. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19304. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19305. "memcmp.$ac_objext" | \
  19306. *" memcmp.$ac_objext" | \
  19307. "memcmp.$ac_objext "* | \
  19308. *" memcmp.$ac_objext "* ) ;;
  19309. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19310. esac
  19311. for ac_header in stdlib.h unistd.h
  19312. do
  19313. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19314. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19315. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19316. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19317. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19318. echo $ECHO_N "(cached) $ECHO_C" >&6
  19319. fi
  19320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19321. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19322. else
  19323. # Is the header compilable?
  19324. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19325. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19326. cat >conftest.$ac_ext <<_ACEOF
  19327. /* confdefs.h. */
  19328. _ACEOF
  19329. cat confdefs.h >>conftest.$ac_ext
  19330. cat >>conftest.$ac_ext <<_ACEOF
  19331. /* end confdefs.h. */
  19332. $ac_includes_default
  19333. #include <$ac_header>
  19334. _ACEOF
  19335. rm -f conftest.$ac_objext
  19336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19337. (eval $ac_compile) 2>conftest.er1
  19338. ac_status=$?
  19339. grep -v '^ *+' conftest.er1 >conftest.err
  19340. rm -f conftest.er1
  19341. cat conftest.err >&5
  19342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19343. (exit $ac_status); } &&
  19344. { ac_try='test -z "$ac_c_werror_flag"
  19345. || test ! -s conftest.err'
  19346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19347. (eval $ac_try) 2>&5
  19348. ac_status=$?
  19349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19350. (exit $ac_status); }; } &&
  19351. { ac_try='test -s conftest.$ac_objext'
  19352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19353. (eval $ac_try) 2>&5
  19354. ac_status=$?
  19355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19356. (exit $ac_status); }; }; then
  19357. ac_header_compiler=yes
  19358. else
  19359. echo "$as_me: failed program was:" >&5
  19360. sed 's/^/| /' conftest.$ac_ext >&5
  19361. ac_header_compiler=no
  19362. fi
  19363. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19364. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19365. echo "${ECHO_T}$ac_header_compiler" >&6
  19366. # Is the header present?
  19367. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19368. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19369. cat >conftest.$ac_ext <<_ACEOF
  19370. /* confdefs.h. */
  19371. _ACEOF
  19372. cat confdefs.h >>conftest.$ac_ext
  19373. cat >>conftest.$ac_ext <<_ACEOF
  19374. /* end confdefs.h. */
  19375. #include <$ac_header>
  19376. _ACEOF
  19377. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19378. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19379. ac_status=$?
  19380. grep -v '^ *+' conftest.er1 >conftest.err
  19381. rm -f conftest.er1
  19382. cat conftest.err >&5
  19383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19384. (exit $ac_status); } >/dev/null; then
  19385. if test -s conftest.err; then
  19386. ac_cpp_err=$ac_c_preproc_warn_flag
  19387. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19388. else
  19389. ac_cpp_err=
  19390. fi
  19391. else
  19392. ac_cpp_err=yes
  19393. fi
  19394. if test -z "$ac_cpp_err"; then
  19395. ac_header_preproc=yes
  19396. else
  19397. echo "$as_me: failed program was:" >&5
  19398. sed 's/^/| /' conftest.$ac_ext >&5
  19399. ac_header_preproc=no
  19400. fi
  19401. rm -f conftest.err conftest.$ac_ext
  19402. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19403. echo "${ECHO_T}$ac_header_preproc" >&6
  19404. # So? What about this header?
  19405. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19406. yes:no: )
  19407. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19408. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19409. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19410. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19411. ac_header_preproc=yes
  19412. ;;
  19413. no:yes:* )
  19414. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19415. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19416. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19417. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19418. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19419. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19420. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19421. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19423. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19424. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19425. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19426. (
  19427. cat <<\_ASBOX
  19428. ## ------------------------------------------ ##
  19429. ## Report this to http://bugzilla.redhat.com/ ##
  19430. ## ------------------------------------------ ##
  19431. _ASBOX
  19432. ) |
  19433. sed "s/^/$as_me: WARNING: /" >&2
  19434. ;;
  19435. esac
  19436. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19437. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19438. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19439. echo $ECHO_N "(cached) $ECHO_C" >&6
  19440. else
  19441. eval "$as_ac_Header=\$ac_header_preproc"
  19442. fi
  19443. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19444. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19445. fi
  19446. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19447. cat >>confdefs.h <<_ACEOF
  19448. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19449. _ACEOF
  19450. fi
  19451. done
  19452. for ac_func in getpagesize
  19453. do
  19454. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19455. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19456. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19457. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19458. echo $ECHO_N "(cached) $ECHO_C" >&6
  19459. else
  19460. cat >conftest.$ac_ext <<_ACEOF
  19461. /* confdefs.h. */
  19462. _ACEOF
  19463. cat confdefs.h >>conftest.$ac_ext
  19464. cat >>conftest.$ac_ext <<_ACEOF
  19465. /* end confdefs.h. */
  19466. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19467. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19468. #define $ac_func innocuous_$ac_func
  19469. /* System header to define __stub macros and hopefully few prototypes,
  19470. which can conflict with char $ac_func (); below.
  19471. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19472. <limits.h> exists even on freestanding compilers. */
  19473. #ifdef __STDC__
  19474. # include <limits.h>
  19475. #else
  19476. # include <assert.h>
  19477. #endif
  19478. #undef $ac_func
  19479. /* Override any gcc2 internal prototype to avoid an error. */
  19480. #ifdef __cplusplus
  19481. extern "C"
  19482. {
  19483. #endif
  19484. /* We use char because int might match the return type of a gcc2
  19485. builtin and then its argument prototype would still apply. */
  19486. char $ac_func ();
  19487. /* The GNU C library defines this for functions which it implements
  19488. to always fail with ENOSYS. Some functions are actually named
  19489. something starting with __ and the normal name is an alias. */
  19490. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19491. choke me
  19492. #else
  19493. char (*f) () = $ac_func;
  19494. #endif
  19495. #ifdef __cplusplus
  19496. }
  19497. #endif
  19498. int
  19499. main ()
  19500. {
  19501. return f != $ac_func;
  19502. ;
  19503. return 0;
  19504. }
  19505. _ACEOF
  19506. rm -f conftest.$ac_objext conftest$ac_exeext
  19507. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19508. (eval $ac_link) 2>conftest.er1
  19509. ac_status=$?
  19510. grep -v '^ *+' conftest.er1 >conftest.err
  19511. rm -f conftest.er1
  19512. cat conftest.err >&5
  19513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19514. (exit $ac_status); } &&
  19515. { ac_try='test -z "$ac_c_werror_flag"
  19516. || test ! -s conftest.err'
  19517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19518. (eval $ac_try) 2>&5
  19519. ac_status=$?
  19520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19521. (exit $ac_status); }; } &&
  19522. { ac_try='test -s conftest$ac_exeext'
  19523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19524. (eval $ac_try) 2>&5
  19525. ac_status=$?
  19526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19527. (exit $ac_status); }; }; then
  19528. eval "$as_ac_var=yes"
  19529. else
  19530. echo "$as_me: failed program was:" >&5
  19531. sed 's/^/| /' conftest.$ac_ext >&5
  19532. eval "$as_ac_var=no"
  19533. fi
  19534. rm -f conftest.err conftest.$ac_objext \
  19535. conftest$ac_exeext conftest.$ac_ext
  19536. fi
  19537. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19538. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19539. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19540. cat >>confdefs.h <<_ACEOF
  19541. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19542. _ACEOF
  19543. fi
  19544. done
  19545. echo "$as_me:$LINENO: checking for working mmap" >&5
  19546. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19547. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19548. echo $ECHO_N "(cached) $ECHO_C" >&6
  19549. else
  19550. if test "$cross_compiling" = yes; then
  19551. ac_cv_func_mmap_fixed_mapped=no
  19552. else
  19553. cat >conftest.$ac_ext <<_ACEOF
  19554. /* confdefs.h. */
  19555. _ACEOF
  19556. cat confdefs.h >>conftest.$ac_ext
  19557. cat >>conftest.$ac_ext <<_ACEOF
  19558. /* end confdefs.h. */
  19559. $ac_includes_default
  19560. /* malloc might have been renamed as rpl_malloc. */
  19561. #undef malloc
  19562. /* Thanks to Mike Haertel and Jim Avera for this test.
  19563. Here is a matrix of mmap possibilities:
  19564. mmap private not fixed
  19565. mmap private fixed at somewhere currently unmapped
  19566. mmap private fixed at somewhere already mapped
  19567. mmap shared not fixed
  19568. mmap shared fixed at somewhere currently unmapped
  19569. mmap shared fixed at somewhere already mapped
  19570. For private mappings, we should verify that changes cannot be read()
  19571. back from the file, nor mmap's back from the file at a different
  19572. address. (There have been systems where private was not correctly
  19573. implemented like the infamous i386 svr4.0, and systems where the
  19574. VM page cache was not coherent with the file system buffer cache
  19575. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19576. For shared mappings, we should conversely verify that changes get
  19577. propagated back to all the places they're supposed to be.
  19578. Grep wants private fixed already mapped.
  19579. The main things grep needs to know about mmap are:
  19580. * does it exist and is it safe to write into the mmap'd area
  19581. * how to use it (BSD variants) */
  19582. #include <fcntl.h>
  19583. #include <sys/mman.h>
  19584. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19585. char *malloc ();
  19586. #endif
  19587. /* This mess was copied from the GNU getpagesize.h. */
  19588. #if !HAVE_GETPAGESIZE
  19589. /* Assume that all systems that can run configure have sys/param.h. */
  19590. # if !HAVE_SYS_PARAM_H
  19591. # define HAVE_SYS_PARAM_H 1
  19592. # endif
  19593. # ifdef _SC_PAGESIZE
  19594. # define getpagesize() sysconf(_SC_PAGESIZE)
  19595. # else /* no _SC_PAGESIZE */
  19596. # if HAVE_SYS_PARAM_H
  19597. # include <sys/param.h>
  19598. # ifdef EXEC_PAGESIZE
  19599. # define getpagesize() EXEC_PAGESIZE
  19600. # else /* no EXEC_PAGESIZE */
  19601. # ifdef NBPG
  19602. # define getpagesize() NBPG * CLSIZE
  19603. # ifndef CLSIZE
  19604. # define CLSIZE 1
  19605. # endif /* no CLSIZE */
  19606. # else /* no NBPG */
  19607. # ifdef NBPC
  19608. # define getpagesize() NBPC
  19609. # else /* no NBPC */
  19610. # ifdef PAGESIZE
  19611. # define getpagesize() PAGESIZE
  19612. # endif /* PAGESIZE */
  19613. # endif /* no NBPC */
  19614. # endif /* no NBPG */
  19615. # endif /* no EXEC_PAGESIZE */
  19616. # else /* no HAVE_SYS_PARAM_H */
  19617. # define getpagesize() 8192 /* punt totally */
  19618. # endif /* no HAVE_SYS_PARAM_H */
  19619. # endif /* no _SC_PAGESIZE */
  19620. #endif /* no HAVE_GETPAGESIZE */
  19621. int
  19622. main ()
  19623. {
  19624. char *data, *data2, *data3;
  19625. int i, pagesize;
  19626. int fd;
  19627. pagesize = getpagesize ();
  19628. /* First, make a file with some known garbage in it. */
  19629. data = (char *) malloc (pagesize);
  19630. if (!data)
  19631. exit (1);
  19632. for (i = 0; i < pagesize; ++i)
  19633. *(data + i) = rand ();
  19634. umask (0);
  19635. fd = creat ("conftest.mmap", 0600);
  19636. if (fd < 0)
  19637. exit (1);
  19638. if (write (fd, data, pagesize) != pagesize)
  19639. exit (1);
  19640. close (fd);
  19641. /* Next, try to mmap the file at a fixed address which already has
  19642. something else allocated at it. If we can, also make sure that
  19643. we see the same garbage. */
  19644. fd = open ("conftest.mmap", O_RDWR);
  19645. if (fd < 0)
  19646. exit (1);
  19647. data2 = (char *) malloc (2 * pagesize);
  19648. if (!data2)
  19649. exit (1);
  19650. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19651. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19652. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19653. exit (1);
  19654. for (i = 0; i < pagesize; ++i)
  19655. if (*(data + i) != *(data2 + i))
  19656. exit (1);
  19657. /* Finally, make sure that changes to the mapped area do not
  19658. percolate back to the file as seen by read(). (This is a bug on
  19659. some variants of i386 svr4.0.) */
  19660. for (i = 0; i < pagesize; ++i)
  19661. *(data2 + i) = *(data2 + i) + 1;
  19662. data3 = (char *) malloc (pagesize);
  19663. if (!data3)
  19664. exit (1);
  19665. if (read (fd, data3, pagesize) != pagesize)
  19666. exit (1);
  19667. for (i = 0; i < pagesize; ++i)
  19668. if (*(data + i) != *(data3 + i))
  19669. exit (1);
  19670. close (fd);
  19671. exit (0);
  19672. }
  19673. _ACEOF
  19674. rm -f conftest$ac_exeext
  19675. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19676. (eval $ac_link) 2>&5
  19677. ac_status=$?
  19678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19679. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19681. (eval $ac_try) 2>&5
  19682. ac_status=$?
  19683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19684. (exit $ac_status); }; }; then
  19685. ac_cv_func_mmap_fixed_mapped=yes
  19686. else
  19687. echo "$as_me: program exited with status $ac_status" >&5
  19688. echo "$as_me: failed program was:" >&5
  19689. sed 's/^/| /' conftest.$ac_ext >&5
  19690. ( exit $ac_status )
  19691. ac_cv_func_mmap_fixed_mapped=no
  19692. fi
  19693. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19694. fi
  19695. fi
  19696. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19697. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19698. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19699. cat >>confdefs.h <<\_ACEOF
  19700. #define HAVE_MMAP 1
  19701. _ACEOF
  19702. fi
  19703. rm -f conftest.mmap
  19704. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19705. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19706. if test "${ac_cv_type_signal+set}" = set; then
  19707. echo $ECHO_N "(cached) $ECHO_C" >&6
  19708. else
  19709. cat >conftest.$ac_ext <<_ACEOF
  19710. /* confdefs.h. */
  19711. _ACEOF
  19712. cat confdefs.h >>conftest.$ac_ext
  19713. cat >>conftest.$ac_ext <<_ACEOF
  19714. /* end confdefs.h. */
  19715. #include <sys/types.h>
  19716. #include <signal.h>
  19717. #ifdef signal
  19718. # undef signal
  19719. #endif
  19720. #ifdef __cplusplus
  19721. extern "C" void (*signal (int, void (*)(int)))(int);
  19722. #else
  19723. void (*signal ()) ();
  19724. #endif
  19725. int
  19726. main ()
  19727. {
  19728. int i;
  19729. ;
  19730. return 0;
  19731. }
  19732. _ACEOF
  19733. rm -f conftest.$ac_objext
  19734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19735. (eval $ac_compile) 2>conftest.er1
  19736. ac_status=$?
  19737. grep -v '^ *+' conftest.er1 >conftest.err
  19738. rm -f conftest.er1
  19739. cat conftest.err >&5
  19740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19741. (exit $ac_status); } &&
  19742. { ac_try='test -z "$ac_c_werror_flag"
  19743. || test ! -s conftest.err'
  19744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19745. (eval $ac_try) 2>&5
  19746. ac_status=$?
  19747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19748. (exit $ac_status); }; } &&
  19749. { ac_try='test -s conftest.$ac_objext'
  19750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19751. (eval $ac_try) 2>&5
  19752. ac_status=$?
  19753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19754. (exit $ac_status); }; }; then
  19755. ac_cv_type_signal=void
  19756. else
  19757. echo "$as_me: failed program was:" >&5
  19758. sed 's/^/| /' conftest.$ac_ext >&5
  19759. ac_cv_type_signal=int
  19760. fi
  19761. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19762. fi
  19763. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19764. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19765. cat >>confdefs.h <<_ACEOF
  19766. #define RETSIGTYPE $ac_cv_type_signal
  19767. _ACEOF
  19768. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19769. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19770. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19771. echo $ECHO_N "(cached) $ECHO_C" >&6
  19772. else
  19773. if test "$cross_compiling" = yes; then
  19774. ac_cv_func_stat_empty_string_bug=yes
  19775. else
  19776. cat >conftest.$ac_ext <<_ACEOF
  19777. /* confdefs.h. */
  19778. _ACEOF
  19779. cat confdefs.h >>conftest.$ac_ext
  19780. cat >>conftest.$ac_ext <<_ACEOF
  19781. /* end confdefs.h. */
  19782. $ac_includes_default
  19783. int
  19784. main ()
  19785. {
  19786. struct stat sbuf;
  19787. exit (stat ("", &sbuf) ? 1 : 0);
  19788. ;
  19789. return 0;
  19790. }
  19791. _ACEOF
  19792. rm -f conftest$ac_exeext
  19793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19794. (eval $ac_link) 2>&5
  19795. ac_status=$?
  19796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19797. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19799. (eval $ac_try) 2>&5
  19800. ac_status=$?
  19801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19802. (exit $ac_status); }; }; then
  19803. ac_cv_func_stat_empty_string_bug=yes
  19804. else
  19805. echo "$as_me: program exited with status $ac_status" >&5
  19806. echo "$as_me: failed program was:" >&5
  19807. sed 's/^/| /' conftest.$ac_ext >&5
  19808. ( exit $ac_status )
  19809. ac_cv_func_stat_empty_string_bug=no
  19810. fi
  19811. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19812. fi
  19813. fi
  19814. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19815. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19816. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19817. case $LIBOBJS in
  19818. "stat.$ac_objext" | \
  19819. *" stat.$ac_objext" | \
  19820. "stat.$ac_objext "* | \
  19821. *" stat.$ac_objext "* ) ;;
  19822. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19823. esac
  19824. cat >>confdefs.h <<_ACEOF
  19825. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19826. _ACEOF
  19827. fi
  19828. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19829. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19830. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19831. echo $ECHO_N "(cached) $ECHO_C" >&6
  19832. else
  19833. cat >conftest.$ac_ext <<_ACEOF
  19834. /* confdefs.h. */
  19835. _ACEOF
  19836. cat confdefs.h >>conftest.$ac_ext
  19837. cat >>conftest.$ac_ext <<_ACEOF
  19838. /* end confdefs.h. */
  19839. $ac_includes_default
  19840. int
  19841. main ()
  19842. {
  19843. #ifndef strerror_r
  19844. char *p = (char *) strerror_r;
  19845. #endif
  19846. ;
  19847. return 0;
  19848. }
  19849. _ACEOF
  19850. rm -f conftest.$ac_objext
  19851. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19852. (eval $ac_compile) 2>conftest.er1
  19853. ac_status=$?
  19854. grep -v '^ *+' conftest.er1 >conftest.err
  19855. rm -f conftest.er1
  19856. cat conftest.err >&5
  19857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19858. (exit $ac_status); } &&
  19859. { ac_try='test -z "$ac_c_werror_flag"
  19860. || test ! -s conftest.err'
  19861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19862. (eval $ac_try) 2>&5
  19863. ac_status=$?
  19864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19865. (exit $ac_status); }; } &&
  19866. { ac_try='test -s conftest.$ac_objext'
  19867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19868. (eval $ac_try) 2>&5
  19869. ac_status=$?
  19870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19871. (exit $ac_status); }; }; then
  19872. ac_cv_have_decl_strerror_r=yes
  19873. else
  19874. echo "$as_me: failed program was:" >&5
  19875. sed 's/^/| /' conftest.$ac_ext >&5
  19876. ac_cv_have_decl_strerror_r=no
  19877. fi
  19878. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19879. fi
  19880. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19881. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19882. if test $ac_cv_have_decl_strerror_r = yes; then
  19883. cat >>confdefs.h <<_ACEOF
  19884. #define HAVE_DECL_STRERROR_R 1
  19885. _ACEOF
  19886. else
  19887. cat >>confdefs.h <<_ACEOF
  19888. #define HAVE_DECL_STRERROR_R 0
  19889. _ACEOF
  19890. fi
  19891. for ac_func in strerror_r
  19892. do
  19893. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19894. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19895. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19896. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19897. echo $ECHO_N "(cached) $ECHO_C" >&6
  19898. else
  19899. cat >conftest.$ac_ext <<_ACEOF
  19900. /* confdefs.h. */
  19901. _ACEOF
  19902. cat confdefs.h >>conftest.$ac_ext
  19903. cat >>conftest.$ac_ext <<_ACEOF
  19904. /* end confdefs.h. */
  19905. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19906. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19907. #define $ac_func innocuous_$ac_func
  19908. /* System header to define __stub macros and hopefully few prototypes,
  19909. which can conflict with char $ac_func (); below.
  19910. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19911. <limits.h> exists even on freestanding compilers. */
  19912. #ifdef __STDC__
  19913. # include <limits.h>
  19914. #else
  19915. # include <assert.h>
  19916. #endif
  19917. #undef $ac_func
  19918. /* Override any gcc2 internal prototype to avoid an error. */
  19919. #ifdef __cplusplus
  19920. extern "C"
  19921. {
  19922. #endif
  19923. /* We use char because int might match the return type of a gcc2
  19924. builtin and then its argument prototype would still apply. */
  19925. char $ac_func ();
  19926. /* The GNU C library defines this for functions which it implements
  19927. to always fail with ENOSYS. Some functions are actually named
  19928. something starting with __ and the normal name is an alias. */
  19929. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19930. choke me
  19931. #else
  19932. char (*f) () = $ac_func;
  19933. #endif
  19934. #ifdef __cplusplus
  19935. }
  19936. #endif
  19937. int
  19938. main ()
  19939. {
  19940. return f != $ac_func;
  19941. ;
  19942. return 0;
  19943. }
  19944. _ACEOF
  19945. rm -f conftest.$ac_objext conftest$ac_exeext
  19946. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19947. (eval $ac_link) 2>conftest.er1
  19948. ac_status=$?
  19949. grep -v '^ *+' conftest.er1 >conftest.err
  19950. rm -f conftest.er1
  19951. cat conftest.err >&5
  19952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19953. (exit $ac_status); } &&
  19954. { ac_try='test -z "$ac_c_werror_flag"
  19955. || test ! -s conftest.err'
  19956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19957. (eval $ac_try) 2>&5
  19958. ac_status=$?
  19959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19960. (exit $ac_status); }; } &&
  19961. { ac_try='test -s conftest$ac_exeext'
  19962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19963. (eval $ac_try) 2>&5
  19964. ac_status=$?
  19965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19966. (exit $ac_status); }; }; then
  19967. eval "$as_ac_var=yes"
  19968. else
  19969. echo "$as_me: failed program was:" >&5
  19970. sed 's/^/| /' conftest.$ac_ext >&5
  19971. eval "$as_ac_var=no"
  19972. fi
  19973. rm -f conftest.err conftest.$ac_objext \
  19974. conftest$ac_exeext conftest.$ac_ext
  19975. fi
  19976. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19977. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19978. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19979. cat >>confdefs.h <<_ACEOF
  19980. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19981. _ACEOF
  19982. fi
  19983. done
  19984. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19985. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19986. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19987. echo $ECHO_N "(cached) $ECHO_C" >&6
  19988. else
  19989. ac_cv_func_strerror_r_char_p=no
  19990. if test $ac_cv_have_decl_strerror_r = yes; then
  19991. cat >conftest.$ac_ext <<_ACEOF
  19992. /* confdefs.h. */
  19993. _ACEOF
  19994. cat confdefs.h >>conftest.$ac_ext
  19995. cat >>conftest.$ac_ext <<_ACEOF
  19996. /* end confdefs.h. */
  19997. $ac_includes_default
  19998. int
  19999. main ()
  20000. {
  20001. char buf[100];
  20002. char x = *strerror_r (0, buf, sizeof buf);
  20003. char *p = strerror_r (0, buf, sizeof buf);
  20004. ;
  20005. return 0;
  20006. }
  20007. _ACEOF
  20008. rm -f conftest.$ac_objext
  20009. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20010. (eval $ac_compile) 2>conftest.er1
  20011. ac_status=$?
  20012. grep -v '^ *+' conftest.er1 >conftest.err
  20013. rm -f conftest.er1
  20014. cat conftest.err >&5
  20015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20016. (exit $ac_status); } &&
  20017. { ac_try='test -z "$ac_c_werror_flag"
  20018. || test ! -s conftest.err'
  20019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20020. (eval $ac_try) 2>&5
  20021. ac_status=$?
  20022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20023. (exit $ac_status); }; } &&
  20024. { ac_try='test -s conftest.$ac_objext'
  20025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20026. (eval $ac_try) 2>&5
  20027. ac_status=$?
  20028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20029. (exit $ac_status); }; }; then
  20030. ac_cv_func_strerror_r_char_p=yes
  20031. else
  20032. echo "$as_me: failed program was:" >&5
  20033. sed 's/^/| /' conftest.$ac_ext >&5
  20034. fi
  20035. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20036. else
  20037. # strerror_r is not declared. Choose between
  20038. # systems that have relatively inaccessible declarations for the
  20039. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  20040. # former has a strerror_r that returns char*, while the latter
  20041. # has a strerror_r that returns `int'.
  20042. # This test should segfault on the DEC system.
  20043. if test "$cross_compiling" = yes; then
  20044. :
  20045. else
  20046. cat >conftest.$ac_ext <<_ACEOF
  20047. /* confdefs.h. */
  20048. _ACEOF
  20049. cat confdefs.h >>conftest.$ac_ext
  20050. cat >>conftest.$ac_ext <<_ACEOF
  20051. /* end confdefs.h. */
  20052. $ac_includes_default
  20053. extern char *strerror_r ();
  20054. int
  20055. main ()
  20056. {
  20057. char buf[100];
  20058. char x = *strerror_r (0, buf, sizeof buf);
  20059. exit (!isalpha (x));
  20060. ;
  20061. return 0;
  20062. }
  20063. _ACEOF
  20064. rm -f conftest$ac_exeext
  20065. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20066. (eval $ac_link) 2>&5
  20067. ac_status=$?
  20068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20069. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20071. (eval $ac_try) 2>&5
  20072. ac_status=$?
  20073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20074. (exit $ac_status); }; }; then
  20075. ac_cv_func_strerror_r_char_p=yes
  20076. else
  20077. echo "$as_me: program exited with status $ac_status" >&5
  20078. echo "$as_me: failed program was:" >&5
  20079. sed 's/^/| /' conftest.$ac_ext >&5
  20080. fi
  20081. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20082. fi
  20083. fi
  20084. fi
  20085. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20086. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20087. if test $ac_cv_func_strerror_r_char_p = yes; then
  20088. cat >>confdefs.h <<\_ACEOF
  20089. #define STRERROR_R_CHAR_P 1
  20090. _ACEOF
  20091. fi
  20092. for ac_func in strftime
  20093. do
  20094. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20095. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20096. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20097. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20098. echo $ECHO_N "(cached) $ECHO_C" >&6
  20099. else
  20100. cat >conftest.$ac_ext <<_ACEOF
  20101. /* confdefs.h. */
  20102. _ACEOF
  20103. cat confdefs.h >>conftest.$ac_ext
  20104. cat >>conftest.$ac_ext <<_ACEOF
  20105. /* end confdefs.h. */
  20106. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20107. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20108. #define $ac_func innocuous_$ac_func
  20109. /* System header to define __stub macros and hopefully few prototypes,
  20110. which can conflict with char $ac_func (); below.
  20111. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20112. <limits.h> exists even on freestanding compilers. */
  20113. #ifdef __STDC__
  20114. # include <limits.h>
  20115. #else
  20116. # include <assert.h>
  20117. #endif
  20118. #undef $ac_func
  20119. /* Override any gcc2 internal prototype to avoid an error. */
  20120. #ifdef __cplusplus
  20121. extern "C"
  20122. {
  20123. #endif
  20124. /* We use char because int might match the return type of a gcc2
  20125. builtin and then its argument prototype would still apply. */
  20126. char $ac_func ();
  20127. /* The GNU C library defines this for functions which it implements
  20128. to always fail with ENOSYS. Some functions are actually named
  20129. something starting with __ and the normal name is an alias. */
  20130. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20131. choke me
  20132. #else
  20133. char (*f) () = $ac_func;
  20134. #endif
  20135. #ifdef __cplusplus
  20136. }
  20137. #endif
  20138. int
  20139. main ()
  20140. {
  20141. return f != $ac_func;
  20142. ;
  20143. return 0;
  20144. }
  20145. _ACEOF
  20146. rm -f conftest.$ac_objext conftest$ac_exeext
  20147. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20148. (eval $ac_link) 2>conftest.er1
  20149. ac_status=$?
  20150. grep -v '^ *+' conftest.er1 >conftest.err
  20151. rm -f conftest.er1
  20152. cat conftest.err >&5
  20153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20154. (exit $ac_status); } &&
  20155. { ac_try='test -z "$ac_c_werror_flag"
  20156. || test ! -s conftest.err'
  20157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20158. (eval $ac_try) 2>&5
  20159. ac_status=$?
  20160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20161. (exit $ac_status); }; } &&
  20162. { ac_try='test -s conftest$ac_exeext'
  20163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20164. (eval $ac_try) 2>&5
  20165. ac_status=$?
  20166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20167. (exit $ac_status); }; }; then
  20168. eval "$as_ac_var=yes"
  20169. else
  20170. echo "$as_me: failed program was:" >&5
  20171. sed 's/^/| /' conftest.$ac_ext >&5
  20172. eval "$as_ac_var=no"
  20173. fi
  20174. rm -f conftest.err conftest.$ac_objext \
  20175. conftest$ac_exeext conftest.$ac_ext
  20176. fi
  20177. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20178. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20179. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20180. cat >>confdefs.h <<_ACEOF
  20181. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20182. _ACEOF
  20183. else
  20184. # strftime is in -lintl on SCO UNIX.
  20185. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20186. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20187. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20188. echo $ECHO_N "(cached) $ECHO_C" >&6
  20189. else
  20190. ac_check_lib_save_LIBS=$LIBS
  20191. LIBS="-lintl $LIBS"
  20192. cat >conftest.$ac_ext <<_ACEOF
  20193. /* confdefs.h. */
  20194. _ACEOF
  20195. cat confdefs.h >>conftest.$ac_ext
  20196. cat >>conftest.$ac_ext <<_ACEOF
  20197. /* end confdefs.h. */
  20198. /* Override any gcc2 internal prototype to avoid an error. */
  20199. #ifdef __cplusplus
  20200. extern "C"
  20201. #endif
  20202. /* We use char because int might match the return type of a gcc2
  20203. builtin and then its argument prototype would still apply. */
  20204. char strftime ();
  20205. int
  20206. main ()
  20207. {
  20208. strftime ();
  20209. ;
  20210. return 0;
  20211. }
  20212. _ACEOF
  20213. rm -f conftest.$ac_objext conftest$ac_exeext
  20214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20215. (eval $ac_link) 2>conftest.er1
  20216. ac_status=$?
  20217. grep -v '^ *+' conftest.er1 >conftest.err
  20218. rm -f conftest.er1
  20219. cat conftest.err >&5
  20220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20221. (exit $ac_status); } &&
  20222. { ac_try='test -z "$ac_c_werror_flag"
  20223. || test ! -s conftest.err'
  20224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20225. (eval $ac_try) 2>&5
  20226. ac_status=$?
  20227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20228. (exit $ac_status); }; } &&
  20229. { ac_try='test -s conftest$ac_exeext'
  20230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20231. (eval $ac_try) 2>&5
  20232. ac_status=$?
  20233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20234. (exit $ac_status); }; }; then
  20235. ac_cv_lib_intl_strftime=yes
  20236. else
  20237. echo "$as_me: failed program was:" >&5
  20238. sed 's/^/| /' conftest.$ac_ext >&5
  20239. ac_cv_lib_intl_strftime=no
  20240. fi
  20241. rm -f conftest.err conftest.$ac_objext \
  20242. conftest$ac_exeext conftest.$ac_ext
  20243. LIBS=$ac_check_lib_save_LIBS
  20244. fi
  20245. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20246. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20247. if test $ac_cv_lib_intl_strftime = yes; then
  20248. cat >>confdefs.h <<\_ACEOF
  20249. #define HAVE_STRFTIME 1
  20250. _ACEOF
  20251. LIBS="-lintl $LIBS"
  20252. fi
  20253. fi
  20254. done
  20255. for ac_func in vprintf
  20256. do
  20257. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20258. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20259. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20260. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20261. echo $ECHO_N "(cached) $ECHO_C" >&6
  20262. else
  20263. cat >conftest.$ac_ext <<_ACEOF
  20264. /* confdefs.h. */
  20265. _ACEOF
  20266. cat confdefs.h >>conftest.$ac_ext
  20267. cat >>conftest.$ac_ext <<_ACEOF
  20268. /* end confdefs.h. */
  20269. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20270. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20271. #define $ac_func innocuous_$ac_func
  20272. /* System header to define __stub macros and hopefully few prototypes,
  20273. which can conflict with char $ac_func (); below.
  20274. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20275. <limits.h> exists even on freestanding compilers. */
  20276. #ifdef __STDC__
  20277. # include <limits.h>
  20278. #else
  20279. # include <assert.h>
  20280. #endif
  20281. #undef $ac_func
  20282. /* Override any gcc2 internal prototype to avoid an error. */
  20283. #ifdef __cplusplus
  20284. extern "C"
  20285. {
  20286. #endif
  20287. /* We use char because int might match the return type of a gcc2
  20288. builtin and then its argument prototype would still apply. */
  20289. char $ac_func ();
  20290. /* The GNU C library defines this for functions which it implements
  20291. to always fail with ENOSYS. Some functions are actually named
  20292. something starting with __ and the normal name is an alias. */
  20293. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20294. choke me
  20295. #else
  20296. char (*f) () = $ac_func;
  20297. #endif
  20298. #ifdef __cplusplus
  20299. }
  20300. #endif
  20301. int
  20302. main ()
  20303. {
  20304. return f != $ac_func;
  20305. ;
  20306. return 0;
  20307. }
  20308. _ACEOF
  20309. rm -f conftest.$ac_objext conftest$ac_exeext
  20310. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20311. (eval $ac_link) 2>conftest.er1
  20312. ac_status=$?
  20313. grep -v '^ *+' conftest.er1 >conftest.err
  20314. rm -f conftest.er1
  20315. cat conftest.err >&5
  20316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20317. (exit $ac_status); } &&
  20318. { ac_try='test -z "$ac_c_werror_flag"
  20319. || test ! -s conftest.err'
  20320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20321. (eval $ac_try) 2>&5
  20322. ac_status=$?
  20323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20324. (exit $ac_status); }; } &&
  20325. { ac_try='test -s conftest$ac_exeext'
  20326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20327. (eval $ac_try) 2>&5
  20328. ac_status=$?
  20329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20330. (exit $ac_status); }; }; then
  20331. eval "$as_ac_var=yes"
  20332. else
  20333. echo "$as_me: failed program was:" >&5
  20334. sed 's/^/| /' conftest.$ac_ext >&5
  20335. eval "$as_ac_var=no"
  20336. fi
  20337. rm -f conftest.err conftest.$ac_objext \
  20338. conftest$ac_exeext conftest.$ac_ext
  20339. fi
  20340. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20341. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20342. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20343. cat >>confdefs.h <<_ACEOF
  20344. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20345. _ACEOF
  20346. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20347. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20348. if test "${ac_cv_func__doprnt+set}" = set; then
  20349. echo $ECHO_N "(cached) $ECHO_C" >&6
  20350. else
  20351. cat >conftest.$ac_ext <<_ACEOF
  20352. /* confdefs.h. */
  20353. _ACEOF
  20354. cat confdefs.h >>conftest.$ac_ext
  20355. cat >>conftest.$ac_ext <<_ACEOF
  20356. /* end confdefs.h. */
  20357. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20358. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20359. #define _doprnt innocuous__doprnt
  20360. /* System header to define __stub macros and hopefully few prototypes,
  20361. which can conflict with char _doprnt (); below.
  20362. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20363. <limits.h> exists even on freestanding compilers. */
  20364. #ifdef __STDC__
  20365. # include <limits.h>
  20366. #else
  20367. # include <assert.h>
  20368. #endif
  20369. #undef _doprnt
  20370. /* Override any gcc2 internal prototype to avoid an error. */
  20371. #ifdef __cplusplus
  20372. extern "C"
  20373. {
  20374. #endif
  20375. /* We use char because int might match the return type of a gcc2
  20376. builtin and then its argument prototype would still apply. */
  20377. char _doprnt ();
  20378. /* The GNU C library defines this for functions which it implements
  20379. to always fail with ENOSYS. Some functions are actually named
  20380. something starting with __ and the normal name is an alias. */
  20381. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20382. choke me
  20383. #else
  20384. char (*f) () = _doprnt;
  20385. #endif
  20386. #ifdef __cplusplus
  20387. }
  20388. #endif
  20389. int
  20390. main ()
  20391. {
  20392. return f != _doprnt;
  20393. ;
  20394. return 0;
  20395. }
  20396. _ACEOF
  20397. rm -f conftest.$ac_objext conftest$ac_exeext
  20398. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20399. (eval $ac_link) 2>conftest.er1
  20400. ac_status=$?
  20401. grep -v '^ *+' conftest.er1 >conftest.err
  20402. rm -f conftest.er1
  20403. cat conftest.err >&5
  20404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20405. (exit $ac_status); } &&
  20406. { ac_try='test -z "$ac_c_werror_flag"
  20407. || test ! -s conftest.err'
  20408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20409. (eval $ac_try) 2>&5
  20410. ac_status=$?
  20411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20412. (exit $ac_status); }; } &&
  20413. { ac_try='test -s conftest$ac_exeext'
  20414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20415. (eval $ac_try) 2>&5
  20416. ac_status=$?
  20417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20418. (exit $ac_status); }; }; then
  20419. ac_cv_func__doprnt=yes
  20420. else
  20421. echo "$as_me: failed program was:" >&5
  20422. sed 's/^/| /' conftest.$ac_ext >&5
  20423. ac_cv_func__doprnt=no
  20424. fi
  20425. rm -f conftest.err conftest.$ac_objext \
  20426. conftest$ac_exeext conftest.$ac_ext
  20427. fi
  20428. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20429. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20430. if test $ac_cv_func__doprnt = yes; then
  20431. cat >>confdefs.h <<\_ACEOF
  20432. #define HAVE_DOPRNT 1
  20433. _ACEOF
  20434. fi
  20435. fi
  20436. done
  20437. 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
  20438. do
  20439. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20440. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20441. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20442. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20443. echo $ECHO_N "(cached) $ECHO_C" >&6
  20444. else
  20445. cat >conftest.$ac_ext <<_ACEOF
  20446. /* confdefs.h. */
  20447. _ACEOF
  20448. cat confdefs.h >>conftest.$ac_ext
  20449. cat >>conftest.$ac_ext <<_ACEOF
  20450. /* end confdefs.h. */
  20451. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20452. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20453. #define $ac_func innocuous_$ac_func
  20454. /* System header to define __stub macros and hopefully few prototypes,
  20455. which can conflict with char $ac_func (); below.
  20456. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20457. <limits.h> exists even on freestanding compilers. */
  20458. #ifdef __STDC__
  20459. # include <limits.h>
  20460. #else
  20461. # include <assert.h>
  20462. #endif
  20463. #undef $ac_func
  20464. /* Override any gcc2 internal prototype to avoid an error. */
  20465. #ifdef __cplusplus
  20466. extern "C"
  20467. {
  20468. #endif
  20469. /* We use char because int might match the return type of a gcc2
  20470. builtin and then its argument prototype would still apply. */
  20471. char $ac_func ();
  20472. /* The GNU C library defines this for functions which it implements
  20473. to always fail with ENOSYS. Some functions are actually named
  20474. something starting with __ and the normal name is an alias. */
  20475. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20476. choke me
  20477. #else
  20478. char (*f) () = $ac_func;
  20479. #endif
  20480. #ifdef __cplusplus
  20481. }
  20482. #endif
  20483. int
  20484. main ()
  20485. {
  20486. return f != $ac_func;
  20487. ;
  20488. return 0;
  20489. }
  20490. _ACEOF
  20491. rm -f conftest.$ac_objext conftest$ac_exeext
  20492. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20493. (eval $ac_link) 2>conftest.er1
  20494. ac_status=$?
  20495. grep -v '^ *+' conftest.er1 >conftest.err
  20496. rm -f conftest.er1
  20497. cat conftest.err >&5
  20498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20499. (exit $ac_status); } &&
  20500. { ac_try='test -z "$ac_c_werror_flag"
  20501. || test ! -s conftest.err'
  20502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20503. (eval $ac_try) 2>&5
  20504. ac_status=$?
  20505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20506. (exit $ac_status); }; } &&
  20507. { ac_try='test -s conftest$ac_exeext'
  20508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20509. (eval $ac_try) 2>&5
  20510. ac_status=$?
  20511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20512. (exit $ac_status); }; }; then
  20513. eval "$as_ac_var=yes"
  20514. else
  20515. echo "$as_me: failed program was:" >&5
  20516. sed 's/^/| /' conftest.$ac_ext >&5
  20517. eval "$as_ac_var=no"
  20518. fi
  20519. rm -f conftest.err conftest.$ac_objext \
  20520. conftest$ac_exeext conftest.$ac_ext
  20521. fi
  20522. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20523. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20524. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20525. cat >>confdefs.h <<_ACEOF
  20526. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20527. _ACEOF
  20528. fi
  20529. done
  20530. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20531. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20532. # Check whether --enable-debug or --disable-debug was given.
  20533. if test "${enable_debug+set}" = set; then
  20534. enableval="$enable_debug"
  20535. echo "$as_me:$LINENO: result: yes" >&5
  20536. echo "${ECHO_T}yes" >&6
  20537. debug_defs="-DDEBUG -DMCC_DEBUG"
  20538. else
  20539. echo "$as_me:$LINENO: result: no" >&5
  20540. echo "${ECHO_T}no" >&6
  20541. debug_defs=""
  20542. fi;
  20543. # Used for legacy style packaging where we bundle all of the dependencies.
  20544. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20545. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20546. # Check whether --enable-bundle or --disable-bundle was given.
  20547. if test "${enable_bundle+set}" = set; then
  20548. enableval="$enable_bundle"
  20549. echo "$as_me:$LINENO: result: yes" >&5
  20550. echo "${ECHO_T}yes" >&6
  20551. bundle="1";
  20552. else
  20553. echo "$as_me:$LINENO: result: no" >&5
  20554. echo "${ECHO_T}no" >&6
  20555. bundle="";
  20556. fi;
  20557. if test "$bundle" = "1"; then
  20558. BUNDLE_TRUE=
  20559. BUNDLE_FALSE='#'
  20560. else
  20561. BUNDLE_TRUE='#'
  20562. BUNDLE_FALSE=
  20563. fi
  20564. # these enables are for optional or experimental features
  20565. if test -z "$enable_pam_passthru" ; then
  20566. enable_pam_passthru=yes # if not set on cmdline, set default
  20567. fi
  20568. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20569. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20570. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20571. if test "${enable_pam_passthru+set}" = set; then
  20572. enableval="$enable_pam_passthru"
  20573. fi;
  20574. if test "$enable_pam_passthru" = yes ; then
  20575. echo "$as_me:$LINENO: result: yes" >&5
  20576. echo "${ECHO_T}yes" >&6
  20577. cat >>confdefs.h <<\_ACEOF
  20578. #define ENABLE_PAM_PASSTHRU 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_pam_passthru" = "yes"; then
  20585. enable_pam_passthru_TRUE=
  20586. enable_pam_passthru_FALSE='#'
  20587. else
  20588. enable_pam_passthru_TRUE='#'
  20589. enable_pam_passthru_FALSE=
  20590. fi
  20591. if test -z "$enable_dna" ; then
  20592. enable_dna=yes # if not set on cmdline, set default
  20593. fi
  20594. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20595. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20596. # Check whether --enable-dna or --disable-dna was given.
  20597. if test "${enable_dna+set}" = set; then
  20598. enableval="$enable_dna"
  20599. fi;
  20600. if test "$enable_dna" = yes ; then
  20601. echo "$as_me:$LINENO: result: yes" >&5
  20602. echo "${ECHO_T}yes" >&6
  20603. cat >>confdefs.h <<\_ACEOF
  20604. #define ENABLE_DNA 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_dna" = "yes"; then
  20611. enable_dna_TRUE=
  20612. enable_dna_FALSE='#'
  20613. else
  20614. enable_dna_TRUE='#'
  20615. enable_dna_FALSE=
  20616. fi
  20617. if test -z "$enable_ldapi" ; then
  20618. enable_ldapi=yes # if not set on cmdline, set default
  20619. fi
  20620. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20621. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20622. # Check whether --enable-ldapi or --disable-ldapi was given.
  20623. if test "${enable_ldapi+set}" = set; then
  20624. enableval="$enable_ldapi"
  20625. fi;
  20626. if test "$enable_ldapi" = yes ; then
  20627. echo "$as_me:$LINENO: result: yes" >&5
  20628. echo "${ECHO_T}yes" >&6
  20629. cat >>confdefs.h <<\_ACEOF
  20630. #define ENABLE_LDAPI 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_ldapi" = "yes"; then
  20637. enable_ldapi_TRUE=
  20638. enable_ldapi_FALSE='#'
  20639. else
  20640. enable_ldapi_TRUE='#'
  20641. enable_ldapi_FALSE=
  20642. fi
  20643. if test -z "$enable_autobind" ; then
  20644. enable_autobind=no # if not set on cmdline, set default
  20645. fi
  20646. echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  20647. echo $ECHO_N "checking for --enable-autobind... $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 ; then
  20653. echo "$as_me:$LINENO: result: yes" >&5
  20654. echo "${ECHO_T}yes" >&6
  20655. cat >>confdefs.h <<\_ACEOF
  20656. #define ENABLE_AUTOBIND 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_autobind" = "yes"; then
  20663. enable_autobind_TRUE=
  20664. enable_autobind_FALSE='#'
  20665. else
  20666. enable_autobind_TRUE='#'
  20667. enable_autobind_FALSE=
  20668. fi
  20669. if test -z "$enable_auto_dn_suffix" ; then
  20670. enable_auto_dn_suffix=no # if not set on cmdline, set default
  20671. fi
  20672. echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  20673. echo $ECHO_N "checking for --enable-auto-dn-suffix... $ECHO_C" >&6
  20674. # Check whether --enable-autobind or --disable-autobind was given.
  20675. if test "${enable_autobind+set}" = set; then
  20676. enableval="$enable_autobind"
  20677. fi;
  20678. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  20679. echo "$as_me:$LINENO: result: yes" >&5
  20680. echo "${ECHO_T}yes" >&6
  20681. cat >>confdefs.h <<\_ACEOF
  20682. #define ENABLE_AUTO_DN_SUFFIX 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_auto_dn_suffix" = "yes"; then
  20689. enable_auto_dn_suffix_TRUE=
  20690. enable_auto_dn_suffix_FALSE='#'
  20691. else
  20692. enable_auto_dn_suffix_TRUE='#'
  20693. enable_auto_dn_suffix_FALSE=
  20694. fi
  20695. if test -z "$enable_bitwise" ; then
  20696. enable_bitwise=yes # if not set on cmdline, set default
  20697. fi
  20698. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20699. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20700. # Check whether --enable-bitwise or --disable-bitwise was given.
  20701. if test "${enable_bitwise+set}" = set; then
  20702. enableval="$enable_bitwise"
  20703. fi;
  20704. if test "$enable_bitwise" = yes ; then
  20705. echo "$as_me:$LINENO: result: yes" >&5
  20706. echo "${ECHO_T}yes" >&6
  20707. cat >>confdefs.h <<\_ACEOF
  20708. #define ENABLE_BITWISE 1
  20709. _ACEOF
  20710. else
  20711. echo "$as_me:$LINENO: result: no" >&5
  20712. echo "${ECHO_T}no" >&6
  20713. fi
  20714. if test "$enable_bitwise" = "yes"; then
  20715. enable_bitwise_TRUE=
  20716. enable_bitwise_FALSE='#'
  20717. else
  20718. enable_bitwise_TRUE='#'
  20719. enable_bitwise_FALSE=
  20720. fi
  20721. if test -z "$enable_presence" ; then
  20722. enable_presence=no # if not set on cmdline, set default
  20723. fi
  20724. echo "$as_me:$LINENO: checking for --enable-presence" >&5
  20725. echo $ECHO_N "checking for --enable-presence... $ECHO_C" >&6
  20726. # Check whether --enable-presence or --disable-presence was given.
  20727. if test "${enable_presence+set}" = set; then
  20728. enableval="$enable_presence"
  20729. fi;
  20730. if test "$enable_presence" = yes ; then
  20731. echo "$as_me:$LINENO: result: yes" >&5
  20732. echo "${ECHO_T}yes" >&6
  20733. cat >>confdefs.h <<\_ACEOF
  20734. #define ENABLE_PRESENCE 1
  20735. _ACEOF
  20736. else
  20737. echo "$as_me:$LINENO: result: no" >&5
  20738. echo "${ECHO_T}no" >&6
  20739. fi
  20740. if test "$enable_presence" = "yes"; then
  20741. enable_presence_TRUE=
  20742. enable_presence_FALSE='#'
  20743. else
  20744. enable_presence_TRUE='#'
  20745. enable_presence_FALSE=
  20746. fi
  20747. # the default prefix - override with --prefix or --with-fhs
  20748. # BEGIN COPYRIGHT BLOCK
  20749. # Copyright (C) 2006 Red Hat, Inc.
  20750. # All rights reserved.
  20751. #
  20752. # This program is free software; you can redistribute it and/or
  20753. # modify it under the terms of the GNU General Public License
  20754. # as published by the Free Software Foundation; either version 2
  20755. # of the License, or (at your option) any later version.
  20756. #
  20757. # This program is distributed in the hope that it will be useful,
  20758. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20759. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20760. # GNU General Public License for more details.
  20761. #
  20762. # You should have received a copy of the GNU General Public License
  20763. # along with this program; if not, write to the Free Software
  20764. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20765. #
  20766. # END COPYRIGHT BLOCK
  20767. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20768. echo "$as_me: checking for FHS..." >&6;}
  20769. # check for --with-fhs
  20770. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20771. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20772. # Check whether --with-fhs or --without-fhs was given.
  20773. if test "${with_fhs+set}" = set; then
  20774. withval="$with_fhs"
  20775. with_fhs=yes
  20776. echo "$as_me:$LINENO: result: yes" >&5
  20777. echo "${ECHO_T}yes" >&6
  20778. else
  20779. echo "$as_me:$LINENO: result: no" >&5
  20780. echo "${ECHO_T}no" >&6
  20781. fi;
  20782. if test "$with_fhs" = "yes"; then
  20783. cat >>confdefs.h <<\_ACEOF
  20784. #define IS_FHS 1
  20785. _ACEOF
  20786. fi
  20787. # check for --with-fhs-opt
  20788. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20789. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20790. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20791. if test "${with_fhs_opt+set}" = set; then
  20792. withval="$with_fhs_opt"
  20793. with_fhs_opt=yes
  20794. echo "$as_me:$LINENO: result: yes" >&5
  20795. echo "${ECHO_T}yes" >&6
  20796. else
  20797. echo "$as_me:$LINENO: result: no" >&5
  20798. echo "${ECHO_T}no" >&6
  20799. fi;
  20800. if test "$with_fhs_opt" = "yes"; then
  20801. cat >>confdefs.h <<\_ACEOF
  20802. #define IS_FHS_OPT 1
  20803. _ACEOF
  20804. fi
  20805. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20806. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20807. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20808. { (exit 1); exit 1; }; }
  20809. fi
  20810. # installation paths - by default, we store everything
  20811. # under the prefix. The with-fhs option will use /usr,
  20812. # /etc, and /var. The with-fhs-opt option will use the
  20813. # prefix, but it's sysconfdir and localstatedir will be
  20814. # /etc/opt, and /var/opt.
  20815. if test "$with_fhs_opt" = "yes"; then
  20816. # Override sysconfdir and localstatedir if FHS optional
  20817. # package was requested.
  20818. sysconfdir='/etc/opt'
  20819. localstatedir='/var/opt'
  20820. # relative to datadir
  20821. sampledatadir=/data
  20822. # relative to datadir
  20823. scripttemplatedir=/script-templates
  20824. # relative to datadir
  20825. updatedir=/updates
  20826. # relative to libdir
  20827. serverdir=
  20828. # relative to libdir
  20829. serverplugindir=/plugins
  20830. # relative to datadir
  20831. infdir=/inf
  20832. # relative to datadir
  20833. mibdir=/mibs
  20834. # location of property/resource files, relative to datadir
  20835. propertydir=/properties
  20836. # relative to libdir
  20837. perldir=/perl
  20838. else
  20839. if test "$with_fhs" = "yes"; then
  20840. ac_default_prefix=/usr
  20841. prefix=$ac_default_prefix
  20842. exec_prefix=$prefix
  20843. sysconfdir='/etc'
  20844. localstatedir='/var'
  20845. fi
  20846. # relative to datadir
  20847. sampledatadir=/$PACKAGE_NAME/data
  20848. # relative to datadir
  20849. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20850. # relative to datadir
  20851. updatedir=/$PACKAGE_NAME/updates
  20852. # relative to libdir
  20853. serverdir=/$PACKAGE_NAME
  20854. # relative to libdir
  20855. serverplugindir=/$PACKAGE_NAME/plugins
  20856. # relative to datadir
  20857. infdir=/$PACKAGE_NAME/inf
  20858. # relative to datadir
  20859. mibdir=/$PACKAGE_NAME/mibs
  20860. # location of property/resource files, relative to datadir
  20861. propertydir=/$PACKAGE_NAME/properties
  20862. # relative to libdir
  20863. perldir=/$PACKAGE_NAME/perl
  20864. fi
  20865. # if mandir is the default value, override it
  20866. # otherwise, the user must have set it - just use it
  20867. if test X"$mandir" = X'${prefix}/man' ; then
  20868. mandir='$(datadir)/man'
  20869. fi
  20870. # Shared paths for all layouts
  20871. # relative to sysconfdir
  20872. configdir=/$PACKAGE_NAME/config
  20873. # relative to sysconfdir
  20874. schemadir=/$PACKAGE_NAME/schema
  20875. # default user, group
  20876. defaultuser=nobody
  20877. defaultgroup=nobody
  20878. # check for --with-instconfigdir
  20879. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20880. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20881. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20882. if test "${with_instconfigdir+set}" = set; then
  20883. withval="$with_instconfigdir"
  20884. if test $withval = yes ; then
  20885. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20886. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20887. { (exit 1); exit 1; }; }
  20888. fi
  20889. instconfigdir="$withval"
  20890. echo "$as_me:$LINENO: result: $withval" >&5
  20891. echo "${ECHO_T}$withval" >&6
  20892. else
  20893. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20894. echo "$as_me:$LINENO: result: no" >&5
  20895. echo "${ECHO_T}no" >&6
  20896. fi;
  20897. # WINNT should be true if building on Windows system not using
  20898. # cygnus, mingw, or the like and using cmd.exe as the shell
  20899. if false; then
  20900. WINNT_TRUE=
  20901. WINNT_FALSE='#'
  20902. else
  20903. WINNT_TRUE='#'
  20904. WINNT_FALSE=
  20905. fi
  20906. # Deal with platform dependent defines
  20907. # relative to sysconfdir
  20908. initdir=/rc.d
  20909. # on most platforms, we will just use perl from PATH
  20910. # On some platforms, we cannot. Why not just use any old
  20911. # perl? Because of perldap. We use a perldap that is
  20912. # compiled to either 32bit or 64bit, so we must use a native
  20913. # perl binary compiled with the same bitsize. On Solaris
  20914. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20915. # those with our 64 bit compiled product.
  20916. perlexec='/usr/bin/env perl'
  20917. case $host in
  20918. *-*-linux*)
  20919. cat >>confdefs.h <<\_ACEOF
  20920. #define XP_UNIX 1
  20921. _ACEOF
  20922. cat >>confdefs.h <<\_ACEOF
  20923. #define Linux 1
  20924. _ACEOF
  20925. cat >>confdefs.h <<\_ACEOF
  20926. #define LINUX 1
  20927. _ACEOF
  20928. cat >>confdefs.h <<\_ACEOF
  20929. #define LINUX2_0 1
  20930. _ACEOF
  20931. cat >>confdefs.h <<\_ACEOF
  20932. #define LINUX2_2 1
  20933. _ACEOF
  20934. cat >>confdefs.h <<\_ACEOF
  20935. #define LINUX2_4 1
  20936. _ACEOF
  20937. cat >>confdefs.h <<\_ACEOF
  20938. #define _GNU_SOURCE 1
  20939. _ACEOF
  20940. platform="linux"
  20941. # relative to sysconfdir
  20942. initdir=/rc.d/init.d
  20943. # do arch specific linux stuff here
  20944. case $host in
  20945. i*86-*-linux*)
  20946. cat >>confdefs.h <<\_ACEOF
  20947. #define CPU_x86
  20948. _ACEOF
  20949. cat >>confdefs.h <<\_ACEOF
  20950. #define ATOMIC_64BIT_OPERATIONS 1
  20951. _ACEOF
  20952. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  20953. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  20954. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  20955. echo $ECHO_N "(cached) $ECHO_C" >&6
  20956. else
  20957. cat >conftest.$ac_ext <<_ACEOF
  20958. /* confdefs.h. */
  20959. _ACEOF
  20960. cat confdefs.h >>conftest.$ac_ext
  20961. cat >>conftest.$ac_ext <<_ACEOF
  20962. /* end confdefs.h. */
  20963. $ac_includes_default
  20964. int
  20965. main ()
  20966. {
  20967. #ifndef __sync_add_and_fetch
  20968. char *p = (char *) __sync_add_and_fetch;
  20969. #endif
  20970. ;
  20971. return 0;
  20972. }
  20973. _ACEOF
  20974. rm -f conftest.$ac_objext
  20975. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20976. (eval $ac_compile) 2>conftest.er1
  20977. ac_status=$?
  20978. grep -v '^ *+' conftest.er1 >conftest.err
  20979. rm -f conftest.er1
  20980. cat conftest.err >&5
  20981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20982. (exit $ac_status); } &&
  20983. { ac_try='test -z "$ac_c_werror_flag"
  20984. || test ! -s conftest.err'
  20985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20986. (eval $ac_try) 2>&5
  20987. ac_status=$?
  20988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20989. (exit $ac_status); }; } &&
  20990. { ac_try='test -s conftest.$ac_objext'
  20991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20992. (eval $ac_try) 2>&5
  20993. ac_status=$?
  20994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20995. (exit $ac_status); }; }; then
  20996. ac_cv_have_decl___sync_add_and_fetch=yes
  20997. else
  20998. echo "$as_me: failed program was:" >&5
  20999. sed 's/^/| /' conftest.$ac_ext >&5
  21000. ac_cv_have_decl___sync_add_and_fetch=no
  21001. fi
  21002. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21003. fi
  21004. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21005. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21006. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21007. cat >>confdefs.h <<_ACEOF
  21008. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21009. _ACEOF
  21010. else
  21011. cat >>confdefs.h <<_ACEOF
  21012. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21013. _ACEOF
  21014. fi
  21015. ;;
  21016. x86_64-*-linux*)
  21017. cat >>confdefs.h <<\_ACEOF
  21018. #define CPU_x86_64
  21019. _ACEOF
  21020. cat >>confdefs.h <<\_ACEOF
  21021. #define ATOMIC_64BIT_OPERATIONS 1
  21022. _ACEOF
  21023. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  21024. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  21025. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  21026. echo $ECHO_N "(cached) $ECHO_C" >&6
  21027. else
  21028. cat >conftest.$ac_ext <<_ACEOF
  21029. /* confdefs.h. */
  21030. _ACEOF
  21031. cat confdefs.h >>conftest.$ac_ext
  21032. cat >>conftest.$ac_ext <<_ACEOF
  21033. /* end confdefs.h. */
  21034. $ac_includes_default
  21035. int
  21036. main ()
  21037. {
  21038. #ifndef __sync_add_and_fetch
  21039. char *p = (char *) __sync_add_and_fetch;
  21040. #endif
  21041. ;
  21042. return 0;
  21043. }
  21044. _ACEOF
  21045. rm -f conftest.$ac_objext
  21046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21047. (eval $ac_compile) 2>conftest.er1
  21048. ac_status=$?
  21049. grep -v '^ *+' conftest.er1 >conftest.err
  21050. rm -f conftest.er1
  21051. cat conftest.err >&5
  21052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21053. (exit $ac_status); } &&
  21054. { ac_try='test -z "$ac_c_werror_flag"
  21055. || test ! -s conftest.err'
  21056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21057. (eval $ac_try) 2>&5
  21058. ac_status=$?
  21059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21060. (exit $ac_status); }; } &&
  21061. { ac_try='test -s conftest.$ac_objext'
  21062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21063. (eval $ac_try) 2>&5
  21064. ac_status=$?
  21065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21066. (exit $ac_status); }; }; then
  21067. ac_cv_have_decl___sync_add_and_fetch=yes
  21068. else
  21069. echo "$as_me: failed program was:" >&5
  21070. sed 's/^/| /' conftest.$ac_ext >&5
  21071. ac_cv_have_decl___sync_add_and_fetch=no
  21072. fi
  21073. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21074. fi
  21075. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21076. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21077. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21078. cat >>confdefs.h <<_ACEOF
  21079. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21080. _ACEOF
  21081. else
  21082. cat >>confdefs.h <<_ACEOF
  21083. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21084. _ACEOF
  21085. fi
  21086. ;;
  21087. esac
  21088. ;;
  21089. ia64-hp-hpux*)
  21090. cat >>confdefs.h <<\_ACEOF
  21091. #define XP_UNIX 1
  21092. _ACEOF
  21093. cat >>confdefs.h <<\_ACEOF
  21094. #define hpux 1
  21095. _ACEOF
  21096. cat >>confdefs.h <<\_ACEOF
  21097. #define HPUX 1
  21098. _ACEOF
  21099. cat >>confdefs.h <<\_ACEOF
  21100. #define HPUX11 1
  21101. _ACEOF
  21102. cat >>confdefs.h <<\_ACEOF
  21103. #define HPUX11_23 1
  21104. _ACEOF
  21105. cat >>confdefs.h <<\_ACEOF
  21106. #define CPU_ia64
  21107. _ACEOF
  21108. cat >>confdefs.h <<\_ACEOF
  21109. #define OS_hpux 1
  21110. _ACEOF
  21111. cat >>confdefs.h <<\_ACEOF
  21112. #define _POSIX_C_SOURCE 199506L
  21113. _ACEOF
  21114. cat >>confdefs.h <<\_ACEOF
  21115. #define _HPUX_SOURCE 1
  21116. _ACEOF
  21117. cat >>confdefs.h <<\_ACEOF
  21118. #define _INCLUDE_STDC__SOURCE_199901 1
  21119. _ACEOF
  21120. cat >>confdefs.h <<\_ACEOF
  21121. #define ATOMIC_64BIT_OPERATIONS 1
  21122. _ACEOF
  21123. # assume 64 bit
  21124. perlexec='/opt/perl_64/bin/perl'
  21125. platform="hpux"
  21126. initconfigdir="/$PACKAGE_NAME/config"
  21127. ;;
  21128. hppa*-hp-hpux*)
  21129. cat >>confdefs.h <<\_ACEOF
  21130. #define XP_UNIX 1
  21131. _ACEOF
  21132. cat >>confdefs.h <<\_ACEOF
  21133. #define hpux 1
  21134. _ACEOF
  21135. cat >>confdefs.h <<\_ACEOF
  21136. #define HPUX 1
  21137. _ACEOF
  21138. cat >>confdefs.h <<\_ACEOF
  21139. #define HPUX11 1
  21140. _ACEOF
  21141. cat >>confdefs.h <<\_ACEOF
  21142. #define HPUX11_11 1
  21143. _ACEOF
  21144. cat >>confdefs.h <<\_ACEOF
  21145. #define CPU_hppa
  21146. _ACEOF
  21147. cat >>confdefs.h <<\_ACEOF
  21148. #define OS_hpux 1
  21149. _ACEOF
  21150. cat >>confdefs.h <<\_ACEOF
  21151. #define _POSIX_C_SOURCE 199506L
  21152. _ACEOF
  21153. cat >>confdefs.h <<\_ACEOF
  21154. #define _HPUX_SOURCE 1
  21155. _ACEOF
  21156. cat >>confdefs.h <<\_ACEOF
  21157. #define _INCLUDE_STDC__SOURCE_199901 1
  21158. _ACEOF
  21159. cat >>confdefs.h <<\_ACEOF
  21160. #define ATOMIC_64BIT_OPERATIONS 1
  21161. _ACEOF
  21162. # assume 64 bit
  21163. initconfigdir="/$PACKAGE_NAME/config"
  21164. perlexec='/opt/perl_64/bin/perl'
  21165. platform="hpux"
  21166. ;;
  21167. sparc-sun-solaris*)
  21168. cat >>confdefs.h <<\_ACEOF
  21169. #define XP_UNIX 1
  21170. _ACEOF
  21171. cat >>confdefs.h <<\_ACEOF
  21172. #define SVR4 1
  21173. _ACEOF
  21174. cat >>confdefs.h <<\_ACEOF
  21175. #define __svr4 1
  21176. _ACEOF
  21177. cat >>confdefs.h <<\_ACEOF
  21178. #define __svr4__ 1
  21179. _ACEOF
  21180. cat >>confdefs.h <<\_ACEOF
  21181. #define _SVID_GETTOD 1
  21182. _ACEOF
  21183. cat >>confdefs.h <<\_ACEOF
  21184. #define SOLARIS 1
  21185. _ACEOF
  21186. cat >>confdefs.h <<\_ACEOF
  21187. #define CPU_sparc
  21188. _ACEOF
  21189. cat >>confdefs.h <<\_ACEOF
  21190. #define OS_solaris 1
  21191. _ACEOF
  21192. cat >>confdefs.h <<\_ACEOF
  21193. #define sunos5 1
  21194. _ACEOF
  21195. cat >>confdefs.h <<\_ACEOF
  21196. #define OSVERSION 509
  21197. _ACEOF
  21198. cat >>confdefs.h <<\_ACEOF
  21199. #define _REENTRANT 1
  21200. _ACEOF
  21201. cat >>confdefs.h <<\_ACEOF
  21202. #define NO_DOMAINNAME 1
  21203. _ACEOF
  21204. cat >>confdefs.h <<\_ACEOF
  21205. #define ATOMIC_64BIT_OPERATIONS 1
  21206. _ACEOF
  21207. LIBSOCKET=-lsocket
  21208. LIBSOCKET=$LIBSOCKET
  21209. LIBNSL=-lnsl
  21210. LIBNSL=$LIBNSL
  21211. LIBDL=-ldl
  21212. LIBDL=$LIBDL
  21213. LIBCSTD=-lCstd
  21214. LIBCSTD=$LIBCSTD
  21215. LIBCRUN=-lCrun
  21216. LIBCRUN=$LIBCRUN
  21217. platform="solaris"
  21218. # assume 64 bit
  21219. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  21220. # relative to sysconfdir
  21221. initdir=/init.d
  21222. ;;
  21223. *)
  21224. platform=""
  21225. ;;
  21226. esac
  21227. # set default initconfigdir if not already set
  21228. # value will be set so as to be relative to $(sysconfdir)
  21229. if test -z "$initconfigdir" ; then
  21230. if test -d /etc/sysconfig ; then
  21231. initconfigdir=/sysconfig
  21232. elif test -d /etc/default ; then
  21233. initconfigdir=/default
  21234. else
  21235. initconfigdir="/$PACKAGE_NAME/config"
  21236. fi
  21237. fi
  21238. if test "$platform" = "hpux"; then
  21239. HPUX_TRUE=
  21240. HPUX_FALSE='#'
  21241. else
  21242. HPUX_TRUE='#'
  21243. HPUX_FALSE=
  21244. fi
  21245. if test "$platform" = "solaris"; then
  21246. SOLARIS_TRUE=
  21247. SOLARIS_FALSE='#'
  21248. else
  21249. SOLARIS_TRUE='#'
  21250. SOLARIS_FALSE=
  21251. fi
  21252. # Check for library dependencies
  21253. # BEGIN COPYRIGHT BLOCK
  21254. # Copyright (C) 2007 Red Hat, Inc.
  21255. # All rights reserved.
  21256. #
  21257. # This program is free software; you can redistribute it and/or
  21258. # modify it under the terms of the GNU General Public License
  21259. # as published by the Free Software Foundation; either version 2
  21260. # of the License, or (at your option) any later version.
  21261. #
  21262. # This program is distributed in the hope that it will be useful,
  21263. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21264. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21265. # GNU General Public License for more details.
  21266. #
  21267. # You should have received a copy of the GNU General Public License
  21268. # along with this program; if not, write to the Free Software
  21269. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21270. #
  21271. # END COPYRIGHT BLOCK
  21272. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  21273. echo "$as_me: checking for NSPR..." >&6;}
  21274. # check for --with-nspr
  21275. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  21276. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  21277. # Check whether --with-nspr or --without-nspr was given.
  21278. if test "${with_nspr+set}" = set; then
  21279. withval="$with_nspr"
  21280. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  21281. then
  21282. echo "$as_me:$LINENO: result: using $withval" >&5
  21283. echo "${ECHO_T}using $withval" >&6
  21284. NSPRDIR=$withval
  21285. nspr_inc="-I$NSPRDIR/include"
  21286. nspr_lib="-L$NSPRDIR/lib"
  21287. nspr_libdir="$NSPRDIR/lib"
  21288. else
  21289. echo
  21290. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21291. echo "$as_me: error: $withval not found" >&2;}
  21292. { (exit 1); exit 1; }; }
  21293. fi
  21294. else
  21295. echo "$as_me:$LINENO: result: no" >&5
  21296. echo "${ECHO_T}no" >&6
  21297. fi;
  21298. # check for --with-nspr-inc
  21299. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  21300. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  21301. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  21302. if test "${with_nspr_inc+set}" = set; then
  21303. withval="$with_nspr_inc"
  21304. if test -e "$withval"/nspr.h
  21305. then
  21306. echo "$as_me:$LINENO: result: using $withval" >&5
  21307. echo "${ECHO_T}using $withval" >&6
  21308. nspr_inc="-I$withval"
  21309. else
  21310. echo
  21311. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21312. echo "$as_me: error: $withval not found" >&2;}
  21313. { (exit 1); exit 1; }; }
  21314. fi
  21315. else
  21316. echo "$as_me:$LINENO: result: no" >&5
  21317. echo "${ECHO_T}no" >&6
  21318. fi;
  21319. # check for --with-nspr-lib
  21320. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21321. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  21322. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  21323. if test "${with_nspr_lib+set}" = set; then
  21324. withval="$with_nspr_lib"
  21325. if test -d "$withval"
  21326. then
  21327. echo "$as_me:$LINENO: result: using $withval" >&5
  21328. echo "${ECHO_T}using $withval" >&6
  21329. nspr_lib="-L$withval"
  21330. nspr_libdir="$withval"
  21331. else
  21332. echo
  21333. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21334. echo "$as_me: error: $withval not found" >&2;}
  21335. { (exit 1); exit 1; }; }
  21336. fi
  21337. else
  21338. echo "$as_me:$LINENO: result: no" >&5
  21339. echo "${ECHO_T}no" >&6
  21340. fi;
  21341. # if NSPR is not found yet, try pkg-config
  21342. # last resort
  21343. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21344. # Extract the first word of "pkg-config", so it can be a program name with args.
  21345. set dummy pkg-config; ac_word=$2
  21346. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21347. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21348. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21349. echo $ECHO_N "(cached) $ECHO_C" >&6
  21350. else
  21351. case $PKG_CONFIG in
  21352. [\\/]* | ?:[\\/]*)
  21353. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21354. ;;
  21355. *)
  21356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21357. for as_dir in $PATH
  21358. do
  21359. IFS=$as_save_IFS
  21360. test -z "$as_dir" && as_dir=.
  21361. for ac_exec_ext in '' $ac_executable_extensions; do
  21362. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21363. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21364. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21365. break 2
  21366. fi
  21367. done
  21368. done
  21369. ;;
  21370. esac
  21371. fi
  21372. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21373. if test -n "$PKG_CONFIG"; then
  21374. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21375. echo "${ECHO_T}$PKG_CONFIG" >&6
  21376. else
  21377. echo "$as_me:$LINENO: result: no" >&5
  21378. echo "${ECHO_T}no" >&6
  21379. fi
  21380. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21381. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21382. if test -n "$PKG_CONFIG"; then
  21383. if $PKG_CONFIG --exists nspr; then
  21384. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21385. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21386. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21387. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21388. echo "${ECHO_T}using system NSPR" >&6
  21389. elif $PKG_CONFIG --exists dirsec-nspr; then
  21390. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21391. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21392. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21393. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21394. echo "${ECHO_T}using system dirsec NSPR" >&6
  21395. else
  21396. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21397. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21398. { (exit 1); exit 1; }; }
  21399. fi
  21400. fi
  21401. fi
  21402. # BEGIN COPYRIGHT BLOCK
  21403. # Copyright (C) 2007 Red Hat, Inc.
  21404. # All rights reserved.
  21405. #
  21406. # This program is free software; you can redistribute it and/or
  21407. # modify it under the terms of the GNU General Public License
  21408. # as published by the Free Software Foundation; either version 2
  21409. # of the License, or (at your option) any later version.
  21410. #
  21411. # This program is distributed in the hope that it will be useful,
  21412. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21413. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21414. # GNU General Public License for more details.
  21415. #
  21416. # You should have received a copy of the GNU General Public License
  21417. # along with this program; if not, write to the Free Software
  21418. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21419. #
  21420. # END COPYRIGHT BLOCK
  21421. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21422. echo "$as_me: checking for NSS..." >&6;}
  21423. # check for --with-nss
  21424. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21425. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21426. # Check whether --with-nss or --without-nss was given.
  21427. if test "${with_nss+set}" = set; then
  21428. withval="$with_nss"
  21429. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21430. then
  21431. echo "$as_me:$LINENO: result: using $withval" >&5
  21432. echo "${ECHO_T}using $withval" >&6
  21433. NSSDIR=$withval
  21434. nss_inc="-I$NSSDIR/include"
  21435. nss_lib="-L$NSSDIR/lib"
  21436. nss_libdir="$NSSDIR/lib"
  21437. else
  21438. echo
  21439. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21440. echo "$as_me: error: $withval not found" >&2;}
  21441. { (exit 1); exit 1; }; }
  21442. fi
  21443. else
  21444. echo "$as_me:$LINENO: result: no" >&5
  21445. echo "${ECHO_T}no" >&6
  21446. fi;
  21447. # check for --with-nss-inc
  21448. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21449. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21450. # Check whether --with-nss-inc or --without-nss-inc was given.
  21451. if test "${with_nss_inc+set}" = set; then
  21452. withval="$with_nss_inc"
  21453. if test -e "$withval"/nss.h
  21454. then
  21455. echo "$as_me:$LINENO: result: using $withval" >&5
  21456. echo "${ECHO_T}using $withval" >&6
  21457. nss_inc="-I$withval"
  21458. else
  21459. echo
  21460. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21461. echo "$as_me: error: $withval not found" >&2;}
  21462. { (exit 1); exit 1; }; }
  21463. fi
  21464. else
  21465. echo "$as_me:$LINENO: result: no" >&5
  21466. echo "${ECHO_T}no" >&6
  21467. fi;
  21468. # check for --with-nss-lib
  21469. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21470. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21471. # Check whether --with-nss-lib or --without-nss-lib was given.
  21472. if test "${with_nss_lib+set}" = set; then
  21473. withval="$with_nss_lib"
  21474. if test -d "$withval"
  21475. then
  21476. echo "$as_me:$LINENO: result: using $withval" >&5
  21477. echo "${ECHO_T}using $withval" >&6
  21478. nss_lib="-L$withval"
  21479. nss_libdir="$withval"
  21480. else
  21481. echo
  21482. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21483. echo "$as_me: error: $withval not found" >&2;}
  21484. { (exit 1); exit 1; }; }
  21485. fi
  21486. else
  21487. echo "$as_me:$LINENO: result: no" >&5
  21488. echo "${ECHO_T}no" >&6
  21489. fi;
  21490. # if NSS is not found yet, try pkg-config
  21491. # last resort
  21492. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21493. # Extract the first word of "pkg-config", so it can be a program name with args.
  21494. set dummy pkg-config; ac_word=$2
  21495. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21496. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21497. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21498. echo $ECHO_N "(cached) $ECHO_C" >&6
  21499. else
  21500. case $PKG_CONFIG in
  21501. [\\/]* | ?:[\\/]*)
  21502. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21503. ;;
  21504. *)
  21505. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21506. for as_dir in $PATH
  21507. do
  21508. IFS=$as_save_IFS
  21509. test -z "$as_dir" && as_dir=.
  21510. for ac_exec_ext in '' $ac_executable_extensions; do
  21511. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21512. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21513. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21514. break 2
  21515. fi
  21516. done
  21517. done
  21518. ;;
  21519. esac
  21520. fi
  21521. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21522. if test -n "$PKG_CONFIG"; then
  21523. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21524. echo "${ECHO_T}$PKG_CONFIG" >&6
  21525. else
  21526. echo "$as_me:$LINENO: result: no" >&5
  21527. echo "${ECHO_T}no" >&6
  21528. fi
  21529. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21530. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21531. if test -n "$PKG_CONFIG"; then
  21532. if $PKG_CONFIG --exists nss; then
  21533. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21534. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21535. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21536. echo "$as_me:$LINENO: result: using system NSS" >&5
  21537. echo "${ECHO_T}using system NSS" >&6
  21538. elif $PKG_CONFIG --exists dirsec-nss; then
  21539. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21540. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21541. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21542. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21543. echo "${ECHO_T}using system dirsec NSS" >&6
  21544. else
  21545. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21546. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21547. { (exit 1); exit 1; }; }
  21548. fi
  21549. fi
  21550. fi
  21551. # default to Mozilla LDAP C SDK - override with --with-openldap
  21552. with_ldapsdk=yes
  21553. # BEGIN COPYRIGHT BLOCK
  21554. # Copyright (C) 2009 Red Hat, Inc.
  21555. # All rights reserved.
  21556. #
  21557. # This program is free software; you can redistribute it and/or
  21558. # modify it under the terms of the GNU General Public License
  21559. # as published by the Free Software Foundation; either version 2
  21560. # of the License, or (at your option) any later version.
  21561. #
  21562. # This program is distributed in the hope that it will be useful,
  21563. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21564. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21565. # GNU General Public License for more details.
  21566. #
  21567. # You should have received a copy of the GNU General Public License
  21568. # along with this program; if not, write to the Free Software
  21569. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21570. #
  21571. # END COPYRIGHT BLOCK
  21572. { echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  21573. echo "$as_me: checking for OpenLDAP..." >&6;}
  21574. # check for --with-openldap
  21575. echo "$as_me:$LINENO: checking for --with-openldap" >&5
  21576. echo $ECHO_N "checking for --with-openldap... $ECHO_C" >&6
  21577. # Check whether --with-openldap or --without-openldap was given.
  21578. if test "${with_openldap+set}" = set; then
  21579. withval="$with_openldap"
  21580. if test "$withval" = yes
  21581. then
  21582. echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  21583. echo "${ECHO_T}using system OpenLDAP" >&6
  21584. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21585. then
  21586. echo "$as_me:$LINENO: result: using $withval" >&5
  21587. echo "${ECHO_T}using $withval" >&6
  21588. OPENLDAPDIR=$withval
  21589. openldap_incdir="$OPENLDAPDIR/include"
  21590. openldap_inc="-I$openldap_incdir"
  21591. openldap_lib="-L$OPENLDAPDIR/lib"
  21592. openldap_libdir="$OPENLDAPDIR/lib"
  21593. openldap_bindir="$OPENLDAPDIR/bin"
  21594. with_openldap=yes
  21595. else
  21596. echo
  21597. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21598. echo "$as_me: error: $withval not found" >&2;}
  21599. { (exit 1); exit 1; }; }
  21600. fi
  21601. else
  21602. echo "$as_me:$LINENO: result: no" >&5
  21603. echo "${ECHO_T}no" >&6
  21604. fi;
  21605. # check for --with-openldap-inc
  21606. echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  21607. echo $ECHO_N "checking for --with-openldap-inc... $ECHO_C" >&6
  21608. # Check whether --with-openldap-inc or --without-openldap-inc was given.
  21609. if test "${with_openldap_inc+set}" = set; then
  21610. withval="$with_openldap_inc"
  21611. if test -e "$withval"/ldap.h
  21612. then
  21613. echo "$as_me:$LINENO: result: using $withval" >&5
  21614. echo "${ECHO_T}using $withval" >&6
  21615. openldap_incdir="$withval"
  21616. openldap_inc="-I$withval"
  21617. with_openldap=yes
  21618. else
  21619. echo
  21620. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21621. echo "$as_me: error: $withval not found" >&2;}
  21622. { (exit 1); exit 1; }; }
  21623. fi
  21624. else
  21625. echo "$as_me:$LINENO: result: no" >&5
  21626. echo "${ECHO_T}no" >&6
  21627. fi;
  21628. # check for --with-openldap-lib
  21629. echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  21630. echo $ECHO_N "checking for --with-openldap-lib... $ECHO_C" >&6
  21631. # Check whether --with-openldap-lib or --without-openldap-lib was given.
  21632. if test "${with_openldap_lib+set}" = set; then
  21633. withval="$with_openldap_lib"
  21634. if test -d "$withval"
  21635. then
  21636. echo "$as_me:$LINENO: result: using $withval" >&5
  21637. echo "${ECHO_T}using $withval" >&6
  21638. openldap_lib="-L$withval"
  21639. openldap_libdir="$withval"
  21640. with_openldap=yes
  21641. else
  21642. echo
  21643. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21644. echo "$as_me: error: $withval not found" >&2;}
  21645. { (exit 1); exit 1; }; }
  21646. fi
  21647. else
  21648. echo "$as_me:$LINENO: result: no" >&5
  21649. echo "${ECHO_T}no" >&6
  21650. fi;
  21651. # check for --with-openldap-bin
  21652. echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  21653. echo $ECHO_N "checking for --with-openldap-bin... $ECHO_C" >&6
  21654. # Check whether --with-openldap-bin or --without-openldap-bin was given.
  21655. if test "${with_openldap_bin+set}" = set; then
  21656. withval="$with_openldap_bin"
  21657. if test -d "$withval"
  21658. then
  21659. echo "$as_me:$LINENO: result: using $withval" >&5
  21660. echo "${ECHO_T}using $withval" >&6
  21661. openldap_bindir="$withval"
  21662. with_openldap=yes
  21663. else
  21664. echo
  21665. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21666. echo "$as_me: error: $withval not found" >&2;}
  21667. { (exit 1); exit 1; }; }
  21668. fi
  21669. else
  21670. echo "$as_me:$LINENO: result: no" >&5
  21671. echo "${ECHO_T}no" >&6
  21672. fi;
  21673. # if OPENLDAP is not found yet, try pkg-config
  21674. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  21675. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  21676. # Extract the first word of "pkg-config", so it can be a program name with args.
  21677. set dummy pkg-config; ac_word=$2
  21678. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21679. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21680. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21681. echo $ECHO_N "(cached) $ECHO_C" >&6
  21682. else
  21683. case $PKG_CONFIG in
  21684. [\\/]* | ?:[\\/]*)
  21685. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21686. ;;
  21687. *)
  21688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21689. for as_dir in $PATH
  21690. do
  21691. IFS=$as_save_IFS
  21692. test -z "$as_dir" && as_dir=.
  21693. for ac_exec_ext in '' $ac_executable_extensions; do
  21694. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21695. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21696. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21697. break 2
  21698. fi
  21699. done
  21700. done
  21701. ;;
  21702. esac
  21703. fi
  21704. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21705. if test -n "$PKG_CONFIG"; then
  21706. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21707. echo "${ECHO_T}$PKG_CONFIG" >&6
  21708. else
  21709. echo "$as_me:$LINENO: result: no" >&5
  21710. echo "${ECHO_T}no" >&6
  21711. fi
  21712. echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  21713. echo $ECHO_N "checking for OpenLDAP with pkg-config... $ECHO_C" >&6
  21714. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  21715. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  21716. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  21717. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  21718. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  21719. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  21720. echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  21721. echo "${ECHO_T}using system OpenLDAP from pkg-config" >&6
  21722. else
  21723. openldap_incdir="/usr/include"
  21724. openldap_inc="-I$openldap_incdir"
  21725. echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  21726. echo "${ECHO_T}no OpenLDAP pkg-config files" >&6
  21727. fi
  21728. fi
  21729. fi
  21730. if test "$with_openldap" = yes ; then
  21731. save_cppflags="$CPPFLAGS"
  21732. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  21733. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21734. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21735. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21736. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21737. echo $ECHO_N "(cached) $ECHO_C" >&6
  21738. fi
  21739. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21740. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21741. else
  21742. # Is the header compilable?
  21743. echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  21744. echo $ECHO_N "checking ldap_features.h usability... $ECHO_C" >&6
  21745. cat >conftest.$ac_ext <<_ACEOF
  21746. /* confdefs.h. */
  21747. _ACEOF
  21748. cat confdefs.h >>conftest.$ac_ext
  21749. cat >>conftest.$ac_ext <<_ACEOF
  21750. /* end confdefs.h. */
  21751. $ac_includes_default
  21752. #include <ldap_features.h>
  21753. _ACEOF
  21754. rm -f conftest.$ac_objext
  21755. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21756. (eval $ac_compile) 2>conftest.er1
  21757. ac_status=$?
  21758. grep -v '^ *+' conftest.er1 >conftest.err
  21759. rm -f conftest.er1
  21760. cat conftest.err >&5
  21761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21762. (exit $ac_status); } &&
  21763. { ac_try='test -z "$ac_c_werror_flag"
  21764. || test ! -s conftest.err'
  21765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21766. (eval $ac_try) 2>&5
  21767. ac_status=$?
  21768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21769. (exit $ac_status); }; } &&
  21770. { ac_try='test -s conftest.$ac_objext'
  21771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21772. (eval $ac_try) 2>&5
  21773. ac_status=$?
  21774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21775. (exit $ac_status); }; }; then
  21776. ac_header_compiler=yes
  21777. else
  21778. echo "$as_me: failed program was:" >&5
  21779. sed 's/^/| /' conftest.$ac_ext >&5
  21780. ac_header_compiler=no
  21781. fi
  21782. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21783. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21784. echo "${ECHO_T}$ac_header_compiler" >&6
  21785. # Is the header present?
  21786. echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  21787. echo $ECHO_N "checking ldap_features.h presence... $ECHO_C" >&6
  21788. cat >conftest.$ac_ext <<_ACEOF
  21789. /* confdefs.h. */
  21790. _ACEOF
  21791. cat confdefs.h >>conftest.$ac_ext
  21792. cat >>conftest.$ac_ext <<_ACEOF
  21793. /* end confdefs.h. */
  21794. #include <ldap_features.h>
  21795. _ACEOF
  21796. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21797. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21798. ac_status=$?
  21799. grep -v '^ *+' conftest.er1 >conftest.err
  21800. rm -f conftest.er1
  21801. cat conftest.err >&5
  21802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21803. (exit $ac_status); } >/dev/null; then
  21804. if test -s conftest.err; then
  21805. ac_cpp_err=$ac_c_preproc_warn_flag
  21806. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21807. else
  21808. ac_cpp_err=
  21809. fi
  21810. else
  21811. ac_cpp_err=yes
  21812. fi
  21813. if test -z "$ac_cpp_err"; then
  21814. ac_header_preproc=yes
  21815. else
  21816. echo "$as_me: failed program was:" >&5
  21817. sed 's/^/| /' conftest.$ac_ext >&5
  21818. ac_header_preproc=no
  21819. fi
  21820. rm -f conftest.err conftest.$ac_ext
  21821. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21822. echo "${ECHO_T}$ac_header_preproc" >&6
  21823. # So? What about this header?
  21824. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21825. yes:no: )
  21826. { echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21827. echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21828. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  21829. echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  21830. ac_header_preproc=yes
  21831. ;;
  21832. no:yes:* )
  21833. { echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  21834. echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  21835. { echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  21836. echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  21837. { echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  21838. echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  21839. { echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  21840. echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21841. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  21842. echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  21843. { echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  21844. echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  21845. (
  21846. cat <<\_ASBOX
  21847. ## ------------------------------------------ ##
  21848. ## Report this to http://bugzilla.redhat.com/ ##
  21849. ## ------------------------------------------ ##
  21850. _ASBOX
  21851. ) |
  21852. sed "s/^/$as_me: WARNING: /" >&2
  21853. ;;
  21854. esac
  21855. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21856. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21857. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21858. echo $ECHO_N "(cached) $ECHO_C" >&6
  21859. else
  21860. ac_cv_header_ldap_features_h=$ac_header_preproc
  21861. fi
  21862. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21863. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21864. fi
  21865. if test $ac_cv_header_ldap_features_h = yes; then
  21866. :
  21867. else
  21868. { { echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  21869. echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  21870. { (exit 1); exit 1; }; }
  21871. fi
  21872. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21873. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21874. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21875. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  21876. save_ldflags="$LDFLAGS"
  21877. LDFLAGS="$openldap_lib $LDFLAGS"
  21878. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  21879. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  21880. echo $ECHO_N "checking for ldap_initialize in -lldap$ol_libver... $ECHO_C" >&6
  21881. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21882. echo $ECHO_N "(cached) $ECHO_C" >&6
  21883. else
  21884. ac_check_lib_save_LIBS=$LIBS
  21885. LIBS="-lldap$ol_libver $LIBS"
  21886. cat >conftest.$ac_ext <<_ACEOF
  21887. /* confdefs.h. */
  21888. _ACEOF
  21889. cat confdefs.h >>conftest.$ac_ext
  21890. cat >>conftest.$ac_ext <<_ACEOF
  21891. /* end confdefs.h. */
  21892. /* Override any gcc2 internal prototype to avoid an error. */
  21893. #ifdef __cplusplus
  21894. extern "C"
  21895. #endif
  21896. /* We use char because int might match the return type of a gcc2
  21897. builtin and then its argument prototype would still apply. */
  21898. char ldap_initialize ();
  21899. int
  21900. main ()
  21901. {
  21902. ldap_initialize ();
  21903. ;
  21904. return 0;
  21905. }
  21906. _ACEOF
  21907. rm -f conftest.$ac_objext conftest$ac_exeext
  21908. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21909. (eval $ac_link) 2>conftest.er1
  21910. ac_status=$?
  21911. grep -v '^ *+' conftest.er1 >conftest.err
  21912. rm -f conftest.er1
  21913. cat conftest.err >&5
  21914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21915. (exit $ac_status); } &&
  21916. { ac_try='test -z "$ac_c_werror_flag"
  21917. || test ! -s conftest.err'
  21918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21919. (eval $ac_try) 2>&5
  21920. ac_status=$?
  21921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21922. (exit $ac_status); }; } &&
  21923. { ac_try='test -s conftest$ac_exeext'
  21924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21925. (eval $ac_try) 2>&5
  21926. ac_status=$?
  21927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21928. (exit $ac_status); }; }; then
  21929. eval "$as_ac_Lib=yes"
  21930. else
  21931. echo "$as_me: failed program was:" >&5
  21932. sed 's/^/| /' conftest.$ac_ext >&5
  21933. eval "$as_ac_Lib=no"
  21934. fi
  21935. rm -f conftest.err conftest.$ac_objext \
  21936. conftest$ac_exeext conftest.$ac_ext
  21937. LIBS=$ac_check_lib_save_LIBS
  21938. fi
  21939. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21940. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21941. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21942. have_ldap_lib=1
  21943. fi
  21944. if test -z "$have_ldap_lib" ; then
  21945. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  21946. echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6
  21947. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  21948. echo $ECHO_N "(cached) $ECHO_C" >&6
  21949. else
  21950. ac_check_lib_save_LIBS=$LIBS
  21951. LIBS="-lldap $LIBS"
  21952. cat >conftest.$ac_ext <<_ACEOF
  21953. /* confdefs.h. */
  21954. _ACEOF
  21955. cat confdefs.h >>conftest.$ac_ext
  21956. cat >>conftest.$ac_ext <<_ACEOF
  21957. /* end confdefs.h. */
  21958. /* Override any gcc2 internal prototype to avoid an error. */
  21959. #ifdef __cplusplus
  21960. extern "C"
  21961. #endif
  21962. /* We use char because int might match the return type of a gcc2
  21963. builtin and then its argument prototype would still apply. */
  21964. char ldap_initialize ();
  21965. int
  21966. main ()
  21967. {
  21968. ldap_initialize ();
  21969. ;
  21970. return 0;
  21971. }
  21972. _ACEOF
  21973. rm -f conftest.$ac_objext conftest$ac_exeext
  21974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21975. (eval $ac_link) 2>conftest.er1
  21976. ac_status=$?
  21977. grep -v '^ *+' conftest.er1 >conftest.err
  21978. rm -f conftest.er1
  21979. cat conftest.err >&5
  21980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21981. (exit $ac_status); } &&
  21982. { ac_try='test -z "$ac_c_werror_flag"
  21983. || test ! -s conftest.err'
  21984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21985. (eval $ac_try) 2>&5
  21986. ac_status=$?
  21987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21988. (exit $ac_status); }; } &&
  21989. { ac_try='test -s conftest$ac_exeext'
  21990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21991. (eval $ac_try) 2>&5
  21992. ac_status=$?
  21993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21994. (exit $ac_status); }; }; then
  21995. ac_cv_lib_ldap_ldap_initialize=yes
  21996. else
  21997. echo "$as_me: failed program was:" >&5
  21998. sed 's/^/| /' conftest.$ac_ext >&5
  21999. ac_cv_lib_ldap_ldap_initialize=no
  22000. fi
  22001. rm -f conftest.err conftest.$ac_objext \
  22002. conftest$ac_exeext conftest.$ac_ext
  22003. LIBS=$ac_check_lib_save_LIBS
  22004. fi
  22005. echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  22006. echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6
  22007. if test $ac_cv_lib_ldap_ldap_initialize = yes; then
  22008. unset ol_libver
  22009. else
  22010. { { echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  22011. echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  22012. { (exit 1); exit 1; }; }
  22013. fi
  22014. fi
  22015. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  22016. echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  22017. echo $ECHO_N "checking for ldap_url_parse_ext in -lldap$ol_libver... $ECHO_C" >&6
  22018. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22019. echo $ECHO_N "(cached) $ECHO_C" >&6
  22020. else
  22021. ac_check_lib_save_LIBS=$LIBS
  22022. LIBS="-lldap$ol_libver $LIBS"
  22023. cat >conftest.$ac_ext <<_ACEOF
  22024. /* confdefs.h. */
  22025. _ACEOF
  22026. cat confdefs.h >>conftest.$ac_ext
  22027. cat >>conftest.$ac_ext <<_ACEOF
  22028. /* end confdefs.h. */
  22029. /* Override any gcc2 internal prototype to avoid an error. */
  22030. #ifdef __cplusplus
  22031. extern "C"
  22032. #endif
  22033. /* We use char because int might match the return type of a gcc2
  22034. builtin and then its argument prototype would still apply. */
  22035. char ldap_url_parse_ext ();
  22036. int
  22037. main ()
  22038. {
  22039. ldap_url_parse_ext ();
  22040. ;
  22041. return 0;
  22042. }
  22043. _ACEOF
  22044. rm -f conftest.$ac_objext conftest$ac_exeext
  22045. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22046. (eval $ac_link) 2>conftest.er1
  22047. ac_status=$?
  22048. grep -v '^ *+' conftest.er1 >conftest.err
  22049. rm -f conftest.er1
  22050. cat conftest.err >&5
  22051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22052. (exit $ac_status); } &&
  22053. { ac_try='test -z "$ac_c_werror_flag"
  22054. || test ! -s conftest.err'
  22055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22056. (eval $ac_try) 2>&5
  22057. ac_status=$?
  22058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22059. (exit $ac_status); }; } &&
  22060. { ac_try='test -s conftest$ac_exeext'
  22061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22062. (eval $ac_try) 2>&5
  22063. ac_status=$?
  22064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22065. (exit $ac_status); }; }; then
  22066. eval "$as_ac_Lib=yes"
  22067. else
  22068. echo "$as_me: failed program was:" >&5
  22069. sed 's/^/| /' conftest.$ac_ext >&5
  22070. eval "$as_ac_Lib=no"
  22071. fi
  22072. rm -f conftest.err conftest.$ac_objext \
  22073. conftest$ac_exeext conftest.$ac_ext
  22074. LIBS=$ac_check_lib_save_LIBS
  22075. fi
  22076. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22077. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22078. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22079. cat >>confdefs.h <<\_ACEOF
  22080. #define HAVE_LDAP_URL_PARSE_EXT 1
  22081. _ACEOF
  22082. fi
  22083. LDFLAGS="$save_ldflags"
  22084. CPPFLAGS="$save_cppflags"
  22085. cat >>confdefs.h <<\_ACEOF
  22086. #define USE_OPENLDAP 1
  22087. _ACEOF
  22088. with_ldapsdk=no # using openldap not mozldap
  22089. fi
  22090. # BEGIN COPYRIGHT BLOCK
  22091. # Copyright (C) 2007 Red Hat, Inc.
  22092. # All rights reserved.
  22093. #
  22094. # This program is free software; you can redistribute it and/or
  22095. # modify it under the terms of the GNU General Public License
  22096. # as published by the Free Software Foundation; either version 2
  22097. # of the License, or (at your option) any later version.
  22098. #
  22099. # This program is distributed in the hope that it will be useful,
  22100. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22101. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22102. # GNU General Public License for more details.
  22103. #
  22104. # You should have received a copy of the GNU General Public License
  22105. # along with this program; if not, write to the Free Software
  22106. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22107. #
  22108. # END COPYRIGHT BLOCK
  22109. { echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  22110. echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  22111. # check for --with-ldapsdk
  22112. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  22113. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  22114. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  22115. if test "${with_ldapsdk+set}" = set; then
  22116. withval="$with_ldapsdk"
  22117. if test "$withval" = yes
  22118. then
  22119. echo "$as_me:$LINENO: result: using system MozLDAP" >&5
  22120. echo "${ECHO_T}using system MozLDAP" >&6
  22121. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  22122. then
  22123. echo "$as_me:$LINENO: result: using $withval" >&5
  22124. echo "${ECHO_T}using $withval" >&6
  22125. LDAPSDKDIR=$withval
  22126. ldapsdk_inc="-I$LDAPSDKDIR/include"
  22127. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  22128. ldapsdk_libdir="$LDAPSDKDIR/lib"
  22129. ldapsdk_bindir="$LDAPSDKDIR/bin"
  22130. with_ldapsdk=yes
  22131. else
  22132. echo
  22133. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22134. echo "$as_me: error: $withval not found" >&2;}
  22135. { (exit 1); exit 1; }; }
  22136. fi
  22137. else
  22138. echo "$as_me:$LINENO: result: no" >&5
  22139. echo "${ECHO_T}no" >&6
  22140. fi;
  22141. # check for --with-ldapsdk-inc
  22142. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  22143. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  22144. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  22145. if test "${with_ldapsdk_inc+set}" = set; then
  22146. withval="$with_ldapsdk_inc"
  22147. if test -e "$withval"/ldap.h
  22148. then
  22149. echo "$as_me:$LINENO: result: using $withval" >&5
  22150. echo "${ECHO_T}using $withval" >&6
  22151. ldapsdk_inc="-I$withval"
  22152. with_ldapsdk=yes
  22153. else
  22154. echo
  22155. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22156. echo "$as_me: error: $withval not found" >&2;}
  22157. { (exit 1); exit 1; }; }
  22158. fi
  22159. else
  22160. echo "$as_me:$LINENO: result: no" >&5
  22161. echo "${ECHO_T}no" >&6
  22162. fi;
  22163. # check for --with-ldapsdk-lib
  22164. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  22165. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  22166. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  22167. if test "${with_ldapsdk_lib+set}" = set; then
  22168. withval="$with_ldapsdk_lib"
  22169. if test -d "$withval"
  22170. then
  22171. echo "$as_me:$LINENO: result: using $withval" >&5
  22172. echo "${ECHO_T}using $withval" >&6
  22173. ldapsdk_lib="-L$withval"
  22174. ldapsdk_libdir="$withval"
  22175. with_ldapsdk=yes
  22176. else
  22177. echo
  22178. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22179. echo "$as_me: error: $withval not found" >&2;}
  22180. { (exit 1); exit 1; }; }
  22181. fi
  22182. else
  22183. echo "$as_me:$LINENO: result: no" >&5
  22184. echo "${ECHO_T}no" >&6
  22185. fi;
  22186. # check for --with-ldapsdk-bin
  22187. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  22188. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  22189. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  22190. if test "${with_ldapsdk_bin+set}" = set; then
  22191. withval="$with_ldapsdk_bin"
  22192. if test -d "$withval"
  22193. then
  22194. echo "$as_me:$LINENO: result: using $withval" >&5
  22195. echo "${ECHO_T}using $withval" >&6
  22196. ldapsdk_bindir="$withval"
  22197. with_ldapsdk=yes
  22198. else
  22199. echo
  22200. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22201. echo "$as_me: error: $withval not found" >&2;}
  22202. { (exit 1); exit 1; }; }
  22203. fi
  22204. else
  22205. echo "$as_me:$LINENO: result: no" >&5
  22206. echo "${ECHO_T}no" >&6
  22207. fi;
  22208. # if LDAPSDK is not found yet, try pkg-config
  22209. # last resort
  22210. if test "$with_ldapsdk" = yes ; then
  22211. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  22212. # Extract the first word of "pkg-config", so it can be a program name with args.
  22213. set dummy pkg-config; ac_word=$2
  22214. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22215. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22216. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22217. echo $ECHO_N "(cached) $ECHO_C" >&6
  22218. else
  22219. case $PKG_CONFIG in
  22220. [\\/]* | ?:[\\/]*)
  22221. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22222. ;;
  22223. *)
  22224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22225. for as_dir in $PATH
  22226. do
  22227. IFS=$as_save_IFS
  22228. test -z "$as_dir" && as_dir=.
  22229. for ac_exec_ext in '' $ac_executable_extensions; do
  22230. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22231. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22232. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22233. break 2
  22234. fi
  22235. done
  22236. done
  22237. ;;
  22238. esac
  22239. fi
  22240. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22241. if test -n "$PKG_CONFIG"; then
  22242. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22243. echo "${ECHO_T}$PKG_CONFIG" >&6
  22244. else
  22245. echo "$as_me:$LINENO: result: no" >&5
  22246. echo "${ECHO_T}no" >&6
  22247. fi
  22248. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  22249. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  22250. if test -n "$PKG_CONFIG"; then
  22251. if $PKG_CONFIG --exists mozldap6; then
  22252. mozldappkg=mozldap6
  22253. elif $PKG_CONFIG --exists mozldap; then
  22254. mozldappkg=mozldap
  22255. else
  22256. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22257. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22258. { (exit 1); exit 1; }; }
  22259. fi
  22260. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  22261. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  22262. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  22263. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  22264. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  22265. echo "${ECHO_T}using system $mozldappkg" >&6
  22266. fi
  22267. fi
  22268. fi
  22269. if test "$with_ldapsdk" = yes ; then
  22270. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  22271. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22272. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22273. { (exit 1); exit 1; }; }
  22274. fi
  22275. if test -z "$ldapsdk_bindir" ; then
  22276. if -d $libdir/mozldap6 ; then
  22277. ldapsdk_bindir=$libdir/mozldap6
  22278. else
  22279. ldapsdk_bindir=$libdir/mozldap
  22280. fi
  22281. fi
  22282. save_cppflags="$CPPFLAGS"
  22283. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  22284. echo "$as_me:$LINENO: checking for ldap.h" >&5
  22285. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  22286. if test "${ac_cv_header_ldap_h+set}" = set; then
  22287. echo $ECHO_N "(cached) $ECHO_C" >&6
  22288. else
  22289. cat >conftest.$ac_ext <<_ACEOF
  22290. /* confdefs.h. */
  22291. _ACEOF
  22292. cat confdefs.h >>conftest.$ac_ext
  22293. cat >>conftest.$ac_ext <<_ACEOF
  22294. /* end confdefs.h. */
  22295. #include <ldap-standard.h>
  22296. #if LDAP_VENDOR_VERSION < 600
  22297. #error The LDAP C SDK version is not supported
  22298. #endif
  22299. #include <ldap.h>
  22300. _ACEOF
  22301. rm -f conftest.$ac_objext
  22302. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22303. (eval $ac_compile) 2>conftest.er1
  22304. ac_status=$?
  22305. grep -v '^ *+' conftest.er1 >conftest.err
  22306. rm -f conftest.er1
  22307. cat conftest.err >&5
  22308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22309. (exit $ac_status); } &&
  22310. { ac_try='test -z "$ac_c_werror_flag"
  22311. || test ! -s conftest.err'
  22312. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22313. (eval $ac_try) 2>&5
  22314. ac_status=$?
  22315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22316. (exit $ac_status); }; } &&
  22317. { ac_try='test -s conftest.$ac_objext'
  22318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22319. (eval $ac_try) 2>&5
  22320. ac_status=$?
  22321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22322. (exit $ac_status); }; }; then
  22323. ac_cv_header_ldap_h=yes
  22324. else
  22325. echo "$as_me: failed program was:" >&5
  22326. sed 's/^/| /' conftest.$ac_ext >&5
  22327. ac_cv_header_ldap_h=no
  22328. fi
  22329. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22330. fi
  22331. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  22332. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  22333. if test $ac_cv_header_ldap_h = yes; then
  22334. isversion6=1
  22335. else
  22336. isversion6=
  22337. fi
  22338. CPPFLAGS="$save_cppflags"
  22339. if test -z "$isversion6" ; then
  22340. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  22341. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  22342. { (exit 1); exit 1; }; }
  22343. fi
  22344. cat >>confdefs.h <<\_ACEOF
  22345. #define USE_MOZLDAP 1
  22346. _ACEOF
  22347. cat >>confdefs.h <<\_ACEOF
  22348. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  22349. _ACEOF
  22350. fi
  22351. # BEGIN COPYRIGHT BLOCK
  22352. # Copyright (C) 2007 Red Hat, Inc.
  22353. # All rights reserved.
  22354. #
  22355. # This program is free software; you can redistribute it and/or
  22356. # modify it under the terms of the GNU General Public License
  22357. # as published by the Free Software Foundation; either version 2
  22358. # of the License, or (at your option) any later version.
  22359. #
  22360. # This program is distributed in the hope that it will be useful,
  22361. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22362. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22363. # GNU General Public License for more details.
  22364. #
  22365. # You should have received a copy of the GNU General Public License
  22366. # along with this program; if not, write to the Free Software
  22367. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22368. #
  22369. # END COPYRIGHT BLOCK
  22370. { echo "$as_me:$LINENO: checking for db..." >&5
  22371. echo "$as_me: checking for db..." >&6;}
  22372. echo "$as_me:$LINENO: checking for --with-db" >&5
  22373. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  22374. # Check whether --with-db or --without-db was given.
  22375. if test "${with_db+set}" = set; then
  22376. withval="$with_db"
  22377. if test "$withval" = "yes"; then
  22378. echo "$as_me:$LINENO: result: yes" >&5
  22379. echo "${ECHO_T}yes" >&6
  22380. if test -f "/usr/include/db.h"; then
  22381. db_incdir="/usr/include"
  22382. db_inc="-I/usr/include"
  22383. db_lib='-L$(libdir)'
  22384. db_libdir='$(libdir)'
  22385. else
  22386. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  22387. echo "$as_me: error: db.h not found" >&2;}
  22388. { (exit 1); exit 1; }; }
  22389. fi
  22390. elif test -d "$withval"/include -a -d "$withval"/lib; then
  22391. echo "$as_me:$LINENO: result: using $withval" >&5
  22392. echo "${ECHO_T}using $withval" >&6
  22393. DBDIR=$withval
  22394. db_lib="-L$DBDIR/lib"
  22395. db_libdir="$DBDIR/lib"
  22396. db_incdir="$DBDIR/include"
  22397. if ! test -e "$db_incdir/db.h" ; then
  22398. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  22399. echo "$as_me: error: $withval include dir not found" >&2;}
  22400. { (exit 1); exit 1; }; }
  22401. fi
  22402. db_inc="-I$db_incdir"
  22403. else
  22404. echo
  22405. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22406. echo "$as_me: error: $withval not found" >&2;}
  22407. { (exit 1); exit 1; }; }
  22408. fi
  22409. else
  22410. echo "$as_me:$LINENO: result: no" >&5
  22411. echo "${ECHO_T}no" >&6
  22412. fi;
  22413. if test -z "$db_inc"; then
  22414. echo "$as_me:$LINENO: checking for db.h" >&5
  22415. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  22416. if test -f "/usr/include/db.h"; then
  22417. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  22418. echo "${ECHO_T}using /usr/include/db.h" >&6
  22419. db_incdir="/usr/include"
  22420. db_inc="-I/usr/include"
  22421. db_lib='-L$(libdir)'
  22422. db_libdir='$(libdir)'
  22423. else
  22424. echo "$as_me:$LINENO: result: no" >&5
  22425. echo "${ECHO_T}no" >&6
  22426. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  22427. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  22428. { (exit 1); exit 1; }; }
  22429. fi
  22430. fi
  22431. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  22432. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  22433. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  22434. db_libver=${db_ver_maj}.${db_ver_min}
  22435. save_ldflags="$LDFLAGS"
  22436. LDFLAGS="$db_lib $LDFLAGS"
  22437. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  22438. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  22439. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  22440. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22441. echo $ECHO_N "(cached) $ECHO_C" >&6
  22442. else
  22443. ac_check_lib_save_LIBS=$LIBS
  22444. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  22445. cat >conftest.$ac_ext <<_ACEOF
  22446. /* confdefs.h. */
  22447. _ACEOF
  22448. cat confdefs.h >>conftest.$ac_ext
  22449. cat >>conftest.$ac_ext <<_ACEOF
  22450. /* end confdefs.h. */
  22451. /* Override any gcc2 internal prototype to avoid an error. */
  22452. #ifdef __cplusplus
  22453. extern "C"
  22454. #endif
  22455. /* We use char because int might match the return type of a gcc2
  22456. builtin and then its argument prototype would still apply. */
  22457. char db_create ();
  22458. int
  22459. main ()
  22460. {
  22461. db_create ();
  22462. ;
  22463. return 0;
  22464. }
  22465. _ACEOF
  22466. rm -f conftest.$ac_objext conftest$ac_exeext
  22467. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22468. (eval $ac_link) 2>conftest.er1
  22469. ac_status=$?
  22470. grep -v '^ *+' conftest.er1 >conftest.err
  22471. rm -f conftest.er1
  22472. cat conftest.err >&5
  22473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22474. (exit $ac_status); } &&
  22475. { ac_try='test -z "$ac_c_werror_flag"
  22476. || test ! -s conftest.err'
  22477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22478. (eval $ac_try) 2>&5
  22479. ac_status=$?
  22480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22481. (exit $ac_status); }; } &&
  22482. { ac_try='test -s conftest$ac_exeext'
  22483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22484. (eval $ac_try) 2>&5
  22485. ac_status=$?
  22486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22487. (exit $ac_status); }; }; then
  22488. eval "$as_ac_Lib=yes"
  22489. else
  22490. echo "$as_me: failed program was:" >&5
  22491. sed 's/^/| /' conftest.$ac_ext >&5
  22492. eval "$as_ac_Lib=no"
  22493. fi
  22494. rm -f conftest.err conftest.$ac_objext \
  22495. conftest$ac_exeext conftest.$ac_ext
  22496. LIBS=$ac_check_lib_save_LIBS
  22497. fi
  22498. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22499. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22500. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22501. true
  22502. else
  22503. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  22504. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  22505. { (exit 1); exit 1; }; }
  22506. fi
  22507. LDFLAGS="$save_ldflags"
  22508. # if DB is not found yet, try pkg-config
  22509. # last resort
  22510. # Although the other db_* variables are correctly assigned at this point,
  22511. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  22512. if test -n "$PKG_CONFIG"; then
  22513. if $PKG_CONFIG --exists db; then
  22514. db_bindir=`$PKG_CONFIG --variable=bindir db`
  22515. else
  22516. db_bindir=/usr/bin
  22517. fi
  22518. else
  22519. db_bindir=/usr/bin
  22520. fi
  22521. # BEGIN COPYRIGHT BLOCK
  22522. # Copyright (C) 2007 Red Hat, Inc.
  22523. # All rights reserved.
  22524. #
  22525. # This program is free software; you can redistribute it and/or
  22526. # modify it under the terms of the GNU General Public License
  22527. # as published by the Free Software Foundation; either version 2
  22528. # of the License, or (at your option) any later version.
  22529. #
  22530. # This program is distributed in the hope that it will be useful,
  22531. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22532. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22533. # GNU General Public License for more details.
  22534. #
  22535. # You should have received a copy of the GNU General Public License
  22536. # along with this program; if not, write to the Free Software
  22537. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22538. #
  22539. # END COPYRIGHT BLOCK
  22540. # -*- tab-width: 4; -*-
  22541. # Configure paths for SASL
  22542. { echo "$as_me:$LINENO: checking for sasl..." >&5
  22543. echo "$as_me: checking for sasl..." >&6;}
  22544. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  22545. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  22546. # Check whether --with-sasl or --without-sasl was given.
  22547. if test "${with_sasl+set}" = set; then
  22548. withval="$with_sasl"
  22549. if test "$withval" = "yes"; then
  22550. echo "$as_me:$LINENO: result: yes" >&5
  22551. echo "${ECHO_T}yes" >&6
  22552. if test -f /usr/include/sasl/sasl.h; then
  22553. sasl_inc="-I/usr/include/sasl"
  22554. elif test -f /usr/include/sasl.h; then
  22555. sasl_inc="-I/usr/include"
  22556. else
  22557. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22558. echo "$as_me: error: sasl.h not found" >&2;}
  22559. { (exit 1); exit 1; }; }
  22560. fi
  22561. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22562. echo "$as_me:$LINENO: result: using $withval" >&5
  22563. echo "${ECHO_T}using $withval" >&6
  22564. if test -f "$withval/include/sasl/sasl.h"; then
  22565. sasl_inc="-I$withval/include/sasl"
  22566. elif test -f "$withval/include/sasl.h"; then
  22567. sasl_inc="-I$withval/include"
  22568. else
  22569. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22570. echo "$as_me: error: sasl.h not found" >&2;}
  22571. { (exit 1); exit 1; }; }
  22572. fi
  22573. sasl_lib="-L$withval/lib"
  22574. sasl_libdir="$withval/lib"
  22575. else
  22576. echo "$as_me:$LINENO: result: yes" >&5
  22577. echo "${ECHO_T}yes" >&6
  22578. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  22579. echo "$as_me: error: sasl not found in $withval" >&2;}
  22580. { (exit 1); exit 1; }; }
  22581. fi
  22582. else
  22583. echo "$as_me:$LINENO: result: no" >&5
  22584. echo "${ECHO_T}no" >&6
  22585. fi;
  22586. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  22587. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  22588. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  22589. if test "${with_sasl_inc+set}" = set; then
  22590. withval="$with_sasl_inc"
  22591. if test -f "$withval"/sasl.h; then
  22592. echo "$as_me:$LINENO: result: using $withval" >&5
  22593. echo "${ECHO_T}using $withval" >&6
  22594. sasl_inc="-I$withval"
  22595. else
  22596. echo
  22597. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  22598. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  22599. { (exit 1); exit 1; }; }
  22600. fi
  22601. else
  22602. echo "$as_me:$LINENO: result: no" >&5
  22603. echo "${ECHO_T}no" >&6
  22604. fi;
  22605. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  22606. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  22607. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  22608. if test "${with_sasl_lib+set}" = set; then
  22609. withval="$with_sasl_lib"
  22610. if test -d "$withval"; then
  22611. echo "$as_me:$LINENO: result: using $withval" >&5
  22612. echo "${ECHO_T}using $withval" >&6
  22613. sasl_lib="-L$withval"
  22614. sasl_libdir="$withval"
  22615. else
  22616. echo
  22617. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22618. echo "$as_me: error: $withval not found" >&2;}
  22619. { (exit 1); exit 1; }; }
  22620. fi
  22621. else
  22622. echo "$as_me:$LINENO: result: no" >&5
  22623. echo "${ECHO_T}no" >&6
  22624. fi;
  22625. if test -z "$sasl_inc"; then
  22626. echo "$as_me:$LINENO: checking for sasl.h" >&5
  22627. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  22628. if test -f /usr/include/sasl/sasl.h; then
  22629. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  22630. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  22631. sasl_inc="-I/usr/include/sasl"
  22632. elif test -f /usr/include/sasl.h; then
  22633. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  22634. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  22635. sasl_inc="-I/usr/include"
  22636. else
  22637. echo "$as_me:$LINENO: result: no" >&5
  22638. echo "${ECHO_T}no" >&6
  22639. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  22640. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  22641. { (exit 1); exit 1; }; }
  22642. fi
  22643. fi
  22644. # BEGIN COPYRIGHT BLOCK
  22645. # Copyright (C) 2007 Red Hat, Inc.
  22646. # All rights reserved.
  22647. #
  22648. # This program is free software; you can redistribute it and/or
  22649. # modify it under the terms of the GNU General Public License
  22650. # as published by the Free Software Foundation; either version 2
  22651. # of the License, or (at your option) any later version.
  22652. #
  22653. # This program is distributed in the hope that it will be useful,
  22654. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22655. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22656. # GNU General Public License for more details.
  22657. #
  22658. # You should have received a copy of the GNU General Public License
  22659. # along with this program; if not, write to the Free Software
  22660. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22661. #
  22662. # END COPYRIGHT BLOCK
  22663. #
  22664. # Configure paths for SVRCORE
  22665. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  22666. echo "$as_me: checking for svrcore..." >&6;}
  22667. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  22668. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  22669. # Check whether --with-svrcore or --without-svrcore was given.
  22670. if test "${with_svrcore+set}" = set; then
  22671. withval="$with_svrcore"
  22672. if test "$withval" = "yes"; then
  22673. echo "$as_me:$LINENO: result: yes" >&5
  22674. echo "${ECHO_T}yes" >&6
  22675. if test -f /usr/include/svrcore.h; then
  22676. svrcore_inc="-I/usr/include"
  22677. else
  22678. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22679. echo "$as_me: error: svrcore.h not found" >&2;}
  22680. { (exit 1); exit 1; }; }
  22681. fi
  22682. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22683. echo "$as_me:$LINENO: result: using $withval" >&5
  22684. echo "${ECHO_T}using $withval" >&6
  22685. if test -f "$withval/include/svrcore.h"; then
  22686. svrcore_inc="-I$withval/include"
  22687. else
  22688. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22689. echo "$as_me: error: svrcore.h not found" >&2;}
  22690. { (exit 1); exit 1; }; }
  22691. fi
  22692. svrcore_lib="-L$withval/lib"
  22693. else
  22694. echo "$as_me:$LINENO: result: yes" >&5
  22695. echo "${ECHO_T}yes" >&6
  22696. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  22697. echo "$as_me: error: svrcore not found in $withval" >&2;}
  22698. { (exit 1); exit 1; }; }
  22699. fi
  22700. else
  22701. echo "$as_me:$LINENO: result: no" >&5
  22702. echo "${ECHO_T}no" >&6
  22703. fi;
  22704. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  22705. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  22706. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  22707. if test "${with_svrcore_inc+set}" = set; then
  22708. withval="$with_svrcore_inc"
  22709. if test -f "$withval"/svrcore.h; then
  22710. echo "$as_me:$LINENO: result: using $withval" >&5
  22711. echo "${ECHO_T}using $withval" >&6
  22712. svrcore_inc="-I$withval"
  22713. else
  22714. echo
  22715. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  22716. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  22717. { (exit 1); exit 1; }; }
  22718. fi
  22719. else
  22720. echo "$as_me:$LINENO: result: no" >&5
  22721. echo "${ECHO_T}no" >&6
  22722. fi;
  22723. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  22724. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  22725. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  22726. if test "${with_svrcore_lib+set}" = set; then
  22727. withval="$with_svrcore_lib"
  22728. if test -d "$withval"; then
  22729. echo "$as_me:$LINENO: result: using $withval" >&5
  22730. echo "${ECHO_T}using $withval" >&6
  22731. svrcore_lib="-L$withval"
  22732. else
  22733. echo
  22734. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22735. echo "$as_me: error: $withval not found" >&2;}
  22736. { (exit 1); exit 1; }; }
  22737. fi
  22738. else
  22739. echo "$as_me:$LINENO: result: no" >&5
  22740. echo "${ECHO_T}no" >&6
  22741. fi;
  22742. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22743. # Extract the first word of "pkg-config", so it can be a program name with args.
  22744. set dummy pkg-config; ac_word=$2
  22745. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22746. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22747. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22748. echo $ECHO_N "(cached) $ECHO_C" >&6
  22749. else
  22750. case $PKG_CONFIG in
  22751. [\\/]* | ?:[\\/]*)
  22752. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22753. ;;
  22754. *)
  22755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22756. for as_dir in $PATH
  22757. do
  22758. IFS=$as_save_IFS
  22759. test -z "$as_dir" && as_dir=.
  22760. for ac_exec_ext in '' $ac_executable_extensions; do
  22761. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22762. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22763. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22764. break 2
  22765. fi
  22766. done
  22767. done
  22768. ;;
  22769. esac
  22770. fi
  22771. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22772. if test -n "$PKG_CONFIG"; then
  22773. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22774. echo "${ECHO_T}$PKG_CONFIG" >&6
  22775. else
  22776. echo "$as_me:$LINENO: result: no" >&5
  22777. echo "${ECHO_T}no" >&6
  22778. fi
  22779. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  22780. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  22781. if test -n "$PKG_CONFIG"; then
  22782. if $PKG_CONFIG --exists svrcore; then
  22783. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  22784. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  22785. echo "$as_me:$LINENO: result: using system svrcore" >&5
  22786. echo "${ECHO_T}using system svrcore" >&6
  22787. fi
  22788. fi
  22789. fi
  22790. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22791. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  22792. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  22793. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  22794. echo $ECHO_N "(cached) $ECHO_C" >&6
  22795. else
  22796. ac_check_lib_save_LIBS=$LIBS
  22797. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  22798. cat >conftest.$ac_ext <<_ACEOF
  22799. /* confdefs.h. */
  22800. _ACEOF
  22801. cat confdefs.h >>conftest.$ac_ext
  22802. cat >>conftest.$ac_ext <<_ACEOF
  22803. /* end confdefs.h. */
  22804. /* Override any gcc2 internal prototype to avoid an error. */
  22805. #ifdef __cplusplus
  22806. extern "C"
  22807. #endif
  22808. /* We use char because int might match the return type of a gcc2
  22809. builtin and then its argument prototype would still apply. */
  22810. char SVRCORE_GetRegisteredPinObj ();
  22811. int
  22812. main ()
  22813. {
  22814. SVRCORE_GetRegisteredPinObj ();
  22815. ;
  22816. return 0;
  22817. }
  22818. _ACEOF
  22819. rm -f conftest.$ac_objext conftest$ac_exeext
  22820. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22821. (eval $ac_link) 2>conftest.er1
  22822. ac_status=$?
  22823. grep -v '^ *+' conftest.er1 >conftest.err
  22824. rm -f conftest.er1
  22825. cat conftest.err >&5
  22826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22827. (exit $ac_status); } &&
  22828. { ac_try='test -z "$ac_c_werror_flag"
  22829. || test ! -s conftest.err'
  22830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22831. (eval $ac_try) 2>&5
  22832. ac_status=$?
  22833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22834. (exit $ac_status); }; } &&
  22835. { ac_try='test -s conftest$ac_exeext'
  22836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22837. (eval $ac_try) 2>&5
  22838. ac_status=$?
  22839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22840. (exit $ac_status); }; }; then
  22841. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  22842. else
  22843. echo "$as_me: failed program was:" >&5
  22844. sed 's/^/| /' conftest.$ac_ext >&5
  22845. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  22846. fi
  22847. rm -f conftest.err conftest.$ac_objext \
  22848. conftest$ac_exeext conftest.$ac_ext
  22849. LIBS=$ac_check_lib_save_LIBS
  22850. fi
  22851. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  22852. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  22853. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  22854. havesvrcore=1
  22855. fi
  22856. if test -n "$havesvrcore" ; then
  22857. save_cppflags="$CPPFLAGS"
  22858. CPPFLAGS="$nss_inc $nspr_inc"
  22859. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22860. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22861. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22862. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22863. echo $ECHO_N "(cached) $ECHO_C" >&6
  22864. fi
  22865. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22866. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22867. else
  22868. # Is the header compilable?
  22869. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  22870. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  22871. cat >conftest.$ac_ext <<_ACEOF
  22872. /* confdefs.h. */
  22873. _ACEOF
  22874. cat confdefs.h >>conftest.$ac_ext
  22875. cat >>conftest.$ac_ext <<_ACEOF
  22876. /* end confdefs.h. */
  22877. $ac_includes_default
  22878. #include <svrcore.h>
  22879. _ACEOF
  22880. rm -f conftest.$ac_objext
  22881. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22882. (eval $ac_compile) 2>conftest.er1
  22883. ac_status=$?
  22884. grep -v '^ *+' conftest.er1 >conftest.err
  22885. rm -f conftest.er1
  22886. cat conftest.err >&5
  22887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22888. (exit $ac_status); } &&
  22889. { ac_try='test -z "$ac_c_werror_flag"
  22890. || test ! -s conftest.err'
  22891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22892. (eval $ac_try) 2>&5
  22893. ac_status=$?
  22894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22895. (exit $ac_status); }; } &&
  22896. { ac_try='test -s conftest.$ac_objext'
  22897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22898. (eval $ac_try) 2>&5
  22899. ac_status=$?
  22900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22901. (exit $ac_status); }; }; then
  22902. ac_header_compiler=yes
  22903. else
  22904. echo "$as_me: failed program was:" >&5
  22905. sed 's/^/| /' conftest.$ac_ext >&5
  22906. ac_header_compiler=no
  22907. fi
  22908. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22909. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22910. echo "${ECHO_T}$ac_header_compiler" >&6
  22911. # Is the header present?
  22912. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  22913. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  22914. cat >conftest.$ac_ext <<_ACEOF
  22915. /* confdefs.h. */
  22916. _ACEOF
  22917. cat confdefs.h >>conftest.$ac_ext
  22918. cat >>conftest.$ac_ext <<_ACEOF
  22919. /* end confdefs.h. */
  22920. #include <svrcore.h>
  22921. _ACEOF
  22922. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22923. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22924. ac_status=$?
  22925. grep -v '^ *+' conftest.er1 >conftest.err
  22926. rm -f conftest.er1
  22927. cat conftest.err >&5
  22928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22929. (exit $ac_status); } >/dev/null; then
  22930. if test -s conftest.err; then
  22931. ac_cpp_err=$ac_c_preproc_warn_flag
  22932. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22933. else
  22934. ac_cpp_err=
  22935. fi
  22936. else
  22937. ac_cpp_err=yes
  22938. fi
  22939. if test -z "$ac_cpp_err"; then
  22940. ac_header_preproc=yes
  22941. else
  22942. echo "$as_me: failed program was:" >&5
  22943. sed 's/^/| /' conftest.$ac_ext >&5
  22944. ac_header_preproc=no
  22945. fi
  22946. rm -f conftest.err conftest.$ac_ext
  22947. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22948. echo "${ECHO_T}$ac_header_preproc" >&6
  22949. # So? What about this header?
  22950. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22951. yes:no: )
  22952. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22953. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22954. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  22955. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  22956. ac_header_preproc=yes
  22957. ;;
  22958. no:yes:* )
  22959. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  22960. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  22961. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  22962. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  22963. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  22964. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  22965. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  22966. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22967. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  22968. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  22969. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  22970. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  22971. (
  22972. cat <<\_ASBOX
  22973. ## ------------------------------------------ ##
  22974. ## Report this to http://bugzilla.redhat.com/ ##
  22975. ## ------------------------------------------ ##
  22976. _ASBOX
  22977. ) |
  22978. sed "s/^/$as_me: WARNING: /" >&2
  22979. ;;
  22980. esac
  22981. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22982. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22983. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22984. echo $ECHO_N "(cached) $ECHO_C" >&6
  22985. else
  22986. ac_cv_header_svrcore_h=$ac_header_preproc
  22987. fi
  22988. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22989. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22990. fi
  22991. if test $ac_cv_header_svrcore_h = yes; then
  22992. havesvrcore=1
  22993. else
  22994. havesvrcore=
  22995. fi
  22996. CPPFLAGS="$save_cppflags"
  22997. fi
  22998. if test -z "$havesvrcore" ; then
  22999. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  23000. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  23001. { (exit 1); exit 1; }; }
  23002. fi
  23003. fi
  23004. # BEGIN COPYRIGHT BLOCK
  23005. # Copyright (C) 2006 Red Hat, Inc.
  23006. # All rights reserved.
  23007. #
  23008. # This program is free software; you can redistribute it and/or
  23009. # modify it under the terms of the GNU General Public License
  23010. # as published by the Free Software Foundation; either version 2
  23011. # of the License, or (at your option) any later version.
  23012. #
  23013. # This program is distributed in the hope that it will be useful,
  23014. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23015. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23016. # GNU General Public License for more details.
  23017. #
  23018. # You should have received a copy of the GNU General Public License
  23019. # along with this program; if not, write to the Free Software
  23020. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23021. #
  23022. # END COPYRIGHT BLOCK
  23023. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  23024. echo "$as_me: checking for LIBICU..." >&6;}
  23025. # check for --with-icu
  23026. echo "$as_me:$LINENO: checking for --with-icu" >&5
  23027. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  23028. # Check whether --with-icu or --without-icu was given.
  23029. if test "${with_icu+set}" = set; then
  23030. withval="$with_icu"
  23031. if test -d "$withval"/lib
  23032. then
  23033. echo "$as_me:$LINENO: result: using $withval" >&5
  23034. echo "${ECHO_T}using $withval" >&6
  23035. ICUDIR=$withval
  23036. icu_lib="-L$ICUDIR/lib"
  23037. else
  23038. echo
  23039. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23040. echo "$as_me: error: $withval not found" >&2;}
  23041. { (exit 1); exit 1; }; }
  23042. fi
  23043. icu_inc="-I$withval/include"
  23044. icu_bin="$withval/bin"
  23045. else
  23046. echo "$as_me:$LINENO: result: no" >&5
  23047. echo "${ECHO_T}no" >&6
  23048. fi;
  23049. # check for --with-icu-inc
  23050. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  23051. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  23052. # Check whether --with-icu-inc or --without-icu-inc was given.
  23053. if test "${with_icu_inc+set}" = set; then
  23054. withval="$with_icu_inc"
  23055. if test -d "$withval"
  23056. then
  23057. echo "$as_me:$LINENO: result: using $withval" >&5
  23058. echo "${ECHO_T}using $withval" >&6
  23059. icu_inc="-I$withval"
  23060. else
  23061. echo
  23062. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23063. echo "$as_me: error: $withval not found" >&2;}
  23064. { (exit 1); exit 1; }; }
  23065. fi
  23066. else
  23067. echo "$as_me:$LINENO: result: no" >&5
  23068. echo "${ECHO_T}no" >&6
  23069. fi;
  23070. # check for --with-icu-lib
  23071. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  23072. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  23073. # Check whether --with-icu-lib or --without-icu-lib was given.
  23074. if test "${with_icu_lib+set}" = set; then
  23075. withval="$with_icu_lib"
  23076. if test -d "$withval"
  23077. then
  23078. echo "$as_me:$LINENO: result: using $withval" >&5
  23079. echo "${ECHO_T}using $withval" >&6
  23080. icu_lib="-L$withval"
  23081. else
  23082. echo
  23083. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23084. echo "$as_me: error: $withval not found" >&2;}
  23085. { (exit 1); exit 1; }; }
  23086. fi
  23087. else
  23088. echo "$as_me:$LINENO: result: no" >&5
  23089. echo "${ECHO_T}no" >&6
  23090. fi;
  23091. # check for --with-icu-bin
  23092. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  23093. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  23094. # Check whether --with-icu-bin or --without-icu-bin was given.
  23095. if test "${with_icu_bin+set}" = set; then
  23096. withval="$with_icu_bin"
  23097. if test -d "$withval"
  23098. then
  23099. echo "$as_me:$LINENO: result: using $withval" >&5
  23100. echo "${ECHO_T}using $withval" >&6
  23101. icu_bin="$withval"
  23102. else
  23103. echo
  23104. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23105. echo "$as_me: error: $withval not found" >&2;}
  23106. { (exit 1); exit 1; }; }
  23107. fi
  23108. else
  23109. echo "$as_me:$LINENO: result: no" >&5
  23110. echo "${ECHO_T}no" >&6
  23111. fi;
  23112. # if ICU is not found yet, try pkg-config
  23113. # last resort
  23114. if test -z "$icu_lib"; then
  23115. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  23116. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  23117. # Extract the first word of "icu-config", so it can be a program name with args.
  23118. set dummy icu-config; ac_word=$2
  23119. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23120. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23121. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  23122. echo $ECHO_N "(cached) $ECHO_C" >&6
  23123. else
  23124. case $ICU_CONFIG in
  23125. [\\/]* | ?:[\\/]*)
  23126. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  23127. ;;
  23128. *)
  23129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23130. for as_dir in $PATH
  23131. do
  23132. IFS=$as_save_IFS
  23133. test -z "$as_dir" && as_dir=.
  23134. for ac_exec_ext in '' $ac_executable_extensions; do
  23135. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23136. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23137. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23138. break 2
  23139. fi
  23140. done
  23141. done
  23142. ;;
  23143. esac
  23144. fi
  23145. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  23146. if test -n "$ICU_CONFIG"; then
  23147. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  23148. echo "${ECHO_T}$ICU_CONFIG" >&6
  23149. else
  23150. echo "$as_me:$LINENO: result: no" >&5
  23151. echo "${ECHO_T}no" >&6
  23152. fi
  23153. if test -n "$ICU_CONFIG"; then
  23154. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  23155. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  23156. icu_bin=`$ICU_CONFIG --bindir`
  23157. echo "$as_me:$LINENO: result: using system ICU" >&5
  23158. echo "${ECHO_T}using system ICU" >&6
  23159. else
  23160. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  23161. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  23162. { (exit 1); exit 1; }; }
  23163. fi
  23164. fi
  23165. # BEGIN COPYRIGHT BLOCK
  23166. # Copyright (C) 2006 Red Hat, Inc.
  23167. # All rights reserved.
  23168. #
  23169. # This program is free software; you can redistribute it and/or
  23170. # modify it under the terms of the GNU General Public License
  23171. # as published by the Free Software Foundation; either version 2
  23172. # of the License, or (at your option) any later version.
  23173. #
  23174. # This program is distributed in the hope that it will be useful,
  23175. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23176. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23177. # GNU General Public License for more details.
  23178. #
  23179. # You should have received a copy of the GNU General Public License
  23180. # along with this program; if not, write to the Free Software
  23181. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23182. #
  23183. # END COPYRIGHT BLOCK
  23184. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  23185. echo "$as_me: checking for Net-SNMP..." >&6;}
  23186. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  23187. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  23188. # Check whether --with-netsnmp or --without-netsnmp was given.
  23189. if test "${with_netsnmp+set}" = set; then
  23190. withval="$with_netsnmp"
  23191. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  23192. echo "$as_me:$LINENO: result: using $withval" >&5
  23193. echo "${ECHO_T}using $withval" >&6
  23194. NETSNMPDIR=$withval
  23195. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  23196. netsnmp_inc="-I$withval/include"
  23197. else
  23198. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  23199. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  23200. { (exit 1); exit 1; }; }
  23201. fi
  23202. netsnmp_lib="-L$withval/lib"
  23203. netsnmp_libdir="$withval/lib"
  23204. else
  23205. echo "$as_me:$LINENO: result: yes" >&5
  23206. echo "${ECHO_T}yes" >&6
  23207. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23208. echo "$as_me: error: $withval not found" >&2;}
  23209. { (exit 1); exit 1; }; }
  23210. fi
  23211. else
  23212. echo "$as_me:$LINENO: result: no" >&5
  23213. echo "${ECHO_T}no" >&6
  23214. fi;
  23215. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  23216. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  23217. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  23218. if test "${with_netsnmp_inc+set}" = set; then
  23219. withval="$with_netsnmp_inc"
  23220. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  23221. echo "$as_me:$LINENO: result: using $withval" >&5
  23222. echo "${ECHO_T}using $withval" >&6
  23223. netsnmp_inc="-I$withval"
  23224. else
  23225. echo
  23226. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  23227. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  23228. { (exit 1); exit 1; }; }
  23229. fi
  23230. else
  23231. echo "$as_me:$LINENO: result: no" >&5
  23232. echo "${ECHO_T}no" >&6
  23233. fi;
  23234. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  23235. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  23236. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  23237. if test "${with_netsnmp_lib+set}" = set; then
  23238. withval="$with_netsnmp_lib"
  23239. if test -d "$withval"
  23240. then
  23241. echo "$as_me:$LINENO: result: using $withval" >&5
  23242. echo "${ECHO_T}using $withval" >&6
  23243. netsnmp_lib="-L$withval"
  23244. netsnmp_libdir="$withval"
  23245. else
  23246. echo
  23247. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23248. echo "$as_me: error: $withval not found" >&2;}
  23249. { (exit 1); exit 1; }; }
  23250. fi
  23251. else
  23252. echo "$as_me:$LINENO: result: no" >&5
  23253. echo "${ECHO_T}no" >&6
  23254. fi;
  23255. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  23256. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  23257. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  23258. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  23259. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  23260. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  23261. netsnmp_inc="-I/usr/include"
  23262. else
  23263. echo "$as_me:$LINENO: result: no" >&5
  23264. echo "${ECHO_T}no" >&6
  23265. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  23266. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  23267. { (exit 1); exit 1; }; }
  23268. fi
  23269. fi
  23270. if test -n "$netsnmp_inc"; then
  23271. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  23272. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  23273. else
  23274. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  23275. set dummy net-snmp-config; ac_word=$2
  23276. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23277. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23278. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  23279. echo $ECHO_N "(cached) $ECHO_C" >&6
  23280. else
  23281. case $NETSNMP_CONFIG in
  23282. [\\/]* | ?:[\\/]*)
  23283. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  23284. ;;
  23285. *)
  23286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23287. for as_dir in $PATH
  23288. do
  23289. IFS=$as_save_IFS
  23290. test -z "$as_dir" && as_dir=.
  23291. for ac_exec_ext in '' $ac_executable_extensions; do
  23292. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23293. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23294. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23295. break 2
  23296. fi
  23297. done
  23298. done
  23299. ;;
  23300. esac
  23301. fi
  23302. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  23303. if test -n "$NETSNMP_CONFIG"; then
  23304. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  23305. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  23306. else
  23307. echo "$as_me:$LINENO: result: no" >&5
  23308. echo "${ECHO_T}no" >&6
  23309. fi
  23310. fi
  23311. if test -n "$NETSNMP_CONFIG"; then
  23312. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  23313. else
  23314. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  23315. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  23316. { (exit 1); exit 1; }; }
  23317. fi
  23318. else
  23319. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  23320. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  23321. { (exit 1); exit 1; }; }
  23322. fi
  23323. # BEGIN COPYRIGHT BLOCK
  23324. # Copyright (C) 2008 Red Hat, Inc.
  23325. # All rights reserved.
  23326. #
  23327. # This program is free software; you can redistribute it and/or
  23328. # modify it under the terms of the GNU General Public License
  23329. # as published by the Free Software Foundation; either version 2
  23330. # of the License, or (at your option) any later version.
  23331. #
  23332. # This program is distributed in the hope that it will be useful,
  23333. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23334. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23335. # GNU General Public License for more details.
  23336. #
  23337. # You should have received a copy of the GNU General Public License
  23338. # along with this program; if not, write to the Free Software
  23339. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23340. #
  23341. # END COPYRIGHT BLOCK
  23342. # -*- tab-width: 4; -*-
  23343. # Configure paths for Kerberos
  23344. { echo "$as_me:$LINENO: checking for kerberos..." >&5
  23345. echo "$as_me: checking for kerberos..." >&6;}
  23346. if test -z "$with_kerberos" ; then
  23347. with_kerberos=yes # if not set on cmdline, set default
  23348. fi
  23349. echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  23350. echo $ECHO_N "checking for --with-kerberos... $ECHO_C" >&6
  23351. # Check whether --with-kerberos or --without-kerberos was given.
  23352. if test "${with_kerberos+set}" = set; then
  23353. withval="$with_kerberos"
  23354. if test "x$withval" = "xyes"; then
  23355. echo "$as_me:$LINENO: result: yes" >&5
  23356. echo "${ECHO_T}yes" >&6
  23357. elif test "x$withval" = "xno"; then
  23358. echo "$as_me:$LINENO: result: no" >&5
  23359. echo "${ECHO_T}no" >&6
  23360. with_kerberos=
  23361. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  23362. echo "$as_me:$LINENO: result: using $withval" >&5
  23363. echo "${ECHO_T}using $withval" >&6
  23364. kerberos_incdir="$withval/include"
  23365. kerberos_libdir="$withval/lib"
  23366. else
  23367. echo "$as_me:$LINENO: result: yes" >&5
  23368. echo "${ECHO_T}yes" >&6
  23369. { { echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  23370. echo "$as_me: error: kerberos not found in $withval" >&2;}
  23371. { (exit 1); exit 1; }; }
  23372. fi
  23373. else
  23374. echo "$as_me:$LINENO: result: no" >&5
  23375. echo "${ECHO_T}no" >&6
  23376. with_kerberos=
  23377. fi;
  23378. echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  23379. echo $ECHO_N "checking for --with-kerberos-inc... $ECHO_C" >&6
  23380. # Check whether --with-kerberos-inc or --without-kerberos-inc was given.
  23381. if test "${with_kerberos_inc+set}" = set; then
  23382. withval="$with_kerberos_inc"
  23383. if test -f "$withval"/krb5.h; then
  23384. echo "$as_me:$LINENO: result: using $withval" >&5
  23385. echo "${ECHO_T}using $withval" >&6
  23386. kerberos_incdir="$withval"
  23387. with_kerberos=yes # implies use of kerberos
  23388. else
  23389. echo
  23390. { { echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  23391. echo "$as_me: error: $withval/krb5.h not found" >&2;}
  23392. { (exit 1); exit 1; }; }
  23393. fi
  23394. else
  23395. echo "$as_me:$LINENO: result: no" >&5
  23396. echo "${ECHO_T}no" >&6
  23397. fi;
  23398. echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  23399. echo $ECHO_N "checking for --with-kerberos-lib... $ECHO_C" >&6
  23400. # Check whether --with-kerberos-lib or --without-kerberos-lib was given.
  23401. if test "${with_kerberos_lib+set}" = set; then
  23402. withval="$with_kerberos_lib"
  23403. if test -d "$withval"; then
  23404. echo "$as_me:$LINENO: result: using $withval" >&5
  23405. echo "${ECHO_T}using $withval" >&6
  23406. kerberos_libdir="$withval"
  23407. with_kerberos=yes # implies use of kerberos
  23408. else
  23409. echo
  23410. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23411. echo "$as_me: error: $withval not found" >&2;}
  23412. { (exit 1); exit 1; }; }
  23413. fi
  23414. else
  23415. echo "$as_me:$LINENO: result: no" >&5
  23416. echo "${ECHO_T}no" >&6
  23417. fi;
  23418. if test -n "$with_kerberos" ; then
  23419. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  23420. if test -z "$KRB5_CONFIG_BIN" ; then
  23421. # Extract the first word of "krb5-config", so it can be a program name with args.
  23422. set dummy krb5-config; ac_word=$2
  23423. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23424. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23425. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  23426. echo $ECHO_N "(cached) $ECHO_C" >&6
  23427. else
  23428. case $KRB5_CONFIG_BIN in
  23429. [\\/]* | ?:[\\/]*)
  23430. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  23431. ;;
  23432. *)
  23433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23434. for as_dir in $PATH
  23435. do
  23436. IFS=$as_save_IFS
  23437. test -z "$as_dir" && as_dir=.
  23438. for ac_exec_ext in '' $ac_executable_extensions; do
  23439. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23440. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  23441. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23442. break 2
  23443. fi
  23444. done
  23445. done
  23446. ;;
  23447. esac
  23448. fi
  23449. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  23450. if test -n "$KRB5_CONFIG_BIN"; then
  23451. echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  23452. echo "${ECHO_T}$KRB5_CONFIG_BIN" >&6
  23453. else
  23454. echo "$as_me:$LINENO: result: no" >&5
  23455. echo "${ECHO_T}no" >&6
  23456. fi
  23457. fi
  23458. if test -n "$KRB5_CONFIG_BIN" ; then
  23459. echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  23460. echo $ECHO_N "checking for kerberos with $KRB5_CONFIG_BIN... $ECHO_C" >&6
  23461. if test -z "$kerberos_libdir" ; then
  23462. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  23463. fi
  23464. if test -z "$kerberos_incdir" ; then
  23465. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  23466. fi
  23467. if test -n "$kerberos_lib" ; then
  23468. echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  23469. echo "${ECHO_T}using kerberos found with $KRB5_CONFIG_BIN" >&6
  23470. have_krb5=yes
  23471. fi
  23472. fi
  23473. fi
  23474. fi
  23475. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  23476. # save these in order to set them to use the check macros below
  23477. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  23478. save_CPPFLAGS="$CPPFLAGS"
  23479. if test -n "$kerberos_incdir" ; then
  23480. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  23481. fi
  23482. save_LDFLAGS="$LDFLAGS"
  23483. if test -n "$kerberos_libdir" ; then
  23484. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  23485. fi
  23486. krb5_impl=mit
  23487. for ac_header in heim_err.h
  23488. do
  23489. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23490. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23491. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23492. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23493. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23494. echo $ECHO_N "(cached) $ECHO_C" >&6
  23495. fi
  23496. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23497. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23498. else
  23499. # Is the header compilable?
  23500. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23501. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23502. cat >conftest.$ac_ext <<_ACEOF
  23503. /* confdefs.h. */
  23504. _ACEOF
  23505. cat confdefs.h >>conftest.$ac_ext
  23506. cat >>conftest.$ac_ext <<_ACEOF
  23507. /* end confdefs.h. */
  23508. $ac_includes_default
  23509. #include <$ac_header>
  23510. _ACEOF
  23511. rm -f conftest.$ac_objext
  23512. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23513. (eval $ac_compile) 2>conftest.er1
  23514. ac_status=$?
  23515. grep -v '^ *+' conftest.er1 >conftest.err
  23516. rm -f conftest.er1
  23517. cat conftest.err >&5
  23518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23519. (exit $ac_status); } &&
  23520. { ac_try='test -z "$ac_c_werror_flag"
  23521. || test ! -s conftest.err'
  23522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23523. (eval $ac_try) 2>&5
  23524. ac_status=$?
  23525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23526. (exit $ac_status); }; } &&
  23527. { ac_try='test -s conftest.$ac_objext'
  23528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23529. (eval $ac_try) 2>&5
  23530. ac_status=$?
  23531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23532. (exit $ac_status); }; }; then
  23533. ac_header_compiler=yes
  23534. else
  23535. echo "$as_me: failed program was:" >&5
  23536. sed 's/^/| /' conftest.$ac_ext >&5
  23537. ac_header_compiler=no
  23538. fi
  23539. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23540. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23541. echo "${ECHO_T}$ac_header_compiler" >&6
  23542. # Is the header present?
  23543. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23544. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23545. cat >conftest.$ac_ext <<_ACEOF
  23546. /* confdefs.h. */
  23547. _ACEOF
  23548. cat confdefs.h >>conftest.$ac_ext
  23549. cat >>conftest.$ac_ext <<_ACEOF
  23550. /* end confdefs.h. */
  23551. #include <$ac_header>
  23552. _ACEOF
  23553. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23554. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23555. ac_status=$?
  23556. grep -v '^ *+' conftest.er1 >conftest.err
  23557. rm -f conftest.er1
  23558. cat conftest.err >&5
  23559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23560. (exit $ac_status); } >/dev/null; then
  23561. if test -s conftest.err; then
  23562. ac_cpp_err=$ac_c_preproc_warn_flag
  23563. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23564. else
  23565. ac_cpp_err=
  23566. fi
  23567. else
  23568. ac_cpp_err=yes
  23569. fi
  23570. if test -z "$ac_cpp_err"; then
  23571. ac_header_preproc=yes
  23572. else
  23573. echo "$as_me: failed program was:" >&5
  23574. sed 's/^/| /' conftest.$ac_ext >&5
  23575. ac_header_preproc=no
  23576. fi
  23577. rm -f conftest.err conftest.$ac_ext
  23578. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23579. echo "${ECHO_T}$ac_header_preproc" >&6
  23580. # So? What about this header?
  23581. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23582. yes:no: )
  23583. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23584. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23585. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23586. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23587. ac_header_preproc=yes
  23588. ;;
  23589. no:yes:* )
  23590. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23591. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23592. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23593. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23594. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23595. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23596. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23597. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23598. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23599. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23600. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23601. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23602. (
  23603. cat <<\_ASBOX
  23604. ## ------------------------------------------ ##
  23605. ## Report this to http://bugzilla.redhat.com/ ##
  23606. ## ------------------------------------------ ##
  23607. _ASBOX
  23608. ) |
  23609. sed "s/^/$as_me: WARNING: /" >&2
  23610. ;;
  23611. esac
  23612. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23613. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23614. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23615. echo $ECHO_N "(cached) $ECHO_C" >&6
  23616. else
  23617. eval "$as_ac_Header=\$ac_header_preproc"
  23618. fi
  23619. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23620. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23621. fi
  23622. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23623. cat >>confdefs.h <<_ACEOF
  23624. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23625. _ACEOF
  23626. fi
  23627. done
  23628. if test $ac_cv_header_heim_err_h = yes ; then
  23629. krb5_impl=heimdal
  23630. fi
  23631. if test "x$krb5_impl" = "xmit"; then
  23632. echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  23633. echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
  23634. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  23635. echo $ECHO_N "(cached) $ECHO_C" >&6
  23636. else
  23637. ac_check_lib_save_LIBS=$LIBS
  23638. LIBS="-lk5crypto $LIBS"
  23639. cat >conftest.$ac_ext <<_ACEOF
  23640. /* confdefs.h. */
  23641. _ACEOF
  23642. cat confdefs.h >>conftest.$ac_ext
  23643. cat >>conftest.$ac_ext <<_ACEOF
  23644. /* end confdefs.h. */
  23645. int
  23646. main ()
  23647. {
  23648. main ();
  23649. ;
  23650. return 0;
  23651. }
  23652. _ACEOF
  23653. rm -f conftest.$ac_objext conftest$ac_exeext
  23654. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23655. (eval $ac_link) 2>conftest.er1
  23656. ac_status=$?
  23657. grep -v '^ *+' conftest.er1 >conftest.err
  23658. rm -f conftest.er1
  23659. cat conftest.err >&5
  23660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23661. (exit $ac_status); } &&
  23662. { ac_try='test -z "$ac_c_werror_flag"
  23663. || test ! -s conftest.err'
  23664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23665. (eval $ac_try) 2>&5
  23666. ac_status=$?
  23667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23668. (exit $ac_status); }; } &&
  23669. { ac_try='test -s conftest$ac_exeext'
  23670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23671. (eval $ac_try) 2>&5
  23672. ac_status=$?
  23673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23674. (exit $ac_status); }; }; then
  23675. ac_cv_lib_k5crypto_main=yes
  23676. else
  23677. echo "$as_me: failed program was:" >&5
  23678. sed 's/^/| /' conftest.$ac_ext >&5
  23679. ac_cv_lib_k5crypto_main=no
  23680. fi
  23681. rm -f conftest.err conftest.$ac_objext \
  23682. conftest$ac_exeext conftest.$ac_ext
  23683. LIBS=$ac_check_lib_save_LIBS
  23684. fi
  23685. echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  23686. echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
  23687. if test $ac_cv_lib_k5crypto_main = yes; then
  23688. krb5crypto=k5crypto
  23689. else
  23690. krb5crypto=crypto
  23691. fi
  23692. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23693. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23694. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23695. echo $ECHO_N "(cached) $ECHO_C" >&6
  23696. else
  23697. ac_check_lib_save_LIBS=$LIBS
  23698. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  23699. cat >conftest.$ac_ext <<_ACEOF
  23700. /* confdefs.h. */
  23701. _ACEOF
  23702. cat confdefs.h >>conftest.$ac_ext
  23703. cat >>conftest.$ac_ext <<_ACEOF
  23704. /* end confdefs.h. */
  23705. int
  23706. main ()
  23707. {
  23708. main ();
  23709. ;
  23710. return 0;
  23711. }
  23712. _ACEOF
  23713. rm -f conftest.$ac_objext conftest$ac_exeext
  23714. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23715. (eval $ac_link) 2>conftest.er1
  23716. ac_status=$?
  23717. grep -v '^ *+' conftest.er1 >conftest.err
  23718. rm -f conftest.er1
  23719. cat conftest.err >&5
  23720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23721. (exit $ac_status); } &&
  23722. { ac_try='test -z "$ac_c_werror_flag"
  23723. || test ! -s conftest.err'
  23724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23725. (eval $ac_try) 2>&5
  23726. ac_status=$?
  23727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23728. (exit $ac_status); }; } &&
  23729. { ac_try='test -s conftest$ac_exeext'
  23730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23731. (eval $ac_try) 2>&5
  23732. ac_status=$?
  23733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23734. (exit $ac_status); }; }; then
  23735. ac_cv_lib_krb5_main=yes
  23736. else
  23737. echo "$as_me: failed program was:" >&5
  23738. sed 's/^/| /' conftest.$ac_ext >&5
  23739. ac_cv_lib_krb5_main=no
  23740. fi
  23741. rm -f conftest.err conftest.$ac_objext \
  23742. conftest$ac_exeext conftest.$ac_ext
  23743. LIBS=$ac_check_lib_save_LIBS
  23744. fi
  23745. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23746. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23747. if test $ac_cv_lib_krb5_main = yes; then
  23748. have_krb5=yes
  23749. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  23750. else
  23751. have_krb5=no
  23752. fi
  23753. elif test "x$krb5_impl" = "xheimdal"; then
  23754. echo "$as_me:$LINENO: checking for main in -ldes" >&5
  23755. echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
  23756. if test "${ac_cv_lib_des_main+set}" = set; then
  23757. echo $ECHO_N "(cached) $ECHO_C" >&6
  23758. else
  23759. ac_check_lib_save_LIBS=$LIBS
  23760. LIBS="-ldes $LIBS"
  23761. cat >conftest.$ac_ext <<_ACEOF
  23762. /* confdefs.h. */
  23763. _ACEOF
  23764. cat confdefs.h >>conftest.$ac_ext
  23765. cat >>conftest.$ac_ext <<_ACEOF
  23766. /* end confdefs.h. */
  23767. int
  23768. main ()
  23769. {
  23770. main ();
  23771. ;
  23772. return 0;
  23773. }
  23774. _ACEOF
  23775. rm -f conftest.$ac_objext conftest$ac_exeext
  23776. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23777. (eval $ac_link) 2>conftest.er1
  23778. ac_status=$?
  23779. grep -v '^ *+' conftest.er1 >conftest.err
  23780. rm -f conftest.er1
  23781. cat conftest.err >&5
  23782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23783. (exit $ac_status); } &&
  23784. { ac_try='test -z "$ac_c_werror_flag"
  23785. || test ! -s conftest.err'
  23786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23787. (eval $ac_try) 2>&5
  23788. ac_status=$?
  23789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23790. (exit $ac_status); }; } &&
  23791. { ac_try='test -s conftest$ac_exeext'
  23792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23793. (eval $ac_try) 2>&5
  23794. ac_status=$?
  23795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23796. (exit $ac_status); }; }; then
  23797. ac_cv_lib_des_main=yes
  23798. else
  23799. echo "$as_me: failed program was:" >&5
  23800. sed 's/^/| /' conftest.$ac_ext >&5
  23801. ac_cv_lib_des_main=no
  23802. fi
  23803. rm -f conftest.err conftest.$ac_objext \
  23804. conftest$ac_exeext conftest.$ac_ext
  23805. LIBS=$ac_check_lib_save_LIBS
  23806. fi
  23807. echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  23808. echo "${ECHO_T}$ac_cv_lib_des_main" >&6
  23809. if test $ac_cv_lib_des_main = yes; then
  23810. krb5crypto=des
  23811. else
  23812. krb5crypto=crypto
  23813. fi
  23814. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23815. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23816. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23817. echo $ECHO_N "(cached) $ECHO_C" >&6
  23818. else
  23819. ac_check_lib_save_LIBS=$LIBS
  23820. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  23821. cat >conftest.$ac_ext <<_ACEOF
  23822. /* confdefs.h. */
  23823. _ACEOF
  23824. cat confdefs.h >>conftest.$ac_ext
  23825. cat >>conftest.$ac_ext <<_ACEOF
  23826. /* end confdefs.h. */
  23827. int
  23828. main ()
  23829. {
  23830. main ();
  23831. ;
  23832. return 0;
  23833. }
  23834. _ACEOF
  23835. rm -f conftest.$ac_objext conftest$ac_exeext
  23836. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23837. (eval $ac_link) 2>conftest.er1
  23838. ac_status=$?
  23839. grep -v '^ *+' conftest.er1 >conftest.err
  23840. rm -f conftest.er1
  23841. cat conftest.err >&5
  23842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23843. (exit $ac_status); } &&
  23844. { ac_try='test -z "$ac_c_werror_flag"
  23845. || test ! -s conftest.err'
  23846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23847. (eval $ac_try) 2>&5
  23848. ac_status=$?
  23849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23850. (exit $ac_status); }; } &&
  23851. { ac_try='test -s conftest$ac_exeext'
  23852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23853. (eval $ac_try) 2>&5
  23854. ac_status=$?
  23855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23856. (exit $ac_status); }; }; then
  23857. ac_cv_lib_krb5_main=yes
  23858. else
  23859. echo "$as_me: failed program was:" >&5
  23860. sed 's/^/| /' conftest.$ac_ext >&5
  23861. ac_cv_lib_krb5_main=no
  23862. fi
  23863. rm -f conftest.err conftest.$ac_objext \
  23864. conftest$ac_exeext conftest.$ac_ext
  23865. LIBS=$ac_check_lib_save_LIBS
  23866. fi
  23867. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23868. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23869. if test $ac_cv_lib_krb5_main = yes; then
  23870. have_krb5=yes
  23871. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  23872. else
  23873. have_krb5=no
  23874. fi
  23875. cat >>confdefs.h <<\_ACEOF
  23876. #define HAVE_HEIMDAL_KERBEROS 1
  23877. _ACEOF
  23878. else
  23879. have_krb5=no
  23880. { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  23881. echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  23882. fi
  23883. # reset to original values
  23884. CPPFLAGS="$save_CPPFLAGS"
  23885. LDFLAGS="$save_LDFLAGS"
  23886. if test -n "$kerberos_incdir" ; then
  23887. kerberos_inc="-I$kerberos_incdir"
  23888. fi
  23889. if test -n "$kerberos_libdir" ; then
  23890. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  23891. fi
  23892. fi
  23893. if test -n "$with_kerberos" ; then
  23894. if test "x$have_krb5" = "xyes" ; then
  23895. cat >>confdefs.h <<\_ACEOF
  23896. #define HAVE_KRB5 1
  23897. _ACEOF
  23898. else
  23899. { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  23900. echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  23901. { (exit 1); exit 1; }; }
  23902. fi
  23903. save_LIBS="$LIBS"
  23904. LIBS="$kerberos_lib"
  23905. save_CPPFLAGS="$CPPFLAGS"
  23906. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  23907. for ac_func in krb5_cc_new_unique
  23908. do
  23909. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23910. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23911. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23912. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23913. echo $ECHO_N "(cached) $ECHO_C" >&6
  23914. else
  23915. cat >conftest.$ac_ext <<_ACEOF
  23916. /* confdefs.h. */
  23917. _ACEOF
  23918. cat confdefs.h >>conftest.$ac_ext
  23919. cat >>conftest.$ac_ext <<_ACEOF
  23920. /* end confdefs.h. */
  23921. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23922. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23923. #define $ac_func innocuous_$ac_func
  23924. /* System header to define __stub macros and hopefully few prototypes,
  23925. which can conflict with char $ac_func (); below.
  23926. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23927. <limits.h> exists even on freestanding compilers. */
  23928. #ifdef __STDC__
  23929. # include <limits.h>
  23930. #else
  23931. # include <assert.h>
  23932. #endif
  23933. #undef $ac_func
  23934. /* Override any gcc2 internal prototype to avoid an error. */
  23935. #ifdef __cplusplus
  23936. extern "C"
  23937. {
  23938. #endif
  23939. /* We use char because int might match the return type of a gcc2
  23940. builtin and then its argument prototype would still apply. */
  23941. char $ac_func ();
  23942. /* The GNU C library defines this for functions which it implements
  23943. to always fail with ENOSYS. Some functions are actually named
  23944. something starting with __ and the normal name is an alias. */
  23945. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23946. choke me
  23947. #else
  23948. char (*f) () = $ac_func;
  23949. #endif
  23950. #ifdef __cplusplus
  23951. }
  23952. #endif
  23953. int
  23954. main ()
  23955. {
  23956. return f != $ac_func;
  23957. ;
  23958. return 0;
  23959. }
  23960. _ACEOF
  23961. rm -f conftest.$ac_objext conftest$ac_exeext
  23962. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23963. (eval $ac_link) 2>conftest.er1
  23964. ac_status=$?
  23965. grep -v '^ *+' conftest.er1 >conftest.err
  23966. rm -f conftest.er1
  23967. cat conftest.err >&5
  23968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23969. (exit $ac_status); } &&
  23970. { ac_try='test -z "$ac_c_werror_flag"
  23971. || test ! -s conftest.err'
  23972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23973. (eval $ac_try) 2>&5
  23974. ac_status=$?
  23975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23976. (exit $ac_status); }; } &&
  23977. { ac_try='test -s conftest$ac_exeext'
  23978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23979. (eval $ac_try) 2>&5
  23980. ac_status=$?
  23981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23982. (exit $ac_status); }; }; then
  23983. eval "$as_ac_var=yes"
  23984. else
  23985. echo "$as_me: failed program was:" >&5
  23986. sed 's/^/| /' conftest.$ac_ext >&5
  23987. eval "$as_ac_var=no"
  23988. fi
  23989. rm -f conftest.err conftest.$ac_objext \
  23990. conftest$ac_exeext conftest.$ac_ext
  23991. fi
  23992. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23993. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23994. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23995. cat >>confdefs.h <<_ACEOF
  23996. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23997. _ACEOF
  23998. fi
  23999. done
  24000. LIBS="$save_LIBS"
  24001. CPPFLAGS="$save_CPPFLAGS"
  24002. fi
  24003. # BEGIN COPYRIGHT BLOCK
  24004. # Copyright (C) 2007 Red Hat, Inc.
  24005. # All rights reserved.
  24006. #
  24007. # This program is free software; you can redistribute it and/or
  24008. # modify it under the terms of the GNU General Public License
  24009. # as published by the Free Software Foundation; either version 2
  24010. # of the License, or (at your option) any later version.
  24011. #
  24012. # This program is distributed in the hope that it will be useful,
  24013. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24014. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24015. # GNU General Public License for more details.
  24016. #
  24017. # You should have received a copy of the GNU General Public License
  24018. # along with this program; if not, write to the Free Software
  24019. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24020. #
  24021. # END COPYRIGHT BLOCK
  24022. { echo "$as_me:$LINENO: checking for pcre..." >&5
  24023. echo "$as_me: checking for pcre..." >&6;}
  24024. echo "$as_me:$LINENO: checking for --with-pcre" >&5
  24025. echo $ECHO_N "checking for --with-pcre... $ECHO_C" >&6
  24026. # Check whether --with-pcre or --without-pcre was given.
  24027. if test "${with_pcre+set}" = set; then
  24028. withval="$with_pcre"
  24029. if test "$withval" = "yes"; then
  24030. echo "$as_me:$LINENO: result: yes" >&5
  24031. echo "${ECHO_T}yes" >&6
  24032. if test -f "/usr/include/pcre.h"; then
  24033. pcre_incdir="/usr/include"
  24034. pcre_inc="-I/usr/include"
  24035. pcre_lib='-L$(libdir)'
  24036. pcre_libdir='$(libdir)'
  24037. else
  24038. { { echo "$as_me:$LINENO: error: pcre.h not found" >&5
  24039. echo "$as_me: error: pcre.h not found" >&2;}
  24040. { (exit 1); exit 1; }; }
  24041. fi
  24042. elif test -d "$withval"/include -a -d "$withval"/lib; then
  24043. echo "$as_me:$LINENO: result: using $withval" >&5
  24044. echo "${ECHO_T}using $withval" >&6
  24045. PCREDIR=$withval
  24046. pcre_lib="-L$PCREDIR/lib"
  24047. pcre_libdir="$PCREDIR/lib"
  24048. pcre_incdir="$PCREDIR/include"
  24049. if ! test -e "$pcre_incdir/pcre.h" ; then
  24050. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  24051. echo "$as_me: error: $withval include dir not found" >&2;}
  24052. { (exit 1); exit 1; }; }
  24053. fi
  24054. pcre_inc="-I$pcre_incdir"
  24055. else
  24056. echo
  24057. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  24058. echo "$as_me: error: $withval not found" >&2;}
  24059. { (exit 1); exit 1; }; }
  24060. fi
  24061. else
  24062. echo "$as_me:$LINENO: result: no" >&5
  24063. echo "${ECHO_T}no" >&6
  24064. fi;
  24065. #
  24066. # if PCRE is not found yet, try pkg-config
  24067. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  24068. # Extract the first word of "pkg-config", so it can be a program name with args.
  24069. set dummy pkg-config; ac_word=$2
  24070. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24072. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  24073. echo $ECHO_N "(cached) $ECHO_C" >&6
  24074. else
  24075. case $PKG_CONFIG in
  24076. [\\/]* | ?:[\\/]*)
  24077. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  24078. ;;
  24079. *)
  24080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24081. for as_dir in $PATH
  24082. do
  24083. IFS=$as_save_IFS
  24084. test -z "$as_dir" && as_dir=.
  24085. for ac_exec_ext in '' $ac_executable_extensions; do
  24086. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24087. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24088. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24089. break 2
  24090. fi
  24091. done
  24092. done
  24093. ;;
  24094. esac
  24095. fi
  24096. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  24097. if test -n "$PKG_CONFIG"; then
  24098. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  24099. echo "${ECHO_T}$PKG_CONFIG" >&6
  24100. else
  24101. echo "$as_me:$LINENO: result: no" >&5
  24102. echo "${ECHO_T}no" >&6
  24103. fi
  24104. echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  24105. echo $ECHO_N "checking for pcre with pkg-config... $ECHO_C" >&6
  24106. if test -n "$PKG_CONFIG"; then
  24107. if $PKG_CONFIG --exists pcre; then
  24108. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  24109. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  24110. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  24111. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24112. echo "${ECHO_T}using system PCRE" >&6
  24113. elif $PKG_CONFIG --exists libpcre; then
  24114. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  24115. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  24116. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  24117. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24118. echo "${ECHO_T}using system PCRE" >&6
  24119. else
  24120. { { echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  24121. echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  24122. { (exit 1); exit 1; }; }
  24123. fi
  24124. fi
  24125. fi
  24126. if test -z "$pcre_inc"; then
  24127. echo "$as_me:$LINENO: checking for pcre.h" >&5
  24128. echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
  24129. if test -f "/usr/include/pcre.h"; then
  24130. echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  24131. echo "${ECHO_T}using /usr/include/pcre.h" >&6
  24132. pcre_incdir="/usr/include"
  24133. pcre_inc="-I/usr/include"
  24134. pcre_lib='-L$(libdir)'
  24135. pcre_libdir='$(libdir)'
  24136. else
  24137. echo "$as_me:$LINENO: result: no" >&5
  24138. echo "${ECHO_T}no" >&6
  24139. { { echo "$as_me:$LINENO: error: pcre not found, specify with --with-pcre." >&5
  24140. echo "$as_me: error: pcre not found, specify with --with-pcre." >&2;}
  24141. { (exit 1); exit 1; }; }
  24142. fi
  24143. fi
  24144. # BEGIN COPYRIGHT BLOCK
  24145. # Copyright (C) 2009 Red Hat, Inc.
  24146. # All rights reserved.
  24147. #
  24148. # This program is free software; you can redistribute it and/or
  24149. # modify it under the terms of the GNU General Public License
  24150. # as published by the Free Software Foundation; either version 2
  24151. # of the License, or (at your option) any later version.
  24152. #
  24153. # This program is distributed in the hope that it will be useful,
  24154. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24155. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24156. # GNU General Public License for more details.
  24157. #
  24158. # You should have received a copy of the GNU General Public License
  24159. # along with this program; if not, write to the Free Software
  24160. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24161. #
  24162. # END COPYRIGHT BLOCK
  24163. { echo "$as_me:$LINENO: checking for SELinux..." >&5
  24164. echo "$as_me: checking for SELinux..." >&6;}
  24165. # check for --with-selinux
  24166. echo "$as_me:$LINENO: checking for --with-selinux" >&5
  24167. echo $ECHO_N "checking for --with-selinux... $ECHO_C" >&6
  24168. # Check whether --with-selinux or --without-selinux was given.
  24169. if test "${with_selinux+set}" = set; then
  24170. withval="$with_selinux"
  24171. with_selinux=yes
  24172. echo "$as_me:$LINENO: result: yes" >&5
  24173. echo "${ECHO_T}yes" >&6
  24174. if test ! -f "/usr/share/selinux/devel/Makefile"; then
  24175. { { echo "$as_me:$LINENO: error: SELinux development tools (selinux-policy) not found" >&5
  24176. echo "$as_me: error: SELinux development tools (selinux-policy) not found" >&2;}
  24177. { (exit 1); exit 1; }; }
  24178. fi
  24179. else
  24180. echo "$as_me:$LINENO: result: no" >&5
  24181. echo "${ECHO_T}no" >&6
  24182. fi;
  24183. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  24184. # set sasl_path for wrapper scripts
  24185. if test -z "$sasl_libdir" ; then
  24186. sasl_path="$libdir/sasl2"
  24187. else
  24188. sasl_path="$sasl_libdir/sasl2"
  24189. fi
  24190. if test "$with_selinux" = "yes"; then
  24191. SELINUX_TRUE=
  24192. SELINUX_FALSE='#'
  24193. else
  24194. SELINUX_TRUE='#'
  24195. SELINUX_FALSE=
  24196. fi
  24197. if test "$with_openldap" = "yes"; then
  24198. OPENLDAP_TRUE=
  24199. OPENLDAP_FALSE='#'
  24200. else
  24201. OPENLDAP_TRUE='#'
  24202. OPENLDAP_FALSE=
  24203. fi
  24204. # write out paths for binary components
  24205. cat >>confdefs.h <<\_ACEOF
  24206. #define LDAP_DEBUG 1
  24207. _ACEOF
  24208. cat >>confdefs.h <<\_ACEOF
  24209. #define LDAP_DONT_USE_SMARTHEAP 1
  24210. _ACEOF
  24211. # libtool on fedora/rhel contains some gcc-isms which cause problems
  24212. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  24213. # we remove them here
  24214. if test "$GCC" != yes ; then
  24215. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  24216. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  24217. cp -p libtool libtool.orig
  24218. cp -p libtool libtool.tmp
  24219. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  24220. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  24221. # perl produced write-only code . . .
  24222. sed -e '/^gcc_dir/ d' \
  24223. -e '/^gcc_ver/ d' \
  24224. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  24225. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  24226. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  24227. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  24228. libtool > libtool.tmp
  24229. cp -p libtool.tmp libtool
  24230. rm -f libtool.tmp
  24231. fi
  24232. ac_config_files="$ac_config_files Makefile"
  24233. cat >confcache <<\_ACEOF
  24234. # This file is a shell script that caches the results of configure
  24235. # tests run on this system so they can be shared between configure
  24236. # scripts and configure runs, see configure's option --config-cache.
  24237. # It is not useful on other systems. If it contains results you don't
  24238. # want to keep, you may remove or edit it.
  24239. #
  24240. # config.status only pays attention to the cache file if you give it
  24241. # the --recheck option to rerun configure.
  24242. #
  24243. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24244. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24245. # following values.
  24246. _ACEOF
  24247. # The following way of writing the cache mishandles newlines in values,
  24248. # but we know of no workaround that is simple, portable, and efficient.
  24249. # So, don't put newlines in cache variables' values.
  24250. # Ultrix sh set writes to stderr and can't be redirected directly,
  24251. # and sets the high bit in the cache file unless we assign to the vars.
  24252. {
  24253. (set) 2>&1 |
  24254. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  24255. *ac_space=\ *)
  24256. # `set' does not quote correctly, so add quotes (double-quote
  24257. # substitution turns \\\\ into \\, and sed turns \\ into \).
  24258. sed -n \
  24259. "s/'/'\\\\''/g;
  24260. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24261. ;;
  24262. *)
  24263. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24264. sed -n \
  24265. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  24266. ;;
  24267. esac;
  24268. } |
  24269. sed '
  24270. t clear
  24271. : clear
  24272. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  24273. t end
  24274. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24275. : end' >>confcache
  24276. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  24277. if test -w $cache_file; then
  24278. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  24279. cat confcache >$cache_file
  24280. else
  24281. echo "not updating unwritable cache $cache_file"
  24282. fi
  24283. fi
  24284. rm -f confcache
  24285. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24286. # Let make expand exec_prefix.
  24287. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24288. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  24289. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  24290. # trailing colons and then remove the whole line if VPATH becomes empty
  24291. # (actually we leave an empty line to preserve line numbers).
  24292. if test "x$srcdir" = x.; then
  24293. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  24294. s/:*\$(srcdir):*/:/;
  24295. s/:*\${srcdir}:*/:/;
  24296. s/:*@srcdir@:*/:/;
  24297. s/^\([^=]*=[ ]*\):*/\1/;
  24298. s/:*$//;
  24299. s/^[^=]*=[ ]*$//;
  24300. }'
  24301. fi
  24302. DEFS=-DHAVE_CONFIG_H
  24303. ac_libobjs=
  24304. ac_ltlibobjs=
  24305. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24306. # 1. Remove the extension, and $U if already installed.
  24307. ac_i=`echo "$ac_i" |
  24308. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  24309. # 2. Add them.
  24310. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  24311. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  24312. done
  24313. LIBOBJS=$ac_libobjs
  24314. LTLIBOBJS=$ac_ltlibobjs
  24315. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  24316. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  24317. Usually this means the macro was only invoked conditionally." >&5
  24318. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  24319. Usually this means the macro was only invoked conditionally." >&2;}
  24320. { (exit 1); exit 1; }; }
  24321. fi
  24322. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  24323. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  24324. Usually this means the macro was only invoked conditionally." >&5
  24325. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  24326. Usually this means the macro was only invoked conditionally." >&2;}
  24327. { (exit 1); exit 1; }; }
  24328. fi
  24329. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  24330. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  24331. Usually this means the macro was only invoked conditionally." >&5
  24332. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  24333. Usually this means the macro was only invoked conditionally." >&2;}
  24334. { (exit 1); exit 1; }; }
  24335. fi
  24336. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  24337. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  24338. Usually this means the macro was only invoked conditionally." >&5
  24339. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  24340. Usually this means the macro was only invoked conditionally." >&2;}
  24341. { (exit 1); exit 1; }; }
  24342. fi
  24343. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  24344. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  24345. Usually this means the macro was only invoked conditionally." >&5
  24346. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  24347. Usually this means the macro was only invoked conditionally." >&2;}
  24348. { (exit 1); exit 1; }; }
  24349. fi
  24350. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  24351. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  24352. Usually this means the macro was only invoked conditionally." >&5
  24353. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  24354. Usually this means the macro was only invoked conditionally." >&2;}
  24355. { (exit 1); exit 1; }; }
  24356. fi
  24357. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  24358. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  24359. Usually this means the macro was only invoked conditionally." >&5
  24360. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  24361. Usually this means the macro was only invoked conditionally." >&2;}
  24362. { (exit 1); exit 1; }; }
  24363. fi
  24364. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  24365. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  24366. Usually this means the macro was only invoked conditionally." >&5
  24367. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  24368. Usually this means the macro was only invoked conditionally." >&2;}
  24369. { (exit 1); exit 1; }; }
  24370. fi
  24371. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  24372. { { echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  24373. Usually this means the macro was only invoked conditionally." >&5
  24374. echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  24375. Usually this means the macro was only invoked conditionally." >&2;}
  24376. { (exit 1); exit 1; }; }
  24377. fi
  24378. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  24379. { { echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24380. Usually this means the macro was only invoked conditionally." >&5
  24381. echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24382. Usually this means the macro was only invoked conditionally." >&2;}
  24383. { (exit 1); exit 1; }; }
  24384. fi
  24385. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  24386. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  24387. Usually this means the macro was only invoked conditionally." >&5
  24388. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  24389. Usually this means the macro was only invoked conditionally." >&2;}
  24390. { (exit 1); exit 1; }; }
  24391. fi
  24392. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  24393. { { echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  24394. Usually this means the macro was only invoked conditionally." >&5
  24395. echo "$as_me: error: conditional \"enable_presence\" was never defined.
  24396. Usually this means the macro was only invoked conditionally." >&2;}
  24397. { (exit 1); exit 1; }; }
  24398. fi
  24399. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  24400. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  24401. Usually this means the macro was only invoked conditionally." >&5
  24402. echo "$as_me: error: conditional \"WINNT\" was never defined.
  24403. Usually this means the macro was only invoked conditionally." >&2;}
  24404. { (exit 1); exit 1; }; }
  24405. fi
  24406. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  24407. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  24408. Usually this means the macro was only invoked conditionally." >&5
  24409. echo "$as_me: error: conditional \"HPUX\" was never defined.
  24410. Usually this means the macro was only invoked conditionally." >&2;}
  24411. { (exit 1); exit 1; }; }
  24412. fi
  24413. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  24414. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  24415. Usually this means the macro was only invoked conditionally." >&5
  24416. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  24417. Usually this means the macro was only invoked conditionally." >&2;}
  24418. { (exit 1); exit 1; }; }
  24419. fi
  24420. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  24421. { { echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  24422. Usually this means the macro was only invoked conditionally." >&5
  24423. echo "$as_me: error: conditional \"SELINUX\" was never defined.
  24424. Usually this means the macro was only invoked conditionally." >&2;}
  24425. { (exit 1); exit 1; }; }
  24426. fi
  24427. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  24428. { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  24429. Usually this means the macro was only invoked conditionally." >&5
  24430. echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  24431. Usually this means the macro was only invoked conditionally." >&2;}
  24432. { (exit 1); exit 1; }; }
  24433. fi
  24434. : ${CONFIG_STATUS=./config.status}
  24435. ac_clean_files_save=$ac_clean_files
  24436. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24437. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  24438. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  24439. cat >$CONFIG_STATUS <<_ACEOF
  24440. #! $SHELL
  24441. # Generated by $as_me.
  24442. # Run this file to recreate the current configuration.
  24443. # Compiler output produced by configure, useful for debugging
  24444. # configure, is in config.log if it exists.
  24445. debug=false
  24446. ac_cs_recheck=false
  24447. ac_cs_silent=false
  24448. SHELL=\${CONFIG_SHELL-$SHELL}
  24449. _ACEOF
  24450. cat >>$CONFIG_STATUS <<\_ACEOF
  24451. ## --------------------- ##
  24452. ## M4sh Initialization. ##
  24453. ## --------------------- ##
  24454. # Be Bourne compatible
  24455. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  24456. emulate sh
  24457. NULLCMD=:
  24458. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24459. # is contrary to our usage. Disable this feature.
  24460. alias -g '${1+"$@"}'='"$@"'
  24461. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24462. set -o posix
  24463. fi
  24464. DUALCASE=1; export DUALCASE # for MKS sh
  24465. # Support unset when possible.
  24466. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24467. as_unset=unset
  24468. else
  24469. as_unset=false
  24470. fi
  24471. # Work around bugs in pre-3.0 UWIN ksh.
  24472. $as_unset ENV MAIL MAILPATH
  24473. PS1='$ '
  24474. PS2='> '
  24475. PS4='+ '
  24476. # NLS nuisances.
  24477. for as_var in \
  24478. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  24479. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  24480. LC_TELEPHONE LC_TIME
  24481. do
  24482. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  24483. eval $as_var=C; export $as_var
  24484. else
  24485. $as_unset $as_var
  24486. fi
  24487. done
  24488. # Required to use basename.
  24489. if expr a : '\(a\)' >/dev/null 2>&1; then
  24490. as_expr=expr
  24491. else
  24492. as_expr=false
  24493. fi
  24494. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  24495. as_basename=basename
  24496. else
  24497. as_basename=false
  24498. fi
  24499. # Name of the executable.
  24500. as_me=`$as_basename "$0" ||
  24501. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24502. X"$0" : 'X\(//\)$' \| \
  24503. X"$0" : 'X\(/\)$' \| \
  24504. . : '\(.\)' 2>/dev/null ||
  24505. echo X/"$0" |
  24506. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  24507. /^X\/\(\/\/\)$/{ s//\1/; q; }
  24508. /^X\/\(\/\).*/{ s//\1/; q; }
  24509. s/.*/./; q'`
  24510. # PATH needs CR, and LINENO needs CR and PATH.
  24511. # Avoid depending upon Character Ranges.
  24512. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24513. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24514. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24515. as_cr_digits='0123456789'
  24516. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24517. # The user is always right.
  24518. if test "${PATH_SEPARATOR+set}" != set; then
  24519. echo "#! /bin/sh" >conf$$.sh
  24520. echo "exit 0" >>conf$$.sh
  24521. chmod +x conf$$.sh
  24522. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24523. PATH_SEPARATOR=';'
  24524. else
  24525. PATH_SEPARATOR=:
  24526. fi
  24527. rm -f conf$$.sh
  24528. fi
  24529. as_lineno_1=$LINENO
  24530. as_lineno_2=$LINENO
  24531. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24532. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24533. test "x$as_lineno_3" = "x$as_lineno_2" || {
  24534. # Find who we are. Look in the path if we contain no path at all
  24535. # relative or not.
  24536. case $0 in
  24537. *[\\/]* ) as_myself=$0 ;;
  24538. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24539. for as_dir in $PATH
  24540. do
  24541. IFS=$as_save_IFS
  24542. test -z "$as_dir" && as_dir=.
  24543. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  24544. done
  24545. ;;
  24546. esac
  24547. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24548. # in which case we are not to be found in the path.
  24549. if test "x$as_myself" = x; then
  24550. as_myself=$0
  24551. fi
  24552. if test ! -f "$as_myself"; then
  24553. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  24554. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  24555. { (exit 1); exit 1; }; }
  24556. fi
  24557. case $CONFIG_SHELL in
  24558. '')
  24559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24560. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  24561. do
  24562. IFS=$as_save_IFS
  24563. test -z "$as_dir" && as_dir=.
  24564. for as_base in sh bash ksh sh5; do
  24565. case $as_dir in
  24566. /*)
  24567. if ("$as_dir/$as_base" -c '
  24568. as_lineno_1=$LINENO
  24569. as_lineno_2=$LINENO
  24570. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24571. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24572. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  24573. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  24574. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  24575. CONFIG_SHELL=$as_dir/$as_base
  24576. export CONFIG_SHELL
  24577. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  24578. fi;;
  24579. esac
  24580. done
  24581. done
  24582. ;;
  24583. esac
  24584. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  24585. # uniformly replaced by the line number. The first 'sed' inserts a
  24586. # line-number line before each line; the second 'sed' does the real
  24587. # work. The second script uses 'N' to pair each line-number line
  24588. # with the numbered line, and appends trailing '-' during
  24589. # substitution so that $LINENO is not a special case at line end.
  24590. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  24591. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  24592. sed '=' <$as_myself |
  24593. sed '
  24594. N
  24595. s,$,-,
  24596. : loop
  24597. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  24598. t loop
  24599. s,-$,,
  24600. s,^['$as_cr_digits']*\n,,
  24601. ' >$as_me.lineno &&
  24602. chmod +x $as_me.lineno ||
  24603. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  24604. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  24605. { (exit 1); exit 1; }; }
  24606. # Don't try to exec as it changes $[0], causing all sort of problems
  24607. # (the dirname of $[0] is not the place where we might find the
  24608. # original and so on. Autoconf is especially sensible to this).
  24609. . ./$as_me.lineno
  24610. # Exit status is that of the last command.
  24611. exit
  24612. }
  24613. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  24614. *c*,-n*) ECHO_N= ECHO_C='
  24615. ' ECHO_T=' ' ;;
  24616. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  24617. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  24618. esac
  24619. if expr a : '\(a\)' >/dev/null 2>&1; then
  24620. as_expr=expr
  24621. else
  24622. as_expr=false
  24623. fi
  24624. rm -f conf$$ conf$$.exe conf$$.file
  24625. echo >conf$$.file
  24626. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24627. # We could just check for DJGPP; but this test a) works b) is more generic
  24628. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  24629. if test -f conf$$.exe; then
  24630. # Don't use ln at all; we don't have any links
  24631. as_ln_s='cp -p'
  24632. else
  24633. as_ln_s='ln -s'
  24634. fi
  24635. elif ln conf$$.file conf$$ 2>/dev/null; then
  24636. as_ln_s=ln
  24637. else
  24638. as_ln_s='cp -p'
  24639. fi
  24640. rm -f conf$$ conf$$.exe conf$$.file
  24641. if mkdir -p . 2>/dev/null; then
  24642. as_mkdir_p=:
  24643. else
  24644. test -d ./-p && rmdir ./-p
  24645. as_mkdir_p=false
  24646. fi
  24647. as_executable_p="test -f"
  24648. # Sed expression to map a string onto a valid CPP name.
  24649. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24650. # Sed expression to map a string onto a valid variable name.
  24651. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24652. # IFS
  24653. # We need space, tab and new line, in precisely that order.
  24654. as_nl='
  24655. '
  24656. IFS=" $as_nl"
  24657. # CDPATH.
  24658. $as_unset CDPATH
  24659. exec 6>&1
  24660. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  24661. # report actual input values of CONFIG_FILES etc. instead of their
  24662. # values after options handling. Logging --version etc. is OK.
  24663. exec 5>>config.log
  24664. {
  24665. echo
  24666. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24667. ## Running $as_me. ##
  24668. _ASBOX
  24669. } >&5
  24670. cat >&5 <<_CSEOF
  24671. This file was extended by dirsrv $as_me 1.0, which was
  24672. generated by GNU Autoconf 2.59. Invocation command line was
  24673. CONFIG_FILES = $CONFIG_FILES
  24674. CONFIG_HEADERS = $CONFIG_HEADERS
  24675. CONFIG_LINKS = $CONFIG_LINKS
  24676. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24677. $ $0 $@
  24678. _CSEOF
  24679. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  24680. echo >&5
  24681. _ACEOF
  24682. # Files that config.status was made for.
  24683. if test -n "$ac_config_files"; then
  24684. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  24685. fi
  24686. if test -n "$ac_config_headers"; then
  24687. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  24688. fi
  24689. if test -n "$ac_config_links"; then
  24690. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  24691. fi
  24692. if test -n "$ac_config_commands"; then
  24693. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  24694. fi
  24695. cat >>$CONFIG_STATUS <<\_ACEOF
  24696. ac_cs_usage="\
  24697. \`$as_me' instantiates files from templates according to the
  24698. current configuration.
  24699. Usage: $0 [OPTIONS] [FILE]...
  24700. -h, --help print this help, then exit
  24701. -V, --version print version number, then exit
  24702. -q, --quiet do not print progress messages
  24703. -d, --debug don't remove temporary files
  24704. --recheck update $as_me by reconfiguring in the same conditions
  24705. --file=FILE[:TEMPLATE]
  24706. instantiate the configuration file FILE
  24707. --header=FILE[:TEMPLATE]
  24708. instantiate the configuration header FILE
  24709. Configuration files:
  24710. $config_files
  24711. Configuration headers:
  24712. $config_headers
  24713. Configuration commands:
  24714. $config_commands
  24715. Report bugs to <[email protected]>."
  24716. _ACEOF
  24717. cat >>$CONFIG_STATUS <<_ACEOF
  24718. ac_cs_version="\\
  24719. dirsrv config.status 1.0
  24720. configured by $0, generated by GNU Autoconf 2.59,
  24721. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  24722. Copyright (C) 2003 Free Software Foundation, Inc.
  24723. This config.status script is free software; the Free Software Foundation
  24724. gives unlimited permission to copy, distribute and modify it."
  24725. srcdir=$srcdir
  24726. INSTALL="$INSTALL"
  24727. _ACEOF
  24728. cat >>$CONFIG_STATUS <<\_ACEOF
  24729. # If no file are specified by the user, then we need to provide default
  24730. # value. By we need to know if files were specified by the user.
  24731. ac_need_defaults=:
  24732. while test $# != 0
  24733. do
  24734. case $1 in
  24735. --*=*)
  24736. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  24737. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  24738. ac_shift=:
  24739. ;;
  24740. -*)
  24741. ac_option=$1
  24742. ac_optarg=$2
  24743. ac_shift=shift
  24744. ;;
  24745. *) # This is not an option, so the user has probably given explicit
  24746. # arguments.
  24747. ac_option=$1
  24748. ac_need_defaults=false;;
  24749. esac
  24750. case $ac_option in
  24751. # Handling of the options.
  24752. _ACEOF
  24753. cat >>$CONFIG_STATUS <<\_ACEOF
  24754. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24755. ac_cs_recheck=: ;;
  24756. --version | --vers* | -V )
  24757. echo "$ac_cs_version"; exit 0 ;;
  24758. --he | --h)
  24759. # Conflict between --help and --header
  24760. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  24761. Try \`$0 --help' for more information." >&5
  24762. echo "$as_me: error: ambiguous option: $1
  24763. Try \`$0 --help' for more information." >&2;}
  24764. { (exit 1); exit 1; }; };;
  24765. --help | --hel | -h )
  24766. echo "$ac_cs_usage"; exit 0 ;;
  24767. --debug | --d* | -d )
  24768. debug=: ;;
  24769. --file | --fil | --fi | --f )
  24770. $ac_shift
  24771. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  24772. ac_need_defaults=false;;
  24773. --header | --heade | --head | --hea )
  24774. $ac_shift
  24775. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  24776. ac_need_defaults=false;;
  24777. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24778. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24779. ac_cs_silent=: ;;
  24780. # This is an error.
  24781. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  24782. Try \`$0 --help' for more information." >&5
  24783. echo "$as_me: error: unrecognized option: $1
  24784. Try \`$0 --help' for more information." >&2;}
  24785. { (exit 1); exit 1; }; } ;;
  24786. *) ac_config_targets="$ac_config_targets $1" ;;
  24787. esac
  24788. shift
  24789. done
  24790. ac_configure_extra_args=
  24791. if $ac_cs_silent; then
  24792. exec 6>/dev/null
  24793. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24794. fi
  24795. _ACEOF
  24796. cat >>$CONFIG_STATUS <<_ACEOF
  24797. if \$ac_cs_recheck; then
  24798. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  24799. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24800. fi
  24801. _ACEOF
  24802. cat >>$CONFIG_STATUS <<_ACEOF
  24803. #
  24804. # INIT-COMMANDS section.
  24805. #
  24806. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24807. _ACEOF
  24808. cat >>$CONFIG_STATUS <<\_ACEOF
  24809. for ac_config_target in $ac_config_targets
  24810. do
  24811. case "$ac_config_target" in
  24812. # Handling of arguments.
  24813. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24814. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24815. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24816. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24817. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24818. { (exit 1); exit 1; }; };;
  24819. esac
  24820. done
  24821. # If the user did not use the arguments to specify the items to instantiate,
  24822. # then the envvar interface is used. Set only those that are not.
  24823. # We use the long form for the default assignment because of an extremely
  24824. # bizarre bug on SunOS 4.1.3.
  24825. if $ac_need_defaults; then
  24826. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24827. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24828. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24829. fi
  24830. # Have a temporary directory for convenience. Make it in the build tree
  24831. # simply because there is no reason to put it here, and in addition,
  24832. # creating and moving files from /tmp can sometimes cause problems.
  24833. # Create a temporary directory, and hook for its removal unless debugging.
  24834. $debug ||
  24835. {
  24836. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  24837. trap '{ (exit 1); exit 1; }' 1 2 13 15
  24838. }
  24839. # Create a (secure) tmp directory for tmp files.
  24840. {
  24841. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  24842. test -n "$tmp" && test -d "$tmp"
  24843. } ||
  24844. {
  24845. tmp=./confstat$$-$RANDOM
  24846. (umask 077 && mkdir $tmp)
  24847. } ||
  24848. {
  24849. echo "$me: cannot create a temporary directory in ." >&2
  24850. { (exit 1); exit 1; }
  24851. }
  24852. _ACEOF
  24853. cat >>$CONFIG_STATUS <<_ACEOF
  24854. #
  24855. # CONFIG_FILES section.
  24856. #
  24857. # No need to generate the scripts if there are no CONFIG_FILES.
  24858. # This happens for instance when ./config.status config.h
  24859. if test -n "\$CONFIG_FILES"; then
  24860. # Protect against being on the right side of a sed subst in config.status.
  24861. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  24862. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  24863. s,@SHELL@,$SHELL,;t t
  24864. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  24865. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  24866. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  24867. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  24868. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  24869. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  24870. s,@exec_prefix@,$exec_prefix,;t t
  24871. s,@prefix@,$prefix,;t t
  24872. s,@program_transform_name@,$program_transform_name,;t t
  24873. s,@bindir@,$bindir,;t t
  24874. s,@sbindir@,$sbindir,;t t
  24875. s,@libexecdir@,$libexecdir,;t t
  24876. s,@datadir@,$datadir,;t t
  24877. s,@sysconfdir@,$sysconfdir,;t t
  24878. s,@sharedstatedir@,$sharedstatedir,;t t
  24879. s,@localstatedir@,$localstatedir,;t t
  24880. s,@libdir@,$libdir,;t t
  24881. s,@includedir@,$includedir,;t t
  24882. s,@oldincludedir@,$oldincludedir,;t t
  24883. s,@infodir@,$infodir,;t t
  24884. s,@mandir@,$mandir,;t t
  24885. s,@build_alias@,$build_alias,;t t
  24886. s,@host_alias@,$host_alias,;t t
  24887. s,@target_alias@,$target_alias,;t t
  24888. s,@DEFS@,$DEFS,;t t
  24889. s,@ECHO_C@,$ECHO_C,;t t
  24890. s,@ECHO_N@,$ECHO_N,;t t
  24891. s,@ECHO_T@,$ECHO_T,;t t
  24892. s,@LIBS@,$LIBS,;t t
  24893. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  24894. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  24895. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  24896. s,@CYGPATH_W@,$CYGPATH_W,;t t
  24897. s,@PACKAGE@,$PACKAGE,;t t
  24898. s,@VERSION@,$VERSION,;t t
  24899. s,@ACLOCAL@,$ACLOCAL,;t t
  24900. s,@AUTOCONF@,$AUTOCONF,;t t
  24901. s,@AUTOMAKE@,$AUTOMAKE,;t t
  24902. s,@AUTOHEADER@,$AUTOHEADER,;t t
  24903. s,@MAKEINFO@,$MAKEINFO,;t t
  24904. s,@install_sh@,$install_sh,;t t
  24905. s,@STRIP@,$STRIP,;t t
  24906. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  24907. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  24908. s,@mkdir_p@,$mkdir_p,;t t
  24909. s,@AWK@,$AWK,;t t
  24910. s,@SET_MAKE@,$SET_MAKE,;t t
  24911. s,@am__leading_dot@,$am__leading_dot,;t t
  24912. s,@AMTAR@,$AMTAR,;t t
  24913. s,@am__tar@,$am__tar,;t t
  24914. s,@am__untar@,$am__untar,;t t
  24915. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  24916. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  24917. s,@MAINT@,$MAINT,;t t
  24918. s,@build@,$build,;t t
  24919. s,@build_cpu@,$build_cpu,;t t
  24920. s,@build_vendor@,$build_vendor,;t t
  24921. s,@build_os@,$build_os,;t t
  24922. s,@host@,$host,;t t
  24923. s,@host_cpu@,$host_cpu,;t t
  24924. s,@host_vendor@,$host_vendor,;t t
  24925. s,@host_os@,$host_os,;t t
  24926. s,@CXX@,$CXX,;t t
  24927. s,@CXXFLAGS@,$CXXFLAGS,;t t
  24928. s,@LDFLAGS@,$LDFLAGS,;t t
  24929. s,@CPPFLAGS@,$CPPFLAGS,;t t
  24930. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  24931. s,@EXEEXT@,$EXEEXT,;t t
  24932. s,@OBJEXT@,$OBJEXT,;t t
  24933. s,@DEPDIR@,$DEPDIR,;t t
  24934. s,@am__include@,$am__include,;t t
  24935. s,@am__quote@,$am__quote,;t t
  24936. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  24937. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  24938. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  24939. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  24940. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  24941. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  24942. s,@CC@,$CC,;t t
  24943. s,@CFLAGS@,$CFLAGS,;t t
  24944. s,@ac_ct_CC@,$ac_ct_CC,;t t
  24945. s,@CCDEPMODE@,$CCDEPMODE,;t t
  24946. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  24947. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  24948. s,@CCAS@,$CCAS,;t t
  24949. s,@CCASFLAGS@,$CCASFLAGS,;t t
  24950. s,@SED@,$SED,;t t
  24951. s,@EGREP@,$EGREP,;t t
  24952. s,@LN_S@,$LN_S,;t t
  24953. s,@ECHO@,$ECHO,;t t
  24954. s,@AR@,$AR,;t t
  24955. s,@ac_ct_AR@,$ac_ct_AR,;t t
  24956. s,@RANLIB@,$RANLIB,;t t
  24957. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  24958. s,@CPP@,$CPP,;t t
  24959. s,@CXXCPP@,$CXXCPP,;t t
  24960. s,@F77@,$F77,;t t
  24961. s,@FFLAGS@,$FFLAGS,;t t
  24962. s,@ac_ct_F77@,$ac_ct_F77,;t t
  24963. s,@LIBTOOL@,$LIBTOOL,;t t
  24964. s,@LIBOBJS@,$LIBOBJS,;t t
  24965. s,@debug_defs@,$debug_defs,;t t
  24966. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  24967. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  24968. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  24969. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  24970. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  24971. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  24972. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  24973. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  24974. s,@enable_autobind_TRUE@,$enable_autobind_TRUE,;t t
  24975. s,@enable_autobind_FALSE@,$enable_autobind_FALSE,;t t
  24976. s,@enable_auto_dn_suffix_TRUE@,$enable_auto_dn_suffix_TRUE,;t t
  24977. s,@enable_auto_dn_suffix_FALSE@,$enable_auto_dn_suffix_FALSE,;t t
  24978. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  24979. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  24980. s,@enable_presence_TRUE@,$enable_presence_TRUE,;t t
  24981. s,@enable_presence_FALSE@,$enable_presence_FALSE,;t t
  24982. s,@with_fhs_opt@,$with_fhs_opt,;t t
  24983. s,@configdir@,$configdir,;t t
  24984. s,@sampledatadir@,$sampledatadir,;t t
  24985. s,@propertydir@,$propertydir,;t t
  24986. s,@schemadir@,$schemadir,;t t
  24987. s,@serverdir@,$serverdir,;t t
  24988. s,@serverplugindir@,$serverplugindir,;t t
  24989. s,@scripttemplatedir@,$scripttemplatedir,;t t
  24990. s,@perldir@,$perldir,;t t
  24991. s,@infdir@,$infdir,;t t
  24992. s,@mibdir@,$mibdir,;t t
  24993. s,@updatedir@,$updatedir,;t t
  24994. s,@defaultuser@,$defaultuser,;t t
  24995. s,@defaultgroup@,$defaultgroup,;t t
  24996. s,@instconfigdir@,$instconfigdir,;t t
  24997. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  24998. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  24999. s,@LIBSOCKET@,$LIBSOCKET,;t t
  25000. s,@LIBNSL@,$LIBNSL,;t t
  25001. s,@LIBDL@,$LIBDL,;t t
  25002. s,@LIBCSTD@,$LIBCSTD,;t t
  25003. s,@LIBCRUN@,$LIBCRUN,;t t
  25004. s,@initdir@,$initdir,;t t
  25005. s,@perlexec@,$perlexec,;t t
  25006. s,@initconfigdir@,$initconfigdir,;t t
  25007. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  25008. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  25009. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  25010. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  25011. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  25012. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  25013. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  25014. s,@KRB5_CONFIG_BIN@,$KRB5_CONFIG_BIN,;t t
  25015. s,@kerberos_inc@,$kerberos_inc,;t t
  25016. s,@kerberos_lib@,$kerberos_lib,;t t
  25017. s,@kerberos_libdir@,$kerberos_libdir,;t t
  25018. s,@with_selinux@,$with_selinux,;t t
  25019. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  25020. s,@SELINUX_TRUE@,$SELINUX_TRUE,;t t
  25021. s,@SELINUX_FALSE@,$SELINUX_FALSE,;t t
  25022. s,@OPENLDAP_TRUE@,$OPENLDAP_TRUE,;t t
  25023. s,@OPENLDAP_FALSE@,$OPENLDAP_FALSE,;t t
  25024. s,@nspr_inc@,$nspr_inc,;t t
  25025. s,@nspr_lib@,$nspr_lib,;t t
  25026. s,@nspr_libdir@,$nspr_libdir,;t t
  25027. s,@nss_inc@,$nss_inc,;t t
  25028. s,@nss_lib@,$nss_lib,;t t
  25029. s,@nss_libdir@,$nss_libdir,;t t
  25030. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  25031. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  25032. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  25033. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  25034. s,@openldap_inc@,$openldap_inc,;t t
  25035. s,@openldap_lib@,$openldap_lib,;t t
  25036. s,@openldap_libdir@,$openldap_libdir,;t t
  25037. s,@openldap_bindir@,$openldap_bindir,;t t
  25038. s,@ol_libver@,$ol_libver,;t t
  25039. s,@db_inc@,$db_inc,;t t
  25040. s,@db_incdir@,$db_incdir,;t t
  25041. s,@db_lib@,$db_lib,;t t
  25042. s,@db_libdir@,$db_libdir,;t t
  25043. s,@db_bindir@,$db_bindir,;t t
  25044. s,@db_libver@,$db_libver,;t t
  25045. s,@sasl_inc@,$sasl_inc,;t t
  25046. s,@sasl_lib@,$sasl_lib,;t t
  25047. s,@sasl_libdir@,$sasl_libdir,;t t
  25048. s,@sasl_path@,$sasl_path,;t t
  25049. s,@svrcore_inc@,$svrcore_inc,;t t
  25050. s,@svrcore_lib@,$svrcore_lib,;t t
  25051. s,@icu_lib@,$icu_lib,;t t
  25052. s,@icu_inc@,$icu_inc,;t t
  25053. s,@icu_bin@,$icu_bin,;t t
  25054. s,@netsnmp_inc@,$netsnmp_inc,;t t
  25055. s,@netsnmp_lib@,$netsnmp_lib,;t t
  25056. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  25057. s,@netsnmp_link@,$netsnmp_link,;t t
  25058. s,@pcre_inc@,$pcre_inc,;t t
  25059. s,@pcre_lib@,$pcre_lib,;t t
  25060. s,@pcre_libdir@,$pcre_libdir,;t t
  25061. s,@brand@,$brand,;t t
  25062. s,@capbrand@,$capbrand,;t t
  25063. s,@vendor@,$vendor,;t t
  25064. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  25065. CEOF
  25066. _ACEOF
  25067. cat >>$CONFIG_STATUS <<\_ACEOF
  25068. # Split the substitutions into bite-sized pieces for seds with
  25069. # small command number limits, like on Digital OSF/1 and HP-UX.
  25070. ac_max_sed_lines=48
  25071. ac_sed_frag=1 # Number of current file.
  25072. ac_beg=1 # First line for current file.
  25073. ac_end=$ac_max_sed_lines # Line after last line for current file.
  25074. ac_more_lines=:
  25075. ac_sed_cmds=
  25076. while $ac_more_lines; do
  25077. if test $ac_beg -gt 1; then
  25078. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25079. else
  25080. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25081. fi
  25082. if test ! -s $tmp/subs.frag; then
  25083. ac_more_lines=false
  25084. else
  25085. # The purpose of the label and of the branching condition is to
  25086. # speed up the sed processing (if there are no `@' at all, there
  25087. # is no need to browse any of the substitutions).
  25088. # These are the two extra sed commands mentioned above.
  25089. (echo ':t
  25090. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  25091. if test -z "$ac_sed_cmds"; then
  25092. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  25093. else
  25094. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  25095. fi
  25096. ac_sed_frag=`expr $ac_sed_frag + 1`
  25097. ac_beg=$ac_end
  25098. ac_end=`expr $ac_end + $ac_max_sed_lines`
  25099. fi
  25100. done
  25101. if test -z "$ac_sed_cmds"; then
  25102. ac_sed_cmds=cat
  25103. fi
  25104. fi # test -n "$CONFIG_FILES"
  25105. _ACEOF
  25106. cat >>$CONFIG_STATUS <<\_ACEOF
  25107. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  25108. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25109. case $ac_file in
  25110. - | *:- | *:-:* ) # input from stdin
  25111. cat >$tmp/stdin
  25112. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25113. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25114. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25115. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25116. * ) ac_file_in=$ac_file.in ;;
  25117. esac
  25118. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  25119. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25120. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25121. X"$ac_file" : 'X\(//\)[^/]' \| \
  25122. X"$ac_file" : 'X\(//\)$' \| \
  25123. X"$ac_file" : 'X\(/\)' \| \
  25124. . : '\(.\)' 2>/dev/null ||
  25125. echo X"$ac_file" |
  25126. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25127. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25128. /^X\(\/\/\)$/{ s//\1/; q; }
  25129. /^X\(\/\).*/{ s//\1/; q; }
  25130. s/.*/./; q'`
  25131. { if $as_mkdir_p; then
  25132. mkdir -p "$ac_dir"
  25133. else
  25134. as_dir="$ac_dir"
  25135. as_dirs=
  25136. while test ! -d "$as_dir"; do
  25137. as_dirs="$as_dir $as_dirs"
  25138. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25139. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25140. X"$as_dir" : 'X\(//\)[^/]' \| \
  25141. X"$as_dir" : 'X\(//\)$' \| \
  25142. X"$as_dir" : 'X\(/\)' \| \
  25143. . : '\(.\)' 2>/dev/null ||
  25144. echo X"$as_dir" |
  25145. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25146. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25147. /^X\(\/\/\)$/{ s//\1/; q; }
  25148. /^X\(\/\).*/{ s//\1/; q; }
  25149. s/.*/./; q'`
  25150. done
  25151. test ! -n "$as_dirs" || mkdir $as_dirs
  25152. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25153. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25154. { (exit 1); exit 1; }; }; }
  25155. ac_builddir=.
  25156. if test "$ac_dir" != .; then
  25157. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25158. # A "../" for each directory in $ac_dir_suffix.
  25159. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25160. else
  25161. ac_dir_suffix= ac_top_builddir=
  25162. fi
  25163. case $srcdir in
  25164. .) # No --srcdir option. We are building in place.
  25165. ac_srcdir=.
  25166. if test -z "$ac_top_builddir"; then
  25167. ac_top_srcdir=.
  25168. else
  25169. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25170. fi ;;
  25171. [\\/]* | ?:[\\/]* ) # Absolute path.
  25172. ac_srcdir=$srcdir$ac_dir_suffix;
  25173. ac_top_srcdir=$srcdir ;;
  25174. *) # Relative path.
  25175. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25176. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25177. esac
  25178. # Do not use `cd foo && pwd` to compute absolute paths, because
  25179. # the directories may not exist.
  25180. case `pwd` in
  25181. .) ac_abs_builddir="$ac_dir";;
  25182. *)
  25183. case "$ac_dir" in
  25184. .) ac_abs_builddir=`pwd`;;
  25185. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25186. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25187. esac;;
  25188. esac
  25189. case $ac_abs_builddir in
  25190. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25191. *)
  25192. case ${ac_top_builddir}. in
  25193. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25194. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25195. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25196. esac;;
  25197. esac
  25198. case $ac_abs_builddir in
  25199. .) ac_abs_srcdir=$ac_srcdir;;
  25200. *)
  25201. case $ac_srcdir in
  25202. .) ac_abs_srcdir=$ac_abs_builddir;;
  25203. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25204. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25205. esac;;
  25206. esac
  25207. case $ac_abs_builddir in
  25208. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25209. *)
  25210. case $ac_top_srcdir in
  25211. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25212. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25213. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25214. esac;;
  25215. esac
  25216. case $INSTALL in
  25217. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25218. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  25219. esac
  25220. if test x"$ac_file" != x-; then
  25221. { echo "$as_me:$LINENO: creating $ac_file" >&5
  25222. echo "$as_me: creating $ac_file" >&6;}
  25223. rm -f "$ac_file"
  25224. fi
  25225. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25226. # use $as_me), people would be surprised to read:
  25227. # /* config.h. Generated by config.status. */
  25228. if test x"$ac_file" = x-; then
  25229. configure_input=
  25230. else
  25231. configure_input="$ac_file. "
  25232. fi
  25233. configure_input=$configure_input"Generated from `echo $ac_file_in |
  25234. sed 's,.*/,,'` by configure."
  25235. # First look for the input files in the build tree, otherwise in the
  25236. # src tree.
  25237. ac_file_inputs=`IFS=:
  25238. for f in $ac_file_in; do
  25239. case $f in
  25240. -) echo $tmp/stdin ;;
  25241. [\\/$]*)
  25242. # Absolute (can't be DOS-style, as IFS=:)
  25243. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25244. echo "$as_me: error: cannot find input file: $f" >&2;}
  25245. { (exit 1); exit 1; }; }
  25246. echo "$f";;
  25247. *) # Relative
  25248. if test -f "$f"; then
  25249. # Build tree
  25250. echo "$f"
  25251. elif test -f "$srcdir/$f"; then
  25252. # Source tree
  25253. echo "$srcdir/$f"
  25254. else
  25255. # /dev/null tree
  25256. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25257. echo "$as_me: error: cannot find input file: $f" >&2;}
  25258. { (exit 1); exit 1; }; }
  25259. fi;;
  25260. esac
  25261. done` || { (exit 1); exit 1; }
  25262. _ACEOF
  25263. cat >>$CONFIG_STATUS <<_ACEOF
  25264. sed "$ac_vpsub
  25265. $extrasub
  25266. _ACEOF
  25267. cat >>$CONFIG_STATUS <<\_ACEOF
  25268. :t
  25269. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25270. s,@configure_input@,$configure_input,;t t
  25271. s,@srcdir@,$ac_srcdir,;t t
  25272. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  25273. s,@top_srcdir@,$ac_top_srcdir,;t t
  25274. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  25275. s,@builddir@,$ac_builddir,;t t
  25276. s,@abs_builddir@,$ac_abs_builddir,;t t
  25277. s,@top_builddir@,$ac_top_builddir,;t t
  25278. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  25279. s,@INSTALL@,$ac_INSTALL,;t t
  25280. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  25281. rm -f $tmp/stdin
  25282. if test x"$ac_file" != x-; then
  25283. mv $tmp/out $ac_file
  25284. else
  25285. cat $tmp/out
  25286. rm -f $tmp/out
  25287. fi
  25288. done
  25289. _ACEOF
  25290. cat >>$CONFIG_STATUS <<\_ACEOF
  25291. #
  25292. # CONFIG_HEADER section.
  25293. #
  25294. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  25295. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  25296. #
  25297. # ac_d sets the value in "#define NAME VALUE" lines.
  25298. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  25299. ac_dB='[ ].*$,\1#\2'
  25300. ac_dC=' '
  25301. ac_dD=',;t'
  25302. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  25303. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  25304. ac_uB='$,\1#\2define\3'
  25305. ac_uC=' '
  25306. ac_uD=',;t'
  25307. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  25308. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25309. case $ac_file in
  25310. - | *:- | *:-:* ) # input from stdin
  25311. cat >$tmp/stdin
  25312. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25313. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25314. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25315. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25316. * ) ac_file_in=$ac_file.in ;;
  25317. esac
  25318. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  25319. echo "$as_me: creating $ac_file" >&6;}
  25320. # First look for the input files in the build tree, otherwise in the
  25321. # src tree.
  25322. ac_file_inputs=`IFS=:
  25323. for f in $ac_file_in; do
  25324. case $f in
  25325. -) echo $tmp/stdin ;;
  25326. [\\/$]*)
  25327. # Absolute (can't be DOS-style, as IFS=:)
  25328. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25329. echo "$as_me: error: cannot find input file: $f" >&2;}
  25330. { (exit 1); exit 1; }; }
  25331. # Do quote $f, to prevent DOS paths from being IFS'd.
  25332. echo "$f";;
  25333. *) # Relative
  25334. if test -f "$f"; then
  25335. # Build tree
  25336. echo "$f"
  25337. elif test -f "$srcdir/$f"; then
  25338. # Source tree
  25339. echo "$srcdir/$f"
  25340. else
  25341. # /dev/null tree
  25342. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25343. echo "$as_me: error: cannot find input file: $f" >&2;}
  25344. { (exit 1); exit 1; }; }
  25345. fi;;
  25346. esac
  25347. done` || { (exit 1); exit 1; }
  25348. # Remove the trailing spaces.
  25349. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  25350. _ACEOF
  25351. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  25352. # `conftest.undefs', that substitutes the proper values into
  25353. # config.h.in to produce config.h. The first handles `#define'
  25354. # templates, and the second `#undef' templates.
  25355. # And first: Protect against being on the right side of a sed subst in
  25356. # config.status. Protect against being in an unquoted here document
  25357. # in config.status.
  25358. rm -f conftest.defines conftest.undefs
  25359. # Using a here document instead of a string reduces the quoting nightmare.
  25360. # Putting comments in sed scripts is not portable.
  25361. #
  25362. # `end' is used to avoid that the second main sed command (meant for
  25363. # 0-ary CPP macros) applies to n-ary macro definitions.
  25364. # See the Autoconf documentation for `clear'.
  25365. cat >confdef2sed.sed <<\_ACEOF
  25366. s/[\\&,]/\\&/g
  25367. s,[\\$`],\\&,g
  25368. t clear
  25369. : clear
  25370. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  25371. t end
  25372. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  25373. : end
  25374. _ACEOF
  25375. # If some macros were called several times there might be several times
  25376. # the same #defines, which is useless. Nevertheless, we may not want to
  25377. # sort them, since we want the *last* AC-DEFINE to be honored.
  25378. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  25379. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  25380. rm -f confdef2sed.sed
  25381. # This sed command replaces #undef with comments. This is necessary, for
  25382. # example, in the case of _POSIX_SOURCE, which is predefined and required
  25383. # on some systems where configure will not decide to define it.
  25384. cat >>conftest.undefs <<\_ACEOF
  25385. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  25386. _ACEOF
  25387. # Break up conftest.defines because some shells have a limit on the size
  25388. # of here documents, and old seds have small limits too (100 cmds).
  25389. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  25390. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  25391. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  25392. echo ' :' >>$CONFIG_STATUS
  25393. rm -f conftest.tail
  25394. while grep . conftest.defines >/dev/null
  25395. do
  25396. # Write a limited-size here document to $tmp/defines.sed.
  25397. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  25398. # Speed up: don't consider the non `#define' lines.
  25399. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  25400. # Work around the forget-to-reset-the-flag bug.
  25401. echo 't clr' >>$CONFIG_STATUS
  25402. echo ': clr' >>$CONFIG_STATUS
  25403. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  25404. echo 'CEOF
  25405. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  25406. rm -f $tmp/in
  25407. mv $tmp/out $tmp/in
  25408. ' >>$CONFIG_STATUS
  25409. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  25410. rm -f conftest.defines
  25411. mv conftest.tail conftest.defines
  25412. done
  25413. rm -f conftest.defines
  25414. echo ' fi # grep' >>$CONFIG_STATUS
  25415. echo >>$CONFIG_STATUS
  25416. # Break up conftest.undefs because some shells have a limit on the size
  25417. # of here documents, and old seds have small limits too (100 cmds).
  25418. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  25419. rm -f conftest.tail
  25420. while grep . conftest.undefs >/dev/null
  25421. do
  25422. # Write a limited-size here document to $tmp/undefs.sed.
  25423. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  25424. # Speed up: don't consider the non `#undef'
  25425. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  25426. # Work around the forget-to-reset-the-flag bug.
  25427. echo 't clr' >>$CONFIG_STATUS
  25428. echo ': clr' >>$CONFIG_STATUS
  25429. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  25430. echo 'CEOF
  25431. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  25432. rm -f $tmp/in
  25433. mv $tmp/out $tmp/in
  25434. ' >>$CONFIG_STATUS
  25435. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  25436. rm -f conftest.undefs
  25437. mv conftest.tail conftest.undefs
  25438. done
  25439. rm -f conftest.undefs
  25440. cat >>$CONFIG_STATUS <<\_ACEOF
  25441. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25442. # use $as_me), people would be surprised to read:
  25443. # /* config.h. Generated by config.status. */
  25444. if test x"$ac_file" = x-; then
  25445. echo "/* Generated by configure. */" >$tmp/config.h
  25446. else
  25447. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  25448. fi
  25449. cat $tmp/in >>$tmp/config.h
  25450. rm -f $tmp/in
  25451. if test x"$ac_file" != x-; then
  25452. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  25453. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  25454. echo "$as_me: $ac_file is unchanged" >&6;}
  25455. else
  25456. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25457. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25458. X"$ac_file" : 'X\(//\)[^/]' \| \
  25459. X"$ac_file" : 'X\(//\)$' \| \
  25460. X"$ac_file" : 'X\(/\)' \| \
  25461. . : '\(.\)' 2>/dev/null ||
  25462. echo X"$ac_file" |
  25463. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25464. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25465. /^X\(\/\/\)$/{ s//\1/; q; }
  25466. /^X\(\/\).*/{ s//\1/; q; }
  25467. s/.*/./; q'`
  25468. { if $as_mkdir_p; then
  25469. mkdir -p "$ac_dir"
  25470. else
  25471. as_dir="$ac_dir"
  25472. as_dirs=
  25473. while test ! -d "$as_dir"; do
  25474. as_dirs="$as_dir $as_dirs"
  25475. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25476. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25477. X"$as_dir" : 'X\(//\)[^/]' \| \
  25478. X"$as_dir" : 'X\(//\)$' \| \
  25479. X"$as_dir" : 'X\(/\)' \| \
  25480. . : '\(.\)' 2>/dev/null ||
  25481. echo X"$as_dir" |
  25482. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25483. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25484. /^X\(\/\/\)$/{ s//\1/; q; }
  25485. /^X\(\/\).*/{ s//\1/; q; }
  25486. s/.*/./; q'`
  25487. done
  25488. test ! -n "$as_dirs" || mkdir $as_dirs
  25489. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25490. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25491. { (exit 1); exit 1; }; }; }
  25492. rm -f $ac_file
  25493. mv $tmp/config.h $ac_file
  25494. fi
  25495. else
  25496. cat $tmp/config.h
  25497. rm -f $tmp/config.h
  25498. fi
  25499. # Compute $ac_file's index in $config_headers.
  25500. _am_stamp_count=1
  25501. for _am_header in $config_headers :; do
  25502. case $_am_header in
  25503. $ac_file | $ac_file:* )
  25504. break ;;
  25505. * )
  25506. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25507. esac
  25508. done
  25509. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  25510. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25511. X$ac_file : 'X\(//\)[^/]' \| \
  25512. X$ac_file : 'X\(//\)$' \| \
  25513. X$ac_file : 'X\(/\)' \| \
  25514. . : '\(.\)' 2>/dev/null ||
  25515. echo X$ac_file |
  25516. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25517. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25518. /^X\(\/\/\)$/{ s//\1/; q; }
  25519. /^X\(\/\).*/{ s//\1/; q; }
  25520. s/.*/./; q'`/stamp-h$_am_stamp_count
  25521. done
  25522. _ACEOF
  25523. cat >>$CONFIG_STATUS <<\_ACEOF
  25524. #
  25525. # CONFIG_COMMANDS section.
  25526. #
  25527. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  25528. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  25529. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25530. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  25531. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25532. X"$ac_dest" : 'X\(//\)[^/]' \| \
  25533. X"$ac_dest" : 'X\(//\)$' \| \
  25534. X"$ac_dest" : 'X\(/\)' \| \
  25535. . : '\(.\)' 2>/dev/null ||
  25536. echo X"$ac_dest" |
  25537. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25538. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25539. /^X\(\/\/\)$/{ s//\1/; q; }
  25540. /^X\(\/\).*/{ s//\1/; q; }
  25541. s/.*/./; q'`
  25542. { if $as_mkdir_p; then
  25543. mkdir -p "$ac_dir"
  25544. else
  25545. as_dir="$ac_dir"
  25546. as_dirs=
  25547. while test ! -d "$as_dir"; do
  25548. as_dirs="$as_dir $as_dirs"
  25549. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25550. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25551. X"$as_dir" : 'X\(//\)[^/]' \| \
  25552. X"$as_dir" : 'X\(//\)$' \| \
  25553. X"$as_dir" : 'X\(/\)' \| \
  25554. . : '\(.\)' 2>/dev/null ||
  25555. echo X"$as_dir" |
  25556. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25557. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25558. /^X\(\/\/\)$/{ s//\1/; q; }
  25559. /^X\(\/\).*/{ s//\1/; q; }
  25560. s/.*/./; q'`
  25561. done
  25562. test ! -n "$as_dirs" || mkdir $as_dirs
  25563. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25564. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25565. { (exit 1); exit 1; }; }; }
  25566. ac_builddir=.
  25567. if test "$ac_dir" != .; then
  25568. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25569. # A "../" for each directory in $ac_dir_suffix.
  25570. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25571. else
  25572. ac_dir_suffix= ac_top_builddir=
  25573. fi
  25574. case $srcdir in
  25575. .) # No --srcdir option. We are building in place.
  25576. ac_srcdir=.
  25577. if test -z "$ac_top_builddir"; then
  25578. ac_top_srcdir=.
  25579. else
  25580. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25581. fi ;;
  25582. [\\/]* | ?:[\\/]* ) # Absolute path.
  25583. ac_srcdir=$srcdir$ac_dir_suffix;
  25584. ac_top_srcdir=$srcdir ;;
  25585. *) # Relative path.
  25586. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25587. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25588. esac
  25589. # Do not use `cd foo && pwd` to compute absolute paths, because
  25590. # the directories may not exist.
  25591. case `pwd` in
  25592. .) ac_abs_builddir="$ac_dir";;
  25593. *)
  25594. case "$ac_dir" in
  25595. .) ac_abs_builddir=`pwd`;;
  25596. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25597. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25598. esac;;
  25599. esac
  25600. case $ac_abs_builddir in
  25601. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25602. *)
  25603. case ${ac_top_builddir}. in
  25604. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25605. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25606. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25607. esac;;
  25608. esac
  25609. case $ac_abs_builddir in
  25610. .) ac_abs_srcdir=$ac_srcdir;;
  25611. *)
  25612. case $ac_srcdir in
  25613. .) ac_abs_srcdir=$ac_abs_builddir;;
  25614. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25615. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25616. esac;;
  25617. esac
  25618. case $ac_abs_builddir in
  25619. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25620. *)
  25621. case $ac_top_srcdir in
  25622. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25623. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25624. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25625. esac;;
  25626. esac
  25627. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  25628. echo "$as_me: executing $ac_dest commands" >&6;}
  25629. case $ac_dest in
  25630. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  25631. # Strip MF so we end up with the name of the file.
  25632. mf=`echo "$mf" | sed -e 's/:.*$//'`
  25633. # Check whether this is an Automake generated Makefile or not.
  25634. # We used to match only the files named `Makefile.in', but
  25635. # some people rename them; so instead we look at the file content.
  25636. # Grep'ing the first line is not enough: some people post-process
  25637. # each Makefile.in and add a new line on top of each file to say so.
  25638. # So let's grep whole file.
  25639. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  25640. dirpart=`(dirname "$mf") 2>/dev/null ||
  25641. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25642. X"$mf" : 'X\(//\)[^/]' \| \
  25643. X"$mf" : 'X\(//\)$' \| \
  25644. X"$mf" : 'X\(/\)' \| \
  25645. . : '\(.\)' 2>/dev/null ||
  25646. echo X"$mf" |
  25647. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25648. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25649. /^X\(\/\/\)$/{ s//\1/; q; }
  25650. /^X\(\/\).*/{ s//\1/; q; }
  25651. s/.*/./; q'`
  25652. else
  25653. continue
  25654. fi
  25655. # Extract the definition of DEPDIR, am__include, and am__quote
  25656. # from the Makefile without running `make'.
  25657. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  25658. test -z "$DEPDIR" && continue
  25659. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  25660. test -z "am__include" && continue
  25661. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  25662. # When using ansi2knr, U may be empty or an underscore; expand it
  25663. U=`sed -n 's/^U = //p' < "$mf"`
  25664. # Find all dependency output files, they are included files with
  25665. # $(DEPDIR) in their names. We invoke sed twice because it is the
  25666. # simplest approach to changing $(DEPDIR) to its actual value in the
  25667. # expansion.
  25668. for file in `sed -n "
  25669. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  25670. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  25671. # Make sure the directory exists.
  25672. test -f "$dirpart/$file" && continue
  25673. fdir=`(dirname "$file") 2>/dev/null ||
  25674. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25675. X"$file" : 'X\(//\)[^/]' \| \
  25676. X"$file" : 'X\(//\)$' \| \
  25677. X"$file" : 'X\(/\)' \| \
  25678. . : '\(.\)' 2>/dev/null ||
  25679. echo X"$file" |
  25680. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25681. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25682. /^X\(\/\/\)$/{ s//\1/; q; }
  25683. /^X\(\/\).*/{ s//\1/; q; }
  25684. s/.*/./; q'`
  25685. { if $as_mkdir_p; then
  25686. mkdir -p $dirpart/$fdir
  25687. else
  25688. as_dir=$dirpart/$fdir
  25689. as_dirs=
  25690. while test ! -d "$as_dir"; do
  25691. as_dirs="$as_dir $as_dirs"
  25692. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25693. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25694. X"$as_dir" : 'X\(//\)[^/]' \| \
  25695. X"$as_dir" : 'X\(//\)$' \| \
  25696. X"$as_dir" : 'X\(/\)' \| \
  25697. . : '\(.\)' 2>/dev/null ||
  25698. echo X"$as_dir" |
  25699. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25700. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25701. /^X\(\/\/\)$/{ s//\1/; q; }
  25702. /^X\(\/\).*/{ s//\1/; q; }
  25703. s/.*/./; q'`
  25704. done
  25705. test ! -n "$as_dirs" || mkdir $as_dirs
  25706. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  25707. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  25708. { (exit 1); exit 1; }; }; }
  25709. # echo "creating $dirpart/$file"
  25710. echo '# dummy' > "$dirpart/$file"
  25711. done
  25712. done
  25713. ;;
  25714. esac
  25715. done
  25716. _ACEOF
  25717. cat >>$CONFIG_STATUS <<\_ACEOF
  25718. { (exit 0); exit 0; }
  25719. _ACEOF
  25720. chmod +x $CONFIG_STATUS
  25721. ac_clean_files=$ac_clean_files_save
  25722. # configure is writing to config.log, and then calls config.status.
  25723. # config.status does its own redirection, appending to config.log.
  25724. # Unfortunately, on DOS this fails, as config.log is still kept open
  25725. # by configure, so config.status won't be able to write to it; its
  25726. # output is simply discarded. So we exec the FD to /dev/null,
  25727. # effectively closing config.log, so it can be properly (re)opened and
  25728. # appended to by config.status. When coming back to configure, we
  25729. # need to make the FD available again.
  25730. if test "$no_create" != yes; then
  25731. ac_cs_success=:
  25732. ac_config_status_args=
  25733. test "$silent" = yes &&
  25734. ac_config_status_args="$ac_config_status_args --quiet"
  25735. exec 5>/dev/null
  25736. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25737. exec 5>>config.log
  25738. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25739. # would make configure fail if this is the last instruction.
  25740. $ac_cs_success || { (exit 1); exit 1; }
  25741. fi