configure 905 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dirsrv 1.2.3.
  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.2.3'
  375. PACKAGE_STRING='dirsrv 1.2.3'
  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.2.3 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.2.3:";;
  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.2.3
  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.2.3, 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. am__api_version="1.9"
  1396. ac_aux_dir=
  1397. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1398. if test -f $ac_dir/install-sh; then
  1399. ac_aux_dir=$ac_dir
  1400. ac_install_sh="$ac_aux_dir/install-sh -c"
  1401. break
  1402. elif test -f $ac_dir/install.sh; then
  1403. ac_aux_dir=$ac_dir
  1404. ac_install_sh="$ac_aux_dir/install.sh -c"
  1405. break
  1406. elif test -f $ac_dir/shtool; then
  1407. ac_aux_dir=$ac_dir
  1408. ac_install_sh="$ac_aux_dir/shtool install -c"
  1409. break
  1410. fi
  1411. done
  1412. if test -z "$ac_aux_dir"; then
  1413. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1414. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1415. { (exit 1); exit 1; }; }
  1416. fi
  1417. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1418. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1419. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1420. # Find a good install program. We prefer a C program (faster),
  1421. # so one script is as good as another. But avoid the broken or
  1422. # incompatible versions:
  1423. # SysV /etc/install, /usr/sbin/install
  1424. # SunOS /usr/etc/install
  1425. # IRIX /sbin/install
  1426. # AIX /bin/install
  1427. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1428. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1429. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1430. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1431. # OS/2's system install, which has a completely different semantic
  1432. # ./install, which can be erroneously created by make from ./install.sh.
  1433. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1434. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1435. if test -z "$INSTALL"; then
  1436. if test "${ac_cv_path_install+set}" = set; then
  1437. echo $ECHO_N "(cached) $ECHO_C" >&6
  1438. else
  1439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1440. for as_dir in $PATH
  1441. do
  1442. IFS=$as_save_IFS
  1443. test -z "$as_dir" && as_dir=.
  1444. # Account for people who put trailing slashes in PATH elements.
  1445. case $as_dir/ in
  1446. ./ | .// | /cC/* | \
  1447. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1448. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1449. /usr/ucb/* ) ;;
  1450. *)
  1451. # OSF1 and SCO ODT 3.0 have their own names for install.
  1452. # Don't use installbsd from OSF since it installs stuff as root
  1453. # by default.
  1454. for ac_prog in ginstall scoinst install; do
  1455. for ac_exec_ext in '' $ac_executable_extensions; do
  1456. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1457. if test $ac_prog = install &&
  1458. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1459. # AIX install. It has an incompatible calling convention.
  1460. :
  1461. elif test $ac_prog = install &&
  1462. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1463. # program-specific install script used by HP pwplus--don't use.
  1464. :
  1465. else
  1466. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1467. break 3
  1468. fi
  1469. fi
  1470. done
  1471. done
  1472. ;;
  1473. esac
  1474. done
  1475. fi
  1476. if test "${ac_cv_path_install+set}" = set; then
  1477. INSTALL=$ac_cv_path_install
  1478. else
  1479. # As a last resort, use the slow shell script. We don't cache a
  1480. # path for INSTALL within a source directory, because that will
  1481. # break other packages using the cache if that directory is
  1482. # removed, or if the path is relative.
  1483. INSTALL=$ac_install_sh
  1484. fi
  1485. fi
  1486. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1487. echo "${ECHO_T}$INSTALL" >&6
  1488. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1489. # It thinks the first close brace ends the variable substitution.
  1490. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1491. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1492. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1493. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1494. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1495. # Just in case
  1496. sleep 1
  1497. echo timestamp > conftest.file
  1498. # Do `set' in a subshell so we don't clobber the current shell's
  1499. # arguments. Must try -L first in case configure is actually a
  1500. # symlink; some systems play weird games with the mod time of symlinks
  1501. # (eg FreeBSD returns the mod time of the symlink's containing
  1502. # directory).
  1503. if (
  1504. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1505. if test "$*" = "X"; then
  1506. # -L didn't work.
  1507. set X `ls -t $srcdir/configure conftest.file`
  1508. fi
  1509. rm -f conftest.file
  1510. if test "$*" != "X $srcdir/configure conftest.file" \
  1511. && test "$*" != "X conftest.file $srcdir/configure"; then
  1512. # If neither matched, then we have a broken ls. This can happen
  1513. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1514. # broken ls alias from the environment. This has actually
  1515. # happened. Such a system could not be considered "sane".
  1516. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1517. alias in your environment" >&5
  1518. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1519. alias in your environment" >&2;}
  1520. { (exit 1); exit 1; }; }
  1521. fi
  1522. test "$2" = conftest.file
  1523. )
  1524. then
  1525. # Ok.
  1526. :
  1527. else
  1528. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1529. Check your system clock" >&5
  1530. echo "$as_me: error: newly created file is older than distributed files!
  1531. Check your system clock" >&2;}
  1532. { (exit 1); exit 1; }; }
  1533. fi
  1534. echo "$as_me:$LINENO: result: yes" >&5
  1535. echo "${ECHO_T}yes" >&6
  1536. test "$program_prefix" != NONE &&
  1537. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1538. # Use a double $ so make ignores it.
  1539. test "$program_suffix" != NONE &&
  1540. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1541. # Double any \ or $. echo might interpret backslashes.
  1542. # By default was `s,x,x', remove it if useless.
  1543. cat <<\_ACEOF >conftest.sed
  1544. s/[\\$]/&&/g;s/;s,x,x,$//
  1545. _ACEOF
  1546. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1547. rm conftest.sed
  1548. # expand $ac_aux_dir to an absolute path
  1549. am_aux_dir=`cd $ac_aux_dir && pwd`
  1550. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1551. # Use eval to expand $SHELL
  1552. if eval "$MISSING --run true"; then
  1553. am_missing_run="$MISSING --run "
  1554. else
  1555. am_missing_run=
  1556. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1557. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1558. fi
  1559. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1560. # We used to keeping the `.' as first argument, in order to
  1561. # allow $(mkdir_p) to be used without argument. As in
  1562. # $(mkdir_p) $(somedir)
  1563. # where $(somedir) is conditionally defined. However this is wrong
  1564. # for two reasons:
  1565. # 1. if the package is installed by a user who cannot write `.'
  1566. # make install will fail,
  1567. # 2. the above comment should most certainly read
  1568. # $(mkdir_p) $(DESTDIR)$(somedir)
  1569. # so it does not work when $(somedir) is undefined and
  1570. # $(DESTDIR) is not.
  1571. # To support the latter case, we have to write
  1572. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1573. # so the `.' trick is pointless.
  1574. mkdir_p='mkdir -p --'
  1575. else
  1576. # On NextStep and OpenStep, the `mkdir' command does not
  1577. # recognize any option. It will interpret all options as
  1578. # directories to create, and then abort because `.' already
  1579. # exists.
  1580. for d in ./-p ./--version;
  1581. do
  1582. test -d $d && rmdir $d
  1583. done
  1584. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1585. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1586. mkdir_p='$(mkinstalldirs)'
  1587. else
  1588. mkdir_p='$(install_sh) -d'
  1589. fi
  1590. fi
  1591. for ac_prog in gawk mawk nawk awk
  1592. do
  1593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1594. set dummy $ac_prog; ac_word=$2
  1595. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1596. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1597. if test "${ac_cv_prog_AWK+set}" = set; then
  1598. echo $ECHO_N "(cached) $ECHO_C" >&6
  1599. else
  1600. if test -n "$AWK"; then
  1601. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1602. else
  1603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1604. for as_dir in $PATH
  1605. do
  1606. IFS=$as_save_IFS
  1607. test -z "$as_dir" && as_dir=.
  1608. for ac_exec_ext in '' $ac_executable_extensions; do
  1609. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1610. ac_cv_prog_AWK="$ac_prog"
  1611. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1612. break 2
  1613. fi
  1614. done
  1615. done
  1616. fi
  1617. fi
  1618. AWK=$ac_cv_prog_AWK
  1619. if test -n "$AWK"; then
  1620. echo "$as_me:$LINENO: result: $AWK" >&5
  1621. echo "${ECHO_T}$AWK" >&6
  1622. else
  1623. echo "$as_me:$LINENO: result: no" >&5
  1624. echo "${ECHO_T}no" >&6
  1625. fi
  1626. test -n "$AWK" && break
  1627. done
  1628. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1629. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1630. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1631. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1632. echo $ECHO_N "(cached) $ECHO_C" >&6
  1633. else
  1634. cat >conftest.make <<\_ACEOF
  1635. all:
  1636. @echo 'ac_maketemp="$(MAKE)"'
  1637. _ACEOF
  1638. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1639. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1640. if test -n "$ac_maketemp"; then
  1641. eval ac_cv_prog_make_${ac_make}_set=yes
  1642. else
  1643. eval ac_cv_prog_make_${ac_make}_set=no
  1644. fi
  1645. rm -f conftest.make
  1646. fi
  1647. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1648. echo "$as_me:$LINENO: result: yes" >&5
  1649. echo "${ECHO_T}yes" >&6
  1650. SET_MAKE=
  1651. else
  1652. echo "$as_me:$LINENO: result: no" >&5
  1653. echo "${ECHO_T}no" >&6
  1654. SET_MAKE="MAKE=${MAKE-make}"
  1655. fi
  1656. rm -rf .tst 2>/dev/null
  1657. mkdir .tst 2>/dev/null
  1658. if test -d .tst; then
  1659. am__leading_dot=.
  1660. else
  1661. am__leading_dot=_
  1662. fi
  1663. rmdir .tst 2>/dev/null
  1664. # test to see if srcdir already configured
  1665. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1666. test -f $srcdir/config.status; then
  1667. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1668. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1669. { (exit 1); exit 1; }; }
  1670. fi
  1671. # test whether we have cygpath
  1672. if test -z "$CYGPATH_W"; then
  1673. if (cygpath --version) >/dev/null 2>/dev/null; then
  1674. CYGPATH_W='cygpath -w'
  1675. else
  1676. CYGPATH_W=echo
  1677. fi
  1678. fi
  1679. # Define the identity of the package.
  1680. PACKAGE='dirsrv'
  1681. VERSION='1.2.3'
  1682. cat >>confdefs.h <<_ACEOF
  1683. #define PACKAGE "$PACKAGE"
  1684. _ACEOF
  1685. cat >>confdefs.h <<_ACEOF
  1686. #define VERSION "$VERSION"
  1687. _ACEOF
  1688. # Some tools Automake needs.
  1689. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1690. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1691. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1692. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1693. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1694. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1695. # Installed binaries are usually stripped using `strip' when the user
  1696. # run `make install-strip'. However `strip' might not be the right
  1697. # tool to use in cross-compilation environments, therefore Automake
  1698. # will honor the `STRIP' environment variable to overrule this program.
  1699. if test "$cross_compiling" != no; then
  1700. if test -n "$ac_tool_prefix"; then
  1701. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1702. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1705. if test "${ac_cv_prog_STRIP+set}" = set; then
  1706. echo $ECHO_N "(cached) $ECHO_C" >&6
  1707. else
  1708. if test -n "$STRIP"; then
  1709. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1710. else
  1711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1712. for as_dir in $PATH
  1713. do
  1714. IFS=$as_save_IFS
  1715. test -z "$as_dir" && as_dir=.
  1716. for ac_exec_ext in '' $ac_executable_extensions; do
  1717. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1718. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1719. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1720. break 2
  1721. fi
  1722. done
  1723. done
  1724. fi
  1725. fi
  1726. STRIP=$ac_cv_prog_STRIP
  1727. if test -n "$STRIP"; then
  1728. echo "$as_me:$LINENO: result: $STRIP" >&5
  1729. echo "${ECHO_T}$STRIP" >&6
  1730. else
  1731. echo "$as_me:$LINENO: result: no" >&5
  1732. echo "${ECHO_T}no" >&6
  1733. fi
  1734. fi
  1735. if test -z "$ac_cv_prog_STRIP"; then
  1736. ac_ct_STRIP=$STRIP
  1737. # Extract the first word of "strip", so it can be a program name with args.
  1738. set dummy strip; ac_word=$2
  1739. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1740. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1741. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1742. echo $ECHO_N "(cached) $ECHO_C" >&6
  1743. else
  1744. if test -n "$ac_ct_STRIP"; then
  1745. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1746. else
  1747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1748. for as_dir in $PATH
  1749. do
  1750. IFS=$as_save_IFS
  1751. test -z "$as_dir" && as_dir=.
  1752. for ac_exec_ext in '' $ac_executable_extensions; do
  1753. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1754. ac_cv_prog_ac_ct_STRIP="strip"
  1755. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1756. break 2
  1757. fi
  1758. done
  1759. done
  1760. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1761. fi
  1762. fi
  1763. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1764. if test -n "$ac_ct_STRIP"; then
  1765. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1766. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1767. else
  1768. echo "$as_me:$LINENO: result: no" >&5
  1769. echo "${ECHO_T}no" >&6
  1770. fi
  1771. STRIP=$ac_ct_STRIP
  1772. else
  1773. STRIP="$ac_cv_prog_STRIP"
  1774. fi
  1775. fi
  1776. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1777. # We need awk for the "check" target. The system "awk" is bad on
  1778. # some platforms.
  1779. # Always define AMTAR for backward compatibility.
  1780. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1781. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1782. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1783. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1784. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1785. if test "${enable_maintainer_mode+set}" = set; then
  1786. enableval="$enable_maintainer_mode"
  1787. USE_MAINTAINER_MODE=$enableval
  1788. else
  1789. USE_MAINTAINER_MODE=no
  1790. fi;
  1791. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1792. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1793. if test $USE_MAINTAINER_MODE = yes; then
  1794. MAINTAINER_MODE_TRUE=
  1795. MAINTAINER_MODE_FALSE='#'
  1796. else
  1797. MAINTAINER_MODE_TRUE='#'
  1798. MAINTAINER_MODE_FALSE=
  1799. fi
  1800. MAINT=$MAINTAINER_MODE_TRUE
  1801. # Make sure we can run config.sub.
  1802. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1803. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1804. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1805. { (exit 1); exit 1; }; }
  1806. echo "$as_me:$LINENO: checking build system type" >&5
  1807. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1808. if test "${ac_cv_build+set}" = set; then
  1809. echo $ECHO_N "(cached) $ECHO_C" >&6
  1810. else
  1811. ac_cv_build_alias=$build_alias
  1812. test -z "$ac_cv_build_alias" &&
  1813. ac_cv_build_alias=`$ac_config_guess`
  1814. test -z "$ac_cv_build_alias" &&
  1815. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1816. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1817. { (exit 1); exit 1; }; }
  1818. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1819. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1820. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1821. { (exit 1); exit 1; }; }
  1822. fi
  1823. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1824. echo "${ECHO_T}$ac_cv_build" >&6
  1825. build=$ac_cv_build
  1826. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1827. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1828. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1829. echo "$as_me:$LINENO: checking host system type" >&5
  1830. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1831. if test "${ac_cv_host+set}" = set; then
  1832. echo $ECHO_N "(cached) $ECHO_C" >&6
  1833. else
  1834. ac_cv_host_alias=$host_alias
  1835. test -z "$ac_cv_host_alias" &&
  1836. ac_cv_host_alias=$ac_cv_build_alias
  1837. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1838. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1839. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1840. { (exit 1); exit 1; }; }
  1841. fi
  1842. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1843. echo "${ECHO_T}$ac_cv_host" >&6
  1844. host=$ac_cv_host
  1845. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1846. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1847. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1848. # Checks for programs.
  1849. ac_ext=cc
  1850. ac_cpp='$CXXCPP $CPPFLAGS'
  1851. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1852. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1853. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1854. if test -n "$ac_tool_prefix"; then
  1855. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1856. do
  1857. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1858. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1859. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1860. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1861. if test "${ac_cv_prog_CXX+set}" = set; then
  1862. echo $ECHO_N "(cached) $ECHO_C" >&6
  1863. else
  1864. if test -n "$CXX"; then
  1865. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1866. else
  1867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1868. for as_dir in $PATH
  1869. do
  1870. IFS=$as_save_IFS
  1871. test -z "$as_dir" && as_dir=.
  1872. for ac_exec_ext in '' $ac_executable_extensions; do
  1873. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1874. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1875. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1876. break 2
  1877. fi
  1878. done
  1879. done
  1880. fi
  1881. fi
  1882. CXX=$ac_cv_prog_CXX
  1883. if test -n "$CXX"; then
  1884. echo "$as_me:$LINENO: result: $CXX" >&5
  1885. echo "${ECHO_T}$CXX" >&6
  1886. else
  1887. echo "$as_me:$LINENO: result: no" >&5
  1888. echo "${ECHO_T}no" >&6
  1889. fi
  1890. test -n "$CXX" && break
  1891. done
  1892. fi
  1893. if test -z "$CXX"; then
  1894. ac_ct_CXX=$CXX
  1895. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1896. do
  1897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1898. set dummy $ac_prog; ac_word=$2
  1899. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1900. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1901. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1902. echo $ECHO_N "(cached) $ECHO_C" >&6
  1903. else
  1904. if test -n "$ac_ct_CXX"; then
  1905. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1906. else
  1907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1908. for as_dir in $PATH
  1909. do
  1910. IFS=$as_save_IFS
  1911. test -z "$as_dir" && as_dir=.
  1912. for ac_exec_ext in '' $ac_executable_extensions; do
  1913. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1914. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1915. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1916. break 2
  1917. fi
  1918. done
  1919. done
  1920. fi
  1921. fi
  1922. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1923. if test -n "$ac_ct_CXX"; then
  1924. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1925. echo "${ECHO_T}$ac_ct_CXX" >&6
  1926. else
  1927. echo "$as_me:$LINENO: result: no" >&5
  1928. echo "${ECHO_T}no" >&6
  1929. fi
  1930. test -n "$ac_ct_CXX" && break
  1931. done
  1932. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1933. CXX=$ac_ct_CXX
  1934. fi
  1935. # Provide some information about the compiler.
  1936. echo "$as_me:$LINENO:" \
  1937. "checking for C++ compiler version" >&5
  1938. ac_compiler=`set X $ac_compile; echo $2`
  1939. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1940. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1941. ac_status=$?
  1942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1943. (exit $ac_status); }
  1944. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1945. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1946. ac_status=$?
  1947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1948. (exit $ac_status); }
  1949. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1950. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }
  1954. cat >conftest.$ac_ext <<_ACEOF
  1955. /* confdefs.h. */
  1956. _ACEOF
  1957. cat confdefs.h >>conftest.$ac_ext
  1958. cat >>conftest.$ac_ext <<_ACEOF
  1959. /* end confdefs.h. */
  1960. int
  1961. main ()
  1962. {
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. ac_clean_files_save=$ac_clean_files
  1968. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1969. # Try to create an executable without -o first, disregard a.out.
  1970. # It will help us diagnose broken compilers, and finding out an intuition
  1971. # of exeext.
  1972. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1973. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1974. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1975. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1976. (eval $ac_link_default) 2>&5
  1977. ac_status=$?
  1978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1979. (exit $ac_status); }; then
  1980. # Find the output, starting from the most likely. This scheme is
  1981. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1982. # resort.
  1983. # Be careful to initialize this variable, since it used to be cached.
  1984. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1985. ac_cv_exeext=
  1986. # b.out is created by i960 compilers.
  1987. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1988. do
  1989. test -f "$ac_file" || continue
  1990. case $ac_file in
  1991. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1992. ;;
  1993. conftest.$ac_ext )
  1994. # This is the source file.
  1995. ;;
  1996. [ab].out )
  1997. # We found the default executable, but exeext='' is most
  1998. # certainly right.
  1999. break;;
  2000. *.* )
  2001. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2002. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2003. # but it would be cool to find out if it's true. Does anybody
  2004. # maintain Libtool? --akim.
  2005. export ac_cv_exeext
  2006. break;;
  2007. * )
  2008. break;;
  2009. esac
  2010. done
  2011. else
  2012. echo "$as_me: failed program was:" >&5
  2013. sed 's/^/| /' conftest.$ac_ext >&5
  2014. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2015. See \`config.log' for more details." >&5
  2016. echo "$as_me: error: C++ compiler cannot create executables
  2017. See \`config.log' for more details." >&2;}
  2018. { (exit 77); exit 77; }; }
  2019. fi
  2020. ac_exeext=$ac_cv_exeext
  2021. echo "$as_me:$LINENO: result: $ac_file" >&5
  2022. echo "${ECHO_T}$ac_file" >&6
  2023. # Check the compiler produces executables we can run. If not, either
  2024. # the compiler is broken, or we cross compile.
  2025. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2026. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  2027. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2028. # If not cross compiling, check that we can run a simple program.
  2029. if test "$cross_compiling" != yes; then
  2030. if { ac_try='./$ac_file'
  2031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2032. (eval $ac_try) 2>&5
  2033. ac_status=$?
  2034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2035. (exit $ac_status); }; }; then
  2036. cross_compiling=no
  2037. else
  2038. if test "$cross_compiling" = maybe; then
  2039. cross_compiling=yes
  2040. else
  2041. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2042. If you meant to cross compile, use \`--host'.
  2043. See \`config.log' for more details." >&5
  2044. echo "$as_me: error: cannot run C++ compiled programs.
  2045. If you meant to cross compile, use \`--host'.
  2046. See \`config.log' for more details." >&2;}
  2047. { (exit 1); exit 1; }; }
  2048. fi
  2049. fi
  2050. fi
  2051. echo "$as_me:$LINENO: result: yes" >&5
  2052. echo "${ECHO_T}yes" >&6
  2053. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2054. ac_clean_files=$ac_clean_files_save
  2055. # Check the compiler produces executables we can run. If not, either
  2056. # the compiler is broken, or we cross compile.
  2057. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2058. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2059. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2060. echo "${ECHO_T}$cross_compiling" >&6
  2061. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2062. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2064. (eval $ac_link) 2>&5
  2065. ac_status=$?
  2066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2067. (exit $ac_status); }; then
  2068. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2069. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2070. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2071. # `rm'.
  2072. for ac_file in conftest.exe conftest conftest.*; do
  2073. test -f "$ac_file" || continue
  2074. case $ac_file in
  2075. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2076. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2077. export ac_cv_exeext
  2078. break;;
  2079. * ) break;;
  2080. esac
  2081. done
  2082. else
  2083. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2084. See \`config.log' for more details." >&5
  2085. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2086. See \`config.log' for more details." >&2;}
  2087. { (exit 1); exit 1; }; }
  2088. fi
  2089. rm -f conftest$ac_cv_exeext
  2090. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2091. echo "${ECHO_T}$ac_cv_exeext" >&6
  2092. rm -f conftest.$ac_ext
  2093. EXEEXT=$ac_cv_exeext
  2094. ac_exeext=$EXEEXT
  2095. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2096. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2097. if test "${ac_cv_objext+set}" = set; then
  2098. echo $ECHO_N "(cached) $ECHO_C" >&6
  2099. else
  2100. cat >conftest.$ac_ext <<_ACEOF
  2101. /* confdefs.h. */
  2102. _ACEOF
  2103. cat confdefs.h >>conftest.$ac_ext
  2104. cat >>conftest.$ac_ext <<_ACEOF
  2105. /* end confdefs.h. */
  2106. int
  2107. main ()
  2108. {
  2109. ;
  2110. return 0;
  2111. }
  2112. _ACEOF
  2113. rm -f conftest.o conftest.obj
  2114. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2115. (eval $ac_compile) 2>&5
  2116. ac_status=$?
  2117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2118. (exit $ac_status); }; then
  2119. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2120. case $ac_file in
  2121. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2122. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2123. break;;
  2124. esac
  2125. done
  2126. else
  2127. echo "$as_me: failed program was:" >&5
  2128. sed 's/^/| /' conftest.$ac_ext >&5
  2129. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2130. See \`config.log' for more details." >&5
  2131. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2132. See \`config.log' for more details." >&2;}
  2133. { (exit 1); exit 1; }; }
  2134. fi
  2135. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2136. fi
  2137. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2138. echo "${ECHO_T}$ac_cv_objext" >&6
  2139. OBJEXT=$ac_cv_objext
  2140. ac_objext=$OBJEXT
  2141. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2142. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2143. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2144. echo $ECHO_N "(cached) $ECHO_C" >&6
  2145. else
  2146. cat >conftest.$ac_ext <<_ACEOF
  2147. /* confdefs.h. */
  2148. _ACEOF
  2149. cat confdefs.h >>conftest.$ac_ext
  2150. cat >>conftest.$ac_ext <<_ACEOF
  2151. /* end confdefs.h. */
  2152. int
  2153. main ()
  2154. {
  2155. #ifndef __GNUC__
  2156. choke me
  2157. #endif
  2158. ;
  2159. return 0;
  2160. }
  2161. _ACEOF
  2162. rm -f conftest.$ac_objext
  2163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2164. (eval $ac_compile) 2>conftest.er1
  2165. ac_status=$?
  2166. grep -v '^ *+' conftest.er1 >conftest.err
  2167. rm -f conftest.er1
  2168. cat conftest.err >&5
  2169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2170. (exit $ac_status); } &&
  2171. { ac_try='test -z "$ac_cxx_werror_flag"
  2172. || test ! -s conftest.err'
  2173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2174. (eval $ac_try) 2>&5
  2175. ac_status=$?
  2176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2177. (exit $ac_status); }; } &&
  2178. { ac_try='test -s conftest.$ac_objext'
  2179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2180. (eval $ac_try) 2>&5
  2181. ac_status=$?
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); }; }; then
  2184. ac_compiler_gnu=yes
  2185. else
  2186. echo "$as_me: failed program was:" >&5
  2187. sed 's/^/| /' conftest.$ac_ext >&5
  2188. ac_compiler_gnu=no
  2189. fi
  2190. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2191. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2192. fi
  2193. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2194. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2195. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2196. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2197. ac_save_CXXFLAGS=$CXXFLAGS
  2198. CXXFLAGS="-g"
  2199. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2200. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2201. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2202. echo $ECHO_N "(cached) $ECHO_C" >&6
  2203. else
  2204. cat >conftest.$ac_ext <<_ACEOF
  2205. /* confdefs.h. */
  2206. _ACEOF
  2207. cat confdefs.h >>conftest.$ac_ext
  2208. cat >>conftest.$ac_ext <<_ACEOF
  2209. /* end confdefs.h. */
  2210. int
  2211. main ()
  2212. {
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. rm -f conftest.$ac_objext
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2219. (eval $ac_compile) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } &&
  2226. { ac_try='test -z "$ac_cxx_werror_flag"
  2227. || test ! -s conftest.err'
  2228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2229. (eval $ac_try) 2>&5
  2230. ac_status=$?
  2231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2232. (exit $ac_status); }; } &&
  2233. { ac_try='test -s conftest.$ac_objext'
  2234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2235. (eval $ac_try) 2>&5
  2236. ac_status=$?
  2237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2238. (exit $ac_status); }; }; then
  2239. ac_cv_prog_cxx_g=yes
  2240. else
  2241. echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243. ac_cv_prog_cxx_g=no
  2244. fi
  2245. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2246. fi
  2247. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2248. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2249. if test "$ac_test_CXXFLAGS" = set; then
  2250. CXXFLAGS=$ac_save_CXXFLAGS
  2251. elif test $ac_cv_prog_cxx_g = yes; then
  2252. if test "$GXX" = yes; then
  2253. CXXFLAGS="-g -O2"
  2254. else
  2255. CXXFLAGS="-g"
  2256. fi
  2257. else
  2258. if test "$GXX" = yes; then
  2259. CXXFLAGS="-O2"
  2260. else
  2261. CXXFLAGS=
  2262. fi
  2263. fi
  2264. for ac_declaration in \
  2265. '' \
  2266. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2267. 'extern "C" void std::exit (int); using std::exit;' \
  2268. 'extern "C" void exit (int) throw ();' \
  2269. 'extern "C" void exit (int);' \
  2270. 'void exit (int);'
  2271. do
  2272. cat >conftest.$ac_ext <<_ACEOF
  2273. /* confdefs.h. */
  2274. _ACEOF
  2275. cat confdefs.h >>conftest.$ac_ext
  2276. cat >>conftest.$ac_ext <<_ACEOF
  2277. /* end confdefs.h. */
  2278. $ac_declaration
  2279. #include <stdlib.h>
  2280. int
  2281. main ()
  2282. {
  2283. exit (42);
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. rm -f conftest.$ac_objext
  2289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2290. (eval $ac_compile) 2>conftest.er1
  2291. ac_status=$?
  2292. grep -v '^ *+' conftest.er1 >conftest.err
  2293. rm -f conftest.er1
  2294. cat conftest.err >&5
  2295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2296. (exit $ac_status); } &&
  2297. { ac_try='test -z "$ac_cxx_werror_flag"
  2298. || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. :
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. continue
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. cat >conftest.$ac_ext <<_ACEOF
  2318. /* confdefs.h. */
  2319. _ACEOF
  2320. cat confdefs.h >>conftest.$ac_ext
  2321. cat >>conftest.$ac_ext <<_ACEOF
  2322. /* end confdefs.h. */
  2323. $ac_declaration
  2324. int
  2325. main ()
  2326. {
  2327. exit (42);
  2328. ;
  2329. return 0;
  2330. }
  2331. _ACEOF
  2332. rm -f conftest.$ac_objext
  2333. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2334. (eval $ac_compile) 2>conftest.er1
  2335. ac_status=$?
  2336. grep -v '^ *+' conftest.er1 >conftest.err
  2337. rm -f conftest.er1
  2338. cat conftest.err >&5
  2339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2340. (exit $ac_status); } &&
  2341. { ac_try='test -z "$ac_cxx_werror_flag"
  2342. || test ! -s conftest.err'
  2343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2344. (eval $ac_try) 2>&5
  2345. ac_status=$?
  2346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2347. (exit $ac_status); }; } &&
  2348. { ac_try='test -s conftest.$ac_objext'
  2349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2350. (eval $ac_try) 2>&5
  2351. ac_status=$?
  2352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2353. (exit $ac_status); }; }; then
  2354. break
  2355. else
  2356. echo "$as_me: failed program was:" >&5
  2357. sed 's/^/| /' conftest.$ac_ext >&5
  2358. fi
  2359. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2360. done
  2361. rm -f conftest*
  2362. if test -n "$ac_declaration"; then
  2363. echo '#ifdef __cplusplus' >>confdefs.h
  2364. echo $ac_declaration >>confdefs.h
  2365. echo '#endif' >>confdefs.h
  2366. fi
  2367. ac_ext=c
  2368. ac_cpp='$CPP $CPPFLAGS'
  2369. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2370. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2371. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2372. DEPDIR="${am__leading_dot}deps"
  2373. ac_config_commands="$ac_config_commands depfiles"
  2374. am_make=${MAKE-make}
  2375. cat > confinc << 'END'
  2376. am__doit:
  2377. @echo done
  2378. .PHONY: am__doit
  2379. END
  2380. # If we don't find an include directive, just comment out the code.
  2381. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2382. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2383. am__include="#"
  2384. am__quote=
  2385. _am_result=none
  2386. # First try GNU make style include.
  2387. echo "include confinc" > confmf
  2388. # We grep out `Entering directory' and `Leaving directory'
  2389. # messages which can occur if `w' ends up in MAKEFLAGS.
  2390. # In particular we don't look at `^make:' because GNU make might
  2391. # be invoked under some other name (usually "gmake"), in which
  2392. # case it prints its new name instead of `make'.
  2393. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2394. am__include=include
  2395. am__quote=
  2396. _am_result=GNU
  2397. fi
  2398. # Now try BSD make style include.
  2399. if test "$am__include" = "#"; then
  2400. echo '.include "confinc"' > confmf
  2401. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2402. am__include=.include
  2403. am__quote="\""
  2404. _am_result=BSD
  2405. fi
  2406. fi
  2407. echo "$as_me:$LINENO: result: $_am_result" >&5
  2408. echo "${ECHO_T}$_am_result" >&6
  2409. rm -f confinc confmf
  2410. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2411. if test "${enable_dependency_tracking+set}" = set; then
  2412. enableval="$enable_dependency_tracking"
  2413. fi;
  2414. if test "x$enable_dependency_tracking" != xno; then
  2415. am_depcomp="$ac_aux_dir/depcomp"
  2416. AMDEPBACKSLASH='\'
  2417. fi
  2418. if test "x$enable_dependency_tracking" != xno; then
  2419. AMDEP_TRUE=
  2420. AMDEP_FALSE='#'
  2421. else
  2422. AMDEP_TRUE='#'
  2423. AMDEP_FALSE=
  2424. fi
  2425. depcc="$CXX" am_compiler_list=
  2426. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2427. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2428. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2429. echo $ECHO_N "(cached) $ECHO_C" >&6
  2430. else
  2431. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2432. # We make a subdir and do the tests there. Otherwise we can end up
  2433. # making bogus files that we don't know about and never remove. For
  2434. # instance it was reported that on HP-UX the gcc test will end up
  2435. # making a dummy file named `D' -- because `-MD' means `put the output
  2436. # in D'.
  2437. mkdir conftest.dir
  2438. # Copy depcomp to subdir because otherwise we won't find it if we're
  2439. # using a relative directory.
  2440. cp "$am_depcomp" conftest.dir
  2441. cd conftest.dir
  2442. # We will build objects and dependencies in a subdirectory because
  2443. # it helps to detect inapplicable dependency modes. For instance
  2444. # both Tru64's cc and ICC support -MD to output dependencies as a
  2445. # side effect of compilation, but ICC will put the dependencies in
  2446. # the current directory while Tru64 will put them in the object
  2447. # directory.
  2448. mkdir sub
  2449. am_cv_CXX_dependencies_compiler_type=none
  2450. if test "$am_compiler_list" = ""; then
  2451. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2452. fi
  2453. for depmode in $am_compiler_list; do
  2454. # Setup a source with many dependencies, because some compilers
  2455. # like to wrap large dependency lists on column 80 (with \), and
  2456. # we should not choose a depcomp mode which is confused by this.
  2457. #
  2458. # We need to recreate these files for each test, as the compiler may
  2459. # overwrite some of them when testing with obscure command lines.
  2460. # This happens at least with the AIX C compiler.
  2461. : > sub/conftest.c
  2462. for i in 1 2 3 4 5 6; do
  2463. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2464. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2465. # Solaris 8's {/usr,}/bin/sh.
  2466. touch sub/conftst$i.h
  2467. done
  2468. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2469. case $depmode in
  2470. nosideeffect)
  2471. # after this tag, mechanisms are not by side-effect, so they'll
  2472. # only be used when explicitly requested
  2473. if test "x$enable_dependency_tracking" = xyes; then
  2474. continue
  2475. else
  2476. break
  2477. fi
  2478. ;;
  2479. none) break ;;
  2480. esac
  2481. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2482. # mode. It turns out that the SunPro C++ compiler does not properly
  2483. # handle `-M -o', and we need to detect this.
  2484. if depmode=$depmode \
  2485. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2486. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2487. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2488. >/dev/null 2>conftest.err &&
  2489. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2490. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2491. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2492. # icc doesn't choke on unknown options, it will just issue warnings
  2493. # or remarks (even with -Werror). So we grep stderr for any message
  2494. # that says an option was ignored or not supported.
  2495. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2496. # icc: Command line warning: ignoring option '-M'; no argument required
  2497. # The diagnosis changed in icc 8.0:
  2498. # icc: Command line remark: option '-MP' not supported
  2499. if (grep 'ignoring option' conftest.err ||
  2500. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2501. am_cv_CXX_dependencies_compiler_type=$depmode
  2502. break
  2503. fi
  2504. fi
  2505. done
  2506. cd ..
  2507. rm -rf conftest.dir
  2508. else
  2509. am_cv_CXX_dependencies_compiler_type=none
  2510. fi
  2511. fi
  2512. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2513. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2514. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2515. if
  2516. test "x$enable_dependency_tracking" != xno \
  2517. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2518. am__fastdepCXX_TRUE=
  2519. am__fastdepCXX_FALSE='#'
  2520. else
  2521. am__fastdepCXX_TRUE='#'
  2522. am__fastdepCXX_FALSE=
  2523. fi
  2524. ac_ext=c
  2525. ac_cpp='$CPP $CPPFLAGS'
  2526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2529. if test -n "$ac_tool_prefix"; then
  2530. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2531. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2532. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2533. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2534. if test "${ac_cv_prog_CC+set}" = set; then
  2535. echo $ECHO_N "(cached) $ECHO_C" >&6
  2536. else
  2537. if test -n "$CC"; then
  2538. ac_cv_prog_CC="$CC" # Let the user override the test.
  2539. else
  2540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2541. for as_dir in $PATH
  2542. do
  2543. IFS=$as_save_IFS
  2544. test -z "$as_dir" && as_dir=.
  2545. for ac_exec_ext in '' $ac_executable_extensions; do
  2546. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2547. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2548. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2549. break 2
  2550. fi
  2551. done
  2552. done
  2553. fi
  2554. fi
  2555. CC=$ac_cv_prog_CC
  2556. if test -n "$CC"; then
  2557. echo "$as_me:$LINENO: result: $CC" >&5
  2558. echo "${ECHO_T}$CC" >&6
  2559. else
  2560. echo "$as_me:$LINENO: result: no" >&5
  2561. echo "${ECHO_T}no" >&6
  2562. fi
  2563. fi
  2564. if test -z "$ac_cv_prog_CC"; then
  2565. ac_ct_CC=$CC
  2566. # Extract the first word of "gcc", so it can be a program name with args.
  2567. set dummy gcc; ac_word=$2
  2568. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2569. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2570. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2571. echo $ECHO_N "(cached) $ECHO_C" >&6
  2572. else
  2573. if test -n "$ac_ct_CC"; then
  2574. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2575. else
  2576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2577. for as_dir in $PATH
  2578. do
  2579. IFS=$as_save_IFS
  2580. test -z "$as_dir" && as_dir=.
  2581. for ac_exec_ext in '' $ac_executable_extensions; do
  2582. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2583. ac_cv_prog_ac_ct_CC="gcc"
  2584. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2585. break 2
  2586. fi
  2587. done
  2588. done
  2589. fi
  2590. fi
  2591. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2592. if test -n "$ac_ct_CC"; then
  2593. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2594. echo "${ECHO_T}$ac_ct_CC" >&6
  2595. else
  2596. echo "$as_me:$LINENO: result: no" >&5
  2597. echo "${ECHO_T}no" >&6
  2598. fi
  2599. CC=$ac_ct_CC
  2600. else
  2601. CC="$ac_cv_prog_CC"
  2602. fi
  2603. if test -z "$CC"; then
  2604. if test -n "$ac_tool_prefix"; then
  2605. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2606. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2607. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2608. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2609. if test "${ac_cv_prog_CC+set}" = set; then
  2610. echo $ECHO_N "(cached) $ECHO_C" >&6
  2611. else
  2612. if test -n "$CC"; then
  2613. ac_cv_prog_CC="$CC" # Let the user override the test.
  2614. else
  2615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2616. for as_dir in $PATH
  2617. do
  2618. IFS=$as_save_IFS
  2619. test -z "$as_dir" && as_dir=.
  2620. for ac_exec_ext in '' $ac_executable_extensions; do
  2621. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2622. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2623. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2624. break 2
  2625. fi
  2626. done
  2627. done
  2628. fi
  2629. fi
  2630. CC=$ac_cv_prog_CC
  2631. if test -n "$CC"; then
  2632. echo "$as_me:$LINENO: result: $CC" >&5
  2633. echo "${ECHO_T}$CC" >&6
  2634. else
  2635. echo "$as_me:$LINENO: result: no" >&5
  2636. echo "${ECHO_T}no" >&6
  2637. fi
  2638. fi
  2639. if test -z "$ac_cv_prog_CC"; then
  2640. ac_ct_CC=$CC
  2641. # Extract the first word of "cc", so it can be a program name with args.
  2642. set dummy cc; ac_word=$2
  2643. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2644. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2645. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2646. echo $ECHO_N "(cached) $ECHO_C" >&6
  2647. else
  2648. if test -n "$ac_ct_CC"; then
  2649. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2658. ac_cv_prog_ac_ct_CC="cc"
  2659. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. fi
  2665. fi
  2666. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2667. if test -n "$ac_ct_CC"; then
  2668. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2669. echo "${ECHO_T}$ac_ct_CC" >&6
  2670. else
  2671. echo "$as_me:$LINENO: result: no" >&5
  2672. echo "${ECHO_T}no" >&6
  2673. fi
  2674. CC=$ac_ct_CC
  2675. else
  2676. CC="$ac_cv_prog_CC"
  2677. fi
  2678. fi
  2679. if test -z "$CC"; then
  2680. # Extract the first word of "cc", so it can be a program name with args.
  2681. set dummy cc; ac_word=$2
  2682. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2683. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2684. if test "${ac_cv_prog_CC+set}" = set; then
  2685. echo $ECHO_N "(cached) $ECHO_C" >&6
  2686. else
  2687. if test -n "$CC"; then
  2688. ac_cv_prog_CC="$CC" # Let the user override the test.
  2689. else
  2690. ac_prog_rejected=no
  2691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2692. for as_dir in $PATH
  2693. do
  2694. IFS=$as_save_IFS
  2695. test -z "$as_dir" && as_dir=.
  2696. for ac_exec_ext in '' $ac_executable_extensions; do
  2697. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2698. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2699. ac_prog_rejected=yes
  2700. continue
  2701. fi
  2702. ac_cv_prog_CC="cc"
  2703. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2704. break 2
  2705. fi
  2706. done
  2707. done
  2708. if test $ac_prog_rejected = yes; then
  2709. # We found a bogon in the path, so make sure we never use it.
  2710. set dummy $ac_cv_prog_CC
  2711. shift
  2712. if test $# != 0; then
  2713. # We chose a different compiler from the bogus one.
  2714. # However, it has the same basename, so the bogon will be chosen
  2715. # first if we set CC to just the basename; use the full file name.
  2716. shift
  2717. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2718. fi
  2719. fi
  2720. fi
  2721. fi
  2722. CC=$ac_cv_prog_CC
  2723. if test -n "$CC"; then
  2724. echo "$as_me:$LINENO: result: $CC" >&5
  2725. echo "${ECHO_T}$CC" >&6
  2726. else
  2727. echo "$as_me:$LINENO: result: no" >&5
  2728. echo "${ECHO_T}no" >&6
  2729. fi
  2730. fi
  2731. if test -z "$CC"; then
  2732. if test -n "$ac_tool_prefix"; then
  2733. for ac_prog in cl
  2734. do
  2735. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2736. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2737. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2738. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2739. if test "${ac_cv_prog_CC+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. if test -n "$CC"; then
  2743. ac_cv_prog_CC="$CC" # Let the user override the test.
  2744. else
  2745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2746. for as_dir in $PATH
  2747. do
  2748. IFS=$as_save_IFS
  2749. test -z "$as_dir" && as_dir=.
  2750. for ac_exec_ext in '' $ac_executable_extensions; do
  2751. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2752. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2753. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2754. break 2
  2755. fi
  2756. done
  2757. done
  2758. fi
  2759. fi
  2760. CC=$ac_cv_prog_CC
  2761. if test -n "$CC"; then
  2762. echo "$as_me:$LINENO: result: $CC" >&5
  2763. echo "${ECHO_T}$CC" >&6
  2764. else
  2765. echo "$as_me:$LINENO: result: no" >&5
  2766. echo "${ECHO_T}no" >&6
  2767. fi
  2768. test -n "$CC" && break
  2769. done
  2770. fi
  2771. if test -z "$CC"; then
  2772. ac_ct_CC=$CC
  2773. for ac_prog in cl
  2774. do
  2775. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2776. set dummy $ac_prog; ac_word=$2
  2777. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2778. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2779. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2780. echo $ECHO_N "(cached) $ECHO_C" >&6
  2781. else
  2782. if test -n "$ac_ct_CC"; then
  2783. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2784. else
  2785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2786. for as_dir in $PATH
  2787. do
  2788. IFS=$as_save_IFS
  2789. test -z "$as_dir" && as_dir=.
  2790. for ac_exec_ext in '' $ac_executable_extensions; do
  2791. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2792. ac_cv_prog_ac_ct_CC="$ac_prog"
  2793. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2794. break 2
  2795. fi
  2796. done
  2797. done
  2798. fi
  2799. fi
  2800. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2801. if test -n "$ac_ct_CC"; then
  2802. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2803. echo "${ECHO_T}$ac_ct_CC" >&6
  2804. else
  2805. echo "$as_me:$LINENO: result: no" >&5
  2806. echo "${ECHO_T}no" >&6
  2807. fi
  2808. test -n "$ac_ct_CC" && break
  2809. done
  2810. CC=$ac_ct_CC
  2811. fi
  2812. fi
  2813. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2814. See \`config.log' for more details." >&5
  2815. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2816. See \`config.log' for more details." >&2;}
  2817. { (exit 1); exit 1; }; }
  2818. # Provide some information about the compiler.
  2819. echo "$as_me:$LINENO:" \
  2820. "checking for C compiler version" >&5
  2821. ac_compiler=`set X $ac_compile; echo $2`
  2822. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2823. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2824. ac_status=$?
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); }
  2827. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2828. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2829. ac_status=$?
  2830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2831. (exit $ac_status); }
  2832. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2833. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2834. ac_status=$?
  2835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836. (exit $ac_status); }
  2837. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2838. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2839. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2840. echo $ECHO_N "(cached) $ECHO_C" >&6
  2841. else
  2842. cat >conftest.$ac_ext <<_ACEOF
  2843. /* confdefs.h. */
  2844. _ACEOF
  2845. cat confdefs.h >>conftest.$ac_ext
  2846. cat >>conftest.$ac_ext <<_ACEOF
  2847. /* end confdefs.h. */
  2848. int
  2849. main ()
  2850. {
  2851. #ifndef __GNUC__
  2852. choke me
  2853. #endif
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. rm -f conftest.$ac_objext
  2859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2860. (eval $ac_compile) 2>conftest.er1
  2861. ac_status=$?
  2862. grep -v '^ *+' conftest.er1 >conftest.err
  2863. rm -f conftest.er1
  2864. cat conftest.err >&5
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); } &&
  2867. { ac_try='test -z "$ac_c_werror_flag"
  2868. || test ! -s conftest.err'
  2869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2870. (eval $ac_try) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; } &&
  2874. { ac_try='test -s conftest.$ac_objext'
  2875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2876. (eval $ac_try) 2>&5
  2877. ac_status=$?
  2878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2879. (exit $ac_status); }; }; then
  2880. ac_compiler_gnu=yes
  2881. else
  2882. echo "$as_me: failed program was:" >&5
  2883. sed 's/^/| /' conftest.$ac_ext >&5
  2884. ac_compiler_gnu=no
  2885. fi
  2886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2887. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2888. fi
  2889. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2890. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2891. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2892. ac_test_CFLAGS=${CFLAGS+set}
  2893. ac_save_CFLAGS=$CFLAGS
  2894. CFLAGS="-g"
  2895. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2896. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2897. if test "${ac_cv_prog_cc_g+set}" = set; then
  2898. echo $ECHO_N "(cached) $ECHO_C" >&6
  2899. else
  2900. cat >conftest.$ac_ext <<_ACEOF
  2901. /* confdefs.h. */
  2902. _ACEOF
  2903. cat confdefs.h >>conftest.$ac_ext
  2904. cat >>conftest.$ac_ext <<_ACEOF
  2905. /* end confdefs.h. */
  2906. int
  2907. main ()
  2908. {
  2909. ;
  2910. return 0;
  2911. }
  2912. _ACEOF
  2913. rm -f conftest.$ac_objext
  2914. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2915. (eval $ac_compile) 2>conftest.er1
  2916. ac_status=$?
  2917. grep -v '^ *+' conftest.er1 >conftest.err
  2918. rm -f conftest.er1
  2919. cat conftest.err >&5
  2920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); } &&
  2922. { ac_try='test -z "$ac_c_werror_flag"
  2923. || test ! -s conftest.err'
  2924. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2925. (eval $ac_try) 2>&5
  2926. ac_status=$?
  2927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2928. (exit $ac_status); }; } &&
  2929. { ac_try='test -s conftest.$ac_objext'
  2930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2931. (eval $ac_try) 2>&5
  2932. ac_status=$?
  2933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934. (exit $ac_status); }; }; then
  2935. ac_cv_prog_cc_g=yes
  2936. else
  2937. echo "$as_me: failed program was:" >&5
  2938. sed 's/^/| /' conftest.$ac_ext >&5
  2939. ac_cv_prog_cc_g=no
  2940. fi
  2941. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2942. fi
  2943. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2944. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2945. if test "$ac_test_CFLAGS" = set; then
  2946. CFLAGS=$ac_save_CFLAGS
  2947. elif test $ac_cv_prog_cc_g = yes; then
  2948. if test "$GCC" = yes; then
  2949. CFLAGS="-g -O2"
  2950. else
  2951. CFLAGS="-g"
  2952. fi
  2953. else
  2954. if test "$GCC" = yes; then
  2955. CFLAGS="-O2"
  2956. else
  2957. CFLAGS=
  2958. fi
  2959. fi
  2960. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2961. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2962. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2963. echo $ECHO_N "(cached) $ECHO_C" >&6
  2964. else
  2965. ac_cv_prog_cc_stdc=no
  2966. ac_save_CC=$CC
  2967. cat >conftest.$ac_ext <<_ACEOF
  2968. /* confdefs.h. */
  2969. _ACEOF
  2970. cat confdefs.h >>conftest.$ac_ext
  2971. cat >>conftest.$ac_ext <<_ACEOF
  2972. /* end confdefs.h. */
  2973. #include <stdarg.h>
  2974. #include <stdio.h>
  2975. #include <sys/types.h>
  2976. #include <sys/stat.h>
  2977. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2978. struct buf { int x; };
  2979. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2980. static char *e (p, i)
  2981. char **p;
  2982. int i;
  2983. {
  2984. return p[i];
  2985. }
  2986. static char *f (char * (*g) (char **, int), char **p, ...)
  2987. {
  2988. char *s;
  2989. va_list v;
  2990. va_start (v,p);
  2991. s = g (p, va_arg (v,int));
  2992. va_end (v);
  2993. return s;
  2994. }
  2995. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2996. function prototypes and stuff, but not '\xHH' hex character constants.
  2997. These don't provoke an error unfortunately, instead are silently treated
  2998. as 'x'. The following induces an error, until -std1 is added to get
  2999. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3000. array size at least. It's necessary to write '\x00'==0 to get something
  3001. that's true only with -std1. */
  3002. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3003. int test (int i, double x);
  3004. struct s1 {int (*f) (int a);};
  3005. struct s2 {int (*f) (double a);};
  3006. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3007. int argc;
  3008. char **argv;
  3009. int
  3010. main ()
  3011. {
  3012. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3013. ;
  3014. return 0;
  3015. }
  3016. _ACEOF
  3017. # Don't try gcc -ansi; that turns off useful extensions and
  3018. # breaks some systems' header files.
  3019. # AIX -qlanglvl=ansi
  3020. # Ultrix and OSF/1 -std1
  3021. # HP-UX 10.20 and later -Ae
  3022. # HP-UX older versions -Aa -D_HPUX_SOURCE
  3023. # SVR4 -Xc -D__EXTENSIONS__
  3024. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3025. do
  3026. CC="$ac_save_CC $ac_arg"
  3027. rm -f conftest.$ac_objext
  3028. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3029. (eval $ac_compile) 2>conftest.er1
  3030. ac_status=$?
  3031. grep -v '^ *+' conftest.er1 >conftest.err
  3032. rm -f conftest.er1
  3033. cat conftest.err >&5
  3034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3035. (exit $ac_status); } &&
  3036. { ac_try='test -z "$ac_c_werror_flag"
  3037. || test ! -s conftest.err'
  3038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3039. (eval $ac_try) 2>&5
  3040. ac_status=$?
  3041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3042. (exit $ac_status); }; } &&
  3043. { ac_try='test -s conftest.$ac_objext'
  3044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3045. (eval $ac_try) 2>&5
  3046. ac_status=$?
  3047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3048. (exit $ac_status); }; }; then
  3049. ac_cv_prog_cc_stdc=$ac_arg
  3050. break
  3051. else
  3052. echo "$as_me: failed program was:" >&5
  3053. sed 's/^/| /' conftest.$ac_ext >&5
  3054. fi
  3055. rm -f conftest.err conftest.$ac_objext
  3056. done
  3057. rm -f conftest.$ac_ext conftest.$ac_objext
  3058. CC=$ac_save_CC
  3059. fi
  3060. case "x$ac_cv_prog_cc_stdc" in
  3061. x|xno)
  3062. echo "$as_me:$LINENO: result: none needed" >&5
  3063. echo "${ECHO_T}none needed" >&6 ;;
  3064. *)
  3065. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3066. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3067. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3068. esac
  3069. # Some people use a C++ compiler to compile C. Since we use `exit',
  3070. # in C++ we need to declare it. In case someone uses the same compiler
  3071. # for both compiling C and C++ we need to have the C++ compiler decide
  3072. # the declaration of exit, since it's the most demanding environment.
  3073. cat >conftest.$ac_ext <<_ACEOF
  3074. #ifndef __cplusplus
  3075. choke me
  3076. #endif
  3077. _ACEOF
  3078. rm -f conftest.$ac_objext
  3079. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3080. (eval $ac_compile) 2>conftest.er1
  3081. ac_status=$?
  3082. grep -v '^ *+' conftest.er1 >conftest.err
  3083. rm -f conftest.er1
  3084. cat conftest.err >&5
  3085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); } &&
  3087. { ac_try='test -z "$ac_c_werror_flag"
  3088. || test ! -s conftest.err'
  3089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3090. (eval $ac_try) 2>&5
  3091. ac_status=$?
  3092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3093. (exit $ac_status); }; } &&
  3094. { ac_try='test -s conftest.$ac_objext'
  3095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3096. (eval $ac_try) 2>&5
  3097. ac_status=$?
  3098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3099. (exit $ac_status); }; }; then
  3100. for ac_declaration in \
  3101. '' \
  3102. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3103. 'extern "C" void std::exit (int); using std::exit;' \
  3104. 'extern "C" void exit (int) throw ();' \
  3105. 'extern "C" void exit (int);' \
  3106. 'void exit (int);'
  3107. do
  3108. cat >conftest.$ac_ext <<_ACEOF
  3109. /* confdefs.h. */
  3110. _ACEOF
  3111. cat confdefs.h >>conftest.$ac_ext
  3112. cat >>conftest.$ac_ext <<_ACEOF
  3113. /* end confdefs.h. */
  3114. $ac_declaration
  3115. #include <stdlib.h>
  3116. int
  3117. main ()
  3118. {
  3119. exit (42);
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. rm -f conftest.$ac_objext
  3125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3126. (eval $ac_compile) 2>conftest.er1
  3127. ac_status=$?
  3128. grep -v '^ *+' conftest.er1 >conftest.err
  3129. rm -f conftest.er1
  3130. cat conftest.err >&5
  3131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3132. (exit $ac_status); } &&
  3133. { ac_try='test -z "$ac_c_werror_flag"
  3134. || test ! -s conftest.err'
  3135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3136. (eval $ac_try) 2>&5
  3137. ac_status=$?
  3138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3139. (exit $ac_status); }; } &&
  3140. { ac_try='test -s conftest.$ac_objext'
  3141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3142. (eval $ac_try) 2>&5
  3143. ac_status=$?
  3144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3145. (exit $ac_status); }; }; then
  3146. :
  3147. else
  3148. echo "$as_me: failed program was:" >&5
  3149. sed 's/^/| /' conftest.$ac_ext >&5
  3150. continue
  3151. fi
  3152. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3153. cat >conftest.$ac_ext <<_ACEOF
  3154. /* confdefs.h. */
  3155. _ACEOF
  3156. cat confdefs.h >>conftest.$ac_ext
  3157. cat >>conftest.$ac_ext <<_ACEOF
  3158. /* end confdefs.h. */
  3159. $ac_declaration
  3160. int
  3161. main ()
  3162. {
  3163. exit (42);
  3164. ;
  3165. return 0;
  3166. }
  3167. _ACEOF
  3168. rm -f conftest.$ac_objext
  3169. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3170. (eval $ac_compile) 2>conftest.er1
  3171. ac_status=$?
  3172. grep -v '^ *+' conftest.er1 >conftest.err
  3173. rm -f conftest.er1
  3174. cat conftest.err >&5
  3175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3176. (exit $ac_status); } &&
  3177. { ac_try='test -z "$ac_c_werror_flag"
  3178. || test ! -s conftest.err'
  3179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3180. (eval $ac_try) 2>&5
  3181. ac_status=$?
  3182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3183. (exit $ac_status); }; } &&
  3184. { ac_try='test -s conftest.$ac_objext'
  3185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3186. (eval $ac_try) 2>&5
  3187. ac_status=$?
  3188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3189. (exit $ac_status); }; }; then
  3190. break
  3191. else
  3192. echo "$as_me: failed program was:" >&5
  3193. sed 's/^/| /' conftest.$ac_ext >&5
  3194. fi
  3195. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3196. done
  3197. rm -f conftest*
  3198. if test -n "$ac_declaration"; then
  3199. echo '#ifdef __cplusplus' >>confdefs.h
  3200. echo $ac_declaration >>confdefs.h
  3201. echo '#endif' >>confdefs.h
  3202. fi
  3203. else
  3204. echo "$as_me: failed program was:" >&5
  3205. sed 's/^/| /' conftest.$ac_ext >&5
  3206. fi
  3207. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. ac_ext=c
  3209. ac_cpp='$CPP $CPPFLAGS'
  3210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3213. depcc="$CC" am_compiler_list=
  3214. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3215. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3216. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3217. echo $ECHO_N "(cached) $ECHO_C" >&6
  3218. else
  3219. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3220. # We make a subdir and do the tests there. Otherwise we can end up
  3221. # making bogus files that we don't know about and never remove. For
  3222. # instance it was reported that on HP-UX the gcc test will end up
  3223. # making a dummy file named `D' -- because `-MD' means `put the output
  3224. # in D'.
  3225. mkdir conftest.dir
  3226. # Copy depcomp to subdir because otherwise we won't find it if we're
  3227. # using a relative directory.
  3228. cp "$am_depcomp" conftest.dir
  3229. cd conftest.dir
  3230. # We will build objects and dependencies in a subdirectory because
  3231. # it helps to detect inapplicable dependency modes. For instance
  3232. # both Tru64's cc and ICC support -MD to output dependencies as a
  3233. # side effect of compilation, but ICC will put the dependencies in
  3234. # the current directory while Tru64 will put them in the object
  3235. # directory.
  3236. mkdir sub
  3237. am_cv_CC_dependencies_compiler_type=none
  3238. if test "$am_compiler_list" = ""; then
  3239. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3240. fi
  3241. for depmode in $am_compiler_list; do
  3242. # Setup a source with many dependencies, because some compilers
  3243. # like to wrap large dependency lists on column 80 (with \), and
  3244. # we should not choose a depcomp mode which is confused by this.
  3245. #
  3246. # We need to recreate these files for each test, as the compiler may
  3247. # overwrite some of them when testing with obscure command lines.
  3248. # This happens at least with the AIX C compiler.
  3249. : > sub/conftest.c
  3250. for i in 1 2 3 4 5 6; do
  3251. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3252. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3253. # Solaris 8's {/usr,}/bin/sh.
  3254. touch sub/conftst$i.h
  3255. done
  3256. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3257. case $depmode in
  3258. nosideeffect)
  3259. # after this tag, mechanisms are not by side-effect, so they'll
  3260. # only be used when explicitly requested
  3261. if test "x$enable_dependency_tracking" = xyes; then
  3262. continue
  3263. else
  3264. break
  3265. fi
  3266. ;;
  3267. none) break ;;
  3268. esac
  3269. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3270. # mode. It turns out that the SunPro C++ compiler does not properly
  3271. # handle `-M -o', and we need to detect this.
  3272. if depmode=$depmode \
  3273. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3274. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3275. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3276. >/dev/null 2>conftest.err &&
  3277. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3278. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3279. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3280. # icc doesn't choke on unknown options, it will just issue warnings
  3281. # or remarks (even with -Werror). So we grep stderr for any message
  3282. # that says an option was ignored or not supported.
  3283. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3284. # icc: Command line warning: ignoring option '-M'; no argument required
  3285. # The diagnosis changed in icc 8.0:
  3286. # icc: Command line remark: option '-MP' not supported
  3287. if (grep 'ignoring option' conftest.err ||
  3288. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3289. am_cv_CC_dependencies_compiler_type=$depmode
  3290. break
  3291. fi
  3292. fi
  3293. done
  3294. cd ..
  3295. rm -rf conftest.dir
  3296. else
  3297. am_cv_CC_dependencies_compiler_type=none
  3298. fi
  3299. fi
  3300. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3301. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3302. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3303. if
  3304. test "x$enable_dependency_tracking" != xno \
  3305. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3306. am__fastdepCC_TRUE=
  3307. am__fastdepCC_FALSE='#'
  3308. else
  3309. am__fastdepCC_TRUE='#'
  3310. am__fastdepCC_FALSE=
  3311. fi
  3312. if test "x$CC" != xcc; then
  3313. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3314. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3315. else
  3316. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3317. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3318. fi
  3319. set dummy $CC; ac_cc=`echo $2 |
  3320. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3321. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3322. echo $ECHO_N "(cached) $ECHO_C" >&6
  3323. else
  3324. cat >conftest.$ac_ext <<_ACEOF
  3325. /* confdefs.h. */
  3326. _ACEOF
  3327. cat confdefs.h >>conftest.$ac_ext
  3328. cat >>conftest.$ac_ext <<_ACEOF
  3329. /* end confdefs.h. */
  3330. int
  3331. main ()
  3332. {
  3333. ;
  3334. return 0;
  3335. }
  3336. _ACEOF
  3337. # Make sure it works both with $CC and with simple cc.
  3338. # We do the test twice because some compilers refuse to overwrite an
  3339. # existing .o file with -o, though they will create one.
  3340. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3341. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3342. (eval $ac_try) 2>&5
  3343. ac_status=$?
  3344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3345. (exit $ac_status); } &&
  3346. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3347. (eval $ac_try) 2>&5
  3348. ac_status=$?
  3349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3350. (exit $ac_status); };
  3351. then
  3352. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3353. if test "x$CC" != xcc; then
  3354. # Test first that cc exists at all.
  3355. if { ac_try='cc -c conftest.$ac_ext >&5'
  3356. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3357. (eval $ac_try) 2>&5
  3358. ac_status=$?
  3359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3360. (exit $ac_status); }; }; then
  3361. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3362. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3363. (eval $ac_try) 2>&5
  3364. ac_status=$?
  3365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3366. (exit $ac_status); } &&
  3367. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3368. (eval $ac_try) 2>&5
  3369. ac_status=$?
  3370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3371. (exit $ac_status); };
  3372. then
  3373. # cc works too.
  3374. :
  3375. else
  3376. # cc exists but doesn't like -o.
  3377. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3378. fi
  3379. fi
  3380. fi
  3381. else
  3382. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3383. fi
  3384. rm -f conftest*
  3385. fi
  3386. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3387. echo "$as_me:$LINENO: result: yes" >&5
  3388. echo "${ECHO_T}yes" >&6
  3389. else
  3390. echo "$as_me:$LINENO: result: no" >&5
  3391. echo "${ECHO_T}no" >&6
  3392. cat >>confdefs.h <<\_ACEOF
  3393. #define NO_MINUS_C_MINUS_O 1
  3394. _ACEOF
  3395. fi
  3396. # FIXME: we rely on the cache variable name because
  3397. # there is no other way.
  3398. set dummy $CC
  3399. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3400. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3401. # Losing compiler, so override with the script.
  3402. # FIXME: It is wrong to rewrite CC.
  3403. # But if we don't then we get into trouble of one sort or another.
  3404. # A longer-term fix would be to have automake use am__CC in this case,
  3405. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3406. CC="$am_aux_dir/compile $CC"
  3407. fi
  3408. # By default we simply use the C compiler to build assembly code.
  3409. test "${CCAS+set}" = set || CCAS=$CC
  3410. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3411. # disable static libs by default - we only use a couple
  3412. # Check whether --enable-static or --disable-static was given.
  3413. if test "${enable_static+set}" = set; then
  3414. enableval="$enable_static"
  3415. p=${PACKAGE-default}
  3416. case $enableval in
  3417. yes) enable_static=yes ;;
  3418. no) enable_static=no ;;
  3419. *)
  3420. enable_static=no
  3421. # Look at the argument we got. We use all the common list separators.
  3422. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3423. for pkg in $enableval; do
  3424. IFS="$lt_save_ifs"
  3425. if test "X$pkg" = "X$p"; then
  3426. enable_static=yes
  3427. fi
  3428. done
  3429. IFS="$lt_save_ifs"
  3430. ;;
  3431. esac
  3432. else
  3433. enable_static=no
  3434. fi;
  3435. # Check whether --enable-shared or --disable-shared was given.
  3436. if test "${enable_shared+set}" = set; then
  3437. enableval="$enable_shared"
  3438. p=${PACKAGE-default}
  3439. case $enableval in
  3440. yes) enable_shared=yes ;;
  3441. no) enable_shared=no ;;
  3442. *)
  3443. enable_shared=no
  3444. # Look at the argument we got. We use all the common list separators.
  3445. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3446. for pkg in $enableval; do
  3447. IFS="$lt_save_ifs"
  3448. if test "X$pkg" = "X$p"; then
  3449. enable_shared=yes
  3450. fi
  3451. done
  3452. IFS="$lt_save_ifs"
  3453. ;;
  3454. esac
  3455. else
  3456. enable_shared=yes
  3457. fi;
  3458. # Check whether --enable-fast-install or --disable-fast-install was given.
  3459. if test "${enable_fast_install+set}" = set; then
  3460. enableval="$enable_fast_install"
  3461. p=${PACKAGE-default}
  3462. case $enableval in
  3463. yes) enable_fast_install=yes ;;
  3464. no) enable_fast_install=no ;;
  3465. *)
  3466. enable_fast_install=no
  3467. # Look at the argument we got. We use all the common list separators.
  3468. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3469. for pkg in $enableval; do
  3470. IFS="$lt_save_ifs"
  3471. if test "X$pkg" = "X$p"; then
  3472. enable_fast_install=yes
  3473. fi
  3474. done
  3475. IFS="$lt_save_ifs"
  3476. ;;
  3477. esac
  3478. else
  3479. enable_fast_install=yes
  3480. fi;
  3481. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3482. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3483. if test "${lt_cv_path_SED+set}" = set; then
  3484. echo $ECHO_N "(cached) $ECHO_C" >&6
  3485. else
  3486. # Loop through the user's path and test for sed and gsed.
  3487. # Then use that list of sed's as ones to test for truncation.
  3488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3489. for as_dir in $PATH
  3490. do
  3491. IFS=$as_save_IFS
  3492. test -z "$as_dir" && as_dir=.
  3493. for lt_ac_prog in sed gsed; do
  3494. for ac_exec_ext in '' $ac_executable_extensions; do
  3495. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3496. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3497. fi
  3498. done
  3499. done
  3500. done
  3501. IFS=$as_save_IFS
  3502. lt_ac_max=0
  3503. lt_ac_count=0
  3504. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3505. # along with /bin/sed that truncates output.
  3506. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3507. test ! -f $lt_ac_sed && continue
  3508. cat /dev/null > conftest.in
  3509. lt_ac_count=0
  3510. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3511. # Check for GNU sed and select it if it is found.
  3512. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3513. lt_cv_path_SED=$lt_ac_sed
  3514. break
  3515. fi
  3516. while true; do
  3517. cat conftest.in conftest.in >conftest.tmp
  3518. mv conftest.tmp conftest.in
  3519. cp conftest.in conftest.nl
  3520. echo >>conftest.nl
  3521. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3522. cmp -s conftest.out conftest.nl || break
  3523. # 10000 chars as input seems more than enough
  3524. test $lt_ac_count -gt 10 && break
  3525. lt_ac_count=`expr $lt_ac_count + 1`
  3526. if test $lt_ac_count -gt $lt_ac_max; then
  3527. lt_ac_max=$lt_ac_count
  3528. lt_cv_path_SED=$lt_ac_sed
  3529. fi
  3530. done
  3531. done
  3532. fi
  3533. SED=$lt_cv_path_SED
  3534. echo "$as_me:$LINENO: result: $SED" >&5
  3535. echo "${ECHO_T}$SED" >&6
  3536. echo "$as_me:$LINENO: checking for egrep" >&5
  3537. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3538. if test "${ac_cv_prog_egrep+set}" = set; then
  3539. echo $ECHO_N "(cached) $ECHO_C" >&6
  3540. else
  3541. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3542. then ac_cv_prog_egrep='grep -E'
  3543. else ac_cv_prog_egrep='egrep'
  3544. fi
  3545. fi
  3546. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3547. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3548. EGREP=$ac_cv_prog_egrep
  3549. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3550. if test "${with_gnu_ld+set}" = set; then
  3551. withval="$with_gnu_ld"
  3552. test "$withval" = no || with_gnu_ld=yes
  3553. else
  3554. with_gnu_ld=no
  3555. fi;
  3556. ac_prog=ld
  3557. if test "$GCC" = yes; then
  3558. # Check if gcc -print-prog-name=ld gives a path.
  3559. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3560. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3561. case $host in
  3562. *-*-mingw*)
  3563. # gcc leaves a trailing carriage return which upsets mingw
  3564. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3565. *)
  3566. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3567. esac
  3568. case $ac_prog in
  3569. # Accept absolute paths.
  3570. [\\/]* | ?:[\\/]*)
  3571. re_direlt='/[^/][^/]*/\.\./'
  3572. # Canonicalize the pathname of ld
  3573. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3574. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3575. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3576. done
  3577. test -z "$LD" && LD="$ac_prog"
  3578. ;;
  3579. "")
  3580. # If it fails, then pretend we aren't using GCC.
  3581. ac_prog=ld
  3582. ;;
  3583. *)
  3584. # If it is relative, then search for the first ld in PATH.
  3585. with_gnu_ld=unknown
  3586. ;;
  3587. esac
  3588. elif test "$with_gnu_ld" = yes; then
  3589. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3590. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3591. else
  3592. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3593. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3594. fi
  3595. if test "${lt_cv_path_LD+set}" = set; then
  3596. echo $ECHO_N "(cached) $ECHO_C" >&6
  3597. else
  3598. if test -z "$LD"; then
  3599. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3600. for ac_dir in $PATH; do
  3601. IFS="$lt_save_ifs"
  3602. test -z "$ac_dir" && ac_dir=.
  3603. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3604. lt_cv_path_LD="$ac_dir/$ac_prog"
  3605. # Check to see if the program is GNU ld. I'd rather use --version,
  3606. # but apparently some variants of GNU ld only accept -v.
  3607. # Break only if it was the GNU/non-GNU ld that we prefer.
  3608. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3609. *GNU* | *'with BFD'*)
  3610. test "$with_gnu_ld" != no && break
  3611. ;;
  3612. *)
  3613. test "$with_gnu_ld" != yes && break
  3614. ;;
  3615. esac
  3616. fi
  3617. done
  3618. IFS="$lt_save_ifs"
  3619. else
  3620. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3621. fi
  3622. fi
  3623. LD="$lt_cv_path_LD"
  3624. if test -n "$LD"; then
  3625. echo "$as_me:$LINENO: result: $LD" >&5
  3626. echo "${ECHO_T}$LD" >&6
  3627. else
  3628. echo "$as_me:$LINENO: result: no" >&5
  3629. echo "${ECHO_T}no" >&6
  3630. fi
  3631. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3632. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3633. { (exit 1); exit 1; }; }
  3634. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3635. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3636. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3637. echo $ECHO_N "(cached) $ECHO_C" >&6
  3638. else
  3639. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3640. case `$LD -v 2>&1 </dev/null` in
  3641. *GNU* | *'with BFD'*)
  3642. lt_cv_prog_gnu_ld=yes
  3643. ;;
  3644. *)
  3645. lt_cv_prog_gnu_ld=no
  3646. ;;
  3647. esac
  3648. fi
  3649. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3650. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3651. with_gnu_ld=$lt_cv_prog_gnu_ld
  3652. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3653. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3654. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3655. echo $ECHO_N "(cached) $ECHO_C" >&6
  3656. else
  3657. lt_cv_ld_reload_flag='-r'
  3658. fi
  3659. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3660. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3661. reload_flag=$lt_cv_ld_reload_flag
  3662. case $reload_flag in
  3663. "" | " "*) ;;
  3664. *) reload_flag=" $reload_flag" ;;
  3665. esac
  3666. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3667. case $host_os in
  3668. darwin*)
  3669. if test "$GCC" = yes; then
  3670. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3671. else
  3672. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3673. fi
  3674. ;;
  3675. esac
  3676. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3677. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3678. if test "${lt_cv_path_NM+set}" = set; then
  3679. echo $ECHO_N "(cached) $ECHO_C" >&6
  3680. else
  3681. if test -n "$NM"; then
  3682. # Let the user override the test.
  3683. lt_cv_path_NM="$NM"
  3684. else
  3685. lt_nm_to_check="${ac_tool_prefix}nm"
  3686. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3687. lt_nm_to_check="$lt_nm_to_check nm"
  3688. fi
  3689. for lt_tmp_nm in $lt_nm_to_check; do
  3690. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3691. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3692. IFS="$lt_save_ifs"
  3693. test -z "$ac_dir" && ac_dir=.
  3694. tmp_nm="$ac_dir/$lt_tmp_nm"
  3695. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3696. # Check to see if the nm accepts a BSD-compat flag.
  3697. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3698. # nm: unknown option "B" ignored
  3699. # Tru64's nm complains that /dev/null is an invalid object file
  3700. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3701. */dev/null* | *'Invalid file or object type'*)
  3702. lt_cv_path_NM="$tmp_nm -B"
  3703. break
  3704. ;;
  3705. *)
  3706. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3707. */dev/null*)
  3708. lt_cv_path_NM="$tmp_nm -p"
  3709. break
  3710. ;;
  3711. *)
  3712. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3713. continue # so that we can try to find one that supports BSD flags
  3714. ;;
  3715. esac
  3716. ;;
  3717. esac
  3718. fi
  3719. done
  3720. IFS="$lt_save_ifs"
  3721. done
  3722. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3723. fi
  3724. fi
  3725. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3726. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3727. NM="$lt_cv_path_NM"
  3728. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3729. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3730. LN_S=$as_ln_s
  3731. if test "$LN_S" = "ln -s"; then
  3732. echo "$as_me:$LINENO: result: yes" >&5
  3733. echo "${ECHO_T}yes" >&6
  3734. else
  3735. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3736. echo "${ECHO_T}no, using $LN_S" >&6
  3737. fi
  3738. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3739. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3740. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3741. echo $ECHO_N "(cached) $ECHO_C" >&6
  3742. else
  3743. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3744. lt_cv_file_magic_test_file=
  3745. lt_cv_deplibs_check_method='unknown'
  3746. # Need to set the preceding variable on all platforms that support
  3747. # interlibrary dependencies.
  3748. # 'none' -- dependencies not supported.
  3749. # `unknown' -- same as none, but documents that we really don't know.
  3750. # 'pass_all' -- all dependencies passed with no checks.
  3751. # 'test_compile' -- check by making test program.
  3752. # 'file_magic [[regex]]' -- check by looking for files in library path
  3753. # which responds to the $file_magic_cmd with a given extended regex.
  3754. # If you have `file' or equivalent on your system and you're not sure
  3755. # whether `pass_all' will *always* work, you probably want this one.
  3756. case $host_os in
  3757. aix4* | aix5*)
  3758. lt_cv_deplibs_check_method=pass_all
  3759. ;;
  3760. beos*)
  3761. lt_cv_deplibs_check_method=pass_all
  3762. ;;
  3763. bsdi[45]*)
  3764. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3765. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3766. lt_cv_file_magic_test_file=/shlib/libc.so
  3767. ;;
  3768. cygwin*)
  3769. # func_win32_libid is a shell function defined in ltmain.sh
  3770. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3771. lt_cv_file_magic_cmd='func_win32_libid'
  3772. ;;
  3773. mingw* | pw32*)
  3774. # Base MSYS/MinGW do not provide the 'file' command needed by
  3775. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3776. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3777. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3778. ;;
  3779. darwin* | rhapsody*)
  3780. lt_cv_deplibs_check_method=pass_all
  3781. ;;
  3782. freebsd* | kfreebsd*-gnu | dragonfly*)
  3783. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3784. case $host_cpu in
  3785. i*86 )
  3786. # Not sure whether the presence of OpenBSD here was a mistake.
  3787. # Let's accept both of them until this is cleared up.
  3788. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3789. lt_cv_file_magic_cmd=/usr/bin/file
  3790. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3791. ;;
  3792. esac
  3793. else
  3794. lt_cv_deplibs_check_method=pass_all
  3795. fi
  3796. ;;
  3797. gnu*)
  3798. lt_cv_deplibs_check_method=pass_all
  3799. ;;
  3800. hpux10.20* | hpux11*)
  3801. lt_cv_file_magic_cmd=/usr/bin/file
  3802. case $host_cpu in
  3803. ia64*)
  3804. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3805. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3806. ;;
  3807. hppa*64*)
  3808. 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]'
  3809. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3810. ;;
  3811. *)
  3812. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3813. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3814. ;;
  3815. esac
  3816. ;;
  3817. interix3*)
  3818. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3819. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3820. ;;
  3821. irix5* | irix6* | nonstopux*)
  3822. case $LD in
  3823. *-32|*"-32 ") libmagic=32-bit;;
  3824. *-n32|*"-n32 ") libmagic=N32;;
  3825. *-64|*"-64 ") libmagic=64-bit;;
  3826. *) libmagic=never-match;;
  3827. esac
  3828. lt_cv_deplibs_check_method=pass_all
  3829. ;;
  3830. # This must be Linux ELF.
  3831. linux*)
  3832. lt_cv_deplibs_check_method=pass_all
  3833. ;;
  3834. netbsd*)
  3835. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3836. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3837. else
  3838. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3839. fi
  3840. ;;
  3841. newos6*)
  3842. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3843. lt_cv_file_magic_cmd=/usr/bin/file
  3844. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3845. ;;
  3846. nto-qnx*)
  3847. lt_cv_deplibs_check_method=unknown
  3848. ;;
  3849. openbsd*)
  3850. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3851. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3852. else
  3853. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3854. fi
  3855. ;;
  3856. osf3* | osf4* | osf5*)
  3857. lt_cv_deplibs_check_method=pass_all
  3858. ;;
  3859. solaris*)
  3860. lt_cv_deplibs_check_method=pass_all
  3861. ;;
  3862. sysv4 | sysv4.3*)
  3863. case $host_vendor in
  3864. motorola)
  3865. 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]'
  3866. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3867. ;;
  3868. ncr)
  3869. lt_cv_deplibs_check_method=pass_all
  3870. ;;
  3871. sequent)
  3872. lt_cv_file_magic_cmd='/bin/file'
  3873. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3874. ;;
  3875. sni)
  3876. lt_cv_file_magic_cmd='/bin/file'
  3877. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3878. lt_cv_file_magic_test_file=/lib/libc.so
  3879. ;;
  3880. siemens)
  3881. lt_cv_deplibs_check_method=pass_all
  3882. ;;
  3883. pc)
  3884. lt_cv_deplibs_check_method=pass_all
  3885. ;;
  3886. esac
  3887. ;;
  3888. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3889. lt_cv_deplibs_check_method=pass_all
  3890. ;;
  3891. esac
  3892. fi
  3893. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3894. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3895. file_magic_cmd=$lt_cv_file_magic_cmd
  3896. deplibs_check_method=$lt_cv_deplibs_check_method
  3897. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3898. # If no C compiler was specified, use CC.
  3899. LTCC=${LTCC-"$CC"}
  3900. # If no C compiler flags were specified, use CFLAGS.
  3901. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3902. # Allow CC to be a program name with arguments.
  3903. compiler=$CC
  3904. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3905. if test "${enable_libtool_lock+set}" = set; then
  3906. enableval="$enable_libtool_lock"
  3907. fi;
  3908. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3909. # Some flags need to be propagated to the compiler or linker for good
  3910. # libtool support.
  3911. case $host in
  3912. ia64-*-hpux*)
  3913. # Find out which ABI we are using.
  3914. echo 'int i;' > conftest.$ac_ext
  3915. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3916. (eval $ac_compile) 2>&5
  3917. ac_status=$?
  3918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3919. (exit $ac_status); }; then
  3920. case `/usr/bin/file conftest.$ac_objext` in
  3921. *ELF-32*)
  3922. HPUX_IA64_MODE="32"
  3923. ;;
  3924. *ELF-64*)
  3925. HPUX_IA64_MODE="64"
  3926. ;;
  3927. esac
  3928. fi
  3929. rm -rf conftest*
  3930. ;;
  3931. *-*-irix6*)
  3932. # Find out which ABI we are using.
  3933. echo '#line 4362 "configure"' > 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. if test "$lt_cv_prog_gnu_ld" = yes; then
  3940. case `/usr/bin/file conftest.$ac_objext` in
  3941. *32-bit*)
  3942. LD="${LD-ld} -melf32bsmip"
  3943. ;;
  3944. *N32*)
  3945. LD="${LD-ld} -melf32bmipn32"
  3946. ;;
  3947. *64-bit*)
  3948. LD="${LD-ld} -melf64bmip"
  3949. ;;
  3950. esac
  3951. else
  3952. case `/usr/bin/file conftest.$ac_objext` in
  3953. *32-bit*)
  3954. LD="${LD-ld} -32"
  3955. ;;
  3956. *N32*)
  3957. LD="${LD-ld} -n32"
  3958. ;;
  3959. *64-bit*)
  3960. LD="${LD-ld} -64"
  3961. ;;
  3962. esac
  3963. fi
  3964. fi
  3965. rm -rf conftest*
  3966. ;;
  3967. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3968. # Find out which ABI we are using.
  3969. echo 'int i;' > conftest.$ac_ext
  3970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3971. (eval $ac_compile) 2>&5
  3972. ac_status=$?
  3973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974. (exit $ac_status); }; then
  3975. case `/usr/bin/file conftest.o` in
  3976. *32-bit*)
  3977. case $host in
  3978. x86_64-*linux*)
  3979. LD="${LD-ld} -m elf_i386"
  3980. ;;
  3981. ppc64-*linux*|powerpc64-*linux*)
  3982. LD="${LD-ld} -m elf32ppclinux"
  3983. ;;
  3984. s390x-*linux*)
  3985. LD="${LD-ld} -m elf_s390"
  3986. ;;
  3987. sparc64-*linux*)
  3988. LD="${LD-ld} -m elf32_sparc"
  3989. ;;
  3990. esac
  3991. ;;
  3992. *64-bit*)
  3993. case $host in
  3994. x86_64-*linux*)
  3995. LD="${LD-ld} -m elf_x86_64"
  3996. ;;
  3997. ppc*-*linux*|powerpc*-*linux*)
  3998. LD="${LD-ld} -m elf64ppc"
  3999. ;;
  4000. s390*-*linux*)
  4001. LD="${LD-ld} -m elf64_s390"
  4002. ;;
  4003. sparc*-*linux*)
  4004. LD="${LD-ld} -m elf64_sparc"
  4005. ;;
  4006. esac
  4007. ;;
  4008. esac
  4009. fi
  4010. rm -rf conftest*
  4011. ;;
  4012. *-*-sco3.2v5*)
  4013. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4014. SAVE_CFLAGS="$CFLAGS"
  4015. CFLAGS="$CFLAGS -belf"
  4016. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4017. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  4018. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4019. echo $ECHO_N "(cached) $ECHO_C" >&6
  4020. else
  4021. ac_ext=c
  4022. ac_cpp='$CPP $CPPFLAGS'
  4023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4026. cat >conftest.$ac_ext <<_ACEOF
  4027. /* confdefs.h. */
  4028. _ACEOF
  4029. cat confdefs.h >>conftest.$ac_ext
  4030. cat >>conftest.$ac_ext <<_ACEOF
  4031. /* end confdefs.h. */
  4032. int
  4033. main ()
  4034. {
  4035. ;
  4036. return 0;
  4037. }
  4038. _ACEOF
  4039. rm -f conftest.$ac_objext conftest$ac_exeext
  4040. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4041. (eval $ac_link) 2>conftest.er1
  4042. ac_status=$?
  4043. grep -v '^ *+' conftest.er1 >conftest.err
  4044. rm -f conftest.er1
  4045. cat conftest.err >&5
  4046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4047. (exit $ac_status); } &&
  4048. { ac_try='test -z "$ac_c_werror_flag"
  4049. || test ! -s conftest.err'
  4050. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4051. (eval $ac_try) 2>&5
  4052. ac_status=$?
  4053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4054. (exit $ac_status); }; } &&
  4055. { ac_try='test -s conftest$ac_exeext'
  4056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4057. (eval $ac_try) 2>&5
  4058. ac_status=$?
  4059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4060. (exit $ac_status); }; }; then
  4061. lt_cv_cc_needs_belf=yes
  4062. else
  4063. echo "$as_me: failed program was:" >&5
  4064. sed 's/^/| /' conftest.$ac_ext >&5
  4065. lt_cv_cc_needs_belf=no
  4066. fi
  4067. rm -f conftest.err conftest.$ac_objext \
  4068. conftest$ac_exeext conftest.$ac_ext
  4069. ac_ext=c
  4070. ac_cpp='$CPP $CPPFLAGS'
  4071. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4072. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4073. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4074. fi
  4075. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4076. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4077. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4078. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4079. CFLAGS="$SAVE_CFLAGS"
  4080. fi
  4081. ;;
  4082. sparc*-*solaris*)
  4083. # Find out which ABI we are using.
  4084. echo 'int i;' > conftest.$ac_ext
  4085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4086. (eval $ac_compile) 2>&5
  4087. ac_status=$?
  4088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4089. (exit $ac_status); }; then
  4090. case `/usr/bin/file conftest.o` in
  4091. *64-bit*)
  4092. case $lt_cv_prog_gnu_ld in
  4093. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4094. *) LD="${LD-ld} -64" ;;
  4095. esac
  4096. ;;
  4097. esac
  4098. fi
  4099. rm -rf conftest*
  4100. ;;
  4101. esac
  4102. need_locks="$enable_libtool_lock"
  4103. ac_ext=c
  4104. ac_cpp='$CPP $CPPFLAGS'
  4105. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4106. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4107. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4108. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4109. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4110. # On Suns, sometimes $CPP names a directory.
  4111. if test -n "$CPP" && test -d "$CPP"; then
  4112. CPP=
  4113. fi
  4114. if test -z "$CPP"; then
  4115. if test "${ac_cv_prog_CPP+set}" = set; then
  4116. echo $ECHO_N "(cached) $ECHO_C" >&6
  4117. else
  4118. # Double quotes because CPP needs to be expanded
  4119. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4120. do
  4121. ac_preproc_ok=false
  4122. for ac_c_preproc_warn_flag in '' yes
  4123. do
  4124. # Use a header file that comes with gcc, so configuring glibc
  4125. # with a fresh cross-compiler works.
  4126. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4127. # <limits.h> exists even on freestanding compilers.
  4128. # On the NeXT, cc -E runs the code through the compiler's parser,
  4129. # not just through cpp. "Syntax error" is here to catch this case.
  4130. cat >conftest.$ac_ext <<_ACEOF
  4131. /* confdefs.h. */
  4132. _ACEOF
  4133. cat confdefs.h >>conftest.$ac_ext
  4134. cat >>conftest.$ac_ext <<_ACEOF
  4135. /* end confdefs.h. */
  4136. #ifdef __STDC__
  4137. # include <limits.h>
  4138. #else
  4139. # include <assert.h>
  4140. #endif
  4141. Syntax error
  4142. _ACEOF
  4143. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4144. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4145. ac_status=$?
  4146. grep -v '^ *+' conftest.er1 >conftest.err
  4147. rm -f conftest.er1
  4148. cat conftest.err >&5
  4149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4150. (exit $ac_status); } >/dev/null; then
  4151. if test -s conftest.err; then
  4152. ac_cpp_err=$ac_c_preproc_warn_flag
  4153. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4154. else
  4155. ac_cpp_err=
  4156. fi
  4157. else
  4158. ac_cpp_err=yes
  4159. fi
  4160. if test -z "$ac_cpp_err"; then
  4161. :
  4162. else
  4163. echo "$as_me: failed program was:" >&5
  4164. sed 's/^/| /' conftest.$ac_ext >&5
  4165. # Broken: fails on valid input.
  4166. continue
  4167. fi
  4168. rm -f conftest.err conftest.$ac_ext
  4169. # OK, works on sane cases. Now check whether non-existent headers
  4170. # can be detected and how.
  4171. cat >conftest.$ac_ext <<_ACEOF
  4172. /* confdefs.h. */
  4173. _ACEOF
  4174. cat confdefs.h >>conftest.$ac_ext
  4175. cat >>conftest.$ac_ext <<_ACEOF
  4176. /* end confdefs.h. */
  4177. #include <ac_nonexistent.h>
  4178. _ACEOF
  4179. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4180. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4181. ac_status=$?
  4182. grep -v '^ *+' conftest.er1 >conftest.err
  4183. rm -f conftest.er1
  4184. cat conftest.err >&5
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); } >/dev/null; then
  4187. if test -s conftest.err; then
  4188. ac_cpp_err=$ac_c_preproc_warn_flag
  4189. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4190. else
  4191. ac_cpp_err=
  4192. fi
  4193. else
  4194. ac_cpp_err=yes
  4195. fi
  4196. if test -z "$ac_cpp_err"; then
  4197. # Broken: success on invalid input.
  4198. continue
  4199. else
  4200. echo "$as_me: failed program was:" >&5
  4201. sed 's/^/| /' conftest.$ac_ext >&5
  4202. # Passes both tests.
  4203. ac_preproc_ok=:
  4204. break
  4205. fi
  4206. rm -f conftest.err conftest.$ac_ext
  4207. done
  4208. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4209. rm -f conftest.err conftest.$ac_ext
  4210. if $ac_preproc_ok; then
  4211. break
  4212. fi
  4213. done
  4214. ac_cv_prog_CPP=$CPP
  4215. fi
  4216. CPP=$ac_cv_prog_CPP
  4217. else
  4218. ac_cv_prog_CPP=$CPP
  4219. fi
  4220. echo "$as_me:$LINENO: result: $CPP" >&5
  4221. echo "${ECHO_T}$CPP" >&6
  4222. ac_preproc_ok=false
  4223. for ac_c_preproc_warn_flag in '' yes
  4224. do
  4225. # Use a header file that comes with gcc, so configuring glibc
  4226. # with a fresh cross-compiler works.
  4227. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4228. # <limits.h> exists even on freestanding compilers.
  4229. # On the NeXT, cc -E runs the code through the compiler's parser,
  4230. # not just through cpp. "Syntax error" is here to catch this case.
  4231. cat >conftest.$ac_ext <<_ACEOF
  4232. /* confdefs.h. */
  4233. _ACEOF
  4234. cat confdefs.h >>conftest.$ac_ext
  4235. cat >>conftest.$ac_ext <<_ACEOF
  4236. /* end confdefs.h. */
  4237. #ifdef __STDC__
  4238. # include <limits.h>
  4239. #else
  4240. # include <assert.h>
  4241. #endif
  4242. Syntax error
  4243. _ACEOF
  4244. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4245. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4246. ac_status=$?
  4247. grep -v '^ *+' conftest.er1 >conftest.err
  4248. rm -f conftest.er1
  4249. cat conftest.err >&5
  4250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4251. (exit $ac_status); } >/dev/null; then
  4252. if test -s conftest.err; then
  4253. ac_cpp_err=$ac_c_preproc_warn_flag
  4254. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4255. else
  4256. ac_cpp_err=
  4257. fi
  4258. else
  4259. ac_cpp_err=yes
  4260. fi
  4261. if test -z "$ac_cpp_err"; then
  4262. :
  4263. else
  4264. echo "$as_me: failed program was:" >&5
  4265. sed 's/^/| /' conftest.$ac_ext >&5
  4266. # Broken: fails on valid input.
  4267. continue
  4268. fi
  4269. rm -f conftest.err conftest.$ac_ext
  4270. # OK, works on sane cases. Now check whether non-existent headers
  4271. # can be detected and how.
  4272. cat >conftest.$ac_ext <<_ACEOF
  4273. /* confdefs.h. */
  4274. _ACEOF
  4275. cat confdefs.h >>conftest.$ac_ext
  4276. cat >>conftest.$ac_ext <<_ACEOF
  4277. /* end confdefs.h. */
  4278. #include <ac_nonexistent.h>
  4279. _ACEOF
  4280. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4281. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4282. ac_status=$?
  4283. grep -v '^ *+' conftest.er1 >conftest.err
  4284. rm -f conftest.er1
  4285. cat conftest.err >&5
  4286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4287. (exit $ac_status); } >/dev/null; then
  4288. if test -s conftest.err; then
  4289. ac_cpp_err=$ac_c_preproc_warn_flag
  4290. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4291. else
  4292. ac_cpp_err=
  4293. fi
  4294. else
  4295. ac_cpp_err=yes
  4296. fi
  4297. if test -z "$ac_cpp_err"; then
  4298. # Broken: success on invalid input.
  4299. continue
  4300. else
  4301. echo "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. # Passes both tests.
  4304. ac_preproc_ok=:
  4305. break
  4306. fi
  4307. rm -f conftest.err conftest.$ac_ext
  4308. done
  4309. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4310. rm -f conftest.err conftest.$ac_ext
  4311. if $ac_preproc_ok; then
  4312. :
  4313. else
  4314. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4315. See \`config.log' for more details." >&5
  4316. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4317. See \`config.log' for more details." >&2;}
  4318. { (exit 1); exit 1; }; }
  4319. fi
  4320. ac_ext=c
  4321. ac_cpp='$CPP $CPPFLAGS'
  4322. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4323. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4324. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4325. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4326. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4327. if test "${ac_cv_header_stdc+set}" = set; then
  4328. echo $ECHO_N "(cached) $ECHO_C" >&6
  4329. else
  4330. cat >conftest.$ac_ext <<_ACEOF
  4331. /* confdefs.h. */
  4332. _ACEOF
  4333. cat confdefs.h >>conftest.$ac_ext
  4334. cat >>conftest.$ac_ext <<_ACEOF
  4335. /* end confdefs.h. */
  4336. #include <stdlib.h>
  4337. #include <stdarg.h>
  4338. #include <string.h>
  4339. #include <float.h>
  4340. int
  4341. main ()
  4342. {
  4343. ;
  4344. return 0;
  4345. }
  4346. _ACEOF
  4347. rm -f conftest.$ac_objext
  4348. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4349. (eval $ac_compile) 2>conftest.er1
  4350. ac_status=$?
  4351. grep -v '^ *+' conftest.er1 >conftest.err
  4352. rm -f conftest.er1
  4353. cat conftest.err >&5
  4354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4355. (exit $ac_status); } &&
  4356. { ac_try='test -z "$ac_c_werror_flag"
  4357. || test ! -s conftest.err'
  4358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4359. (eval $ac_try) 2>&5
  4360. ac_status=$?
  4361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4362. (exit $ac_status); }; } &&
  4363. { ac_try='test -s conftest.$ac_objext'
  4364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4365. (eval $ac_try) 2>&5
  4366. ac_status=$?
  4367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4368. (exit $ac_status); }; }; then
  4369. ac_cv_header_stdc=yes
  4370. else
  4371. echo "$as_me: failed program was:" >&5
  4372. sed 's/^/| /' conftest.$ac_ext >&5
  4373. ac_cv_header_stdc=no
  4374. fi
  4375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4376. if test $ac_cv_header_stdc = yes; then
  4377. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4378. cat >conftest.$ac_ext <<_ACEOF
  4379. /* confdefs.h. */
  4380. _ACEOF
  4381. cat confdefs.h >>conftest.$ac_ext
  4382. cat >>conftest.$ac_ext <<_ACEOF
  4383. /* end confdefs.h. */
  4384. #include <string.h>
  4385. _ACEOF
  4386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4387. $EGREP "memchr" >/dev/null 2>&1; then
  4388. :
  4389. else
  4390. ac_cv_header_stdc=no
  4391. fi
  4392. rm -f conftest*
  4393. fi
  4394. if test $ac_cv_header_stdc = yes; then
  4395. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4396. cat >conftest.$ac_ext <<_ACEOF
  4397. /* confdefs.h. */
  4398. _ACEOF
  4399. cat confdefs.h >>conftest.$ac_ext
  4400. cat >>conftest.$ac_ext <<_ACEOF
  4401. /* end confdefs.h. */
  4402. #include <stdlib.h>
  4403. _ACEOF
  4404. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4405. $EGREP "free" >/dev/null 2>&1; then
  4406. :
  4407. else
  4408. ac_cv_header_stdc=no
  4409. fi
  4410. rm -f conftest*
  4411. fi
  4412. if test $ac_cv_header_stdc = yes; then
  4413. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4414. if test "$cross_compiling" = yes; then
  4415. :
  4416. else
  4417. cat >conftest.$ac_ext <<_ACEOF
  4418. /* confdefs.h. */
  4419. _ACEOF
  4420. cat confdefs.h >>conftest.$ac_ext
  4421. cat >>conftest.$ac_ext <<_ACEOF
  4422. /* end confdefs.h. */
  4423. #include <ctype.h>
  4424. #if ((' ' & 0x0FF) == 0x020)
  4425. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4426. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4427. #else
  4428. # define ISLOWER(c) \
  4429. (('a' <= (c) && (c) <= 'i') \
  4430. || ('j' <= (c) && (c) <= 'r') \
  4431. || ('s' <= (c) && (c) <= 'z'))
  4432. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4433. #endif
  4434. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4435. int
  4436. main ()
  4437. {
  4438. int i;
  4439. for (i = 0; i < 256; i++)
  4440. if (XOR (islower (i), ISLOWER (i))
  4441. || toupper (i) != TOUPPER (i))
  4442. exit(2);
  4443. exit (0);
  4444. }
  4445. _ACEOF
  4446. rm -f conftest$ac_exeext
  4447. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4448. (eval $ac_link) 2>&5
  4449. ac_status=$?
  4450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4451. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4453. (eval $ac_try) 2>&5
  4454. ac_status=$?
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); }; }; then
  4457. :
  4458. else
  4459. echo "$as_me: program exited with status $ac_status" >&5
  4460. echo "$as_me: failed program was:" >&5
  4461. sed 's/^/| /' conftest.$ac_ext >&5
  4462. ( exit $ac_status )
  4463. ac_cv_header_stdc=no
  4464. fi
  4465. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4466. fi
  4467. fi
  4468. fi
  4469. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4470. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4471. if test $ac_cv_header_stdc = yes; then
  4472. cat >>confdefs.h <<\_ACEOF
  4473. #define STDC_HEADERS 1
  4474. _ACEOF
  4475. fi
  4476. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4477. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4478. inttypes.h stdint.h unistd.h
  4479. do
  4480. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4481. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4482. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4484. echo $ECHO_N "(cached) $ECHO_C" >&6
  4485. else
  4486. cat >conftest.$ac_ext <<_ACEOF
  4487. /* confdefs.h. */
  4488. _ACEOF
  4489. cat confdefs.h >>conftest.$ac_ext
  4490. cat >>conftest.$ac_ext <<_ACEOF
  4491. /* end confdefs.h. */
  4492. $ac_includes_default
  4493. #include <$ac_header>
  4494. _ACEOF
  4495. rm -f conftest.$ac_objext
  4496. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4497. (eval $ac_compile) 2>conftest.er1
  4498. ac_status=$?
  4499. grep -v '^ *+' conftest.er1 >conftest.err
  4500. rm -f conftest.er1
  4501. cat conftest.err >&5
  4502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4503. (exit $ac_status); } &&
  4504. { ac_try='test -z "$ac_c_werror_flag"
  4505. || test ! -s conftest.err'
  4506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4507. (eval $ac_try) 2>&5
  4508. ac_status=$?
  4509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4510. (exit $ac_status); }; } &&
  4511. { ac_try='test -s conftest.$ac_objext'
  4512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4513. (eval $ac_try) 2>&5
  4514. ac_status=$?
  4515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4516. (exit $ac_status); }; }; then
  4517. eval "$as_ac_Header=yes"
  4518. else
  4519. echo "$as_me: failed program was:" >&5
  4520. sed 's/^/| /' conftest.$ac_ext >&5
  4521. eval "$as_ac_Header=no"
  4522. fi
  4523. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4524. fi
  4525. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4526. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4527. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4528. cat >>confdefs.h <<_ACEOF
  4529. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4530. _ACEOF
  4531. fi
  4532. done
  4533. for ac_header in dlfcn.h
  4534. do
  4535. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4536. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4537. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4538. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4539. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4540. echo $ECHO_N "(cached) $ECHO_C" >&6
  4541. fi
  4542. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4543. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4544. else
  4545. # Is the header compilable?
  4546. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4547. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4548. cat >conftest.$ac_ext <<_ACEOF
  4549. /* confdefs.h. */
  4550. _ACEOF
  4551. cat confdefs.h >>conftest.$ac_ext
  4552. cat >>conftest.$ac_ext <<_ACEOF
  4553. /* end confdefs.h. */
  4554. $ac_includes_default
  4555. #include <$ac_header>
  4556. _ACEOF
  4557. rm -f conftest.$ac_objext
  4558. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4559. (eval $ac_compile) 2>conftest.er1
  4560. ac_status=$?
  4561. grep -v '^ *+' conftest.er1 >conftest.err
  4562. rm -f conftest.er1
  4563. cat conftest.err >&5
  4564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4565. (exit $ac_status); } &&
  4566. { ac_try='test -z "$ac_c_werror_flag"
  4567. || test ! -s conftest.err'
  4568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4569. (eval $ac_try) 2>&5
  4570. ac_status=$?
  4571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4572. (exit $ac_status); }; } &&
  4573. { ac_try='test -s conftest.$ac_objext'
  4574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4575. (eval $ac_try) 2>&5
  4576. ac_status=$?
  4577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); }; }; then
  4579. ac_header_compiler=yes
  4580. else
  4581. echo "$as_me: failed program was:" >&5
  4582. sed 's/^/| /' conftest.$ac_ext >&5
  4583. ac_header_compiler=no
  4584. fi
  4585. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4586. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4587. echo "${ECHO_T}$ac_header_compiler" >&6
  4588. # Is the header present?
  4589. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4590. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4591. cat >conftest.$ac_ext <<_ACEOF
  4592. /* confdefs.h. */
  4593. _ACEOF
  4594. cat confdefs.h >>conftest.$ac_ext
  4595. cat >>conftest.$ac_ext <<_ACEOF
  4596. /* end confdefs.h. */
  4597. #include <$ac_header>
  4598. _ACEOF
  4599. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4600. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4601. ac_status=$?
  4602. grep -v '^ *+' conftest.er1 >conftest.err
  4603. rm -f conftest.er1
  4604. cat conftest.err >&5
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); } >/dev/null; then
  4607. if test -s conftest.err; then
  4608. ac_cpp_err=$ac_c_preproc_warn_flag
  4609. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4610. else
  4611. ac_cpp_err=
  4612. fi
  4613. else
  4614. ac_cpp_err=yes
  4615. fi
  4616. if test -z "$ac_cpp_err"; then
  4617. ac_header_preproc=yes
  4618. else
  4619. echo "$as_me: failed program was:" >&5
  4620. sed 's/^/| /' conftest.$ac_ext >&5
  4621. ac_header_preproc=no
  4622. fi
  4623. rm -f conftest.err conftest.$ac_ext
  4624. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4625. echo "${ECHO_T}$ac_header_preproc" >&6
  4626. # So? What about this header?
  4627. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4628. yes:no: )
  4629. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4630. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4631. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4632. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4633. ac_header_preproc=yes
  4634. ;;
  4635. no:yes:* )
  4636. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4637. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4638. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4639. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4640. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4641. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4642. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4643. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4644. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4645. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4646. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4647. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4648. (
  4649. cat <<\_ASBOX
  4650. ## ------------------------------------------ ##
  4651. ## Report this to http://bugzilla.redhat.com/ ##
  4652. ## ------------------------------------------ ##
  4653. _ASBOX
  4654. ) |
  4655. sed "s/^/$as_me: WARNING: /" >&2
  4656. ;;
  4657. esac
  4658. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4659. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4660. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4661. echo $ECHO_N "(cached) $ECHO_C" >&6
  4662. else
  4663. eval "$as_ac_Header=\$ac_header_preproc"
  4664. fi
  4665. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4666. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4667. fi
  4668. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4669. cat >>confdefs.h <<_ACEOF
  4670. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4671. _ACEOF
  4672. fi
  4673. done
  4674. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4675. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4676. (test "X$CXX" != "Xg++"))) ; then
  4677. ac_ext=cc
  4678. ac_cpp='$CXXCPP $CPPFLAGS'
  4679. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4680. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4681. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4682. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4683. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4684. if test -z "$CXXCPP"; then
  4685. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4686. echo $ECHO_N "(cached) $ECHO_C" >&6
  4687. else
  4688. # Double quotes because CXXCPP needs to be expanded
  4689. for CXXCPP in "$CXX -E" "/lib/cpp"
  4690. do
  4691. ac_preproc_ok=false
  4692. for ac_cxx_preproc_warn_flag in '' yes
  4693. do
  4694. # Use a header file that comes with gcc, so configuring glibc
  4695. # with a fresh cross-compiler works.
  4696. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4697. # <limits.h> exists even on freestanding compilers.
  4698. # On the NeXT, cc -E runs the code through the compiler's parser,
  4699. # not just through cpp. "Syntax error" is here to catch this case.
  4700. cat >conftest.$ac_ext <<_ACEOF
  4701. /* confdefs.h. */
  4702. _ACEOF
  4703. cat confdefs.h >>conftest.$ac_ext
  4704. cat >>conftest.$ac_ext <<_ACEOF
  4705. /* end confdefs.h. */
  4706. #ifdef __STDC__
  4707. # include <limits.h>
  4708. #else
  4709. # include <assert.h>
  4710. #endif
  4711. Syntax error
  4712. _ACEOF
  4713. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4714. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } >/dev/null; then
  4721. if test -s conftest.err; then
  4722. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4723. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4724. else
  4725. ac_cpp_err=
  4726. fi
  4727. else
  4728. ac_cpp_err=yes
  4729. fi
  4730. if test -z "$ac_cpp_err"; then
  4731. :
  4732. else
  4733. echo "$as_me: failed program was:" >&5
  4734. sed 's/^/| /' conftest.$ac_ext >&5
  4735. # Broken: fails on valid input.
  4736. continue
  4737. fi
  4738. rm -f conftest.err conftest.$ac_ext
  4739. # OK, works on sane cases. Now check whether non-existent headers
  4740. # can be detected and how.
  4741. cat >conftest.$ac_ext <<_ACEOF
  4742. /* confdefs.h. */
  4743. _ACEOF
  4744. cat confdefs.h >>conftest.$ac_ext
  4745. cat >>conftest.$ac_ext <<_ACEOF
  4746. /* end confdefs.h. */
  4747. #include <ac_nonexistent.h>
  4748. _ACEOF
  4749. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4750. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } >/dev/null; then
  4757. if test -s conftest.err; then
  4758. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4759. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4760. else
  4761. ac_cpp_err=
  4762. fi
  4763. else
  4764. ac_cpp_err=yes
  4765. fi
  4766. if test -z "$ac_cpp_err"; then
  4767. # Broken: success on invalid input.
  4768. continue
  4769. else
  4770. echo "$as_me: failed program was:" >&5
  4771. sed 's/^/| /' conftest.$ac_ext >&5
  4772. # Passes both tests.
  4773. ac_preproc_ok=:
  4774. break
  4775. fi
  4776. rm -f conftest.err conftest.$ac_ext
  4777. done
  4778. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4779. rm -f conftest.err conftest.$ac_ext
  4780. if $ac_preproc_ok; then
  4781. break
  4782. fi
  4783. done
  4784. ac_cv_prog_CXXCPP=$CXXCPP
  4785. fi
  4786. CXXCPP=$ac_cv_prog_CXXCPP
  4787. else
  4788. ac_cv_prog_CXXCPP=$CXXCPP
  4789. fi
  4790. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4791. echo "${ECHO_T}$CXXCPP" >&6
  4792. ac_preproc_ok=false
  4793. for ac_cxx_preproc_warn_flag in '' yes
  4794. do
  4795. # Use a header file that comes with gcc, so configuring glibc
  4796. # with a fresh cross-compiler works.
  4797. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4798. # <limits.h> exists even on freestanding compilers.
  4799. # On the NeXT, cc -E runs the code through the compiler's parser,
  4800. # not just through cpp. "Syntax error" is here to catch this case.
  4801. cat >conftest.$ac_ext <<_ACEOF
  4802. /* confdefs.h. */
  4803. _ACEOF
  4804. cat confdefs.h >>conftest.$ac_ext
  4805. cat >>conftest.$ac_ext <<_ACEOF
  4806. /* end confdefs.h. */
  4807. #ifdef __STDC__
  4808. # include <limits.h>
  4809. #else
  4810. # include <assert.h>
  4811. #endif
  4812. Syntax error
  4813. _ACEOF
  4814. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4815. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4816. ac_status=$?
  4817. grep -v '^ *+' conftest.er1 >conftest.err
  4818. rm -f conftest.er1
  4819. cat conftest.err >&5
  4820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4821. (exit $ac_status); } >/dev/null; then
  4822. if test -s conftest.err; then
  4823. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4824. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4825. else
  4826. ac_cpp_err=
  4827. fi
  4828. else
  4829. ac_cpp_err=yes
  4830. fi
  4831. if test -z "$ac_cpp_err"; then
  4832. :
  4833. else
  4834. echo "$as_me: failed program was:" >&5
  4835. sed 's/^/| /' conftest.$ac_ext >&5
  4836. # Broken: fails on valid input.
  4837. continue
  4838. fi
  4839. rm -f conftest.err conftest.$ac_ext
  4840. # OK, works on sane cases. Now check whether non-existent headers
  4841. # can be detected and how.
  4842. cat >conftest.$ac_ext <<_ACEOF
  4843. /* confdefs.h. */
  4844. _ACEOF
  4845. cat confdefs.h >>conftest.$ac_ext
  4846. cat >>conftest.$ac_ext <<_ACEOF
  4847. /* end confdefs.h. */
  4848. #include <ac_nonexistent.h>
  4849. _ACEOF
  4850. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4851. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4852. ac_status=$?
  4853. grep -v '^ *+' conftest.er1 >conftest.err
  4854. rm -f conftest.er1
  4855. cat conftest.err >&5
  4856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4857. (exit $ac_status); } >/dev/null; then
  4858. if test -s conftest.err; then
  4859. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4860. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4861. else
  4862. ac_cpp_err=
  4863. fi
  4864. else
  4865. ac_cpp_err=yes
  4866. fi
  4867. if test -z "$ac_cpp_err"; then
  4868. # Broken: success on invalid input.
  4869. continue
  4870. else
  4871. echo "$as_me: failed program was:" >&5
  4872. sed 's/^/| /' conftest.$ac_ext >&5
  4873. # Passes both tests.
  4874. ac_preproc_ok=:
  4875. break
  4876. fi
  4877. rm -f conftest.err conftest.$ac_ext
  4878. done
  4879. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4880. rm -f conftest.err conftest.$ac_ext
  4881. if $ac_preproc_ok; then
  4882. :
  4883. else
  4884. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4885. See \`config.log' for more details." >&5
  4886. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4887. See \`config.log' for more details." >&2;}
  4888. { (exit 1); exit 1; }; }
  4889. fi
  4890. ac_ext=cc
  4891. ac_cpp='$CXXCPP $CPPFLAGS'
  4892. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4893. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4894. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4895. fi
  4896. ac_ext=f
  4897. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4898. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4899. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4900. if test -n "$ac_tool_prefix"; then
  4901. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4902. do
  4903. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4904. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4905. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4906. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4907. if test "${ac_cv_prog_F77+set}" = set; then
  4908. echo $ECHO_N "(cached) $ECHO_C" >&6
  4909. else
  4910. if test -n "$F77"; then
  4911. ac_cv_prog_F77="$F77" # Let the user override the test.
  4912. else
  4913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4914. for as_dir in $PATH
  4915. do
  4916. IFS=$as_save_IFS
  4917. test -z "$as_dir" && as_dir=.
  4918. for ac_exec_ext in '' $ac_executable_extensions; do
  4919. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4920. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4921. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4922. break 2
  4923. fi
  4924. done
  4925. done
  4926. fi
  4927. fi
  4928. F77=$ac_cv_prog_F77
  4929. if test -n "$F77"; then
  4930. echo "$as_me:$LINENO: result: $F77" >&5
  4931. echo "${ECHO_T}$F77" >&6
  4932. else
  4933. echo "$as_me:$LINENO: result: no" >&5
  4934. echo "${ECHO_T}no" >&6
  4935. fi
  4936. test -n "$F77" && break
  4937. done
  4938. fi
  4939. if test -z "$F77"; then
  4940. ac_ct_F77=$F77
  4941. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4942. do
  4943. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4944. set dummy $ac_prog; ac_word=$2
  4945. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4946. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4947. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4948. echo $ECHO_N "(cached) $ECHO_C" >&6
  4949. else
  4950. if test -n "$ac_ct_F77"; then
  4951. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. test -z "$as_dir" && as_dir=.
  4958. for ac_exec_ext in '' $ac_executable_extensions; do
  4959. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4960. ac_cv_prog_ac_ct_F77="$ac_prog"
  4961. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4962. break 2
  4963. fi
  4964. done
  4965. done
  4966. fi
  4967. fi
  4968. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4969. if test -n "$ac_ct_F77"; then
  4970. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4971. echo "${ECHO_T}$ac_ct_F77" >&6
  4972. else
  4973. echo "$as_me:$LINENO: result: no" >&5
  4974. echo "${ECHO_T}no" >&6
  4975. fi
  4976. test -n "$ac_ct_F77" && break
  4977. done
  4978. F77=$ac_ct_F77
  4979. fi
  4980. # Provide some information about the compiler.
  4981. echo "$as_me:5497:" \
  4982. "checking for Fortran 77 compiler version" >&5
  4983. ac_compiler=`set X $ac_compile; echo $2`
  4984. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4985. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4986. ac_status=$?
  4987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4988. (exit $ac_status); }
  4989. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4990. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4991. ac_status=$?
  4992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4993. (exit $ac_status); }
  4994. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4995. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4996. ac_status=$?
  4997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4998. (exit $ac_status); }
  4999. rm -f a.out
  5000. # If we don't use `.F' as extension, the preprocessor is not run on the
  5001. # input file. (Note that this only needs to work for GNU compilers.)
  5002. ac_save_ext=$ac_ext
  5003. ac_ext=F
  5004. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5005. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  5006. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5007. echo $ECHO_N "(cached) $ECHO_C" >&6
  5008. else
  5009. cat >conftest.$ac_ext <<_ACEOF
  5010. program main
  5011. #ifndef __GNUC__
  5012. choke me
  5013. #endif
  5014. end
  5015. _ACEOF
  5016. rm -f conftest.$ac_objext
  5017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5018. (eval $ac_compile) 2>conftest.er1
  5019. ac_status=$?
  5020. grep -v '^ *+' conftest.er1 >conftest.err
  5021. rm -f conftest.er1
  5022. cat conftest.err >&5
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); } &&
  5025. { ac_try='test -z "$ac_f77_werror_flag"
  5026. || test ! -s conftest.err'
  5027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5028. (eval $ac_try) 2>&5
  5029. ac_status=$?
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); }; } &&
  5032. { ac_try='test -s conftest.$ac_objext'
  5033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5034. (eval $ac_try) 2>&5
  5035. ac_status=$?
  5036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5037. (exit $ac_status); }; }; then
  5038. ac_compiler_gnu=yes
  5039. else
  5040. echo "$as_me: failed program was:" >&5
  5041. sed 's/^/| /' conftest.$ac_ext >&5
  5042. ac_compiler_gnu=no
  5043. fi
  5044. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5045. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5046. fi
  5047. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5048. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5049. ac_ext=$ac_save_ext
  5050. ac_test_FFLAGS=${FFLAGS+set}
  5051. ac_save_FFLAGS=$FFLAGS
  5052. FFLAGS=
  5053. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5054. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5055. if test "${ac_cv_prog_f77_g+set}" = set; then
  5056. echo $ECHO_N "(cached) $ECHO_C" >&6
  5057. else
  5058. FFLAGS=-g
  5059. cat >conftest.$ac_ext <<_ACEOF
  5060. program main
  5061. end
  5062. _ACEOF
  5063. rm -f conftest.$ac_objext
  5064. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5065. (eval $ac_compile) 2>conftest.er1
  5066. ac_status=$?
  5067. grep -v '^ *+' conftest.er1 >conftest.err
  5068. rm -f conftest.er1
  5069. cat conftest.err >&5
  5070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5071. (exit $ac_status); } &&
  5072. { ac_try='test -z "$ac_f77_werror_flag"
  5073. || test ! -s conftest.err'
  5074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5075. (eval $ac_try) 2>&5
  5076. ac_status=$?
  5077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5078. (exit $ac_status); }; } &&
  5079. { ac_try='test -s conftest.$ac_objext'
  5080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5081. (eval $ac_try) 2>&5
  5082. ac_status=$?
  5083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5084. (exit $ac_status); }; }; then
  5085. ac_cv_prog_f77_g=yes
  5086. else
  5087. echo "$as_me: failed program was:" >&5
  5088. sed 's/^/| /' conftest.$ac_ext >&5
  5089. ac_cv_prog_f77_g=no
  5090. fi
  5091. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5094. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5095. if test "$ac_test_FFLAGS" = set; then
  5096. FFLAGS=$ac_save_FFLAGS
  5097. elif test $ac_cv_prog_f77_g = yes; then
  5098. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5099. FFLAGS="-g -O2"
  5100. else
  5101. FFLAGS="-g"
  5102. fi
  5103. else
  5104. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5105. FFLAGS="-O2"
  5106. else
  5107. FFLAGS=
  5108. fi
  5109. fi
  5110. G77=`test $ac_compiler_gnu = yes && echo yes`
  5111. ac_ext=c
  5112. ac_cpp='$CPP $CPPFLAGS'
  5113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5116. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5117. # find the maximum length of command line arguments
  5118. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5119. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5120. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5121. echo $ECHO_N "(cached) $ECHO_C" >&6
  5122. else
  5123. i=0
  5124. teststring="ABCD"
  5125. case $build_os in
  5126. msdosdjgpp*)
  5127. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5128. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5129. # during glob expansion). Even if it were fixed, the result of this
  5130. # check would be larger than it should be.
  5131. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5132. ;;
  5133. gnu*)
  5134. # Under GNU Hurd, this test is not required because there is
  5135. # no limit to the length of command line arguments.
  5136. # Libtool will interpret -1 as no limit whatsoever
  5137. lt_cv_sys_max_cmd_len=-1;
  5138. ;;
  5139. cygwin* | mingw*)
  5140. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5141. # about 5 minutes as the teststring grows exponentially.
  5142. # Worse, since 9x/ME are not pre-emptively multitasking,
  5143. # you end up with a "frozen" computer, even though with patience
  5144. # the test eventually succeeds (with a max line length of 256k).
  5145. # Instead, let's just punt: use the minimum linelength reported by
  5146. # all of the supported platforms: 8192 (on NT/2K/XP).
  5147. lt_cv_sys_max_cmd_len=8192;
  5148. ;;
  5149. amigaos*)
  5150. # On AmigaOS with pdksh, this test takes hours, literally.
  5151. # So we just punt and use a minimum line length of 8192.
  5152. lt_cv_sys_max_cmd_len=8192;
  5153. ;;
  5154. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5155. # This has been around since 386BSD, at least. Likely further.
  5156. if test -x /sbin/sysctl; then
  5157. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5158. elif test -x /usr/sbin/sysctl; then
  5159. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5160. else
  5161. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5162. fi
  5163. # And add a safety zone
  5164. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5165. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5166. ;;
  5167. interix*)
  5168. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5169. lt_cv_sys_max_cmd_len=196608
  5170. ;;
  5171. osf*)
  5172. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5173. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5174. # nice to cause kernel panics so lets avoid the loop below.
  5175. # First set a reasonable default.
  5176. lt_cv_sys_max_cmd_len=16384
  5177. #
  5178. if test -x /sbin/sysconfig; then
  5179. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5180. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5181. esac
  5182. fi
  5183. ;;
  5184. sco3.2v5*)
  5185. lt_cv_sys_max_cmd_len=102400
  5186. ;;
  5187. sysv5* | sco5v6* | sysv4.2uw2*)
  5188. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5189. if test -n "$kargmax"; then
  5190. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5191. else
  5192. lt_cv_sys_max_cmd_len=32768
  5193. fi
  5194. ;;
  5195. *)
  5196. # If test is not a shell built-in, we'll probably end up computing a
  5197. # maximum length that is only half of the actual maximum length, but
  5198. # we can't tell.
  5199. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5200. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5201. = "XX$teststring") >/dev/null 2>&1 &&
  5202. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5203. lt_cv_sys_max_cmd_len=$new_result &&
  5204. test $i != 17 # 1/2 MB should be enough
  5205. do
  5206. i=`expr $i + 1`
  5207. teststring=$teststring$teststring
  5208. done
  5209. teststring=
  5210. # Add a significant safety factor because C++ compilers can tack on massive
  5211. # amounts of additional arguments before passing them to the linker.
  5212. # It appears as though 1/2 is a usable value.
  5213. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5214. ;;
  5215. esac
  5216. fi
  5217. if test -n $lt_cv_sys_max_cmd_len ; then
  5218. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5219. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5220. else
  5221. echo "$as_me:$LINENO: result: none" >&5
  5222. echo "${ECHO_T}none" >&6
  5223. fi
  5224. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5225. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5226. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5227. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5228. echo $ECHO_N "(cached) $ECHO_C" >&6
  5229. else
  5230. # These are sane defaults that work on at least a few old systems.
  5231. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5232. # Character class describing NM global symbol codes.
  5233. symcode='[BCDEGRST]'
  5234. # Regexp to match symbols that can be accessed directly from C.
  5235. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5236. # Transform an extracted symbol line into a proper C declaration
  5237. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5238. # Transform an extracted symbol line into symbol name and symbol address
  5239. 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'"
  5240. # Define system-specific variables.
  5241. case $host_os in
  5242. aix*)
  5243. symcode='[BCDT]'
  5244. ;;
  5245. cygwin* | mingw* | pw32*)
  5246. symcode='[ABCDGISTW]'
  5247. ;;
  5248. hpux*) # Its linker distinguishes data from code symbols
  5249. if test "$host_cpu" = ia64; then
  5250. symcode='[ABCDEGRST]'
  5251. fi
  5252. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5253. 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'"
  5254. ;;
  5255. linux*)
  5256. if test "$host_cpu" = ia64; then
  5257. symcode='[ABCDGIRSTW]'
  5258. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5259. 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'"
  5260. fi
  5261. ;;
  5262. irix* | nonstopux*)
  5263. symcode='[BCDEGRST]'
  5264. ;;
  5265. osf*)
  5266. symcode='[BCDEGQRST]'
  5267. ;;
  5268. solaris*)
  5269. symcode='[BDRT]'
  5270. ;;
  5271. sco3.2v5*)
  5272. symcode='[DT]'
  5273. ;;
  5274. sysv4.2uw2*)
  5275. symcode='[DT]'
  5276. ;;
  5277. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5278. symcode='[ABDT]'
  5279. ;;
  5280. sysv4)
  5281. symcode='[DFNSTU]'
  5282. ;;
  5283. esac
  5284. # Handle CRLF in mingw tool chain
  5285. opt_cr=
  5286. case $build_os in
  5287. mingw*)
  5288. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5289. ;;
  5290. esac
  5291. # If we're using GNU nm, then use its standard symbol codes.
  5292. case `$NM -V 2>&1` in
  5293. *GNU* | *'with BFD'*)
  5294. symcode='[ABCDGIRSTW]' ;;
  5295. esac
  5296. # Try without a prefix undercore, then with it.
  5297. for ac_symprfx in "" "_"; do
  5298. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5299. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5300. # Write the raw and C identifiers.
  5301. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5302. # Check to see that the pipe works correctly.
  5303. pipe_works=no
  5304. rm -f conftest*
  5305. cat > conftest.$ac_ext <<EOF
  5306. #ifdef __cplusplus
  5307. extern "C" {
  5308. #endif
  5309. char nm_test_var;
  5310. void nm_test_func(){}
  5311. #ifdef __cplusplus
  5312. }
  5313. #endif
  5314. int main(){nm_test_var='a';nm_test_func();return(0);}
  5315. EOF
  5316. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5317. (eval $ac_compile) 2>&5
  5318. ac_status=$?
  5319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5320. (exit $ac_status); }; then
  5321. # Now try to grab the symbols.
  5322. nlist=conftest.nm
  5323. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5324. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5325. ac_status=$?
  5326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5327. (exit $ac_status); } && test -s "$nlist"; then
  5328. # Try sorting and uniquifying the output.
  5329. if sort "$nlist" | uniq > "$nlist"T; then
  5330. mv -f "$nlist"T "$nlist"
  5331. else
  5332. rm -f "$nlist"T
  5333. fi
  5334. # Make sure that we snagged all the symbols we need.
  5335. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5336. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5337. cat <<EOF > conftest.$ac_ext
  5338. #ifdef __cplusplus
  5339. extern "C" {
  5340. #endif
  5341. EOF
  5342. # Now generate the symbol file.
  5343. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5344. cat <<EOF >> conftest.$ac_ext
  5345. #if defined (__STDC__) && __STDC__
  5346. # define lt_ptr_t void *
  5347. #else
  5348. # define lt_ptr_t char *
  5349. # define const
  5350. #endif
  5351. /* The mapping between symbol names and symbols. */
  5352. const struct {
  5353. const char *name;
  5354. lt_ptr_t address;
  5355. }
  5356. lt_preloaded_symbols[] =
  5357. {
  5358. EOF
  5359. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5360. cat <<\EOF >> conftest.$ac_ext
  5361. {0, (lt_ptr_t) 0}
  5362. };
  5363. #ifdef __cplusplus
  5364. }
  5365. #endif
  5366. EOF
  5367. # Now try linking the two files.
  5368. mv conftest.$ac_objext conftstm.$ac_objext
  5369. lt_save_LIBS="$LIBS"
  5370. lt_save_CFLAGS="$CFLAGS"
  5371. LIBS="conftstm.$ac_objext"
  5372. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5373. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5374. (eval $ac_link) 2>&5
  5375. ac_status=$?
  5376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5377. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5378. pipe_works=yes
  5379. fi
  5380. LIBS="$lt_save_LIBS"
  5381. CFLAGS="$lt_save_CFLAGS"
  5382. else
  5383. echo "cannot find nm_test_func in $nlist" >&5
  5384. fi
  5385. else
  5386. echo "cannot find nm_test_var in $nlist" >&5
  5387. fi
  5388. else
  5389. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5390. fi
  5391. else
  5392. echo "$progname: failed program was:" >&5
  5393. cat conftest.$ac_ext >&5
  5394. fi
  5395. rm -f conftest* conftst*
  5396. # Do not use the global_symbol_pipe unless it works.
  5397. if test "$pipe_works" = yes; then
  5398. break
  5399. else
  5400. lt_cv_sys_global_symbol_pipe=
  5401. fi
  5402. done
  5403. fi
  5404. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5405. lt_cv_sys_global_symbol_to_cdecl=
  5406. fi
  5407. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5408. echo "$as_me:$LINENO: result: failed" >&5
  5409. echo "${ECHO_T}failed" >&6
  5410. else
  5411. echo "$as_me:$LINENO: result: ok" >&5
  5412. echo "${ECHO_T}ok" >&6
  5413. fi
  5414. echo "$as_me:$LINENO: checking for objdir" >&5
  5415. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5416. if test "${lt_cv_objdir+set}" = set; then
  5417. echo $ECHO_N "(cached) $ECHO_C" >&6
  5418. else
  5419. rm -f .libs 2>/dev/null
  5420. mkdir .libs 2>/dev/null
  5421. if test -d .libs; then
  5422. lt_cv_objdir=.libs
  5423. else
  5424. # MS-DOS does not allow filenames that begin with a dot.
  5425. lt_cv_objdir=_libs
  5426. fi
  5427. rmdir .libs 2>/dev/null
  5428. fi
  5429. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5430. echo "${ECHO_T}$lt_cv_objdir" >&6
  5431. objdir=$lt_cv_objdir
  5432. case $host_os in
  5433. aix3*)
  5434. # AIX sometimes has problems with the GCC collect2 program. For some
  5435. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5436. # vanish in a puff of smoke.
  5437. if test "X${COLLECT_NAMES+set}" != Xset; then
  5438. COLLECT_NAMES=
  5439. export COLLECT_NAMES
  5440. fi
  5441. ;;
  5442. esac
  5443. # Sed substitution that helps us do robust quoting. It backslashifies
  5444. # metacharacters that are still active within double-quoted strings.
  5445. Xsed='sed -e 1s/^X//'
  5446. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5447. # Same as above, but do not quote variable references.
  5448. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5449. # Sed substitution to delay expansion of an escaped shell variable in a
  5450. # double_quote_subst'ed string.
  5451. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5452. # Sed substitution to avoid accidental globbing in evaled expressions
  5453. no_glob_subst='s/\*/\\\*/g'
  5454. # Constants:
  5455. rm="rm -f"
  5456. # Global variables:
  5457. default_ofile=libtool
  5458. can_build_shared=yes
  5459. # All known linkers require a `.a' archive for static linking (except MSVC,
  5460. # which needs '.lib').
  5461. libext=a
  5462. ltmain="$ac_aux_dir/ltmain.sh"
  5463. ofile="$default_ofile"
  5464. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5465. if test -n "$ac_tool_prefix"; then
  5466. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5467. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5468. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5469. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5470. if test "${ac_cv_prog_AR+set}" = set; then
  5471. echo $ECHO_N "(cached) $ECHO_C" >&6
  5472. else
  5473. if test -n "$AR"; then
  5474. ac_cv_prog_AR="$AR" # Let the user override the test.
  5475. else
  5476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5477. for as_dir in $PATH
  5478. do
  5479. IFS=$as_save_IFS
  5480. test -z "$as_dir" && as_dir=.
  5481. for ac_exec_ext in '' $ac_executable_extensions; do
  5482. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5483. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5484. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5485. break 2
  5486. fi
  5487. done
  5488. done
  5489. fi
  5490. fi
  5491. AR=$ac_cv_prog_AR
  5492. if test -n "$AR"; then
  5493. echo "$as_me:$LINENO: result: $AR" >&5
  5494. echo "${ECHO_T}$AR" >&6
  5495. else
  5496. echo "$as_me:$LINENO: result: no" >&5
  5497. echo "${ECHO_T}no" >&6
  5498. fi
  5499. fi
  5500. if test -z "$ac_cv_prog_AR"; then
  5501. ac_ct_AR=$AR
  5502. # Extract the first word of "ar", so it can be a program name with args.
  5503. set dummy ar; ac_word=$2
  5504. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5505. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5506. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. else
  5509. if test -n "$ac_ct_AR"; then
  5510. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5511. else
  5512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5513. for as_dir in $PATH
  5514. do
  5515. IFS=$as_save_IFS
  5516. test -z "$as_dir" && as_dir=.
  5517. for ac_exec_ext in '' $ac_executable_extensions; do
  5518. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5519. ac_cv_prog_ac_ct_AR="ar"
  5520. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5521. break 2
  5522. fi
  5523. done
  5524. done
  5525. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5526. fi
  5527. fi
  5528. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5529. if test -n "$ac_ct_AR"; then
  5530. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5531. echo "${ECHO_T}$ac_ct_AR" >&6
  5532. else
  5533. echo "$as_me:$LINENO: result: no" >&5
  5534. echo "${ECHO_T}no" >&6
  5535. fi
  5536. AR=$ac_ct_AR
  5537. else
  5538. AR="$ac_cv_prog_AR"
  5539. fi
  5540. if test -n "$ac_tool_prefix"; then
  5541. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5542. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5543. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5544. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5545. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5546. echo $ECHO_N "(cached) $ECHO_C" >&6
  5547. else
  5548. if test -n "$RANLIB"; then
  5549. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5550. else
  5551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5552. for as_dir in $PATH
  5553. do
  5554. IFS=$as_save_IFS
  5555. test -z "$as_dir" && as_dir=.
  5556. for ac_exec_ext in '' $ac_executable_extensions; do
  5557. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5558. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5559. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5560. break 2
  5561. fi
  5562. done
  5563. done
  5564. fi
  5565. fi
  5566. RANLIB=$ac_cv_prog_RANLIB
  5567. if test -n "$RANLIB"; then
  5568. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5569. echo "${ECHO_T}$RANLIB" >&6
  5570. else
  5571. echo "$as_me:$LINENO: result: no" >&5
  5572. echo "${ECHO_T}no" >&6
  5573. fi
  5574. fi
  5575. if test -z "$ac_cv_prog_RANLIB"; then
  5576. ac_ct_RANLIB=$RANLIB
  5577. # Extract the first word of "ranlib", so it can be a program name with args.
  5578. set dummy ranlib; ac_word=$2
  5579. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5580. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5581. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5582. echo $ECHO_N "(cached) $ECHO_C" >&6
  5583. else
  5584. if test -n "$ac_ct_RANLIB"; then
  5585. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5586. else
  5587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5588. for as_dir in $PATH
  5589. do
  5590. IFS=$as_save_IFS
  5591. test -z "$as_dir" && as_dir=.
  5592. for ac_exec_ext in '' $ac_executable_extensions; do
  5593. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5594. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5595. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5596. break 2
  5597. fi
  5598. done
  5599. done
  5600. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5601. fi
  5602. fi
  5603. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5604. if test -n "$ac_ct_RANLIB"; then
  5605. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5606. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5607. else
  5608. echo "$as_me:$LINENO: result: no" >&5
  5609. echo "${ECHO_T}no" >&6
  5610. fi
  5611. RANLIB=$ac_ct_RANLIB
  5612. else
  5613. RANLIB="$ac_cv_prog_RANLIB"
  5614. fi
  5615. if test -n "$ac_tool_prefix"; then
  5616. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5617. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5618. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5619. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5620. if test "${ac_cv_prog_STRIP+set}" = set; then
  5621. echo $ECHO_N "(cached) $ECHO_C" >&6
  5622. else
  5623. if test -n "$STRIP"; then
  5624. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5625. else
  5626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5627. for as_dir in $PATH
  5628. do
  5629. IFS=$as_save_IFS
  5630. test -z "$as_dir" && as_dir=.
  5631. for ac_exec_ext in '' $ac_executable_extensions; do
  5632. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5633. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5634. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5635. break 2
  5636. fi
  5637. done
  5638. done
  5639. fi
  5640. fi
  5641. STRIP=$ac_cv_prog_STRIP
  5642. if test -n "$STRIP"; then
  5643. echo "$as_me:$LINENO: result: $STRIP" >&5
  5644. echo "${ECHO_T}$STRIP" >&6
  5645. else
  5646. echo "$as_me:$LINENO: result: no" >&5
  5647. echo "${ECHO_T}no" >&6
  5648. fi
  5649. fi
  5650. if test -z "$ac_cv_prog_STRIP"; then
  5651. ac_ct_STRIP=$STRIP
  5652. # Extract the first word of "strip", so it can be a program name with args.
  5653. set dummy strip; ac_word=$2
  5654. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5655. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5656. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5657. echo $ECHO_N "(cached) $ECHO_C" >&6
  5658. else
  5659. if test -n "$ac_ct_STRIP"; then
  5660. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5661. else
  5662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663. for as_dir in $PATH
  5664. do
  5665. IFS=$as_save_IFS
  5666. test -z "$as_dir" && as_dir=.
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5669. ac_cv_prog_ac_ct_STRIP="strip"
  5670. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5676. fi
  5677. fi
  5678. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5679. if test -n "$ac_ct_STRIP"; then
  5680. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5681. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5682. else
  5683. echo "$as_me:$LINENO: result: no" >&5
  5684. echo "${ECHO_T}no" >&6
  5685. fi
  5686. STRIP=$ac_ct_STRIP
  5687. else
  5688. STRIP="$ac_cv_prog_STRIP"
  5689. fi
  5690. old_CC="$CC"
  5691. old_CFLAGS="$CFLAGS"
  5692. # Set sane defaults for various variables
  5693. test -z "$AR" && AR=ar
  5694. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5695. test -z "$AS" && AS=as
  5696. test -z "$CC" && CC=cc
  5697. test -z "$LTCC" && LTCC=$CC
  5698. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5699. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5700. test -z "$LD" && LD=ld
  5701. test -z "$LN_S" && LN_S="ln -s"
  5702. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5703. test -z "$NM" && NM=nm
  5704. test -z "$SED" && SED=sed
  5705. test -z "$OBJDUMP" && OBJDUMP=objdump
  5706. test -z "$RANLIB" && RANLIB=:
  5707. test -z "$STRIP" && STRIP=:
  5708. test -z "$ac_objext" && ac_objext=o
  5709. # Determine commands to create old-style static archives.
  5710. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5711. old_postinstall_cmds='chmod 644 $oldlib'
  5712. old_postuninstall_cmds=
  5713. if test -n "$RANLIB"; then
  5714. case $host_os in
  5715. openbsd*)
  5716. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5717. ;;
  5718. *)
  5719. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5720. ;;
  5721. esac
  5722. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5723. fi
  5724. for cc_temp in $compiler""; do
  5725. case $cc_temp in
  5726. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5727. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5728. \-*) ;;
  5729. *) break;;
  5730. esac
  5731. done
  5732. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5733. # Only perform the check for file, if the check method requires it
  5734. case $deplibs_check_method in
  5735. file_magic*)
  5736. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5737. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5738. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5739. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5740. echo $ECHO_N "(cached) $ECHO_C" >&6
  5741. else
  5742. case $MAGIC_CMD in
  5743. [\\/*] | ?:[\\/]*)
  5744. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5745. ;;
  5746. *)
  5747. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5748. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5749. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5750. for ac_dir in $ac_dummy; do
  5751. IFS="$lt_save_ifs"
  5752. test -z "$ac_dir" && ac_dir=.
  5753. if test -f $ac_dir/${ac_tool_prefix}file; then
  5754. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5755. if test -n "$file_magic_test_file"; then
  5756. case $deplibs_check_method in
  5757. "file_magic "*)
  5758. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5759. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5760. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5761. $EGREP "$file_magic_regex" > /dev/null; then
  5762. :
  5763. else
  5764. cat <<EOF 1>&2
  5765. *** Warning: the command libtool uses to detect shared libraries,
  5766. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5767. *** The result is that libtool may fail to recognize shared libraries
  5768. *** as such. This will affect the creation of libtool libraries that
  5769. *** depend on shared libraries, but programs linked with such libtool
  5770. *** libraries will work regardless of this problem. Nevertheless, you
  5771. *** may want to report the problem to your system manager and/or to
  5772. *** [email protected]
  5773. EOF
  5774. fi ;;
  5775. esac
  5776. fi
  5777. break
  5778. fi
  5779. done
  5780. IFS="$lt_save_ifs"
  5781. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5782. ;;
  5783. esac
  5784. fi
  5785. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5786. if test -n "$MAGIC_CMD"; then
  5787. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5788. echo "${ECHO_T}$MAGIC_CMD" >&6
  5789. else
  5790. echo "$as_me:$LINENO: result: no" >&5
  5791. echo "${ECHO_T}no" >&6
  5792. fi
  5793. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5794. if test -n "$ac_tool_prefix"; then
  5795. echo "$as_me:$LINENO: checking for file" >&5
  5796. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5797. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5798. echo $ECHO_N "(cached) $ECHO_C" >&6
  5799. else
  5800. case $MAGIC_CMD in
  5801. [\\/*] | ?:[\\/]*)
  5802. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5803. ;;
  5804. *)
  5805. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5806. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5807. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5808. for ac_dir in $ac_dummy; do
  5809. IFS="$lt_save_ifs"
  5810. test -z "$ac_dir" && ac_dir=.
  5811. if test -f $ac_dir/file; then
  5812. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5813. if test -n "$file_magic_test_file"; then
  5814. case $deplibs_check_method in
  5815. "file_magic "*)
  5816. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5817. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5818. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5819. $EGREP "$file_magic_regex" > /dev/null; then
  5820. :
  5821. else
  5822. cat <<EOF 1>&2
  5823. *** Warning: the command libtool uses to detect shared libraries,
  5824. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5825. *** The result is that libtool may fail to recognize shared libraries
  5826. *** as such. This will affect the creation of libtool libraries that
  5827. *** depend on shared libraries, but programs linked with such libtool
  5828. *** libraries will work regardless of this problem. Nevertheless, you
  5829. *** may want to report the problem to your system manager and/or to
  5830. *** [email protected]
  5831. EOF
  5832. fi ;;
  5833. esac
  5834. fi
  5835. break
  5836. fi
  5837. done
  5838. IFS="$lt_save_ifs"
  5839. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5840. ;;
  5841. esac
  5842. fi
  5843. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5844. if test -n "$MAGIC_CMD"; then
  5845. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5846. echo "${ECHO_T}$MAGIC_CMD" >&6
  5847. else
  5848. echo "$as_me:$LINENO: result: no" >&5
  5849. echo "${ECHO_T}no" >&6
  5850. fi
  5851. else
  5852. MAGIC_CMD=:
  5853. fi
  5854. fi
  5855. fi
  5856. ;;
  5857. esac
  5858. enable_dlopen=no
  5859. enable_win32_dll=no
  5860. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5861. if test "${enable_libtool_lock+set}" = set; then
  5862. enableval="$enable_libtool_lock"
  5863. fi;
  5864. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5865. # Check whether --with-pic or --without-pic was given.
  5866. if test "${with_pic+set}" = set; then
  5867. withval="$with_pic"
  5868. pic_mode="$withval"
  5869. else
  5870. pic_mode=default
  5871. fi;
  5872. test -z "$pic_mode" && pic_mode=default
  5873. # Use C for the default configuration in the libtool script
  5874. tagname=
  5875. lt_save_CC="$CC"
  5876. ac_ext=c
  5877. ac_cpp='$CPP $CPPFLAGS'
  5878. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5879. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5880. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5881. # Source file extension for C test sources.
  5882. ac_ext=c
  5883. # Object file extension for compiled C test sources.
  5884. objext=o
  5885. objext=$objext
  5886. # Code to be used in simple compile tests
  5887. lt_simple_compile_test_code="int some_variable = 0;\n"
  5888. # Code to be used in simple link tests
  5889. lt_simple_link_test_code='int main(){return(0);}\n'
  5890. # If no C compiler was specified, use CC.
  5891. LTCC=${LTCC-"$CC"}
  5892. # If no C compiler flags were specified, use CFLAGS.
  5893. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5894. # Allow CC to be a program name with arguments.
  5895. compiler=$CC
  5896. # save warnings/boilerplate of simple test code
  5897. ac_outfile=conftest.$ac_objext
  5898. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5899. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5900. _lt_compiler_boilerplate=`cat conftest.err`
  5901. $rm conftest*
  5902. ac_outfile=conftest.$ac_objext
  5903. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5904. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5905. _lt_linker_boilerplate=`cat conftest.err`
  5906. $rm conftest*
  5907. lt_prog_compiler_no_builtin_flag=
  5908. if test "$GCC" = yes; then
  5909. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5910. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5911. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5912. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5913. echo $ECHO_N "(cached) $ECHO_C" >&6
  5914. else
  5915. lt_cv_prog_compiler_rtti_exceptions=no
  5916. ac_outfile=conftest.$ac_objext
  5917. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5918. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5919. # Insert the option either (1) after the last *FLAGS variable, or
  5920. # (2) before a word containing "conftest.", or (3) at the end.
  5921. # Note that $ac_compile itself does not contain backslashes and begins
  5922. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5923. # The option is referenced via a variable to avoid confusing sed.
  5924. lt_compile=`echo "$ac_compile" | $SED \
  5925. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5926. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5927. -e 's:$: $lt_compiler_flag:'`
  5928. (eval echo "\"\$as_me:6560: $lt_compile\"" >&5)
  5929. (eval "$lt_compile" 2>conftest.err)
  5930. ac_status=$?
  5931. cat conftest.err >&5
  5932. echo "$as_me:6564: \$? = $ac_status" >&5
  5933. if (exit $ac_status) && test -s "$ac_outfile"; then
  5934. # The compiler can only warn and ignore the option if not recognized
  5935. # So say no if there are warnings other than the usual output.
  5936. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5937. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5938. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5939. lt_cv_prog_compiler_rtti_exceptions=yes
  5940. fi
  5941. fi
  5942. $rm conftest*
  5943. fi
  5944. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5945. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5946. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5947. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5948. else
  5949. :
  5950. fi
  5951. fi
  5952. lt_prog_compiler_wl=
  5953. lt_prog_compiler_pic=
  5954. lt_prog_compiler_static=
  5955. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5956. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5957. if test "$GCC" = yes; then
  5958. lt_prog_compiler_wl='-Wl,'
  5959. lt_prog_compiler_static='-static'
  5960. case $host_os in
  5961. aix*)
  5962. # All AIX code is PIC.
  5963. if test "$host_cpu" = ia64; then
  5964. # AIX 5 now supports IA64 processor
  5965. lt_prog_compiler_static='-Bstatic'
  5966. fi
  5967. ;;
  5968. amigaos*)
  5969. # FIXME: we need at least 68020 code to build shared libraries, but
  5970. # adding the `-m68020' flag to GCC prevents building anything better,
  5971. # like `-m68040'.
  5972. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5973. ;;
  5974. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5975. # PIC is the default for these OSes.
  5976. ;;
  5977. mingw* | pw32* | os2*)
  5978. # This hack is so that the source file can tell whether it is being
  5979. # built for inclusion in a dll (and should export symbols for example).
  5980. lt_prog_compiler_pic='-DDLL_EXPORT'
  5981. ;;
  5982. darwin* | rhapsody*)
  5983. # PIC is the default on this platform
  5984. # Common symbols not allowed in MH_DYLIB files
  5985. lt_prog_compiler_pic='-fno-common'
  5986. ;;
  5987. interix3*)
  5988. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5989. # Instead, we relocate shared libraries at runtime.
  5990. ;;
  5991. msdosdjgpp*)
  5992. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5993. # on systems that don't support them.
  5994. lt_prog_compiler_can_build_shared=no
  5995. enable_shared=no
  5996. ;;
  5997. sysv4*MP*)
  5998. if test -d /usr/nec; then
  5999. lt_prog_compiler_pic=-Kconform_pic
  6000. fi
  6001. ;;
  6002. hpux*)
  6003. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6004. # not for PA HP-UX.
  6005. case $host_cpu in
  6006. hppa*64*|ia64*)
  6007. # +Z the default
  6008. ;;
  6009. *)
  6010. lt_prog_compiler_pic='-fPIC'
  6011. ;;
  6012. esac
  6013. ;;
  6014. *)
  6015. lt_prog_compiler_pic='-fPIC'
  6016. ;;
  6017. esac
  6018. else
  6019. # PORTME Check for flag to pass linker flags through the system compiler.
  6020. case $host_os in
  6021. aix*)
  6022. lt_prog_compiler_wl='-Wl,'
  6023. if test "$host_cpu" = ia64; then
  6024. # AIX 5 now supports IA64 processor
  6025. lt_prog_compiler_static='-Bstatic'
  6026. else
  6027. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6028. fi
  6029. ;;
  6030. darwin*)
  6031. # PIC is the default on this platform
  6032. # Common symbols not allowed in MH_DYLIB files
  6033. case $cc_basename in
  6034. xlc*)
  6035. lt_prog_compiler_pic='-qnocommon'
  6036. lt_prog_compiler_wl='-Wl,'
  6037. ;;
  6038. esac
  6039. ;;
  6040. mingw* | pw32* | os2*)
  6041. # This hack is so that the source file can tell whether it is being
  6042. # built for inclusion in a dll (and should export symbols for example).
  6043. lt_prog_compiler_pic='-DDLL_EXPORT'
  6044. ;;
  6045. hpux9* | hpux10* | hpux11*)
  6046. lt_prog_compiler_wl='-Wl,'
  6047. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6048. # not for PA HP-UX.
  6049. case $host_cpu in
  6050. hppa*64*|ia64*)
  6051. # +Z the default
  6052. ;;
  6053. *)
  6054. lt_prog_compiler_pic='+Z'
  6055. ;;
  6056. esac
  6057. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6058. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6059. ;;
  6060. irix5* | irix6* | nonstopux*)
  6061. lt_prog_compiler_wl='-Wl,'
  6062. # PIC (with -KPIC) is the default.
  6063. lt_prog_compiler_static='-non_shared'
  6064. ;;
  6065. newsos6)
  6066. lt_prog_compiler_pic='-KPIC'
  6067. lt_prog_compiler_static='-Bstatic'
  6068. ;;
  6069. linux*)
  6070. case $cc_basename in
  6071. icc* | ecc*)
  6072. lt_prog_compiler_wl='-Wl,'
  6073. lt_prog_compiler_pic='-KPIC'
  6074. lt_prog_compiler_static='-static'
  6075. ;;
  6076. pgcc* | pgf77* | pgf90* | pgf95*)
  6077. # Portland Group compilers (*not* the Pentium gcc compiler,
  6078. # which looks to be a dead project)
  6079. lt_prog_compiler_wl='-Wl,'
  6080. lt_prog_compiler_pic='-fpic'
  6081. lt_prog_compiler_static='-Bstatic'
  6082. ;;
  6083. ccc*)
  6084. lt_prog_compiler_wl='-Wl,'
  6085. # All Alpha code is PIC.
  6086. lt_prog_compiler_static='-non_shared'
  6087. ;;
  6088. esac
  6089. ;;
  6090. osf3* | osf4* | osf5*)
  6091. lt_prog_compiler_wl='-Wl,'
  6092. # All OSF/1 code is PIC.
  6093. lt_prog_compiler_static='-non_shared'
  6094. ;;
  6095. solaris*)
  6096. lt_prog_compiler_pic='-KPIC'
  6097. lt_prog_compiler_static='-Bstatic'
  6098. case $cc_basename in
  6099. f77* | f90* | f95*)
  6100. lt_prog_compiler_wl='-Qoption ld ';;
  6101. *)
  6102. lt_prog_compiler_wl='-Wl,';;
  6103. esac
  6104. ;;
  6105. sunos4*)
  6106. lt_prog_compiler_wl='-Qoption ld '
  6107. lt_prog_compiler_pic='-PIC'
  6108. lt_prog_compiler_static='-Bstatic'
  6109. ;;
  6110. sysv4 | sysv4.2uw2* | sysv4.3*)
  6111. lt_prog_compiler_wl='-Wl,'
  6112. lt_prog_compiler_pic='-KPIC'
  6113. lt_prog_compiler_static='-Bstatic'
  6114. ;;
  6115. sysv4*MP*)
  6116. if test -d /usr/nec ;then
  6117. lt_prog_compiler_pic='-Kconform_pic'
  6118. lt_prog_compiler_static='-Bstatic'
  6119. fi
  6120. ;;
  6121. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6122. lt_prog_compiler_wl='-Wl,'
  6123. lt_prog_compiler_pic='-KPIC'
  6124. lt_prog_compiler_static='-Bstatic'
  6125. ;;
  6126. unicos*)
  6127. lt_prog_compiler_wl='-Wl,'
  6128. lt_prog_compiler_can_build_shared=no
  6129. ;;
  6130. uts4*)
  6131. lt_prog_compiler_pic='-pic'
  6132. lt_prog_compiler_static='-Bstatic'
  6133. ;;
  6134. *)
  6135. lt_prog_compiler_can_build_shared=no
  6136. ;;
  6137. esac
  6138. fi
  6139. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6140. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6141. #
  6142. # Check to make sure the PIC flag actually works.
  6143. #
  6144. if test -n "$lt_prog_compiler_pic"; then
  6145. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6146. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6147. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6148. echo $ECHO_N "(cached) $ECHO_C" >&6
  6149. else
  6150. lt_prog_compiler_pic_works=no
  6151. ac_outfile=conftest.$ac_objext
  6152. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6153. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6154. # Insert the option either (1) after the last *FLAGS variable, or
  6155. # (2) before a word containing "conftest.", or (3) at the end.
  6156. # Note that $ac_compile itself does not contain backslashes and begins
  6157. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6158. # The option is referenced via a variable to avoid confusing sed.
  6159. lt_compile=`echo "$ac_compile" | $SED \
  6160. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6161. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6162. -e 's:$: $lt_compiler_flag:'`
  6163. (eval echo "\"\$as_me:6828: $lt_compile\"" >&5)
  6164. (eval "$lt_compile" 2>conftest.err)
  6165. ac_status=$?
  6166. cat conftest.err >&5
  6167. echo "$as_me:6832: \$? = $ac_status" >&5
  6168. if (exit $ac_status) && test -s "$ac_outfile"; then
  6169. # The compiler can only warn and ignore the option if not recognized
  6170. # So say no if there are warnings other than the usual output.
  6171. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6172. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6173. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6174. lt_prog_compiler_pic_works=yes
  6175. fi
  6176. fi
  6177. $rm conftest*
  6178. fi
  6179. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6180. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6181. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6182. case $lt_prog_compiler_pic in
  6183. "" | " "*) ;;
  6184. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6185. esac
  6186. else
  6187. lt_prog_compiler_pic=
  6188. lt_prog_compiler_can_build_shared=no
  6189. fi
  6190. fi
  6191. case $host_os in
  6192. # For platforms which do not support PIC, -DPIC is meaningless:
  6193. *djgpp*)
  6194. lt_prog_compiler_pic=
  6195. ;;
  6196. *)
  6197. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6198. ;;
  6199. esac
  6200. #
  6201. # Check to make sure the static flag actually works.
  6202. #
  6203. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6204. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6205. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6206. if test "${lt_prog_compiler_static_works+set}" = set; then
  6207. echo $ECHO_N "(cached) $ECHO_C" >&6
  6208. else
  6209. lt_prog_compiler_static_works=no
  6210. save_LDFLAGS="$LDFLAGS"
  6211. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6212. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6213. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6214. # The linker can only warn and ignore the option if not recognized
  6215. # So say no if there are warnings
  6216. if test -s conftest.err; then
  6217. # Append any errors to the config.log.
  6218. cat conftest.err 1>&5
  6219. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6220. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6221. if diff conftest.exp conftest.er2 >/dev/null; then
  6222. lt_prog_compiler_static_works=yes
  6223. fi
  6224. else
  6225. lt_prog_compiler_static_works=yes
  6226. fi
  6227. fi
  6228. $rm conftest*
  6229. LDFLAGS="$save_LDFLAGS"
  6230. fi
  6231. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6232. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6233. if test x"$lt_prog_compiler_static_works" = xyes; then
  6234. :
  6235. else
  6236. lt_prog_compiler_static=
  6237. fi
  6238. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6239. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6240. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6241. echo $ECHO_N "(cached) $ECHO_C" >&6
  6242. else
  6243. lt_cv_prog_compiler_c_o=no
  6244. $rm -r conftest 2>/dev/null
  6245. mkdir conftest
  6246. cd conftest
  6247. mkdir out
  6248. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6249. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6250. # Insert the option either (1) after the last *FLAGS variable, or
  6251. # (2) before a word containing "conftest.", or (3) at the end.
  6252. # Note that $ac_compile itself does not contain backslashes and begins
  6253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6254. lt_compile=`echo "$ac_compile" | $SED \
  6255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6257. -e 's:$: $lt_compiler_flag:'`
  6258. (eval echo "\"\$as_me:6932: $lt_compile\"" >&5)
  6259. (eval "$lt_compile" 2>out/conftest.err)
  6260. ac_status=$?
  6261. cat out/conftest.err >&5
  6262. echo "$as_me:6936: \$? = $ac_status" >&5
  6263. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6264. then
  6265. # The compiler can only warn and ignore the option if not recognized
  6266. # So say no if there are warnings
  6267. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6268. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6269. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6270. lt_cv_prog_compiler_c_o=yes
  6271. fi
  6272. fi
  6273. chmod u+w . 2>&5
  6274. $rm conftest*
  6275. # SGI C++ compiler will create directory out/ii_files/ for
  6276. # template instantiation
  6277. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6278. $rm out/* && rmdir out
  6279. cd ..
  6280. rmdir conftest
  6281. $rm conftest*
  6282. fi
  6283. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6284. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6285. hard_links="nottested"
  6286. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6287. # do not overwrite the value of need_locks provided by the user
  6288. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6289. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6290. hard_links=yes
  6291. $rm conftest*
  6292. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6293. touch conftest.a
  6294. ln conftest.a conftest.b 2>&5 || hard_links=no
  6295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6296. echo "$as_me:$LINENO: result: $hard_links" >&5
  6297. echo "${ECHO_T}$hard_links" >&6
  6298. if test "$hard_links" = no; then
  6299. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6300. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6301. need_locks=warn
  6302. fi
  6303. else
  6304. need_locks=no
  6305. fi
  6306. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6307. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6308. runpath_var=
  6309. allow_undefined_flag=
  6310. enable_shared_with_static_runtimes=no
  6311. archive_cmds=
  6312. archive_expsym_cmds=
  6313. old_archive_From_new_cmds=
  6314. old_archive_from_expsyms_cmds=
  6315. export_dynamic_flag_spec=
  6316. whole_archive_flag_spec=
  6317. thread_safe_flag_spec=
  6318. hardcode_libdir_flag_spec=
  6319. hardcode_libdir_flag_spec_ld=
  6320. hardcode_libdir_separator=
  6321. hardcode_direct=no
  6322. hardcode_minus_L=no
  6323. hardcode_shlibpath_var=unsupported
  6324. link_all_deplibs=unknown
  6325. hardcode_automatic=no
  6326. module_cmds=
  6327. module_expsym_cmds=
  6328. always_export_symbols=no
  6329. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6330. # include_expsyms should be a list of space-separated symbols to be *always*
  6331. # included in the symbol list
  6332. include_expsyms=
  6333. # exclude_expsyms can be an extended regexp of symbols to exclude
  6334. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6335. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6336. # as well as any symbol that contains `d'.
  6337. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6338. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6339. # platforms (ab)use it in PIC code, but their linkers get confused if
  6340. # the symbol is explicitly referenced. Since portable code cannot
  6341. # rely on this symbol name, it's probably fine to never include it in
  6342. # preloaded symbol tables.
  6343. extract_expsyms_cmds=
  6344. # Just being paranoid about ensuring that cc_basename is set.
  6345. for cc_temp in $compiler""; do
  6346. case $cc_temp in
  6347. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6348. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6349. \-*) ;;
  6350. *) break;;
  6351. esac
  6352. done
  6353. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6354. case $host_os in
  6355. cygwin* | mingw* | pw32*)
  6356. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6357. # When not using gcc, we currently assume that we are using
  6358. # Microsoft Visual C++.
  6359. if test "$GCC" != yes; then
  6360. with_gnu_ld=no
  6361. fi
  6362. ;;
  6363. interix*)
  6364. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6365. with_gnu_ld=yes
  6366. ;;
  6367. openbsd*)
  6368. with_gnu_ld=no
  6369. ;;
  6370. esac
  6371. ld_shlibs=yes
  6372. if test "$with_gnu_ld" = yes; then
  6373. # If archive_cmds runs LD, not CC, wlarc should be empty
  6374. wlarc='${wl}'
  6375. # Set some defaults for GNU ld with shared library support. These
  6376. # are reset later if shared libraries are not supported. Putting them
  6377. # here allows them to be overridden if necessary.
  6378. runpath_var=LD_RUN_PATH
  6379. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6380. export_dynamic_flag_spec='${wl}--export-dynamic'
  6381. # ancient GNU ld didn't support --whole-archive et. al.
  6382. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6383. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6384. else
  6385. whole_archive_flag_spec=
  6386. fi
  6387. supports_anon_versioning=no
  6388. case `$LD -v 2>/dev/null` in
  6389. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6390. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6391. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6392. *\ 2.11.*) ;; # other 2.11 versions
  6393. *) supports_anon_versioning=yes ;;
  6394. esac
  6395. # See if GNU ld supports shared libraries.
  6396. case $host_os in
  6397. aix3* | aix4* | aix5*)
  6398. # On AIX/PPC, the GNU linker is very broken
  6399. if test "$host_cpu" != ia64; then
  6400. ld_shlibs=no
  6401. cat <<EOF 1>&2
  6402. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6403. *** to be unable to reliably create shared libraries on AIX.
  6404. *** Therefore, libtool is disabling shared libraries support. If you
  6405. *** really care for shared libraries, you may want to modify your PATH
  6406. *** so that a non-GNU linker is found, and then restart.
  6407. EOF
  6408. fi
  6409. ;;
  6410. amigaos*)
  6411. 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)'
  6412. hardcode_libdir_flag_spec='-L$libdir'
  6413. hardcode_minus_L=yes
  6414. # Samuel A. Falvo II <[email protected]> reports
  6415. # that the semantics of dynamic libraries on AmigaOS, at least up
  6416. # to version 4, is to share data among multiple programs linked
  6417. # with the same dynamic library. Since this doesn't match the
  6418. # behavior of shared libraries on other platforms, we can't use
  6419. # them.
  6420. ld_shlibs=no
  6421. ;;
  6422. beos*)
  6423. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6424. allow_undefined_flag=unsupported
  6425. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6426. # support --undefined. This deserves some investigation. FIXME
  6427. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6428. else
  6429. ld_shlibs=no
  6430. fi
  6431. ;;
  6432. cygwin* | mingw* | pw32*)
  6433. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6434. # as there is no search path for DLLs.
  6435. hardcode_libdir_flag_spec='-L$libdir'
  6436. allow_undefined_flag=unsupported
  6437. always_export_symbols=no
  6438. enable_shared_with_static_runtimes=yes
  6439. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6440. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6441. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6442. # If the export-symbols file already is a .def file (1st line
  6443. # is EXPORTS), use it as is; otherwise, prepend...
  6444. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6445. cp $export_symbols $output_objdir/$soname.def;
  6446. else
  6447. echo EXPORTS > $output_objdir/$soname.def;
  6448. cat $export_symbols >> $output_objdir/$soname.def;
  6449. fi~
  6450. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6451. else
  6452. ld_shlibs=no
  6453. fi
  6454. ;;
  6455. interix3*)
  6456. hardcode_direct=no
  6457. hardcode_shlibpath_var=no
  6458. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6459. export_dynamic_flag_spec='${wl}-E'
  6460. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6461. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6462. # default) and relocated if they conflict, which is a slow very memory
  6463. # consuming and fragmenting process. To avoid this, we pick a random,
  6464. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6465. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6466. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6467. 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'
  6468. ;;
  6469. linux*)
  6470. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6471. tmp_addflag=
  6472. case $cc_basename,$host_cpu in
  6473. pgcc*) # Portland Group C compiler
  6474. 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'
  6475. tmp_addflag=' $pic_flag'
  6476. ;;
  6477. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6478. 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'
  6479. tmp_addflag=' $pic_flag -Mnomain' ;;
  6480. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6481. tmp_addflag=' -i_dynamic' ;;
  6482. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6483. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6484. ifc* | ifort*) # Intel Fortran compiler
  6485. tmp_addflag=' -nofor_main' ;;
  6486. esac
  6487. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6488. if test $supports_anon_versioning = yes; then
  6489. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6490. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6491. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6492. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6493. fi
  6494. else
  6495. ld_shlibs=no
  6496. fi
  6497. ;;
  6498. netbsd*)
  6499. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6500. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6501. wlarc=
  6502. else
  6503. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6504. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6505. fi
  6506. ;;
  6507. solaris*)
  6508. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6509. ld_shlibs=no
  6510. cat <<EOF 1>&2
  6511. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6512. *** create shared libraries on Solaris systems. Therefore, libtool
  6513. *** is disabling shared libraries support. We urge you to upgrade GNU
  6514. *** binutils to release 2.9.1 or newer. Another option is to modify
  6515. *** your PATH or compiler configuration so that the native linker is
  6516. *** used, and then restart.
  6517. EOF
  6518. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6519. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6520. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6521. else
  6522. ld_shlibs=no
  6523. fi
  6524. ;;
  6525. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6526. case `$LD -v 2>&1` in
  6527. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6528. ld_shlibs=no
  6529. cat <<_LT_EOF 1>&2
  6530. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6531. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6532. *** is disabling shared libraries support. We urge you to upgrade GNU
  6533. *** binutils to release 2.16.91.0.3 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. _LT_EOF
  6537. ;;
  6538. *)
  6539. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6540. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6541. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6542. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6543. else
  6544. ld_shlibs=no
  6545. fi
  6546. ;;
  6547. esac
  6548. ;;
  6549. sunos4*)
  6550. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6551. wlarc=
  6552. hardcode_direct=yes
  6553. hardcode_shlibpath_var=no
  6554. ;;
  6555. *)
  6556. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6558. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6559. else
  6560. ld_shlibs=no
  6561. fi
  6562. ;;
  6563. esac
  6564. if test "$ld_shlibs" = no; then
  6565. runpath_var=
  6566. hardcode_libdir_flag_spec=
  6567. export_dynamic_flag_spec=
  6568. whole_archive_flag_spec=
  6569. fi
  6570. else
  6571. # PORTME fill in a description of your system's linker (not GNU ld)
  6572. case $host_os in
  6573. aix3*)
  6574. allow_undefined_flag=unsupported
  6575. always_export_symbols=yes
  6576. 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'
  6577. # Note: this linker hardcodes the directories in LIBPATH if there
  6578. # are no directories specified by -L.
  6579. hardcode_minus_L=yes
  6580. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6581. # Neither direct hardcoding nor static linking is supported with a
  6582. # broken collect2.
  6583. hardcode_direct=unsupported
  6584. fi
  6585. ;;
  6586. aix4* | aix5*)
  6587. if test "$host_cpu" = ia64; then
  6588. # On IA64, the linker does run time linking by default, so we don't
  6589. # have to do anything special.
  6590. aix_use_runtimelinking=no
  6591. exp_sym_flag='-Bexport'
  6592. no_entry_flag=""
  6593. else
  6594. # If we're using GNU nm, then we don't want the "-C" option.
  6595. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6596. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6597. 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'
  6598. else
  6599. 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'
  6600. fi
  6601. aix_use_runtimelinking=no
  6602. # Test if we are trying to use run time linking or normal
  6603. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6604. # need to do runtime linking.
  6605. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6606. for ld_flag in $LDFLAGS; do
  6607. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6608. aix_use_runtimelinking=yes
  6609. break
  6610. fi
  6611. done
  6612. ;;
  6613. esac
  6614. exp_sym_flag='-bexport'
  6615. no_entry_flag='-bnoentry'
  6616. fi
  6617. # When large executables or shared objects are built, AIX ld can
  6618. # have problems creating the table of contents. If linking a library
  6619. # or program results in "error TOC overflow" add -mminimal-toc to
  6620. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6621. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6622. archive_cmds=''
  6623. hardcode_direct=yes
  6624. hardcode_libdir_separator=':'
  6625. link_all_deplibs=yes
  6626. if test "$GCC" = yes; then
  6627. case $host_os in aix4.[012]|aix4.[012].*)
  6628. # We only want to do this on AIX 4.2 and lower, the check
  6629. # below for broken collect2 doesn't work under 4.3+
  6630. collect2name=`${CC} -print-prog-name=collect2`
  6631. if test -f "$collect2name" && \
  6632. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6633. then
  6634. # We have reworked collect2
  6635. hardcode_direct=yes
  6636. else
  6637. # We have old collect2
  6638. hardcode_direct=unsupported
  6639. # It fails to find uninstalled libraries when the uninstalled
  6640. # path is not listed in the libpath. Setting hardcode_minus_L
  6641. # to unsupported forces relinking
  6642. hardcode_minus_L=yes
  6643. hardcode_libdir_flag_spec='-L$libdir'
  6644. hardcode_libdir_separator=
  6645. fi
  6646. ;;
  6647. esac
  6648. shared_flag='-shared'
  6649. if test "$aix_use_runtimelinking" = yes; then
  6650. shared_flag="$shared_flag "'${wl}-G'
  6651. fi
  6652. else
  6653. # not using gcc
  6654. if test "$host_cpu" = ia64; then
  6655. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6656. # chokes on -Wl,-G. The following line is correct:
  6657. shared_flag='-G'
  6658. else
  6659. if test "$aix_use_runtimelinking" = yes; then
  6660. shared_flag='${wl}-G'
  6661. else
  6662. shared_flag='${wl}-bM:SRE'
  6663. fi
  6664. fi
  6665. fi
  6666. # It seems that -bexpall does not export symbols beginning with
  6667. # underscore (_), so it is better to generate a list of symbols to export.
  6668. always_export_symbols=yes
  6669. if test "$aix_use_runtimelinking" = yes; then
  6670. # Warning - without using the other runtime loading flags (-brtl),
  6671. # -berok will link without error, but may produce a broken library.
  6672. allow_undefined_flag='-berok'
  6673. # Determine the default libpath from the value encoded in an empty executable.
  6674. cat >conftest.$ac_ext <<_ACEOF
  6675. /* confdefs.h. */
  6676. _ACEOF
  6677. cat confdefs.h >>conftest.$ac_ext
  6678. cat >>conftest.$ac_ext <<_ACEOF
  6679. /* end confdefs.h. */
  6680. int
  6681. main ()
  6682. {
  6683. ;
  6684. return 0;
  6685. }
  6686. _ACEOF
  6687. rm -f conftest.$ac_objext conftest$ac_exeext
  6688. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6689. (eval $ac_link) 2>conftest.er1
  6690. ac_status=$?
  6691. grep -v '^ *+' conftest.er1 >conftest.err
  6692. rm -f conftest.er1
  6693. cat conftest.err >&5
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); } &&
  6696. { ac_try='test -z "$ac_c_werror_flag"
  6697. || test ! -s conftest.err'
  6698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6699. (eval $ac_try) 2>&5
  6700. ac_status=$?
  6701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6702. (exit $ac_status); }; } &&
  6703. { ac_try='test -s conftest$ac_exeext'
  6704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6705. (eval $ac_try) 2>&5
  6706. ac_status=$?
  6707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6708. (exit $ac_status); }; }; then
  6709. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6710. }'`
  6711. # Check for a 64-bit object if we didn't find anything.
  6712. 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; }
  6713. }'`; fi
  6714. else
  6715. echo "$as_me: failed program was:" >&5
  6716. sed 's/^/| /' conftest.$ac_ext >&5
  6717. fi
  6718. rm -f conftest.err conftest.$ac_objext \
  6719. conftest$ac_exeext conftest.$ac_ext
  6720. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6721. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6722. 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"
  6723. else
  6724. if test "$host_cpu" = ia64; then
  6725. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6726. allow_undefined_flag="-z nodefs"
  6727. 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"
  6728. else
  6729. # Determine the default libpath from the value encoded in an empty executable.
  6730. cat >conftest.$ac_ext <<_ACEOF
  6731. /* confdefs.h. */
  6732. _ACEOF
  6733. cat confdefs.h >>conftest.$ac_ext
  6734. cat >>conftest.$ac_ext <<_ACEOF
  6735. /* end confdefs.h. */
  6736. int
  6737. main ()
  6738. {
  6739. ;
  6740. return 0;
  6741. }
  6742. _ACEOF
  6743. rm -f conftest.$ac_objext conftest$ac_exeext
  6744. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6745. (eval $ac_link) 2>conftest.er1
  6746. ac_status=$?
  6747. grep -v '^ *+' conftest.er1 >conftest.err
  6748. rm -f conftest.er1
  6749. cat conftest.err >&5
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); } &&
  6752. { ac_try='test -z "$ac_c_werror_flag"
  6753. || test ! -s conftest.err'
  6754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6755. (eval $ac_try) 2>&5
  6756. ac_status=$?
  6757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6758. (exit $ac_status); }; } &&
  6759. { ac_try='test -s conftest$ac_exeext'
  6760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6761. (eval $ac_try) 2>&5
  6762. ac_status=$?
  6763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6764. (exit $ac_status); }; }; then
  6765. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6766. }'`
  6767. # Check for a 64-bit object if we didn't find anything.
  6768. 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; }
  6769. }'`; fi
  6770. else
  6771. echo "$as_me: failed program was:" >&5
  6772. sed 's/^/| /' conftest.$ac_ext >&5
  6773. fi
  6774. rm -f conftest.err conftest.$ac_objext \
  6775. conftest$ac_exeext conftest.$ac_ext
  6776. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6777. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6778. # Warning - without using the other run time loading flags,
  6779. # -berok will link without error, but may produce a broken library.
  6780. no_undefined_flag=' ${wl}-bernotok'
  6781. allow_undefined_flag=' ${wl}-berok'
  6782. # Exported symbols can be pulled into shared objects from archives
  6783. whole_archive_flag_spec='$convenience'
  6784. archive_cmds_need_lc=yes
  6785. # This is similar to how AIX traditionally builds its shared libraries.
  6786. 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'
  6787. fi
  6788. fi
  6789. ;;
  6790. amigaos*)
  6791. 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)'
  6792. hardcode_libdir_flag_spec='-L$libdir'
  6793. hardcode_minus_L=yes
  6794. # see comment about different semantics on the GNU ld section
  6795. ld_shlibs=no
  6796. ;;
  6797. bsdi[45]*)
  6798. export_dynamic_flag_spec=-rdynamic
  6799. ;;
  6800. cygwin* | mingw* | pw32*)
  6801. # When not using gcc, we currently assume that we are using
  6802. # Microsoft Visual C++.
  6803. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6804. # no search path for DLLs.
  6805. hardcode_libdir_flag_spec=' '
  6806. allow_undefined_flag=unsupported
  6807. # Tell ltmain to make .lib files, not .a files.
  6808. libext=lib
  6809. # Tell ltmain to make .dll files, not .so files.
  6810. shrext_cmds=".dll"
  6811. # FIXME: Setting linknames here is a bad hack.
  6812. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6813. # The linker will automatically build a .lib file if we build a DLL.
  6814. old_archive_From_new_cmds='true'
  6815. # FIXME: Should let the user specify the lib program.
  6816. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6817. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6818. enable_shared_with_static_runtimes=yes
  6819. ;;
  6820. darwin* | rhapsody*)
  6821. case $host_os in
  6822. rhapsody* | darwin1.[012])
  6823. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6824. ;;
  6825. *) # Darwin 1.3 on
  6826. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6827. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6828. else
  6829. case ${MACOSX_DEPLOYMENT_TARGET} in
  6830. 10.[012])
  6831. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6832. ;;
  6833. 10.*)
  6834. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6835. ;;
  6836. esac
  6837. fi
  6838. ;;
  6839. esac
  6840. archive_cmds_need_lc=no
  6841. hardcode_direct=no
  6842. hardcode_automatic=yes
  6843. hardcode_shlibpath_var=unsupported
  6844. whole_archive_flag_spec=''
  6845. link_all_deplibs=yes
  6846. if test "$GCC" = yes ; then
  6847. output_verbose_link_cmd='echo'
  6848. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6849. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6850. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6851. 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}'
  6852. 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}'
  6853. else
  6854. case $cc_basename in
  6855. xlc*)
  6856. output_verbose_link_cmd='echo'
  6857. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6858. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6859. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6860. 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}'
  6861. 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}'
  6862. ;;
  6863. *)
  6864. ld_shlibs=no
  6865. ;;
  6866. esac
  6867. fi
  6868. ;;
  6869. dgux*)
  6870. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6871. hardcode_libdir_flag_spec='-L$libdir'
  6872. hardcode_shlibpath_var=no
  6873. ;;
  6874. freebsd1*)
  6875. ld_shlibs=no
  6876. ;;
  6877. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6878. # support. Future versions do this automatically, but an explicit c++rt0.o
  6879. # does not break anything, and helps significantly (at the cost of a little
  6880. # extra space).
  6881. freebsd2.2*)
  6882. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6883. hardcode_libdir_flag_spec='-R$libdir'
  6884. hardcode_direct=yes
  6885. hardcode_shlibpath_var=no
  6886. ;;
  6887. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6888. freebsd2*)
  6889. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6890. hardcode_direct=yes
  6891. hardcode_minus_L=yes
  6892. hardcode_shlibpath_var=no
  6893. ;;
  6894. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6895. freebsd* | kfreebsd*-gnu | dragonfly*)
  6896. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6897. hardcode_libdir_flag_spec='-R$libdir'
  6898. hardcode_direct=yes
  6899. hardcode_shlibpath_var=no
  6900. ;;
  6901. hpux9*)
  6902. if test "$GCC" = yes; then
  6903. 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'
  6904. else
  6905. 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'
  6906. fi
  6907. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6908. hardcode_libdir_separator=:
  6909. hardcode_direct=yes
  6910. # hardcode_minus_L: Not really in the search PATH,
  6911. # but as the default location of the library.
  6912. hardcode_minus_L=yes
  6913. export_dynamic_flag_spec='${wl}-E'
  6914. ;;
  6915. hpux10*)
  6916. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6917. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6918. else
  6919. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6920. fi
  6921. if test "$with_gnu_ld" = no; then
  6922. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6923. hardcode_libdir_separator=:
  6924. hardcode_direct=yes
  6925. export_dynamic_flag_spec='${wl}-E'
  6926. # hardcode_minus_L: Not really in the search PATH,
  6927. # but as the default location of the library.
  6928. hardcode_minus_L=yes
  6929. fi
  6930. ;;
  6931. hpux11*)
  6932. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6933. case $host_cpu in
  6934. hppa*64*)
  6935. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6936. ;;
  6937. ia64*)
  6938. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6939. ;;
  6940. *)
  6941. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6942. ;;
  6943. esac
  6944. else
  6945. case $host_cpu in
  6946. hppa*64*)
  6947. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6948. ;;
  6949. ia64*)
  6950. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6951. ;;
  6952. *)
  6953. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6954. ;;
  6955. esac
  6956. fi
  6957. if test "$with_gnu_ld" = no; then
  6958. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6959. hardcode_libdir_separator=:
  6960. case $host_cpu in
  6961. hppa*64*|ia64*)
  6962. hardcode_libdir_flag_spec_ld='+b $libdir'
  6963. hardcode_direct=no
  6964. hardcode_shlibpath_var=no
  6965. ;;
  6966. *)
  6967. hardcode_direct=yes
  6968. export_dynamic_flag_spec='${wl}-E'
  6969. # hardcode_minus_L: Not really in the search PATH,
  6970. # but as the default location of the library.
  6971. hardcode_minus_L=yes
  6972. ;;
  6973. esac
  6974. fi
  6975. ;;
  6976. irix5* | irix6* | nonstopux*)
  6977. if test "$GCC" = yes; then
  6978. 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'
  6979. else
  6980. 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'
  6981. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6982. fi
  6983. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6984. hardcode_libdir_separator=:
  6985. link_all_deplibs=yes
  6986. ;;
  6987. netbsd*)
  6988. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6989. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6990. else
  6991. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6992. fi
  6993. hardcode_libdir_flag_spec='-R$libdir'
  6994. hardcode_direct=yes
  6995. hardcode_shlibpath_var=no
  6996. ;;
  6997. newsos6)
  6998. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6999. hardcode_direct=yes
  7000. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7001. hardcode_libdir_separator=:
  7002. hardcode_shlibpath_var=no
  7003. ;;
  7004. openbsd*)
  7005. hardcode_direct=yes
  7006. hardcode_shlibpath_var=no
  7007. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7008. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7009. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7010. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7011. export_dynamic_flag_spec='${wl}-E'
  7012. else
  7013. case $host_os in
  7014. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7015. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7016. hardcode_libdir_flag_spec='-R$libdir'
  7017. ;;
  7018. *)
  7019. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7020. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7021. ;;
  7022. esac
  7023. fi
  7024. ;;
  7025. os2*)
  7026. hardcode_libdir_flag_spec='-L$libdir'
  7027. hardcode_minus_L=yes
  7028. allow_undefined_flag=unsupported
  7029. 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'
  7030. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7031. ;;
  7032. osf3*)
  7033. if test "$GCC" = yes; then
  7034. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7035. 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'
  7036. else
  7037. allow_undefined_flag=' -expect_unresolved \*'
  7038. 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'
  7039. fi
  7040. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7041. hardcode_libdir_separator=:
  7042. ;;
  7043. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7044. if test "$GCC" = yes; then
  7045. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7046. 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'
  7047. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7048. else
  7049. allow_undefined_flag=' -expect_unresolved \*'
  7050. 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'
  7051. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7052. $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'
  7053. # Both c and cxx compiler support -rpath directly
  7054. hardcode_libdir_flag_spec='-rpath $libdir'
  7055. fi
  7056. hardcode_libdir_separator=:
  7057. ;;
  7058. solaris*)
  7059. no_undefined_flag=' -z text'
  7060. if test "$GCC" = yes; then
  7061. wlarc='${wl}'
  7062. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7063. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7064. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7065. else
  7066. wlarc=''
  7067. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7068. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7069. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7070. fi
  7071. hardcode_libdir_flag_spec='-R$libdir'
  7072. hardcode_shlibpath_var=no
  7073. case $host_os in
  7074. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7075. *)
  7076. # The compiler driver will combine linker options so we
  7077. # cannot just pass the convience library names through
  7078. # without $wl, iff we do not link with $LD.
  7079. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7080. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7081. case $wlarc in
  7082. '')
  7083. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7084. *)
  7085. 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' ;;
  7086. esac ;;
  7087. esac
  7088. link_all_deplibs=yes
  7089. ;;
  7090. sunos4*)
  7091. if test "x$host_vendor" = xsequent; then
  7092. # Use $CC to link under sequent, because it throws in some extra .o
  7093. # files that make .init and .fini sections work.
  7094. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7095. else
  7096. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7097. fi
  7098. hardcode_libdir_flag_spec='-L$libdir'
  7099. hardcode_direct=yes
  7100. hardcode_minus_L=yes
  7101. hardcode_shlibpath_var=no
  7102. ;;
  7103. sysv4)
  7104. case $host_vendor in
  7105. sni)
  7106. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7107. hardcode_direct=yes # is this really true???
  7108. ;;
  7109. siemens)
  7110. ## LD is ld it makes a PLAMLIB
  7111. ## CC just makes a GrossModule.
  7112. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7113. reload_cmds='$CC -r -o $output$reload_objs'
  7114. hardcode_direct=no
  7115. ;;
  7116. motorola)
  7117. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7118. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7119. ;;
  7120. esac
  7121. runpath_var='LD_RUN_PATH'
  7122. hardcode_shlibpath_var=no
  7123. ;;
  7124. sysv4.3*)
  7125. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7126. hardcode_shlibpath_var=no
  7127. export_dynamic_flag_spec='-Bexport'
  7128. ;;
  7129. sysv4*MP*)
  7130. if test -d /usr/nec; then
  7131. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7132. hardcode_shlibpath_var=no
  7133. runpath_var=LD_RUN_PATH
  7134. hardcode_runpath_var=yes
  7135. ld_shlibs=yes
  7136. fi
  7137. ;;
  7138. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7139. no_undefined_flag='${wl}-z,text'
  7140. archive_cmds_need_lc=no
  7141. hardcode_shlibpath_var=no
  7142. runpath_var='LD_RUN_PATH'
  7143. if test "$GCC" = yes; then
  7144. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7145. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7146. else
  7147. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7148. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7149. fi
  7150. ;;
  7151. sysv5* | sco3.2v5* | sco5v6*)
  7152. # Note: We can NOT use -z defs as we might desire, because we do not
  7153. # link with -lc, and that would cause any symbols used from libc to
  7154. # always be unresolved, which means just about no library would
  7155. # ever link correctly. If we're not using GNU ld we use -z text
  7156. # though, which does catch some bad symbols but isn't as heavy-handed
  7157. # as -z defs.
  7158. no_undefined_flag='${wl}-z,text'
  7159. allow_undefined_flag='${wl}-z,nodefs'
  7160. archive_cmds_need_lc=no
  7161. hardcode_shlibpath_var=no
  7162. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7163. hardcode_libdir_separator=':'
  7164. link_all_deplibs=yes
  7165. export_dynamic_flag_spec='${wl}-Bexport'
  7166. runpath_var='LD_RUN_PATH'
  7167. if test "$GCC" = yes; then
  7168. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7169. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7170. else
  7171. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7172. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7173. fi
  7174. ;;
  7175. uts4*)
  7176. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7177. hardcode_libdir_flag_spec='-L$libdir'
  7178. hardcode_shlibpath_var=no
  7179. ;;
  7180. *)
  7181. ld_shlibs=no
  7182. ;;
  7183. esac
  7184. fi
  7185. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7186. echo "${ECHO_T}$ld_shlibs" >&6
  7187. test "$ld_shlibs" = no && can_build_shared=no
  7188. #
  7189. # Do we need to explicitly link libc?
  7190. #
  7191. case "x$archive_cmds_need_lc" in
  7192. x|xyes)
  7193. # Assume -lc should be added
  7194. archive_cmds_need_lc=yes
  7195. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7196. case $archive_cmds in
  7197. *'~'*)
  7198. # FIXME: we may have to deal with multi-command sequences.
  7199. ;;
  7200. '$CC '*)
  7201. # Test whether the compiler implicitly links with -lc since on some
  7202. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7203. # to ld, don't add -lc before -lgcc.
  7204. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7205. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7206. $rm conftest*
  7207. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7208. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7209. (eval $ac_compile) 2>&5
  7210. ac_status=$?
  7211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7212. (exit $ac_status); } 2>conftest.err; then
  7213. soname=conftest
  7214. lib=conftest
  7215. libobjs=conftest.$ac_objext
  7216. deplibs=
  7217. wl=$lt_prog_compiler_wl
  7218. pic_flag=$lt_prog_compiler_pic
  7219. compiler_flags=-v
  7220. linker_flags=-v
  7221. verstring=
  7222. output_objdir=.
  7223. libname=conftest
  7224. lt_save_allow_undefined_flag=$allow_undefined_flag
  7225. allow_undefined_flag=
  7226. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7227. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7228. ac_status=$?
  7229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7230. (exit $ac_status); }
  7231. then
  7232. archive_cmds_need_lc=no
  7233. else
  7234. archive_cmds_need_lc=yes
  7235. fi
  7236. allow_undefined_flag=$lt_save_allow_undefined_flag
  7237. else
  7238. cat conftest.err 1>&5
  7239. fi
  7240. $rm conftest*
  7241. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7242. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7243. ;;
  7244. esac
  7245. fi
  7246. ;;
  7247. esac
  7248. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7249. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7250. library_names_spec=
  7251. libname_spec='lib$name'
  7252. soname_spec=
  7253. shrext_cmds=".so"
  7254. postinstall_cmds=
  7255. postuninstall_cmds=
  7256. finish_cmds=
  7257. finish_eval=
  7258. shlibpath_var=
  7259. shlibpath_overrides_runpath=unknown
  7260. version_type=none
  7261. dynamic_linker="$host_os ld.so"
  7262. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7263. if test "$GCC" = yes; then
  7264. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7265. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7266. # if the path contains ";" then we assume it to be the separator
  7267. # otherwise default to the standard path separator (i.e. ":") - it is
  7268. # assumed that no part of a normal pathname contains ";" but that should
  7269. # okay in the real world where ";" in dirpaths is itself problematic.
  7270. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7271. else
  7272. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7273. fi
  7274. else
  7275. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7276. fi
  7277. need_lib_prefix=unknown
  7278. hardcode_into_libs=no
  7279. # when you set need_version to no, make sure it does not cause -set_version
  7280. # flags to be left without arguments
  7281. need_version=unknown
  7282. case $host_os in
  7283. aix3*)
  7284. version_type=linux
  7285. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7286. shlibpath_var=LIBPATH
  7287. # AIX 3 has no versioning support, so we append a major version to the name.
  7288. soname_spec='${libname}${release}${shared_ext}$major'
  7289. ;;
  7290. aix4* | aix5*)
  7291. version_type=linux
  7292. need_lib_prefix=no
  7293. need_version=no
  7294. hardcode_into_libs=yes
  7295. if test "$host_cpu" = ia64; then
  7296. # AIX 5 supports IA64
  7297. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7298. shlibpath_var=LD_LIBRARY_PATH
  7299. else
  7300. # With GCC up to 2.95.x, collect2 would create an import file
  7301. # for dependence libraries. The import file would start with
  7302. # the line `#! .'. This would cause the generated library to
  7303. # depend on `.', always an invalid library. This was fixed in
  7304. # development snapshots of GCC prior to 3.0.
  7305. case $host_os in
  7306. aix4 | aix4.[01] | aix4.[01].*)
  7307. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7308. echo ' yes '
  7309. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7310. :
  7311. else
  7312. can_build_shared=no
  7313. fi
  7314. ;;
  7315. esac
  7316. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7317. # soname into executable. Probably we can add versioning support to
  7318. # collect2, so additional links can be useful in future.
  7319. if test "$aix_use_runtimelinking" = yes; then
  7320. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7321. # instead of lib<name>.a to let people know that these are not
  7322. # typical AIX shared libraries.
  7323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7324. else
  7325. # We preserve .a as extension for shared libraries through AIX4.2
  7326. # and later when we are not doing run time linking.
  7327. library_names_spec='${libname}${release}.a $libname.a'
  7328. soname_spec='${libname}${release}${shared_ext}$major'
  7329. fi
  7330. shlibpath_var=LIBPATH
  7331. fi
  7332. ;;
  7333. amigaos*)
  7334. library_names_spec='$libname.ixlibrary $libname.a'
  7335. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7336. 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'
  7337. ;;
  7338. beos*)
  7339. library_names_spec='${libname}${shared_ext}'
  7340. dynamic_linker="$host_os ld.so"
  7341. shlibpath_var=LIBRARY_PATH
  7342. ;;
  7343. bsdi[45]*)
  7344. version_type=linux
  7345. need_version=no
  7346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7347. soname_spec='${libname}${release}${shared_ext}$major'
  7348. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7349. shlibpath_var=LD_LIBRARY_PATH
  7350. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7351. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7352. # the default ld.so.conf also contains /usr/contrib/lib and
  7353. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7354. # libtool to hard-code these into programs
  7355. ;;
  7356. cygwin* | mingw* | pw32*)
  7357. version_type=windows
  7358. shrext_cmds=".dll"
  7359. need_version=no
  7360. need_lib_prefix=no
  7361. case $GCC,$host_os in
  7362. yes,cygwin* | yes,mingw* | yes,pw32*)
  7363. library_names_spec='$libname.dll.a'
  7364. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7365. postinstall_cmds='base_file=`basename \${file}`~
  7366. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7367. dldir=$destdir/`dirname \$dlpath`~
  7368. test -d \$dldir || mkdir -p \$dldir~
  7369. $install_prog $dir/$dlname \$dldir/$dlname~
  7370. chmod a+x \$dldir/$dlname'
  7371. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7372. dlpath=$dir/\$dldll~
  7373. $rm \$dlpath'
  7374. shlibpath_overrides_runpath=yes
  7375. case $host_os in
  7376. cygwin*)
  7377. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7378. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7379. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7380. ;;
  7381. mingw*)
  7382. # MinGW DLLs use traditional 'lib' prefix
  7383. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7384. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7385. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7386. # It is most probably a Windows format PATH printed by
  7387. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7388. # path with ; separators, and with drive letters. We can handle the
  7389. # drive letters (cygwin fileutils understands them), so leave them,
  7390. # especially as we might pass files found there to a mingw objdump,
  7391. # which wouldn't understand a cygwinified path. Ahh.
  7392. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7393. else
  7394. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7395. fi
  7396. ;;
  7397. pw32*)
  7398. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7399. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7400. ;;
  7401. esac
  7402. ;;
  7403. *)
  7404. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7405. ;;
  7406. esac
  7407. dynamic_linker='Win32 ld.exe'
  7408. # FIXME: first we should search . and the directory the executable is in
  7409. shlibpath_var=PATH
  7410. ;;
  7411. darwin* | rhapsody*)
  7412. dynamic_linker="$host_os dyld"
  7413. version_type=darwin
  7414. need_lib_prefix=no
  7415. need_version=no
  7416. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7417. soname_spec='${libname}${release}${major}$shared_ext'
  7418. shlibpath_overrides_runpath=yes
  7419. shlibpath_var=DYLD_LIBRARY_PATH
  7420. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7421. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7422. if test "$GCC" = yes; then
  7423. 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"`
  7424. else
  7425. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7426. fi
  7427. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7428. ;;
  7429. dgux*)
  7430. version_type=linux
  7431. need_lib_prefix=no
  7432. need_version=no
  7433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7434. soname_spec='${libname}${release}${shared_ext}$major'
  7435. shlibpath_var=LD_LIBRARY_PATH
  7436. ;;
  7437. freebsd1*)
  7438. dynamic_linker=no
  7439. ;;
  7440. kfreebsd*-gnu)
  7441. version_type=linux
  7442. need_lib_prefix=no
  7443. need_version=no
  7444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7445. soname_spec='${libname}${release}${shared_ext}$major'
  7446. shlibpath_var=LD_LIBRARY_PATH
  7447. shlibpath_overrides_runpath=no
  7448. hardcode_into_libs=yes
  7449. dynamic_linker='GNU ld.so'
  7450. ;;
  7451. freebsd* | dragonfly*)
  7452. # DragonFly does not have aout. When/if they implement a new
  7453. # versioning mechanism, adjust this.
  7454. if test -x /usr/bin/objformat; then
  7455. objformat=`/usr/bin/objformat`
  7456. else
  7457. case $host_os in
  7458. freebsd[123]*) objformat=aout ;;
  7459. *) objformat=elf ;;
  7460. esac
  7461. fi
  7462. version_type=freebsd-$objformat
  7463. case $version_type in
  7464. freebsd-elf*)
  7465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7466. need_version=no
  7467. need_lib_prefix=no
  7468. ;;
  7469. freebsd-*)
  7470. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7471. need_version=yes
  7472. ;;
  7473. esac
  7474. shlibpath_var=LD_LIBRARY_PATH
  7475. case $host_os in
  7476. freebsd2*)
  7477. shlibpath_overrides_runpath=yes
  7478. ;;
  7479. freebsd3.[01]* | freebsdelf3.[01]*)
  7480. shlibpath_overrides_runpath=yes
  7481. hardcode_into_libs=yes
  7482. ;;
  7483. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7484. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7485. shlibpath_overrides_runpath=no
  7486. hardcode_into_libs=yes
  7487. ;;
  7488. freebsd*) # from 4.6 on
  7489. shlibpath_overrides_runpath=yes
  7490. hardcode_into_libs=yes
  7491. ;;
  7492. esac
  7493. ;;
  7494. gnu*)
  7495. version_type=linux
  7496. need_lib_prefix=no
  7497. need_version=no
  7498. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7499. soname_spec='${libname}${release}${shared_ext}$major'
  7500. shlibpath_var=LD_LIBRARY_PATH
  7501. hardcode_into_libs=yes
  7502. ;;
  7503. hpux9* | hpux10* | hpux11*)
  7504. # Give a soname corresponding to the major version so that dld.sl refuses to
  7505. # link against other versions.
  7506. version_type=sunos
  7507. need_lib_prefix=no
  7508. need_version=no
  7509. case $host_cpu in
  7510. ia64*)
  7511. shrext_cmds='.so'
  7512. hardcode_into_libs=yes
  7513. dynamic_linker="$host_os dld.so"
  7514. shlibpath_var=LD_LIBRARY_PATH
  7515. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7517. soname_spec='${libname}${release}${shared_ext}$major'
  7518. if test "X$HPUX_IA64_MODE" = X32; then
  7519. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7520. else
  7521. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7522. fi
  7523. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7524. ;;
  7525. hppa*64*)
  7526. shrext_cmds='.sl'
  7527. hardcode_into_libs=yes
  7528. dynamic_linker="$host_os dld.sl"
  7529. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7530. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7532. soname_spec='${libname}${release}${shared_ext}$major'
  7533. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7534. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7535. ;;
  7536. *)
  7537. shrext_cmds='.sl'
  7538. dynamic_linker="$host_os dld.sl"
  7539. shlibpath_var=SHLIB_PATH
  7540. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7542. soname_spec='${libname}${release}${shared_ext}$major'
  7543. ;;
  7544. esac
  7545. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7546. postinstall_cmds='chmod 555 $lib'
  7547. ;;
  7548. interix3*)
  7549. version_type=linux
  7550. need_lib_prefix=no
  7551. need_version=no
  7552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7553. soname_spec='${libname}${release}${shared_ext}$major'
  7554. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7555. shlibpath_var=LD_LIBRARY_PATH
  7556. shlibpath_overrides_runpath=no
  7557. hardcode_into_libs=yes
  7558. ;;
  7559. irix5* | irix6* | nonstopux*)
  7560. case $host_os in
  7561. nonstopux*) version_type=nonstopux ;;
  7562. *)
  7563. if test "$lt_cv_prog_gnu_ld" = yes; then
  7564. version_type=linux
  7565. else
  7566. version_type=irix
  7567. fi ;;
  7568. esac
  7569. need_lib_prefix=no
  7570. need_version=no
  7571. soname_spec='${libname}${release}${shared_ext}$major'
  7572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7573. case $host_os in
  7574. irix5* | nonstopux*)
  7575. libsuff= shlibsuff=
  7576. ;;
  7577. *)
  7578. case $LD in # libtool.m4 will add one of these switches to LD
  7579. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7580. libsuff= shlibsuff= libmagic=32-bit;;
  7581. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7582. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7583. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7584. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7585. *) libsuff= shlibsuff= libmagic=never-match;;
  7586. esac
  7587. ;;
  7588. esac
  7589. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7590. shlibpath_overrides_runpath=no
  7591. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7592. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7593. hardcode_into_libs=yes
  7594. ;;
  7595. # No shared lib support for Linux oldld, aout, or coff.
  7596. linux*oldld* | linux*aout* | linux*coff*)
  7597. dynamic_linker=no
  7598. ;;
  7599. # This must be Linux ELF.
  7600. linux*)
  7601. version_type=linux
  7602. need_lib_prefix=no
  7603. need_version=no
  7604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7605. soname_spec='${libname}${release}${shared_ext}$major'
  7606. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7607. shlibpath_var=LD_LIBRARY_PATH
  7608. shlibpath_overrides_runpath=no
  7609. # This implies no fast_install, which is unacceptable.
  7610. # Some rework will be needed to allow for fast_install
  7611. # before this can be enabled.
  7612. hardcode_into_libs=yes
  7613. # find out which ABI we are using
  7614. libsuff=
  7615. case "$host_cpu" in
  7616. x86_64*|s390x*|powerpc64*)
  7617. echo '#line 8401 "configure"' > conftest.$ac_ext
  7618. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7619. (eval $ac_compile) 2>&5
  7620. ac_status=$?
  7621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7622. (exit $ac_status); }; then
  7623. case `/usr/bin/file conftest.$ac_objext` in
  7624. *64-bit*)
  7625. libsuff=64
  7626. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  7627. ;;
  7628. esac
  7629. fi
  7630. rm -rf conftest*
  7631. ;;
  7632. esac
  7633. # Append ld.so.conf contents to the search path
  7634. if test -f /etc/ld.so.conf; then
  7635. 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' ' '`
  7636. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  7637. fi
  7638. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7639. # powerpc, because MkLinux only supported shared libraries with the
  7640. # GNU dynamic linker. Since this was broken with cross compilers,
  7641. # most powerpc-linux boxes support dynamic linking these days and
  7642. # people can always --disable-shared, the test was removed, and we
  7643. # assume the GNU/Linux dynamic linker is in use.
  7644. dynamic_linker='GNU/Linux ld.so'
  7645. ;;
  7646. knetbsd*-gnu)
  7647. version_type=linux
  7648. need_lib_prefix=no
  7649. need_version=no
  7650. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7651. soname_spec='${libname}${release}${shared_ext}$major'
  7652. shlibpath_var=LD_LIBRARY_PATH
  7653. shlibpath_overrides_runpath=no
  7654. hardcode_into_libs=yes
  7655. dynamic_linker='GNU ld.so'
  7656. ;;
  7657. netbsd*)
  7658. version_type=sunos
  7659. need_lib_prefix=no
  7660. need_version=no
  7661. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7663. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7664. dynamic_linker='NetBSD (a.out) ld.so'
  7665. else
  7666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7667. soname_spec='${libname}${release}${shared_ext}$major'
  7668. dynamic_linker='NetBSD ld.elf_so'
  7669. fi
  7670. shlibpath_var=LD_LIBRARY_PATH
  7671. shlibpath_overrides_runpath=yes
  7672. hardcode_into_libs=yes
  7673. ;;
  7674. newsos6)
  7675. version_type=linux
  7676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7677. shlibpath_var=LD_LIBRARY_PATH
  7678. shlibpath_overrides_runpath=yes
  7679. ;;
  7680. nto-qnx*)
  7681. version_type=linux
  7682. need_lib_prefix=no
  7683. need_version=no
  7684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7685. soname_spec='${libname}${release}${shared_ext}$major'
  7686. shlibpath_var=LD_LIBRARY_PATH
  7687. shlibpath_overrides_runpath=yes
  7688. ;;
  7689. openbsd*)
  7690. version_type=sunos
  7691. sys_lib_dlsearch_path_spec="/usr/lib"
  7692. need_lib_prefix=no
  7693. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7694. case $host_os in
  7695. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7696. *) need_version=no ;;
  7697. esac
  7698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7699. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7700. shlibpath_var=LD_LIBRARY_PATH
  7701. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7702. case $host_os in
  7703. openbsd2.[89] | openbsd2.[89].*)
  7704. shlibpath_overrides_runpath=no
  7705. ;;
  7706. *)
  7707. shlibpath_overrides_runpath=yes
  7708. ;;
  7709. esac
  7710. else
  7711. shlibpath_overrides_runpath=yes
  7712. fi
  7713. ;;
  7714. os2*)
  7715. libname_spec='$name'
  7716. shrext_cmds=".dll"
  7717. need_lib_prefix=no
  7718. library_names_spec='$libname${shared_ext} $libname.a'
  7719. dynamic_linker='OS/2 ld.exe'
  7720. shlibpath_var=LIBPATH
  7721. ;;
  7722. osf3* | osf4* | osf5*)
  7723. version_type=osf
  7724. need_lib_prefix=no
  7725. need_version=no
  7726. soname_spec='${libname}${release}${shared_ext}$major'
  7727. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7728. shlibpath_var=LD_LIBRARY_PATH
  7729. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7730. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7731. ;;
  7732. solaris*)
  7733. version_type=linux
  7734. need_lib_prefix=no
  7735. need_version=no
  7736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7737. soname_spec='${libname}${release}${shared_ext}$major'
  7738. shlibpath_var=LD_LIBRARY_PATH
  7739. shlibpath_overrides_runpath=yes
  7740. hardcode_into_libs=yes
  7741. # ldd complains unless libraries are executable
  7742. postinstall_cmds='chmod +x $lib'
  7743. ;;
  7744. sunos4*)
  7745. version_type=sunos
  7746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7747. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7748. shlibpath_var=LD_LIBRARY_PATH
  7749. shlibpath_overrides_runpath=yes
  7750. if test "$with_gnu_ld" = yes; then
  7751. need_lib_prefix=no
  7752. fi
  7753. need_version=yes
  7754. ;;
  7755. sysv4 | sysv4.3*)
  7756. version_type=linux
  7757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7758. soname_spec='${libname}${release}${shared_ext}$major'
  7759. shlibpath_var=LD_LIBRARY_PATH
  7760. case $host_vendor in
  7761. sni)
  7762. shlibpath_overrides_runpath=no
  7763. need_lib_prefix=no
  7764. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7765. runpath_var=LD_RUN_PATH
  7766. ;;
  7767. siemens)
  7768. need_lib_prefix=no
  7769. ;;
  7770. motorola)
  7771. need_lib_prefix=no
  7772. need_version=no
  7773. shlibpath_overrides_runpath=no
  7774. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7775. ;;
  7776. esac
  7777. ;;
  7778. sysv4*MP*)
  7779. if test -d /usr/nec ;then
  7780. version_type=linux
  7781. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7782. soname_spec='$libname${shared_ext}.$major'
  7783. shlibpath_var=LD_LIBRARY_PATH
  7784. fi
  7785. ;;
  7786. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7787. version_type=freebsd-elf
  7788. need_lib_prefix=no
  7789. need_version=no
  7790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7791. soname_spec='${libname}${release}${shared_ext}$major'
  7792. shlibpath_var=LD_LIBRARY_PATH
  7793. hardcode_into_libs=yes
  7794. if test "$with_gnu_ld" = yes; then
  7795. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7796. shlibpath_overrides_runpath=no
  7797. else
  7798. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7799. shlibpath_overrides_runpath=yes
  7800. case $host_os in
  7801. sco3.2v5*)
  7802. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7803. ;;
  7804. esac
  7805. fi
  7806. sys_lib_dlsearch_path_spec='/usr/lib'
  7807. ;;
  7808. uts4*)
  7809. version_type=linux
  7810. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7811. soname_spec='${libname}${release}${shared_ext}$major'
  7812. shlibpath_var=LD_LIBRARY_PATH
  7813. ;;
  7814. *)
  7815. dynamic_linker=no
  7816. ;;
  7817. esac
  7818. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7819. echo "${ECHO_T}$dynamic_linker" >&6
  7820. test "$dynamic_linker" = no && can_build_shared=no
  7821. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7822. if test "$GCC" = yes; then
  7823. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7824. fi
  7825. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7826. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7827. hardcode_action=
  7828. if test -n "$hardcode_libdir_flag_spec" || \
  7829. test -n "$runpath_var" || \
  7830. test "X$hardcode_automatic" = "Xyes" ; then
  7831. # We can hardcode non-existant directories.
  7832. if test "$hardcode_direct" != no &&
  7833. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7834. # have to relink, otherwise we might link with an installed library
  7835. # when we should be linking with a yet-to-be-installed one
  7836. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7837. test "$hardcode_minus_L" != no; then
  7838. # Linking always hardcodes the temporary library directory.
  7839. hardcode_action=relink
  7840. else
  7841. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7842. hardcode_action=immediate
  7843. fi
  7844. else
  7845. # We cannot hardcode anything, or else we can only hardcode existing
  7846. # directories.
  7847. hardcode_action=unsupported
  7848. fi
  7849. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7850. echo "${ECHO_T}$hardcode_action" >&6
  7851. if test "$hardcode_action" = relink; then
  7852. # Fast installation is not supported
  7853. enable_fast_install=no
  7854. elif test "$shlibpath_overrides_runpath" = yes ||
  7855. test "$enable_shared" = no; then
  7856. # Fast installation is not necessary
  7857. enable_fast_install=needless
  7858. fi
  7859. striplib=
  7860. old_striplib=
  7861. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7862. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7863. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7864. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7865. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7866. echo "$as_me:$LINENO: result: yes" >&5
  7867. echo "${ECHO_T}yes" >&6
  7868. else
  7869. # FIXME - insert some real tests, host_os isn't really good enough
  7870. case $host_os in
  7871. darwin*)
  7872. if test -n "$STRIP" ; then
  7873. striplib="$STRIP -x"
  7874. echo "$as_me:$LINENO: result: yes" >&5
  7875. echo "${ECHO_T}yes" >&6
  7876. else
  7877. echo "$as_me:$LINENO: result: no" >&5
  7878. echo "${ECHO_T}no" >&6
  7879. fi
  7880. ;;
  7881. *)
  7882. echo "$as_me:$LINENO: result: no" >&5
  7883. echo "${ECHO_T}no" >&6
  7884. ;;
  7885. esac
  7886. fi
  7887. if test "x$enable_dlopen" != xyes; then
  7888. enable_dlopen=unknown
  7889. enable_dlopen_self=unknown
  7890. enable_dlopen_self_static=unknown
  7891. else
  7892. lt_cv_dlopen=no
  7893. lt_cv_dlopen_libs=
  7894. case $host_os in
  7895. beos*)
  7896. lt_cv_dlopen="load_add_on"
  7897. lt_cv_dlopen_libs=
  7898. lt_cv_dlopen_self=yes
  7899. ;;
  7900. mingw* | pw32*)
  7901. lt_cv_dlopen="LoadLibrary"
  7902. lt_cv_dlopen_libs=
  7903. ;;
  7904. cygwin*)
  7905. lt_cv_dlopen="dlopen"
  7906. lt_cv_dlopen_libs=
  7907. ;;
  7908. darwin*)
  7909. # if libdl is installed we need to link against it
  7910. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7911. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7912. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7913. echo $ECHO_N "(cached) $ECHO_C" >&6
  7914. else
  7915. ac_check_lib_save_LIBS=$LIBS
  7916. LIBS="-ldl $LIBS"
  7917. cat >conftest.$ac_ext <<_ACEOF
  7918. /* confdefs.h. */
  7919. _ACEOF
  7920. cat confdefs.h >>conftest.$ac_ext
  7921. cat >>conftest.$ac_ext <<_ACEOF
  7922. /* end confdefs.h. */
  7923. /* Override any gcc2 internal prototype to avoid an error. */
  7924. #ifdef __cplusplus
  7925. extern "C"
  7926. #endif
  7927. /* We use char because int might match the return type of a gcc2
  7928. builtin and then its argument prototype would still apply. */
  7929. char dlopen ();
  7930. int
  7931. main ()
  7932. {
  7933. dlopen ();
  7934. ;
  7935. return 0;
  7936. }
  7937. _ACEOF
  7938. rm -f conftest.$ac_objext conftest$ac_exeext
  7939. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7940. (eval $ac_link) 2>conftest.er1
  7941. ac_status=$?
  7942. grep -v '^ *+' conftest.er1 >conftest.err
  7943. rm -f conftest.er1
  7944. cat conftest.err >&5
  7945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7946. (exit $ac_status); } &&
  7947. { ac_try='test -z "$ac_c_werror_flag"
  7948. || test ! -s conftest.err'
  7949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7950. (eval $ac_try) 2>&5
  7951. ac_status=$?
  7952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7953. (exit $ac_status); }; } &&
  7954. { ac_try='test -s conftest$ac_exeext'
  7955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7956. (eval $ac_try) 2>&5
  7957. ac_status=$?
  7958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7959. (exit $ac_status); }; }; then
  7960. ac_cv_lib_dl_dlopen=yes
  7961. else
  7962. echo "$as_me: failed program was:" >&5
  7963. sed 's/^/| /' conftest.$ac_ext >&5
  7964. ac_cv_lib_dl_dlopen=no
  7965. fi
  7966. rm -f conftest.err conftest.$ac_objext \
  7967. conftest$ac_exeext conftest.$ac_ext
  7968. LIBS=$ac_check_lib_save_LIBS
  7969. fi
  7970. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7971. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7972. if test $ac_cv_lib_dl_dlopen = yes; then
  7973. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7974. else
  7975. lt_cv_dlopen="dyld"
  7976. lt_cv_dlopen_libs=
  7977. lt_cv_dlopen_self=yes
  7978. fi
  7979. ;;
  7980. *)
  7981. echo "$as_me:$LINENO: checking for shl_load" >&5
  7982. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7983. if test "${ac_cv_func_shl_load+set}" = set; then
  7984. echo $ECHO_N "(cached) $ECHO_C" >&6
  7985. else
  7986. cat >conftest.$ac_ext <<_ACEOF
  7987. /* confdefs.h. */
  7988. _ACEOF
  7989. cat confdefs.h >>conftest.$ac_ext
  7990. cat >>conftest.$ac_ext <<_ACEOF
  7991. /* end confdefs.h. */
  7992. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7993. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7994. #define shl_load innocuous_shl_load
  7995. /* System header to define __stub macros and hopefully few prototypes,
  7996. which can conflict with char shl_load (); below.
  7997. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7998. <limits.h> exists even on freestanding compilers. */
  7999. #ifdef __STDC__
  8000. # include <limits.h>
  8001. #else
  8002. # include <assert.h>
  8003. #endif
  8004. #undef shl_load
  8005. /* Override any gcc2 internal prototype to avoid an error. */
  8006. #ifdef __cplusplus
  8007. extern "C"
  8008. {
  8009. #endif
  8010. /* We use char because int might match the return type of a gcc2
  8011. builtin and then its argument prototype would still apply. */
  8012. char shl_load ();
  8013. /* The GNU C library defines this for functions which it implements
  8014. to always fail with ENOSYS. Some functions are actually named
  8015. something starting with __ and the normal name is an alias. */
  8016. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  8017. choke me
  8018. #else
  8019. char (*f) () = shl_load;
  8020. #endif
  8021. #ifdef __cplusplus
  8022. }
  8023. #endif
  8024. int
  8025. main ()
  8026. {
  8027. return f != shl_load;
  8028. ;
  8029. return 0;
  8030. }
  8031. _ACEOF
  8032. rm -f conftest.$ac_objext conftest$ac_exeext
  8033. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8034. (eval $ac_link) 2>conftest.er1
  8035. ac_status=$?
  8036. grep -v '^ *+' conftest.er1 >conftest.err
  8037. rm -f conftest.er1
  8038. cat conftest.err >&5
  8039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8040. (exit $ac_status); } &&
  8041. { ac_try='test -z "$ac_c_werror_flag"
  8042. || test ! -s conftest.err'
  8043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8044. (eval $ac_try) 2>&5
  8045. ac_status=$?
  8046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8047. (exit $ac_status); }; } &&
  8048. { ac_try='test -s conftest$ac_exeext'
  8049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8050. (eval $ac_try) 2>&5
  8051. ac_status=$?
  8052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8053. (exit $ac_status); }; }; then
  8054. ac_cv_func_shl_load=yes
  8055. else
  8056. echo "$as_me: failed program was:" >&5
  8057. sed 's/^/| /' conftest.$ac_ext >&5
  8058. ac_cv_func_shl_load=no
  8059. fi
  8060. rm -f conftest.err conftest.$ac_objext \
  8061. conftest$ac_exeext conftest.$ac_ext
  8062. fi
  8063. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8064. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8065. if test $ac_cv_func_shl_load = yes; then
  8066. lt_cv_dlopen="shl_load"
  8067. else
  8068. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8069. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8070. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8071. echo $ECHO_N "(cached) $ECHO_C" >&6
  8072. else
  8073. ac_check_lib_save_LIBS=$LIBS
  8074. LIBS="-ldld $LIBS"
  8075. cat >conftest.$ac_ext <<_ACEOF
  8076. /* confdefs.h. */
  8077. _ACEOF
  8078. cat confdefs.h >>conftest.$ac_ext
  8079. cat >>conftest.$ac_ext <<_ACEOF
  8080. /* end confdefs.h. */
  8081. /* Override any gcc2 internal prototype to avoid an error. */
  8082. #ifdef __cplusplus
  8083. extern "C"
  8084. #endif
  8085. /* We use char because int might match the return type of a gcc2
  8086. builtin and then its argument prototype would still apply. */
  8087. char shl_load ();
  8088. int
  8089. main ()
  8090. {
  8091. shl_load ();
  8092. ;
  8093. return 0;
  8094. }
  8095. _ACEOF
  8096. rm -f conftest.$ac_objext conftest$ac_exeext
  8097. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8098. (eval $ac_link) 2>conftest.er1
  8099. ac_status=$?
  8100. grep -v '^ *+' conftest.er1 >conftest.err
  8101. rm -f conftest.er1
  8102. cat conftest.err >&5
  8103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8104. (exit $ac_status); } &&
  8105. { ac_try='test -z "$ac_c_werror_flag"
  8106. || test ! -s conftest.err'
  8107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8108. (eval $ac_try) 2>&5
  8109. ac_status=$?
  8110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8111. (exit $ac_status); }; } &&
  8112. { ac_try='test -s conftest$ac_exeext'
  8113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8114. (eval $ac_try) 2>&5
  8115. ac_status=$?
  8116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8117. (exit $ac_status); }; }; then
  8118. ac_cv_lib_dld_shl_load=yes
  8119. else
  8120. echo "$as_me: failed program was:" >&5
  8121. sed 's/^/| /' conftest.$ac_ext >&5
  8122. ac_cv_lib_dld_shl_load=no
  8123. fi
  8124. rm -f conftest.err conftest.$ac_objext \
  8125. conftest$ac_exeext conftest.$ac_ext
  8126. LIBS=$ac_check_lib_save_LIBS
  8127. fi
  8128. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8129. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8130. if test $ac_cv_lib_dld_shl_load = yes; then
  8131. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8132. else
  8133. echo "$as_me:$LINENO: checking for dlopen" >&5
  8134. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8135. if test "${ac_cv_func_dlopen+set}" = set; then
  8136. echo $ECHO_N "(cached) $ECHO_C" >&6
  8137. else
  8138. cat >conftest.$ac_ext <<_ACEOF
  8139. /* confdefs.h. */
  8140. _ACEOF
  8141. cat confdefs.h >>conftest.$ac_ext
  8142. cat >>conftest.$ac_ext <<_ACEOF
  8143. /* end confdefs.h. */
  8144. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8145. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8146. #define dlopen innocuous_dlopen
  8147. /* System header to define __stub macros and hopefully few prototypes,
  8148. which can conflict with char dlopen (); below.
  8149. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8150. <limits.h> exists even on freestanding compilers. */
  8151. #ifdef __STDC__
  8152. # include <limits.h>
  8153. #else
  8154. # include <assert.h>
  8155. #endif
  8156. #undef dlopen
  8157. /* Override any gcc2 internal prototype to avoid an error. */
  8158. #ifdef __cplusplus
  8159. extern "C"
  8160. {
  8161. #endif
  8162. /* We use char because int might match the return type of a gcc2
  8163. builtin and then its argument prototype would still apply. */
  8164. char dlopen ();
  8165. /* The GNU C library defines this for functions which it implements
  8166. to always fail with ENOSYS. Some functions are actually named
  8167. something starting with __ and the normal name is an alias. */
  8168. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8169. choke me
  8170. #else
  8171. char (*f) () = dlopen;
  8172. #endif
  8173. #ifdef __cplusplus
  8174. }
  8175. #endif
  8176. int
  8177. main ()
  8178. {
  8179. return f != dlopen;
  8180. ;
  8181. return 0;
  8182. }
  8183. _ACEOF
  8184. rm -f conftest.$ac_objext conftest$ac_exeext
  8185. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8186. (eval $ac_link) 2>conftest.er1
  8187. ac_status=$?
  8188. grep -v '^ *+' conftest.er1 >conftest.err
  8189. rm -f conftest.er1
  8190. cat conftest.err >&5
  8191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8192. (exit $ac_status); } &&
  8193. { ac_try='test -z "$ac_c_werror_flag"
  8194. || test ! -s conftest.err'
  8195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8196. (eval $ac_try) 2>&5
  8197. ac_status=$?
  8198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8199. (exit $ac_status); }; } &&
  8200. { ac_try='test -s conftest$ac_exeext'
  8201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8202. (eval $ac_try) 2>&5
  8203. ac_status=$?
  8204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8205. (exit $ac_status); }; }; then
  8206. ac_cv_func_dlopen=yes
  8207. else
  8208. echo "$as_me: failed program was:" >&5
  8209. sed 's/^/| /' conftest.$ac_ext >&5
  8210. ac_cv_func_dlopen=no
  8211. fi
  8212. rm -f conftest.err conftest.$ac_objext \
  8213. conftest$ac_exeext conftest.$ac_ext
  8214. fi
  8215. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8216. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8217. if test $ac_cv_func_dlopen = yes; then
  8218. lt_cv_dlopen="dlopen"
  8219. else
  8220. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8221. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8222. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8223. echo $ECHO_N "(cached) $ECHO_C" >&6
  8224. else
  8225. ac_check_lib_save_LIBS=$LIBS
  8226. LIBS="-ldl $LIBS"
  8227. cat >conftest.$ac_ext <<_ACEOF
  8228. /* confdefs.h. */
  8229. _ACEOF
  8230. cat confdefs.h >>conftest.$ac_ext
  8231. cat >>conftest.$ac_ext <<_ACEOF
  8232. /* end confdefs.h. */
  8233. /* Override any gcc2 internal prototype to avoid an error. */
  8234. #ifdef __cplusplus
  8235. extern "C"
  8236. #endif
  8237. /* We use char because int might match the return type of a gcc2
  8238. builtin and then its argument prototype would still apply. */
  8239. char dlopen ();
  8240. int
  8241. main ()
  8242. {
  8243. dlopen ();
  8244. ;
  8245. return 0;
  8246. }
  8247. _ACEOF
  8248. rm -f conftest.$ac_objext conftest$ac_exeext
  8249. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8250. (eval $ac_link) 2>conftest.er1
  8251. ac_status=$?
  8252. grep -v '^ *+' conftest.er1 >conftest.err
  8253. rm -f conftest.er1
  8254. cat conftest.err >&5
  8255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8256. (exit $ac_status); } &&
  8257. { ac_try='test -z "$ac_c_werror_flag"
  8258. || test ! -s conftest.err'
  8259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8260. (eval $ac_try) 2>&5
  8261. ac_status=$?
  8262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8263. (exit $ac_status); }; } &&
  8264. { ac_try='test -s conftest$ac_exeext'
  8265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8266. (eval $ac_try) 2>&5
  8267. ac_status=$?
  8268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8269. (exit $ac_status); }; }; then
  8270. ac_cv_lib_dl_dlopen=yes
  8271. else
  8272. echo "$as_me: failed program was:" >&5
  8273. sed 's/^/| /' conftest.$ac_ext >&5
  8274. ac_cv_lib_dl_dlopen=no
  8275. fi
  8276. rm -f conftest.err conftest.$ac_objext \
  8277. conftest$ac_exeext conftest.$ac_ext
  8278. LIBS=$ac_check_lib_save_LIBS
  8279. fi
  8280. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8281. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8282. if test $ac_cv_lib_dl_dlopen = yes; then
  8283. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8284. else
  8285. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8286. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8287. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8288. echo $ECHO_N "(cached) $ECHO_C" >&6
  8289. else
  8290. ac_check_lib_save_LIBS=$LIBS
  8291. LIBS="-lsvld $LIBS"
  8292. cat >conftest.$ac_ext <<_ACEOF
  8293. /* confdefs.h. */
  8294. _ACEOF
  8295. cat confdefs.h >>conftest.$ac_ext
  8296. cat >>conftest.$ac_ext <<_ACEOF
  8297. /* end confdefs.h. */
  8298. /* Override any gcc2 internal prototype to avoid an error. */
  8299. #ifdef __cplusplus
  8300. extern "C"
  8301. #endif
  8302. /* We use char because int might match the return type of a gcc2
  8303. builtin and then its argument prototype would still apply. */
  8304. char dlopen ();
  8305. int
  8306. main ()
  8307. {
  8308. dlopen ();
  8309. ;
  8310. return 0;
  8311. }
  8312. _ACEOF
  8313. rm -f conftest.$ac_objext conftest$ac_exeext
  8314. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8315. (eval $ac_link) 2>conftest.er1
  8316. ac_status=$?
  8317. grep -v '^ *+' conftest.er1 >conftest.err
  8318. rm -f conftest.er1
  8319. cat conftest.err >&5
  8320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8321. (exit $ac_status); } &&
  8322. { ac_try='test -z "$ac_c_werror_flag"
  8323. || test ! -s conftest.err'
  8324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8325. (eval $ac_try) 2>&5
  8326. ac_status=$?
  8327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8328. (exit $ac_status); }; } &&
  8329. { ac_try='test -s conftest$ac_exeext'
  8330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8331. (eval $ac_try) 2>&5
  8332. ac_status=$?
  8333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8334. (exit $ac_status); }; }; then
  8335. ac_cv_lib_svld_dlopen=yes
  8336. else
  8337. echo "$as_me: failed program was:" >&5
  8338. sed 's/^/| /' conftest.$ac_ext >&5
  8339. ac_cv_lib_svld_dlopen=no
  8340. fi
  8341. rm -f conftest.err conftest.$ac_objext \
  8342. conftest$ac_exeext conftest.$ac_ext
  8343. LIBS=$ac_check_lib_save_LIBS
  8344. fi
  8345. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8346. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8347. if test $ac_cv_lib_svld_dlopen = yes; then
  8348. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8349. else
  8350. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8351. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8352. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8353. echo $ECHO_N "(cached) $ECHO_C" >&6
  8354. else
  8355. ac_check_lib_save_LIBS=$LIBS
  8356. LIBS="-ldld $LIBS"
  8357. cat >conftest.$ac_ext <<_ACEOF
  8358. /* confdefs.h. */
  8359. _ACEOF
  8360. cat confdefs.h >>conftest.$ac_ext
  8361. cat >>conftest.$ac_ext <<_ACEOF
  8362. /* end confdefs.h. */
  8363. /* Override any gcc2 internal prototype to avoid an error. */
  8364. #ifdef __cplusplus
  8365. extern "C"
  8366. #endif
  8367. /* We use char because int might match the return type of a gcc2
  8368. builtin and then its argument prototype would still apply. */
  8369. char dld_link ();
  8370. int
  8371. main ()
  8372. {
  8373. dld_link ();
  8374. ;
  8375. return 0;
  8376. }
  8377. _ACEOF
  8378. rm -f conftest.$ac_objext conftest$ac_exeext
  8379. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8380. (eval $ac_link) 2>conftest.er1
  8381. ac_status=$?
  8382. grep -v '^ *+' conftest.er1 >conftest.err
  8383. rm -f conftest.er1
  8384. cat conftest.err >&5
  8385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8386. (exit $ac_status); } &&
  8387. { ac_try='test -z "$ac_c_werror_flag"
  8388. || test ! -s conftest.err'
  8389. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8390. (eval $ac_try) 2>&5
  8391. ac_status=$?
  8392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8393. (exit $ac_status); }; } &&
  8394. { ac_try='test -s conftest$ac_exeext'
  8395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8396. (eval $ac_try) 2>&5
  8397. ac_status=$?
  8398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8399. (exit $ac_status); }; }; then
  8400. ac_cv_lib_dld_dld_link=yes
  8401. else
  8402. echo "$as_me: failed program was:" >&5
  8403. sed 's/^/| /' conftest.$ac_ext >&5
  8404. ac_cv_lib_dld_dld_link=no
  8405. fi
  8406. rm -f conftest.err conftest.$ac_objext \
  8407. conftest$ac_exeext conftest.$ac_ext
  8408. LIBS=$ac_check_lib_save_LIBS
  8409. fi
  8410. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8411. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8412. if test $ac_cv_lib_dld_dld_link = yes; then
  8413. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8414. fi
  8415. fi
  8416. fi
  8417. fi
  8418. fi
  8419. fi
  8420. ;;
  8421. esac
  8422. if test "x$lt_cv_dlopen" != xno; then
  8423. enable_dlopen=yes
  8424. else
  8425. enable_dlopen=no
  8426. fi
  8427. case $lt_cv_dlopen in
  8428. dlopen)
  8429. save_CPPFLAGS="$CPPFLAGS"
  8430. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8431. save_LDFLAGS="$LDFLAGS"
  8432. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8433. save_LIBS="$LIBS"
  8434. LIBS="$lt_cv_dlopen_libs $LIBS"
  8435. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8436. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8437. if test "${lt_cv_dlopen_self+set}" = set; then
  8438. echo $ECHO_N "(cached) $ECHO_C" >&6
  8439. else
  8440. if test "$cross_compiling" = yes; then :
  8441. lt_cv_dlopen_self=cross
  8442. else
  8443. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8444. lt_status=$lt_dlunknown
  8445. cat > conftest.$ac_ext <<EOF
  8446. #line 9298 "configure"
  8447. #include "confdefs.h"
  8448. #if HAVE_DLFCN_H
  8449. #include <dlfcn.h>
  8450. #endif
  8451. #include <stdio.h>
  8452. #ifdef RTLD_GLOBAL
  8453. # define LT_DLGLOBAL RTLD_GLOBAL
  8454. #else
  8455. # ifdef DL_GLOBAL
  8456. # define LT_DLGLOBAL DL_GLOBAL
  8457. # else
  8458. # define LT_DLGLOBAL 0
  8459. # endif
  8460. #endif
  8461. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8462. find out it does not work in some platform. */
  8463. #ifndef LT_DLLAZY_OR_NOW
  8464. # ifdef RTLD_LAZY
  8465. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8466. # else
  8467. # ifdef DL_LAZY
  8468. # define LT_DLLAZY_OR_NOW DL_LAZY
  8469. # else
  8470. # ifdef RTLD_NOW
  8471. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8472. # else
  8473. # ifdef DL_NOW
  8474. # define LT_DLLAZY_OR_NOW DL_NOW
  8475. # else
  8476. # define LT_DLLAZY_OR_NOW 0
  8477. # endif
  8478. # endif
  8479. # endif
  8480. # endif
  8481. #endif
  8482. #ifdef __cplusplus
  8483. extern "C" void exit (int);
  8484. #endif
  8485. void fnord() { int i=42;}
  8486. int main ()
  8487. {
  8488. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8489. int status = $lt_dlunknown;
  8490. if (self)
  8491. {
  8492. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8493. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8494. /* dlclose (self); */
  8495. }
  8496. else
  8497. puts (dlerror ());
  8498. exit (status);
  8499. }
  8500. EOF
  8501. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8502. (eval $ac_link) 2>&5
  8503. ac_status=$?
  8504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8505. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8506. (./conftest; exit; ) >&5 2>/dev/null
  8507. lt_status=$?
  8508. case x$lt_status in
  8509. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8510. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8511. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8512. esac
  8513. else :
  8514. # compilation failed
  8515. lt_cv_dlopen_self=no
  8516. fi
  8517. fi
  8518. rm -fr conftest*
  8519. fi
  8520. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8521. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8522. if test "x$lt_cv_dlopen_self" = xyes; then
  8523. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8524. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8525. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8526. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8527. echo $ECHO_N "(cached) $ECHO_C" >&6
  8528. else
  8529. if test "$cross_compiling" = yes; then :
  8530. lt_cv_dlopen_self_static=cross
  8531. else
  8532. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8533. lt_status=$lt_dlunknown
  8534. cat > conftest.$ac_ext <<EOF
  8535. #line 9398 "configure"
  8536. #include "confdefs.h"
  8537. #if HAVE_DLFCN_H
  8538. #include <dlfcn.h>
  8539. #endif
  8540. #include <stdio.h>
  8541. #ifdef RTLD_GLOBAL
  8542. # define LT_DLGLOBAL RTLD_GLOBAL
  8543. #else
  8544. # ifdef DL_GLOBAL
  8545. # define LT_DLGLOBAL DL_GLOBAL
  8546. # else
  8547. # define LT_DLGLOBAL 0
  8548. # endif
  8549. #endif
  8550. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8551. find out it does not work in some platform. */
  8552. #ifndef LT_DLLAZY_OR_NOW
  8553. # ifdef RTLD_LAZY
  8554. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8555. # else
  8556. # ifdef DL_LAZY
  8557. # define LT_DLLAZY_OR_NOW DL_LAZY
  8558. # else
  8559. # ifdef RTLD_NOW
  8560. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8561. # else
  8562. # ifdef DL_NOW
  8563. # define LT_DLLAZY_OR_NOW DL_NOW
  8564. # else
  8565. # define LT_DLLAZY_OR_NOW 0
  8566. # endif
  8567. # endif
  8568. # endif
  8569. # endif
  8570. #endif
  8571. #ifdef __cplusplus
  8572. extern "C" void exit (int);
  8573. #endif
  8574. void fnord() { int i=42;}
  8575. int main ()
  8576. {
  8577. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8578. int status = $lt_dlunknown;
  8579. if (self)
  8580. {
  8581. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8582. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8583. /* dlclose (self); */
  8584. }
  8585. else
  8586. puts (dlerror ());
  8587. exit (status);
  8588. }
  8589. EOF
  8590. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8591. (eval $ac_link) 2>&5
  8592. ac_status=$?
  8593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8594. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8595. (./conftest; exit; ) >&5 2>/dev/null
  8596. lt_status=$?
  8597. case x$lt_status in
  8598. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8599. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8600. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8601. esac
  8602. else :
  8603. # compilation failed
  8604. lt_cv_dlopen_self_static=no
  8605. fi
  8606. fi
  8607. rm -fr conftest*
  8608. fi
  8609. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8610. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8611. fi
  8612. CPPFLAGS="$save_CPPFLAGS"
  8613. LDFLAGS="$save_LDFLAGS"
  8614. LIBS="$save_LIBS"
  8615. ;;
  8616. esac
  8617. case $lt_cv_dlopen_self in
  8618. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8619. *) enable_dlopen_self=unknown ;;
  8620. esac
  8621. case $lt_cv_dlopen_self_static in
  8622. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8623. *) enable_dlopen_self_static=unknown ;;
  8624. esac
  8625. fi
  8626. # Report which library types will actually be built
  8627. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8628. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8629. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8630. echo "${ECHO_T}$can_build_shared" >&6
  8631. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8632. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8633. test "$can_build_shared" = "no" && enable_shared=no
  8634. # On AIX, shared libraries and static libraries use the same namespace, and
  8635. # are all built from PIC.
  8636. case $host_os in
  8637. aix3*)
  8638. test "$enable_shared" = yes && enable_static=no
  8639. if test -n "$RANLIB"; then
  8640. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8641. postinstall_cmds='$RANLIB $lib'
  8642. fi
  8643. ;;
  8644. aix4* | aix5*)
  8645. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8646. test "$enable_shared" = yes && enable_static=no
  8647. fi
  8648. ;;
  8649. esac
  8650. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8651. echo "${ECHO_T}$enable_shared" >&6
  8652. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8653. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8654. # Make sure either enable_shared or enable_static is yes.
  8655. test "$enable_shared" = yes || enable_static=yes
  8656. echo "$as_me:$LINENO: result: $enable_static" >&5
  8657. echo "${ECHO_T}$enable_static" >&6
  8658. # The else clause should only fire when bootstrapping the
  8659. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8660. # with your package, and you will get complaints that there are
  8661. # no rules to generate ltmain.sh.
  8662. if test -f "$ltmain"; then
  8663. # See if we are running on zsh, and set the options which allow our commands through
  8664. # without removal of \ escapes.
  8665. if test -n "${ZSH_VERSION+set}" ; then
  8666. setopt NO_GLOB_SUBST
  8667. fi
  8668. # Now quote all the things that may contain metacharacters while being
  8669. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8670. # variables and quote the copies for generation of the libtool script.
  8671. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8672. SED SHELL STRIP \
  8673. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8674. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8675. deplibs_check_method reload_flag reload_cmds need_locks \
  8676. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8677. lt_cv_sys_global_symbol_to_c_name_address \
  8678. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8679. old_postinstall_cmds old_postuninstall_cmds \
  8680. compiler \
  8681. CC \
  8682. LD \
  8683. lt_prog_compiler_wl \
  8684. lt_prog_compiler_pic \
  8685. lt_prog_compiler_static \
  8686. lt_prog_compiler_no_builtin_flag \
  8687. export_dynamic_flag_spec \
  8688. thread_safe_flag_spec \
  8689. whole_archive_flag_spec \
  8690. enable_shared_with_static_runtimes \
  8691. old_archive_cmds \
  8692. old_archive_from_new_cmds \
  8693. predep_objects \
  8694. postdep_objects \
  8695. predeps \
  8696. postdeps \
  8697. compiler_lib_search_path \
  8698. archive_cmds \
  8699. archive_expsym_cmds \
  8700. postinstall_cmds \
  8701. postuninstall_cmds \
  8702. old_archive_from_expsyms_cmds \
  8703. allow_undefined_flag \
  8704. no_undefined_flag \
  8705. export_symbols_cmds \
  8706. hardcode_libdir_flag_spec \
  8707. hardcode_libdir_flag_spec_ld \
  8708. hardcode_libdir_separator \
  8709. hardcode_automatic \
  8710. module_cmds \
  8711. module_expsym_cmds \
  8712. lt_cv_prog_compiler_c_o \
  8713. exclude_expsyms \
  8714. include_expsyms; do
  8715. case $var in
  8716. old_archive_cmds | \
  8717. old_archive_from_new_cmds | \
  8718. archive_cmds | \
  8719. archive_expsym_cmds | \
  8720. module_cmds | \
  8721. module_expsym_cmds | \
  8722. old_archive_from_expsyms_cmds | \
  8723. export_symbols_cmds | \
  8724. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8725. postinstall_cmds | postuninstall_cmds | \
  8726. old_postinstall_cmds | old_postuninstall_cmds | \
  8727. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8728. # Double-quote double-evaled strings.
  8729. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8730. ;;
  8731. *)
  8732. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8733. ;;
  8734. esac
  8735. done
  8736. case $lt_echo in
  8737. *'\$0 --fallback-echo"')
  8738. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8739. ;;
  8740. esac
  8741. cfgfile="${ofile}T"
  8742. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8743. $rm -f "$cfgfile"
  8744. { echo "$as_me:$LINENO: creating $ofile" >&5
  8745. echo "$as_me: creating $ofile" >&6;}
  8746. cat <<__EOF__ >> "$cfgfile"
  8747. #! $SHELL
  8748. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8749. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8750. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8751. #
  8752. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8753. # Free Software Foundation, Inc.
  8754. #
  8755. # This file is part of GNU Libtool:
  8756. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8757. #
  8758. # This program is free software; you can redistribute it and/or modify
  8759. # it under the terms of the GNU General Public License as published by
  8760. # the Free Software Foundation; either version 2 of the License, or
  8761. # (at your option) any later version.
  8762. #
  8763. # This program is distributed in the hope that it will be useful, but
  8764. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8765. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8766. # General Public License for more details.
  8767. #
  8768. # You should have received a copy of the GNU General Public License
  8769. # along with this program; if not, write to the Free Software
  8770. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8771. #
  8772. # As a special exception to the GNU General Public License, if you
  8773. # distribute this file as part of a program that contains a
  8774. # configuration script generated by Autoconf, you may include it under
  8775. # the same distribution terms that you use for the rest of that program.
  8776. # A sed program that does not truncate output.
  8777. SED=$lt_SED
  8778. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8779. Xsed="$SED -e 1s/^X//"
  8780. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8781. # if CDPATH is set.
  8782. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8783. # The names of the tagged configurations supported by this script.
  8784. available_tags=
  8785. # ### BEGIN LIBTOOL CONFIG
  8786. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8787. # Shell to use when invoking shell scripts.
  8788. SHELL=$lt_SHELL
  8789. # Whether or not to build shared libraries.
  8790. build_libtool_libs=$enable_shared
  8791. # Whether or not to build static libraries.
  8792. build_old_libs=$enable_static
  8793. # Whether or not to add -lc for building shared libraries.
  8794. build_libtool_need_lc=$archive_cmds_need_lc
  8795. # Whether or not to disallow shared libs when runtime libs are static
  8796. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8797. # Whether or not to optimize for fast installation.
  8798. fast_install=$enable_fast_install
  8799. # The host system.
  8800. host_alias=$host_alias
  8801. host=$host
  8802. host_os=$host_os
  8803. # The build system.
  8804. build_alias=$build_alias
  8805. build=$build
  8806. build_os=$build_os
  8807. # An echo program that does not interpret backslashes.
  8808. echo=$lt_echo
  8809. # The archiver.
  8810. AR=$lt_AR
  8811. AR_FLAGS=$lt_AR_FLAGS
  8812. # A C compiler.
  8813. LTCC=$lt_LTCC
  8814. # LTCC compiler flags.
  8815. LTCFLAGS=$lt_LTCFLAGS
  8816. # A language-specific compiler.
  8817. CC=$lt_compiler
  8818. # Is the compiler the GNU C compiler?
  8819. with_gcc=$GCC
  8820. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  8821. gcc_ver=\`gcc -dumpversion\`
  8822. # An ERE matcher.
  8823. EGREP=$lt_EGREP
  8824. # The linker used to build libraries.
  8825. LD=$lt_LD
  8826. # Whether we need hard or soft links.
  8827. LN_S=$lt_LN_S
  8828. # A BSD-compatible nm program.
  8829. NM=$lt_NM
  8830. # A symbol stripping program
  8831. STRIP=$lt_STRIP
  8832. # Used to examine libraries when file_magic_cmd begins "file"
  8833. MAGIC_CMD=$MAGIC_CMD
  8834. # Used on cygwin: DLL creation program.
  8835. DLLTOOL="$DLLTOOL"
  8836. # Used on cygwin: object dumper.
  8837. OBJDUMP="$OBJDUMP"
  8838. # Used on cygwin: assembler.
  8839. AS="$AS"
  8840. # The name of the directory that contains temporary libtool files.
  8841. objdir=$objdir
  8842. # How to create reloadable object files.
  8843. reload_flag=$lt_reload_flag
  8844. reload_cmds=$lt_reload_cmds
  8845. # How to pass a linker flag through the compiler.
  8846. wl=$lt_lt_prog_compiler_wl
  8847. # Object file suffix (normally "o").
  8848. objext="$ac_objext"
  8849. # Old archive suffix (normally "a").
  8850. libext="$libext"
  8851. # Shared library suffix (normally ".so").
  8852. shrext_cmds='$shrext_cmds'
  8853. # Executable file suffix (normally "").
  8854. exeext="$exeext"
  8855. # Additional compiler flags for building library objects.
  8856. pic_flag=$lt_lt_prog_compiler_pic
  8857. pic_mode=$pic_mode
  8858. # What is the maximum length of a command?
  8859. max_cmd_len=$lt_cv_sys_max_cmd_len
  8860. # Does compiler simultaneously support -c and -o options?
  8861. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8862. # Must we lock files when doing compilation?
  8863. need_locks=$lt_need_locks
  8864. # Do we need the lib prefix for modules?
  8865. need_lib_prefix=$need_lib_prefix
  8866. # Do we need a version for libraries?
  8867. need_version=$need_version
  8868. # Whether dlopen is supported.
  8869. dlopen_support=$enable_dlopen
  8870. # Whether dlopen of programs is supported.
  8871. dlopen_self=$enable_dlopen_self
  8872. # Whether dlopen of statically linked programs is supported.
  8873. dlopen_self_static=$enable_dlopen_self_static
  8874. # Compiler flag to prevent dynamic linking.
  8875. link_static_flag=$lt_lt_prog_compiler_static
  8876. # Compiler flag to turn off builtin functions.
  8877. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8878. # Compiler flag to allow reflexive dlopens.
  8879. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8880. # Compiler flag to generate shared objects directly from archives.
  8881. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8882. # Compiler flag to generate thread-safe objects.
  8883. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8884. # Library versioning type.
  8885. version_type=$version_type
  8886. # Format of library name prefix.
  8887. libname_spec=$lt_libname_spec
  8888. # List of archive names. First name is the real one, the rest are links.
  8889. # The last name is the one that the linker finds with -lNAME.
  8890. library_names_spec=$lt_library_names_spec
  8891. # The coded name of the library, if different from the real name.
  8892. soname_spec=$lt_soname_spec
  8893. # Commands used to build and install an old-style archive.
  8894. RANLIB=$lt_RANLIB
  8895. old_archive_cmds=$lt_old_archive_cmds
  8896. old_postinstall_cmds=$lt_old_postinstall_cmds
  8897. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8898. # Create an old-style archive from a shared archive.
  8899. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8900. # Create a temporary old-style archive to link instead of a shared archive.
  8901. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8902. # Commands used to build and install a shared archive.
  8903. archive_cmds=$lt_archive_cmds
  8904. archive_expsym_cmds=$lt_archive_expsym_cmds
  8905. postinstall_cmds=$lt_postinstall_cmds
  8906. postuninstall_cmds=$lt_postuninstall_cmds
  8907. # Commands used to build a loadable module (assumed same as above if empty)
  8908. module_cmds=$lt_module_cmds
  8909. module_expsym_cmds=$lt_module_expsym_cmds
  8910. # Commands to strip libraries.
  8911. old_striplib=$lt_old_striplib
  8912. striplib=$lt_striplib
  8913. # Dependencies to place before the objects being linked to create a
  8914. # shared library.
  8915. predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8916. # Dependencies to place after the objects being linked to create a
  8917. # shared library.
  8918. postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8919. # Dependencies to place before the objects being linked to create a
  8920. # shared library.
  8921. predeps=$lt_predeps
  8922. # Dependencies to place after the objects being linked to create a
  8923. # shared library.
  8924. postdeps=$lt_postdeps
  8925. # The library search path used internally by the compiler when linking
  8926. # a shared library.
  8927. compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  8928. # Method to check whether dependent libraries are shared objects.
  8929. deplibs_check_method=$lt_deplibs_check_method
  8930. # Command to use when deplibs_check_method == file_magic.
  8931. file_magic_cmd=$lt_file_magic_cmd
  8932. # Flag that allows shared libraries with undefined symbols to be built.
  8933. allow_undefined_flag=$lt_allow_undefined_flag
  8934. # Flag that forces no undefined symbols.
  8935. no_undefined_flag=$lt_no_undefined_flag
  8936. # Commands used to finish a libtool library installation in a directory.
  8937. finish_cmds=$lt_finish_cmds
  8938. # Same as above, but a single script fragment to be evaled but not shown.
  8939. finish_eval=$lt_finish_eval
  8940. # Take the output of nm and produce a listing of raw symbols and C names.
  8941. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8942. # Transform the output of nm in a proper C declaration
  8943. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8944. # Transform the output of nm in a C name address pair
  8945. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8946. # This is the shared library runtime path variable.
  8947. runpath_var=$runpath_var
  8948. # This is the shared library path variable.
  8949. shlibpath_var=$shlibpath_var
  8950. # Is shlibpath searched before the hard-coded library search path?
  8951. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8952. # How to hardcode a shared library path into an executable.
  8953. hardcode_action=$hardcode_action
  8954. # Whether we should hardcode library paths into libraries.
  8955. hardcode_into_libs=$hardcode_into_libs
  8956. # Flag to hardcode \$libdir into a binary during linking.
  8957. # This must work even if \$libdir does not exist.
  8958. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8959. # If ld is used when linking, flag to hardcode \$libdir into
  8960. # a binary during linking. This must work even if \$libdir does
  8961. # not exist.
  8962. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8963. # Whether we need a single -rpath flag with a separated argument.
  8964. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8965. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8966. # resulting binary.
  8967. hardcode_direct=$hardcode_direct
  8968. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8969. # resulting binary.
  8970. hardcode_minus_L=$hardcode_minus_L
  8971. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8972. # the resulting binary.
  8973. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8974. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8975. # and all subsequent libraries and executables linked against it.
  8976. hardcode_automatic=$hardcode_automatic
  8977. # Variables whose values should be saved in libtool wrapper scripts and
  8978. # restored at relink time.
  8979. variables_saved_for_relink="$variables_saved_for_relink"
  8980. # Whether libtool must link a program against all its dependency libraries.
  8981. link_all_deplibs=$link_all_deplibs
  8982. # Compile-time system search path for libraries
  8983. 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"\`
  8984. # Run-time system search path for libraries
  8985. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8986. # Fix the shell variable \$srcfile for the compiler.
  8987. fix_srcfile_path="$fix_srcfile_path"
  8988. # Set to yes if exported symbols are required.
  8989. always_export_symbols=$always_export_symbols
  8990. # The commands to list exported symbols.
  8991. export_symbols_cmds=$lt_export_symbols_cmds
  8992. # The commands to extract the exported symbol list from a shared archive.
  8993. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8994. # Symbols that should not be listed in the preloaded symbols.
  8995. exclude_expsyms=$lt_exclude_expsyms
  8996. # Symbols that must always be exported.
  8997. include_expsyms=$lt_include_expsyms
  8998. # ### END LIBTOOL CONFIG
  8999. __EOF__
  9000. case $host_os in
  9001. aix3*)
  9002. cat <<\EOF >> "$cfgfile"
  9003. # AIX sometimes has problems with the GCC collect2 program. For some
  9004. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9005. # vanish in a puff of smoke.
  9006. if test "X${COLLECT_NAMES+set}" != Xset; then
  9007. COLLECT_NAMES=
  9008. export COLLECT_NAMES
  9009. fi
  9010. EOF
  9011. ;;
  9012. esac
  9013. # We use sed instead of cat because bash on DJGPP gets confused if
  9014. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9015. # text mode, it properly converts lines to CR/LF. This bash problem
  9016. # is reportedly fixed, but why not run on old versions too?
  9017. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9018. mv -f "$cfgfile" "$ofile" || \
  9019. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9020. chmod +x "$ofile"
  9021. else
  9022. # If there is no Makefile yet, we rely on a make rule to execute
  9023. # `config.status --recheck' to rerun these tests and create the
  9024. # libtool script then.
  9025. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9026. if test -f "$ltmain_in"; then
  9027. test -f Makefile && make "$ltmain"
  9028. fi
  9029. fi
  9030. ac_ext=c
  9031. ac_cpp='$CPP $CPPFLAGS'
  9032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9035. CC="$lt_save_CC"
  9036. # Check whether --with-tags or --without-tags was given.
  9037. if test "${with_tags+set}" = set; then
  9038. withval="$with_tags"
  9039. tagnames="$withval"
  9040. fi;
  9041. if test -f "$ltmain" && test -n "$tagnames"; then
  9042. if test ! -f "${ofile}"; then
  9043. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9044. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9045. fi
  9046. if test -z "$LTCC"; then
  9047. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9048. if test -z "$LTCC"; then
  9049. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9050. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9051. else
  9052. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9053. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9054. fi
  9055. fi
  9056. if test -z "$LTCFLAGS"; then
  9057. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9058. fi
  9059. # Extract list of available tagged configurations in $ofile.
  9060. # Note that this assumes the entire list is on one line.
  9061. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9062. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9063. for tagname in $tagnames; do
  9064. IFS="$lt_save_ifs"
  9065. # Check whether tagname contains only valid characters
  9066. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9067. "") ;;
  9068. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9069. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9070. { (exit 1); exit 1; }; }
  9071. ;;
  9072. esac
  9073. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9074. then
  9075. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9076. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9077. { (exit 1); exit 1; }; }
  9078. fi
  9079. # Update the list of available tags.
  9080. if test -n "$tagname"; then
  9081. echo appending configuration tag \"$tagname\" to $ofile
  9082. case $tagname in
  9083. CXX)
  9084. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9085. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9086. (test "X$CXX" != "Xg++"))) ; then
  9087. ac_ext=cc
  9088. ac_cpp='$CXXCPP $CPPFLAGS'
  9089. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9090. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9091. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9092. archive_cmds_need_lc_CXX=no
  9093. allow_undefined_flag_CXX=
  9094. always_export_symbols_CXX=no
  9095. archive_expsym_cmds_CXX=
  9096. export_dynamic_flag_spec_CXX=
  9097. hardcode_direct_CXX=no
  9098. hardcode_libdir_flag_spec_CXX=
  9099. hardcode_libdir_flag_spec_ld_CXX=
  9100. hardcode_libdir_separator_CXX=
  9101. hardcode_minus_L_CXX=no
  9102. hardcode_shlibpath_var_CXX=unsupported
  9103. hardcode_automatic_CXX=no
  9104. module_cmds_CXX=
  9105. module_expsym_cmds_CXX=
  9106. link_all_deplibs_CXX=unknown
  9107. old_archive_cmds_CXX=$old_archive_cmds
  9108. no_undefined_flag_CXX=
  9109. whole_archive_flag_spec_CXX=
  9110. enable_shared_with_static_runtimes_CXX=no
  9111. # Dependencies to place before and after the object being linked:
  9112. predep_objects_CXX=
  9113. postdep_objects_CXX=
  9114. predeps_CXX=
  9115. postdeps_CXX=
  9116. compiler_lib_search_path_CXX=
  9117. # Source file extension for C++ test sources.
  9118. ac_ext=cpp
  9119. # Object file extension for compiled C++ test sources.
  9120. objext=o
  9121. objext_CXX=$objext
  9122. # Code to be used in simple compile tests
  9123. lt_simple_compile_test_code="int some_variable = 0;\n"
  9124. # Code to be used in simple link tests
  9125. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9126. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9127. # If no C compiler was specified, use CC.
  9128. LTCC=${LTCC-"$CC"}
  9129. # If no C compiler flags were specified, use CFLAGS.
  9130. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9131. # Allow CC to be a program name with arguments.
  9132. compiler=$CC
  9133. # save warnings/boilerplate of simple test code
  9134. ac_outfile=conftest.$ac_objext
  9135. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9136. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9137. _lt_compiler_boilerplate=`cat conftest.err`
  9138. $rm conftest*
  9139. ac_outfile=conftest.$ac_objext
  9140. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9141. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9142. _lt_linker_boilerplate=`cat conftest.err`
  9143. $rm conftest*
  9144. # Allow CC to be a program name with arguments.
  9145. lt_save_CC=$CC
  9146. lt_save_LD=$LD
  9147. lt_save_GCC=$GCC
  9148. GCC=$GXX
  9149. lt_save_with_gnu_ld=$with_gnu_ld
  9150. lt_save_path_LD=$lt_cv_path_LD
  9151. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9152. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9153. else
  9154. $as_unset lt_cv_prog_gnu_ld
  9155. fi
  9156. if test -n "${lt_cv_path_LDCXX+set}"; then
  9157. lt_cv_path_LD=$lt_cv_path_LDCXX
  9158. else
  9159. $as_unset lt_cv_path_LD
  9160. fi
  9161. test -z "${LDCXX+set}" || LD=$LDCXX
  9162. CC=${CXX-"c++"}
  9163. compiler=$CC
  9164. compiler_CXX=$CC
  9165. for cc_temp in $compiler""; do
  9166. case $cc_temp in
  9167. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9168. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9169. \-*) ;;
  9170. *) break;;
  9171. esac
  9172. done
  9173. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9174. # We don't want -fno-exception wen compiling C++ code, so set the
  9175. # no_builtin_flag separately
  9176. if test "$GXX" = yes; then
  9177. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9178. else
  9179. lt_prog_compiler_no_builtin_flag_CXX=
  9180. fi
  9181. if test "$GXX" = yes; then
  9182. # Set up default GNU C++ configuration
  9183. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9184. if test "${with_gnu_ld+set}" = set; then
  9185. withval="$with_gnu_ld"
  9186. test "$withval" = no || with_gnu_ld=yes
  9187. else
  9188. with_gnu_ld=no
  9189. fi;
  9190. ac_prog=ld
  9191. if test "$GCC" = yes; then
  9192. # Check if gcc -print-prog-name=ld gives a path.
  9193. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9194. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9195. case $host in
  9196. *-*-mingw*)
  9197. # gcc leaves a trailing carriage return which upsets mingw
  9198. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9199. *)
  9200. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9201. esac
  9202. case $ac_prog in
  9203. # Accept absolute paths.
  9204. [\\/]* | ?:[\\/]*)
  9205. re_direlt='/[^/][^/]*/\.\./'
  9206. # Canonicalize the pathname of ld
  9207. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9208. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9209. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9210. done
  9211. test -z "$LD" && LD="$ac_prog"
  9212. ;;
  9213. "")
  9214. # If it fails, then pretend we aren't using GCC.
  9215. ac_prog=ld
  9216. ;;
  9217. *)
  9218. # If it is relative, then search for the first ld in PATH.
  9219. with_gnu_ld=unknown
  9220. ;;
  9221. esac
  9222. elif test "$with_gnu_ld" = yes; then
  9223. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9224. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9225. else
  9226. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9227. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9228. fi
  9229. if test "${lt_cv_path_LD+set}" = set; then
  9230. echo $ECHO_N "(cached) $ECHO_C" >&6
  9231. else
  9232. if test -z "$LD"; then
  9233. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9234. for ac_dir in $PATH; do
  9235. IFS="$lt_save_ifs"
  9236. test -z "$ac_dir" && ac_dir=.
  9237. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9238. lt_cv_path_LD="$ac_dir/$ac_prog"
  9239. # Check to see if the program is GNU ld. I'd rather use --version,
  9240. # but apparently some variants of GNU ld only accept -v.
  9241. # Break only if it was the GNU/non-GNU ld that we prefer.
  9242. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9243. *GNU* | *'with BFD'*)
  9244. test "$with_gnu_ld" != no && break
  9245. ;;
  9246. *)
  9247. test "$with_gnu_ld" != yes && break
  9248. ;;
  9249. esac
  9250. fi
  9251. done
  9252. IFS="$lt_save_ifs"
  9253. else
  9254. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9255. fi
  9256. fi
  9257. LD="$lt_cv_path_LD"
  9258. if test -n "$LD"; then
  9259. echo "$as_me:$LINENO: result: $LD" >&5
  9260. echo "${ECHO_T}$LD" >&6
  9261. else
  9262. echo "$as_me:$LINENO: result: no" >&5
  9263. echo "${ECHO_T}no" >&6
  9264. fi
  9265. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9266. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9267. { (exit 1); exit 1; }; }
  9268. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9269. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9270. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9271. echo $ECHO_N "(cached) $ECHO_C" >&6
  9272. else
  9273. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9274. case `$LD -v 2>&1 </dev/null` in
  9275. *GNU* | *'with BFD'*)
  9276. lt_cv_prog_gnu_ld=yes
  9277. ;;
  9278. *)
  9279. lt_cv_prog_gnu_ld=no
  9280. ;;
  9281. esac
  9282. fi
  9283. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9284. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9285. with_gnu_ld=$lt_cv_prog_gnu_ld
  9286. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9287. # archiving commands below assume that GNU ld is being used.
  9288. if test "$with_gnu_ld" = yes; then
  9289. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9290. 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'
  9291. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9292. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9293. # If archive_cmds runs LD, not CC, wlarc should be empty
  9294. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9295. # investigate it a little bit more. (MM)
  9296. wlarc='${wl}'
  9297. # ancient GNU ld didn't support --whole-archive et. al.
  9298. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9299. grep 'no-whole-archive' > /dev/null; then
  9300. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9301. else
  9302. whole_archive_flag_spec_CXX=
  9303. fi
  9304. else
  9305. with_gnu_ld=no
  9306. wlarc=
  9307. # A generic and very simple default shared library creation
  9308. # command for GNU C++ for the case where it uses the native
  9309. # linker, instead of GNU ld. If possible, this setting should
  9310. # overridden to take advantage of the native linker features on
  9311. # the platform it is being used on.
  9312. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9313. fi
  9314. # Commands to make compiler produce verbose output that lists
  9315. # what "hidden" libraries, object files and flags are used when
  9316. # linking a shared library.
  9317. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9318. else
  9319. GXX=no
  9320. with_gnu_ld=no
  9321. wlarc=
  9322. fi
  9323. # PORTME: fill in a description of your system's C++ link characteristics
  9324. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9325. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9326. ld_shlibs_CXX=yes
  9327. case $host_os in
  9328. aix3*)
  9329. # FIXME: insert proper C++ library support
  9330. ld_shlibs_CXX=no
  9331. ;;
  9332. aix4* | aix5*)
  9333. if test "$host_cpu" = ia64; then
  9334. # On IA64, the linker does run time linking by default, so we don't
  9335. # have to do anything special.
  9336. aix_use_runtimelinking=no
  9337. exp_sym_flag='-Bexport'
  9338. no_entry_flag=""
  9339. else
  9340. aix_use_runtimelinking=no
  9341. # Test if we are trying to use run time linking or normal
  9342. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9343. # need to do runtime linking.
  9344. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9345. for ld_flag in $LDFLAGS; do
  9346. case $ld_flag in
  9347. *-brtl*)
  9348. aix_use_runtimelinking=yes
  9349. break
  9350. ;;
  9351. esac
  9352. done
  9353. ;;
  9354. esac
  9355. exp_sym_flag='-bexport'
  9356. no_entry_flag='-bnoentry'
  9357. fi
  9358. # When large executables or shared objects are built, AIX ld can
  9359. # have problems creating the table of contents. If linking a library
  9360. # or program results in "error TOC overflow" add -mminimal-toc to
  9361. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9362. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9363. archive_cmds_CXX=''
  9364. hardcode_direct_CXX=yes
  9365. hardcode_libdir_separator_CXX=':'
  9366. link_all_deplibs_CXX=yes
  9367. if test "$GXX" = yes; then
  9368. case $host_os in aix4.[012]|aix4.[012].*)
  9369. # We only want to do this on AIX 4.2 and lower, the check
  9370. # below for broken collect2 doesn't work under 4.3+
  9371. collect2name=`${CC} -print-prog-name=collect2`
  9372. if test -f "$collect2name" && \
  9373. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9374. then
  9375. # We have reworked collect2
  9376. hardcode_direct_CXX=yes
  9377. else
  9378. # We have old collect2
  9379. hardcode_direct_CXX=unsupported
  9380. # It fails to find uninstalled libraries when the uninstalled
  9381. # path is not listed in the libpath. Setting hardcode_minus_L
  9382. # to unsupported forces relinking
  9383. hardcode_minus_L_CXX=yes
  9384. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9385. hardcode_libdir_separator_CXX=
  9386. fi
  9387. ;;
  9388. esac
  9389. shared_flag='-shared'
  9390. if test "$aix_use_runtimelinking" = yes; then
  9391. shared_flag="$shared_flag "'${wl}-G'
  9392. fi
  9393. else
  9394. # not using gcc
  9395. if test "$host_cpu" = ia64; then
  9396. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9397. # chokes on -Wl,-G. The following line is correct:
  9398. shared_flag='-G'
  9399. else
  9400. if test "$aix_use_runtimelinking" = yes; then
  9401. shared_flag='${wl}-G'
  9402. else
  9403. shared_flag='${wl}-bM:SRE'
  9404. fi
  9405. fi
  9406. fi
  9407. # It seems that -bexpall does not export symbols beginning with
  9408. # underscore (_), so it is better to generate a list of symbols to export.
  9409. always_export_symbols_CXX=yes
  9410. if test "$aix_use_runtimelinking" = yes; then
  9411. # Warning - without using the other runtime loading flags (-brtl),
  9412. # -berok will link without error, but may produce a broken library.
  9413. allow_undefined_flag_CXX='-berok'
  9414. # Determine the default libpath from the value encoded in an empty executable.
  9415. cat >conftest.$ac_ext <<_ACEOF
  9416. /* confdefs.h. */
  9417. _ACEOF
  9418. cat confdefs.h >>conftest.$ac_ext
  9419. cat >>conftest.$ac_ext <<_ACEOF
  9420. /* end confdefs.h. */
  9421. int
  9422. main ()
  9423. {
  9424. ;
  9425. return 0;
  9426. }
  9427. _ACEOF
  9428. rm -f conftest.$ac_objext conftest$ac_exeext
  9429. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9430. (eval $ac_link) 2>conftest.er1
  9431. ac_status=$?
  9432. grep -v '^ *+' conftest.er1 >conftest.err
  9433. rm -f conftest.er1
  9434. cat conftest.err >&5
  9435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9436. (exit $ac_status); } &&
  9437. { ac_try='test -z "$ac_cxx_werror_flag"
  9438. || test ! -s conftest.err'
  9439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9440. (eval $ac_try) 2>&5
  9441. ac_status=$?
  9442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9443. (exit $ac_status); }; } &&
  9444. { ac_try='test -s conftest$ac_exeext'
  9445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9446. (eval $ac_try) 2>&5
  9447. ac_status=$?
  9448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9449. (exit $ac_status); }; }; then
  9450. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9451. }'`
  9452. # Check for a 64-bit object if we didn't find anything.
  9453. 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; }
  9454. }'`; fi
  9455. else
  9456. echo "$as_me: failed program was:" >&5
  9457. sed 's/^/| /' conftest.$ac_ext >&5
  9458. fi
  9459. rm -f conftest.err conftest.$ac_objext \
  9460. conftest$ac_exeext conftest.$ac_ext
  9461. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9462. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9463. 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"
  9464. else
  9465. if test "$host_cpu" = ia64; then
  9466. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9467. allow_undefined_flag_CXX="-z nodefs"
  9468. 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"
  9469. else
  9470. # Determine the default libpath from the value encoded in an empty executable.
  9471. cat >conftest.$ac_ext <<_ACEOF
  9472. /* confdefs.h. */
  9473. _ACEOF
  9474. cat confdefs.h >>conftest.$ac_ext
  9475. cat >>conftest.$ac_ext <<_ACEOF
  9476. /* end confdefs.h. */
  9477. int
  9478. main ()
  9479. {
  9480. ;
  9481. return 0;
  9482. }
  9483. _ACEOF
  9484. rm -f conftest.$ac_objext conftest$ac_exeext
  9485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9486. (eval $ac_link) 2>conftest.er1
  9487. ac_status=$?
  9488. grep -v '^ *+' conftest.er1 >conftest.err
  9489. rm -f conftest.er1
  9490. cat conftest.err >&5
  9491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9492. (exit $ac_status); } &&
  9493. { ac_try='test -z "$ac_cxx_werror_flag"
  9494. || test ! -s conftest.err'
  9495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9496. (eval $ac_try) 2>&5
  9497. ac_status=$?
  9498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9499. (exit $ac_status); }; } &&
  9500. { ac_try='test -s conftest$ac_exeext'
  9501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9502. (eval $ac_try) 2>&5
  9503. ac_status=$?
  9504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9505. (exit $ac_status); }; }; then
  9506. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9507. }'`
  9508. # Check for a 64-bit object if we didn't find anything.
  9509. 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; }
  9510. }'`; fi
  9511. else
  9512. echo "$as_me: failed program was:" >&5
  9513. sed 's/^/| /' conftest.$ac_ext >&5
  9514. fi
  9515. rm -f conftest.err conftest.$ac_objext \
  9516. conftest$ac_exeext conftest.$ac_ext
  9517. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9518. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9519. # Warning - without using the other run time loading flags,
  9520. # -berok will link without error, but may produce a broken library.
  9521. no_undefined_flag_CXX=' ${wl}-bernotok'
  9522. allow_undefined_flag_CXX=' ${wl}-berok'
  9523. # Exported symbols can be pulled into shared objects from archives
  9524. whole_archive_flag_spec_CXX='$convenience'
  9525. archive_cmds_need_lc_CXX=yes
  9526. # This is similar to how AIX traditionally builds its shared libraries.
  9527. 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'
  9528. fi
  9529. fi
  9530. ;;
  9531. beos*)
  9532. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9533. allow_undefined_flag_CXX=unsupported
  9534. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9535. # support --undefined. This deserves some investigation. FIXME
  9536. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9537. else
  9538. ld_shlibs_CXX=no
  9539. fi
  9540. ;;
  9541. chorus*)
  9542. case $cc_basename in
  9543. *)
  9544. # FIXME: insert proper C++ library support
  9545. ld_shlibs_CXX=no
  9546. ;;
  9547. esac
  9548. ;;
  9549. cygwin* | mingw* | pw32*)
  9550. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9551. # as there is no search path for DLLs.
  9552. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9553. allow_undefined_flag_CXX=unsupported
  9554. always_export_symbols_CXX=no
  9555. enable_shared_with_static_runtimes_CXX=yes
  9556. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9557. 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'
  9558. # If the export-symbols file already is a .def file (1st line
  9559. # is EXPORTS), use it as is; otherwise, prepend...
  9560. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9561. cp $export_symbols $output_objdir/$soname.def;
  9562. else
  9563. echo EXPORTS > $output_objdir/$soname.def;
  9564. cat $export_symbols >> $output_objdir/$soname.def;
  9565. fi~
  9566. $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'
  9567. else
  9568. ld_shlibs_CXX=no
  9569. fi
  9570. ;;
  9571. darwin* | rhapsody*)
  9572. case $host_os in
  9573. rhapsody* | darwin1.[012])
  9574. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9575. ;;
  9576. *) # Darwin 1.3 on
  9577. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9578. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9579. else
  9580. case ${MACOSX_DEPLOYMENT_TARGET} in
  9581. 10.[012])
  9582. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9583. ;;
  9584. 10.*)
  9585. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9586. ;;
  9587. esac
  9588. fi
  9589. ;;
  9590. esac
  9591. archive_cmds_need_lc_CXX=no
  9592. hardcode_direct_CXX=no
  9593. hardcode_automatic_CXX=yes
  9594. hardcode_shlibpath_var_CXX=unsupported
  9595. whole_archive_flag_spec_CXX=''
  9596. link_all_deplibs_CXX=yes
  9597. if test "$GXX" = yes ; then
  9598. lt_int_apple_cc_single_mod=no
  9599. output_verbose_link_cmd='echo'
  9600. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9601. lt_int_apple_cc_single_mod=yes
  9602. fi
  9603. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9604. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9605. else
  9606. 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'
  9607. fi
  9608. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9609. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9610. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9611. 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}'
  9612. else
  9613. 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}'
  9614. fi
  9615. 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}'
  9616. else
  9617. case $cc_basename in
  9618. xlc*)
  9619. output_verbose_link_cmd='echo'
  9620. 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'
  9621. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9622. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9623. 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}'
  9624. 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}'
  9625. ;;
  9626. *)
  9627. ld_shlibs_CXX=no
  9628. ;;
  9629. esac
  9630. fi
  9631. ;;
  9632. dgux*)
  9633. case $cc_basename in
  9634. ec++*)
  9635. # FIXME: insert proper C++ library support
  9636. ld_shlibs_CXX=no
  9637. ;;
  9638. ghcx*)
  9639. # Green Hills C++ Compiler
  9640. # FIXME: insert proper C++ library support
  9641. ld_shlibs_CXX=no
  9642. ;;
  9643. *)
  9644. # FIXME: insert proper C++ library support
  9645. ld_shlibs_CXX=no
  9646. ;;
  9647. esac
  9648. ;;
  9649. freebsd[12]*)
  9650. # C++ shared libraries reported to be fairly broken before switch to ELF
  9651. ld_shlibs_CXX=no
  9652. ;;
  9653. freebsd-elf*)
  9654. archive_cmds_need_lc_CXX=no
  9655. ;;
  9656. freebsd* | kfreebsd*-gnu | dragonfly*)
  9657. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9658. # conventions
  9659. ld_shlibs_CXX=yes
  9660. ;;
  9661. gnu*)
  9662. ;;
  9663. hpux9*)
  9664. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9665. hardcode_libdir_separator_CXX=:
  9666. export_dynamic_flag_spec_CXX='${wl}-E'
  9667. hardcode_direct_CXX=yes
  9668. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9669. # but as the default
  9670. # location of the library.
  9671. case $cc_basename in
  9672. CC*)
  9673. # FIXME: insert proper C++ library support
  9674. ld_shlibs_CXX=no
  9675. ;;
  9676. aCC*)
  9677. 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'
  9678. # Commands to make compiler produce verbose output that lists
  9679. # what "hidden" libraries, object files and flags are used when
  9680. # linking a shared library.
  9681. #
  9682. # There doesn't appear to be a way to prevent this compiler from
  9683. # explicitly linking system object files so we need to strip them
  9684. # from the output so that they don't get included in the library
  9685. # dependencies.
  9686. 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'
  9687. ;;
  9688. *)
  9689. if test "$GXX" = yes; then
  9690. 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'
  9691. else
  9692. # FIXME: insert proper C++ library support
  9693. ld_shlibs_CXX=no
  9694. fi
  9695. ;;
  9696. esac
  9697. ;;
  9698. hpux10*|hpux11*)
  9699. if test $with_gnu_ld = no; then
  9700. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9701. hardcode_libdir_separator_CXX=:
  9702. case $host_cpu in
  9703. hppa*64*|ia64*)
  9704. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9705. ;;
  9706. *)
  9707. export_dynamic_flag_spec_CXX='${wl}-E'
  9708. ;;
  9709. esac
  9710. fi
  9711. case $host_cpu in
  9712. hppa*64*|ia64*)
  9713. hardcode_direct_CXX=no
  9714. hardcode_shlibpath_var_CXX=no
  9715. ;;
  9716. *)
  9717. hardcode_direct_CXX=yes
  9718. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9719. # but as the default
  9720. # location of the library.
  9721. ;;
  9722. esac
  9723. case $cc_basename in
  9724. CC*)
  9725. # FIXME: insert proper C++ library support
  9726. ld_shlibs_CXX=no
  9727. ;;
  9728. aCC*)
  9729. case $host_cpu in
  9730. hppa*64*)
  9731. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9732. ;;
  9733. ia64*)
  9734. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9735. ;;
  9736. *)
  9737. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9738. ;;
  9739. esac
  9740. # Commands to make compiler produce verbose output that lists
  9741. # what "hidden" libraries, object files and flags are used when
  9742. # linking a shared library.
  9743. #
  9744. # There doesn't appear to be a way to prevent this compiler from
  9745. # explicitly linking system object files so we need to strip them
  9746. # from the output so that they don't get included in the library
  9747. # dependencies.
  9748. 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'
  9749. ;;
  9750. *)
  9751. if test "$GXX" = yes; then
  9752. if test $with_gnu_ld = no; then
  9753. case $host_cpu in
  9754. hppa*64*)
  9755. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9756. ;;
  9757. ia64*)
  9758. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9759. ;;
  9760. *)
  9761. 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'
  9762. ;;
  9763. esac
  9764. fi
  9765. else
  9766. # FIXME: insert proper C++ library support
  9767. ld_shlibs_CXX=no
  9768. fi
  9769. ;;
  9770. esac
  9771. ;;
  9772. interix3*)
  9773. hardcode_direct_CXX=no
  9774. hardcode_shlibpath_var_CXX=no
  9775. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9776. export_dynamic_flag_spec_CXX='${wl}-E'
  9777. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9778. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9779. # default) and relocated if they conflict, which is a slow very memory
  9780. # consuming and fragmenting process. To avoid this, we pick a random,
  9781. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9782. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9783. 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'
  9784. 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'
  9785. ;;
  9786. irix5* | irix6*)
  9787. case $cc_basename in
  9788. CC*)
  9789. # SGI C++
  9790. 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'
  9791. # Archives containing C++ object files must be created using
  9792. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9793. # necessary to make sure instantiated templates are included
  9794. # in the archive.
  9795. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9796. ;;
  9797. *)
  9798. if test "$GXX" = yes; then
  9799. if test "$with_gnu_ld" = no; then
  9800. 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'
  9801. else
  9802. 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'
  9803. fi
  9804. fi
  9805. link_all_deplibs_CXX=yes
  9806. ;;
  9807. esac
  9808. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9809. hardcode_libdir_separator_CXX=:
  9810. ;;
  9811. linux*)
  9812. case $cc_basename in
  9813. KCC*)
  9814. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9815. # KCC will only create a shared library if the output file
  9816. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9817. # to its proper name (with version) after linking.
  9818. 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'
  9819. 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'
  9820. # Commands to make compiler produce verbose output that lists
  9821. # what "hidden" libraries, object files and flags are used when
  9822. # linking a shared library.
  9823. #
  9824. # There doesn't appear to be a way to prevent this compiler from
  9825. # explicitly linking system object files so we need to strip them
  9826. # from the output so that they don't get included in the library
  9827. # dependencies.
  9828. 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'
  9829. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9830. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9831. # Archives containing C++ object files must be created using
  9832. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9833. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9834. ;;
  9835. icpc*)
  9836. # Intel C++
  9837. with_gnu_ld=yes
  9838. # version 8.0 and above of icpc choke on multiply defined symbols
  9839. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9840. # earlier do not add the objects themselves.
  9841. case `$CC -V 2>&1` in
  9842. *"Version 7."*)
  9843. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9844. 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'
  9845. ;;
  9846. *) # Version 8.0 or newer
  9847. tmp_idyn=
  9848. case $host_cpu in
  9849. ia64*) tmp_idyn=' -i_dynamic';;
  9850. esac
  9851. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9852. 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'
  9853. ;;
  9854. esac
  9855. archive_cmds_need_lc_CXX=no
  9856. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9857. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9858. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9859. ;;
  9860. pgCC*)
  9861. # Portland Group C++ compiler
  9862. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9863. 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'
  9864. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9865. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9866. 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'
  9867. ;;
  9868. cxx*)
  9869. # Compaq C++
  9870. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9871. 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'
  9872. runpath_var=LD_RUN_PATH
  9873. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9874. hardcode_libdir_separator_CXX=:
  9875. # Commands to make compiler produce verbose output that lists
  9876. # what "hidden" libraries, object files and flags are used when
  9877. # linking a shared library.
  9878. #
  9879. # There doesn't appear to be a way to prevent this compiler from
  9880. # explicitly linking system object files so we need to strip them
  9881. # from the output so that they don't get included in the library
  9882. # dependencies.
  9883. 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'
  9884. ;;
  9885. esac
  9886. ;;
  9887. lynxos*)
  9888. # FIXME: insert proper C++ library support
  9889. ld_shlibs_CXX=no
  9890. ;;
  9891. m88k*)
  9892. # FIXME: insert proper C++ library support
  9893. ld_shlibs_CXX=no
  9894. ;;
  9895. mvs*)
  9896. case $cc_basename in
  9897. cxx*)
  9898. # FIXME: insert proper C++ library support
  9899. ld_shlibs_CXX=no
  9900. ;;
  9901. *)
  9902. # FIXME: insert proper C++ library support
  9903. ld_shlibs_CXX=no
  9904. ;;
  9905. esac
  9906. ;;
  9907. netbsd*)
  9908. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9909. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9910. wlarc=
  9911. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9912. hardcode_direct_CXX=yes
  9913. hardcode_shlibpath_var_CXX=no
  9914. fi
  9915. # Workaround some broken pre-1.5 toolchains
  9916. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9917. ;;
  9918. openbsd2*)
  9919. # C++ shared libraries are fairly broken
  9920. ld_shlibs_CXX=no
  9921. ;;
  9922. openbsd*)
  9923. hardcode_direct_CXX=yes
  9924. hardcode_shlibpath_var_CXX=no
  9925. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9926. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9927. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9928. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9929. export_dynamic_flag_spec_CXX='${wl}-E'
  9930. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9931. fi
  9932. output_verbose_link_cmd='echo'
  9933. ;;
  9934. osf3*)
  9935. case $cc_basename in
  9936. KCC*)
  9937. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9938. # KCC will only create a shared library if the output file
  9939. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9940. # to its proper name (with version) after linking.
  9941. 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'
  9942. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9943. hardcode_libdir_separator_CXX=:
  9944. # Archives containing C++ object files must be created using
  9945. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9946. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9947. ;;
  9948. RCC*)
  9949. # Rational C++ 2.4.1
  9950. # FIXME: insert proper C++ library support
  9951. ld_shlibs_CXX=no
  9952. ;;
  9953. cxx*)
  9954. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9955. 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'
  9956. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9957. hardcode_libdir_separator_CXX=:
  9958. # Commands to make compiler produce verbose output that lists
  9959. # what "hidden" libraries, object files and flags are used when
  9960. # linking a shared library.
  9961. #
  9962. # There doesn't appear to be a way to prevent this compiler from
  9963. # explicitly linking system object files so we need to strip them
  9964. # from the output so that they don't get included in the library
  9965. # dependencies.
  9966. 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'
  9967. ;;
  9968. *)
  9969. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9970. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9971. 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'
  9972. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9973. hardcode_libdir_separator_CXX=:
  9974. # Commands to make compiler produce verbose output that lists
  9975. # what "hidden" libraries, object files and flags are used when
  9976. # linking a shared library.
  9977. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9978. else
  9979. # FIXME: insert proper C++ library support
  9980. ld_shlibs_CXX=no
  9981. fi
  9982. ;;
  9983. esac
  9984. ;;
  9985. osf4* | osf5*)
  9986. case $cc_basename in
  9987. KCC*)
  9988. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9989. # KCC will only create a shared library if the output file
  9990. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9991. # to its proper name (with version) after linking.
  9992. 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'
  9993. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9994. hardcode_libdir_separator_CXX=:
  9995. # Archives containing C++ object files must be created using
  9996. # the KAI C++ compiler.
  9997. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9998. ;;
  9999. RCC*)
  10000. # Rational C++ 2.4.1
  10001. # FIXME: insert proper C++ library support
  10002. ld_shlibs_CXX=no
  10003. ;;
  10004. cxx*)
  10005. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10006. 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'
  10007. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10008. echo "-hidden">> $lib.exp~
  10009. $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~
  10010. $rm $lib.exp'
  10011. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10012. hardcode_libdir_separator_CXX=:
  10013. # Commands to make compiler produce verbose output that lists
  10014. # what "hidden" libraries, object files and flags are used when
  10015. # linking a shared library.
  10016. #
  10017. # There doesn't appear to be a way to prevent this compiler from
  10018. # explicitly linking system object files so we need to strip them
  10019. # from the output so that they don't get included in the library
  10020. # dependencies.
  10021. 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'
  10022. ;;
  10023. *)
  10024. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10025. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10026. 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'
  10027. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10028. hardcode_libdir_separator_CXX=:
  10029. # Commands to make compiler produce verbose output that lists
  10030. # what "hidden" libraries, object files and flags are used when
  10031. # linking a shared library.
  10032. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10033. else
  10034. # FIXME: insert proper C++ library support
  10035. ld_shlibs_CXX=no
  10036. fi
  10037. ;;
  10038. esac
  10039. ;;
  10040. psos*)
  10041. # FIXME: insert proper C++ library support
  10042. ld_shlibs_CXX=no
  10043. ;;
  10044. sunos4*)
  10045. case $cc_basename in
  10046. CC*)
  10047. # Sun C++ 4.x
  10048. # FIXME: insert proper C++ library support
  10049. ld_shlibs_CXX=no
  10050. ;;
  10051. lcc*)
  10052. # Lucid
  10053. # FIXME: insert proper C++ library support
  10054. ld_shlibs_CXX=no
  10055. ;;
  10056. *)
  10057. # FIXME: insert proper C++ library support
  10058. ld_shlibs_CXX=no
  10059. ;;
  10060. esac
  10061. ;;
  10062. solaris*)
  10063. case $cc_basename in
  10064. CC*)
  10065. # Sun C++ 4.2, 5.x and Centerline C++
  10066. archive_cmds_need_lc_CXX=yes
  10067. no_undefined_flag_CXX=' -zdefs'
  10068. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10069. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10070. $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'
  10071. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10072. hardcode_shlibpath_var_CXX=no
  10073. case $host_os in
  10074. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10075. *)
  10076. # The C++ compiler is used as linker so we must use $wl
  10077. # flag to pass the commands to the underlying system
  10078. # linker. We must also pass each convience library through
  10079. # to the system linker between allextract/defaultextract.
  10080. # The C++ compiler will combine linker options so we
  10081. # cannot just pass the convience library names through
  10082. # without $wl.
  10083. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10084. 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'
  10085. ;;
  10086. esac
  10087. link_all_deplibs_CXX=yes
  10088. output_verbose_link_cmd='echo'
  10089. # Archives containing C++ object files must be created using
  10090. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10091. # necessary to make sure instantiated templates are included
  10092. # in the archive.
  10093. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10094. ;;
  10095. gcx*)
  10096. # Green Hills C++ Compiler
  10097. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10098. # The C++ compiler must be used to create the archive.
  10099. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10100. ;;
  10101. *)
  10102. # GNU C++ compiler with Solaris linker
  10103. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10104. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10105. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10106. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10107. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10108. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10109. # Commands to make compiler produce verbose output that lists
  10110. # what "hidden" libraries, object files and flags are used when
  10111. # linking a shared library.
  10112. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10113. else
  10114. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10115. # platform.
  10116. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10117. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10118. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10119. # Commands to make compiler produce verbose output that lists
  10120. # what "hidden" libraries, object files and flags are used when
  10121. # linking a shared library.
  10122. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10123. fi
  10124. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10125. fi
  10126. ;;
  10127. esac
  10128. ;;
  10129. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10130. no_undefined_flag_CXX='${wl}-z,text'
  10131. archive_cmds_need_lc_CXX=no
  10132. hardcode_shlibpath_var_CXX=no
  10133. runpath_var='LD_RUN_PATH'
  10134. case $cc_basename in
  10135. CC*)
  10136. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10137. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10138. ;;
  10139. *)
  10140. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10141. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10142. ;;
  10143. esac
  10144. ;;
  10145. sysv5* | sco3.2v5* | sco5v6*)
  10146. # Note: We can NOT use -z defs as we might desire, because we do not
  10147. # link with -lc, and that would cause any symbols used from libc to
  10148. # always be unresolved, which means just about no library would
  10149. # ever link correctly. If we're not using GNU ld we use -z text
  10150. # though, which does catch some bad symbols but isn't as heavy-handed
  10151. # as -z defs.
  10152. # For security reasons, it is highly recommended that you always
  10153. # use absolute paths for naming shared libraries, and exclude the
  10154. # DT_RUNPATH tag from executables and libraries. But doing so
  10155. # requires that you compile everything twice, which is a pain.
  10156. # So that behaviour is only enabled if SCOABSPATH is set to a
  10157. # non-empty value in the environment. Most likely only useful for
  10158. # creating official distributions of packages.
  10159. # This is a hack until libtool officially supports absolute path
  10160. # names for shared libraries.
  10161. no_undefined_flag_CXX='${wl}-z,text'
  10162. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10163. archive_cmds_need_lc_CXX=no
  10164. hardcode_shlibpath_var_CXX=no
  10165. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10166. hardcode_libdir_separator_CXX=':'
  10167. link_all_deplibs_CXX=yes
  10168. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10169. runpath_var='LD_RUN_PATH'
  10170. case $cc_basename in
  10171. CC*)
  10172. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10173. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10174. ;;
  10175. *)
  10176. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10177. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10178. ;;
  10179. esac
  10180. ;;
  10181. tandem*)
  10182. case $cc_basename in
  10183. NCC*)
  10184. # NonStop-UX NCC 3.20
  10185. # FIXME: insert proper C++ library support
  10186. ld_shlibs_CXX=no
  10187. ;;
  10188. *)
  10189. # FIXME: insert proper C++ library support
  10190. ld_shlibs_CXX=no
  10191. ;;
  10192. esac
  10193. ;;
  10194. vxworks*)
  10195. # FIXME: insert proper C++ library support
  10196. ld_shlibs_CXX=no
  10197. ;;
  10198. *)
  10199. # FIXME: insert proper C++ library support
  10200. ld_shlibs_CXX=no
  10201. ;;
  10202. esac
  10203. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10204. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10205. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10206. GCC_CXX="$GXX"
  10207. LD_CXX="$LD"
  10208. cat > conftest.$ac_ext <<EOF
  10209. class Foo
  10210. {
  10211. public:
  10212. Foo (void) { a = 0; }
  10213. private:
  10214. int a;
  10215. };
  10216. EOF
  10217. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10218. (eval $ac_compile) 2>&5
  10219. ac_status=$?
  10220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10221. (exit $ac_status); }; then
  10222. # Parse the compiler output and extract the necessary
  10223. # objects, libraries and library flags.
  10224. # Sentinel used to keep track of whether or not we are before
  10225. # the conftest object file.
  10226. pre_test_object_deps_done=no
  10227. # The `*' in the case matches for architectures that use `case' in
  10228. # $output_verbose_cmd can trigger glob expansion during the loop
  10229. # eval without this substitution.
  10230. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10231. for p in `eval $output_verbose_link_cmd`; do
  10232. case $p in
  10233. -L* | -R* | -l*)
  10234. # Some compilers place space between "-{L,R}" and the path.
  10235. # Remove the space.
  10236. if test $p = "-L" \
  10237. || test $p = "-R"; then
  10238. prev=$p
  10239. continue
  10240. else
  10241. prev=
  10242. fi
  10243. if test "$pre_test_object_deps_done" = no; then
  10244. case $p in
  10245. -L* | -R*)
  10246. # Internal compiler library paths should come after those
  10247. # provided the user. The postdeps already come after the
  10248. # user supplied libs so there is no need to process them.
  10249. if test -z "$compiler_lib_search_path_CXX"; then
  10250. compiler_lib_search_path_CXX="${prev}${p}"
  10251. else
  10252. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10253. fi
  10254. ;;
  10255. # The "-l" case would never come before the object being
  10256. # linked, so don't bother handling this case.
  10257. esac
  10258. else
  10259. if test -z "$postdeps_CXX"; then
  10260. postdeps_CXX="${prev}${p}"
  10261. else
  10262. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10263. fi
  10264. fi
  10265. ;;
  10266. *.$objext)
  10267. # This assumes that the test object file only shows up
  10268. # once in the compiler output.
  10269. if test "$p" = "conftest.$objext"; then
  10270. pre_test_object_deps_done=yes
  10271. continue
  10272. fi
  10273. if test "$pre_test_object_deps_done" = no; then
  10274. if test -z "$predep_objects_CXX"; then
  10275. predep_objects_CXX="$p"
  10276. else
  10277. predep_objects_CXX="$predep_objects_CXX $p"
  10278. fi
  10279. else
  10280. if test -z "$postdep_objects_CXX"; then
  10281. postdep_objects_CXX="$p"
  10282. else
  10283. postdep_objects_CXX="$postdep_objects_CXX $p"
  10284. fi
  10285. fi
  10286. ;;
  10287. *) ;; # Ignore the rest.
  10288. esac
  10289. done
  10290. # Clean up.
  10291. rm -f a.out a.exe
  10292. else
  10293. echo "libtool.m4: error: problem compiling CXX test program"
  10294. fi
  10295. $rm -f confest.$objext
  10296. # PORTME: override above test on systems where it is broken
  10297. case $host_os in
  10298. interix3*)
  10299. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10300. # hack all around it, let's just trust "g++" to DTRT.
  10301. predep_objects_CXX=
  10302. postdep_objects_CXX=
  10303. postdeps_CXX=
  10304. ;;
  10305. solaris*)
  10306. case $cc_basename in
  10307. CC*)
  10308. # Adding this requires a known-good setup of shared libraries for
  10309. # Sun compiler versions before 5.6, else PIC objects from an old
  10310. # archive will be linked into the output, leading to subtle bugs.
  10311. postdeps_CXX='-lCstd -lCrun'
  10312. ;;
  10313. esac
  10314. ;;
  10315. esac
  10316. case " $postdeps_CXX " in
  10317. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10318. esac
  10319. lt_prog_compiler_wl_CXX=
  10320. lt_prog_compiler_pic_CXX=
  10321. lt_prog_compiler_static_CXX=
  10322. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10323. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10324. # C++ specific cases for pic, static, wl, etc.
  10325. if test "$GXX" = yes; then
  10326. lt_prog_compiler_wl_CXX='-Wl,'
  10327. lt_prog_compiler_static_CXX='-static'
  10328. case $host_os in
  10329. aix*)
  10330. # All AIX code is PIC.
  10331. if test "$host_cpu" = ia64; then
  10332. # AIX 5 now supports IA64 processor
  10333. lt_prog_compiler_static_CXX='-Bstatic'
  10334. fi
  10335. ;;
  10336. amigaos*)
  10337. # FIXME: we need at least 68020 code to build shared libraries, but
  10338. # adding the `-m68020' flag to GCC prevents building anything better,
  10339. # like `-m68040'.
  10340. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10341. ;;
  10342. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10343. # PIC is the default for these OSes.
  10344. ;;
  10345. mingw* | os2* | pw32*)
  10346. # This hack is so that the source file can tell whether it is being
  10347. # built for inclusion in a dll (and should export symbols for example).
  10348. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10349. ;;
  10350. darwin* | rhapsody*)
  10351. # PIC is the default on this platform
  10352. # Common symbols not allowed in MH_DYLIB files
  10353. lt_prog_compiler_pic_CXX='-fno-common'
  10354. ;;
  10355. *djgpp*)
  10356. # DJGPP does not support shared libraries at all
  10357. lt_prog_compiler_pic_CXX=
  10358. ;;
  10359. interix3*)
  10360. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10361. # Instead, we relocate shared libraries at runtime.
  10362. ;;
  10363. sysv4*MP*)
  10364. if test -d /usr/nec; then
  10365. lt_prog_compiler_pic_CXX=-Kconform_pic
  10366. fi
  10367. ;;
  10368. hpux*)
  10369. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10370. # not for PA HP-UX.
  10371. case $host_cpu in
  10372. hppa*64*|ia64*)
  10373. ;;
  10374. *)
  10375. lt_prog_compiler_pic_CXX='-fPIC'
  10376. ;;
  10377. esac
  10378. ;;
  10379. *)
  10380. lt_prog_compiler_pic_CXX='-fPIC'
  10381. ;;
  10382. esac
  10383. else
  10384. case $host_os in
  10385. aix4* | aix5*)
  10386. # All AIX code is PIC.
  10387. if test "$host_cpu" = ia64; then
  10388. # AIX 5 now supports IA64 processor
  10389. lt_prog_compiler_static_CXX='-Bstatic'
  10390. else
  10391. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10392. fi
  10393. ;;
  10394. chorus*)
  10395. case $cc_basename in
  10396. cxch68*)
  10397. # Green Hills C++ Compiler
  10398. # _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"
  10399. ;;
  10400. esac
  10401. ;;
  10402. darwin*)
  10403. # PIC is the default on this platform
  10404. # Common symbols not allowed in MH_DYLIB files
  10405. case $cc_basename in
  10406. xlc*)
  10407. lt_prog_compiler_pic_CXX='-qnocommon'
  10408. lt_prog_compiler_wl_CXX='-Wl,'
  10409. ;;
  10410. esac
  10411. ;;
  10412. dgux*)
  10413. case $cc_basename in
  10414. ec++*)
  10415. lt_prog_compiler_pic_CXX='-KPIC'
  10416. ;;
  10417. ghcx*)
  10418. # Green Hills C++ Compiler
  10419. lt_prog_compiler_pic_CXX='-pic'
  10420. ;;
  10421. *)
  10422. ;;
  10423. esac
  10424. ;;
  10425. freebsd* | kfreebsd*-gnu | dragonfly*)
  10426. # FreeBSD uses GNU C++
  10427. ;;
  10428. hpux9* | hpux10* | hpux11*)
  10429. case $cc_basename in
  10430. CC*)
  10431. lt_prog_compiler_wl_CXX='-Wl,'
  10432. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10433. if test "$host_cpu" != ia64; then
  10434. lt_prog_compiler_pic_CXX='+Z'
  10435. fi
  10436. ;;
  10437. aCC*)
  10438. lt_prog_compiler_wl_CXX='-Wl,'
  10439. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10440. case $host_cpu in
  10441. hppa*64*|ia64*)
  10442. # +Z the default
  10443. ;;
  10444. *)
  10445. lt_prog_compiler_pic_CXX='+Z'
  10446. ;;
  10447. esac
  10448. ;;
  10449. *)
  10450. ;;
  10451. esac
  10452. ;;
  10453. interix*)
  10454. # This is c89, which is MS Visual C++ (no shared libs)
  10455. # Anyone wants to do a port?
  10456. ;;
  10457. irix5* | irix6* | nonstopux*)
  10458. case $cc_basename in
  10459. CC*)
  10460. lt_prog_compiler_wl_CXX='-Wl,'
  10461. lt_prog_compiler_static_CXX='-non_shared'
  10462. # CC pic flag -KPIC is the default.
  10463. ;;
  10464. *)
  10465. ;;
  10466. esac
  10467. ;;
  10468. linux*)
  10469. case $cc_basename in
  10470. KCC*)
  10471. # KAI C++ Compiler
  10472. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10473. lt_prog_compiler_pic_CXX='-fPIC'
  10474. ;;
  10475. icpc* | ecpc*)
  10476. # Intel C++
  10477. lt_prog_compiler_wl_CXX='-Wl,'
  10478. lt_prog_compiler_pic_CXX='-KPIC'
  10479. lt_prog_compiler_static_CXX='-static'
  10480. ;;
  10481. pgCC*)
  10482. # Portland Group C++ compiler.
  10483. lt_prog_compiler_wl_CXX='-Wl,'
  10484. lt_prog_compiler_pic_CXX='-fpic'
  10485. lt_prog_compiler_static_CXX='-Bstatic'
  10486. ;;
  10487. cxx*)
  10488. # Compaq C++
  10489. # Make sure the PIC flag is empty. It appears that all Alpha
  10490. # Linux and Compaq Tru64 Unix objects are PIC.
  10491. lt_prog_compiler_pic_CXX=
  10492. lt_prog_compiler_static_CXX='-non_shared'
  10493. ;;
  10494. *)
  10495. ;;
  10496. esac
  10497. ;;
  10498. lynxos*)
  10499. ;;
  10500. m88k*)
  10501. ;;
  10502. mvs*)
  10503. case $cc_basename in
  10504. cxx*)
  10505. lt_prog_compiler_pic_CXX='-W c,exportall'
  10506. ;;
  10507. *)
  10508. ;;
  10509. esac
  10510. ;;
  10511. netbsd*)
  10512. ;;
  10513. osf3* | osf4* | osf5*)
  10514. case $cc_basename in
  10515. KCC*)
  10516. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10517. ;;
  10518. RCC*)
  10519. # Rational C++ 2.4.1
  10520. lt_prog_compiler_pic_CXX='-pic'
  10521. ;;
  10522. cxx*)
  10523. # Digital/Compaq C++
  10524. lt_prog_compiler_wl_CXX='-Wl,'
  10525. # Make sure the PIC flag is empty. It appears that all Alpha
  10526. # Linux and Compaq Tru64 Unix objects are PIC.
  10527. lt_prog_compiler_pic_CXX=
  10528. lt_prog_compiler_static_CXX='-non_shared'
  10529. ;;
  10530. *)
  10531. ;;
  10532. esac
  10533. ;;
  10534. psos*)
  10535. ;;
  10536. solaris*)
  10537. case $cc_basename in
  10538. CC*)
  10539. # Sun C++ 4.2, 5.x and Centerline C++
  10540. lt_prog_compiler_pic_CXX='-KPIC'
  10541. lt_prog_compiler_static_CXX='-Bstatic'
  10542. lt_prog_compiler_wl_CXX='-Qoption ld '
  10543. ;;
  10544. gcx*)
  10545. # Green Hills C++ Compiler
  10546. lt_prog_compiler_pic_CXX='-PIC'
  10547. ;;
  10548. *)
  10549. ;;
  10550. esac
  10551. ;;
  10552. sunos4*)
  10553. case $cc_basename in
  10554. CC*)
  10555. # Sun C++ 4.x
  10556. lt_prog_compiler_pic_CXX='-pic'
  10557. lt_prog_compiler_static_CXX='-Bstatic'
  10558. ;;
  10559. lcc*)
  10560. # Lucid
  10561. lt_prog_compiler_pic_CXX='-pic'
  10562. ;;
  10563. *)
  10564. ;;
  10565. esac
  10566. ;;
  10567. tandem*)
  10568. case $cc_basename in
  10569. NCC*)
  10570. # NonStop-UX NCC 3.20
  10571. lt_prog_compiler_pic_CXX='-KPIC'
  10572. ;;
  10573. *)
  10574. ;;
  10575. esac
  10576. ;;
  10577. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10578. case $cc_basename in
  10579. CC*)
  10580. lt_prog_compiler_wl_CXX='-Wl,'
  10581. lt_prog_compiler_pic_CXX='-KPIC'
  10582. lt_prog_compiler_static_CXX='-Bstatic'
  10583. ;;
  10584. esac
  10585. ;;
  10586. vxworks*)
  10587. ;;
  10588. *)
  10589. lt_prog_compiler_can_build_shared_CXX=no
  10590. ;;
  10591. esac
  10592. fi
  10593. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10594. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10595. #
  10596. # Check to make sure the PIC flag actually works.
  10597. #
  10598. if test -n "$lt_prog_compiler_pic_CXX"; then
  10599. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10600. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10601. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10602. echo $ECHO_N "(cached) $ECHO_C" >&6
  10603. else
  10604. lt_prog_compiler_pic_works_CXX=no
  10605. ac_outfile=conftest.$ac_objext
  10606. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10607. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10608. # Insert the option either (1) after the last *FLAGS variable, or
  10609. # (2) before a word containing "conftest.", or (3) at the end.
  10610. # Note that $ac_compile itself does not contain backslashes and begins
  10611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10612. # The option is referenced via a variable to avoid confusing sed.
  10613. lt_compile=`echo "$ac_compile" | $SED \
  10614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10616. -e 's:$: $lt_compiler_flag:'`
  10617. (eval echo "\"\$as_me:11741: $lt_compile\"" >&5)
  10618. (eval "$lt_compile" 2>conftest.err)
  10619. ac_status=$?
  10620. cat conftest.err >&5
  10621. echo "$as_me:11745: \$? = $ac_status" >&5
  10622. if (exit $ac_status) && test -s "$ac_outfile"; then
  10623. # The compiler can only warn and ignore the option if not recognized
  10624. # So say no if there are warnings other than the usual output.
  10625. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10627. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10628. lt_prog_compiler_pic_works_CXX=yes
  10629. fi
  10630. fi
  10631. $rm conftest*
  10632. fi
  10633. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10634. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10635. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10636. case $lt_prog_compiler_pic_CXX in
  10637. "" | " "*) ;;
  10638. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10639. esac
  10640. else
  10641. lt_prog_compiler_pic_CXX=
  10642. lt_prog_compiler_can_build_shared_CXX=no
  10643. fi
  10644. fi
  10645. case $host_os in
  10646. # For platforms which do not support PIC, -DPIC is meaningless:
  10647. *djgpp*)
  10648. lt_prog_compiler_pic_CXX=
  10649. ;;
  10650. *)
  10651. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10652. ;;
  10653. esac
  10654. #
  10655. # Check to make sure the static flag actually works.
  10656. #
  10657. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10658. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10659. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10660. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10661. echo $ECHO_N "(cached) $ECHO_C" >&6
  10662. else
  10663. lt_prog_compiler_static_works_CXX=no
  10664. save_LDFLAGS="$LDFLAGS"
  10665. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10666. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10667. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10668. # The linker can only warn and ignore the option if not recognized
  10669. # So say no if there are warnings
  10670. if test -s conftest.err; then
  10671. # Append any errors to the config.log.
  10672. cat conftest.err 1>&5
  10673. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10674. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10675. if diff conftest.exp conftest.er2 >/dev/null; then
  10676. lt_prog_compiler_static_works_CXX=yes
  10677. fi
  10678. else
  10679. lt_prog_compiler_static_works_CXX=yes
  10680. fi
  10681. fi
  10682. $rm conftest*
  10683. LDFLAGS="$save_LDFLAGS"
  10684. fi
  10685. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10686. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10687. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10688. :
  10689. else
  10690. lt_prog_compiler_static_CXX=
  10691. fi
  10692. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10693. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10694. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10695. echo $ECHO_N "(cached) $ECHO_C" >&6
  10696. else
  10697. lt_cv_prog_compiler_c_o_CXX=no
  10698. $rm -r conftest 2>/dev/null
  10699. mkdir conftest
  10700. cd conftest
  10701. mkdir out
  10702. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10703. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10704. # Insert the option either (1) after the last *FLAGS variable, or
  10705. # (2) before a word containing "conftest.", or (3) at the end.
  10706. # Note that $ac_compile itself does not contain backslashes and begins
  10707. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10708. lt_compile=`echo "$ac_compile" | $SED \
  10709. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10710. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10711. -e 's:$: $lt_compiler_flag:'`
  10712. (eval echo "\"\$as_me:11845: $lt_compile\"" >&5)
  10713. (eval "$lt_compile" 2>out/conftest.err)
  10714. ac_status=$?
  10715. cat out/conftest.err >&5
  10716. echo "$as_me:11849: \$? = $ac_status" >&5
  10717. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10718. then
  10719. # The compiler can only warn and ignore the option if not recognized
  10720. # So say no if there are warnings
  10721. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10722. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10723. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10724. lt_cv_prog_compiler_c_o_CXX=yes
  10725. fi
  10726. fi
  10727. chmod u+w . 2>&5
  10728. $rm conftest*
  10729. # SGI C++ compiler will create directory out/ii_files/ for
  10730. # template instantiation
  10731. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10732. $rm out/* && rmdir out
  10733. cd ..
  10734. rmdir conftest
  10735. $rm conftest*
  10736. fi
  10737. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10738. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10739. hard_links="nottested"
  10740. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10741. # do not overwrite the value of need_locks provided by the user
  10742. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10743. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10744. hard_links=yes
  10745. $rm conftest*
  10746. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10747. touch conftest.a
  10748. ln conftest.a conftest.b 2>&5 || hard_links=no
  10749. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10750. echo "$as_me:$LINENO: result: $hard_links" >&5
  10751. echo "${ECHO_T}$hard_links" >&6
  10752. if test "$hard_links" = no; then
  10753. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10754. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10755. need_locks=warn
  10756. fi
  10757. else
  10758. need_locks=no
  10759. fi
  10760. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10761. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10762. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10763. case $host_os in
  10764. aix4* | aix5*)
  10765. # If we're using GNU nm, then we don't want the "-C" option.
  10766. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10767. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10768. 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'
  10769. else
  10770. 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'
  10771. fi
  10772. ;;
  10773. pw32*)
  10774. export_symbols_cmds_CXX="$ltdll_cmds"
  10775. ;;
  10776. cygwin* | mingw*)
  10777. 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'
  10778. ;;
  10779. *)
  10780. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10781. ;;
  10782. esac
  10783. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10784. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10785. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10786. #
  10787. # Do we need to explicitly link libc?
  10788. #
  10789. case "x$archive_cmds_need_lc_CXX" in
  10790. x|xyes)
  10791. # Assume -lc should be added
  10792. archive_cmds_need_lc_CXX=yes
  10793. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10794. case $archive_cmds_CXX in
  10795. *'~'*)
  10796. # FIXME: we may have to deal with multi-command sequences.
  10797. ;;
  10798. '$CC '*)
  10799. # Test whether the compiler implicitly links with -lc since on some
  10800. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10801. # to ld, don't add -lc before -lgcc.
  10802. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10803. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10804. $rm conftest*
  10805. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10807. (eval $ac_compile) 2>&5
  10808. ac_status=$?
  10809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10810. (exit $ac_status); } 2>conftest.err; then
  10811. soname=conftest
  10812. lib=conftest
  10813. libobjs=conftest.$ac_objext
  10814. deplibs=
  10815. wl=$lt_prog_compiler_wl_CXX
  10816. pic_flag=$lt_prog_compiler_pic_CXX
  10817. compiler_flags=-v
  10818. linker_flags=-v
  10819. verstring=
  10820. output_objdir=.
  10821. libname=conftest
  10822. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10823. allow_undefined_flag_CXX=
  10824. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10825. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10826. ac_status=$?
  10827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10828. (exit $ac_status); }
  10829. then
  10830. archive_cmds_need_lc_CXX=no
  10831. else
  10832. archive_cmds_need_lc_CXX=yes
  10833. fi
  10834. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10835. else
  10836. cat conftest.err 1>&5
  10837. fi
  10838. $rm conftest*
  10839. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10840. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10841. ;;
  10842. esac
  10843. fi
  10844. ;;
  10845. esac
  10846. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10847. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10848. library_names_spec=
  10849. libname_spec='lib$name'
  10850. soname_spec=
  10851. shrext_cmds=".so"
  10852. postinstall_cmds=
  10853. postuninstall_cmds=
  10854. finish_cmds=
  10855. finish_eval=
  10856. shlibpath_var=
  10857. shlibpath_overrides_runpath=unknown
  10858. version_type=none
  10859. dynamic_linker="$host_os ld.so"
  10860. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10861. if test "$GCC" = yes; then
  10862. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10863. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10864. # if the path contains ";" then we assume it to be the separator
  10865. # otherwise default to the standard path separator (i.e. ":") - it is
  10866. # assumed that no part of a normal pathname contains ";" but that should
  10867. # okay in the real world where ";" in dirpaths is itself problematic.
  10868. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10869. else
  10870. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10871. fi
  10872. else
  10873. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10874. fi
  10875. need_lib_prefix=unknown
  10876. hardcode_into_libs=no
  10877. # when you set need_version to no, make sure it does not cause -set_version
  10878. # flags to be left without arguments
  10879. need_version=unknown
  10880. case $host_os in
  10881. aix3*)
  10882. version_type=linux
  10883. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10884. shlibpath_var=LIBPATH
  10885. # AIX 3 has no versioning support, so we append a major version to the name.
  10886. soname_spec='${libname}${release}${shared_ext}$major'
  10887. ;;
  10888. aix4* | aix5*)
  10889. version_type=linux
  10890. need_lib_prefix=no
  10891. need_version=no
  10892. hardcode_into_libs=yes
  10893. if test "$host_cpu" = ia64; then
  10894. # AIX 5 supports IA64
  10895. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10896. shlibpath_var=LD_LIBRARY_PATH
  10897. else
  10898. # With GCC up to 2.95.x, collect2 would create an import file
  10899. # for dependence libraries. The import file would start with
  10900. # the line `#! .'. This would cause the generated library to
  10901. # depend on `.', always an invalid library. This was fixed in
  10902. # development snapshots of GCC prior to 3.0.
  10903. case $host_os in
  10904. aix4 | aix4.[01] | aix4.[01].*)
  10905. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10906. echo ' yes '
  10907. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10908. :
  10909. else
  10910. can_build_shared=no
  10911. fi
  10912. ;;
  10913. esac
  10914. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10915. # soname into executable. Probably we can add versioning support to
  10916. # collect2, so additional links can be useful in future.
  10917. if test "$aix_use_runtimelinking" = yes; then
  10918. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10919. # instead of lib<name>.a to let people know that these are not
  10920. # typical AIX shared libraries.
  10921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10922. else
  10923. # We preserve .a as extension for shared libraries through AIX4.2
  10924. # and later when we are not doing run time linking.
  10925. library_names_spec='${libname}${release}.a $libname.a'
  10926. soname_spec='${libname}${release}${shared_ext}$major'
  10927. fi
  10928. shlibpath_var=LIBPATH
  10929. fi
  10930. ;;
  10931. amigaos*)
  10932. library_names_spec='$libname.ixlibrary $libname.a'
  10933. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10934. 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'
  10935. ;;
  10936. beos*)
  10937. library_names_spec='${libname}${shared_ext}'
  10938. dynamic_linker="$host_os ld.so"
  10939. shlibpath_var=LIBRARY_PATH
  10940. ;;
  10941. bsdi[45]*)
  10942. version_type=linux
  10943. need_version=no
  10944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10945. soname_spec='${libname}${release}${shared_ext}$major'
  10946. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10947. shlibpath_var=LD_LIBRARY_PATH
  10948. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10949. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10950. # the default ld.so.conf also contains /usr/contrib/lib and
  10951. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10952. # libtool to hard-code these into programs
  10953. ;;
  10954. cygwin* | mingw* | pw32*)
  10955. version_type=windows
  10956. shrext_cmds=".dll"
  10957. need_version=no
  10958. need_lib_prefix=no
  10959. case $GCC,$host_os in
  10960. yes,cygwin* | yes,mingw* | yes,pw32*)
  10961. library_names_spec='$libname.dll.a'
  10962. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10963. postinstall_cmds='base_file=`basename \${file}`~
  10964. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10965. dldir=$destdir/`dirname \$dlpath`~
  10966. test -d \$dldir || mkdir -p \$dldir~
  10967. $install_prog $dir/$dlname \$dldir/$dlname~
  10968. chmod a+x \$dldir/$dlname'
  10969. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10970. dlpath=$dir/\$dldll~
  10971. $rm \$dlpath'
  10972. shlibpath_overrides_runpath=yes
  10973. case $host_os in
  10974. cygwin*)
  10975. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10976. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10977. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10978. ;;
  10979. mingw*)
  10980. # MinGW DLLs use traditional 'lib' prefix
  10981. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10982. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10983. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10984. # It is most probably a Windows format PATH printed by
  10985. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10986. # path with ; separators, and with drive letters. We can handle the
  10987. # drive letters (cygwin fileutils understands them), so leave them,
  10988. # especially as we might pass files found there to a mingw objdump,
  10989. # which wouldn't understand a cygwinified path. Ahh.
  10990. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10991. else
  10992. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10993. fi
  10994. ;;
  10995. pw32*)
  10996. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10997. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10998. ;;
  10999. esac
  11000. ;;
  11001. *)
  11002. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11003. ;;
  11004. esac
  11005. dynamic_linker='Win32 ld.exe'
  11006. # FIXME: first we should search . and the directory the executable is in
  11007. shlibpath_var=PATH
  11008. ;;
  11009. darwin* | rhapsody*)
  11010. dynamic_linker="$host_os dyld"
  11011. version_type=darwin
  11012. need_lib_prefix=no
  11013. need_version=no
  11014. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11015. soname_spec='${libname}${release}${major}$shared_ext'
  11016. shlibpath_overrides_runpath=yes
  11017. shlibpath_var=DYLD_LIBRARY_PATH
  11018. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11019. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  11020. if test "$GCC" = yes; then
  11021. 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"`
  11022. else
  11023. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  11024. fi
  11025. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11026. ;;
  11027. dgux*)
  11028. version_type=linux
  11029. need_lib_prefix=no
  11030. need_version=no
  11031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11032. soname_spec='${libname}${release}${shared_ext}$major'
  11033. shlibpath_var=LD_LIBRARY_PATH
  11034. ;;
  11035. freebsd1*)
  11036. dynamic_linker=no
  11037. ;;
  11038. kfreebsd*-gnu)
  11039. version_type=linux
  11040. need_lib_prefix=no
  11041. need_version=no
  11042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11043. soname_spec='${libname}${release}${shared_ext}$major'
  11044. shlibpath_var=LD_LIBRARY_PATH
  11045. shlibpath_overrides_runpath=no
  11046. hardcode_into_libs=yes
  11047. dynamic_linker='GNU ld.so'
  11048. ;;
  11049. freebsd* | dragonfly*)
  11050. # DragonFly does not have aout. When/if they implement a new
  11051. # versioning mechanism, adjust this.
  11052. if test -x /usr/bin/objformat; then
  11053. objformat=`/usr/bin/objformat`
  11054. else
  11055. case $host_os in
  11056. freebsd[123]*) objformat=aout ;;
  11057. *) objformat=elf ;;
  11058. esac
  11059. fi
  11060. version_type=freebsd-$objformat
  11061. case $version_type in
  11062. freebsd-elf*)
  11063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11064. need_version=no
  11065. need_lib_prefix=no
  11066. ;;
  11067. freebsd-*)
  11068. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11069. need_version=yes
  11070. ;;
  11071. esac
  11072. shlibpath_var=LD_LIBRARY_PATH
  11073. case $host_os in
  11074. freebsd2*)
  11075. shlibpath_overrides_runpath=yes
  11076. ;;
  11077. freebsd3.[01]* | freebsdelf3.[01]*)
  11078. shlibpath_overrides_runpath=yes
  11079. hardcode_into_libs=yes
  11080. ;;
  11081. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11082. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11083. shlibpath_overrides_runpath=no
  11084. hardcode_into_libs=yes
  11085. ;;
  11086. freebsd*) # from 4.6 on
  11087. shlibpath_overrides_runpath=yes
  11088. hardcode_into_libs=yes
  11089. ;;
  11090. esac
  11091. ;;
  11092. gnu*)
  11093. version_type=linux
  11094. need_lib_prefix=no
  11095. need_version=no
  11096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11097. soname_spec='${libname}${release}${shared_ext}$major'
  11098. shlibpath_var=LD_LIBRARY_PATH
  11099. hardcode_into_libs=yes
  11100. ;;
  11101. hpux9* | hpux10* | hpux11*)
  11102. # Give a soname corresponding to the major version so that dld.sl refuses to
  11103. # link against other versions.
  11104. version_type=sunos
  11105. need_lib_prefix=no
  11106. need_version=no
  11107. case $host_cpu in
  11108. ia64*)
  11109. shrext_cmds='.so'
  11110. hardcode_into_libs=yes
  11111. dynamic_linker="$host_os dld.so"
  11112. shlibpath_var=LD_LIBRARY_PATH
  11113. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11115. soname_spec='${libname}${release}${shared_ext}$major'
  11116. if test "X$HPUX_IA64_MODE" = X32; then
  11117. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11118. else
  11119. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11120. fi
  11121. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11122. ;;
  11123. hppa*64*)
  11124. shrext_cmds='.sl'
  11125. hardcode_into_libs=yes
  11126. dynamic_linker="$host_os dld.sl"
  11127. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11128. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11130. soname_spec='${libname}${release}${shared_ext}$major'
  11131. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11132. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11133. ;;
  11134. *)
  11135. shrext_cmds='.sl'
  11136. dynamic_linker="$host_os dld.sl"
  11137. shlibpath_var=SHLIB_PATH
  11138. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11140. soname_spec='${libname}${release}${shared_ext}$major'
  11141. ;;
  11142. esac
  11143. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11144. postinstall_cmds='chmod 555 $lib'
  11145. ;;
  11146. interix3*)
  11147. version_type=linux
  11148. need_lib_prefix=no
  11149. need_version=no
  11150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11151. soname_spec='${libname}${release}${shared_ext}$major'
  11152. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11153. shlibpath_var=LD_LIBRARY_PATH
  11154. shlibpath_overrides_runpath=no
  11155. hardcode_into_libs=yes
  11156. ;;
  11157. irix5* | irix6* | nonstopux*)
  11158. case $host_os in
  11159. nonstopux*) version_type=nonstopux ;;
  11160. *)
  11161. if test "$lt_cv_prog_gnu_ld" = yes; then
  11162. version_type=linux
  11163. else
  11164. version_type=irix
  11165. fi ;;
  11166. esac
  11167. need_lib_prefix=no
  11168. need_version=no
  11169. soname_spec='${libname}${release}${shared_ext}$major'
  11170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11171. case $host_os in
  11172. irix5* | nonstopux*)
  11173. libsuff= shlibsuff=
  11174. ;;
  11175. *)
  11176. case $LD in # libtool.m4 will add one of these switches to LD
  11177. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11178. libsuff= shlibsuff= libmagic=32-bit;;
  11179. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11180. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11181. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11182. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11183. *) libsuff= shlibsuff= libmagic=never-match;;
  11184. esac
  11185. ;;
  11186. esac
  11187. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11188. shlibpath_overrides_runpath=no
  11189. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11190. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11191. hardcode_into_libs=yes
  11192. ;;
  11193. # No shared lib support for Linux oldld, aout, or coff.
  11194. linux*oldld* | linux*aout* | linux*coff*)
  11195. dynamic_linker=no
  11196. ;;
  11197. # This must be Linux ELF.
  11198. linux*)
  11199. version_type=linux
  11200. need_lib_prefix=no
  11201. need_version=no
  11202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11203. soname_spec='${libname}${release}${shared_ext}$major'
  11204. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11205. shlibpath_var=LD_LIBRARY_PATH
  11206. shlibpath_overrides_runpath=no
  11207. # This implies no fast_install, which is unacceptable.
  11208. # Some rework will be needed to allow for fast_install
  11209. # before this can be enabled.
  11210. hardcode_into_libs=yes
  11211. # find out which ABI we are using
  11212. libsuff=
  11213. case "$host_cpu" in
  11214. x86_64*|s390x*|powerpc64*)
  11215. echo '#line 12381 "configure"' > conftest.$ac_ext
  11216. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11217. (eval $ac_compile) 2>&5
  11218. ac_status=$?
  11219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11220. (exit $ac_status); }; then
  11221. case `/usr/bin/file conftest.$ac_objext` in
  11222. *64-bit*)
  11223. libsuff=64
  11224. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  11225. ;;
  11226. esac
  11227. fi
  11228. rm -rf conftest*
  11229. ;;
  11230. esac
  11231. # Append ld.so.conf contents to the search path
  11232. if test -f /etc/ld.so.conf; then
  11233. 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' ' '`
  11234. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  11235. fi
  11236. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11237. # powerpc, because MkLinux only supported shared libraries with the
  11238. # GNU dynamic linker. Since this was broken with cross compilers,
  11239. # most powerpc-linux boxes support dynamic linking these days and
  11240. # people can always --disable-shared, the test was removed, and we
  11241. # assume the GNU/Linux dynamic linker is in use.
  11242. dynamic_linker='GNU/Linux ld.so'
  11243. ;;
  11244. knetbsd*-gnu)
  11245. version_type=linux
  11246. need_lib_prefix=no
  11247. need_version=no
  11248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11249. soname_spec='${libname}${release}${shared_ext}$major'
  11250. shlibpath_var=LD_LIBRARY_PATH
  11251. shlibpath_overrides_runpath=no
  11252. hardcode_into_libs=yes
  11253. dynamic_linker='GNU ld.so'
  11254. ;;
  11255. netbsd*)
  11256. version_type=sunos
  11257. need_lib_prefix=no
  11258. need_version=no
  11259. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11261. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11262. dynamic_linker='NetBSD (a.out) ld.so'
  11263. else
  11264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11265. soname_spec='${libname}${release}${shared_ext}$major'
  11266. dynamic_linker='NetBSD ld.elf_so'
  11267. fi
  11268. shlibpath_var=LD_LIBRARY_PATH
  11269. shlibpath_overrides_runpath=yes
  11270. hardcode_into_libs=yes
  11271. ;;
  11272. newsos6)
  11273. version_type=linux
  11274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11275. shlibpath_var=LD_LIBRARY_PATH
  11276. shlibpath_overrides_runpath=yes
  11277. ;;
  11278. nto-qnx*)
  11279. version_type=linux
  11280. need_lib_prefix=no
  11281. need_version=no
  11282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11283. soname_spec='${libname}${release}${shared_ext}$major'
  11284. shlibpath_var=LD_LIBRARY_PATH
  11285. shlibpath_overrides_runpath=yes
  11286. ;;
  11287. openbsd*)
  11288. version_type=sunos
  11289. sys_lib_dlsearch_path_spec="/usr/lib"
  11290. need_lib_prefix=no
  11291. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11292. case $host_os in
  11293. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11294. *) need_version=no ;;
  11295. esac
  11296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11297. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11298. shlibpath_var=LD_LIBRARY_PATH
  11299. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11300. case $host_os in
  11301. openbsd2.[89] | openbsd2.[89].*)
  11302. shlibpath_overrides_runpath=no
  11303. ;;
  11304. *)
  11305. shlibpath_overrides_runpath=yes
  11306. ;;
  11307. esac
  11308. else
  11309. shlibpath_overrides_runpath=yes
  11310. fi
  11311. ;;
  11312. os2*)
  11313. libname_spec='$name'
  11314. shrext_cmds=".dll"
  11315. need_lib_prefix=no
  11316. library_names_spec='$libname${shared_ext} $libname.a'
  11317. dynamic_linker='OS/2 ld.exe'
  11318. shlibpath_var=LIBPATH
  11319. ;;
  11320. osf3* | osf4* | osf5*)
  11321. version_type=osf
  11322. need_lib_prefix=no
  11323. need_version=no
  11324. soname_spec='${libname}${release}${shared_ext}$major'
  11325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11326. shlibpath_var=LD_LIBRARY_PATH
  11327. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11328. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11329. ;;
  11330. solaris*)
  11331. version_type=linux
  11332. need_lib_prefix=no
  11333. need_version=no
  11334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11335. soname_spec='${libname}${release}${shared_ext}$major'
  11336. shlibpath_var=LD_LIBRARY_PATH
  11337. shlibpath_overrides_runpath=yes
  11338. hardcode_into_libs=yes
  11339. # ldd complains unless libraries are executable
  11340. postinstall_cmds='chmod +x $lib'
  11341. ;;
  11342. sunos4*)
  11343. version_type=sunos
  11344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11345. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11346. shlibpath_var=LD_LIBRARY_PATH
  11347. shlibpath_overrides_runpath=yes
  11348. if test "$with_gnu_ld" = yes; then
  11349. need_lib_prefix=no
  11350. fi
  11351. need_version=yes
  11352. ;;
  11353. sysv4 | sysv4.3*)
  11354. version_type=linux
  11355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11356. soname_spec='${libname}${release}${shared_ext}$major'
  11357. shlibpath_var=LD_LIBRARY_PATH
  11358. case $host_vendor in
  11359. sni)
  11360. shlibpath_overrides_runpath=no
  11361. need_lib_prefix=no
  11362. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11363. runpath_var=LD_RUN_PATH
  11364. ;;
  11365. siemens)
  11366. need_lib_prefix=no
  11367. ;;
  11368. motorola)
  11369. need_lib_prefix=no
  11370. need_version=no
  11371. shlibpath_overrides_runpath=no
  11372. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11373. ;;
  11374. esac
  11375. ;;
  11376. sysv4*MP*)
  11377. if test -d /usr/nec ;then
  11378. version_type=linux
  11379. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11380. soname_spec='$libname${shared_ext}.$major'
  11381. shlibpath_var=LD_LIBRARY_PATH
  11382. fi
  11383. ;;
  11384. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11385. version_type=freebsd-elf
  11386. need_lib_prefix=no
  11387. need_version=no
  11388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11389. soname_spec='${libname}${release}${shared_ext}$major'
  11390. shlibpath_var=LD_LIBRARY_PATH
  11391. hardcode_into_libs=yes
  11392. if test "$with_gnu_ld" = yes; then
  11393. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11394. shlibpath_overrides_runpath=no
  11395. else
  11396. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11397. shlibpath_overrides_runpath=yes
  11398. case $host_os in
  11399. sco3.2v5*)
  11400. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11401. ;;
  11402. esac
  11403. fi
  11404. sys_lib_dlsearch_path_spec='/usr/lib'
  11405. ;;
  11406. uts4*)
  11407. version_type=linux
  11408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11409. soname_spec='${libname}${release}${shared_ext}$major'
  11410. shlibpath_var=LD_LIBRARY_PATH
  11411. ;;
  11412. *)
  11413. dynamic_linker=no
  11414. ;;
  11415. esac
  11416. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11417. echo "${ECHO_T}$dynamic_linker" >&6
  11418. test "$dynamic_linker" = no && can_build_shared=no
  11419. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11420. if test "$GCC" = yes; then
  11421. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11422. fi
  11423. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11424. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11425. hardcode_action_CXX=
  11426. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11427. test -n "$runpath_var_CXX" || \
  11428. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11429. # We can hardcode non-existant directories.
  11430. if test "$hardcode_direct_CXX" != no &&
  11431. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11432. # have to relink, otherwise we might link with an installed library
  11433. # when we should be linking with a yet-to-be-installed one
  11434. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11435. test "$hardcode_minus_L_CXX" != no; then
  11436. # Linking always hardcodes the temporary library directory.
  11437. hardcode_action_CXX=relink
  11438. else
  11439. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11440. hardcode_action_CXX=immediate
  11441. fi
  11442. else
  11443. # We cannot hardcode anything, or else we can only hardcode existing
  11444. # directories.
  11445. hardcode_action_CXX=unsupported
  11446. fi
  11447. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11448. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11449. if test "$hardcode_action_CXX" = relink; then
  11450. # Fast installation is not supported
  11451. enable_fast_install=no
  11452. elif test "$shlibpath_overrides_runpath" = yes ||
  11453. test "$enable_shared" = no; then
  11454. # Fast installation is not necessary
  11455. enable_fast_install=needless
  11456. fi
  11457. # The else clause should only fire when bootstrapping the
  11458. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11459. # with your package, and you will get complaints that there are
  11460. # no rules to generate ltmain.sh.
  11461. if test -f "$ltmain"; then
  11462. # See if we are running on zsh, and set the options which allow our commands through
  11463. # without removal of \ escapes.
  11464. if test -n "${ZSH_VERSION+set}" ; then
  11465. setopt NO_GLOB_SUBST
  11466. fi
  11467. # Now quote all the things that may contain metacharacters while being
  11468. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11469. # variables and quote the copies for generation of the libtool script.
  11470. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11471. SED SHELL STRIP \
  11472. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11473. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11474. deplibs_check_method reload_flag reload_cmds need_locks \
  11475. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11476. lt_cv_sys_global_symbol_to_c_name_address \
  11477. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11478. old_postinstall_cmds old_postuninstall_cmds \
  11479. compiler_CXX \
  11480. CC_CXX \
  11481. LD_CXX \
  11482. lt_prog_compiler_wl_CXX \
  11483. lt_prog_compiler_pic_CXX \
  11484. lt_prog_compiler_static_CXX \
  11485. lt_prog_compiler_no_builtin_flag_CXX \
  11486. export_dynamic_flag_spec_CXX \
  11487. thread_safe_flag_spec_CXX \
  11488. whole_archive_flag_spec_CXX \
  11489. enable_shared_with_static_runtimes_CXX \
  11490. old_archive_cmds_CXX \
  11491. old_archive_from_new_cmds_CXX \
  11492. predep_objects_CXX \
  11493. postdep_objects_CXX \
  11494. predeps_CXX \
  11495. postdeps_CXX \
  11496. compiler_lib_search_path_CXX \
  11497. archive_cmds_CXX \
  11498. archive_expsym_cmds_CXX \
  11499. postinstall_cmds_CXX \
  11500. postuninstall_cmds_CXX \
  11501. old_archive_from_expsyms_cmds_CXX \
  11502. allow_undefined_flag_CXX \
  11503. no_undefined_flag_CXX \
  11504. export_symbols_cmds_CXX \
  11505. hardcode_libdir_flag_spec_CXX \
  11506. hardcode_libdir_flag_spec_ld_CXX \
  11507. hardcode_libdir_separator_CXX \
  11508. hardcode_automatic_CXX \
  11509. module_cmds_CXX \
  11510. module_expsym_cmds_CXX \
  11511. lt_cv_prog_compiler_c_o_CXX \
  11512. exclude_expsyms_CXX \
  11513. include_expsyms_CXX; do
  11514. case $var in
  11515. old_archive_cmds_CXX | \
  11516. old_archive_from_new_cmds_CXX | \
  11517. archive_cmds_CXX | \
  11518. archive_expsym_cmds_CXX | \
  11519. module_cmds_CXX | \
  11520. module_expsym_cmds_CXX | \
  11521. old_archive_from_expsyms_cmds_CXX | \
  11522. export_symbols_cmds_CXX | \
  11523. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11524. postinstall_cmds | postuninstall_cmds | \
  11525. old_postinstall_cmds | old_postuninstall_cmds | \
  11526. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11527. # Double-quote double-evaled strings.
  11528. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11529. ;;
  11530. *)
  11531. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11532. ;;
  11533. esac
  11534. done
  11535. case $lt_echo in
  11536. *'\$0 --fallback-echo"')
  11537. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11538. ;;
  11539. esac
  11540. cfgfile="$ofile"
  11541. cat <<__EOF__ >> "$cfgfile"
  11542. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11543. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11544. # Shell to use when invoking shell scripts.
  11545. SHELL=$lt_SHELL
  11546. # Whether or not to build shared libraries.
  11547. build_libtool_libs=$enable_shared
  11548. # Whether or not to build static libraries.
  11549. build_old_libs=$enable_static
  11550. # Whether or not to add -lc for building shared libraries.
  11551. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11552. # Whether or not to disallow shared libs when runtime libs are static
  11553. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11554. # Whether or not to optimize for fast installation.
  11555. fast_install=$enable_fast_install
  11556. # The host system.
  11557. host_alias=$host_alias
  11558. host=$host
  11559. host_os=$host_os
  11560. # The build system.
  11561. build_alias=$build_alias
  11562. build=$build
  11563. build_os=$build_os
  11564. # An echo program that does not interpret backslashes.
  11565. echo=$lt_echo
  11566. # The archiver.
  11567. AR=$lt_AR
  11568. AR_FLAGS=$lt_AR_FLAGS
  11569. # A C compiler.
  11570. LTCC=$lt_LTCC
  11571. # LTCC compiler flags.
  11572. LTCFLAGS=$lt_LTCFLAGS
  11573. # A language-specific compiler.
  11574. CC=$lt_compiler_CXX
  11575. # Is the compiler the GNU C compiler?
  11576. with_gcc=$GCC_CXX
  11577. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  11578. gcc_ver=\`gcc -dumpversion\`
  11579. # An ERE matcher.
  11580. EGREP=$lt_EGREP
  11581. # The linker used to build libraries.
  11582. LD=$lt_LD_CXX
  11583. # Whether we need hard or soft links.
  11584. LN_S=$lt_LN_S
  11585. # A BSD-compatible nm program.
  11586. NM=$lt_NM
  11587. # A symbol stripping program
  11588. STRIP=$lt_STRIP
  11589. # Used to examine libraries when file_magic_cmd begins "file"
  11590. MAGIC_CMD=$MAGIC_CMD
  11591. # Used on cygwin: DLL creation program.
  11592. DLLTOOL="$DLLTOOL"
  11593. # Used on cygwin: object dumper.
  11594. OBJDUMP="$OBJDUMP"
  11595. # Used on cygwin: assembler.
  11596. AS="$AS"
  11597. # The name of the directory that contains temporary libtool files.
  11598. objdir=$objdir
  11599. # How to create reloadable object files.
  11600. reload_flag=$lt_reload_flag
  11601. reload_cmds=$lt_reload_cmds
  11602. # How to pass a linker flag through the compiler.
  11603. wl=$lt_lt_prog_compiler_wl_CXX
  11604. # Object file suffix (normally "o").
  11605. objext="$ac_objext"
  11606. # Old archive suffix (normally "a").
  11607. libext="$libext"
  11608. # Shared library suffix (normally ".so").
  11609. shrext_cmds='$shrext_cmds'
  11610. # Executable file suffix (normally "").
  11611. exeext="$exeext"
  11612. # Additional compiler flags for building library objects.
  11613. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11614. pic_mode=$pic_mode
  11615. # What is the maximum length of a command?
  11616. max_cmd_len=$lt_cv_sys_max_cmd_len
  11617. # Does compiler simultaneously support -c and -o options?
  11618. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11619. # Must we lock files when doing compilation?
  11620. need_locks=$lt_need_locks
  11621. # Do we need the lib prefix for modules?
  11622. need_lib_prefix=$need_lib_prefix
  11623. # Do we need a version for libraries?
  11624. need_version=$need_version
  11625. # Whether dlopen is supported.
  11626. dlopen_support=$enable_dlopen
  11627. # Whether dlopen of programs is supported.
  11628. dlopen_self=$enable_dlopen_self
  11629. # Whether dlopen of statically linked programs is supported.
  11630. dlopen_self_static=$enable_dlopen_self_static
  11631. # Compiler flag to prevent dynamic linking.
  11632. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11633. # Compiler flag to turn off builtin functions.
  11634. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11635. # Compiler flag to allow reflexive dlopens.
  11636. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11637. # Compiler flag to generate shared objects directly from archives.
  11638. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11639. # Compiler flag to generate thread-safe objects.
  11640. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11641. # Library versioning type.
  11642. version_type=$version_type
  11643. # Format of library name prefix.
  11644. libname_spec=$lt_libname_spec
  11645. # List of archive names. First name is the real one, the rest are links.
  11646. # The last name is the one that the linker finds with -lNAME.
  11647. library_names_spec=$lt_library_names_spec
  11648. # The coded name of the library, if different from the real name.
  11649. soname_spec=$lt_soname_spec
  11650. # Commands used to build and install an old-style archive.
  11651. RANLIB=$lt_RANLIB
  11652. old_archive_cmds=$lt_old_archive_cmds_CXX
  11653. old_postinstall_cmds=$lt_old_postinstall_cmds
  11654. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11655. # Create an old-style archive from a shared archive.
  11656. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11657. # Create a temporary old-style archive to link instead of a shared archive.
  11658. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11659. # Commands used to build and install a shared archive.
  11660. archive_cmds=$lt_archive_cmds_CXX
  11661. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11662. postinstall_cmds=$lt_postinstall_cmds
  11663. postuninstall_cmds=$lt_postuninstall_cmds
  11664. # Commands used to build a loadable module (assumed same as above if empty)
  11665. module_cmds=$lt_module_cmds_CXX
  11666. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11667. # Commands to strip libraries.
  11668. old_striplib=$lt_old_striplib
  11669. striplib=$lt_striplib
  11670. # Dependencies to place before the objects being linked to create a
  11671. # shared library.
  11672. predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11673. # Dependencies to place after the objects being linked to create a
  11674. # shared library.
  11675. postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  11676. # Dependencies to place before the objects being linked to create a
  11677. # shared library.
  11678. predeps=$lt_predeps_CXX
  11679. # Dependencies to place after the objects being linked to create a
  11680. # shared library.
  11681. postdeps=$lt_postdeps_CXX
  11682. # The library search path used internally by the compiler when linking
  11683. # a shared library.
  11684. 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"\`
  11685. # Method to check whether dependent libraries are shared objects.
  11686. deplibs_check_method=$lt_deplibs_check_method
  11687. # Command to use when deplibs_check_method == file_magic.
  11688. file_magic_cmd=$lt_file_magic_cmd
  11689. # Flag that allows shared libraries with undefined symbols to be built.
  11690. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11691. # Flag that forces no undefined symbols.
  11692. no_undefined_flag=$lt_no_undefined_flag_CXX
  11693. # Commands used to finish a libtool library installation in a directory.
  11694. finish_cmds=$lt_finish_cmds
  11695. # Same as above, but a single script fragment to be evaled but not shown.
  11696. finish_eval=$lt_finish_eval
  11697. # Take the output of nm and produce a listing of raw symbols and C names.
  11698. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11699. # Transform the output of nm in a proper C declaration
  11700. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11701. # Transform the output of nm in a C name address pair
  11702. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11703. # This is the shared library runtime path variable.
  11704. runpath_var=$runpath_var
  11705. # This is the shared library path variable.
  11706. shlibpath_var=$shlibpath_var
  11707. # Is shlibpath searched before the hard-coded library search path?
  11708. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11709. # How to hardcode a shared library path into an executable.
  11710. hardcode_action=$hardcode_action_CXX
  11711. # Whether we should hardcode library paths into libraries.
  11712. hardcode_into_libs=$hardcode_into_libs
  11713. # Flag to hardcode \$libdir into a binary during linking.
  11714. # This must work even if \$libdir does not exist.
  11715. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11716. # If ld is used when linking, flag to hardcode \$libdir into
  11717. # a binary during linking. This must work even if \$libdir does
  11718. # not exist.
  11719. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11720. # Whether we need a single -rpath flag with a separated argument.
  11721. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11722. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11723. # resulting binary.
  11724. hardcode_direct=$hardcode_direct_CXX
  11725. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11726. # resulting binary.
  11727. hardcode_minus_L=$hardcode_minus_L_CXX
  11728. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11729. # the resulting binary.
  11730. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11731. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11732. # and all subsequent libraries and executables linked against it.
  11733. hardcode_automatic=$hardcode_automatic_CXX
  11734. # Variables whose values should be saved in libtool wrapper scripts and
  11735. # restored at relink time.
  11736. variables_saved_for_relink="$variables_saved_for_relink"
  11737. # Whether libtool must link a program against all its dependency libraries.
  11738. link_all_deplibs=$link_all_deplibs_CXX
  11739. # Compile-time system search path for libraries
  11740. 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"\`
  11741. # Run-time system search path for libraries
  11742. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11743. # Fix the shell variable \$srcfile for the compiler.
  11744. fix_srcfile_path="$fix_srcfile_path_CXX"
  11745. # Set to yes if exported symbols are required.
  11746. always_export_symbols=$always_export_symbols_CXX
  11747. # The commands to list exported symbols.
  11748. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11749. # The commands to extract the exported symbol list from a shared archive.
  11750. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11751. # Symbols that should not be listed in the preloaded symbols.
  11752. exclude_expsyms=$lt_exclude_expsyms_CXX
  11753. # Symbols that must always be exported.
  11754. include_expsyms=$lt_include_expsyms_CXX
  11755. # ### END LIBTOOL TAG CONFIG: $tagname
  11756. __EOF__
  11757. else
  11758. # If there is no Makefile yet, we rely on a make rule to execute
  11759. # `config.status --recheck' to rerun these tests and create the
  11760. # libtool script then.
  11761. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11762. if test -f "$ltmain_in"; then
  11763. test -f Makefile && make "$ltmain"
  11764. fi
  11765. fi
  11766. ac_ext=c
  11767. ac_cpp='$CPP $CPPFLAGS'
  11768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11771. CC=$lt_save_CC
  11772. LDCXX=$LD
  11773. LD=$lt_save_LD
  11774. GCC=$lt_save_GCC
  11775. with_gnu_ldcxx=$with_gnu_ld
  11776. with_gnu_ld=$lt_save_with_gnu_ld
  11777. lt_cv_path_LDCXX=$lt_cv_path_LD
  11778. lt_cv_path_LD=$lt_save_path_LD
  11779. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11780. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11781. else
  11782. tagname=""
  11783. fi
  11784. ;;
  11785. F77)
  11786. if test -n "$F77" && test "X$F77" != "Xno"; then
  11787. ac_ext=f
  11788. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11789. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11790. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11791. archive_cmds_need_lc_F77=no
  11792. allow_undefined_flag_F77=
  11793. always_export_symbols_F77=no
  11794. archive_expsym_cmds_F77=
  11795. export_dynamic_flag_spec_F77=
  11796. hardcode_direct_F77=no
  11797. hardcode_libdir_flag_spec_F77=
  11798. hardcode_libdir_flag_spec_ld_F77=
  11799. hardcode_libdir_separator_F77=
  11800. hardcode_minus_L_F77=no
  11801. hardcode_automatic_F77=no
  11802. module_cmds_F77=
  11803. module_expsym_cmds_F77=
  11804. link_all_deplibs_F77=unknown
  11805. old_archive_cmds_F77=$old_archive_cmds
  11806. no_undefined_flag_F77=
  11807. whole_archive_flag_spec_F77=
  11808. enable_shared_with_static_runtimes_F77=no
  11809. # Source file extension for f77 test sources.
  11810. ac_ext=f
  11811. # Object file extension for compiled f77 test sources.
  11812. objext=o
  11813. objext_F77=$objext
  11814. # Code to be used in simple compile tests
  11815. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11816. # Code to be used in simple link tests
  11817. lt_simple_link_test_code=" program t\n end\n"
  11818. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11819. # If no C compiler was specified, use CC.
  11820. LTCC=${LTCC-"$CC"}
  11821. # If no C compiler flags were specified, use CFLAGS.
  11822. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11823. # Allow CC to be a program name with arguments.
  11824. compiler=$CC
  11825. # save warnings/boilerplate of simple test code
  11826. ac_outfile=conftest.$ac_objext
  11827. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11828. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11829. _lt_compiler_boilerplate=`cat conftest.err`
  11830. $rm conftest*
  11831. ac_outfile=conftest.$ac_objext
  11832. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11833. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11834. _lt_linker_boilerplate=`cat conftest.err`
  11835. $rm conftest*
  11836. # Allow CC to be a program name with arguments.
  11837. lt_save_CC="$CC"
  11838. CC=${F77-"f77"}
  11839. compiler=$CC
  11840. compiler_F77=$CC
  11841. for cc_temp in $compiler""; do
  11842. case $cc_temp in
  11843. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11844. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11845. \-*) ;;
  11846. *) break;;
  11847. esac
  11848. done
  11849. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11850. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11851. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11852. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11853. echo "${ECHO_T}$can_build_shared" >&6
  11854. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11855. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11856. test "$can_build_shared" = "no" && enable_shared=no
  11857. # On AIX, shared libraries and static libraries use the same namespace, and
  11858. # are all built from PIC.
  11859. case $host_os in
  11860. aix3*)
  11861. test "$enable_shared" = yes && enable_static=no
  11862. if test -n "$RANLIB"; then
  11863. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11864. postinstall_cmds='$RANLIB $lib'
  11865. fi
  11866. ;;
  11867. aix4* | aix5*)
  11868. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11869. test "$enable_shared" = yes && enable_static=no
  11870. fi
  11871. ;;
  11872. esac
  11873. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11874. echo "${ECHO_T}$enable_shared" >&6
  11875. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11876. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11877. # Make sure either enable_shared or enable_static is yes.
  11878. test "$enable_shared" = yes || enable_static=yes
  11879. echo "$as_me:$LINENO: result: $enable_static" >&5
  11880. echo "${ECHO_T}$enable_static" >&6
  11881. GCC_F77="$G77"
  11882. LD_F77="$LD"
  11883. lt_prog_compiler_wl_F77=
  11884. lt_prog_compiler_pic_F77=
  11885. lt_prog_compiler_static_F77=
  11886. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11887. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11888. if test "$GCC" = yes; then
  11889. lt_prog_compiler_wl_F77='-Wl,'
  11890. lt_prog_compiler_static_F77='-static'
  11891. case $host_os in
  11892. aix*)
  11893. # All AIX code is PIC.
  11894. if test "$host_cpu" = ia64; then
  11895. # AIX 5 now supports IA64 processor
  11896. lt_prog_compiler_static_F77='-Bstatic'
  11897. fi
  11898. ;;
  11899. amigaos*)
  11900. # FIXME: we need at least 68020 code to build shared libraries, but
  11901. # adding the `-m68020' flag to GCC prevents building anything better,
  11902. # like `-m68040'.
  11903. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11904. ;;
  11905. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11906. # PIC is the default for these OSes.
  11907. ;;
  11908. mingw* | pw32* | os2*)
  11909. # This hack is so that the source file can tell whether it is being
  11910. # built for inclusion in a dll (and should export symbols for example).
  11911. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11912. ;;
  11913. darwin* | rhapsody*)
  11914. # PIC is the default on this platform
  11915. # Common symbols not allowed in MH_DYLIB files
  11916. lt_prog_compiler_pic_F77='-fno-common'
  11917. ;;
  11918. interix3*)
  11919. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11920. # Instead, we relocate shared libraries at runtime.
  11921. ;;
  11922. msdosdjgpp*)
  11923. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11924. # on systems that don't support them.
  11925. lt_prog_compiler_can_build_shared_F77=no
  11926. enable_shared=no
  11927. ;;
  11928. sysv4*MP*)
  11929. if test -d /usr/nec; then
  11930. lt_prog_compiler_pic_F77=-Kconform_pic
  11931. fi
  11932. ;;
  11933. hpux*)
  11934. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11935. # not for PA HP-UX.
  11936. case $host_cpu in
  11937. hppa*64*|ia64*)
  11938. # +Z the default
  11939. ;;
  11940. *)
  11941. lt_prog_compiler_pic_F77='-fPIC'
  11942. ;;
  11943. esac
  11944. ;;
  11945. *)
  11946. lt_prog_compiler_pic_F77='-fPIC'
  11947. ;;
  11948. esac
  11949. else
  11950. # PORTME Check for flag to pass linker flags through the system compiler.
  11951. case $host_os in
  11952. aix*)
  11953. lt_prog_compiler_wl_F77='-Wl,'
  11954. if test "$host_cpu" = ia64; then
  11955. # AIX 5 now supports IA64 processor
  11956. lt_prog_compiler_static_F77='-Bstatic'
  11957. else
  11958. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11959. fi
  11960. ;;
  11961. darwin*)
  11962. # PIC is the default on this platform
  11963. # Common symbols not allowed in MH_DYLIB files
  11964. case $cc_basename in
  11965. xlc*)
  11966. lt_prog_compiler_pic_F77='-qnocommon'
  11967. lt_prog_compiler_wl_F77='-Wl,'
  11968. ;;
  11969. esac
  11970. ;;
  11971. mingw* | pw32* | os2*)
  11972. # This hack is so that the source file can tell whether it is being
  11973. # built for inclusion in a dll (and should export symbols for example).
  11974. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11975. ;;
  11976. hpux9* | hpux10* | hpux11*)
  11977. lt_prog_compiler_wl_F77='-Wl,'
  11978. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11979. # not for PA HP-UX.
  11980. case $host_cpu in
  11981. hppa*64*|ia64*)
  11982. # +Z the default
  11983. ;;
  11984. *)
  11985. lt_prog_compiler_pic_F77='+Z'
  11986. ;;
  11987. esac
  11988. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11989. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11990. ;;
  11991. irix5* | irix6* | nonstopux*)
  11992. lt_prog_compiler_wl_F77='-Wl,'
  11993. # PIC (with -KPIC) is the default.
  11994. lt_prog_compiler_static_F77='-non_shared'
  11995. ;;
  11996. newsos6)
  11997. lt_prog_compiler_pic_F77='-KPIC'
  11998. lt_prog_compiler_static_F77='-Bstatic'
  11999. ;;
  12000. linux*)
  12001. case $cc_basename in
  12002. icc* | ecc*)
  12003. lt_prog_compiler_wl_F77='-Wl,'
  12004. lt_prog_compiler_pic_F77='-KPIC'
  12005. lt_prog_compiler_static_F77='-static'
  12006. ;;
  12007. pgcc* | pgf77* | pgf90* | pgf95*)
  12008. # Portland Group compilers (*not* the Pentium gcc compiler,
  12009. # which looks to be a dead project)
  12010. lt_prog_compiler_wl_F77='-Wl,'
  12011. lt_prog_compiler_pic_F77='-fpic'
  12012. lt_prog_compiler_static_F77='-Bstatic'
  12013. ;;
  12014. ccc*)
  12015. lt_prog_compiler_wl_F77='-Wl,'
  12016. # All Alpha code is PIC.
  12017. lt_prog_compiler_static_F77='-non_shared'
  12018. ;;
  12019. esac
  12020. ;;
  12021. osf3* | osf4* | osf5*)
  12022. lt_prog_compiler_wl_F77='-Wl,'
  12023. # All OSF/1 code is PIC.
  12024. lt_prog_compiler_static_F77='-non_shared'
  12025. ;;
  12026. solaris*)
  12027. lt_prog_compiler_pic_F77='-KPIC'
  12028. lt_prog_compiler_static_F77='-Bstatic'
  12029. case $cc_basename in
  12030. f77* | f90* | f95*)
  12031. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12032. *)
  12033. lt_prog_compiler_wl_F77='-Wl,';;
  12034. esac
  12035. ;;
  12036. sunos4*)
  12037. lt_prog_compiler_wl_F77='-Qoption ld '
  12038. lt_prog_compiler_pic_F77='-PIC'
  12039. lt_prog_compiler_static_F77='-Bstatic'
  12040. ;;
  12041. sysv4 | sysv4.2uw2* | sysv4.3*)
  12042. lt_prog_compiler_wl_F77='-Wl,'
  12043. lt_prog_compiler_pic_F77='-KPIC'
  12044. lt_prog_compiler_static_F77='-Bstatic'
  12045. ;;
  12046. sysv4*MP*)
  12047. if test -d /usr/nec ;then
  12048. lt_prog_compiler_pic_F77='-Kconform_pic'
  12049. lt_prog_compiler_static_F77='-Bstatic'
  12050. fi
  12051. ;;
  12052. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12053. lt_prog_compiler_wl_F77='-Wl,'
  12054. lt_prog_compiler_pic_F77='-KPIC'
  12055. lt_prog_compiler_static_F77='-Bstatic'
  12056. ;;
  12057. unicos*)
  12058. lt_prog_compiler_wl_F77='-Wl,'
  12059. lt_prog_compiler_can_build_shared_F77=no
  12060. ;;
  12061. uts4*)
  12062. lt_prog_compiler_pic_F77='-pic'
  12063. lt_prog_compiler_static_F77='-Bstatic'
  12064. ;;
  12065. *)
  12066. lt_prog_compiler_can_build_shared_F77=no
  12067. ;;
  12068. esac
  12069. fi
  12070. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12071. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  12072. #
  12073. # Check to make sure the PIC flag actually works.
  12074. #
  12075. if test -n "$lt_prog_compiler_pic_F77"; then
  12076. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12077. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  12078. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12079. echo $ECHO_N "(cached) $ECHO_C" >&6
  12080. else
  12081. lt_prog_compiler_pic_works_F77=no
  12082. ac_outfile=conftest.$ac_objext
  12083. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12084. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12085. # Insert the option either (1) after the last *FLAGS variable, or
  12086. # (2) before a word containing "conftest.", or (3) at the end.
  12087. # Note that $ac_compile itself does not contain backslashes and begins
  12088. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12089. # The option is referenced via a variable to avoid confusing sed.
  12090. lt_compile=`echo "$ac_compile" | $SED \
  12091. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12092. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12093. -e 's:$: $lt_compiler_flag:'`
  12094. (eval echo "\"\$as_me:13439: $lt_compile\"" >&5)
  12095. (eval "$lt_compile" 2>conftest.err)
  12096. ac_status=$?
  12097. cat conftest.err >&5
  12098. echo "$as_me:13443: \$? = $ac_status" >&5
  12099. if (exit $ac_status) && test -s "$ac_outfile"; then
  12100. # The compiler can only warn and ignore the option if not recognized
  12101. # So say no if there are warnings other than the usual output.
  12102. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12103. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12104. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12105. lt_prog_compiler_pic_works_F77=yes
  12106. fi
  12107. fi
  12108. $rm conftest*
  12109. fi
  12110. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12111. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12112. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12113. case $lt_prog_compiler_pic_F77 in
  12114. "" | " "*) ;;
  12115. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12116. esac
  12117. else
  12118. lt_prog_compiler_pic_F77=
  12119. lt_prog_compiler_can_build_shared_F77=no
  12120. fi
  12121. fi
  12122. case $host_os in
  12123. # For platforms which do not support PIC, -DPIC is meaningless:
  12124. *djgpp*)
  12125. lt_prog_compiler_pic_F77=
  12126. ;;
  12127. *)
  12128. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12129. ;;
  12130. esac
  12131. #
  12132. # Check to make sure the static flag actually works.
  12133. #
  12134. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12135. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12136. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12137. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12138. echo $ECHO_N "(cached) $ECHO_C" >&6
  12139. else
  12140. lt_prog_compiler_static_works_F77=no
  12141. save_LDFLAGS="$LDFLAGS"
  12142. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12143. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12144. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12145. # The linker can only warn and ignore the option if not recognized
  12146. # So say no if there are warnings
  12147. if test -s conftest.err; then
  12148. # Append any errors to the config.log.
  12149. cat conftest.err 1>&5
  12150. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12151. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12152. if diff conftest.exp conftest.er2 >/dev/null; then
  12153. lt_prog_compiler_static_works_F77=yes
  12154. fi
  12155. else
  12156. lt_prog_compiler_static_works_F77=yes
  12157. fi
  12158. fi
  12159. $rm conftest*
  12160. LDFLAGS="$save_LDFLAGS"
  12161. fi
  12162. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12163. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12164. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12165. :
  12166. else
  12167. lt_prog_compiler_static_F77=
  12168. fi
  12169. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12170. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12171. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12172. echo $ECHO_N "(cached) $ECHO_C" >&6
  12173. else
  12174. lt_cv_prog_compiler_c_o_F77=no
  12175. $rm -r conftest 2>/dev/null
  12176. mkdir conftest
  12177. cd conftest
  12178. mkdir out
  12179. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12180. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12181. # Insert the option either (1) after the last *FLAGS variable, or
  12182. # (2) before a word containing "conftest.", or (3) at the end.
  12183. # Note that $ac_compile itself does not contain backslashes and begins
  12184. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12185. lt_compile=`echo "$ac_compile" | $SED \
  12186. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12187. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12188. -e 's:$: $lt_compiler_flag:'`
  12189. (eval echo "\"\$as_me:13543: $lt_compile\"" >&5)
  12190. (eval "$lt_compile" 2>out/conftest.err)
  12191. ac_status=$?
  12192. cat out/conftest.err >&5
  12193. echo "$as_me:13547: \$? = $ac_status" >&5
  12194. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12195. then
  12196. # The compiler can only warn and ignore the option if not recognized
  12197. # So say no if there are warnings
  12198. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12199. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12200. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12201. lt_cv_prog_compiler_c_o_F77=yes
  12202. fi
  12203. fi
  12204. chmod u+w . 2>&5
  12205. $rm conftest*
  12206. # SGI C++ compiler will create directory out/ii_files/ for
  12207. # template instantiation
  12208. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12209. $rm out/* && rmdir out
  12210. cd ..
  12211. rmdir conftest
  12212. $rm conftest*
  12213. fi
  12214. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12215. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12216. hard_links="nottested"
  12217. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12218. # do not overwrite the value of need_locks provided by the user
  12219. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12220. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12221. hard_links=yes
  12222. $rm conftest*
  12223. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12224. touch conftest.a
  12225. ln conftest.a conftest.b 2>&5 || hard_links=no
  12226. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12227. echo "$as_me:$LINENO: result: $hard_links" >&5
  12228. echo "${ECHO_T}$hard_links" >&6
  12229. if test "$hard_links" = no; then
  12230. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12231. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12232. need_locks=warn
  12233. fi
  12234. else
  12235. need_locks=no
  12236. fi
  12237. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12238. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12239. runpath_var=
  12240. allow_undefined_flag_F77=
  12241. enable_shared_with_static_runtimes_F77=no
  12242. archive_cmds_F77=
  12243. archive_expsym_cmds_F77=
  12244. old_archive_From_new_cmds_F77=
  12245. old_archive_from_expsyms_cmds_F77=
  12246. export_dynamic_flag_spec_F77=
  12247. whole_archive_flag_spec_F77=
  12248. thread_safe_flag_spec_F77=
  12249. hardcode_libdir_flag_spec_F77=
  12250. hardcode_libdir_flag_spec_ld_F77=
  12251. hardcode_libdir_separator_F77=
  12252. hardcode_direct_F77=no
  12253. hardcode_minus_L_F77=no
  12254. hardcode_shlibpath_var_F77=unsupported
  12255. link_all_deplibs_F77=unknown
  12256. hardcode_automatic_F77=no
  12257. module_cmds_F77=
  12258. module_expsym_cmds_F77=
  12259. always_export_symbols_F77=no
  12260. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12261. # include_expsyms should be a list of space-separated symbols to be *always*
  12262. # included in the symbol list
  12263. include_expsyms_F77=
  12264. # exclude_expsyms can be an extended regexp of symbols to exclude
  12265. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12266. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12267. # as well as any symbol that contains `d'.
  12268. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12269. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12270. # platforms (ab)use it in PIC code, but their linkers get confused if
  12271. # the symbol is explicitly referenced. Since portable code cannot
  12272. # rely on this symbol name, it's probably fine to never include it in
  12273. # preloaded symbol tables.
  12274. extract_expsyms_cmds=
  12275. # Just being paranoid about ensuring that cc_basename is set.
  12276. for cc_temp in $compiler""; do
  12277. case $cc_temp in
  12278. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12279. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12280. \-*) ;;
  12281. *) break;;
  12282. esac
  12283. done
  12284. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12285. case $host_os in
  12286. cygwin* | mingw* | pw32*)
  12287. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12288. # When not using gcc, we currently assume that we are using
  12289. # Microsoft Visual C++.
  12290. if test "$GCC" != yes; then
  12291. with_gnu_ld=no
  12292. fi
  12293. ;;
  12294. interix*)
  12295. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12296. with_gnu_ld=yes
  12297. ;;
  12298. openbsd*)
  12299. with_gnu_ld=no
  12300. ;;
  12301. esac
  12302. ld_shlibs_F77=yes
  12303. if test "$with_gnu_ld" = yes; then
  12304. # If archive_cmds runs LD, not CC, wlarc should be empty
  12305. wlarc='${wl}'
  12306. # Set some defaults for GNU ld with shared library support. These
  12307. # are reset later if shared libraries are not supported. Putting them
  12308. # here allows them to be overridden if necessary.
  12309. runpath_var=LD_RUN_PATH
  12310. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12311. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12312. # ancient GNU ld didn't support --whole-archive et. al.
  12313. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12314. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12315. else
  12316. whole_archive_flag_spec_F77=
  12317. fi
  12318. supports_anon_versioning=no
  12319. case `$LD -v 2>/dev/null` in
  12320. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12321. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12322. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12323. *\ 2.11.*) ;; # other 2.11 versions
  12324. *) supports_anon_versioning=yes ;;
  12325. esac
  12326. # See if GNU ld supports shared libraries.
  12327. case $host_os in
  12328. aix3* | aix4* | aix5*)
  12329. # On AIX/PPC, the GNU linker is very broken
  12330. if test "$host_cpu" != ia64; then
  12331. ld_shlibs_F77=no
  12332. cat <<EOF 1>&2
  12333. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12334. *** to be unable to reliably create shared libraries on AIX.
  12335. *** Therefore, libtool is disabling shared libraries support. If you
  12336. *** really care for shared libraries, you may want to modify your PATH
  12337. *** so that a non-GNU linker is found, and then restart.
  12338. EOF
  12339. fi
  12340. ;;
  12341. amigaos*)
  12342. 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)'
  12343. hardcode_libdir_flag_spec_F77='-L$libdir'
  12344. hardcode_minus_L_F77=yes
  12345. # Samuel A. Falvo II <[email protected]> reports
  12346. # that the semantics of dynamic libraries on AmigaOS, at least up
  12347. # to version 4, is to share data among multiple programs linked
  12348. # with the same dynamic library. Since this doesn't match the
  12349. # behavior of shared libraries on other platforms, we can't use
  12350. # them.
  12351. ld_shlibs_F77=no
  12352. ;;
  12353. beos*)
  12354. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12355. allow_undefined_flag_F77=unsupported
  12356. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12357. # support --undefined. This deserves some investigation. FIXME
  12358. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12359. else
  12360. ld_shlibs_F77=no
  12361. fi
  12362. ;;
  12363. cygwin* | mingw* | pw32*)
  12364. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12365. # as there is no search path for DLLs.
  12366. hardcode_libdir_flag_spec_F77='-L$libdir'
  12367. allow_undefined_flag_F77=unsupported
  12368. always_export_symbols_F77=no
  12369. enable_shared_with_static_runtimes_F77=yes
  12370. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12371. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12372. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12373. # If the export-symbols file already is a .def file (1st line
  12374. # is EXPORTS), use it as is; otherwise, prepend...
  12375. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12376. cp $export_symbols $output_objdir/$soname.def;
  12377. else
  12378. echo EXPORTS > $output_objdir/$soname.def;
  12379. cat $export_symbols >> $output_objdir/$soname.def;
  12380. fi~
  12381. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12382. else
  12383. ld_shlibs_F77=no
  12384. fi
  12385. ;;
  12386. interix3*)
  12387. hardcode_direct_F77=no
  12388. hardcode_shlibpath_var_F77=no
  12389. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12390. export_dynamic_flag_spec_F77='${wl}-E'
  12391. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12392. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12393. # default) and relocated if they conflict, which is a slow very memory
  12394. # consuming and fragmenting process. To avoid this, we pick a random,
  12395. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12396. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12397. 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'
  12398. 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'
  12399. ;;
  12400. linux*)
  12401. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12402. tmp_addflag=
  12403. case $cc_basename,$host_cpu in
  12404. pgcc*) # Portland Group C compiler
  12405. 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'
  12406. tmp_addflag=' $pic_flag'
  12407. ;;
  12408. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12409. 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'
  12410. tmp_addflag=' $pic_flag -Mnomain' ;;
  12411. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12412. tmp_addflag=' -i_dynamic' ;;
  12413. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12414. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12415. ifc* | ifort*) # Intel Fortran compiler
  12416. tmp_addflag=' -nofor_main' ;;
  12417. esac
  12418. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12419. if test $supports_anon_versioning = yes; then
  12420. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12421. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12422. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12423. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12424. fi
  12425. else
  12426. ld_shlibs_F77=no
  12427. fi
  12428. ;;
  12429. netbsd*)
  12430. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12431. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12432. wlarc=
  12433. else
  12434. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12435. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12436. fi
  12437. ;;
  12438. solaris*)
  12439. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12440. ld_shlibs_F77=no
  12441. cat <<EOF 1>&2
  12442. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12443. *** create shared libraries on Solaris systems. Therefore, libtool
  12444. *** is disabling shared libraries support. We urge you to upgrade GNU
  12445. *** binutils to release 2.9.1 or newer. Another option is to modify
  12446. *** your PATH or compiler configuration so that the native linker is
  12447. *** used, and then restart.
  12448. EOF
  12449. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12450. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12451. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12452. else
  12453. ld_shlibs_F77=no
  12454. fi
  12455. ;;
  12456. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12457. case `$LD -v 2>&1` in
  12458. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12459. ld_shlibs_F77=no
  12460. cat <<_LT_EOF 1>&2
  12461. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12462. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12463. *** is disabling shared libraries support. We urge you to upgrade GNU
  12464. *** binutils to release 2.16.91.0.3 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. _LT_EOF
  12468. ;;
  12469. *)
  12470. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12471. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12472. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12473. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12474. else
  12475. ld_shlibs_F77=no
  12476. fi
  12477. ;;
  12478. esac
  12479. ;;
  12480. sunos4*)
  12481. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12482. wlarc=
  12483. hardcode_direct_F77=yes
  12484. hardcode_shlibpath_var_F77=no
  12485. ;;
  12486. *)
  12487. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12488. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12489. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12490. else
  12491. ld_shlibs_F77=no
  12492. fi
  12493. ;;
  12494. esac
  12495. if test "$ld_shlibs_F77" = no; then
  12496. runpath_var=
  12497. hardcode_libdir_flag_spec_F77=
  12498. export_dynamic_flag_spec_F77=
  12499. whole_archive_flag_spec_F77=
  12500. fi
  12501. else
  12502. # PORTME fill in a description of your system's linker (not GNU ld)
  12503. case $host_os in
  12504. aix3*)
  12505. allow_undefined_flag_F77=unsupported
  12506. always_export_symbols_F77=yes
  12507. 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'
  12508. # Note: this linker hardcodes the directories in LIBPATH if there
  12509. # are no directories specified by -L.
  12510. hardcode_minus_L_F77=yes
  12511. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12512. # Neither direct hardcoding nor static linking is supported with a
  12513. # broken collect2.
  12514. hardcode_direct_F77=unsupported
  12515. fi
  12516. ;;
  12517. aix4* | aix5*)
  12518. if test "$host_cpu" = ia64; then
  12519. # On IA64, the linker does run time linking by default, so we don't
  12520. # have to do anything special.
  12521. aix_use_runtimelinking=no
  12522. exp_sym_flag='-Bexport'
  12523. no_entry_flag=""
  12524. else
  12525. # If we're using GNU nm, then we don't want the "-C" option.
  12526. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12527. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12528. 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'
  12529. else
  12530. 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'
  12531. fi
  12532. aix_use_runtimelinking=no
  12533. # Test if we are trying to use run time linking or normal
  12534. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12535. # need to do runtime linking.
  12536. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12537. for ld_flag in $LDFLAGS; do
  12538. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12539. aix_use_runtimelinking=yes
  12540. break
  12541. fi
  12542. done
  12543. ;;
  12544. esac
  12545. exp_sym_flag='-bexport'
  12546. no_entry_flag='-bnoentry'
  12547. fi
  12548. # When large executables or shared objects are built, AIX ld can
  12549. # have problems creating the table of contents. If linking a library
  12550. # or program results in "error TOC overflow" add -mminimal-toc to
  12551. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12552. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12553. archive_cmds_F77=''
  12554. hardcode_direct_F77=yes
  12555. hardcode_libdir_separator_F77=':'
  12556. link_all_deplibs_F77=yes
  12557. if test "$GCC" = yes; then
  12558. case $host_os in aix4.[012]|aix4.[012].*)
  12559. # We only want to do this on AIX 4.2 and lower, the check
  12560. # below for broken collect2 doesn't work under 4.3+
  12561. collect2name=`${CC} -print-prog-name=collect2`
  12562. if test -f "$collect2name" && \
  12563. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12564. then
  12565. # We have reworked collect2
  12566. hardcode_direct_F77=yes
  12567. else
  12568. # We have old collect2
  12569. hardcode_direct_F77=unsupported
  12570. # It fails to find uninstalled libraries when the uninstalled
  12571. # path is not listed in the libpath. Setting hardcode_minus_L
  12572. # to unsupported forces relinking
  12573. hardcode_minus_L_F77=yes
  12574. hardcode_libdir_flag_spec_F77='-L$libdir'
  12575. hardcode_libdir_separator_F77=
  12576. fi
  12577. ;;
  12578. esac
  12579. shared_flag='-shared'
  12580. if test "$aix_use_runtimelinking" = yes; then
  12581. shared_flag="$shared_flag "'${wl}-G'
  12582. fi
  12583. else
  12584. # not using gcc
  12585. if test "$host_cpu" = ia64; then
  12586. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12587. # chokes on -Wl,-G. The following line is correct:
  12588. shared_flag='-G'
  12589. else
  12590. if test "$aix_use_runtimelinking" = yes; then
  12591. shared_flag='${wl}-G'
  12592. else
  12593. shared_flag='${wl}-bM:SRE'
  12594. fi
  12595. fi
  12596. fi
  12597. # It seems that -bexpall does not export symbols beginning with
  12598. # underscore (_), so it is better to generate a list of symbols to export.
  12599. always_export_symbols_F77=yes
  12600. if test "$aix_use_runtimelinking" = yes; then
  12601. # Warning - without using the other runtime loading flags (-brtl),
  12602. # -berok will link without error, but may produce a broken library.
  12603. allow_undefined_flag_F77='-berok'
  12604. # Determine the default libpath from the value encoded in an empty executable.
  12605. cat >conftest.$ac_ext <<_ACEOF
  12606. program main
  12607. end
  12608. _ACEOF
  12609. rm -f conftest.$ac_objext conftest$ac_exeext
  12610. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12611. (eval $ac_link) 2>conftest.er1
  12612. ac_status=$?
  12613. grep -v '^ *+' conftest.er1 >conftest.err
  12614. rm -f conftest.er1
  12615. cat conftest.err >&5
  12616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12617. (exit $ac_status); } &&
  12618. { ac_try='test -z "$ac_f77_werror_flag"
  12619. || test ! -s conftest.err'
  12620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12621. (eval $ac_try) 2>&5
  12622. ac_status=$?
  12623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12624. (exit $ac_status); }; } &&
  12625. { ac_try='test -s conftest$ac_exeext'
  12626. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12627. (eval $ac_try) 2>&5
  12628. ac_status=$?
  12629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12630. (exit $ac_status); }; }; then
  12631. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12632. }'`
  12633. # Check for a 64-bit object if we didn't find anything.
  12634. 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; }
  12635. }'`; fi
  12636. else
  12637. echo "$as_me: failed program was:" >&5
  12638. sed 's/^/| /' conftest.$ac_ext >&5
  12639. fi
  12640. rm -f conftest.err conftest.$ac_objext \
  12641. conftest$ac_exeext conftest.$ac_ext
  12642. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12643. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12644. 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"
  12645. else
  12646. if test "$host_cpu" = ia64; then
  12647. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12648. allow_undefined_flag_F77="-z nodefs"
  12649. 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"
  12650. else
  12651. # Determine the default libpath from the value encoded in an empty executable.
  12652. cat >conftest.$ac_ext <<_ACEOF
  12653. program main
  12654. end
  12655. _ACEOF
  12656. rm -f conftest.$ac_objext conftest$ac_exeext
  12657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12658. (eval $ac_link) 2>conftest.er1
  12659. ac_status=$?
  12660. grep -v '^ *+' conftest.er1 >conftest.err
  12661. rm -f conftest.er1
  12662. cat conftest.err >&5
  12663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12664. (exit $ac_status); } &&
  12665. { ac_try='test -z "$ac_f77_werror_flag"
  12666. || test ! -s conftest.err'
  12667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12668. (eval $ac_try) 2>&5
  12669. ac_status=$?
  12670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12671. (exit $ac_status); }; } &&
  12672. { ac_try='test -s conftest$ac_exeext'
  12673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12674. (eval $ac_try) 2>&5
  12675. ac_status=$?
  12676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12677. (exit $ac_status); }; }; then
  12678. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12679. }'`
  12680. # Check for a 64-bit object if we didn't find anything.
  12681. 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; }
  12682. }'`; fi
  12683. else
  12684. echo "$as_me: failed program was:" >&5
  12685. sed 's/^/| /' conftest.$ac_ext >&5
  12686. fi
  12687. rm -f conftest.err conftest.$ac_objext \
  12688. conftest$ac_exeext conftest.$ac_ext
  12689. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12690. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12691. # Warning - without using the other run time loading flags,
  12692. # -berok will link without error, but may produce a broken library.
  12693. no_undefined_flag_F77=' ${wl}-bernotok'
  12694. allow_undefined_flag_F77=' ${wl}-berok'
  12695. # Exported symbols can be pulled into shared objects from archives
  12696. whole_archive_flag_spec_F77='$convenience'
  12697. archive_cmds_need_lc_F77=yes
  12698. # This is similar to how AIX traditionally builds its shared libraries.
  12699. 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'
  12700. fi
  12701. fi
  12702. ;;
  12703. amigaos*)
  12704. 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)'
  12705. hardcode_libdir_flag_spec_F77='-L$libdir'
  12706. hardcode_minus_L_F77=yes
  12707. # see comment about different semantics on the GNU ld section
  12708. ld_shlibs_F77=no
  12709. ;;
  12710. bsdi[45]*)
  12711. export_dynamic_flag_spec_F77=-rdynamic
  12712. ;;
  12713. cygwin* | mingw* | pw32*)
  12714. # When not using gcc, we currently assume that we are using
  12715. # Microsoft Visual C++.
  12716. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12717. # no search path for DLLs.
  12718. hardcode_libdir_flag_spec_F77=' '
  12719. allow_undefined_flag_F77=unsupported
  12720. # Tell ltmain to make .lib files, not .a files.
  12721. libext=lib
  12722. # Tell ltmain to make .dll files, not .so files.
  12723. shrext_cmds=".dll"
  12724. # FIXME: Setting linknames here is a bad hack.
  12725. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12726. # The linker will automatically build a .lib file if we build a DLL.
  12727. old_archive_From_new_cmds_F77='true'
  12728. # FIXME: Should let the user specify the lib program.
  12729. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12730. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12731. enable_shared_with_static_runtimes_F77=yes
  12732. ;;
  12733. darwin* | rhapsody*)
  12734. case $host_os in
  12735. rhapsody* | darwin1.[012])
  12736. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12737. ;;
  12738. *) # Darwin 1.3 on
  12739. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12740. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12741. else
  12742. case ${MACOSX_DEPLOYMENT_TARGET} in
  12743. 10.[012])
  12744. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12745. ;;
  12746. 10.*)
  12747. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12748. ;;
  12749. esac
  12750. fi
  12751. ;;
  12752. esac
  12753. archive_cmds_need_lc_F77=no
  12754. hardcode_direct_F77=no
  12755. hardcode_automatic_F77=yes
  12756. hardcode_shlibpath_var_F77=unsupported
  12757. whole_archive_flag_spec_F77=''
  12758. link_all_deplibs_F77=yes
  12759. if test "$GCC" = yes ; then
  12760. output_verbose_link_cmd='echo'
  12761. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12762. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12763. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12764. 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}'
  12765. 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}'
  12766. else
  12767. case $cc_basename in
  12768. xlc*)
  12769. output_verbose_link_cmd='echo'
  12770. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12771. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12772. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12773. 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}'
  12774. 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}'
  12775. ;;
  12776. *)
  12777. ld_shlibs_F77=no
  12778. ;;
  12779. esac
  12780. fi
  12781. ;;
  12782. dgux*)
  12783. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12784. hardcode_libdir_flag_spec_F77='-L$libdir'
  12785. hardcode_shlibpath_var_F77=no
  12786. ;;
  12787. freebsd1*)
  12788. ld_shlibs_F77=no
  12789. ;;
  12790. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12791. # support. Future versions do this automatically, but an explicit c++rt0.o
  12792. # does not break anything, and helps significantly (at the cost of a little
  12793. # extra space).
  12794. freebsd2.2*)
  12795. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12796. hardcode_libdir_flag_spec_F77='-R$libdir'
  12797. hardcode_direct_F77=yes
  12798. hardcode_shlibpath_var_F77=no
  12799. ;;
  12800. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12801. freebsd2*)
  12802. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12803. hardcode_direct_F77=yes
  12804. hardcode_minus_L_F77=yes
  12805. hardcode_shlibpath_var_F77=no
  12806. ;;
  12807. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12808. freebsd* | kfreebsd*-gnu | dragonfly*)
  12809. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12810. hardcode_libdir_flag_spec_F77='-R$libdir'
  12811. hardcode_direct_F77=yes
  12812. hardcode_shlibpath_var_F77=no
  12813. ;;
  12814. hpux9*)
  12815. if test "$GCC" = yes; then
  12816. 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'
  12817. else
  12818. 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'
  12819. fi
  12820. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12821. hardcode_libdir_separator_F77=:
  12822. hardcode_direct_F77=yes
  12823. # hardcode_minus_L: Not really in the search PATH,
  12824. # but as the default location of the library.
  12825. hardcode_minus_L_F77=yes
  12826. export_dynamic_flag_spec_F77='${wl}-E'
  12827. ;;
  12828. hpux10*)
  12829. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12830. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12831. else
  12832. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12833. fi
  12834. if test "$with_gnu_ld" = no; then
  12835. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12836. hardcode_libdir_separator_F77=:
  12837. hardcode_direct_F77=yes
  12838. export_dynamic_flag_spec_F77='${wl}-E'
  12839. # hardcode_minus_L: Not really in the search PATH,
  12840. # but as the default location of the library.
  12841. hardcode_minus_L_F77=yes
  12842. fi
  12843. ;;
  12844. hpux11*)
  12845. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12846. case $host_cpu in
  12847. hppa*64*)
  12848. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12849. ;;
  12850. ia64*)
  12851. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12852. ;;
  12853. *)
  12854. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12855. ;;
  12856. esac
  12857. else
  12858. case $host_cpu in
  12859. hppa*64*)
  12860. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12861. ;;
  12862. ia64*)
  12863. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12864. ;;
  12865. *)
  12866. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12867. ;;
  12868. esac
  12869. fi
  12870. if test "$with_gnu_ld" = no; then
  12871. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12872. hardcode_libdir_separator_F77=:
  12873. case $host_cpu in
  12874. hppa*64*|ia64*)
  12875. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12876. hardcode_direct_F77=no
  12877. hardcode_shlibpath_var_F77=no
  12878. ;;
  12879. *)
  12880. hardcode_direct_F77=yes
  12881. export_dynamic_flag_spec_F77='${wl}-E'
  12882. # hardcode_minus_L: Not really in the search PATH,
  12883. # but as the default location of the library.
  12884. hardcode_minus_L_F77=yes
  12885. ;;
  12886. esac
  12887. fi
  12888. ;;
  12889. irix5* | irix6* | nonstopux*)
  12890. if test "$GCC" = yes; then
  12891. 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'
  12892. else
  12893. 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'
  12894. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12895. fi
  12896. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12897. hardcode_libdir_separator_F77=:
  12898. link_all_deplibs_F77=yes
  12899. ;;
  12900. netbsd*)
  12901. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12902. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12903. else
  12904. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12905. fi
  12906. hardcode_libdir_flag_spec_F77='-R$libdir'
  12907. hardcode_direct_F77=yes
  12908. hardcode_shlibpath_var_F77=no
  12909. ;;
  12910. newsos6)
  12911. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12912. hardcode_direct_F77=yes
  12913. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12914. hardcode_libdir_separator_F77=:
  12915. hardcode_shlibpath_var_F77=no
  12916. ;;
  12917. openbsd*)
  12918. hardcode_direct_F77=yes
  12919. hardcode_shlibpath_var_F77=no
  12920. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12921. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12922. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12923. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12924. export_dynamic_flag_spec_F77='${wl}-E'
  12925. else
  12926. case $host_os in
  12927. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12928. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12929. hardcode_libdir_flag_spec_F77='-R$libdir'
  12930. ;;
  12931. *)
  12932. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12933. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12934. ;;
  12935. esac
  12936. fi
  12937. ;;
  12938. os2*)
  12939. hardcode_libdir_flag_spec_F77='-L$libdir'
  12940. hardcode_minus_L_F77=yes
  12941. allow_undefined_flag_F77=unsupported
  12942. 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'
  12943. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12944. ;;
  12945. osf3*)
  12946. if test "$GCC" = yes; then
  12947. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12948. 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'
  12949. else
  12950. allow_undefined_flag_F77=' -expect_unresolved \*'
  12951. 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'
  12952. fi
  12953. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12954. hardcode_libdir_separator_F77=:
  12955. ;;
  12956. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12957. if test "$GCC" = yes; then
  12958. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12959. 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'
  12960. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12961. else
  12962. allow_undefined_flag_F77=' -expect_unresolved \*'
  12963. 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'
  12964. 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~
  12965. $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'
  12966. # Both c and cxx compiler support -rpath directly
  12967. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12968. fi
  12969. hardcode_libdir_separator_F77=:
  12970. ;;
  12971. solaris*)
  12972. no_undefined_flag_F77=' -z text'
  12973. if test "$GCC" = yes; then
  12974. wlarc='${wl}'
  12975. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12976. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12977. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12978. else
  12979. wlarc=''
  12980. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12981. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12982. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12983. fi
  12984. hardcode_libdir_flag_spec_F77='-R$libdir'
  12985. hardcode_shlibpath_var_F77=no
  12986. case $host_os in
  12987. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12988. *)
  12989. # The compiler driver will combine linker options so we
  12990. # cannot just pass the convience library names through
  12991. # without $wl, iff we do not link with $LD.
  12992. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12993. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12994. case $wlarc in
  12995. '')
  12996. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12997. *)
  12998. 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' ;;
  12999. esac ;;
  13000. esac
  13001. link_all_deplibs_F77=yes
  13002. ;;
  13003. sunos4*)
  13004. if test "x$host_vendor" = xsequent; then
  13005. # Use $CC to link under sequent, because it throws in some extra .o
  13006. # files that make .init and .fini sections work.
  13007. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13008. else
  13009. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13010. fi
  13011. hardcode_libdir_flag_spec_F77='-L$libdir'
  13012. hardcode_direct_F77=yes
  13013. hardcode_minus_L_F77=yes
  13014. hardcode_shlibpath_var_F77=no
  13015. ;;
  13016. sysv4)
  13017. case $host_vendor in
  13018. sni)
  13019. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13020. hardcode_direct_F77=yes # is this really true???
  13021. ;;
  13022. siemens)
  13023. ## LD is ld it makes a PLAMLIB
  13024. ## CC just makes a GrossModule.
  13025. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13026. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13027. hardcode_direct_F77=no
  13028. ;;
  13029. motorola)
  13030. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13031. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13032. ;;
  13033. esac
  13034. runpath_var='LD_RUN_PATH'
  13035. hardcode_shlibpath_var_F77=no
  13036. ;;
  13037. sysv4.3*)
  13038. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13039. hardcode_shlibpath_var_F77=no
  13040. export_dynamic_flag_spec_F77='-Bexport'
  13041. ;;
  13042. sysv4*MP*)
  13043. if test -d /usr/nec; then
  13044. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13045. hardcode_shlibpath_var_F77=no
  13046. runpath_var=LD_RUN_PATH
  13047. hardcode_runpath_var=yes
  13048. ld_shlibs_F77=yes
  13049. fi
  13050. ;;
  13051. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  13052. no_undefined_flag_F77='${wl}-z,text'
  13053. archive_cmds_need_lc_F77=no
  13054. hardcode_shlibpath_var_F77=no
  13055. runpath_var='LD_RUN_PATH'
  13056. if test "$GCC" = yes; then
  13057. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13058. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13059. else
  13060. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13061. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13062. fi
  13063. ;;
  13064. sysv5* | sco3.2v5* | sco5v6*)
  13065. # Note: We can NOT use -z defs as we might desire, because we do not
  13066. # link with -lc, and that would cause any symbols used from libc to
  13067. # always be unresolved, which means just about no library would
  13068. # ever link correctly. If we're not using GNU ld we use -z text
  13069. # though, which does catch some bad symbols but isn't as heavy-handed
  13070. # as -z defs.
  13071. no_undefined_flag_F77='${wl}-z,text'
  13072. allow_undefined_flag_F77='${wl}-z,nodefs'
  13073. archive_cmds_need_lc_F77=no
  13074. hardcode_shlibpath_var_F77=no
  13075. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13076. hardcode_libdir_separator_F77=':'
  13077. link_all_deplibs_F77=yes
  13078. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13079. runpath_var='LD_RUN_PATH'
  13080. if test "$GCC" = yes; then
  13081. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13082. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13083. else
  13084. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13085. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13086. fi
  13087. ;;
  13088. uts4*)
  13089. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13090. hardcode_libdir_flag_spec_F77='-L$libdir'
  13091. hardcode_shlibpath_var_F77=no
  13092. ;;
  13093. *)
  13094. ld_shlibs_F77=no
  13095. ;;
  13096. esac
  13097. fi
  13098. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13099. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13100. test "$ld_shlibs_F77" = no && can_build_shared=no
  13101. #
  13102. # Do we need to explicitly link libc?
  13103. #
  13104. case "x$archive_cmds_need_lc_F77" in
  13105. x|xyes)
  13106. # Assume -lc should be added
  13107. archive_cmds_need_lc_F77=yes
  13108. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13109. case $archive_cmds_F77 in
  13110. *'~'*)
  13111. # FIXME: we may have to deal with multi-command sequences.
  13112. ;;
  13113. '$CC '*)
  13114. # Test whether the compiler implicitly links with -lc since on some
  13115. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13116. # to ld, don't add -lc before -lgcc.
  13117. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13118. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13119. $rm conftest*
  13120. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13122. (eval $ac_compile) 2>&5
  13123. ac_status=$?
  13124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13125. (exit $ac_status); } 2>conftest.err; then
  13126. soname=conftest
  13127. lib=conftest
  13128. libobjs=conftest.$ac_objext
  13129. deplibs=
  13130. wl=$lt_prog_compiler_wl_F77
  13131. pic_flag=$lt_prog_compiler_pic_F77
  13132. compiler_flags=-v
  13133. linker_flags=-v
  13134. verstring=
  13135. output_objdir=.
  13136. libname=conftest
  13137. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13138. allow_undefined_flag_F77=
  13139. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13140. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13141. ac_status=$?
  13142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13143. (exit $ac_status); }
  13144. then
  13145. archive_cmds_need_lc_F77=no
  13146. else
  13147. archive_cmds_need_lc_F77=yes
  13148. fi
  13149. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13150. else
  13151. cat conftest.err 1>&5
  13152. fi
  13153. $rm conftest*
  13154. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13155. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13156. ;;
  13157. esac
  13158. fi
  13159. ;;
  13160. esac
  13161. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13162. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13163. library_names_spec=
  13164. libname_spec='lib$name'
  13165. soname_spec=
  13166. shrext_cmds=".so"
  13167. postinstall_cmds=
  13168. postuninstall_cmds=
  13169. finish_cmds=
  13170. finish_eval=
  13171. shlibpath_var=
  13172. shlibpath_overrides_runpath=unknown
  13173. version_type=none
  13174. dynamic_linker="$host_os ld.so"
  13175. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13176. if test "$GCC" = yes; then
  13177. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13178. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13179. # if the path contains ";" then we assume it to be the separator
  13180. # otherwise default to the standard path separator (i.e. ":") - it is
  13181. # assumed that no part of a normal pathname contains ";" but that should
  13182. # okay in the real world where ";" in dirpaths is itself problematic.
  13183. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13184. else
  13185. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13186. fi
  13187. else
  13188. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13189. fi
  13190. need_lib_prefix=unknown
  13191. hardcode_into_libs=no
  13192. # when you set need_version to no, make sure it does not cause -set_version
  13193. # flags to be left without arguments
  13194. need_version=unknown
  13195. case $host_os in
  13196. aix3*)
  13197. version_type=linux
  13198. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13199. shlibpath_var=LIBPATH
  13200. # AIX 3 has no versioning support, so we append a major version to the name.
  13201. soname_spec='${libname}${release}${shared_ext}$major'
  13202. ;;
  13203. aix4* | aix5*)
  13204. version_type=linux
  13205. need_lib_prefix=no
  13206. need_version=no
  13207. hardcode_into_libs=yes
  13208. if test "$host_cpu" = ia64; then
  13209. # AIX 5 supports IA64
  13210. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13211. shlibpath_var=LD_LIBRARY_PATH
  13212. else
  13213. # With GCC up to 2.95.x, collect2 would create an import file
  13214. # for dependence libraries. The import file would start with
  13215. # the line `#! .'. This would cause the generated library to
  13216. # depend on `.', always an invalid library. This was fixed in
  13217. # development snapshots of GCC prior to 3.0.
  13218. case $host_os in
  13219. aix4 | aix4.[01] | aix4.[01].*)
  13220. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13221. echo ' yes '
  13222. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13223. :
  13224. else
  13225. can_build_shared=no
  13226. fi
  13227. ;;
  13228. esac
  13229. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13230. # soname into executable. Probably we can add versioning support to
  13231. # collect2, so additional links can be useful in future.
  13232. if test "$aix_use_runtimelinking" = yes; then
  13233. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13234. # instead of lib<name>.a to let people know that these are not
  13235. # typical AIX shared libraries.
  13236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13237. else
  13238. # We preserve .a as extension for shared libraries through AIX4.2
  13239. # and later when we are not doing run time linking.
  13240. library_names_spec='${libname}${release}.a $libname.a'
  13241. soname_spec='${libname}${release}${shared_ext}$major'
  13242. fi
  13243. shlibpath_var=LIBPATH
  13244. fi
  13245. ;;
  13246. amigaos*)
  13247. library_names_spec='$libname.ixlibrary $libname.a'
  13248. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13249. 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'
  13250. ;;
  13251. beos*)
  13252. library_names_spec='${libname}${shared_ext}'
  13253. dynamic_linker="$host_os ld.so"
  13254. shlibpath_var=LIBRARY_PATH
  13255. ;;
  13256. bsdi[45]*)
  13257. version_type=linux
  13258. need_version=no
  13259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13260. soname_spec='${libname}${release}${shared_ext}$major'
  13261. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13262. shlibpath_var=LD_LIBRARY_PATH
  13263. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13264. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13265. # the default ld.so.conf also contains /usr/contrib/lib and
  13266. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13267. # libtool to hard-code these into programs
  13268. ;;
  13269. cygwin* | mingw* | pw32*)
  13270. version_type=windows
  13271. shrext_cmds=".dll"
  13272. need_version=no
  13273. need_lib_prefix=no
  13274. case $GCC,$host_os in
  13275. yes,cygwin* | yes,mingw* | yes,pw32*)
  13276. library_names_spec='$libname.dll.a'
  13277. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13278. postinstall_cmds='base_file=`basename \${file}`~
  13279. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13280. dldir=$destdir/`dirname \$dlpath`~
  13281. test -d \$dldir || mkdir -p \$dldir~
  13282. $install_prog $dir/$dlname \$dldir/$dlname~
  13283. chmod a+x \$dldir/$dlname'
  13284. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13285. dlpath=$dir/\$dldll~
  13286. $rm \$dlpath'
  13287. shlibpath_overrides_runpath=yes
  13288. case $host_os in
  13289. cygwin*)
  13290. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13291. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13292. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13293. ;;
  13294. mingw*)
  13295. # MinGW DLLs use traditional 'lib' prefix
  13296. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13297. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13298. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13299. # It is most probably a Windows format PATH printed by
  13300. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13301. # path with ; separators, and with drive letters. We can handle the
  13302. # drive letters (cygwin fileutils understands them), so leave them,
  13303. # especially as we might pass files found there to a mingw objdump,
  13304. # which wouldn't understand a cygwinified path. Ahh.
  13305. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13306. else
  13307. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13308. fi
  13309. ;;
  13310. pw32*)
  13311. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13312. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13313. ;;
  13314. esac
  13315. ;;
  13316. *)
  13317. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13318. ;;
  13319. esac
  13320. dynamic_linker='Win32 ld.exe'
  13321. # FIXME: first we should search . and the directory the executable is in
  13322. shlibpath_var=PATH
  13323. ;;
  13324. darwin* | rhapsody*)
  13325. dynamic_linker="$host_os dyld"
  13326. version_type=darwin
  13327. need_lib_prefix=no
  13328. need_version=no
  13329. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13330. soname_spec='${libname}${release}${major}$shared_ext'
  13331. shlibpath_overrides_runpath=yes
  13332. shlibpath_var=DYLD_LIBRARY_PATH
  13333. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13334. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13335. if test "$GCC" = yes; then
  13336. 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"`
  13337. else
  13338. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13339. fi
  13340. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13341. ;;
  13342. dgux*)
  13343. version_type=linux
  13344. need_lib_prefix=no
  13345. need_version=no
  13346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13347. soname_spec='${libname}${release}${shared_ext}$major'
  13348. shlibpath_var=LD_LIBRARY_PATH
  13349. ;;
  13350. freebsd1*)
  13351. dynamic_linker=no
  13352. ;;
  13353. kfreebsd*-gnu)
  13354. version_type=linux
  13355. need_lib_prefix=no
  13356. need_version=no
  13357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13358. soname_spec='${libname}${release}${shared_ext}$major'
  13359. shlibpath_var=LD_LIBRARY_PATH
  13360. shlibpath_overrides_runpath=no
  13361. hardcode_into_libs=yes
  13362. dynamic_linker='GNU ld.so'
  13363. ;;
  13364. freebsd* | dragonfly*)
  13365. # DragonFly does not have aout. When/if they implement a new
  13366. # versioning mechanism, adjust this.
  13367. if test -x /usr/bin/objformat; then
  13368. objformat=`/usr/bin/objformat`
  13369. else
  13370. case $host_os in
  13371. freebsd[123]*) objformat=aout ;;
  13372. *) objformat=elf ;;
  13373. esac
  13374. fi
  13375. version_type=freebsd-$objformat
  13376. case $version_type in
  13377. freebsd-elf*)
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13379. need_version=no
  13380. need_lib_prefix=no
  13381. ;;
  13382. freebsd-*)
  13383. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13384. need_version=yes
  13385. ;;
  13386. esac
  13387. shlibpath_var=LD_LIBRARY_PATH
  13388. case $host_os in
  13389. freebsd2*)
  13390. shlibpath_overrides_runpath=yes
  13391. ;;
  13392. freebsd3.[01]* | freebsdelf3.[01]*)
  13393. shlibpath_overrides_runpath=yes
  13394. hardcode_into_libs=yes
  13395. ;;
  13396. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13397. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13398. shlibpath_overrides_runpath=no
  13399. hardcode_into_libs=yes
  13400. ;;
  13401. freebsd*) # from 4.6 on
  13402. shlibpath_overrides_runpath=yes
  13403. hardcode_into_libs=yes
  13404. ;;
  13405. esac
  13406. ;;
  13407. gnu*)
  13408. version_type=linux
  13409. need_lib_prefix=no
  13410. need_version=no
  13411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13412. soname_spec='${libname}${release}${shared_ext}$major'
  13413. shlibpath_var=LD_LIBRARY_PATH
  13414. hardcode_into_libs=yes
  13415. ;;
  13416. hpux9* | hpux10* | hpux11*)
  13417. # Give a soname corresponding to the major version so that dld.sl refuses to
  13418. # link against other versions.
  13419. version_type=sunos
  13420. need_lib_prefix=no
  13421. need_version=no
  13422. case $host_cpu in
  13423. ia64*)
  13424. shrext_cmds='.so'
  13425. hardcode_into_libs=yes
  13426. dynamic_linker="$host_os dld.so"
  13427. shlibpath_var=LD_LIBRARY_PATH
  13428. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13430. soname_spec='${libname}${release}${shared_ext}$major'
  13431. if test "X$HPUX_IA64_MODE" = X32; then
  13432. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13433. else
  13434. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13435. fi
  13436. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13437. ;;
  13438. hppa*64*)
  13439. shrext_cmds='.sl'
  13440. hardcode_into_libs=yes
  13441. dynamic_linker="$host_os dld.sl"
  13442. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13443. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13445. soname_spec='${libname}${release}${shared_ext}$major'
  13446. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13447. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13448. ;;
  13449. *)
  13450. shrext_cmds='.sl'
  13451. dynamic_linker="$host_os dld.sl"
  13452. shlibpath_var=SHLIB_PATH
  13453. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13455. soname_spec='${libname}${release}${shared_ext}$major'
  13456. ;;
  13457. esac
  13458. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13459. postinstall_cmds='chmod 555 $lib'
  13460. ;;
  13461. interix3*)
  13462. version_type=linux
  13463. need_lib_prefix=no
  13464. need_version=no
  13465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13466. soname_spec='${libname}${release}${shared_ext}$major'
  13467. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. shlibpath_overrides_runpath=no
  13470. hardcode_into_libs=yes
  13471. ;;
  13472. irix5* | irix6* | nonstopux*)
  13473. case $host_os in
  13474. nonstopux*) version_type=nonstopux ;;
  13475. *)
  13476. if test "$lt_cv_prog_gnu_ld" = yes; then
  13477. version_type=linux
  13478. else
  13479. version_type=irix
  13480. fi ;;
  13481. esac
  13482. need_lib_prefix=no
  13483. need_version=no
  13484. soname_spec='${libname}${release}${shared_ext}$major'
  13485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13486. case $host_os in
  13487. irix5* | nonstopux*)
  13488. libsuff= shlibsuff=
  13489. ;;
  13490. *)
  13491. case $LD in # libtool.m4 will add one of these switches to LD
  13492. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13493. libsuff= shlibsuff= libmagic=32-bit;;
  13494. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13495. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13496. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13497. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13498. *) libsuff= shlibsuff= libmagic=never-match;;
  13499. esac
  13500. ;;
  13501. esac
  13502. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13503. shlibpath_overrides_runpath=no
  13504. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13505. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13506. hardcode_into_libs=yes
  13507. ;;
  13508. # No shared lib support for Linux oldld, aout, or coff.
  13509. linux*oldld* | linux*aout* | linux*coff*)
  13510. dynamic_linker=no
  13511. ;;
  13512. # This must be Linux ELF.
  13513. linux*)
  13514. version_type=linux
  13515. need_lib_prefix=no
  13516. need_version=no
  13517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13518. soname_spec='${libname}${release}${shared_ext}$major'
  13519. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13520. shlibpath_var=LD_LIBRARY_PATH
  13521. shlibpath_overrides_runpath=no
  13522. # This implies no fast_install, which is unacceptable.
  13523. # Some rework will be needed to allow for fast_install
  13524. # before this can be enabled.
  13525. hardcode_into_libs=yes
  13526. # find out which ABI we are using
  13527. libsuff=
  13528. case "$host_cpu" in
  13529. x86_64*|s390x*|powerpc64*)
  13530. echo '#line 14992 "configure"' > conftest.$ac_ext
  13531. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13532. (eval $ac_compile) 2>&5
  13533. ac_status=$?
  13534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13535. (exit $ac_status); }; then
  13536. case `/usr/bin/file conftest.$ac_objext` in
  13537. *64-bit*)
  13538. libsuff=64
  13539. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  13540. ;;
  13541. esac
  13542. fi
  13543. rm -rf conftest*
  13544. ;;
  13545. esac
  13546. # Append ld.so.conf contents to the search path
  13547. if test -f /etc/ld.so.conf; then
  13548. 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' ' '`
  13549. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  13550. fi
  13551. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13552. # powerpc, because MkLinux only supported shared libraries with the
  13553. # GNU dynamic linker. Since this was broken with cross compilers,
  13554. # most powerpc-linux boxes support dynamic linking these days and
  13555. # people can always --disable-shared, the test was removed, and we
  13556. # assume the GNU/Linux dynamic linker is in use.
  13557. dynamic_linker='GNU/Linux ld.so'
  13558. ;;
  13559. knetbsd*-gnu)
  13560. version_type=linux
  13561. need_lib_prefix=no
  13562. need_version=no
  13563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13564. soname_spec='${libname}${release}${shared_ext}$major'
  13565. shlibpath_var=LD_LIBRARY_PATH
  13566. shlibpath_overrides_runpath=no
  13567. hardcode_into_libs=yes
  13568. dynamic_linker='GNU ld.so'
  13569. ;;
  13570. netbsd*)
  13571. version_type=sunos
  13572. need_lib_prefix=no
  13573. need_version=no
  13574. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13576. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13577. dynamic_linker='NetBSD (a.out) ld.so'
  13578. else
  13579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13580. soname_spec='${libname}${release}${shared_ext}$major'
  13581. dynamic_linker='NetBSD ld.elf_so'
  13582. fi
  13583. shlibpath_var=LD_LIBRARY_PATH
  13584. shlibpath_overrides_runpath=yes
  13585. hardcode_into_libs=yes
  13586. ;;
  13587. newsos6)
  13588. version_type=linux
  13589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13590. shlibpath_var=LD_LIBRARY_PATH
  13591. shlibpath_overrides_runpath=yes
  13592. ;;
  13593. nto-qnx*)
  13594. version_type=linux
  13595. need_lib_prefix=no
  13596. need_version=no
  13597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13598. soname_spec='${libname}${release}${shared_ext}$major'
  13599. shlibpath_var=LD_LIBRARY_PATH
  13600. shlibpath_overrides_runpath=yes
  13601. ;;
  13602. openbsd*)
  13603. version_type=sunos
  13604. sys_lib_dlsearch_path_spec="/usr/lib"
  13605. need_lib_prefix=no
  13606. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13607. case $host_os in
  13608. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13609. *) need_version=no ;;
  13610. esac
  13611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13612. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13613. shlibpath_var=LD_LIBRARY_PATH
  13614. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13615. case $host_os in
  13616. openbsd2.[89] | openbsd2.[89].*)
  13617. shlibpath_overrides_runpath=no
  13618. ;;
  13619. *)
  13620. shlibpath_overrides_runpath=yes
  13621. ;;
  13622. esac
  13623. else
  13624. shlibpath_overrides_runpath=yes
  13625. fi
  13626. ;;
  13627. os2*)
  13628. libname_spec='$name'
  13629. shrext_cmds=".dll"
  13630. need_lib_prefix=no
  13631. library_names_spec='$libname${shared_ext} $libname.a'
  13632. dynamic_linker='OS/2 ld.exe'
  13633. shlibpath_var=LIBPATH
  13634. ;;
  13635. osf3* | osf4* | osf5*)
  13636. version_type=osf
  13637. need_lib_prefix=no
  13638. need_version=no
  13639. soname_spec='${libname}${release}${shared_ext}$major'
  13640. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13641. shlibpath_var=LD_LIBRARY_PATH
  13642. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13643. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13644. ;;
  13645. solaris*)
  13646. version_type=linux
  13647. need_lib_prefix=no
  13648. need_version=no
  13649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13650. soname_spec='${libname}${release}${shared_ext}$major'
  13651. shlibpath_var=LD_LIBRARY_PATH
  13652. shlibpath_overrides_runpath=yes
  13653. hardcode_into_libs=yes
  13654. # ldd complains unless libraries are executable
  13655. postinstall_cmds='chmod +x $lib'
  13656. ;;
  13657. sunos4*)
  13658. version_type=sunos
  13659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13660. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13661. shlibpath_var=LD_LIBRARY_PATH
  13662. shlibpath_overrides_runpath=yes
  13663. if test "$with_gnu_ld" = yes; then
  13664. need_lib_prefix=no
  13665. fi
  13666. need_version=yes
  13667. ;;
  13668. sysv4 | sysv4.3*)
  13669. version_type=linux
  13670. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13671. soname_spec='${libname}${release}${shared_ext}$major'
  13672. shlibpath_var=LD_LIBRARY_PATH
  13673. case $host_vendor in
  13674. sni)
  13675. shlibpath_overrides_runpath=no
  13676. need_lib_prefix=no
  13677. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13678. runpath_var=LD_RUN_PATH
  13679. ;;
  13680. siemens)
  13681. need_lib_prefix=no
  13682. ;;
  13683. motorola)
  13684. need_lib_prefix=no
  13685. need_version=no
  13686. shlibpath_overrides_runpath=no
  13687. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13688. ;;
  13689. esac
  13690. ;;
  13691. sysv4*MP*)
  13692. if test -d /usr/nec ;then
  13693. version_type=linux
  13694. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13695. soname_spec='$libname${shared_ext}.$major'
  13696. shlibpath_var=LD_LIBRARY_PATH
  13697. fi
  13698. ;;
  13699. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13700. version_type=freebsd-elf
  13701. need_lib_prefix=no
  13702. need_version=no
  13703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13704. soname_spec='${libname}${release}${shared_ext}$major'
  13705. shlibpath_var=LD_LIBRARY_PATH
  13706. hardcode_into_libs=yes
  13707. if test "$with_gnu_ld" = yes; then
  13708. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13709. shlibpath_overrides_runpath=no
  13710. else
  13711. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13712. shlibpath_overrides_runpath=yes
  13713. case $host_os in
  13714. sco3.2v5*)
  13715. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13716. ;;
  13717. esac
  13718. fi
  13719. sys_lib_dlsearch_path_spec='/usr/lib'
  13720. ;;
  13721. uts4*)
  13722. version_type=linux
  13723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13724. soname_spec='${libname}${release}${shared_ext}$major'
  13725. shlibpath_var=LD_LIBRARY_PATH
  13726. ;;
  13727. *)
  13728. dynamic_linker=no
  13729. ;;
  13730. esac
  13731. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13732. echo "${ECHO_T}$dynamic_linker" >&6
  13733. test "$dynamic_linker" = no && can_build_shared=no
  13734. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13735. if test "$GCC" = yes; then
  13736. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13737. fi
  13738. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13739. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13740. hardcode_action_F77=
  13741. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13742. test -n "$runpath_var_F77" || \
  13743. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13744. # We can hardcode non-existant directories.
  13745. if test "$hardcode_direct_F77" != no &&
  13746. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13747. # have to relink, otherwise we might link with an installed library
  13748. # when we should be linking with a yet-to-be-installed one
  13749. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13750. test "$hardcode_minus_L_F77" != no; then
  13751. # Linking always hardcodes the temporary library directory.
  13752. hardcode_action_F77=relink
  13753. else
  13754. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13755. hardcode_action_F77=immediate
  13756. fi
  13757. else
  13758. # We cannot hardcode anything, or else we can only hardcode existing
  13759. # directories.
  13760. hardcode_action_F77=unsupported
  13761. fi
  13762. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13763. echo "${ECHO_T}$hardcode_action_F77" >&6
  13764. if test "$hardcode_action_F77" = relink; then
  13765. # Fast installation is not supported
  13766. enable_fast_install=no
  13767. elif test "$shlibpath_overrides_runpath" = yes ||
  13768. test "$enable_shared" = no; then
  13769. # Fast installation is not necessary
  13770. enable_fast_install=needless
  13771. fi
  13772. # The else clause should only fire when bootstrapping the
  13773. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13774. # with your package, and you will get complaints that there are
  13775. # no rules to generate ltmain.sh.
  13776. if test -f "$ltmain"; then
  13777. # See if we are running on zsh, and set the options which allow our commands through
  13778. # without removal of \ escapes.
  13779. if test -n "${ZSH_VERSION+set}" ; then
  13780. setopt NO_GLOB_SUBST
  13781. fi
  13782. # Now quote all the things that may contain metacharacters while being
  13783. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13784. # variables and quote the copies for generation of the libtool script.
  13785. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13786. SED SHELL STRIP \
  13787. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13788. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13789. deplibs_check_method reload_flag reload_cmds need_locks \
  13790. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13791. lt_cv_sys_global_symbol_to_c_name_address \
  13792. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13793. old_postinstall_cmds old_postuninstall_cmds \
  13794. compiler_F77 \
  13795. CC_F77 \
  13796. LD_F77 \
  13797. lt_prog_compiler_wl_F77 \
  13798. lt_prog_compiler_pic_F77 \
  13799. lt_prog_compiler_static_F77 \
  13800. lt_prog_compiler_no_builtin_flag_F77 \
  13801. export_dynamic_flag_spec_F77 \
  13802. thread_safe_flag_spec_F77 \
  13803. whole_archive_flag_spec_F77 \
  13804. enable_shared_with_static_runtimes_F77 \
  13805. old_archive_cmds_F77 \
  13806. old_archive_from_new_cmds_F77 \
  13807. predep_objects_F77 \
  13808. postdep_objects_F77 \
  13809. predeps_F77 \
  13810. postdeps_F77 \
  13811. compiler_lib_search_path_F77 \
  13812. archive_cmds_F77 \
  13813. archive_expsym_cmds_F77 \
  13814. postinstall_cmds_F77 \
  13815. postuninstall_cmds_F77 \
  13816. old_archive_from_expsyms_cmds_F77 \
  13817. allow_undefined_flag_F77 \
  13818. no_undefined_flag_F77 \
  13819. export_symbols_cmds_F77 \
  13820. hardcode_libdir_flag_spec_F77 \
  13821. hardcode_libdir_flag_spec_ld_F77 \
  13822. hardcode_libdir_separator_F77 \
  13823. hardcode_automatic_F77 \
  13824. module_cmds_F77 \
  13825. module_expsym_cmds_F77 \
  13826. lt_cv_prog_compiler_c_o_F77 \
  13827. exclude_expsyms_F77 \
  13828. include_expsyms_F77; do
  13829. case $var in
  13830. old_archive_cmds_F77 | \
  13831. old_archive_from_new_cmds_F77 | \
  13832. archive_cmds_F77 | \
  13833. archive_expsym_cmds_F77 | \
  13834. module_cmds_F77 | \
  13835. module_expsym_cmds_F77 | \
  13836. old_archive_from_expsyms_cmds_F77 | \
  13837. export_symbols_cmds_F77 | \
  13838. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13839. postinstall_cmds | postuninstall_cmds | \
  13840. old_postinstall_cmds | old_postuninstall_cmds | \
  13841. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13842. # Double-quote double-evaled strings.
  13843. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13844. ;;
  13845. *)
  13846. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13847. ;;
  13848. esac
  13849. done
  13850. case $lt_echo in
  13851. *'\$0 --fallback-echo"')
  13852. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13853. ;;
  13854. esac
  13855. cfgfile="$ofile"
  13856. cat <<__EOF__ >> "$cfgfile"
  13857. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13858. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13859. # Shell to use when invoking shell scripts.
  13860. SHELL=$lt_SHELL
  13861. # Whether or not to build shared libraries.
  13862. build_libtool_libs=$enable_shared
  13863. # Whether or not to build static libraries.
  13864. build_old_libs=$enable_static
  13865. # Whether or not to add -lc for building shared libraries.
  13866. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13867. # Whether or not to disallow shared libs when runtime libs are static
  13868. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13869. # Whether or not to optimize for fast installation.
  13870. fast_install=$enable_fast_install
  13871. # The host system.
  13872. host_alias=$host_alias
  13873. host=$host
  13874. host_os=$host_os
  13875. # The build system.
  13876. build_alias=$build_alias
  13877. build=$build
  13878. build_os=$build_os
  13879. # An echo program that does not interpret backslashes.
  13880. echo=$lt_echo
  13881. # The archiver.
  13882. AR=$lt_AR
  13883. AR_FLAGS=$lt_AR_FLAGS
  13884. # A C compiler.
  13885. LTCC=$lt_LTCC
  13886. # LTCC compiler flags.
  13887. LTCFLAGS=$lt_LTCFLAGS
  13888. # A language-specific compiler.
  13889. CC=$lt_compiler_F77
  13890. # Is the compiler the GNU C compiler?
  13891. with_gcc=$GCC_F77
  13892. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  13893. gcc_ver=\`gcc -dumpversion\`
  13894. # An ERE matcher.
  13895. EGREP=$lt_EGREP
  13896. # The linker used to build libraries.
  13897. LD=$lt_LD_F77
  13898. # Whether we need hard or soft links.
  13899. LN_S=$lt_LN_S
  13900. # A BSD-compatible nm program.
  13901. NM=$lt_NM
  13902. # A symbol stripping program
  13903. STRIP=$lt_STRIP
  13904. # Used to examine libraries when file_magic_cmd begins "file"
  13905. MAGIC_CMD=$MAGIC_CMD
  13906. # Used on cygwin: DLL creation program.
  13907. DLLTOOL="$DLLTOOL"
  13908. # Used on cygwin: object dumper.
  13909. OBJDUMP="$OBJDUMP"
  13910. # Used on cygwin: assembler.
  13911. AS="$AS"
  13912. # The name of the directory that contains temporary libtool files.
  13913. objdir=$objdir
  13914. # How to create reloadable object files.
  13915. reload_flag=$lt_reload_flag
  13916. reload_cmds=$lt_reload_cmds
  13917. # How to pass a linker flag through the compiler.
  13918. wl=$lt_lt_prog_compiler_wl_F77
  13919. # Object file suffix (normally "o").
  13920. objext="$ac_objext"
  13921. # Old archive suffix (normally "a").
  13922. libext="$libext"
  13923. # Shared library suffix (normally ".so").
  13924. shrext_cmds='$shrext_cmds'
  13925. # Executable file suffix (normally "").
  13926. exeext="$exeext"
  13927. # Additional compiler flags for building library objects.
  13928. pic_flag=$lt_lt_prog_compiler_pic_F77
  13929. pic_mode=$pic_mode
  13930. # What is the maximum length of a command?
  13931. max_cmd_len=$lt_cv_sys_max_cmd_len
  13932. # Does compiler simultaneously support -c and -o options?
  13933. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13934. # Must we lock files when doing compilation?
  13935. need_locks=$lt_need_locks
  13936. # Do we need the lib prefix for modules?
  13937. need_lib_prefix=$need_lib_prefix
  13938. # Do we need a version for libraries?
  13939. need_version=$need_version
  13940. # Whether dlopen is supported.
  13941. dlopen_support=$enable_dlopen
  13942. # Whether dlopen of programs is supported.
  13943. dlopen_self=$enable_dlopen_self
  13944. # Whether dlopen of statically linked programs is supported.
  13945. dlopen_self_static=$enable_dlopen_self_static
  13946. # Compiler flag to prevent dynamic linking.
  13947. link_static_flag=$lt_lt_prog_compiler_static_F77
  13948. # Compiler flag to turn off builtin functions.
  13949. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13950. # Compiler flag to allow reflexive dlopens.
  13951. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13952. # Compiler flag to generate shared objects directly from archives.
  13953. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13954. # Compiler flag to generate thread-safe objects.
  13955. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13956. # Library versioning type.
  13957. version_type=$version_type
  13958. # Format of library name prefix.
  13959. libname_spec=$lt_libname_spec
  13960. # List of archive names. First name is the real one, the rest are links.
  13961. # The last name is the one that the linker finds with -lNAME.
  13962. library_names_spec=$lt_library_names_spec
  13963. # The coded name of the library, if different from the real name.
  13964. soname_spec=$lt_soname_spec
  13965. # Commands used to build and install an old-style archive.
  13966. RANLIB=$lt_RANLIB
  13967. old_archive_cmds=$lt_old_archive_cmds_F77
  13968. old_postinstall_cmds=$lt_old_postinstall_cmds
  13969. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13970. # Create an old-style archive from a shared archive.
  13971. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13972. # Create a temporary old-style archive to link instead of a shared archive.
  13973. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13974. # Commands used to build and install a shared archive.
  13975. archive_cmds=$lt_archive_cmds_F77
  13976. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13977. postinstall_cmds=$lt_postinstall_cmds
  13978. postuninstall_cmds=$lt_postuninstall_cmds
  13979. # Commands used to build a loadable module (assumed same as above if empty)
  13980. module_cmds=$lt_module_cmds_F77
  13981. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13982. # Commands to strip libraries.
  13983. old_striplib=$lt_old_striplib
  13984. striplib=$lt_striplib
  13985. # Dependencies to place before the objects being linked to create a
  13986. # shared library.
  13987. predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13988. # Dependencies to place after the objects being linked to create a
  13989. # shared library.
  13990. postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  13991. # Dependencies to place before the objects being linked to create a
  13992. # shared library.
  13993. predeps=$lt_predeps_F77
  13994. # Dependencies to place after the objects being linked to create a
  13995. # shared library.
  13996. postdeps=$lt_postdeps_F77
  13997. # The library search path used internally by the compiler when linking
  13998. # a shared library.
  13999. 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"\`
  14000. # Method to check whether dependent libraries are shared objects.
  14001. deplibs_check_method=$lt_deplibs_check_method
  14002. # Command to use when deplibs_check_method == file_magic.
  14003. file_magic_cmd=$lt_file_magic_cmd
  14004. # Flag that allows shared libraries with undefined symbols to be built.
  14005. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14006. # Flag that forces no undefined symbols.
  14007. no_undefined_flag=$lt_no_undefined_flag_F77
  14008. # Commands used to finish a libtool library installation in a directory.
  14009. finish_cmds=$lt_finish_cmds
  14010. # Same as above, but a single script fragment to be evaled but not shown.
  14011. finish_eval=$lt_finish_eval
  14012. # Take the output of nm and produce a listing of raw symbols and C names.
  14013. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14014. # Transform the output of nm in a proper C declaration
  14015. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14016. # Transform the output of nm in a C name address pair
  14017. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14018. # This is the shared library runtime path variable.
  14019. runpath_var=$runpath_var
  14020. # This is the shared library path variable.
  14021. shlibpath_var=$shlibpath_var
  14022. # Is shlibpath searched before the hard-coded library search path?
  14023. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14024. # How to hardcode a shared library path into an executable.
  14025. hardcode_action=$hardcode_action_F77
  14026. # Whether we should hardcode library paths into libraries.
  14027. hardcode_into_libs=$hardcode_into_libs
  14028. # Flag to hardcode \$libdir into a binary during linking.
  14029. # This must work even if \$libdir does not exist.
  14030. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14031. # If ld is used when linking, flag to hardcode \$libdir into
  14032. # a binary during linking. This must work even if \$libdir does
  14033. # not exist.
  14034. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14035. # Whether we need a single -rpath flag with a separated argument.
  14036. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14037. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14038. # resulting binary.
  14039. hardcode_direct=$hardcode_direct_F77
  14040. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14041. # resulting binary.
  14042. hardcode_minus_L=$hardcode_minus_L_F77
  14043. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14044. # the resulting binary.
  14045. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14046. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14047. # and all subsequent libraries and executables linked against it.
  14048. hardcode_automatic=$hardcode_automatic_F77
  14049. # Variables whose values should be saved in libtool wrapper scripts and
  14050. # restored at relink time.
  14051. variables_saved_for_relink="$variables_saved_for_relink"
  14052. # Whether libtool must link a program against all its dependency libraries.
  14053. link_all_deplibs=$link_all_deplibs_F77
  14054. # Compile-time system search path for libraries
  14055. 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"\`
  14056. # Run-time system search path for libraries
  14057. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14058. # Fix the shell variable \$srcfile for the compiler.
  14059. fix_srcfile_path="$fix_srcfile_path_F77"
  14060. # Set to yes if exported symbols are required.
  14061. always_export_symbols=$always_export_symbols_F77
  14062. # The commands to list exported symbols.
  14063. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14064. # The commands to extract the exported symbol list from a shared archive.
  14065. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14066. # Symbols that should not be listed in the preloaded symbols.
  14067. exclude_expsyms=$lt_exclude_expsyms_F77
  14068. # Symbols that must always be exported.
  14069. include_expsyms=$lt_include_expsyms_F77
  14070. # ### END LIBTOOL TAG CONFIG: $tagname
  14071. __EOF__
  14072. else
  14073. # If there is no Makefile yet, we rely on a make rule to execute
  14074. # `config.status --recheck' to rerun these tests and create the
  14075. # libtool script then.
  14076. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14077. if test -f "$ltmain_in"; then
  14078. test -f Makefile && make "$ltmain"
  14079. fi
  14080. fi
  14081. ac_ext=c
  14082. ac_cpp='$CPP $CPPFLAGS'
  14083. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14084. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14086. CC="$lt_save_CC"
  14087. else
  14088. tagname=""
  14089. fi
  14090. ;;
  14091. GCJ)
  14092. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14093. # Source file extension for Java test sources.
  14094. ac_ext=java
  14095. # Object file extension for compiled Java test sources.
  14096. objext=o
  14097. objext_GCJ=$objext
  14098. # Code to be used in simple compile tests
  14099. lt_simple_compile_test_code="class foo {}\n"
  14100. # Code to be used in simple link tests
  14101. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  14102. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14103. # If no C compiler was specified, use CC.
  14104. LTCC=${LTCC-"$CC"}
  14105. # If no C compiler flags were specified, use CFLAGS.
  14106. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14107. # Allow CC to be a program name with arguments.
  14108. compiler=$CC
  14109. # save warnings/boilerplate of simple test code
  14110. ac_outfile=conftest.$ac_objext
  14111. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14112. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14113. _lt_compiler_boilerplate=`cat conftest.err`
  14114. $rm conftest*
  14115. ac_outfile=conftest.$ac_objext
  14116. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14117. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14118. _lt_linker_boilerplate=`cat conftest.err`
  14119. $rm conftest*
  14120. # Allow CC to be a program name with arguments.
  14121. lt_save_CC="$CC"
  14122. CC=${GCJ-"gcj"}
  14123. compiler=$CC
  14124. compiler_GCJ=$CC
  14125. for cc_temp in $compiler""; do
  14126. case $cc_temp in
  14127. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14128. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14129. \-*) ;;
  14130. *) break;;
  14131. esac
  14132. done
  14133. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14134. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14135. archive_cmds_need_lc_GCJ=no
  14136. old_archive_cmds_GCJ=$old_archive_cmds
  14137. lt_prog_compiler_no_builtin_flag_GCJ=
  14138. if test "$GCC" = yes; then
  14139. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14140. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14141. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14142. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14143. echo $ECHO_N "(cached) $ECHO_C" >&6
  14144. else
  14145. lt_cv_prog_compiler_rtti_exceptions=no
  14146. ac_outfile=conftest.$ac_objext
  14147. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14148. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14149. # Insert the option either (1) after the last *FLAGS variable, or
  14150. # (2) before a word containing "conftest.", or (3) at the end.
  14151. # Note that $ac_compile itself does not contain backslashes and begins
  14152. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14153. # The option is referenced via a variable to avoid confusing sed.
  14154. lt_compile=`echo "$ac_compile" | $SED \
  14155. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14156. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14157. -e 's:$: $lt_compiler_flag:'`
  14158. (eval echo "\"\$as_me:15770: $lt_compile\"" >&5)
  14159. (eval "$lt_compile" 2>conftest.err)
  14160. ac_status=$?
  14161. cat conftest.err >&5
  14162. echo "$as_me:15774: \$? = $ac_status" >&5
  14163. if (exit $ac_status) && test -s "$ac_outfile"; then
  14164. # The compiler can only warn and ignore the option if not recognized
  14165. # So say no if there are warnings other than the usual output.
  14166. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14167. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14168. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14169. lt_cv_prog_compiler_rtti_exceptions=yes
  14170. fi
  14171. fi
  14172. $rm conftest*
  14173. fi
  14174. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14175. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14176. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14177. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14178. else
  14179. :
  14180. fi
  14181. fi
  14182. lt_prog_compiler_wl_GCJ=
  14183. lt_prog_compiler_pic_GCJ=
  14184. lt_prog_compiler_static_GCJ=
  14185. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14186. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14187. if test "$GCC" = yes; then
  14188. lt_prog_compiler_wl_GCJ='-Wl,'
  14189. lt_prog_compiler_static_GCJ='-static'
  14190. case $host_os in
  14191. aix*)
  14192. # All AIX code is PIC.
  14193. if test "$host_cpu" = ia64; then
  14194. # AIX 5 now supports IA64 processor
  14195. lt_prog_compiler_static_GCJ='-Bstatic'
  14196. fi
  14197. ;;
  14198. amigaos*)
  14199. # FIXME: we need at least 68020 code to build shared libraries, but
  14200. # adding the `-m68020' flag to GCC prevents building anything better,
  14201. # like `-m68040'.
  14202. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14203. ;;
  14204. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14205. # PIC is the default for these OSes.
  14206. ;;
  14207. mingw* | pw32* | os2*)
  14208. # This hack is so that the source file can tell whether it is being
  14209. # built for inclusion in a dll (and should export symbols for example).
  14210. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14211. ;;
  14212. darwin* | rhapsody*)
  14213. # PIC is the default on this platform
  14214. # Common symbols not allowed in MH_DYLIB files
  14215. lt_prog_compiler_pic_GCJ='-fno-common'
  14216. ;;
  14217. interix3*)
  14218. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14219. # Instead, we relocate shared libraries at runtime.
  14220. ;;
  14221. msdosdjgpp*)
  14222. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14223. # on systems that don't support them.
  14224. lt_prog_compiler_can_build_shared_GCJ=no
  14225. enable_shared=no
  14226. ;;
  14227. sysv4*MP*)
  14228. if test -d /usr/nec; then
  14229. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14230. fi
  14231. ;;
  14232. hpux*)
  14233. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14234. # not for PA HP-UX.
  14235. case $host_cpu in
  14236. hppa*64*|ia64*)
  14237. # +Z the default
  14238. ;;
  14239. *)
  14240. lt_prog_compiler_pic_GCJ='-fPIC'
  14241. ;;
  14242. esac
  14243. ;;
  14244. *)
  14245. lt_prog_compiler_pic_GCJ='-fPIC'
  14246. ;;
  14247. esac
  14248. else
  14249. # PORTME Check for flag to pass linker flags through the system compiler.
  14250. case $host_os in
  14251. aix*)
  14252. lt_prog_compiler_wl_GCJ='-Wl,'
  14253. if test "$host_cpu" = ia64; then
  14254. # AIX 5 now supports IA64 processor
  14255. lt_prog_compiler_static_GCJ='-Bstatic'
  14256. else
  14257. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14258. fi
  14259. ;;
  14260. darwin*)
  14261. # PIC is the default on this platform
  14262. # Common symbols not allowed in MH_DYLIB files
  14263. case $cc_basename in
  14264. xlc*)
  14265. lt_prog_compiler_pic_GCJ='-qnocommon'
  14266. lt_prog_compiler_wl_GCJ='-Wl,'
  14267. ;;
  14268. esac
  14269. ;;
  14270. mingw* | pw32* | os2*)
  14271. # This hack is so that the source file can tell whether it is being
  14272. # built for inclusion in a dll (and should export symbols for example).
  14273. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14274. ;;
  14275. hpux9* | hpux10* | hpux11*)
  14276. lt_prog_compiler_wl_GCJ='-Wl,'
  14277. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14278. # not for PA HP-UX.
  14279. case $host_cpu in
  14280. hppa*64*|ia64*)
  14281. # +Z the default
  14282. ;;
  14283. *)
  14284. lt_prog_compiler_pic_GCJ='+Z'
  14285. ;;
  14286. esac
  14287. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14288. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14289. ;;
  14290. irix5* | irix6* | nonstopux*)
  14291. lt_prog_compiler_wl_GCJ='-Wl,'
  14292. # PIC (with -KPIC) is the default.
  14293. lt_prog_compiler_static_GCJ='-non_shared'
  14294. ;;
  14295. newsos6)
  14296. lt_prog_compiler_pic_GCJ='-KPIC'
  14297. lt_prog_compiler_static_GCJ='-Bstatic'
  14298. ;;
  14299. linux*)
  14300. case $cc_basename in
  14301. icc* | ecc*)
  14302. lt_prog_compiler_wl_GCJ='-Wl,'
  14303. lt_prog_compiler_pic_GCJ='-KPIC'
  14304. lt_prog_compiler_static_GCJ='-static'
  14305. ;;
  14306. pgcc* | pgf77* | pgf90* | pgf95*)
  14307. # Portland Group compilers (*not* the Pentium gcc compiler,
  14308. # which looks to be a dead project)
  14309. lt_prog_compiler_wl_GCJ='-Wl,'
  14310. lt_prog_compiler_pic_GCJ='-fpic'
  14311. lt_prog_compiler_static_GCJ='-Bstatic'
  14312. ;;
  14313. ccc*)
  14314. lt_prog_compiler_wl_GCJ='-Wl,'
  14315. # All Alpha code is PIC.
  14316. lt_prog_compiler_static_GCJ='-non_shared'
  14317. ;;
  14318. esac
  14319. ;;
  14320. osf3* | osf4* | osf5*)
  14321. lt_prog_compiler_wl_GCJ='-Wl,'
  14322. # All OSF/1 code is PIC.
  14323. lt_prog_compiler_static_GCJ='-non_shared'
  14324. ;;
  14325. solaris*)
  14326. lt_prog_compiler_pic_GCJ='-KPIC'
  14327. lt_prog_compiler_static_GCJ='-Bstatic'
  14328. case $cc_basename in
  14329. f77* | f90* | f95*)
  14330. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14331. *)
  14332. lt_prog_compiler_wl_GCJ='-Wl,';;
  14333. esac
  14334. ;;
  14335. sunos4*)
  14336. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14337. lt_prog_compiler_pic_GCJ='-PIC'
  14338. lt_prog_compiler_static_GCJ='-Bstatic'
  14339. ;;
  14340. sysv4 | sysv4.2uw2* | sysv4.3*)
  14341. lt_prog_compiler_wl_GCJ='-Wl,'
  14342. lt_prog_compiler_pic_GCJ='-KPIC'
  14343. lt_prog_compiler_static_GCJ='-Bstatic'
  14344. ;;
  14345. sysv4*MP*)
  14346. if test -d /usr/nec ;then
  14347. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14348. lt_prog_compiler_static_GCJ='-Bstatic'
  14349. fi
  14350. ;;
  14351. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14352. lt_prog_compiler_wl_GCJ='-Wl,'
  14353. lt_prog_compiler_pic_GCJ='-KPIC'
  14354. lt_prog_compiler_static_GCJ='-Bstatic'
  14355. ;;
  14356. unicos*)
  14357. lt_prog_compiler_wl_GCJ='-Wl,'
  14358. lt_prog_compiler_can_build_shared_GCJ=no
  14359. ;;
  14360. uts4*)
  14361. lt_prog_compiler_pic_GCJ='-pic'
  14362. lt_prog_compiler_static_GCJ='-Bstatic'
  14363. ;;
  14364. *)
  14365. lt_prog_compiler_can_build_shared_GCJ=no
  14366. ;;
  14367. esac
  14368. fi
  14369. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14370. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14371. #
  14372. # Check to make sure the PIC flag actually works.
  14373. #
  14374. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14375. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14376. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14377. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14378. echo $ECHO_N "(cached) $ECHO_C" >&6
  14379. else
  14380. lt_prog_compiler_pic_works_GCJ=no
  14381. ac_outfile=conftest.$ac_objext
  14382. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14383. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14384. # Insert the option either (1) after the last *FLAGS variable, or
  14385. # (2) before a word containing "conftest.", or (3) at the end.
  14386. # Note that $ac_compile itself does not contain backslashes and begins
  14387. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14388. # The option is referenced via a variable to avoid confusing sed.
  14389. lt_compile=`echo "$ac_compile" | $SED \
  14390. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14391. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14392. -e 's:$: $lt_compiler_flag:'`
  14393. (eval echo "\"\$as_me:16038: $lt_compile\"" >&5)
  14394. (eval "$lt_compile" 2>conftest.err)
  14395. ac_status=$?
  14396. cat conftest.err >&5
  14397. echo "$as_me:16042: \$? = $ac_status" >&5
  14398. if (exit $ac_status) && test -s "$ac_outfile"; then
  14399. # The compiler can only warn and ignore the option if not recognized
  14400. # So say no if there are warnings other than the usual output.
  14401. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14402. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14403. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14404. lt_prog_compiler_pic_works_GCJ=yes
  14405. fi
  14406. fi
  14407. $rm conftest*
  14408. fi
  14409. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14410. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14411. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14412. case $lt_prog_compiler_pic_GCJ in
  14413. "" | " "*) ;;
  14414. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14415. esac
  14416. else
  14417. lt_prog_compiler_pic_GCJ=
  14418. lt_prog_compiler_can_build_shared_GCJ=no
  14419. fi
  14420. fi
  14421. case $host_os in
  14422. # For platforms which do not support PIC, -DPIC is meaningless:
  14423. *djgpp*)
  14424. lt_prog_compiler_pic_GCJ=
  14425. ;;
  14426. *)
  14427. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14428. ;;
  14429. esac
  14430. #
  14431. # Check to make sure the static flag actually works.
  14432. #
  14433. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14434. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14435. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14436. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14437. echo $ECHO_N "(cached) $ECHO_C" >&6
  14438. else
  14439. lt_prog_compiler_static_works_GCJ=no
  14440. save_LDFLAGS="$LDFLAGS"
  14441. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14442. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14443. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14444. # The linker can only warn and ignore the option if not recognized
  14445. # So say no if there are warnings
  14446. if test -s conftest.err; then
  14447. # Append any errors to the config.log.
  14448. cat conftest.err 1>&5
  14449. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14450. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14451. if diff conftest.exp conftest.er2 >/dev/null; then
  14452. lt_prog_compiler_static_works_GCJ=yes
  14453. fi
  14454. else
  14455. lt_prog_compiler_static_works_GCJ=yes
  14456. fi
  14457. fi
  14458. $rm conftest*
  14459. LDFLAGS="$save_LDFLAGS"
  14460. fi
  14461. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14462. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14463. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14464. :
  14465. else
  14466. lt_prog_compiler_static_GCJ=
  14467. fi
  14468. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14469. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14470. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14471. echo $ECHO_N "(cached) $ECHO_C" >&6
  14472. else
  14473. lt_cv_prog_compiler_c_o_GCJ=no
  14474. $rm -r conftest 2>/dev/null
  14475. mkdir conftest
  14476. cd conftest
  14477. mkdir out
  14478. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14479. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14480. # Insert the option either (1) after the last *FLAGS variable, or
  14481. # (2) before a word containing "conftest.", or (3) at the end.
  14482. # Note that $ac_compile itself does not contain backslashes and begins
  14483. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14484. lt_compile=`echo "$ac_compile" | $SED \
  14485. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14486. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14487. -e 's:$: $lt_compiler_flag:'`
  14488. (eval echo "\"\$as_me:16142: $lt_compile\"" >&5)
  14489. (eval "$lt_compile" 2>out/conftest.err)
  14490. ac_status=$?
  14491. cat out/conftest.err >&5
  14492. echo "$as_me:16146: \$? = $ac_status" >&5
  14493. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14494. then
  14495. # The compiler can only warn and ignore the option if not recognized
  14496. # So say no if there are warnings
  14497. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14498. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14499. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14500. lt_cv_prog_compiler_c_o_GCJ=yes
  14501. fi
  14502. fi
  14503. chmod u+w . 2>&5
  14504. $rm conftest*
  14505. # SGI C++ compiler will create directory out/ii_files/ for
  14506. # template instantiation
  14507. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14508. $rm out/* && rmdir out
  14509. cd ..
  14510. rmdir conftest
  14511. $rm conftest*
  14512. fi
  14513. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14514. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14515. hard_links="nottested"
  14516. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14517. # do not overwrite the value of need_locks provided by the user
  14518. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14519. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14520. hard_links=yes
  14521. $rm conftest*
  14522. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14523. touch conftest.a
  14524. ln conftest.a conftest.b 2>&5 || hard_links=no
  14525. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14526. echo "$as_me:$LINENO: result: $hard_links" >&5
  14527. echo "${ECHO_T}$hard_links" >&6
  14528. if test "$hard_links" = no; then
  14529. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14530. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14531. need_locks=warn
  14532. fi
  14533. else
  14534. need_locks=no
  14535. fi
  14536. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14537. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14538. runpath_var=
  14539. allow_undefined_flag_GCJ=
  14540. enable_shared_with_static_runtimes_GCJ=no
  14541. archive_cmds_GCJ=
  14542. archive_expsym_cmds_GCJ=
  14543. old_archive_From_new_cmds_GCJ=
  14544. old_archive_from_expsyms_cmds_GCJ=
  14545. export_dynamic_flag_spec_GCJ=
  14546. whole_archive_flag_spec_GCJ=
  14547. thread_safe_flag_spec_GCJ=
  14548. hardcode_libdir_flag_spec_GCJ=
  14549. hardcode_libdir_flag_spec_ld_GCJ=
  14550. hardcode_libdir_separator_GCJ=
  14551. hardcode_direct_GCJ=no
  14552. hardcode_minus_L_GCJ=no
  14553. hardcode_shlibpath_var_GCJ=unsupported
  14554. link_all_deplibs_GCJ=unknown
  14555. hardcode_automatic_GCJ=no
  14556. module_cmds_GCJ=
  14557. module_expsym_cmds_GCJ=
  14558. always_export_symbols_GCJ=no
  14559. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14560. # include_expsyms should be a list of space-separated symbols to be *always*
  14561. # included in the symbol list
  14562. include_expsyms_GCJ=
  14563. # exclude_expsyms can be an extended regexp of symbols to exclude
  14564. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14565. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14566. # as well as any symbol that contains `d'.
  14567. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14568. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14569. # platforms (ab)use it in PIC code, but their linkers get confused if
  14570. # the symbol is explicitly referenced. Since portable code cannot
  14571. # rely on this symbol name, it's probably fine to never include it in
  14572. # preloaded symbol tables.
  14573. extract_expsyms_cmds=
  14574. # Just being paranoid about ensuring that cc_basename is set.
  14575. for cc_temp in $compiler""; do
  14576. case $cc_temp in
  14577. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14578. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14579. \-*) ;;
  14580. *) break;;
  14581. esac
  14582. done
  14583. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14584. case $host_os in
  14585. cygwin* | mingw* | pw32*)
  14586. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14587. # When not using gcc, we currently assume that we are using
  14588. # Microsoft Visual C++.
  14589. if test "$GCC" != yes; then
  14590. with_gnu_ld=no
  14591. fi
  14592. ;;
  14593. interix*)
  14594. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14595. with_gnu_ld=yes
  14596. ;;
  14597. openbsd*)
  14598. with_gnu_ld=no
  14599. ;;
  14600. esac
  14601. ld_shlibs_GCJ=yes
  14602. if test "$with_gnu_ld" = yes; then
  14603. # If archive_cmds runs LD, not CC, wlarc should be empty
  14604. wlarc='${wl}'
  14605. # Set some defaults for GNU ld with shared library support. These
  14606. # are reset later if shared libraries are not supported. Putting them
  14607. # here allows them to be overridden if necessary.
  14608. runpath_var=LD_RUN_PATH
  14609. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14610. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14611. # ancient GNU ld didn't support --whole-archive et. al.
  14612. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14613. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14614. else
  14615. whole_archive_flag_spec_GCJ=
  14616. fi
  14617. supports_anon_versioning=no
  14618. case `$LD -v 2>/dev/null` in
  14619. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14620. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14621. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14622. *\ 2.11.*) ;; # other 2.11 versions
  14623. *) supports_anon_versioning=yes ;;
  14624. esac
  14625. # See if GNU ld supports shared libraries.
  14626. case $host_os in
  14627. aix3* | aix4* | aix5*)
  14628. # On AIX/PPC, the GNU linker is very broken
  14629. if test "$host_cpu" != ia64; then
  14630. ld_shlibs_GCJ=no
  14631. cat <<EOF 1>&2
  14632. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14633. *** to be unable to reliably create shared libraries on AIX.
  14634. *** Therefore, libtool is disabling shared libraries support. If you
  14635. *** really care for shared libraries, you may want to modify your PATH
  14636. *** so that a non-GNU linker is found, and then restart.
  14637. EOF
  14638. fi
  14639. ;;
  14640. amigaos*)
  14641. 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)'
  14642. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14643. hardcode_minus_L_GCJ=yes
  14644. # Samuel A. Falvo II <[email protected]> reports
  14645. # that the semantics of dynamic libraries on AmigaOS, at least up
  14646. # to version 4, is to share data among multiple programs linked
  14647. # with the same dynamic library. Since this doesn't match the
  14648. # behavior of shared libraries on other platforms, we can't use
  14649. # them.
  14650. ld_shlibs_GCJ=no
  14651. ;;
  14652. beos*)
  14653. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14654. allow_undefined_flag_GCJ=unsupported
  14655. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14656. # support --undefined. This deserves some investigation. FIXME
  14657. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14658. else
  14659. ld_shlibs_GCJ=no
  14660. fi
  14661. ;;
  14662. cygwin* | mingw* | pw32*)
  14663. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14664. # as there is no search path for DLLs.
  14665. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14666. allow_undefined_flag_GCJ=unsupported
  14667. always_export_symbols_GCJ=no
  14668. enable_shared_with_static_runtimes_GCJ=yes
  14669. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14670. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14671. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14672. # If the export-symbols file already is a .def file (1st line
  14673. # is EXPORTS), use it as is; otherwise, prepend...
  14674. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14675. cp $export_symbols $output_objdir/$soname.def;
  14676. else
  14677. echo EXPORTS > $output_objdir/$soname.def;
  14678. cat $export_symbols >> $output_objdir/$soname.def;
  14679. fi~
  14680. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14681. else
  14682. ld_shlibs_GCJ=no
  14683. fi
  14684. ;;
  14685. interix3*)
  14686. hardcode_direct_GCJ=no
  14687. hardcode_shlibpath_var_GCJ=no
  14688. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14689. export_dynamic_flag_spec_GCJ='${wl}-E'
  14690. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14691. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14692. # default) and relocated if they conflict, which is a slow very memory
  14693. # consuming and fragmenting process. To avoid this, we pick a random,
  14694. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14695. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14696. 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'
  14697. 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'
  14698. ;;
  14699. linux*)
  14700. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14701. tmp_addflag=
  14702. case $cc_basename,$host_cpu in
  14703. pgcc*) # Portland Group C compiler
  14704. 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'
  14705. tmp_addflag=' $pic_flag'
  14706. ;;
  14707. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14708. 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'
  14709. tmp_addflag=' $pic_flag -Mnomain' ;;
  14710. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14711. tmp_addflag=' -i_dynamic' ;;
  14712. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14713. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14714. ifc* | ifort*) # Intel Fortran compiler
  14715. tmp_addflag=' -nofor_main' ;;
  14716. esac
  14717. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14718. if test $supports_anon_versioning = yes; then
  14719. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14720. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14721. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14722. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14723. fi
  14724. else
  14725. ld_shlibs_GCJ=no
  14726. fi
  14727. ;;
  14728. netbsd*)
  14729. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14730. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14731. wlarc=
  14732. else
  14733. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14734. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14735. fi
  14736. ;;
  14737. solaris*)
  14738. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14739. ld_shlibs_GCJ=no
  14740. cat <<EOF 1>&2
  14741. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14742. *** create shared libraries on Solaris systems. Therefore, libtool
  14743. *** is disabling shared libraries support. We urge you to upgrade GNU
  14744. *** binutils to release 2.9.1 or newer. Another option is to modify
  14745. *** your PATH or compiler configuration so that the native linker is
  14746. *** used, and then restart.
  14747. EOF
  14748. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14749. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14750. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14751. else
  14752. ld_shlibs_GCJ=no
  14753. fi
  14754. ;;
  14755. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14756. case `$LD -v 2>&1` in
  14757. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14758. ld_shlibs_GCJ=no
  14759. cat <<_LT_EOF 1>&2
  14760. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14761. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14762. *** is disabling shared libraries support. We urge you to upgrade GNU
  14763. *** binutils to release 2.16.91.0.3 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. _LT_EOF
  14767. ;;
  14768. *)
  14769. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14770. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14771. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14772. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14773. else
  14774. ld_shlibs_GCJ=no
  14775. fi
  14776. ;;
  14777. esac
  14778. ;;
  14779. sunos4*)
  14780. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14781. wlarc=
  14782. hardcode_direct_GCJ=yes
  14783. hardcode_shlibpath_var_GCJ=no
  14784. ;;
  14785. *)
  14786. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14787. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14788. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14789. else
  14790. ld_shlibs_GCJ=no
  14791. fi
  14792. ;;
  14793. esac
  14794. if test "$ld_shlibs_GCJ" = no; then
  14795. runpath_var=
  14796. hardcode_libdir_flag_spec_GCJ=
  14797. export_dynamic_flag_spec_GCJ=
  14798. whole_archive_flag_spec_GCJ=
  14799. fi
  14800. else
  14801. # PORTME fill in a description of your system's linker (not GNU ld)
  14802. case $host_os in
  14803. aix3*)
  14804. allow_undefined_flag_GCJ=unsupported
  14805. always_export_symbols_GCJ=yes
  14806. 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'
  14807. # Note: this linker hardcodes the directories in LIBPATH if there
  14808. # are no directories specified by -L.
  14809. hardcode_minus_L_GCJ=yes
  14810. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14811. # Neither direct hardcoding nor static linking is supported with a
  14812. # broken collect2.
  14813. hardcode_direct_GCJ=unsupported
  14814. fi
  14815. ;;
  14816. aix4* | aix5*)
  14817. if test "$host_cpu" = ia64; then
  14818. # On IA64, the linker does run time linking by default, so we don't
  14819. # have to do anything special.
  14820. aix_use_runtimelinking=no
  14821. exp_sym_flag='-Bexport'
  14822. no_entry_flag=""
  14823. else
  14824. # If we're using GNU nm, then we don't want the "-C" option.
  14825. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14826. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14827. 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'
  14828. else
  14829. 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'
  14830. fi
  14831. aix_use_runtimelinking=no
  14832. # Test if we are trying to use run time linking or normal
  14833. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14834. # need to do runtime linking.
  14835. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14836. for ld_flag in $LDFLAGS; do
  14837. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14838. aix_use_runtimelinking=yes
  14839. break
  14840. fi
  14841. done
  14842. ;;
  14843. esac
  14844. exp_sym_flag='-bexport'
  14845. no_entry_flag='-bnoentry'
  14846. fi
  14847. # When large executables or shared objects are built, AIX ld can
  14848. # have problems creating the table of contents. If linking a library
  14849. # or program results in "error TOC overflow" add -mminimal-toc to
  14850. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14851. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14852. archive_cmds_GCJ=''
  14853. hardcode_direct_GCJ=yes
  14854. hardcode_libdir_separator_GCJ=':'
  14855. link_all_deplibs_GCJ=yes
  14856. if test "$GCC" = yes; then
  14857. case $host_os in aix4.[012]|aix4.[012].*)
  14858. # We only want to do this on AIX 4.2 and lower, the check
  14859. # below for broken collect2 doesn't work under 4.3+
  14860. collect2name=`${CC} -print-prog-name=collect2`
  14861. if test -f "$collect2name" && \
  14862. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14863. then
  14864. # We have reworked collect2
  14865. hardcode_direct_GCJ=yes
  14866. else
  14867. # We have old collect2
  14868. hardcode_direct_GCJ=unsupported
  14869. # It fails to find uninstalled libraries when the uninstalled
  14870. # path is not listed in the libpath. Setting hardcode_minus_L
  14871. # to unsupported forces relinking
  14872. hardcode_minus_L_GCJ=yes
  14873. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14874. hardcode_libdir_separator_GCJ=
  14875. fi
  14876. ;;
  14877. esac
  14878. shared_flag='-shared'
  14879. if test "$aix_use_runtimelinking" = yes; then
  14880. shared_flag="$shared_flag "'${wl}-G'
  14881. fi
  14882. else
  14883. # not using gcc
  14884. if test "$host_cpu" = ia64; then
  14885. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14886. # chokes on -Wl,-G. The following line is correct:
  14887. shared_flag='-G'
  14888. else
  14889. if test "$aix_use_runtimelinking" = yes; then
  14890. shared_flag='${wl}-G'
  14891. else
  14892. shared_flag='${wl}-bM:SRE'
  14893. fi
  14894. fi
  14895. fi
  14896. # It seems that -bexpall does not export symbols beginning with
  14897. # underscore (_), so it is better to generate a list of symbols to export.
  14898. always_export_symbols_GCJ=yes
  14899. if test "$aix_use_runtimelinking" = yes; then
  14900. # Warning - without using the other runtime loading flags (-brtl),
  14901. # -berok will link without error, but may produce a broken library.
  14902. allow_undefined_flag_GCJ='-berok'
  14903. # Determine the default libpath from the value encoded in an empty executable.
  14904. cat >conftest.$ac_ext <<_ACEOF
  14905. /* confdefs.h. */
  14906. _ACEOF
  14907. cat confdefs.h >>conftest.$ac_ext
  14908. cat >>conftest.$ac_ext <<_ACEOF
  14909. /* end confdefs.h. */
  14910. int
  14911. main ()
  14912. {
  14913. ;
  14914. return 0;
  14915. }
  14916. _ACEOF
  14917. rm -f conftest.$ac_objext conftest$ac_exeext
  14918. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14919. (eval $ac_link) 2>conftest.er1
  14920. ac_status=$?
  14921. grep -v '^ *+' conftest.er1 >conftest.err
  14922. rm -f conftest.er1
  14923. cat conftest.err >&5
  14924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14925. (exit $ac_status); } &&
  14926. { ac_try='test -z "$ac_c_werror_flag"
  14927. || test ! -s conftest.err'
  14928. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14929. (eval $ac_try) 2>&5
  14930. ac_status=$?
  14931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14932. (exit $ac_status); }; } &&
  14933. { ac_try='test -s conftest$ac_exeext'
  14934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14935. (eval $ac_try) 2>&5
  14936. ac_status=$?
  14937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14938. (exit $ac_status); }; }; then
  14939. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14940. }'`
  14941. # Check for a 64-bit object if we didn't find anything.
  14942. 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; }
  14943. }'`; fi
  14944. else
  14945. echo "$as_me: failed program was:" >&5
  14946. sed 's/^/| /' conftest.$ac_ext >&5
  14947. fi
  14948. rm -f conftest.err conftest.$ac_objext \
  14949. conftest$ac_exeext conftest.$ac_ext
  14950. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14951. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14952. 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"
  14953. else
  14954. if test "$host_cpu" = ia64; then
  14955. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14956. allow_undefined_flag_GCJ="-z nodefs"
  14957. 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"
  14958. else
  14959. # Determine the default libpath from the value encoded in an empty executable.
  14960. cat >conftest.$ac_ext <<_ACEOF
  14961. /* confdefs.h. */
  14962. _ACEOF
  14963. cat confdefs.h >>conftest.$ac_ext
  14964. cat >>conftest.$ac_ext <<_ACEOF
  14965. /* end confdefs.h. */
  14966. int
  14967. main ()
  14968. {
  14969. ;
  14970. return 0;
  14971. }
  14972. _ACEOF
  14973. rm -f conftest.$ac_objext conftest$ac_exeext
  14974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14975. (eval $ac_link) 2>conftest.er1
  14976. ac_status=$?
  14977. grep -v '^ *+' conftest.er1 >conftest.err
  14978. rm -f conftest.er1
  14979. cat conftest.err >&5
  14980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14981. (exit $ac_status); } &&
  14982. { ac_try='test -z "$ac_c_werror_flag"
  14983. || test ! -s conftest.err'
  14984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14985. (eval $ac_try) 2>&5
  14986. ac_status=$?
  14987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14988. (exit $ac_status); }; } &&
  14989. { ac_try='test -s conftest$ac_exeext'
  14990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14991. (eval $ac_try) 2>&5
  14992. ac_status=$?
  14993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14994. (exit $ac_status); }; }; then
  14995. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14996. }'`
  14997. # Check for a 64-bit object if we didn't find anything.
  14998. 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; }
  14999. }'`; fi
  15000. else
  15001. echo "$as_me: failed program was:" >&5
  15002. sed 's/^/| /' conftest.$ac_ext >&5
  15003. fi
  15004. rm -f conftest.err conftest.$ac_objext \
  15005. conftest$ac_exeext conftest.$ac_ext
  15006. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15007. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15008. # Warning - without using the other run time loading flags,
  15009. # -berok will link without error, but may produce a broken library.
  15010. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15011. allow_undefined_flag_GCJ=' ${wl}-berok'
  15012. # Exported symbols can be pulled into shared objects from archives
  15013. whole_archive_flag_spec_GCJ='$convenience'
  15014. archive_cmds_need_lc_GCJ=yes
  15015. # This is similar to how AIX traditionally builds its shared libraries.
  15016. 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'
  15017. fi
  15018. fi
  15019. ;;
  15020. amigaos*)
  15021. 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)'
  15022. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15023. hardcode_minus_L_GCJ=yes
  15024. # see comment about different semantics on the GNU ld section
  15025. ld_shlibs_GCJ=no
  15026. ;;
  15027. bsdi[45]*)
  15028. export_dynamic_flag_spec_GCJ=-rdynamic
  15029. ;;
  15030. cygwin* | mingw* | pw32*)
  15031. # When not using gcc, we currently assume that we are using
  15032. # Microsoft Visual C++.
  15033. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15034. # no search path for DLLs.
  15035. hardcode_libdir_flag_spec_GCJ=' '
  15036. allow_undefined_flag_GCJ=unsupported
  15037. # Tell ltmain to make .lib files, not .a files.
  15038. libext=lib
  15039. # Tell ltmain to make .dll files, not .so files.
  15040. shrext_cmds=".dll"
  15041. # FIXME: Setting linknames here is a bad hack.
  15042. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15043. # The linker will automatically build a .lib file if we build a DLL.
  15044. old_archive_From_new_cmds_GCJ='true'
  15045. # FIXME: Should let the user specify the lib program.
  15046. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15047. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15048. enable_shared_with_static_runtimes_GCJ=yes
  15049. ;;
  15050. darwin* | rhapsody*)
  15051. case $host_os in
  15052. rhapsody* | darwin1.[012])
  15053. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15054. ;;
  15055. *) # Darwin 1.3 on
  15056. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15057. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15058. else
  15059. case ${MACOSX_DEPLOYMENT_TARGET} in
  15060. 10.[012])
  15061. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15062. ;;
  15063. 10.*)
  15064. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15065. ;;
  15066. esac
  15067. fi
  15068. ;;
  15069. esac
  15070. archive_cmds_need_lc_GCJ=no
  15071. hardcode_direct_GCJ=no
  15072. hardcode_automatic_GCJ=yes
  15073. hardcode_shlibpath_var_GCJ=unsupported
  15074. whole_archive_flag_spec_GCJ=''
  15075. link_all_deplibs_GCJ=yes
  15076. if test "$GCC" = yes ; then
  15077. output_verbose_link_cmd='echo'
  15078. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15079. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15080. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15081. 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}'
  15082. 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}'
  15083. else
  15084. case $cc_basename in
  15085. xlc*)
  15086. output_verbose_link_cmd='echo'
  15087. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  15088. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15089. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15090. 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}'
  15091. 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}'
  15092. ;;
  15093. *)
  15094. ld_shlibs_GCJ=no
  15095. ;;
  15096. esac
  15097. fi
  15098. ;;
  15099. dgux*)
  15100. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15101. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15102. hardcode_shlibpath_var_GCJ=no
  15103. ;;
  15104. freebsd1*)
  15105. ld_shlibs_GCJ=no
  15106. ;;
  15107. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15108. # support. Future versions do this automatically, but an explicit c++rt0.o
  15109. # does not break anything, and helps significantly (at the cost of a little
  15110. # extra space).
  15111. freebsd2.2*)
  15112. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15113. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15114. hardcode_direct_GCJ=yes
  15115. hardcode_shlibpath_var_GCJ=no
  15116. ;;
  15117. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15118. freebsd2*)
  15119. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15120. hardcode_direct_GCJ=yes
  15121. hardcode_minus_L_GCJ=yes
  15122. hardcode_shlibpath_var_GCJ=no
  15123. ;;
  15124. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15125. freebsd* | kfreebsd*-gnu | dragonfly*)
  15126. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15127. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15128. hardcode_direct_GCJ=yes
  15129. hardcode_shlibpath_var_GCJ=no
  15130. ;;
  15131. hpux9*)
  15132. if test "$GCC" = yes; then
  15133. 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'
  15134. else
  15135. 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'
  15136. fi
  15137. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15138. hardcode_libdir_separator_GCJ=:
  15139. hardcode_direct_GCJ=yes
  15140. # hardcode_minus_L: Not really in the search PATH,
  15141. # but as the default location of the library.
  15142. hardcode_minus_L_GCJ=yes
  15143. export_dynamic_flag_spec_GCJ='${wl}-E'
  15144. ;;
  15145. hpux10*)
  15146. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15147. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15148. else
  15149. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15150. fi
  15151. if test "$with_gnu_ld" = no; then
  15152. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15153. hardcode_libdir_separator_GCJ=:
  15154. hardcode_direct_GCJ=yes
  15155. export_dynamic_flag_spec_GCJ='${wl}-E'
  15156. # hardcode_minus_L: Not really in the search PATH,
  15157. # but as the default location of the library.
  15158. hardcode_minus_L_GCJ=yes
  15159. fi
  15160. ;;
  15161. hpux11*)
  15162. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15163. case $host_cpu in
  15164. hppa*64*)
  15165. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15166. ;;
  15167. ia64*)
  15168. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15169. ;;
  15170. *)
  15171. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15172. ;;
  15173. esac
  15174. else
  15175. case $host_cpu in
  15176. hppa*64*)
  15177. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15178. ;;
  15179. ia64*)
  15180. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15181. ;;
  15182. *)
  15183. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15184. ;;
  15185. esac
  15186. fi
  15187. if test "$with_gnu_ld" = no; then
  15188. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15189. hardcode_libdir_separator_GCJ=:
  15190. case $host_cpu in
  15191. hppa*64*|ia64*)
  15192. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15193. hardcode_direct_GCJ=no
  15194. hardcode_shlibpath_var_GCJ=no
  15195. ;;
  15196. *)
  15197. hardcode_direct_GCJ=yes
  15198. export_dynamic_flag_spec_GCJ='${wl}-E'
  15199. # hardcode_minus_L: Not really in the search PATH,
  15200. # but as the default location of the library.
  15201. hardcode_minus_L_GCJ=yes
  15202. ;;
  15203. esac
  15204. fi
  15205. ;;
  15206. irix5* | irix6* | nonstopux*)
  15207. if test "$GCC" = yes; then
  15208. 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'
  15209. else
  15210. 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'
  15211. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15212. fi
  15213. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15214. hardcode_libdir_separator_GCJ=:
  15215. link_all_deplibs_GCJ=yes
  15216. ;;
  15217. netbsd*)
  15218. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15219. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15220. else
  15221. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15222. fi
  15223. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15224. hardcode_direct_GCJ=yes
  15225. hardcode_shlibpath_var_GCJ=no
  15226. ;;
  15227. newsos6)
  15228. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15229. hardcode_direct_GCJ=yes
  15230. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15231. hardcode_libdir_separator_GCJ=:
  15232. hardcode_shlibpath_var_GCJ=no
  15233. ;;
  15234. openbsd*)
  15235. hardcode_direct_GCJ=yes
  15236. hardcode_shlibpath_var_GCJ=no
  15237. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15238. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15239. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15240. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15241. export_dynamic_flag_spec_GCJ='${wl}-E'
  15242. else
  15243. case $host_os in
  15244. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15245. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15246. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15247. ;;
  15248. *)
  15249. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15250. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15251. ;;
  15252. esac
  15253. fi
  15254. ;;
  15255. os2*)
  15256. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15257. hardcode_minus_L_GCJ=yes
  15258. allow_undefined_flag_GCJ=unsupported
  15259. 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'
  15260. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15261. ;;
  15262. osf3*)
  15263. if test "$GCC" = yes; then
  15264. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15265. 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'
  15266. else
  15267. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15268. 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'
  15269. fi
  15270. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15271. hardcode_libdir_separator_GCJ=:
  15272. ;;
  15273. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15274. if test "$GCC" = yes; then
  15275. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15276. 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'
  15277. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15278. else
  15279. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15280. 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'
  15281. 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~
  15282. $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'
  15283. # Both c and cxx compiler support -rpath directly
  15284. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15285. fi
  15286. hardcode_libdir_separator_GCJ=:
  15287. ;;
  15288. solaris*)
  15289. no_undefined_flag_GCJ=' -z text'
  15290. if test "$GCC" = yes; then
  15291. wlarc='${wl}'
  15292. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15293. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15294. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15295. else
  15296. wlarc=''
  15297. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15298. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15299. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15300. fi
  15301. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15302. hardcode_shlibpath_var_GCJ=no
  15303. case $host_os in
  15304. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15305. *)
  15306. # The compiler driver will combine linker options so we
  15307. # cannot just pass the convience library names through
  15308. # without $wl, iff we do not link with $LD.
  15309. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15310. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15311. case $wlarc in
  15312. '')
  15313. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15314. *)
  15315. 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' ;;
  15316. esac ;;
  15317. esac
  15318. link_all_deplibs_GCJ=yes
  15319. ;;
  15320. sunos4*)
  15321. if test "x$host_vendor" = xsequent; then
  15322. # Use $CC to link under sequent, because it throws in some extra .o
  15323. # files that make .init and .fini sections work.
  15324. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15325. else
  15326. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15327. fi
  15328. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15329. hardcode_direct_GCJ=yes
  15330. hardcode_minus_L_GCJ=yes
  15331. hardcode_shlibpath_var_GCJ=no
  15332. ;;
  15333. sysv4)
  15334. case $host_vendor in
  15335. sni)
  15336. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15337. hardcode_direct_GCJ=yes # is this really true???
  15338. ;;
  15339. siemens)
  15340. ## LD is ld it makes a PLAMLIB
  15341. ## CC just makes a GrossModule.
  15342. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15343. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15344. hardcode_direct_GCJ=no
  15345. ;;
  15346. motorola)
  15347. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15348. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15349. ;;
  15350. esac
  15351. runpath_var='LD_RUN_PATH'
  15352. hardcode_shlibpath_var_GCJ=no
  15353. ;;
  15354. sysv4.3*)
  15355. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15356. hardcode_shlibpath_var_GCJ=no
  15357. export_dynamic_flag_spec_GCJ='-Bexport'
  15358. ;;
  15359. sysv4*MP*)
  15360. if test -d /usr/nec; then
  15361. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15362. hardcode_shlibpath_var_GCJ=no
  15363. runpath_var=LD_RUN_PATH
  15364. hardcode_runpath_var=yes
  15365. ld_shlibs_GCJ=yes
  15366. fi
  15367. ;;
  15368. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15369. no_undefined_flag_GCJ='${wl}-z,text'
  15370. archive_cmds_need_lc_GCJ=no
  15371. hardcode_shlibpath_var_GCJ=no
  15372. runpath_var='LD_RUN_PATH'
  15373. if test "$GCC" = yes; then
  15374. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15375. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15376. else
  15377. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15378. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15379. fi
  15380. ;;
  15381. sysv5* | sco3.2v5* | sco5v6*)
  15382. # Note: We can NOT use -z defs as we might desire, because we do not
  15383. # link with -lc, and that would cause any symbols used from libc to
  15384. # always be unresolved, which means just about no library would
  15385. # ever link correctly. If we're not using GNU ld we use -z text
  15386. # though, which does catch some bad symbols but isn't as heavy-handed
  15387. # as -z defs.
  15388. no_undefined_flag_GCJ='${wl}-z,text'
  15389. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15390. archive_cmds_need_lc_GCJ=no
  15391. hardcode_shlibpath_var_GCJ=no
  15392. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15393. hardcode_libdir_separator_GCJ=':'
  15394. link_all_deplibs_GCJ=yes
  15395. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15396. runpath_var='LD_RUN_PATH'
  15397. if test "$GCC" = yes; then
  15398. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15399. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15400. else
  15401. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15402. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15403. fi
  15404. ;;
  15405. uts4*)
  15406. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15407. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15408. hardcode_shlibpath_var_GCJ=no
  15409. ;;
  15410. *)
  15411. ld_shlibs_GCJ=no
  15412. ;;
  15413. esac
  15414. fi
  15415. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15416. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15417. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15418. #
  15419. # Do we need to explicitly link libc?
  15420. #
  15421. case "x$archive_cmds_need_lc_GCJ" in
  15422. x|xyes)
  15423. # Assume -lc should be added
  15424. archive_cmds_need_lc_GCJ=yes
  15425. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15426. case $archive_cmds_GCJ in
  15427. *'~'*)
  15428. # FIXME: we may have to deal with multi-command sequences.
  15429. ;;
  15430. '$CC '*)
  15431. # Test whether the compiler implicitly links with -lc since on some
  15432. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15433. # to ld, don't add -lc before -lgcc.
  15434. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15435. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15436. $rm conftest*
  15437. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15438. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15439. (eval $ac_compile) 2>&5
  15440. ac_status=$?
  15441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15442. (exit $ac_status); } 2>conftest.err; then
  15443. soname=conftest
  15444. lib=conftest
  15445. libobjs=conftest.$ac_objext
  15446. deplibs=
  15447. wl=$lt_prog_compiler_wl_GCJ
  15448. pic_flag=$lt_prog_compiler_pic_GCJ
  15449. compiler_flags=-v
  15450. linker_flags=-v
  15451. verstring=
  15452. output_objdir=.
  15453. libname=conftest
  15454. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15455. allow_undefined_flag_GCJ=
  15456. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15457. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15458. ac_status=$?
  15459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15460. (exit $ac_status); }
  15461. then
  15462. archive_cmds_need_lc_GCJ=no
  15463. else
  15464. archive_cmds_need_lc_GCJ=yes
  15465. fi
  15466. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15467. else
  15468. cat conftest.err 1>&5
  15469. fi
  15470. $rm conftest*
  15471. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15472. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15473. ;;
  15474. esac
  15475. fi
  15476. ;;
  15477. esac
  15478. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15479. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15480. library_names_spec=
  15481. libname_spec='lib$name'
  15482. soname_spec=
  15483. shrext_cmds=".so"
  15484. postinstall_cmds=
  15485. postuninstall_cmds=
  15486. finish_cmds=
  15487. finish_eval=
  15488. shlibpath_var=
  15489. shlibpath_overrides_runpath=unknown
  15490. version_type=none
  15491. dynamic_linker="$host_os ld.so"
  15492. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15493. if test "$GCC" = yes; then
  15494. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15495. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15496. # if the path contains ";" then we assume it to be the separator
  15497. # otherwise default to the standard path separator (i.e. ":") - it is
  15498. # assumed that no part of a normal pathname contains ";" but that should
  15499. # okay in the real world where ";" in dirpaths is itself problematic.
  15500. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15501. else
  15502. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15503. fi
  15504. else
  15505. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15506. fi
  15507. need_lib_prefix=unknown
  15508. hardcode_into_libs=no
  15509. # when you set need_version to no, make sure it does not cause -set_version
  15510. # flags to be left without arguments
  15511. need_version=unknown
  15512. case $host_os in
  15513. aix3*)
  15514. version_type=linux
  15515. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15516. shlibpath_var=LIBPATH
  15517. # AIX 3 has no versioning support, so we append a major version to the name.
  15518. soname_spec='${libname}${release}${shared_ext}$major'
  15519. ;;
  15520. aix4* | aix5*)
  15521. version_type=linux
  15522. need_lib_prefix=no
  15523. need_version=no
  15524. hardcode_into_libs=yes
  15525. if test "$host_cpu" = ia64; then
  15526. # AIX 5 supports IA64
  15527. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15528. shlibpath_var=LD_LIBRARY_PATH
  15529. else
  15530. # With GCC up to 2.95.x, collect2 would create an import file
  15531. # for dependence libraries. The import file would start with
  15532. # the line `#! .'. This would cause the generated library to
  15533. # depend on `.', always an invalid library. This was fixed in
  15534. # development snapshots of GCC prior to 3.0.
  15535. case $host_os in
  15536. aix4 | aix4.[01] | aix4.[01].*)
  15537. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15538. echo ' yes '
  15539. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15540. :
  15541. else
  15542. can_build_shared=no
  15543. fi
  15544. ;;
  15545. esac
  15546. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15547. # soname into executable. Probably we can add versioning support to
  15548. # collect2, so additional links can be useful in future.
  15549. if test "$aix_use_runtimelinking" = yes; then
  15550. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15551. # instead of lib<name>.a to let people know that these are not
  15552. # typical AIX shared libraries.
  15553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15554. else
  15555. # We preserve .a as extension for shared libraries through AIX4.2
  15556. # and later when we are not doing run time linking.
  15557. library_names_spec='${libname}${release}.a $libname.a'
  15558. soname_spec='${libname}${release}${shared_ext}$major'
  15559. fi
  15560. shlibpath_var=LIBPATH
  15561. fi
  15562. ;;
  15563. amigaos*)
  15564. library_names_spec='$libname.ixlibrary $libname.a'
  15565. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15566. 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'
  15567. ;;
  15568. beos*)
  15569. library_names_spec='${libname}${shared_ext}'
  15570. dynamic_linker="$host_os ld.so"
  15571. shlibpath_var=LIBRARY_PATH
  15572. ;;
  15573. bsdi[45]*)
  15574. version_type=linux
  15575. need_version=no
  15576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15577. soname_spec='${libname}${release}${shared_ext}$major'
  15578. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15579. shlibpath_var=LD_LIBRARY_PATH
  15580. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15581. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15582. # the default ld.so.conf also contains /usr/contrib/lib and
  15583. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15584. # libtool to hard-code these into programs
  15585. ;;
  15586. cygwin* | mingw* | pw32*)
  15587. version_type=windows
  15588. shrext_cmds=".dll"
  15589. need_version=no
  15590. need_lib_prefix=no
  15591. case $GCC,$host_os in
  15592. yes,cygwin* | yes,mingw* | yes,pw32*)
  15593. library_names_spec='$libname.dll.a'
  15594. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15595. postinstall_cmds='base_file=`basename \${file}`~
  15596. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15597. dldir=$destdir/`dirname \$dlpath`~
  15598. test -d \$dldir || mkdir -p \$dldir~
  15599. $install_prog $dir/$dlname \$dldir/$dlname~
  15600. chmod a+x \$dldir/$dlname'
  15601. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15602. dlpath=$dir/\$dldll~
  15603. $rm \$dlpath'
  15604. shlibpath_overrides_runpath=yes
  15605. case $host_os in
  15606. cygwin*)
  15607. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15608. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15609. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15610. ;;
  15611. mingw*)
  15612. # MinGW DLLs use traditional 'lib' prefix
  15613. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15614. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15615. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15616. # It is most probably a Windows format PATH printed by
  15617. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15618. # path with ; separators, and with drive letters. We can handle the
  15619. # drive letters (cygwin fileutils understands them), so leave them,
  15620. # especially as we might pass files found there to a mingw objdump,
  15621. # which wouldn't understand a cygwinified path. Ahh.
  15622. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15623. else
  15624. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15625. fi
  15626. ;;
  15627. pw32*)
  15628. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15629. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15630. ;;
  15631. esac
  15632. ;;
  15633. *)
  15634. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15635. ;;
  15636. esac
  15637. dynamic_linker='Win32 ld.exe'
  15638. # FIXME: first we should search . and the directory the executable is in
  15639. shlibpath_var=PATH
  15640. ;;
  15641. darwin* | rhapsody*)
  15642. dynamic_linker="$host_os dyld"
  15643. version_type=darwin
  15644. need_lib_prefix=no
  15645. need_version=no
  15646. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15647. soname_spec='${libname}${release}${major}$shared_ext'
  15648. shlibpath_overrides_runpath=yes
  15649. shlibpath_var=DYLD_LIBRARY_PATH
  15650. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15651. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15652. if test "$GCC" = yes; then
  15653. 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"`
  15654. else
  15655. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15656. fi
  15657. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15658. ;;
  15659. dgux*)
  15660. version_type=linux
  15661. need_lib_prefix=no
  15662. need_version=no
  15663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15664. soname_spec='${libname}${release}${shared_ext}$major'
  15665. shlibpath_var=LD_LIBRARY_PATH
  15666. ;;
  15667. freebsd1*)
  15668. dynamic_linker=no
  15669. ;;
  15670. kfreebsd*-gnu)
  15671. version_type=linux
  15672. need_lib_prefix=no
  15673. need_version=no
  15674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15675. soname_spec='${libname}${release}${shared_ext}$major'
  15676. shlibpath_var=LD_LIBRARY_PATH
  15677. shlibpath_overrides_runpath=no
  15678. hardcode_into_libs=yes
  15679. dynamic_linker='GNU ld.so'
  15680. ;;
  15681. freebsd* | dragonfly*)
  15682. # DragonFly does not have aout. When/if they implement a new
  15683. # versioning mechanism, adjust this.
  15684. if test -x /usr/bin/objformat; then
  15685. objformat=`/usr/bin/objformat`
  15686. else
  15687. case $host_os in
  15688. freebsd[123]*) objformat=aout ;;
  15689. *) objformat=elf ;;
  15690. esac
  15691. fi
  15692. version_type=freebsd-$objformat
  15693. case $version_type in
  15694. freebsd-elf*)
  15695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15696. need_version=no
  15697. need_lib_prefix=no
  15698. ;;
  15699. freebsd-*)
  15700. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15701. need_version=yes
  15702. ;;
  15703. esac
  15704. shlibpath_var=LD_LIBRARY_PATH
  15705. case $host_os in
  15706. freebsd2*)
  15707. shlibpath_overrides_runpath=yes
  15708. ;;
  15709. freebsd3.[01]* | freebsdelf3.[01]*)
  15710. shlibpath_overrides_runpath=yes
  15711. hardcode_into_libs=yes
  15712. ;;
  15713. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15714. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15715. shlibpath_overrides_runpath=no
  15716. hardcode_into_libs=yes
  15717. ;;
  15718. freebsd*) # from 4.6 on
  15719. shlibpath_overrides_runpath=yes
  15720. hardcode_into_libs=yes
  15721. ;;
  15722. esac
  15723. ;;
  15724. gnu*)
  15725. version_type=linux
  15726. need_lib_prefix=no
  15727. need_version=no
  15728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15729. soname_spec='${libname}${release}${shared_ext}$major'
  15730. shlibpath_var=LD_LIBRARY_PATH
  15731. hardcode_into_libs=yes
  15732. ;;
  15733. hpux9* | hpux10* | hpux11*)
  15734. # Give a soname corresponding to the major version so that dld.sl refuses to
  15735. # link against other versions.
  15736. version_type=sunos
  15737. need_lib_prefix=no
  15738. need_version=no
  15739. case $host_cpu in
  15740. ia64*)
  15741. shrext_cmds='.so'
  15742. hardcode_into_libs=yes
  15743. dynamic_linker="$host_os dld.so"
  15744. shlibpath_var=LD_LIBRARY_PATH
  15745. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15747. soname_spec='${libname}${release}${shared_ext}$major'
  15748. if test "X$HPUX_IA64_MODE" = X32; then
  15749. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15750. else
  15751. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15752. fi
  15753. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15754. ;;
  15755. hppa*64*)
  15756. shrext_cmds='.sl'
  15757. hardcode_into_libs=yes
  15758. dynamic_linker="$host_os dld.sl"
  15759. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15760. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15762. soname_spec='${libname}${release}${shared_ext}$major'
  15763. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15764. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15765. ;;
  15766. *)
  15767. shrext_cmds='.sl'
  15768. dynamic_linker="$host_os dld.sl"
  15769. shlibpath_var=SHLIB_PATH
  15770. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15772. soname_spec='${libname}${release}${shared_ext}$major'
  15773. ;;
  15774. esac
  15775. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15776. postinstall_cmds='chmod 555 $lib'
  15777. ;;
  15778. interix3*)
  15779. version_type=linux
  15780. need_lib_prefix=no
  15781. need_version=no
  15782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15783. soname_spec='${libname}${release}${shared_ext}$major'
  15784. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15785. shlibpath_var=LD_LIBRARY_PATH
  15786. shlibpath_overrides_runpath=no
  15787. hardcode_into_libs=yes
  15788. ;;
  15789. irix5* | irix6* | nonstopux*)
  15790. case $host_os in
  15791. nonstopux*) version_type=nonstopux ;;
  15792. *)
  15793. if test "$lt_cv_prog_gnu_ld" = yes; then
  15794. version_type=linux
  15795. else
  15796. version_type=irix
  15797. fi ;;
  15798. esac
  15799. need_lib_prefix=no
  15800. need_version=no
  15801. soname_spec='${libname}${release}${shared_ext}$major'
  15802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15803. case $host_os in
  15804. irix5* | nonstopux*)
  15805. libsuff= shlibsuff=
  15806. ;;
  15807. *)
  15808. case $LD in # libtool.m4 will add one of these switches to LD
  15809. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15810. libsuff= shlibsuff= libmagic=32-bit;;
  15811. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15812. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15813. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15814. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15815. *) libsuff= shlibsuff= libmagic=never-match;;
  15816. esac
  15817. ;;
  15818. esac
  15819. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15820. shlibpath_overrides_runpath=no
  15821. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15822. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15823. hardcode_into_libs=yes
  15824. ;;
  15825. # No shared lib support for Linux oldld, aout, or coff.
  15826. linux*oldld* | linux*aout* | linux*coff*)
  15827. dynamic_linker=no
  15828. ;;
  15829. # This must be Linux ELF.
  15830. linux*)
  15831. version_type=linux
  15832. need_lib_prefix=no
  15833. need_version=no
  15834. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15835. soname_spec='${libname}${release}${shared_ext}$major'
  15836. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15837. shlibpath_var=LD_LIBRARY_PATH
  15838. shlibpath_overrides_runpath=no
  15839. # This implies no fast_install, which is unacceptable.
  15840. # Some rework will be needed to allow for fast_install
  15841. # before this can be enabled.
  15842. hardcode_into_libs=yes
  15843. # find out which ABI we are using
  15844. libsuff=
  15845. case "$host_cpu" in
  15846. x86_64*|s390x*|powerpc64*)
  15847. echo '#line 17611 "configure"' > conftest.$ac_ext
  15848. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15849. (eval $ac_compile) 2>&5
  15850. ac_status=$?
  15851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15852. (exit $ac_status); }; then
  15853. case `/usr/bin/file conftest.$ac_objext` in
  15854. *64-bit*)
  15855. libsuff=64
  15856. sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  15857. ;;
  15858. esac
  15859. fi
  15860. rm -rf conftest*
  15861. ;;
  15862. esac
  15863. # Append ld.so.conf contents to the search path
  15864. if test -f /etc/ld.so.conf; then
  15865. 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' ' '`
  15866. sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  15867. fi
  15868. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15869. # powerpc, because MkLinux only supported shared libraries with the
  15870. # GNU dynamic linker. Since this was broken with cross compilers,
  15871. # most powerpc-linux boxes support dynamic linking these days and
  15872. # people can always --disable-shared, the test was removed, and we
  15873. # assume the GNU/Linux dynamic linker is in use.
  15874. dynamic_linker='GNU/Linux ld.so'
  15875. ;;
  15876. knetbsd*-gnu)
  15877. version_type=linux
  15878. need_lib_prefix=no
  15879. need_version=no
  15880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15881. soname_spec='${libname}${release}${shared_ext}$major'
  15882. shlibpath_var=LD_LIBRARY_PATH
  15883. shlibpath_overrides_runpath=no
  15884. hardcode_into_libs=yes
  15885. dynamic_linker='GNU ld.so'
  15886. ;;
  15887. netbsd*)
  15888. version_type=sunos
  15889. need_lib_prefix=no
  15890. need_version=no
  15891. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15892. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15893. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15894. dynamic_linker='NetBSD (a.out) ld.so'
  15895. else
  15896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15897. soname_spec='${libname}${release}${shared_ext}$major'
  15898. dynamic_linker='NetBSD ld.elf_so'
  15899. fi
  15900. shlibpath_var=LD_LIBRARY_PATH
  15901. shlibpath_overrides_runpath=yes
  15902. hardcode_into_libs=yes
  15903. ;;
  15904. newsos6)
  15905. version_type=linux
  15906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15907. shlibpath_var=LD_LIBRARY_PATH
  15908. shlibpath_overrides_runpath=yes
  15909. ;;
  15910. nto-qnx*)
  15911. version_type=linux
  15912. need_lib_prefix=no
  15913. need_version=no
  15914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15915. soname_spec='${libname}${release}${shared_ext}$major'
  15916. shlibpath_var=LD_LIBRARY_PATH
  15917. shlibpath_overrides_runpath=yes
  15918. ;;
  15919. openbsd*)
  15920. version_type=sunos
  15921. sys_lib_dlsearch_path_spec="/usr/lib"
  15922. need_lib_prefix=no
  15923. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15924. case $host_os in
  15925. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15926. *) need_version=no ;;
  15927. esac
  15928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15929. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15930. shlibpath_var=LD_LIBRARY_PATH
  15931. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15932. case $host_os in
  15933. openbsd2.[89] | openbsd2.[89].*)
  15934. shlibpath_overrides_runpath=no
  15935. ;;
  15936. *)
  15937. shlibpath_overrides_runpath=yes
  15938. ;;
  15939. esac
  15940. else
  15941. shlibpath_overrides_runpath=yes
  15942. fi
  15943. ;;
  15944. os2*)
  15945. libname_spec='$name'
  15946. shrext_cmds=".dll"
  15947. need_lib_prefix=no
  15948. library_names_spec='$libname${shared_ext} $libname.a'
  15949. dynamic_linker='OS/2 ld.exe'
  15950. shlibpath_var=LIBPATH
  15951. ;;
  15952. osf3* | osf4* | osf5*)
  15953. version_type=osf
  15954. need_lib_prefix=no
  15955. need_version=no
  15956. soname_spec='${libname}${release}${shared_ext}$major'
  15957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15958. shlibpath_var=LD_LIBRARY_PATH
  15959. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15960. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15961. ;;
  15962. solaris*)
  15963. version_type=linux
  15964. need_lib_prefix=no
  15965. need_version=no
  15966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15967. soname_spec='${libname}${release}${shared_ext}$major'
  15968. shlibpath_var=LD_LIBRARY_PATH
  15969. shlibpath_overrides_runpath=yes
  15970. hardcode_into_libs=yes
  15971. # ldd complains unless libraries are executable
  15972. postinstall_cmds='chmod +x $lib'
  15973. ;;
  15974. sunos4*)
  15975. version_type=sunos
  15976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15977. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15978. shlibpath_var=LD_LIBRARY_PATH
  15979. shlibpath_overrides_runpath=yes
  15980. if test "$with_gnu_ld" = yes; then
  15981. need_lib_prefix=no
  15982. fi
  15983. need_version=yes
  15984. ;;
  15985. sysv4 | sysv4.3*)
  15986. version_type=linux
  15987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15988. soname_spec='${libname}${release}${shared_ext}$major'
  15989. shlibpath_var=LD_LIBRARY_PATH
  15990. case $host_vendor in
  15991. sni)
  15992. shlibpath_overrides_runpath=no
  15993. need_lib_prefix=no
  15994. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15995. runpath_var=LD_RUN_PATH
  15996. ;;
  15997. siemens)
  15998. need_lib_prefix=no
  15999. ;;
  16000. motorola)
  16001. need_lib_prefix=no
  16002. need_version=no
  16003. shlibpath_overrides_runpath=no
  16004. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16005. ;;
  16006. esac
  16007. ;;
  16008. sysv4*MP*)
  16009. if test -d /usr/nec ;then
  16010. version_type=linux
  16011. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16012. soname_spec='$libname${shared_ext}.$major'
  16013. shlibpath_var=LD_LIBRARY_PATH
  16014. fi
  16015. ;;
  16016. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16017. version_type=freebsd-elf
  16018. need_lib_prefix=no
  16019. need_version=no
  16020. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16021. soname_spec='${libname}${release}${shared_ext}$major'
  16022. shlibpath_var=LD_LIBRARY_PATH
  16023. hardcode_into_libs=yes
  16024. if test "$with_gnu_ld" = yes; then
  16025. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16026. shlibpath_overrides_runpath=no
  16027. else
  16028. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16029. shlibpath_overrides_runpath=yes
  16030. case $host_os in
  16031. sco3.2v5*)
  16032. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16033. ;;
  16034. esac
  16035. fi
  16036. sys_lib_dlsearch_path_spec='/usr/lib'
  16037. ;;
  16038. uts4*)
  16039. version_type=linux
  16040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16041. soname_spec='${libname}${release}${shared_ext}$major'
  16042. shlibpath_var=LD_LIBRARY_PATH
  16043. ;;
  16044. *)
  16045. dynamic_linker=no
  16046. ;;
  16047. esac
  16048. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16049. echo "${ECHO_T}$dynamic_linker" >&6
  16050. test "$dynamic_linker" = no && can_build_shared=no
  16051. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16052. if test "$GCC" = yes; then
  16053. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16054. fi
  16055. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16056. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  16057. hardcode_action_GCJ=
  16058. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16059. test -n "$runpath_var_GCJ" || \
  16060. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16061. # We can hardcode non-existant directories.
  16062. if test "$hardcode_direct_GCJ" != no &&
  16063. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16064. # have to relink, otherwise we might link with an installed library
  16065. # when we should be linking with a yet-to-be-installed one
  16066. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16067. test "$hardcode_minus_L_GCJ" != no; then
  16068. # Linking always hardcodes the temporary library directory.
  16069. hardcode_action_GCJ=relink
  16070. else
  16071. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16072. hardcode_action_GCJ=immediate
  16073. fi
  16074. else
  16075. # We cannot hardcode anything, or else we can only hardcode existing
  16076. # directories.
  16077. hardcode_action_GCJ=unsupported
  16078. fi
  16079. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16080. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  16081. if test "$hardcode_action_GCJ" = relink; then
  16082. # Fast installation is not supported
  16083. enable_fast_install=no
  16084. elif test "$shlibpath_overrides_runpath" = yes ||
  16085. test "$enable_shared" = no; then
  16086. # Fast installation is not necessary
  16087. enable_fast_install=needless
  16088. fi
  16089. # The else clause should only fire when bootstrapping the
  16090. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16091. # with your package, and you will get complaints that there are
  16092. # no rules to generate ltmain.sh.
  16093. if test -f "$ltmain"; then
  16094. # See if we are running on zsh, and set the options which allow our commands through
  16095. # without removal of \ escapes.
  16096. if test -n "${ZSH_VERSION+set}" ; then
  16097. setopt NO_GLOB_SUBST
  16098. fi
  16099. # Now quote all the things that may contain metacharacters while being
  16100. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16101. # variables and quote the copies for generation of the libtool script.
  16102. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16103. SED SHELL STRIP \
  16104. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16105. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16106. deplibs_check_method reload_flag reload_cmds need_locks \
  16107. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16108. lt_cv_sys_global_symbol_to_c_name_address \
  16109. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16110. old_postinstall_cmds old_postuninstall_cmds \
  16111. compiler_GCJ \
  16112. CC_GCJ \
  16113. LD_GCJ \
  16114. lt_prog_compiler_wl_GCJ \
  16115. lt_prog_compiler_pic_GCJ \
  16116. lt_prog_compiler_static_GCJ \
  16117. lt_prog_compiler_no_builtin_flag_GCJ \
  16118. export_dynamic_flag_spec_GCJ \
  16119. thread_safe_flag_spec_GCJ \
  16120. whole_archive_flag_spec_GCJ \
  16121. enable_shared_with_static_runtimes_GCJ \
  16122. old_archive_cmds_GCJ \
  16123. old_archive_from_new_cmds_GCJ \
  16124. predep_objects_GCJ \
  16125. postdep_objects_GCJ \
  16126. predeps_GCJ \
  16127. postdeps_GCJ \
  16128. compiler_lib_search_path_GCJ \
  16129. archive_cmds_GCJ \
  16130. archive_expsym_cmds_GCJ \
  16131. postinstall_cmds_GCJ \
  16132. postuninstall_cmds_GCJ \
  16133. old_archive_from_expsyms_cmds_GCJ \
  16134. allow_undefined_flag_GCJ \
  16135. no_undefined_flag_GCJ \
  16136. export_symbols_cmds_GCJ \
  16137. hardcode_libdir_flag_spec_GCJ \
  16138. hardcode_libdir_flag_spec_ld_GCJ \
  16139. hardcode_libdir_separator_GCJ \
  16140. hardcode_automatic_GCJ \
  16141. module_cmds_GCJ \
  16142. module_expsym_cmds_GCJ \
  16143. lt_cv_prog_compiler_c_o_GCJ \
  16144. exclude_expsyms_GCJ \
  16145. include_expsyms_GCJ; do
  16146. case $var in
  16147. old_archive_cmds_GCJ | \
  16148. old_archive_from_new_cmds_GCJ | \
  16149. archive_cmds_GCJ | \
  16150. archive_expsym_cmds_GCJ | \
  16151. module_cmds_GCJ | \
  16152. module_expsym_cmds_GCJ | \
  16153. old_archive_from_expsyms_cmds_GCJ | \
  16154. export_symbols_cmds_GCJ | \
  16155. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16156. postinstall_cmds | postuninstall_cmds | \
  16157. old_postinstall_cmds | old_postuninstall_cmds | \
  16158. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16159. # Double-quote double-evaled strings.
  16160. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16161. ;;
  16162. *)
  16163. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16164. ;;
  16165. esac
  16166. done
  16167. case $lt_echo in
  16168. *'\$0 --fallback-echo"')
  16169. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16170. ;;
  16171. esac
  16172. cfgfile="$ofile"
  16173. cat <<__EOF__ >> "$cfgfile"
  16174. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16175. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16176. # Shell to use when invoking shell scripts.
  16177. SHELL=$lt_SHELL
  16178. # Whether or not to build shared libraries.
  16179. build_libtool_libs=$enable_shared
  16180. # Whether or not to build static libraries.
  16181. build_old_libs=$enable_static
  16182. # Whether or not to add -lc for building shared libraries.
  16183. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16184. # Whether or not to disallow shared libs when runtime libs are static
  16185. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16186. # Whether or not to optimize for fast installation.
  16187. fast_install=$enable_fast_install
  16188. # The host system.
  16189. host_alias=$host_alias
  16190. host=$host
  16191. host_os=$host_os
  16192. # The build system.
  16193. build_alias=$build_alias
  16194. build=$build
  16195. build_os=$build_os
  16196. # An echo program that does not interpret backslashes.
  16197. echo=$lt_echo
  16198. # The archiver.
  16199. AR=$lt_AR
  16200. AR_FLAGS=$lt_AR_FLAGS
  16201. # A C compiler.
  16202. LTCC=$lt_LTCC
  16203. # LTCC compiler flags.
  16204. LTCFLAGS=$lt_LTCFLAGS
  16205. # A language-specific compiler.
  16206. CC=$lt_compiler_GCJ
  16207. # Is the compiler the GNU C compiler?
  16208. with_gcc=$GCC_GCJ
  16209. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16210. gcc_ver=\`gcc -dumpversion\`
  16211. # An ERE matcher.
  16212. EGREP=$lt_EGREP
  16213. # The linker used to build libraries.
  16214. LD=$lt_LD_GCJ
  16215. # Whether we need hard or soft links.
  16216. LN_S=$lt_LN_S
  16217. # A BSD-compatible nm program.
  16218. NM=$lt_NM
  16219. # A symbol stripping program
  16220. STRIP=$lt_STRIP
  16221. # Used to examine libraries when file_magic_cmd begins "file"
  16222. MAGIC_CMD=$MAGIC_CMD
  16223. # Used on cygwin: DLL creation program.
  16224. DLLTOOL="$DLLTOOL"
  16225. # Used on cygwin: object dumper.
  16226. OBJDUMP="$OBJDUMP"
  16227. # Used on cygwin: assembler.
  16228. AS="$AS"
  16229. # The name of the directory that contains temporary libtool files.
  16230. objdir=$objdir
  16231. # How to create reloadable object files.
  16232. reload_flag=$lt_reload_flag
  16233. reload_cmds=$lt_reload_cmds
  16234. # How to pass a linker flag through the compiler.
  16235. wl=$lt_lt_prog_compiler_wl_GCJ
  16236. # Object file suffix (normally "o").
  16237. objext="$ac_objext"
  16238. # Old archive suffix (normally "a").
  16239. libext="$libext"
  16240. # Shared library suffix (normally ".so").
  16241. shrext_cmds='$shrext_cmds'
  16242. # Executable file suffix (normally "").
  16243. exeext="$exeext"
  16244. # Additional compiler flags for building library objects.
  16245. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16246. pic_mode=$pic_mode
  16247. # What is the maximum length of a command?
  16248. max_cmd_len=$lt_cv_sys_max_cmd_len
  16249. # Does compiler simultaneously support -c and -o options?
  16250. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16251. # Must we lock files when doing compilation?
  16252. need_locks=$lt_need_locks
  16253. # Do we need the lib prefix for modules?
  16254. need_lib_prefix=$need_lib_prefix
  16255. # Do we need a version for libraries?
  16256. need_version=$need_version
  16257. # Whether dlopen is supported.
  16258. dlopen_support=$enable_dlopen
  16259. # Whether dlopen of programs is supported.
  16260. dlopen_self=$enable_dlopen_self
  16261. # Whether dlopen of statically linked programs is supported.
  16262. dlopen_self_static=$enable_dlopen_self_static
  16263. # Compiler flag to prevent dynamic linking.
  16264. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16265. # Compiler flag to turn off builtin functions.
  16266. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16267. # Compiler flag to allow reflexive dlopens.
  16268. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16269. # Compiler flag to generate shared objects directly from archives.
  16270. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16271. # Compiler flag to generate thread-safe objects.
  16272. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16273. # Library versioning type.
  16274. version_type=$version_type
  16275. # Format of library name prefix.
  16276. libname_spec=$lt_libname_spec
  16277. # List of archive names. First name is the real one, the rest are links.
  16278. # The last name is the one that the linker finds with -lNAME.
  16279. library_names_spec=$lt_library_names_spec
  16280. # The coded name of the library, if different from the real name.
  16281. soname_spec=$lt_soname_spec
  16282. # Commands used to build and install an old-style archive.
  16283. RANLIB=$lt_RANLIB
  16284. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16285. old_postinstall_cmds=$lt_old_postinstall_cmds
  16286. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16287. # Create an old-style archive from a shared archive.
  16288. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16289. # Create a temporary old-style archive to link instead of a shared archive.
  16290. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16291. # Commands used to build and install a shared archive.
  16292. archive_cmds=$lt_archive_cmds_GCJ
  16293. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16294. postinstall_cmds=$lt_postinstall_cmds
  16295. postuninstall_cmds=$lt_postuninstall_cmds
  16296. # Commands used to build a loadable module (assumed same as above if empty)
  16297. module_cmds=$lt_module_cmds_GCJ
  16298. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16299. # Commands to strip libraries.
  16300. old_striplib=$lt_old_striplib
  16301. striplib=$lt_striplib
  16302. # Dependencies to place before the objects being linked to create a
  16303. # shared library.
  16304. predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16305. # Dependencies to place after the objects being linked to create a
  16306. # shared library.
  16307. postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16308. # Dependencies to place before the objects being linked to create a
  16309. # shared library.
  16310. predeps=$lt_predeps_GCJ
  16311. # Dependencies to place after the objects being linked to create a
  16312. # shared library.
  16313. postdeps=$lt_postdeps_GCJ
  16314. # The library search path used internally by the compiler when linking
  16315. # a shared library.
  16316. 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"\`
  16317. # Method to check whether dependent libraries are shared objects.
  16318. deplibs_check_method=$lt_deplibs_check_method
  16319. # Command to use when deplibs_check_method == file_magic.
  16320. file_magic_cmd=$lt_file_magic_cmd
  16321. # Flag that allows shared libraries with undefined symbols to be built.
  16322. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16323. # Flag that forces no undefined symbols.
  16324. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16325. # Commands used to finish a libtool library installation in a directory.
  16326. finish_cmds=$lt_finish_cmds
  16327. # Same as above, but a single script fragment to be evaled but not shown.
  16328. finish_eval=$lt_finish_eval
  16329. # Take the output of nm and produce a listing of raw symbols and C names.
  16330. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16331. # Transform the output of nm in a proper C declaration
  16332. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16333. # Transform the output of nm in a C name address pair
  16334. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16335. # This is the shared library runtime path variable.
  16336. runpath_var=$runpath_var
  16337. # This is the shared library path variable.
  16338. shlibpath_var=$shlibpath_var
  16339. # Is shlibpath searched before the hard-coded library search path?
  16340. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16341. # How to hardcode a shared library path into an executable.
  16342. hardcode_action=$hardcode_action_GCJ
  16343. # Whether we should hardcode library paths into libraries.
  16344. hardcode_into_libs=$hardcode_into_libs
  16345. # Flag to hardcode \$libdir into a binary during linking.
  16346. # This must work even if \$libdir does not exist.
  16347. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16348. # If ld is used when linking, flag to hardcode \$libdir into
  16349. # a binary during linking. This must work even if \$libdir does
  16350. # not exist.
  16351. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16352. # Whether we need a single -rpath flag with a separated argument.
  16353. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16354. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16355. # resulting binary.
  16356. hardcode_direct=$hardcode_direct_GCJ
  16357. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16358. # resulting binary.
  16359. hardcode_minus_L=$hardcode_minus_L_GCJ
  16360. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16361. # the resulting binary.
  16362. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16363. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16364. # and all subsequent libraries and executables linked against it.
  16365. hardcode_automatic=$hardcode_automatic_GCJ
  16366. # Variables whose values should be saved in libtool wrapper scripts and
  16367. # restored at relink time.
  16368. variables_saved_for_relink="$variables_saved_for_relink"
  16369. # Whether libtool must link a program against all its dependency libraries.
  16370. link_all_deplibs=$link_all_deplibs_GCJ
  16371. # Compile-time system search path for libraries
  16372. 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"\`
  16373. # Run-time system search path for libraries
  16374. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16375. # Fix the shell variable \$srcfile for the compiler.
  16376. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16377. # Set to yes if exported symbols are required.
  16378. always_export_symbols=$always_export_symbols_GCJ
  16379. # The commands to list exported symbols.
  16380. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16381. # The commands to extract the exported symbol list from a shared archive.
  16382. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16383. # Symbols that should not be listed in the preloaded symbols.
  16384. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16385. # Symbols that must always be exported.
  16386. include_expsyms=$lt_include_expsyms_GCJ
  16387. # ### END LIBTOOL TAG CONFIG: $tagname
  16388. __EOF__
  16389. else
  16390. # If there is no Makefile yet, we rely on a make rule to execute
  16391. # `config.status --recheck' to rerun these tests and create the
  16392. # libtool script then.
  16393. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16394. if test -f "$ltmain_in"; then
  16395. test -f Makefile && make "$ltmain"
  16396. fi
  16397. fi
  16398. ac_ext=c
  16399. ac_cpp='$CPP $CPPFLAGS'
  16400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16403. CC="$lt_save_CC"
  16404. else
  16405. tagname=""
  16406. fi
  16407. ;;
  16408. RC)
  16409. # Source file extension for RC test sources.
  16410. ac_ext=rc
  16411. # Object file extension for compiled RC test sources.
  16412. objext=o
  16413. objext_RC=$objext
  16414. # Code to be used in simple compile tests
  16415. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16416. # Code to be used in simple link tests
  16417. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16418. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16419. # If no C compiler was specified, use CC.
  16420. LTCC=${LTCC-"$CC"}
  16421. # If no C compiler flags were specified, use CFLAGS.
  16422. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16423. # Allow CC to be a program name with arguments.
  16424. compiler=$CC
  16425. # save warnings/boilerplate of simple test code
  16426. ac_outfile=conftest.$ac_objext
  16427. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16428. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16429. _lt_compiler_boilerplate=`cat conftest.err`
  16430. $rm conftest*
  16431. ac_outfile=conftest.$ac_objext
  16432. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16433. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16434. _lt_linker_boilerplate=`cat conftest.err`
  16435. $rm conftest*
  16436. # Allow CC to be a program name with arguments.
  16437. lt_save_CC="$CC"
  16438. CC=${RC-"windres"}
  16439. compiler=$CC
  16440. compiler_RC=$CC
  16441. for cc_temp in $compiler""; do
  16442. case $cc_temp in
  16443. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16444. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16445. \-*) ;;
  16446. *) break;;
  16447. esac
  16448. done
  16449. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16450. lt_cv_prog_compiler_c_o_RC=yes
  16451. # The else clause should only fire when bootstrapping the
  16452. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16453. # with your package, and you will get complaints that there are
  16454. # no rules to generate ltmain.sh.
  16455. if test -f "$ltmain"; then
  16456. # See if we are running on zsh, and set the options which allow our commands through
  16457. # without removal of \ escapes.
  16458. if test -n "${ZSH_VERSION+set}" ; then
  16459. setopt NO_GLOB_SUBST
  16460. fi
  16461. # Now quote all the things that may contain metacharacters while being
  16462. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16463. # variables and quote the copies for generation of the libtool script.
  16464. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16465. SED SHELL STRIP \
  16466. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16467. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16468. deplibs_check_method reload_flag reload_cmds need_locks \
  16469. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16470. lt_cv_sys_global_symbol_to_c_name_address \
  16471. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16472. old_postinstall_cmds old_postuninstall_cmds \
  16473. compiler_RC \
  16474. CC_RC \
  16475. LD_RC \
  16476. lt_prog_compiler_wl_RC \
  16477. lt_prog_compiler_pic_RC \
  16478. lt_prog_compiler_static_RC \
  16479. lt_prog_compiler_no_builtin_flag_RC \
  16480. export_dynamic_flag_spec_RC \
  16481. thread_safe_flag_spec_RC \
  16482. whole_archive_flag_spec_RC \
  16483. enable_shared_with_static_runtimes_RC \
  16484. old_archive_cmds_RC \
  16485. old_archive_from_new_cmds_RC \
  16486. predep_objects_RC \
  16487. postdep_objects_RC \
  16488. predeps_RC \
  16489. postdeps_RC \
  16490. compiler_lib_search_path_RC \
  16491. archive_cmds_RC \
  16492. archive_expsym_cmds_RC \
  16493. postinstall_cmds_RC \
  16494. postuninstall_cmds_RC \
  16495. old_archive_from_expsyms_cmds_RC \
  16496. allow_undefined_flag_RC \
  16497. no_undefined_flag_RC \
  16498. export_symbols_cmds_RC \
  16499. hardcode_libdir_flag_spec_RC \
  16500. hardcode_libdir_flag_spec_ld_RC \
  16501. hardcode_libdir_separator_RC \
  16502. hardcode_automatic_RC \
  16503. module_cmds_RC \
  16504. module_expsym_cmds_RC \
  16505. lt_cv_prog_compiler_c_o_RC \
  16506. exclude_expsyms_RC \
  16507. include_expsyms_RC; do
  16508. case $var in
  16509. old_archive_cmds_RC | \
  16510. old_archive_from_new_cmds_RC | \
  16511. archive_cmds_RC | \
  16512. archive_expsym_cmds_RC | \
  16513. module_cmds_RC | \
  16514. module_expsym_cmds_RC | \
  16515. old_archive_from_expsyms_cmds_RC | \
  16516. export_symbols_cmds_RC | \
  16517. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16518. postinstall_cmds | postuninstall_cmds | \
  16519. old_postinstall_cmds | old_postuninstall_cmds | \
  16520. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16521. # Double-quote double-evaled strings.
  16522. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16523. ;;
  16524. *)
  16525. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16526. ;;
  16527. esac
  16528. done
  16529. case $lt_echo in
  16530. *'\$0 --fallback-echo"')
  16531. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16532. ;;
  16533. esac
  16534. cfgfile="$ofile"
  16535. cat <<__EOF__ >> "$cfgfile"
  16536. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16537. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16538. # Shell to use when invoking shell scripts.
  16539. SHELL=$lt_SHELL
  16540. # Whether or not to build shared libraries.
  16541. build_libtool_libs=$enable_shared
  16542. # Whether or not to build static libraries.
  16543. build_old_libs=$enable_static
  16544. # Whether or not to add -lc for building shared libraries.
  16545. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16546. # Whether or not to disallow shared libs when runtime libs are static
  16547. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16548. # Whether or not to optimize for fast installation.
  16549. fast_install=$enable_fast_install
  16550. # The host system.
  16551. host_alias=$host_alias
  16552. host=$host
  16553. host_os=$host_os
  16554. # The build system.
  16555. build_alias=$build_alias
  16556. build=$build
  16557. build_os=$build_os
  16558. # An echo program that does not interpret backslashes.
  16559. echo=$lt_echo
  16560. # The archiver.
  16561. AR=$lt_AR
  16562. AR_FLAGS=$lt_AR_FLAGS
  16563. # A C compiler.
  16564. LTCC=$lt_LTCC
  16565. # LTCC compiler flags.
  16566. LTCFLAGS=$lt_LTCFLAGS
  16567. # A language-specific compiler.
  16568. CC=$lt_compiler_RC
  16569. # Is the compiler the GNU C compiler?
  16570. with_gcc=$GCC_RC
  16571. gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
  16572. gcc_ver=\`gcc -dumpversion\`
  16573. # An ERE matcher.
  16574. EGREP=$lt_EGREP
  16575. # The linker used to build libraries.
  16576. LD=$lt_LD_RC
  16577. # Whether we need hard or soft links.
  16578. LN_S=$lt_LN_S
  16579. # A BSD-compatible nm program.
  16580. NM=$lt_NM
  16581. # A symbol stripping program
  16582. STRIP=$lt_STRIP
  16583. # Used to examine libraries when file_magic_cmd begins "file"
  16584. MAGIC_CMD=$MAGIC_CMD
  16585. # Used on cygwin: DLL creation program.
  16586. DLLTOOL="$DLLTOOL"
  16587. # Used on cygwin: object dumper.
  16588. OBJDUMP="$OBJDUMP"
  16589. # Used on cygwin: assembler.
  16590. AS="$AS"
  16591. # The name of the directory that contains temporary libtool files.
  16592. objdir=$objdir
  16593. # How to create reloadable object files.
  16594. reload_flag=$lt_reload_flag
  16595. reload_cmds=$lt_reload_cmds
  16596. # How to pass a linker flag through the compiler.
  16597. wl=$lt_lt_prog_compiler_wl_RC
  16598. # Object file suffix (normally "o").
  16599. objext="$ac_objext"
  16600. # Old archive suffix (normally "a").
  16601. libext="$libext"
  16602. # Shared library suffix (normally ".so").
  16603. shrext_cmds='$shrext_cmds'
  16604. # Executable file suffix (normally "").
  16605. exeext="$exeext"
  16606. # Additional compiler flags for building library objects.
  16607. pic_flag=$lt_lt_prog_compiler_pic_RC
  16608. pic_mode=$pic_mode
  16609. # What is the maximum length of a command?
  16610. max_cmd_len=$lt_cv_sys_max_cmd_len
  16611. # Does compiler simultaneously support -c and -o options?
  16612. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16613. # Must we lock files when doing compilation?
  16614. need_locks=$lt_need_locks
  16615. # Do we need the lib prefix for modules?
  16616. need_lib_prefix=$need_lib_prefix
  16617. # Do we need a version for libraries?
  16618. need_version=$need_version
  16619. # Whether dlopen is supported.
  16620. dlopen_support=$enable_dlopen
  16621. # Whether dlopen of programs is supported.
  16622. dlopen_self=$enable_dlopen_self
  16623. # Whether dlopen of statically linked programs is supported.
  16624. dlopen_self_static=$enable_dlopen_self_static
  16625. # Compiler flag to prevent dynamic linking.
  16626. link_static_flag=$lt_lt_prog_compiler_static_RC
  16627. # Compiler flag to turn off builtin functions.
  16628. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16629. # Compiler flag to allow reflexive dlopens.
  16630. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16631. # Compiler flag to generate shared objects directly from archives.
  16632. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16633. # Compiler flag to generate thread-safe objects.
  16634. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16635. # Library versioning type.
  16636. version_type=$version_type
  16637. # Format of library name prefix.
  16638. libname_spec=$lt_libname_spec
  16639. # List of archive names. First name is the real one, the rest are links.
  16640. # The last name is the one that the linker finds with -lNAME.
  16641. library_names_spec=$lt_library_names_spec
  16642. # The coded name of the library, if different from the real name.
  16643. soname_spec=$lt_soname_spec
  16644. # Commands used to build and install an old-style archive.
  16645. RANLIB=$lt_RANLIB
  16646. old_archive_cmds=$lt_old_archive_cmds_RC
  16647. old_postinstall_cmds=$lt_old_postinstall_cmds
  16648. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16649. # Create an old-style archive from a shared archive.
  16650. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16651. # Create a temporary old-style archive to link instead of a shared archive.
  16652. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16653. # Commands used to build and install a shared archive.
  16654. archive_cmds=$lt_archive_cmds_RC
  16655. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16656. postinstall_cmds=$lt_postinstall_cmds
  16657. postuninstall_cmds=$lt_postuninstall_cmds
  16658. # Commands used to build a loadable module (assumed same as above if empty)
  16659. module_cmds=$lt_module_cmds_RC
  16660. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16661. # Commands to strip libraries.
  16662. old_striplib=$lt_old_striplib
  16663. striplib=$lt_striplib
  16664. # Dependencies to place before the objects being linked to create a
  16665. # shared library.
  16666. predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16667. # Dependencies to place after the objects being linked to create a
  16668. # shared library.
  16669. postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
  16670. # Dependencies to place before the objects being linked to create a
  16671. # shared library.
  16672. predeps=$lt_predeps_RC
  16673. # Dependencies to place after the objects being linked to create a
  16674. # shared library.
  16675. postdeps=$lt_postdeps_RC
  16676. # The library search path used internally by the compiler when linking
  16677. # a shared library.
  16678. 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"\`
  16679. # Method to check whether dependent libraries are shared objects.
  16680. deplibs_check_method=$lt_deplibs_check_method
  16681. # Command to use when deplibs_check_method == file_magic.
  16682. file_magic_cmd=$lt_file_magic_cmd
  16683. # Flag that allows shared libraries with undefined symbols to be built.
  16684. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16685. # Flag that forces no undefined symbols.
  16686. no_undefined_flag=$lt_no_undefined_flag_RC
  16687. # Commands used to finish a libtool library installation in a directory.
  16688. finish_cmds=$lt_finish_cmds
  16689. # Same as above, but a single script fragment to be evaled but not shown.
  16690. finish_eval=$lt_finish_eval
  16691. # Take the output of nm and produce a listing of raw symbols and C names.
  16692. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16693. # Transform the output of nm in a proper C declaration
  16694. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16695. # Transform the output of nm in a C name address pair
  16696. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16697. # This is the shared library runtime path variable.
  16698. runpath_var=$runpath_var
  16699. # This is the shared library path variable.
  16700. shlibpath_var=$shlibpath_var
  16701. # Is shlibpath searched before the hard-coded library search path?
  16702. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16703. # How to hardcode a shared library path into an executable.
  16704. hardcode_action=$hardcode_action_RC
  16705. # Whether we should hardcode library paths into libraries.
  16706. hardcode_into_libs=$hardcode_into_libs
  16707. # Flag to hardcode \$libdir into a binary during linking.
  16708. # This must work even if \$libdir does not exist.
  16709. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16710. # If ld is used when linking, flag to hardcode \$libdir into
  16711. # a binary during linking. This must work even if \$libdir does
  16712. # not exist.
  16713. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16714. # Whether we need a single -rpath flag with a separated argument.
  16715. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16716. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16717. # resulting binary.
  16718. hardcode_direct=$hardcode_direct_RC
  16719. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16720. # resulting binary.
  16721. hardcode_minus_L=$hardcode_minus_L_RC
  16722. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16723. # the resulting binary.
  16724. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16725. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16726. # and all subsequent libraries and executables linked against it.
  16727. hardcode_automatic=$hardcode_automatic_RC
  16728. # Variables whose values should be saved in libtool wrapper scripts and
  16729. # restored at relink time.
  16730. variables_saved_for_relink="$variables_saved_for_relink"
  16731. # Whether libtool must link a program against all its dependency libraries.
  16732. link_all_deplibs=$link_all_deplibs_RC
  16733. # Compile-time system search path for libraries
  16734. 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"\`
  16735. # Run-time system search path for libraries
  16736. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16737. # Fix the shell variable \$srcfile for the compiler.
  16738. fix_srcfile_path="$fix_srcfile_path_RC"
  16739. # Set to yes if exported symbols are required.
  16740. always_export_symbols=$always_export_symbols_RC
  16741. # The commands to list exported symbols.
  16742. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16743. # The commands to extract the exported symbol list from a shared archive.
  16744. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16745. # Symbols that should not be listed in the preloaded symbols.
  16746. exclude_expsyms=$lt_exclude_expsyms_RC
  16747. # Symbols that must always be exported.
  16748. include_expsyms=$lt_include_expsyms_RC
  16749. # ### END LIBTOOL TAG CONFIG: $tagname
  16750. __EOF__
  16751. else
  16752. # If there is no Makefile yet, we rely on a make rule to execute
  16753. # `config.status --recheck' to rerun these tests and create the
  16754. # libtool script then.
  16755. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16756. if test -f "$ltmain_in"; then
  16757. test -f Makefile && make "$ltmain"
  16758. fi
  16759. fi
  16760. ac_ext=c
  16761. ac_cpp='$CPP $CPPFLAGS'
  16762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16765. CC="$lt_save_CC"
  16766. ;;
  16767. *)
  16768. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16769. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16770. { (exit 1); exit 1; }; }
  16771. ;;
  16772. esac
  16773. # Append the new tag name to the list of available tags.
  16774. if test -n "$tagname" ; then
  16775. available_tags="$available_tags $tagname"
  16776. fi
  16777. fi
  16778. done
  16779. IFS="$lt_save_ifs"
  16780. # Now substitute the updated list of available tags.
  16781. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16782. mv "${ofile}T" "$ofile"
  16783. chmod +x "$ofile"
  16784. else
  16785. rm -f "${ofile}T"
  16786. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16787. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16788. { (exit 1); exit 1; }; }
  16789. fi
  16790. fi
  16791. # This can be used to rebuild libtool when needed
  16792. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16793. # Always use our own libtool.
  16794. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16795. # Prevent multiple expansion
  16796. # Checks for header files.
  16797. ac_header_dirent=no
  16798. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16799. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16800. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16801. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16802. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16803. echo $ECHO_N "(cached) $ECHO_C" >&6
  16804. else
  16805. cat >conftest.$ac_ext <<_ACEOF
  16806. /* confdefs.h. */
  16807. _ACEOF
  16808. cat confdefs.h >>conftest.$ac_ext
  16809. cat >>conftest.$ac_ext <<_ACEOF
  16810. /* end confdefs.h. */
  16811. #include <sys/types.h>
  16812. #include <$ac_hdr>
  16813. int
  16814. main ()
  16815. {
  16816. if ((DIR *) 0)
  16817. return 0;
  16818. ;
  16819. return 0;
  16820. }
  16821. _ACEOF
  16822. rm -f conftest.$ac_objext
  16823. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16824. (eval $ac_compile) 2>conftest.er1
  16825. ac_status=$?
  16826. grep -v '^ *+' conftest.er1 >conftest.err
  16827. rm -f conftest.er1
  16828. cat conftest.err >&5
  16829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16830. (exit $ac_status); } &&
  16831. { ac_try='test -z "$ac_c_werror_flag"
  16832. || test ! -s conftest.err'
  16833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16834. (eval $ac_try) 2>&5
  16835. ac_status=$?
  16836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16837. (exit $ac_status); }; } &&
  16838. { ac_try='test -s conftest.$ac_objext'
  16839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16840. (eval $ac_try) 2>&5
  16841. ac_status=$?
  16842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16843. (exit $ac_status); }; }; then
  16844. eval "$as_ac_Header=yes"
  16845. else
  16846. echo "$as_me: failed program was:" >&5
  16847. sed 's/^/| /' conftest.$ac_ext >&5
  16848. eval "$as_ac_Header=no"
  16849. fi
  16850. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16851. fi
  16852. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16853. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16854. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16855. cat >>confdefs.h <<_ACEOF
  16856. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16857. _ACEOF
  16858. ac_header_dirent=$ac_hdr; break
  16859. fi
  16860. done
  16861. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16862. if test $ac_header_dirent = dirent.h; then
  16863. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16864. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16865. if test "${ac_cv_search_opendir+set}" = set; then
  16866. echo $ECHO_N "(cached) $ECHO_C" >&6
  16867. else
  16868. ac_func_search_save_LIBS=$LIBS
  16869. ac_cv_search_opendir=no
  16870. cat >conftest.$ac_ext <<_ACEOF
  16871. /* confdefs.h. */
  16872. _ACEOF
  16873. cat confdefs.h >>conftest.$ac_ext
  16874. cat >>conftest.$ac_ext <<_ACEOF
  16875. /* end confdefs.h. */
  16876. /* Override any gcc2 internal prototype to avoid an error. */
  16877. #ifdef __cplusplus
  16878. extern "C"
  16879. #endif
  16880. /* We use char because int might match the return type of a gcc2
  16881. builtin and then its argument prototype would still apply. */
  16882. char opendir ();
  16883. int
  16884. main ()
  16885. {
  16886. opendir ();
  16887. ;
  16888. return 0;
  16889. }
  16890. _ACEOF
  16891. rm -f conftest.$ac_objext conftest$ac_exeext
  16892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16893. (eval $ac_link) 2>conftest.er1
  16894. ac_status=$?
  16895. grep -v '^ *+' conftest.er1 >conftest.err
  16896. rm -f conftest.er1
  16897. cat conftest.err >&5
  16898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16899. (exit $ac_status); } &&
  16900. { ac_try='test -z "$ac_c_werror_flag"
  16901. || test ! -s conftest.err'
  16902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16903. (eval $ac_try) 2>&5
  16904. ac_status=$?
  16905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16906. (exit $ac_status); }; } &&
  16907. { ac_try='test -s conftest$ac_exeext'
  16908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16909. (eval $ac_try) 2>&5
  16910. ac_status=$?
  16911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16912. (exit $ac_status); }; }; then
  16913. ac_cv_search_opendir="none required"
  16914. else
  16915. echo "$as_me: failed program was:" >&5
  16916. sed 's/^/| /' conftest.$ac_ext >&5
  16917. fi
  16918. rm -f conftest.err conftest.$ac_objext \
  16919. conftest$ac_exeext conftest.$ac_ext
  16920. if test "$ac_cv_search_opendir" = no; then
  16921. for ac_lib in dir; do
  16922. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16923. cat >conftest.$ac_ext <<_ACEOF
  16924. /* confdefs.h. */
  16925. _ACEOF
  16926. cat confdefs.h >>conftest.$ac_ext
  16927. cat >>conftest.$ac_ext <<_ACEOF
  16928. /* end confdefs.h. */
  16929. /* Override any gcc2 internal prototype to avoid an error. */
  16930. #ifdef __cplusplus
  16931. extern "C"
  16932. #endif
  16933. /* We use char because int might match the return type of a gcc2
  16934. builtin and then its argument prototype would still apply. */
  16935. char opendir ();
  16936. int
  16937. main ()
  16938. {
  16939. opendir ();
  16940. ;
  16941. return 0;
  16942. }
  16943. _ACEOF
  16944. rm -f conftest.$ac_objext conftest$ac_exeext
  16945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16946. (eval $ac_link) 2>conftest.er1
  16947. ac_status=$?
  16948. grep -v '^ *+' conftest.er1 >conftest.err
  16949. rm -f conftest.er1
  16950. cat conftest.err >&5
  16951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16952. (exit $ac_status); } &&
  16953. { ac_try='test -z "$ac_c_werror_flag"
  16954. || test ! -s conftest.err'
  16955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16956. (eval $ac_try) 2>&5
  16957. ac_status=$?
  16958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16959. (exit $ac_status); }; } &&
  16960. { ac_try='test -s conftest$ac_exeext'
  16961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16962. (eval $ac_try) 2>&5
  16963. ac_status=$?
  16964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16965. (exit $ac_status); }; }; then
  16966. ac_cv_search_opendir="-l$ac_lib"
  16967. break
  16968. else
  16969. echo "$as_me: failed program was:" >&5
  16970. sed 's/^/| /' conftest.$ac_ext >&5
  16971. fi
  16972. rm -f conftest.err conftest.$ac_objext \
  16973. conftest$ac_exeext conftest.$ac_ext
  16974. done
  16975. fi
  16976. LIBS=$ac_func_search_save_LIBS
  16977. fi
  16978. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16979. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16980. if test "$ac_cv_search_opendir" != no; then
  16981. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16982. fi
  16983. else
  16984. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16985. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16986. if test "${ac_cv_search_opendir+set}" = set; then
  16987. echo $ECHO_N "(cached) $ECHO_C" >&6
  16988. else
  16989. ac_func_search_save_LIBS=$LIBS
  16990. ac_cv_search_opendir=no
  16991. cat >conftest.$ac_ext <<_ACEOF
  16992. /* confdefs.h. */
  16993. _ACEOF
  16994. cat confdefs.h >>conftest.$ac_ext
  16995. cat >>conftest.$ac_ext <<_ACEOF
  16996. /* end confdefs.h. */
  16997. /* Override any gcc2 internal prototype to avoid an error. */
  16998. #ifdef __cplusplus
  16999. extern "C"
  17000. #endif
  17001. /* We use char because int might match the return type of a gcc2
  17002. builtin and then its argument prototype would still apply. */
  17003. char opendir ();
  17004. int
  17005. main ()
  17006. {
  17007. opendir ();
  17008. ;
  17009. return 0;
  17010. }
  17011. _ACEOF
  17012. rm -f conftest.$ac_objext conftest$ac_exeext
  17013. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17014. (eval $ac_link) 2>conftest.er1
  17015. ac_status=$?
  17016. grep -v '^ *+' conftest.er1 >conftest.err
  17017. rm -f conftest.er1
  17018. cat conftest.err >&5
  17019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17020. (exit $ac_status); } &&
  17021. { ac_try='test -z "$ac_c_werror_flag"
  17022. || test ! -s conftest.err'
  17023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17024. (eval $ac_try) 2>&5
  17025. ac_status=$?
  17026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17027. (exit $ac_status); }; } &&
  17028. { ac_try='test -s conftest$ac_exeext'
  17029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17030. (eval $ac_try) 2>&5
  17031. ac_status=$?
  17032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17033. (exit $ac_status); }; }; then
  17034. ac_cv_search_opendir="none required"
  17035. else
  17036. echo "$as_me: failed program was:" >&5
  17037. sed 's/^/| /' conftest.$ac_ext >&5
  17038. fi
  17039. rm -f conftest.err conftest.$ac_objext \
  17040. conftest$ac_exeext conftest.$ac_ext
  17041. if test "$ac_cv_search_opendir" = no; then
  17042. for ac_lib in x; do
  17043. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17044. cat >conftest.$ac_ext <<_ACEOF
  17045. /* confdefs.h. */
  17046. _ACEOF
  17047. cat confdefs.h >>conftest.$ac_ext
  17048. cat >>conftest.$ac_ext <<_ACEOF
  17049. /* end confdefs.h. */
  17050. /* Override any gcc2 internal prototype to avoid an error. */
  17051. #ifdef __cplusplus
  17052. extern "C"
  17053. #endif
  17054. /* We use char because int might match the return type of a gcc2
  17055. builtin and then its argument prototype would still apply. */
  17056. char opendir ();
  17057. int
  17058. main ()
  17059. {
  17060. opendir ();
  17061. ;
  17062. return 0;
  17063. }
  17064. _ACEOF
  17065. rm -f conftest.$ac_objext conftest$ac_exeext
  17066. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17067. (eval $ac_link) 2>conftest.er1
  17068. ac_status=$?
  17069. grep -v '^ *+' conftest.er1 >conftest.err
  17070. rm -f conftest.er1
  17071. cat conftest.err >&5
  17072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17073. (exit $ac_status); } &&
  17074. { ac_try='test -z "$ac_c_werror_flag"
  17075. || test ! -s conftest.err'
  17076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17077. (eval $ac_try) 2>&5
  17078. ac_status=$?
  17079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17080. (exit $ac_status); }; } &&
  17081. { ac_try='test -s conftest$ac_exeext'
  17082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17083. (eval $ac_try) 2>&5
  17084. ac_status=$?
  17085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17086. (exit $ac_status); }; }; then
  17087. ac_cv_search_opendir="-l$ac_lib"
  17088. break
  17089. else
  17090. echo "$as_me: failed program was:" >&5
  17091. sed 's/^/| /' conftest.$ac_ext >&5
  17092. fi
  17093. rm -f conftest.err conftest.$ac_objext \
  17094. conftest$ac_exeext conftest.$ac_ext
  17095. done
  17096. fi
  17097. LIBS=$ac_func_search_save_LIBS
  17098. fi
  17099. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17100. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  17101. if test "$ac_cv_search_opendir" != no; then
  17102. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  17103. fi
  17104. fi
  17105. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17106. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  17107. if test "${ac_cv_header_stdc+set}" = set; then
  17108. echo $ECHO_N "(cached) $ECHO_C" >&6
  17109. else
  17110. cat >conftest.$ac_ext <<_ACEOF
  17111. /* confdefs.h. */
  17112. _ACEOF
  17113. cat confdefs.h >>conftest.$ac_ext
  17114. cat >>conftest.$ac_ext <<_ACEOF
  17115. /* end confdefs.h. */
  17116. #include <stdlib.h>
  17117. #include <stdarg.h>
  17118. #include <string.h>
  17119. #include <float.h>
  17120. int
  17121. main ()
  17122. {
  17123. ;
  17124. return 0;
  17125. }
  17126. _ACEOF
  17127. rm -f conftest.$ac_objext
  17128. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17129. (eval $ac_compile) 2>conftest.er1
  17130. ac_status=$?
  17131. grep -v '^ *+' conftest.er1 >conftest.err
  17132. rm -f conftest.er1
  17133. cat conftest.err >&5
  17134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17135. (exit $ac_status); } &&
  17136. { ac_try='test -z "$ac_c_werror_flag"
  17137. || test ! -s conftest.err'
  17138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17139. (eval $ac_try) 2>&5
  17140. ac_status=$?
  17141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17142. (exit $ac_status); }; } &&
  17143. { ac_try='test -s conftest.$ac_objext'
  17144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17145. (eval $ac_try) 2>&5
  17146. ac_status=$?
  17147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17148. (exit $ac_status); }; }; then
  17149. ac_cv_header_stdc=yes
  17150. else
  17151. echo "$as_me: failed program was:" >&5
  17152. sed 's/^/| /' conftest.$ac_ext >&5
  17153. ac_cv_header_stdc=no
  17154. fi
  17155. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17156. if test $ac_cv_header_stdc = yes; then
  17157. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17158. cat >conftest.$ac_ext <<_ACEOF
  17159. /* confdefs.h. */
  17160. _ACEOF
  17161. cat confdefs.h >>conftest.$ac_ext
  17162. cat >>conftest.$ac_ext <<_ACEOF
  17163. /* end confdefs.h. */
  17164. #include <string.h>
  17165. _ACEOF
  17166. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17167. $EGREP "memchr" >/dev/null 2>&1; then
  17168. :
  17169. else
  17170. ac_cv_header_stdc=no
  17171. fi
  17172. rm -f conftest*
  17173. fi
  17174. if test $ac_cv_header_stdc = yes; then
  17175. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17176. cat >conftest.$ac_ext <<_ACEOF
  17177. /* confdefs.h. */
  17178. _ACEOF
  17179. cat confdefs.h >>conftest.$ac_ext
  17180. cat >>conftest.$ac_ext <<_ACEOF
  17181. /* end confdefs.h. */
  17182. #include <stdlib.h>
  17183. _ACEOF
  17184. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17185. $EGREP "free" >/dev/null 2>&1; then
  17186. :
  17187. else
  17188. ac_cv_header_stdc=no
  17189. fi
  17190. rm -f conftest*
  17191. fi
  17192. if test $ac_cv_header_stdc = yes; then
  17193. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17194. if test "$cross_compiling" = yes; then
  17195. :
  17196. else
  17197. cat >conftest.$ac_ext <<_ACEOF
  17198. /* confdefs.h. */
  17199. _ACEOF
  17200. cat confdefs.h >>conftest.$ac_ext
  17201. cat >>conftest.$ac_ext <<_ACEOF
  17202. /* end confdefs.h. */
  17203. #include <ctype.h>
  17204. #if ((' ' & 0x0FF) == 0x020)
  17205. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17206. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17207. #else
  17208. # define ISLOWER(c) \
  17209. (('a' <= (c) && (c) <= 'i') \
  17210. || ('j' <= (c) && (c) <= 'r') \
  17211. || ('s' <= (c) && (c) <= 'z'))
  17212. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17213. #endif
  17214. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17215. int
  17216. main ()
  17217. {
  17218. int i;
  17219. for (i = 0; i < 256; i++)
  17220. if (XOR (islower (i), ISLOWER (i))
  17221. || toupper (i) != TOUPPER (i))
  17222. exit(2);
  17223. exit (0);
  17224. }
  17225. _ACEOF
  17226. rm -f conftest$ac_exeext
  17227. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17228. (eval $ac_link) 2>&5
  17229. ac_status=$?
  17230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17231. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17233. (eval $ac_try) 2>&5
  17234. ac_status=$?
  17235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17236. (exit $ac_status); }; }; then
  17237. :
  17238. else
  17239. echo "$as_me: program exited with status $ac_status" >&5
  17240. echo "$as_me: failed program was:" >&5
  17241. sed 's/^/| /' conftest.$ac_ext >&5
  17242. ( exit $ac_status )
  17243. ac_cv_header_stdc=no
  17244. fi
  17245. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17246. fi
  17247. fi
  17248. fi
  17249. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17250. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17251. if test $ac_cv_header_stdc = yes; then
  17252. cat >>confdefs.h <<\_ACEOF
  17253. #define STDC_HEADERS 1
  17254. _ACEOF
  17255. fi
  17256. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17257. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17258. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17259. echo $ECHO_N "(cached) $ECHO_C" >&6
  17260. else
  17261. cat >conftest.$ac_ext <<_ACEOF
  17262. /* confdefs.h. */
  17263. _ACEOF
  17264. cat confdefs.h >>conftest.$ac_ext
  17265. cat >>conftest.$ac_ext <<_ACEOF
  17266. /* end confdefs.h. */
  17267. #include <sys/types.h>
  17268. #include <sys/wait.h>
  17269. #ifndef WEXITSTATUS
  17270. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17271. #endif
  17272. #ifndef WIFEXITED
  17273. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17274. #endif
  17275. int
  17276. main ()
  17277. {
  17278. int s;
  17279. wait (&s);
  17280. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17281. ;
  17282. return 0;
  17283. }
  17284. _ACEOF
  17285. rm -f conftest.$ac_objext
  17286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17287. (eval $ac_compile) 2>conftest.er1
  17288. ac_status=$?
  17289. grep -v '^ *+' conftest.er1 >conftest.err
  17290. rm -f conftest.er1
  17291. cat conftest.err >&5
  17292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17293. (exit $ac_status); } &&
  17294. { ac_try='test -z "$ac_c_werror_flag"
  17295. || test ! -s conftest.err'
  17296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17297. (eval $ac_try) 2>&5
  17298. ac_status=$?
  17299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17300. (exit $ac_status); }; } &&
  17301. { ac_try='test -s conftest.$ac_objext'
  17302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17303. (eval $ac_try) 2>&5
  17304. ac_status=$?
  17305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17306. (exit $ac_status); }; }; then
  17307. ac_cv_header_sys_wait_h=yes
  17308. else
  17309. echo "$as_me: failed program was:" >&5
  17310. sed 's/^/| /' conftest.$ac_ext >&5
  17311. ac_cv_header_sys_wait_h=no
  17312. fi
  17313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17314. fi
  17315. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17316. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17317. if test $ac_cv_header_sys_wait_h = yes; then
  17318. cat >>confdefs.h <<\_ACEOF
  17319. #define HAVE_SYS_WAIT_H 1
  17320. _ACEOF
  17321. fi
  17322. 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
  17323. do
  17324. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17325. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17326. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17327. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17328. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17329. echo $ECHO_N "(cached) $ECHO_C" >&6
  17330. fi
  17331. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17332. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17333. else
  17334. # Is the header compilable?
  17335. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17336. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17337. cat >conftest.$ac_ext <<_ACEOF
  17338. /* confdefs.h. */
  17339. _ACEOF
  17340. cat confdefs.h >>conftest.$ac_ext
  17341. cat >>conftest.$ac_ext <<_ACEOF
  17342. /* end confdefs.h. */
  17343. $ac_includes_default
  17344. #include <$ac_header>
  17345. _ACEOF
  17346. rm -f conftest.$ac_objext
  17347. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17348. (eval $ac_compile) 2>conftest.er1
  17349. ac_status=$?
  17350. grep -v '^ *+' conftest.er1 >conftest.err
  17351. rm -f conftest.er1
  17352. cat conftest.err >&5
  17353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17354. (exit $ac_status); } &&
  17355. { ac_try='test -z "$ac_c_werror_flag"
  17356. || test ! -s conftest.err'
  17357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17358. (eval $ac_try) 2>&5
  17359. ac_status=$?
  17360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17361. (exit $ac_status); }; } &&
  17362. { ac_try='test -s conftest.$ac_objext'
  17363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17364. (eval $ac_try) 2>&5
  17365. ac_status=$?
  17366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17367. (exit $ac_status); }; }; then
  17368. ac_header_compiler=yes
  17369. else
  17370. echo "$as_me: failed program was:" >&5
  17371. sed 's/^/| /' conftest.$ac_ext >&5
  17372. ac_header_compiler=no
  17373. fi
  17374. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17375. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17376. echo "${ECHO_T}$ac_header_compiler" >&6
  17377. # Is the header present?
  17378. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17379. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17380. cat >conftest.$ac_ext <<_ACEOF
  17381. /* confdefs.h. */
  17382. _ACEOF
  17383. cat confdefs.h >>conftest.$ac_ext
  17384. cat >>conftest.$ac_ext <<_ACEOF
  17385. /* end confdefs.h. */
  17386. #include <$ac_header>
  17387. _ACEOF
  17388. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17389. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17390. ac_status=$?
  17391. grep -v '^ *+' conftest.er1 >conftest.err
  17392. rm -f conftest.er1
  17393. cat conftest.err >&5
  17394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17395. (exit $ac_status); } >/dev/null; then
  17396. if test -s conftest.err; then
  17397. ac_cpp_err=$ac_c_preproc_warn_flag
  17398. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17399. else
  17400. ac_cpp_err=
  17401. fi
  17402. else
  17403. ac_cpp_err=yes
  17404. fi
  17405. if test -z "$ac_cpp_err"; then
  17406. ac_header_preproc=yes
  17407. else
  17408. echo "$as_me: failed program was:" >&5
  17409. sed 's/^/| /' conftest.$ac_ext >&5
  17410. ac_header_preproc=no
  17411. fi
  17412. rm -f conftest.err conftest.$ac_ext
  17413. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17414. echo "${ECHO_T}$ac_header_preproc" >&6
  17415. # So? What about this header?
  17416. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17417. yes:no: )
  17418. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17419. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17420. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17421. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17422. ac_header_preproc=yes
  17423. ;;
  17424. no:yes:* )
  17425. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17426. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17427. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17428. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17429. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17430. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17431. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17432. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17433. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17434. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17435. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17436. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17437. (
  17438. cat <<\_ASBOX
  17439. ## ------------------------------------------ ##
  17440. ## Report this to http://bugzilla.redhat.com/ ##
  17441. ## ------------------------------------------ ##
  17442. _ASBOX
  17443. ) |
  17444. sed "s/^/$as_me: WARNING: /" >&2
  17445. ;;
  17446. esac
  17447. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17448. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17449. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17450. echo $ECHO_N "(cached) $ECHO_C" >&6
  17451. else
  17452. eval "$as_ac_Header=\$ac_header_preproc"
  17453. fi
  17454. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17455. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17456. fi
  17457. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17458. cat >>confdefs.h <<_ACEOF
  17459. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17460. _ACEOF
  17461. fi
  17462. done
  17463. # Checks for typedefs, structures, and compiler characteristics.
  17464. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17465. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17466. if test "${ac_cv_header_stat_broken+set}" = set; then
  17467. echo $ECHO_N "(cached) $ECHO_C" >&6
  17468. else
  17469. cat >conftest.$ac_ext <<_ACEOF
  17470. /* confdefs.h. */
  17471. _ACEOF
  17472. cat confdefs.h >>conftest.$ac_ext
  17473. cat >>conftest.$ac_ext <<_ACEOF
  17474. /* end confdefs.h. */
  17475. #include <sys/types.h>
  17476. #include <sys/stat.h>
  17477. #if defined(S_ISBLK) && defined(S_IFDIR)
  17478. # if S_ISBLK (S_IFDIR)
  17479. You lose.
  17480. # endif
  17481. #endif
  17482. #if defined(S_ISBLK) && defined(S_IFCHR)
  17483. # if S_ISBLK (S_IFCHR)
  17484. You lose.
  17485. # endif
  17486. #endif
  17487. #if defined(S_ISLNK) && defined(S_IFREG)
  17488. # if S_ISLNK (S_IFREG)
  17489. You lose.
  17490. # endif
  17491. #endif
  17492. #if defined(S_ISSOCK) && defined(S_IFREG)
  17493. # if S_ISSOCK (S_IFREG)
  17494. You lose.
  17495. # endif
  17496. #endif
  17497. _ACEOF
  17498. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17499. $EGREP "You lose" >/dev/null 2>&1; then
  17500. ac_cv_header_stat_broken=yes
  17501. else
  17502. ac_cv_header_stat_broken=no
  17503. fi
  17504. rm -f conftest*
  17505. fi
  17506. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17507. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17508. if test $ac_cv_header_stat_broken = yes; then
  17509. cat >>confdefs.h <<\_ACEOF
  17510. #define STAT_MACROS_BROKEN 1
  17511. _ACEOF
  17512. fi
  17513. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17514. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17515. if test "${ac_cv_c_const+set}" = set; then
  17516. echo $ECHO_N "(cached) $ECHO_C" >&6
  17517. else
  17518. cat >conftest.$ac_ext <<_ACEOF
  17519. /* confdefs.h. */
  17520. _ACEOF
  17521. cat confdefs.h >>conftest.$ac_ext
  17522. cat >>conftest.$ac_ext <<_ACEOF
  17523. /* end confdefs.h. */
  17524. int
  17525. main ()
  17526. {
  17527. /* FIXME: Include the comments suggested by Paul. */
  17528. #ifndef __cplusplus
  17529. /* Ultrix mips cc rejects this. */
  17530. typedef int charset[2];
  17531. const charset x;
  17532. /* SunOS 4.1.1 cc rejects this. */
  17533. char const *const *ccp;
  17534. char **p;
  17535. /* NEC SVR4.0.2 mips cc rejects this. */
  17536. struct point {int x, y;};
  17537. static struct point const zero = {0,0};
  17538. /* AIX XL C 1.02.0.0 rejects this.
  17539. It does not let you subtract one const X* pointer from another in
  17540. an arm of an if-expression whose if-part is not a constant
  17541. expression */
  17542. const char *g = "string";
  17543. ccp = &g + (g ? g-g : 0);
  17544. /* HPUX 7.0 cc rejects these. */
  17545. ++ccp;
  17546. p = (char**) ccp;
  17547. ccp = (char const *const *) p;
  17548. { /* SCO 3.2v4 cc rejects this. */
  17549. char *t;
  17550. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17551. *t++ = 0;
  17552. }
  17553. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17554. int x[] = {25, 17};
  17555. const int *foo = &x[0];
  17556. ++foo;
  17557. }
  17558. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17559. typedef const int *iptr;
  17560. iptr p = 0;
  17561. ++p;
  17562. }
  17563. { /* AIX XL C 1.02.0.0 rejects this saying
  17564. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17565. struct s { int j; const int *ap[3]; };
  17566. struct s *b; b->j = 5;
  17567. }
  17568. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17569. const int foo = 10;
  17570. }
  17571. #endif
  17572. ;
  17573. return 0;
  17574. }
  17575. _ACEOF
  17576. rm -f conftest.$ac_objext
  17577. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17578. (eval $ac_compile) 2>conftest.er1
  17579. ac_status=$?
  17580. grep -v '^ *+' conftest.er1 >conftest.err
  17581. rm -f conftest.er1
  17582. cat conftest.err >&5
  17583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17584. (exit $ac_status); } &&
  17585. { ac_try='test -z "$ac_c_werror_flag"
  17586. || test ! -s conftest.err'
  17587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17588. (eval $ac_try) 2>&5
  17589. ac_status=$?
  17590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17591. (exit $ac_status); }; } &&
  17592. { ac_try='test -s conftest.$ac_objext'
  17593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17594. (eval $ac_try) 2>&5
  17595. ac_status=$?
  17596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17597. (exit $ac_status); }; }; then
  17598. ac_cv_c_const=yes
  17599. else
  17600. echo "$as_me: failed program was:" >&5
  17601. sed 's/^/| /' conftest.$ac_ext >&5
  17602. ac_cv_c_const=no
  17603. fi
  17604. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17605. fi
  17606. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17607. echo "${ECHO_T}$ac_cv_c_const" >&6
  17608. if test $ac_cv_c_const = no; then
  17609. cat >>confdefs.h <<\_ACEOF
  17610. #define const
  17611. _ACEOF
  17612. fi
  17613. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17614. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17615. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17616. echo $ECHO_N "(cached) $ECHO_C" >&6
  17617. else
  17618. cat >conftest.$ac_ext <<_ACEOF
  17619. /* confdefs.h. */
  17620. _ACEOF
  17621. cat confdefs.h >>conftest.$ac_ext
  17622. cat >>conftest.$ac_ext <<_ACEOF
  17623. /* end confdefs.h. */
  17624. #include <stdbool.h>
  17625. #ifndef bool
  17626. # error bool is not defined
  17627. #endif
  17628. #ifndef false
  17629. # error false is not defined
  17630. #endif
  17631. #if false
  17632. # error false is not 0
  17633. #endif
  17634. #ifndef true
  17635. # error true is not defined
  17636. #endif
  17637. #if true != 1
  17638. # error true is not 1
  17639. #endif
  17640. #ifndef __bool_true_false_are_defined
  17641. # error __bool_true_false_are_defined is not defined
  17642. #endif
  17643. struct s { _Bool s: 1; _Bool t; } s;
  17644. char a[true == 1 ? 1 : -1];
  17645. char b[false == 0 ? 1 : -1];
  17646. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17647. char d[(bool) -0.5 == true ? 1 : -1];
  17648. bool e = &s;
  17649. char f[(_Bool) -0.0 == false ? 1 : -1];
  17650. char g[true];
  17651. char h[sizeof (_Bool)];
  17652. char i[sizeof s.t];
  17653. int
  17654. main ()
  17655. {
  17656. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17657. ;
  17658. return 0;
  17659. }
  17660. _ACEOF
  17661. rm -f conftest.$ac_objext
  17662. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17663. (eval $ac_compile) 2>conftest.er1
  17664. ac_status=$?
  17665. grep -v '^ *+' conftest.er1 >conftest.err
  17666. rm -f conftest.er1
  17667. cat conftest.err >&5
  17668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17669. (exit $ac_status); } &&
  17670. { ac_try='test -z "$ac_c_werror_flag"
  17671. || test ! -s conftest.err'
  17672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17673. (eval $ac_try) 2>&5
  17674. ac_status=$?
  17675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17676. (exit $ac_status); }; } &&
  17677. { ac_try='test -s conftest.$ac_objext'
  17678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17679. (eval $ac_try) 2>&5
  17680. ac_status=$?
  17681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17682. (exit $ac_status); }; }; then
  17683. ac_cv_header_stdbool_h=yes
  17684. else
  17685. echo "$as_me: failed program was:" >&5
  17686. sed 's/^/| /' conftest.$ac_ext >&5
  17687. ac_cv_header_stdbool_h=no
  17688. fi
  17689. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17690. fi
  17691. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17692. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17693. echo "$as_me:$LINENO: checking for _Bool" >&5
  17694. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17695. if test "${ac_cv_type__Bool+set}" = set; then
  17696. echo $ECHO_N "(cached) $ECHO_C" >&6
  17697. else
  17698. cat >conftest.$ac_ext <<_ACEOF
  17699. /* confdefs.h. */
  17700. _ACEOF
  17701. cat confdefs.h >>conftest.$ac_ext
  17702. cat >>conftest.$ac_ext <<_ACEOF
  17703. /* end confdefs.h. */
  17704. $ac_includes_default
  17705. int
  17706. main ()
  17707. {
  17708. if ((_Bool *) 0)
  17709. return 0;
  17710. if (sizeof (_Bool))
  17711. return 0;
  17712. ;
  17713. return 0;
  17714. }
  17715. _ACEOF
  17716. rm -f conftest.$ac_objext
  17717. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17718. (eval $ac_compile) 2>conftest.er1
  17719. ac_status=$?
  17720. grep -v '^ *+' conftest.er1 >conftest.err
  17721. rm -f conftest.er1
  17722. cat conftest.err >&5
  17723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17724. (exit $ac_status); } &&
  17725. { ac_try='test -z "$ac_c_werror_flag"
  17726. || test ! -s conftest.err'
  17727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17728. (eval $ac_try) 2>&5
  17729. ac_status=$?
  17730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17731. (exit $ac_status); }; } &&
  17732. { ac_try='test -s conftest.$ac_objext'
  17733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17734. (eval $ac_try) 2>&5
  17735. ac_status=$?
  17736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17737. (exit $ac_status); }; }; then
  17738. ac_cv_type__Bool=yes
  17739. else
  17740. echo "$as_me: failed program was:" >&5
  17741. sed 's/^/| /' conftest.$ac_ext >&5
  17742. ac_cv_type__Bool=no
  17743. fi
  17744. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17745. fi
  17746. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17747. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17748. if test $ac_cv_type__Bool = yes; then
  17749. cat >>confdefs.h <<_ACEOF
  17750. #define HAVE__BOOL 1
  17751. _ACEOF
  17752. fi
  17753. if test $ac_cv_header_stdbool_h = yes; then
  17754. cat >>confdefs.h <<\_ACEOF
  17755. #define HAVE_STDBOOL_H 1
  17756. _ACEOF
  17757. fi
  17758. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17759. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17760. if test "${ac_cv_type_uid_t+set}" = set; then
  17761. echo $ECHO_N "(cached) $ECHO_C" >&6
  17762. else
  17763. cat >conftest.$ac_ext <<_ACEOF
  17764. /* confdefs.h. */
  17765. _ACEOF
  17766. cat confdefs.h >>conftest.$ac_ext
  17767. cat >>conftest.$ac_ext <<_ACEOF
  17768. /* end confdefs.h. */
  17769. #include <sys/types.h>
  17770. _ACEOF
  17771. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17772. $EGREP "uid_t" >/dev/null 2>&1; then
  17773. ac_cv_type_uid_t=yes
  17774. else
  17775. ac_cv_type_uid_t=no
  17776. fi
  17777. rm -f conftest*
  17778. fi
  17779. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17780. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17781. if test $ac_cv_type_uid_t = no; then
  17782. cat >>confdefs.h <<\_ACEOF
  17783. #define uid_t int
  17784. _ACEOF
  17785. cat >>confdefs.h <<\_ACEOF
  17786. #define gid_t int
  17787. _ACEOF
  17788. fi
  17789. echo "$as_me:$LINENO: checking for pid_t" >&5
  17790. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17791. if test "${ac_cv_type_pid_t+set}" = set; then
  17792. echo $ECHO_N "(cached) $ECHO_C" >&6
  17793. else
  17794. cat >conftest.$ac_ext <<_ACEOF
  17795. /* confdefs.h. */
  17796. _ACEOF
  17797. cat confdefs.h >>conftest.$ac_ext
  17798. cat >>conftest.$ac_ext <<_ACEOF
  17799. /* end confdefs.h. */
  17800. $ac_includes_default
  17801. int
  17802. main ()
  17803. {
  17804. if ((pid_t *) 0)
  17805. return 0;
  17806. if (sizeof (pid_t))
  17807. return 0;
  17808. ;
  17809. return 0;
  17810. }
  17811. _ACEOF
  17812. rm -f conftest.$ac_objext
  17813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17814. (eval $ac_compile) 2>conftest.er1
  17815. ac_status=$?
  17816. grep -v '^ *+' conftest.er1 >conftest.err
  17817. rm -f conftest.er1
  17818. cat conftest.err >&5
  17819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17820. (exit $ac_status); } &&
  17821. { ac_try='test -z "$ac_c_werror_flag"
  17822. || test ! -s conftest.err'
  17823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17824. (eval $ac_try) 2>&5
  17825. ac_status=$?
  17826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17827. (exit $ac_status); }; } &&
  17828. { ac_try='test -s conftest.$ac_objext'
  17829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17830. (eval $ac_try) 2>&5
  17831. ac_status=$?
  17832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17833. (exit $ac_status); }; }; then
  17834. ac_cv_type_pid_t=yes
  17835. else
  17836. echo "$as_me: failed program was:" >&5
  17837. sed 's/^/| /' conftest.$ac_ext >&5
  17838. ac_cv_type_pid_t=no
  17839. fi
  17840. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17841. fi
  17842. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17843. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17844. if test $ac_cv_type_pid_t = yes; then
  17845. :
  17846. else
  17847. cat >>confdefs.h <<_ACEOF
  17848. #define pid_t int
  17849. _ACEOF
  17850. fi
  17851. echo "$as_me:$LINENO: checking for size_t" >&5
  17852. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17853. if test "${ac_cv_type_size_t+set}" = set; then
  17854. echo $ECHO_N "(cached) $ECHO_C" >&6
  17855. else
  17856. cat >conftest.$ac_ext <<_ACEOF
  17857. /* confdefs.h. */
  17858. _ACEOF
  17859. cat confdefs.h >>conftest.$ac_ext
  17860. cat >>conftest.$ac_ext <<_ACEOF
  17861. /* end confdefs.h. */
  17862. $ac_includes_default
  17863. int
  17864. main ()
  17865. {
  17866. if ((size_t *) 0)
  17867. return 0;
  17868. if (sizeof (size_t))
  17869. return 0;
  17870. ;
  17871. return 0;
  17872. }
  17873. _ACEOF
  17874. rm -f conftest.$ac_objext
  17875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17876. (eval $ac_compile) 2>conftest.er1
  17877. ac_status=$?
  17878. grep -v '^ *+' conftest.er1 >conftest.err
  17879. rm -f conftest.er1
  17880. cat conftest.err >&5
  17881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17882. (exit $ac_status); } &&
  17883. { ac_try='test -z "$ac_c_werror_flag"
  17884. || test ! -s conftest.err'
  17885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17886. (eval $ac_try) 2>&5
  17887. ac_status=$?
  17888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17889. (exit $ac_status); }; } &&
  17890. { ac_try='test -s conftest.$ac_objext'
  17891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17892. (eval $ac_try) 2>&5
  17893. ac_status=$?
  17894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17895. (exit $ac_status); }; }; then
  17896. ac_cv_type_size_t=yes
  17897. else
  17898. echo "$as_me: failed program was:" >&5
  17899. sed 's/^/| /' conftest.$ac_ext >&5
  17900. ac_cv_type_size_t=no
  17901. fi
  17902. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17903. fi
  17904. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17905. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17906. if test $ac_cv_type_size_t = yes; then
  17907. :
  17908. else
  17909. cat >>confdefs.h <<_ACEOF
  17910. #define size_t unsigned
  17911. _ACEOF
  17912. fi
  17913. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17914. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17915. if test "${ac_cv_header_time+set}" = set; then
  17916. echo $ECHO_N "(cached) $ECHO_C" >&6
  17917. else
  17918. cat >conftest.$ac_ext <<_ACEOF
  17919. /* confdefs.h. */
  17920. _ACEOF
  17921. cat confdefs.h >>conftest.$ac_ext
  17922. cat >>conftest.$ac_ext <<_ACEOF
  17923. /* end confdefs.h. */
  17924. #include <sys/types.h>
  17925. #include <sys/time.h>
  17926. #include <time.h>
  17927. int
  17928. main ()
  17929. {
  17930. if ((struct tm *) 0)
  17931. return 0;
  17932. ;
  17933. return 0;
  17934. }
  17935. _ACEOF
  17936. rm -f conftest.$ac_objext
  17937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17938. (eval $ac_compile) 2>conftest.er1
  17939. ac_status=$?
  17940. grep -v '^ *+' conftest.er1 >conftest.err
  17941. rm -f conftest.er1
  17942. cat conftest.err >&5
  17943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17944. (exit $ac_status); } &&
  17945. { ac_try='test -z "$ac_c_werror_flag"
  17946. || test ! -s conftest.err'
  17947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17948. (eval $ac_try) 2>&5
  17949. ac_status=$?
  17950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17951. (exit $ac_status); }; } &&
  17952. { ac_try='test -s conftest.$ac_objext'
  17953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17954. (eval $ac_try) 2>&5
  17955. ac_status=$?
  17956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17957. (exit $ac_status); }; }; then
  17958. ac_cv_header_time=yes
  17959. else
  17960. echo "$as_me: failed program was:" >&5
  17961. sed 's/^/| /' conftest.$ac_ext >&5
  17962. ac_cv_header_time=no
  17963. fi
  17964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17965. fi
  17966. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17967. echo "${ECHO_T}$ac_cv_header_time" >&6
  17968. if test $ac_cv_header_time = yes; then
  17969. cat >>confdefs.h <<\_ACEOF
  17970. #define TIME_WITH_SYS_TIME 1
  17971. _ACEOF
  17972. fi
  17973. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17974. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17975. if test "${ac_cv_struct_tm+set}" = set; then
  17976. echo $ECHO_N "(cached) $ECHO_C" >&6
  17977. else
  17978. cat >conftest.$ac_ext <<_ACEOF
  17979. /* confdefs.h. */
  17980. _ACEOF
  17981. cat confdefs.h >>conftest.$ac_ext
  17982. cat >>conftest.$ac_ext <<_ACEOF
  17983. /* end confdefs.h. */
  17984. #include <sys/types.h>
  17985. #include <time.h>
  17986. int
  17987. main ()
  17988. {
  17989. struct tm *tp; tp->tm_sec;
  17990. ;
  17991. return 0;
  17992. }
  17993. _ACEOF
  17994. rm -f conftest.$ac_objext
  17995. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17996. (eval $ac_compile) 2>conftest.er1
  17997. ac_status=$?
  17998. grep -v '^ *+' conftest.er1 >conftest.err
  17999. rm -f conftest.er1
  18000. cat conftest.err >&5
  18001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18002. (exit $ac_status); } &&
  18003. { ac_try='test -z "$ac_c_werror_flag"
  18004. || test ! -s conftest.err'
  18005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18006. (eval $ac_try) 2>&5
  18007. ac_status=$?
  18008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18009. (exit $ac_status); }; } &&
  18010. { ac_try='test -s conftest.$ac_objext'
  18011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18012. (eval $ac_try) 2>&5
  18013. ac_status=$?
  18014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18015. (exit $ac_status); }; }; then
  18016. ac_cv_struct_tm=time.h
  18017. else
  18018. echo "$as_me: failed program was:" >&5
  18019. sed 's/^/| /' conftest.$ac_ext >&5
  18020. ac_cv_struct_tm=sys/time.h
  18021. fi
  18022. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18023. fi
  18024. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  18025. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  18026. if test $ac_cv_struct_tm = sys/time.h; then
  18027. cat >>confdefs.h <<\_ACEOF
  18028. #define TM_IN_SYS_TIME 1
  18029. _ACEOF
  18030. fi
  18031. # Checks for library functions.
  18032. for ac_header in unistd.h
  18033. do
  18034. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18035. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18036. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18037. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18038. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18039. echo $ECHO_N "(cached) $ECHO_C" >&6
  18040. fi
  18041. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18042. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18043. else
  18044. # Is the header compilable?
  18045. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18046. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18047. cat >conftest.$ac_ext <<_ACEOF
  18048. /* confdefs.h. */
  18049. _ACEOF
  18050. cat confdefs.h >>conftest.$ac_ext
  18051. cat >>conftest.$ac_ext <<_ACEOF
  18052. /* end confdefs.h. */
  18053. $ac_includes_default
  18054. #include <$ac_header>
  18055. _ACEOF
  18056. rm -f conftest.$ac_objext
  18057. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18058. (eval $ac_compile) 2>conftest.er1
  18059. ac_status=$?
  18060. grep -v '^ *+' conftest.er1 >conftest.err
  18061. rm -f conftest.er1
  18062. cat conftest.err >&5
  18063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18064. (exit $ac_status); } &&
  18065. { ac_try='test -z "$ac_c_werror_flag"
  18066. || test ! -s conftest.err'
  18067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18068. (eval $ac_try) 2>&5
  18069. ac_status=$?
  18070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18071. (exit $ac_status); }; } &&
  18072. { ac_try='test -s conftest.$ac_objext'
  18073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18074. (eval $ac_try) 2>&5
  18075. ac_status=$?
  18076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18077. (exit $ac_status); }; }; then
  18078. ac_header_compiler=yes
  18079. else
  18080. echo "$as_me: failed program was:" >&5
  18081. sed 's/^/| /' conftest.$ac_ext >&5
  18082. ac_header_compiler=no
  18083. fi
  18084. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18085. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18086. echo "${ECHO_T}$ac_header_compiler" >&6
  18087. # Is the header present?
  18088. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18089. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18090. cat >conftest.$ac_ext <<_ACEOF
  18091. /* confdefs.h. */
  18092. _ACEOF
  18093. cat confdefs.h >>conftest.$ac_ext
  18094. cat >>conftest.$ac_ext <<_ACEOF
  18095. /* end confdefs.h. */
  18096. #include <$ac_header>
  18097. _ACEOF
  18098. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18099. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18100. ac_status=$?
  18101. grep -v '^ *+' conftest.er1 >conftest.err
  18102. rm -f conftest.er1
  18103. cat conftest.err >&5
  18104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18105. (exit $ac_status); } >/dev/null; then
  18106. if test -s conftest.err; then
  18107. ac_cpp_err=$ac_c_preproc_warn_flag
  18108. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18109. else
  18110. ac_cpp_err=
  18111. fi
  18112. else
  18113. ac_cpp_err=yes
  18114. fi
  18115. if test -z "$ac_cpp_err"; then
  18116. ac_header_preproc=yes
  18117. else
  18118. echo "$as_me: failed program was:" >&5
  18119. sed 's/^/| /' conftest.$ac_ext >&5
  18120. ac_header_preproc=no
  18121. fi
  18122. rm -f conftest.err conftest.$ac_ext
  18123. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18124. echo "${ECHO_T}$ac_header_preproc" >&6
  18125. # So? What about this header?
  18126. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18127. yes:no: )
  18128. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18129. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18130. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18131. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18132. ac_header_preproc=yes
  18133. ;;
  18134. no:yes:* )
  18135. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18136. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18137. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18138. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18139. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18140. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18141. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18142. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18143. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18144. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18145. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18146. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18147. (
  18148. cat <<\_ASBOX
  18149. ## ------------------------------------------ ##
  18150. ## Report this to http://bugzilla.redhat.com/ ##
  18151. ## ------------------------------------------ ##
  18152. _ASBOX
  18153. ) |
  18154. sed "s/^/$as_me: WARNING: /" >&2
  18155. ;;
  18156. esac
  18157. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18158. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18159. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18160. echo $ECHO_N "(cached) $ECHO_C" >&6
  18161. else
  18162. eval "$as_ac_Header=\$ac_header_preproc"
  18163. fi
  18164. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18165. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18166. fi
  18167. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18168. cat >>confdefs.h <<_ACEOF
  18169. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18170. _ACEOF
  18171. fi
  18172. done
  18173. echo "$as_me:$LINENO: checking for working chown" >&5
  18174. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18175. if test "${ac_cv_func_chown_works+set}" = set; then
  18176. echo $ECHO_N "(cached) $ECHO_C" >&6
  18177. else
  18178. if test "$cross_compiling" = yes; then
  18179. ac_cv_func_chown_works=no
  18180. else
  18181. cat >conftest.$ac_ext <<_ACEOF
  18182. /* confdefs.h. */
  18183. _ACEOF
  18184. cat confdefs.h >>conftest.$ac_ext
  18185. cat >>conftest.$ac_ext <<_ACEOF
  18186. /* end confdefs.h. */
  18187. $ac_includes_default
  18188. #include <fcntl.h>
  18189. int
  18190. main ()
  18191. {
  18192. char *f = "conftest.chown";
  18193. struct stat before, after;
  18194. if (creat (f, 0600) < 0)
  18195. exit (1);
  18196. if (stat (f, &before) < 0)
  18197. exit (1);
  18198. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18199. exit (1);
  18200. if (stat (f, &after) < 0)
  18201. exit (1);
  18202. exit ((before.st_uid == after.st_uid
  18203. && before.st_gid == after.st_gid) ? 0 : 1);
  18204. ;
  18205. return 0;
  18206. }
  18207. _ACEOF
  18208. rm -f conftest$ac_exeext
  18209. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18210. (eval $ac_link) 2>&5
  18211. ac_status=$?
  18212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18213. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18215. (eval $ac_try) 2>&5
  18216. ac_status=$?
  18217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18218. (exit $ac_status); }; }; then
  18219. ac_cv_func_chown_works=yes
  18220. else
  18221. echo "$as_me: program exited with status $ac_status" >&5
  18222. echo "$as_me: failed program was:" >&5
  18223. sed 's/^/| /' conftest.$ac_ext >&5
  18224. ( exit $ac_status )
  18225. ac_cv_func_chown_works=no
  18226. fi
  18227. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18228. fi
  18229. rm -f conftest.chown
  18230. fi
  18231. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18232. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18233. if test $ac_cv_func_chown_works = yes; then
  18234. cat >>confdefs.h <<\_ACEOF
  18235. #define HAVE_CHOWN 1
  18236. _ACEOF
  18237. fi
  18238. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18239. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18240. if test "${ac_cv_func_closedir_void+set}" = set; then
  18241. echo $ECHO_N "(cached) $ECHO_C" >&6
  18242. else
  18243. if test "$cross_compiling" = yes; then
  18244. ac_cv_func_closedir_void=yes
  18245. else
  18246. cat >conftest.$ac_ext <<_ACEOF
  18247. /* confdefs.h. */
  18248. _ACEOF
  18249. cat confdefs.h >>conftest.$ac_ext
  18250. cat >>conftest.$ac_ext <<_ACEOF
  18251. /* end confdefs.h. */
  18252. $ac_includes_default
  18253. #include <$ac_header_dirent>
  18254. #ifndef __cplusplus
  18255. int closedir ();
  18256. #endif
  18257. int
  18258. main ()
  18259. {
  18260. exit (closedir (opendir (".")) != 0);
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. rm -f conftest$ac_exeext
  18266. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18267. (eval $ac_link) 2>&5
  18268. ac_status=$?
  18269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18270. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18272. (eval $ac_try) 2>&5
  18273. ac_status=$?
  18274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18275. (exit $ac_status); }; }; then
  18276. ac_cv_func_closedir_void=no
  18277. else
  18278. echo "$as_me: program exited with status $ac_status" >&5
  18279. echo "$as_me: failed program was:" >&5
  18280. sed 's/^/| /' conftest.$ac_ext >&5
  18281. ( exit $ac_status )
  18282. ac_cv_func_closedir_void=yes
  18283. fi
  18284. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18285. fi
  18286. fi
  18287. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18288. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18289. if test $ac_cv_func_closedir_void = yes; then
  18290. cat >>confdefs.h <<\_ACEOF
  18291. #define CLOSEDIR_VOID 1
  18292. _ACEOF
  18293. fi
  18294. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18295. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18296. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18297. echo $ECHO_N "(cached) $ECHO_C" >&6
  18298. else
  18299. cat >conftest.$ac_ext <<_ACEOF
  18300. /* confdefs.h. */
  18301. _ACEOF
  18302. cat confdefs.h >>conftest.$ac_ext
  18303. cat >>conftest.$ac_ext <<_ACEOF
  18304. /* end confdefs.h. */
  18305. $ac_includes_default
  18306. int
  18307. main ()
  18308. {
  18309. error_at_line (0, 0, "", 0, "");
  18310. ;
  18311. return 0;
  18312. }
  18313. _ACEOF
  18314. rm -f conftest.$ac_objext conftest$ac_exeext
  18315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18316. (eval $ac_link) 2>conftest.er1
  18317. ac_status=$?
  18318. grep -v '^ *+' conftest.er1 >conftest.err
  18319. rm -f conftest.er1
  18320. cat conftest.err >&5
  18321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18322. (exit $ac_status); } &&
  18323. { ac_try='test -z "$ac_c_werror_flag"
  18324. || test ! -s conftest.err'
  18325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18326. (eval $ac_try) 2>&5
  18327. ac_status=$?
  18328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18329. (exit $ac_status); }; } &&
  18330. { ac_try='test -s conftest$ac_exeext'
  18331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18332. (eval $ac_try) 2>&5
  18333. ac_status=$?
  18334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18335. (exit $ac_status); }; }; then
  18336. ac_cv_lib_error_at_line=yes
  18337. else
  18338. echo "$as_me: failed program was:" >&5
  18339. sed 's/^/| /' conftest.$ac_ext >&5
  18340. ac_cv_lib_error_at_line=no
  18341. fi
  18342. rm -f conftest.err conftest.$ac_objext \
  18343. conftest$ac_exeext conftest.$ac_ext
  18344. fi
  18345. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18346. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18347. if test $ac_cv_lib_error_at_line = no; then
  18348. case $LIBOBJS in
  18349. "error.$ac_objext" | \
  18350. *" error.$ac_objext" | \
  18351. "error.$ac_objext "* | \
  18352. *" error.$ac_objext "* ) ;;
  18353. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18354. esac
  18355. fi
  18356. for ac_header in unistd.h vfork.h
  18357. do
  18358. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18359. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18360. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18361. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18362. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18363. echo $ECHO_N "(cached) $ECHO_C" >&6
  18364. fi
  18365. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18366. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18367. else
  18368. # Is the header compilable?
  18369. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18370. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18371. cat >conftest.$ac_ext <<_ACEOF
  18372. /* confdefs.h. */
  18373. _ACEOF
  18374. cat confdefs.h >>conftest.$ac_ext
  18375. cat >>conftest.$ac_ext <<_ACEOF
  18376. /* end confdefs.h. */
  18377. $ac_includes_default
  18378. #include <$ac_header>
  18379. _ACEOF
  18380. rm -f conftest.$ac_objext
  18381. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18382. (eval $ac_compile) 2>conftest.er1
  18383. ac_status=$?
  18384. grep -v '^ *+' conftest.er1 >conftest.err
  18385. rm -f conftest.er1
  18386. cat conftest.err >&5
  18387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18388. (exit $ac_status); } &&
  18389. { ac_try='test -z "$ac_c_werror_flag"
  18390. || test ! -s conftest.err'
  18391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18392. (eval $ac_try) 2>&5
  18393. ac_status=$?
  18394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18395. (exit $ac_status); }; } &&
  18396. { ac_try='test -s conftest.$ac_objext'
  18397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18398. (eval $ac_try) 2>&5
  18399. ac_status=$?
  18400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18401. (exit $ac_status); }; }; then
  18402. ac_header_compiler=yes
  18403. else
  18404. echo "$as_me: failed program was:" >&5
  18405. sed 's/^/| /' conftest.$ac_ext >&5
  18406. ac_header_compiler=no
  18407. fi
  18408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18409. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18410. echo "${ECHO_T}$ac_header_compiler" >&6
  18411. # Is the header present?
  18412. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18413. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18414. cat >conftest.$ac_ext <<_ACEOF
  18415. /* confdefs.h. */
  18416. _ACEOF
  18417. cat confdefs.h >>conftest.$ac_ext
  18418. cat >>conftest.$ac_ext <<_ACEOF
  18419. /* end confdefs.h. */
  18420. #include <$ac_header>
  18421. _ACEOF
  18422. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18423. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18424. ac_status=$?
  18425. grep -v '^ *+' conftest.er1 >conftest.err
  18426. rm -f conftest.er1
  18427. cat conftest.err >&5
  18428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18429. (exit $ac_status); } >/dev/null; then
  18430. if test -s conftest.err; then
  18431. ac_cpp_err=$ac_c_preproc_warn_flag
  18432. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18433. else
  18434. ac_cpp_err=
  18435. fi
  18436. else
  18437. ac_cpp_err=yes
  18438. fi
  18439. if test -z "$ac_cpp_err"; then
  18440. ac_header_preproc=yes
  18441. else
  18442. echo "$as_me: failed program was:" >&5
  18443. sed 's/^/| /' conftest.$ac_ext >&5
  18444. ac_header_preproc=no
  18445. fi
  18446. rm -f conftest.err conftest.$ac_ext
  18447. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18448. echo "${ECHO_T}$ac_header_preproc" >&6
  18449. # So? What about this header?
  18450. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18451. yes:no: )
  18452. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18453. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18455. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18456. ac_header_preproc=yes
  18457. ;;
  18458. no:yes:* )
  18459. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18460. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18461. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18462. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18463. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18464. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18465. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18466. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18467. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18468. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18469. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18470. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18471. (
  18472. cat <<\_ASBOX
  18473. ## ------------------------------------------ ##
  18474. ## Report this to http://bugzilla.redhat.com/ ##
  18475. ## ------------------------------------------ ##
  18476. _ASBOX
  18477. ) |
  18478. sed "s/^/$as_me: WARNING: /" >&2
  18479. ;;
  18480. esac
  18481. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18482. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18484. echo $ECHO_N "(cached) $ECHO_C" >&6
  18485. else
  18486. eval "$as_ac_Header=\$ac_header_preproc"
  18487. fi
  18488. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18489. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18490. fi
  18491. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18492. cat >>confdefs.h <<_ACEOF
  18493. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18494. _ACEOF
  18495. fi
  18496. done
  18497. for ac_func in fork vfork
  18498. do
  18499. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18500. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18501. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18502. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18503. echo $ECHO_N "(cached) $ECHO_C" >&6
  18504. else
  18505. cat >conftest.$ac_ext <<_ACEOF
  18506. /* confdefs.h. */
  18507. _ACEOF
  18508. cat confdefs.h >>conftest.$ac_ext
  18509. cat >>conftest.$ac_ext <<_ACEOF
  18510. /* end confdefs.h. */
  18511. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18512. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18513. #define $ac_func innocuous_$ac_func
  18514. /* System header to define __stub macros and hopefully few prototypes,
  18515. which can conflict with char $ac_func (); below.
  18516. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18517. <limits.h> exists even on freestanding compilers. */
  18518. #ifdef __STDC__
  18519. # include <limits.h>
  18520. #else
  18521. # include <assert.h>
  18522. #endif
  18523. #undef $ac_func
  18524. /* Override any gcc2 internal prototype to avoid an error. */
  18525. #ifdef __cplusplus
  18526. extern "C"
  18527. {
  18528. #endif
  18529. /* We use char because int might match the return type of a gcc2
  18530. builtin and then its argument prototype would still apply. */
  18531. char $ac_func ();
  18532. /* The GNU C library defines this for functions which it implements
  18533. to always fail with ENOSYS. Some functions are actually named
  18534. something starting with __ and the normal name is an alias. */
  18535. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18536. choke me
  18537. #else
  18538. char (*f) () = $ac_func;
  18539. #endif
  18540. #ifdef __cplusplus
  18541. }
  18542. #endif
  18543. int
  18544. main ()
  18545. {
  18546. return f != $ac_func;
  18547. ;
  18548. return 0;
  18549. }
  18550. _ACEOF
  18551. rm -f conftest.$ac_objext conftest$ac_exeext
  18552. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18553. (eval $ac_link) 2>conftest.er1
  18554. ac_status=$?
  18555. grep -v '^ *+' conftest.er1 >conftest.err
  18556. rm -f conftest.er1
  18557. cat conftest.err >&5
  18558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18559. (exit $ac_status); } &&
  18560. { ac_try='test -z "$ac_c_werror_flag"
  18561. || test ! -s conftest.err'
  18562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18563. (eval $ac_try) 2>&5
  18564. ac_status=$?
  18565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18566. (exit $ac_status); }; } &&
  18567. { ac_try='test -s conftest$ac_exeext'
  18568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18569. (eval $ac_try) 2>&5
  18570. ac_status=$?
  18571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18572. (exit $ac_status); }; }; then
  18573. eval "$as_ac_var=yes"
  18574. else
  18575. echo "$as_me: failed program was:" >&5
  18576. sed 's/^/| /' conftest.$ac_ext >&5
  18577. eval "$as_ac_var=no"
  18578. fi
  18579. rm -f conftest.err conftest.$ac_objext \
  18580. conftest$ac_exeext conftest.$ac_ext
  18581. fi
  18582. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18583. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18584. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18585. cat >>confdefs.h <<_ACEOF
  18586. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18587. _ACEOF
  18588. fi
  18589. done
  18590. if test "x$ac_cv_func_fork" = xyes; then
  18591. echo "$as_me:$LINENO: checking for working fork" >&5
  18592. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18593. if test "${ac_cv_func_fork_works+set}" = set; then
  18594. echo $ECHO_N "(cached) $ECHO_C" >&6
  18595. else
  18596. if test "$cross_compiling" = yes; then
  18597. ac_cv_func_fork_works=cross
  18598. else
  18599. cat >conftest.$ac_ext <<_ACEOF
  18600. /* By Ruediger Kuhlmann. */
  18601. #include <sys/types.h>
  18602. #if HAVE_UNISTD_H
  18603. # include <unistd.h>
  18604. #endif
  18605. /* Some systems only have a dummy stub for fork() */
  18606. int main ()
  18607. {
  18608. if (fork() < 0)
  18609. exit (1);
  18610. exit (0);
  18611. }
  18612. _ACEOF
  18613. rm -f conftest$ac_exeext
  18614. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18615. (eval $ac_link) 2>&5
  18616. ac_status=$?
  18617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18618. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18620. (eval $ac_try) 2>&5
  18621. ac_status=$?
  18622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18623. (exit $ac_status); }; }; then
  18624. ac_cv_func_fork_works=yes
  18625. else
  18626. echo "$as_me: program exited with status $ac_status" >&5
  18627. echo "$as_me: failed program was:" >&5
  18628. sed 's/^/| /' conftest.$ac_ext >&5
  18629. ( exit $ac_status )
  18630. ac_cv_func_fork_works=no
  18631. fi
  18632. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18633. fi
  18634. fi
  18635. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18636. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18637. else
  18638. ac_cv_func_fork_works=$ac_cv_func_fork
  18639. fi
  18640. if test "x$ac_cv_func_fork_works" = xcross; then
  18641. case $host in
  18642. *-*-amigaos* | *-*-msdosdjgpp*)
  18643. # Override, as these systems have only a dummy fork() stub
  18644. ac_cv_func_fork_works=no
  18645. ;;
  18646. *)
  18647. ac_cv_func_fork_works=yes
  18648. ;;
  18649. esac
  18650. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18651. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18652. fi
  18653. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18654. if test "x$ac_cv_func_vfork" = xyes; then
  18655. echo "$as_me:$LINENO: checking for working vfork" >&5
  18656. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18657. if test "${ac_cv_func_vfork_works+set}" = set; then
  18658. echo $ECHO_N "(cached) $ECHO_C" >&6
  18659. else
  18660. if test "$cross_compiling" = yes; then
  18661. ac_cv_func_vfork_works=cross
  18662. else
  18663. cat >conftest.$ac_ext <<_ACEOF
  18664. /* confdefs.h. */
  18665. _ACEOF
  18666. cat confdefs.h >>conftest.$ac_ext
  18667. cat >>conftest.$ac_ext <<_ACEOF
  18668. /* end confdefs.h. */
  18669. /* Thanks to Paul Eggert for this test. */
  18670. #include <stdio.h>
  18671. #include <stdlib.h>
  18672. #include <sys/types.h>
  18673. #include <sys/stat.h>
  18674. #include <sys/wait.h>
  18675. #if HAVE_UNISTD_H
  18676. # include <unistd.h>
  18677. #endif
  18678. #if HAVE_VFORK_H
  18679. # include <vfork.h>
  18680. #endif
  18681. /* On some sparc systems, changes by the child to local and incoming
  18682. argument registers are propagated back to the parent. The compiler
  18683. is told about this with #include <vfork.h>, but some compilers
  18684. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18685. static variable whose address is put into a register that is
  18686. clobbered by the vfork. */
  18687. static void
  18688. #ifdef __cplusplus
  18689. sparc_address_test (int arg)
  18690. # else
  18691. sparc_address_test (arg) int arg;
  18692. #endif
  18693. {
  18694. static pid_t child;
  18695. if (!child) {
  18696. child = vfork ();
  18697. if (child < 0) {
  18698. perror ("vfork");
  18699. _exit(2);
  18700. }
  18701. if (!child) {
  18702. arg = getpid();
  18703. write(-1, "", 0);
  18704. _exit (arg);
  18705. }
  18706. }
  18707. }
  18708. int
  18709. main ()
  18710. {
  18711. pid_t parent = getpid ();
  18712. pid_t child;
  18713. sparc_address_test (0);
  18714. child = vfork ();
  18715. if (child == 0) {
  18716. /* Here is another test for sparc vfork register problems. This
  18717. test uses lots of local variables, at least as many local
  18718. variables as main has allocated so far including compiler
  18719. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18720. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18721. reuse the register of parent for one of the local variables,
  18722. since it will think that parent can't possibly be used any more
  18723. in this routine. Assigning to the local variable will thus
  18724. munge parent in the parent process. */
  18725. pid_t
  18726. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18727. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18728. /* Convince the compiler that p..p7 are live; otherwise, it might
  18729. use the same hardware register for all 8 local variables. */
  18730. if (p != p1 || p != p2 || p != p3 || p != p4
  18731. || p != p5 || p != p6 || p != p7)
  18732. _exit(1);
  18733. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18734. from child file descriptors. If the child closes a descriptor
  18735. before it execs or exits, this munges the parent's descriptor
  18736. as well. Test for this by closing stdout in the child. */
  18737. _exit(close(fileno(stdout)) != 0);
  18738. } else {
  18739. int status;
  18740. struct stat st;
  18741. while (wait(&status) != child)
  18742. ;
  18743. exit(
  18744. /* Was there some problem with vforking? */
  18745. child < 0
  18746. /* Did the child fail? (This shouldn't happen.) */
  18747. || status
  18748. /* Did the vfork/compiler bug occur? */
  18749. || parent != getpid()
  18750. /* Did the file descriptor bug occur? */
  18751. || fstat(fileno(stdout), &st) != 0
  18752. );
  18753. }
  18754. }
  18755. _ACEOF
  18756. rm -f conftest$ac_exeext
  18757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18758. (eval $ac_link) 2>&5
  18759. ac_status=$?
  18760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18761. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18763. (eval $ac_try) 2>&5
  18764. ac_status=$?
  18765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18766. (exit $ac_status); }; }; then
  18767. ac_cv_func_vfork_works=yes
  18768. else
  18769. echo "$as_me: program exited with status $ac_status" >&5
  18770. echo "$as_me: failed program was:" >&5
  18771. sed 's/^/| /' conftest.$ac_ext >&5
  18772. ( exit $ac_status )
  18773. ac_cv_func_vfork_works=no
  18774. fi
  18775. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18776. fi
  18777. fi
  18778. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18779. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18780. fi;
  18781. if test "x$ac_cv_func_fork_works" = xcross; then
  18782. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18783. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18784. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18785. fi
  18786. if test "x$ac_cv_func_vfork_works" = xyes; then
  18787. cat >>confdefs.h <<\_ACEOF
  18788. #define HAVE_WORKING_VFORK 1
  18789. _ACEOF
  18790. else
  18791. cat >>confdefs.h <<\_ACEOF
  18792. #define vfork fork
  18793. _ACEOF
  18794. fi
  18795. if test "x$ac_cv_func_fork_works" = xyes; then
  18796. cat >>confdefs.h <<\_ACEOF
  18797. #define HAVE_WORKING_FORK 1
  18798. _ACEOF
  18799. fi
  18800. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18801. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18802. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18803. echo $ECHO_N "(cached) $ECHO_C" >&6
  18804. else
  18805. rm -f conftest.sym conftest.file
  18806. echo >conftest.file
  18807. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18808. if test "$cross_compiling" = yes; then
  18809. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18810. else
  18811. cat >conftest.$ac_ext <<_ACEOF
  18812. /* confdefs.h. */
  18813. _ACEOF
  18814. cat confdefs.h >>conftest.$ac_ext
  18815. cat >>conftest.$ac_ext <<_ACEOF
  18816. /* end confdefs.h. */
  18817. $ac_includes_default
  18818. int
  18819. main ()
  18820. {
  18821. struct stat sbuf;
  18822. /* Linux will dereference the symlink and fail.
  18823. That is better in the sense that it means we will not
  18824. have to compile and use the lstat wrapper. */
  18825. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18826. ;
  18827. return 0;
  18828. }
  18829. _ACEOF
  18830. rm -f conftest$ac_exeext
  18831. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18832. (eval $ac_link) 2>&5
  18833. ac_status=$?
  18834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18835. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18837. (eval $ac_try) 2>&5
  18838. ac_status=$?
  18839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18840. (exit $ac_status); }; }; then
  18841. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18842. else
  18843. echo "$as_me: program exited with status $ac_status" >&5
  18844. echo "$as_me: failed program was:" >&5
  18845. sed 's/^/| /' conftest.$ac_ext >&5
  18846. ( exit $ac_status )
  18847. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18848. fi
  18849. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18850. fi
  18851. else
  18852. # If the `ln -s' command failed, then we probably don't even
  18853. # have an lstat function.
  18854. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18855. fi
  18856. rm -f conftest.sym conftest.file
  18857. fi
  18858. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18859. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18860. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18861. cat >>confdefs.h <<_ACEOF
  18862. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18863. _ACEOF
  18864. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18865. case $LIBOBJS in
  18866. "lstat.$ac_objext" | \
  18867. *" lstat.$ac_objext" | \
  18868. "lstat.$ac_objext "* | \
  18869. *" lstat.$ac_objext "* ) ;;
  18870. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18871. esac
  18872. fi
  18873. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18874. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18875. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18876. echo $ECHO_N "(cached) $ECHO_C" >&6
  18877. else
  18878. if test "$cross_compiling" = yes; then
  18879. ac_cv_func_lstat_empty_string_bug=yes
  18880. else
  18881. cat >conftest.$ac_ext <<_ACEOF
  18882. /* confdefs.h. */
  18883. _ACEOF
  18884. cat confdefs.h >>conftest.$ac_ext
  18885. cat >>conftest.$ac_ext <<_ACEOF
  18886. /* end confdefs.h. */
  18887. $ac_includes_default
  18888. int
  18889. main ()
  18890. {
  18891. struct stat sbuf;
  18892. exit (lstat ("", &sbuf) ? 1 : 0);
  18893. ;
  18894. return 0;
  18895. }
  18896. _ACEOF
  18897. rm -f conftest$ac_exeext
  18898. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18899. (eval $ac_link) 2>&5
  18900. ac_status=$?
  18901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18902. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18904. (eval $ac_try) 2>&5
  18905. ac_status=$?
  18906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18907. (exit $ac_status); }; }; then
  18908. ac_cv_func_lstat_empty_string_bug=yes
  18909. else
  18910. echo "$as_me: program exited with status $ac_status" >&5
  18911. echo "$as_me: failed program was:" >&5
  18912. sed 's/^/| /' conftest.$ac_ext >&5
  18913. ( exit $ac_status )
  18914. ac_cv_func_lstat_empty_string_bug=no
  18915. fi
  18916. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18917. fi
  18918. fi
  18919. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18920. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18921. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18922. case $LIBOBJS in
  18923. "lstat.$ac_objext" | \
  18924. *" lstat.$ac_objext" | \
  18925. "lstat.$ac_objext "* | \
  18926. *" lstat.$ac_objext "* ) ;;
  18927. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18928. esac
  18929. cat >>confdefs.h <<_ACEOF
  18930. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18931. _ACEOF
  18932. fi
  18933. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18934. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18935. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18936. echo $ECHO_N "(cached) $ECHO_C" >&6
  18937. else
  18938. rm -f conftest.sym conftest.file
  18939. echo >conftest.file
  18940. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18941. if test "$cross_compiling" = yes; then
  18942. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18943. else
  18944. cat >conftest.$ac_ext <<_ACEOF
  18945. /* confdefs.h. */
  18946. _ACEOF
  18947. cat confdefs.h >>conftest.$ac_ext
  18948. cat >>conftest.$ac_ext <<_ACEOF
  18949. /* end confdefs.h. */
  18950. $ac_includes_default
  18951. int
  18952. main ()
  18953. {
  18954. struct stat sbuf;
  18955. /* Linux will dereference the symlink and fail.
  18956. That is better in the sense that it means we will not
  18957. have to compile and use the lstat wrapper. */
  18958. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18959. ;
  18960. return 0;
  18961. }
  18962. _ACEOF
  18963. rm -f conftest$ac_exeext
  18964. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18965. (eval $ac_link) 2>&5
  18966. ac_status=$?
  18967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18968. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18970. (eval $ac_try) 2>&5
  18971. ac_status=$?
  18972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18973. (exit $ac_status); }; }; then
  18974. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18975. else
  18976. echo "$as_me: program exited with status $ac_status" >&5
  18977. echo "$as_me: failed program was:" >&5
  18978. sed 's/^/| /' conftest.$ac_ext >&5
  18979. ( exit $ac_status )
  18980. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18981. fi
  18982. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18983. fi
  18984. else
  18985. # If the `ln -s' command failed, then we probably don't even
  18986. # have an lstat function.
  18987. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18988. fi
  18989. rm -f conftest.sym conftest.file
  18990. fi
  18991. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18992. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18993. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18994. cat >>confdefs.h <<_ACEOF
  18995. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18996. _ACEOF
  18997. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18998. case $LIBOBJS in
  18999. "lstat.$ac_objext" | \
  19000. *" lstat.$ac_objext" | \
  19001. "lstat.$ac_objext "* | \
  19002. *" lstat.$ac_objext "* ) ;;
  19003. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  19004. esac
  19005. fi
  19006. for ac_header in stdlib.h
  19007. do
  19008. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19009. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19010. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19011. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19012. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19013. echo $ECHO_N "(cached) $ECHO_C" >&6
  19014. fi
  19015. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19016. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19017. else
  19018. # Is the header compilable?
  19019. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19020. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19021. cat >conftest.$ac_ext <<_ACEOF
  19022. /* confdefs.h. */
  19023. _ACEOF
  19024. cat confdefs.h >>conftest.$ac_ext
  19025. cat >>conftest.$ac_ext <<_ACEOF
  19026. /* end confdefs.h. */
  19027. $ac_includes_default
  19028. #include <$ac_header>
  19029. _ACEOF
  19030. rm -f conftest.$ac_objext
  19031. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19032. (eval $ac_compile) 2>conftest.er1
  19033. ac_status=$?
  19034. grep -v '^ *+' conftest.er1 >conftest.err
  19035. rm -f conftest.er1
  19036. cat conftest.err >&5
  19037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19038. (exit $ac_status); } &&
  19039. { ac_try='test -z "$ac_c_werror_flag"
  19040. || test ! -s conftest.err'
  19041. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19042. (eval $ac_try) 2>&5
  19043. ac_status=$?
  19044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19045. (exit $ac_status); }; } &&
  19046. { ac_try='test -s conftest.$ac_objext'
  19047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19048. (eval $ac_try) 2>&5
  19049. ac_status=$?
  19050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19051. (exit $ac_status); }; }; then
  19052. ac_header_compiler=yes
  19053. else
  19054. echo "$as_me: failed program was:" >&5
  19055. sed 's/^/| /' conftest.$ac_ext >&5
  19056. ac_header_compiler=no
  19057. fi
  19058. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19059. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19060. echo "${ECHO_T}$ac_header_compiler" >&6
  19061. # Is the header present?
  19062. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19063. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19064. cat >conftest.$ac_ext <<_ACEOF
  19065. /* confdefs.h. */
  19066. _ACEOF
  19067. cat confdefs.h >>conftest.$ac_ext
  19068. cat >>conftest.$ac_ext <<_ACEOF
  19069. /* end confdefs.h. */
  19070. #include <$ac_header>
  19071. _ACEOF
  19072. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19073. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19074. ac_status=$?
  19075. grep -v '^ *+' conftest.er1 >conftest.err
  19076. rm -f conftest.er1
  19077. cat conftest.err >&5
  19078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19079. (exit $ac_status); } >/dev/null; then
  19080. if test -s conftest.err; then
  19081. ac_cpp_err=$ac_c_preproc_warn_flag
  19082. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19083. else
  19084. ac_cpp_err=
  19085. fi
  19086. else
  19087. ac_cpp_err=yes
  19088. fi
  19089. if test -z "$ac_cpp_err"; then
  19090. ac_header_preproc=yes
  19091. else
  19092. echo "$as_me: failed program was:" >&5
  19093. sed 's/^/| /' conftest.$ac_ext >&5
  19094. ac_header_preproc=no
  19095. fi
  19096. rm -f conftest.err conftest.$ac_ext
  19097. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19098. echo "${ECHO_T}$ac_header_preproc" >&6
  19099. # So? What about this header?
  19100. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19101. yes:no: )
  19102. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19103. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19104. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19105. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19106. ac_header_preproc=yes
  19107. ;;
  19108. no:yes:* )
  19109. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19110. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19111. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19112. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19113. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19114. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19115. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19116. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19117. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19118. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19119. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19120. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19121. (
  19122. cat <<\_ASBOX
  19123. ## ------------------------------------------ ##
  19124. ## Report this to http://bugzilla.redhat.com/ ##
  19125. ## ------------------------------------------ ##
  19126. _ASBOX
  19127. ) |
  19128. sed "s/^/$as_me: WARNING: /" >&2
  19129. ;;
  19130. esac
  19131. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19132. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19133. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19134. echo $ECHO_N "(cached) $ECHO_C" >&6
  19135. else
  19136. eval "$as_ac_Header=\$ac_header_preproc"
  19137. fi
  19138. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19139. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19140. fi
  19141. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19142. cat >>confdefs.h <<_ACEOF
  19143. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19144. _ACEOF
  19145. fi
  19146. done
  19147. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19148. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19149. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19150. echo $ECHO_N "(cached) $ECHO_C" >&6
  19151. else
  19152. if test "$cross_compiling" = yes; then
  19153. ac_cv_func_malloc_0_nonnull=no
  19154. else
  19155. cat >conftest.$ac_ext <<_ACEOF
  19156. /* confdefs.h. */
  19157. _ACEOF
  19158. cat confdefs.h >>conftest.$ac_ext
  19159. cat >>conftest.$ac_ext <<_ACEOF
  19160. /* end confdefs.h. */
  19161. #if STDC_HEADERS || HAVE_STDLIB_H
  19162. # include <stdlib.h>
  19163. #else
  19164. char *malloc ();
  19165. #endif
  19166. int
  19167. main ()
  19168. {
  19169. exit (malloc (0) ? 0 : 1);
  19170. ;
  19171. return 0;
  19172. }
  19173. _ACEOF
  19174. rm -f conftest$ac_exeext
  19175. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19176. (eval $ac_link) 2>&5
  19177. ac_status=$?
  19178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19179. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19181. (eval $ac_try) 2>&5
  19182. ac_status=$?
  19183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19184. (exit $ac_status); }; }; then
  19185. ac_cv_func_malloc_0_nonnull=yes
  19186. else
  19187. echo "$as_me: program exited with status $ac_status" >&5
  19188. echo "$as_me: failed program was:" >&5
  19189. sed 's/^/| /' conftest.$ac_ext >&5
  19190. ( exit $ac_status )
  19191. ac_cv_func_malloc_0_nonnull=no
  19192. fi
  19193. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19194. fi
  19195. fi
  19196. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19197. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19198. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19199. cat >>confdefs.h <<\_ACEOF
  19200. #define HAVE_MALLOC 1
  19201. _ACEOF
  19202. else
  19203. cat >>confdefs.h <<\_ACEOF
  19204. #define HAVE_MALLOC 0
  19205. _ACEOF
  19206. case $LIBOBJS in
  19207. "malloc.$ac_objext" | \
  19208. *" malloc.$ac_objext" | \
  19209. "malloc.$ac_objext "* | \
  19210. *" malloc.$ac_objext "* ) ;;
  19211. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19212. esac
  19213. cat >>confdefs.h <<\_ACEOF
  19214. #define malloc rpl_malloc
  19215. _ACEOF
  19216. fi
  19217. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19218. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19219. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19220. echo $ECHO_N "(cached) $ECHO_C" >&6
  19221. else
  19222. if test "$cross_compiling" = yes; then
  19223. ac_cv_func_memcmp_working=no
  19224. else
  19225. cat >conftest.$ac_ext <<_ACEOF
  19226. /* confdefs.h. */
  19227. _ACEOF
  19228. cat confdefs.h >>conftest.$ac_ext
  19229. cat >>conftest.$ac_ext <<_ACEOF
  19230. /* end confdefs.h. */
  19231. $ac_includes_default
  19232. int
  19233. main ()
  19234. {
  19235. /* Some versions of memcmp are not 8-bit clean. */
  19236. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19237. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19238. exit (1);
  19239. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19240. or more and with at least one buffer not starting on a 4-byte boundary.
  19241. William Lewis provided this test program. */
  19242. {
  19243. char foo[21];
  19244. char bar[21];
  19245. int i;
  19246. for (i = 0; i < 4; i++)
  19247. {
  19248. char *a = foo + i;
  19249. char *b = bar + i;
  19250. strcpy (a, "--------01111111");
  19251. strcpy (b, "--------10000000");
  19252. if (memcmp (a, b, 16) >= 0)
  19253. exit (1);
  19254. }
  19255. exit (0);
  19256. }
  19257. ;
  19258. return 0;
  19259. }
  19260. _ACEOF
  19261. rm -f conftest$ac_exeext
  19262. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19263. (eval $ac_link) 2>&5
  19264. ac_status=$?
  19265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19266. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19268. (eval $ac_try) 2>&5
  19269. ac_status=$?
  19270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19271. (exit $ac_status); }; }; then
  19272. ac_cv_func_memcmp_working=yes
  19273. else
  19274. echo "$as_me: program exited with status $ac_status" >&5
  19275. echo "$as_me: failed program was:" >&5
  19276. sed 's/^/| /' conftest.$ac_ext >&5
  19277. ( exit $ac_status )
  19278. ac_cv_func_memcmp_working=no
  19279. fi
  19280. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19281. fi
  19282. fi
  19283. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19284. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19285. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19286. "memcmp.$ac_objext" | \
  19287. *" memcmp.$ac_objext" | \
  19288. "memcmp.$ac_objext "* | \
  19289. *" memcmp.$ac_objext "* ) ;;
  19290. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19291. esac
  19292. for ac_header in stdlib.h unistd.h
  19293. do
  19294. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19295. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19296. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19297. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19298. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19299. echo $ECHO_N "(cached) $ECHO_C" >&6
  19300. fi
  19301. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19302. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19303. else
  19304. # Is the header compilable?
  19305. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19306. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19307. cat >conftest.$ac_ext <<_ACEOF
  19308. /* confdefs.h. */
  19309. _ACEOF
  19310. cat confdefs.h >>conftest.$ac_ext
  19311. cat >>conftest.$ac_ext <<_ACEOF
  19312. /* end confdefs.h. */
  19313. $ac_includes_default
  19314. #include <$ac_header>
  19315. _ACEOF
  19316. rm -f conftest.$ac_objext
  19317. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19318. (eval $ac_compile) 2>conftest.er1
  19319. ac_status=$?
  19320. grep -v '^ *+' conftest.er1 >conftest.err
  19321. rm -f conftest.er1
  19322. cat conftest.err >&5
  19323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19324. (exit $ac_status); } &&
  19325. { ac_try='test -z "$ac_c_werror_flag"
  19326. || test ! -s conftest.err'
  19327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19328. (eval $ac_try) 2>&5
  19329. ac_status=$?
  19330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19331. (exit $ac_status); }; } &&
  19332. { ac_try='test -s conftest.$ac_objext'
  19333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19334. (eval $ac_try) 2>&5
  19335. ac_status=$?
  19336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19337. (exit $ac_status); }; }; then
  19338. ac_header_compiler=yes
  19339. else
  19340. echo "$as_me: failed program was:" >&5
  19341. sed 's/^/| /' conftest.$ac_ext >&5
  19342. ac_header_compiler=no
  19343. fi
  19344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19345. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19346. echo "${ECHO_T}$ac_header_compiler" >&6
  19347. # Is the header present?
  19348. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19349. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19350. cat >conftest.$ac_ext <<_ACEOF
  19351. /* confdefs.h. */
  19352. _ACEOF
  19353. cat confdefs.h >>conftest.$ac_ext
  19354. cat >>conftest.$ac_ext <<_ACEOF
  19355. /* end confdefs.h. */
  19356. #include <$ac_header>
  19357. _ACEOF
  19358. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19359. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19360. ac_status=$?
  19361. grep -v '^ *+' conftest.er1 >conftest.err
  19362. rm -f conftest.er1
  19363. cat conftest.err >&5
  19364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19365. (exit $ac_status); } >/dev/null; then
  19366. if test -s conftest.err; then
  19367. ac_cpp_err=$ac_c_preproc_warn_flag
  19368. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19369. else
  19370. ac_cpp_err=
  19371. fi
  19372. else
  19373. ac_cpp_err=yes
  19374. fi
  19375. if test -z "$ac_cpp_err"; then
  19376. ac_header_preproc=yes
  19377. else
  19378. echo "$as_me: failed program was:" >&5
  19379. sed 's/^/| /' conftest.$ac_ext >&5
  19380. ac_header_preproc=no
  19381. fi
  19382. rm -f conftest.err conftest.$ac_ext
  19383. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19384. echo "${ECHO_T}$ac_header_preproc" >&6
  19385. # So? What about this header?
  19386. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19387. yes:no: )
  19388. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19389. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19390. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19391. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19392. ac_header_preproc=yes
  19393. ;;
  19394. no:yes:* )
  19395. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19396. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19397. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19398. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19399. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19400. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19401. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19402. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19403. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19404. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19405. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19406. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19407. (
  19408. cat <<\_ASBOX
  19409. ## ------------------------------------------ ##
  19410. ## Report this to http://bugzilla.redhat.com/ ##
  19411. ## ------------------------------------------ ##
  19412. _ASBOX
  19413. ) |
  19414. sed "s/^/$as_me: WARNING: /" >&2
  19415. ;;
  19416. esac
  19417. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19418. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19419. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19420. echo $ECHO_N "(cached) $ECHO_C" >&6
  19421. else
  19422. eval "$as_ac_Header=\$ac_header_preproc"
  19423. fi
  19424. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19425. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19426. fi
  19427. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19428. cat >>confdefs.h <<_ACEOF
  19429. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19430. _ACEOF
  19431. fi
  19432. done
  19433. for ac_func in getpagesize
  19434. do
  19435. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19436. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19437. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19438. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19439. echo $ECHO_N "(cached) $ECHO_C" >&6
  19440. else
  19441. cat >conftest.$ac_ext <<_ACEOF
  19442. /* confdefs.h. */
  19443. _ACEOF
  19444. cat confdefs.h >>conftest.$ac_ext
  19445. cat >>conftest.$ac_ext <<_ACEOF
  19446. /* end confdefs.h. */
  19447. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19448. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19449. #define $ac_func innocuous_$ac_func
  19450. /* System header to define __stub macros and hopefully few prototypes,
  19451. which can conflict with char $ac_func (); below.
  19452. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19453. <limits.h> exists even on freestanding compilers. */
  19454. #ifdef __STDC__
  19455. # include <limits.h>
  19456. #else
  19457. # include <assert.h>
  19458. #endif
  19459. #undef $ac_func
  19460. /* Override any gcc2 internal prototype to avoid an error. */
  19461. #ifdef __cplusplus
  19462. extern "C"
  19463. {
  19464. #endif
  19465. /* We use char because int might match the return type of a gcc2
  19466. builtin and then its argument prototype would still apply. */
  19467. char $ac_func ();
  19468. /* The GNU C library defines this for functions which it implements
  19469. to always fail with ENOSYS. Some functions are actually named
  19470. something starting with __ and the normal name is an alias. */
  19471. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19472. choke me
  19473. #else
  19474. char (*f) () = $ac_func;
  19475. #endif
  19476. #ifdef __cplusplus
  19477. }
  19478. #endif
  19479. int
  19480. main ()
  19481. {
  19482. return f != $ac_func;
  19483. ;
  19484. return 0;
  19485. }
  19486. _ACEOF
  19487. rm -f conftest.$ac_objext conftest$ac_exeext
  19488. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19489. (eval $ac_link) 2>conftest.er1
  19490. ac_status=$?
  19491. grep -v '^ *+' conftest.er1 >conftest.err
  19492. rm -f conftest.er1
  19493. cat conftest.err >&5
  19494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19495. (exit $ac_status); } &&
  19496. { ac_try='test -z "$ac_c_werror_flag"
  19497. || test ! -s conftest.err'
  19498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19499. (eval $ac_try) 2>&5
  19500. ac_status=$?
  19501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19502. (exit $ac_status); }; } &&
  19503. { ac_try='test -s conftest$ac_exeext'
  19504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19505. (eval $ac_try) 2>&5
  19506. ac_status=$?
  19507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19508. (exit $ac_status); }; }; then
  19509. eval "$as_ac_var=yes"
  19510. else
  19511. echo "$as_me: failed program was:" >&5
  19512. sed 's/^/| /' conftest.$ac_ext >&5
  19513. eval "$as_ac_var=no"
  19514. fi
  19515. rm -f conftest.err conftest.$ac_objext \
  19516. conftest$ac_exeext conftest.$ac_ext
  19517. fi
  19518. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19519. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19520. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19521. cat >>confdefs.h <<_ACEOF
  19522. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19523. _ACEOF
  19524. fi
  19525. done
  19526. echo "$as_me:$LINENO: checking for working mmap" >&5
  19527. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19528. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19529. echo $ECHO_N "(cached) $ECHO_C" >&6
  19530. else
  19531. if test "$cross_compiling" = yes; then
  19532. ac_cv_func_mmap_fixed_mapped=no
  19533. else
  19534. cat >conftest.$ac_ext <<_ACEOF
  19535. /* confdefs.h. */
  19536. _ACEOF
  19537. cat confdefs.h >>conftest.$ac_ext
  19538. cat >>conftest.$ac_ext <<_ACEOF
  19539. /* end confdefs.h. */
  19540. $ac_includes_default
  19541. /* malloc might have been renamed as rpl_malloc. */
  19542. #undef malloc
  19543. /* Thanks to Mike Haertel and Jim Avera for this test.
  19544. Here is a matrix of mmap possibilities:
  19545. mmap private not fixed
  19546. mmap private fixed at somewhere currently unmapped
  19547. mmap private fixed at somewhere already mapped
  19548. mmap shared not fixed
  19549. mmap shared fixed at somewhere currently unmapped
  19550. mmap shared fixed at somewhere already mapped
  19551. For private mappings, we should verify that changes cannot be read()
  19552. back from the file, nor mmap's back from the file at a different
  19553. address. (There have been systems where private was not correctly
  19554. implemented like the infamous i386 svr4.0, and systems where the
  19555. VM page cache was not coherent with the file system buffer cache
  19556. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19557. For shared mappings, we should conversely verify that changes get
  19558. propagated back to all the places they're supposed to be.
  19559. Grep wants private fixed already mapped.
  19560. The main things grep needs to know about mmap are:
  19561. * does it exist and is it safe to write into the mmap'd area
  19562. * how to use it (BSD variants) */
  19563. #include <fcntl.h>
  19564. #include <sys/mman.h>
  19565. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19566. char *malloc ();
  19567. #endif
  19568. /* This mess was copied from the GNU getpagesize.h. */
  19569. #if !HAVE_GETPAGESIZE
  19570. /* Assume that all systems that can run configure have sys/param.h. */
  19571. # if !HAVE_SYS_PARAM_H
  19572. # define HAVE_SYS_PARAM_H 1
  19573. # endif
  19574. # ifdef _SC_PAGESIZE
  19575. # define getpagesize() sysconf(_SC_PAGESIZE)
  19576. # else /* no _SC_PAGESIZE */
  19577. # if HAVE_SYS_PARAM_H
  19578. # include <sys/param.h>
  19579. # ifdef EXEC_PAGESIZE
  19580. # define getpagesize() EXEC_PAGESIZE
  19581. # else /* no EXEC_PAGESIZE */
  19582. # ifdef NBPG
  19583. # define getpagesize() NBPG * CLSIZE
  19584. # ifndef CLSIZE
  19585. # define CLSIZE 1
  19586. # endif /* no CLSIZE */
  19587. # else /* no NBPG */
  19588. # ifdef NBPC
  19589. # define getpagesize() NBPC
  19590. # else /* no NBPC */
  19591. # ifdef PAGESIZE
  19592. # define getpagesize() PAGESIZE
  19593. # endif /* PAGESIZE */
  19594. # endif /* no NBPC */
  19595. # endif /* no NBPG */
  19596. # endif /* no EXEC_PAGESIZE */
  19597. # else /* no HAVE_SYS_PARAM_H */
  19598. # define getpagesize() 8192 /* punt totally */
  19599. # endif /* no HAVE_SYS_PARAM_H */
  19600. # endif /* no _SC_PAGESIZE */
  19601. #endif /* no HAVE_GETPAGESIZE */
  19602. int
  19603. main ()
  19604. {
  19605. char *data, *data2, *data3;
  19606. int i, pagesize;
  19607. int fd;
  19608. pagesize = getpagesize ();
  19609. /* First, make a file with some known garbage in it. */
  19610. data = (char *) malloc (pagesize);
  19611. if (!data)
  19612. exit (1);
  19613. for (i = 0; i < pagesize; ++i)
  19614. *(data + i) = rand ();
  19615. umask (0);
  19616. fd = creat ("conftest.mmap", 0600);
  19617. if (fd < 0)
  19618. exit (1);
  19619. if (write (fd, data, pagesize) != pagesize)
  19620. exit (1);
  19621. close (fd);
  19622. /* Next, try to mmap the file at a fixed address which already has
  19623. something else allocated at it. If we can, also make sure that
  19624. we see the same garbage. */
  19625. fd = open ("conftest.mmap", O_RDWR);
  19626. if (fd < 0)
  19627. exit (1);
  19628. data2 = (char *) malloc (2 * pagesize);
  19629. if (!data2)
  19630. exit (1);
  19631. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19632. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19633. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19634. exit (1);
  19635. for (i = 0; i < pagesize; ++i)
  19636. if (*(data + i) != *(data2 + i))
  19637. exit (1);
  19638. /* Finally, make sure that changes to the mapped area do not
  19639. percolate back to the file as seen by read(). (This is a bug on
  19640. some variants of i386 svr4.0.) */
  19641. for (i = 0; i < pagesize; ++i)
  19642. *(data2 + i) = *(data2 + i) + 1;
  19643. data3 = (char *) malloc (pagesize);
  19644. if (!data3)
  19645. exit (1);
  19646. if (read (fd, data3, pagesize) != pagesize)
  19647. exit (1);
  19648. for (i = 0; i < pagesize; ++i)
  19649. if (*(data + i) != *(data3 + i))
  19650. exit (1);
  19651. close (fd);
  19652. exit (0);
  19653. }
  19654. _ACEOF
  19655. rm -f conftest$ac_exeext
  19656. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19657. (eval $ac_link) 2>&5
  19658. ac_status=$?
  19659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19662. (eval $ac_try) 2>&5
  19663. ac_status=$?
  19664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19665. (exit $ac_status); }; }; then
  19666. ac_cv_func_mmap_fixed_mapped=yes
  19667. else
  19668. echo "$as_me: program exited with status $ac_status" >&5
  19669. echo "$as_me: failed program was:" >&5
  19670. sed 's/^/| /' conftest.$ac_ext >&5
  19671. ( exit $ac_status )
  19672. ac_cv_func_mmap_fixed_mapped=no
  19673. fi
  19674. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19675. fi
  19676. fi
  19677. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19678. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19679. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19680. cat >>confdefs.h <<\_ACEOF
  19681. #define HAVE_MMAP 1
  19682. _ACEOF
  19683. fi
  19684. rm -f conftest.mmap
  19685. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19686. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19687. if test "${ac_cv_type_signal+set}" = set; then
  19688. echo $ECHO_N "(cached) $ECHO_C" >&6
  19689. else
  19690. cat >conftest.$ac_ext <<_ACEOF
  19691. /* confdefs.h. */
  19692. _ACEOF
  19693. cat confdefs.h >>conftest.$ac_ext
  19694. cat >>conftest.$ac_ext <<_ACEOF
  19695. /* end confdefs.h. */
  19696. #include <sys/types.h>
  19697. #include <signal.h>
  19698. #ifdef signal
  19699. # undef signal
  19700. #endif
  19701. #ifdef __cplusplus
  19702. extern "C" void (*signal (int, void (*)(int)))(int);
  19703. #else
  19704. void (*signal ()) ();
  19705. #endif
  19706. int
  19707. main ()
  19708. {
  19709. int i;
  19710. ;
  19711. return 0;
  19712. }
  19713. _ACEOF
  19714. rm -f conftest.$ac_objext
  19715. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19716. (eval $ac_compile) 2>conftest.er1
  19717. ac_status=$?
  19718. grep -v '^ *+' conftest.er1 >conftest.err
  19719. rm -f conftest.er1
  19720. cat conftest.err >&5
  19721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19722. (exit $ac_status); } &&
  19723. { ac_try='test -z "$ac_c_werror_flag"
  19724. || test ! -s conftest.err'
  19725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19726. (eval $ac_try) 2>&5
  19727. ac_status=$?
  19728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19729. (exit $ac_status); }; } &&
  19730. { ac_try='test -s conftest.$ac_objext'
  19731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19732. (eval $ac_try) 2>&5
  19733. ac_status=$?
  19734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19735. (exit $ac_status); }; }; then
  19736. ac_cv_type_signal=void
  19737. else
  19738. echo "$as_me: failed program was:" >&5
  19739. sed 's/^/| /' conftest.$ac_ext >&5
  19740. ac_cv_type_signal=int
  19741. fi
  19742. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19743. fi
  19744. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19745. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19746. cat >>confdefs.h <<_ACEOF
  19747. #define RETSIGTYPE $ac_cv_type_signal
  19748. _ACEOF
  19749. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19750. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19751. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19752. echo $ECHO_N "(cached) $ECHO_C" >&6
  19753. else
  19754. if test "$cross_compiling" = yes; then
  19755. ac_cv_func_stat_empty_string_bug=yes
  19756. else
  19757. cat >conftest.$ac_ext <<_ACEOF
  19758. /* confdefs.h. */
  19759. _ACEOF
  19760. cat confdefs.h >>conftest.$ac_ext
  19761. cat >>conftest.$ac_ext <<_ACEOF
  19762. /* end confdefs.h. */
  19763. $ac_includes_default
  19764. int
  19765. main ()
  19766. {
  19767. struct stat sbuf;
  19768. exit (stat ("", &sbuf) ? 1 : 0);
  19769. ;
  19770. return 0;
  19771. }
  19772. _ACEOF
  19773. rm -f conftest$ac_exeext
  19774. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19775. (eval $ac_link) 2>&5
  19776. ac_status=$?
  19777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19778. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19780. (eval $ac_try) 2>&5
  19781. ac_status=$?
  19782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19783. (exit $ac_status); }; }; then
  19784. ac_cv_func_stat_empty_string_bug=yes
  19785. else
  19786. echo "$as_me: program exited with status $ac_status" >&5
  19787. echo "$as_me: failed program was:" >&5
  19788. sed 's/^/| /' conftest.$ac_ext >&5
  19789. ( exit $ac_status )
  19790. ac_cv_func_stat_empty_string_bug=no
  19791. fi
  19792. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19793. fi
  19794. fi
  19795. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19796. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19797. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19798. case $LIBOBJS in
  19799. "stat.$ac_objext" | \
  19800. *" stat.$ac_objext" | \
  19801. "stat.$ac_objext "* | \
  19802. *" stat.$ac_objext "* ) ;;
  19803. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19804. esac
  19805. cat >>confdefs.h <<_ACEOF
  19806. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19807. _ACEOF
  19808. fi
  19809. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19810. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19811. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19812. echo $ECHO_N "(cached) $ECHO_C" >&6
  19813. else
  19814. cat >conftest.$ac_ext <<_ACEOF
  19815. /* confdefs.h. */
  19816. _ACEOF
  19817. cat confdefs.h >>conftest.$ac_ext
  19818. cat >>conftest.$ac_ext <<_ACEOF
  19819. /* end confdefs.h. */
  19820. $ac_includes_default
  19821. int
  19822. main ()
  19823. {
  19824. #ifndef strerror_r
  19825. char *p = (char *) strerror_r;
  19826. #endif
  19827. ;
  19828. return 0;
  19829. }
  19830. _ACEOF
  19831. rm -f conftest.$ac_objext
  19832. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19833. (eval $ac_compile) 2>conftest.er1
  19834. ac_status=$?
  19835. grep -v '^ *+' conftest.er1 >conftest.err
  19836. rm -f conftest.er1
  19837. cat conftest.err >&5
  19838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19839. (exit $ac_status); } &&
  19840. { ac_try='test -z "$ac_c_werror_flag"
  19841. || test ! -s conftest.err'
  19842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19843. (eval $ac_try) 2>&5
  19844. ac_status=$?
  19845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19846. (exit $ac_status); }; } &&
  19847. { ac_try='test -s conftest.$ac_objext'
  19848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19849. (eval $ac_try) 2>&5
  19850. ac_status=$?
  19851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19852. (exit $ac_status); }; }; then
  19853. ac_cv_have_decl_strerror_r=yes
  19854. else
  19855. echo "$as_me: failed program was:" >&5
  19856. sed 's/^/| /' conftest.$ac_ext >&5
  19857. ac_cv_have_decl_strerror_r=no
  19858. fi
  19859. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19860. fi
  19861. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19862. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19863. if test $ac_cv_have_decl_strerror_r = yes; then
  19864. cat >>confdefs.h <<_ACEOF
  19865. #define HAVE_DECL_STRERROR_R 1
  19866. _ACEOF
  19867. else
  19868. cat >>confdefs.h <<_ACEOF
  19869. #define HAVE_DECL_STRERROR_R 0
  19870. _ACEOF
  19871. fi
  19872. for ac_func in strerror_r
  19873. do
  19874. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19875. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19876. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19877. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19878. echo $ECHO_N "(cached) $ECHO_C" >&6
  19879. else
  19880. cat >conftest.$ac_ext <<_ACEOF
  19881. /* confdefs.h. */
  19882. _ACEOF
  19883. cat confdefs.h >>conftest.$ac_ext
  19884. cat >>conftest.$ac_ext <<_ACEOF
  19885. /* end confdefs.h. */
  19886. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19887. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19888. #define $ac_func innocuous_$ac_func
  19889. /* System header to define __stub macros and hopefully few prototypes,
  19890. which can conflict with char $ac_func (); below.
  19891. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19892. <limits.h> exists even on freestanding compilers. */
  19893. #ifdef __STDC__
  19894. # include <limits.h>
  19895. #else
  19896. # include <assert.h>
  19897. #endif
  19898. #undef $ac_func
  19899. /* Override any gcc2 internal prototype to avoid an error. */
  19900. #ifdef __cplusplus
  19901. extern "C"
  19902. {
  19903. #endif
  19904. /* We use char because int might match the return type of a gcc2
  19905. builtin and then its argument prototype would still apply. */
  19906. char $ac_func ();
  19907. /* The GNU C library defines this for functions which it implements
  19908. to always fail with ENOSYS. Some functions are actually named
  19909. something starting with __ and the normal name is an alias. */
  19910. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19911. choke me
  19912. #else
  19913. char (*f) () = $ac_func;
  19914. #endif
  19915. #ifdef __cplusplus
  19916. }
  19917. #endif
  19918. int
  19919. main ()
  19920. {
  19921. return f != $ac_func;
  19922. ;
  19923. return 0;
  19924. }
  19925. _ACEOF
  19926. rm -f conftest.$ac_objext conftest$ac_exeext
  19927. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19928. (eval $ac_link) 2>conftest.er1
  19929. ac_status=$?
  19930. grep -v '^ *+' conftest.er1 >conftest.err
  19931. rm -f conftest.er1
  19932. cat conftest.err >&5
  19933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19934. (exit $ac_status); } &&
  19935. { ac_try='test -z "$ac_c_werror_flag"
  19936. || test ! -s conftest.err'
  19937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19938. (eval $ac_try) 2>&5
  19939. ac_status=$?
  19940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19941. (exit $ac_status); }; } &&
  19942. { ac_try='test -s conftest$ac_exeext'
  19943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19944. (eval $ac_try) 2>&5
  19945. ac_status=$?
  19946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19947. (exit $ac_status); }; }; then
  19948. eval "$as_ac_var=yes"
  19949. else
  19950. echo "$as_me: failed program was:" >&5
  19951. sed 's/^/| /' conftest.$ac_ext >&5
  19952. eval "$as_ac_var=no"
  19953. fi
  19954. rm -f conftest.err conftest.$ac_objext \
  19955. conftest$ac_exeext conftest.$ac_ext
  19956. fi
  19957. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19958. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19959. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19960. cat >>confdefs.h <<_ACEOF
  19961. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19962. _ACEOF
  19963. fi
  19964. done
  19965. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19966. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19967. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19968. echo $ECHO_N "(cached) $ECHO_C" >&6
  19969. else
  19970. ac_cv_func_strerror_r_char_p=no
  19971. if test $ac_cv_have_decl_strerror_r = yes; then
  19972. cat >conftest.$ac_ext <<_ACEOF
  19973. /* confdefs.h. */
  19974. _ACEOF
  19975. cat confdefs.h >>conftest.$ac_ext
  19976. cat >>conftest.$ac_ext <<_ACEOF
  19977. /* end confdefs.h. */
  19978. $ac_includes_default
  19979. int
  19980. main ()
  19981. {
  19982. char buf[100];
  19983. char x = *strerror_r (0, buf, sizeof buf);
  19984. char *p = strerror_r (0, buf, sizeof buf);
  19985. ;
  19986. return 0;
  19987. }
  19988. _ACEOF
  19989. rm -f conftest.$ac_objext
  19990. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19991. (eval $ac_compile) 2>conftest.er1
  19992. ac_status=$?
  19993. grep -v '^ *+' conftest.er1 >conftest.err
  19994. rm -f conftest.er1
  19995. cat conftest.err >&5
  19996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19997. (exit $ac_status); } &&
  19998. { ac_try='test -z "$ac_c_werror_flag"
  19999. || test ! -s conftest.err'
  20000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20001. (eval $ac_try) 2>&5
  20002. ac_status=$?
  20003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20004. (exit $ac_status); }; } &&
  20005. { ac_try='test -s conftest.$ac_objext'
  20006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20007. (eval $ac_try) 2>&5
  20008. ac_status=$?
  20009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20010. (exit $ac_status); }; }; then
  20011. ac_cv_func_strerror_r_char_p=yes
  20012. else
  20013. echo "$as_me: failed program was:" >&5
  20014. sed 's/^/| /' conftest.$ac_ext >&5
  20015. fi
  20016. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20017. else
  20018. # strerror_r is not declared. Choose between
  20019. # systems that have relatively inaccessible declarations for the
  20020. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  20021. # former has a strerror_r that returns char*, while the latter
  20022. # has a strerror_r that returns `int'.
  20023. # This test should segfault on the DEC system.
  20024. if test "$cross_compiling" = yes; then
  20025. :
  20026. else
  20027. cat >conftest.$ac_ext <<_ACEOF
  20028. /* confdefs.h. */
  20029. _ACEOF
  20030. cat confdefs.h >>conftest.$ac_ext
  20031. cat >>conftest.$ac_ext <<_ACEOF
  20032. /* end confdefs.h. */
  20033. $ac_includes_default
  20034. extern char *strerror_r ();
  20035. int
  20036. main ()
  20037. {
  20038. char buf[100];
  20039. char x = *strerror_r (0, buf, sizeof buf);
  20040. exit (!isalpha (x));
  20041. ;
  20042. return 0;
  20043. }
  20044. _ACEOF
  20045. rm -f conftest$ac_exeext
  20046. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20047. (eval $ac_link) 2>&5
  20048. ac_status=$?
  20049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20050. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20052. (eval $ac_try) 2>&5
  20053. ac_status=$?
  20054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20055. (exit $ac_status); }; }; then
  20056. ac_cv_func_strerror_r_char_p=yes
  20057. else
  20058. echo "$as_me: program exited with status $ac_status" >&5
  20059. echo "$as_me: failed program was:" >&5
  20060. sed 's/^/| /' conftest.$ac_ext >&5
  20061. fi
  20062. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20063. fi
  20064. fi
  20065. fi
  20066. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  20067. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  20068. if test $ac_cv_func_strerror_r_char_p = yes; then
  20069. cat >>confdefs.h <<\_ACEOF
  20070. #define STRERROR_R_CHAR_P 1
  20071. _ACEOF
  20072. fi
  20073. for ac_func in strftime
  20074. do
  20075. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20076. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20077. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20078. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20079. echo $ECHO_N "(cached) $ECHO_C" >&6
  20080. else
  20081. cat >conftest.$ac_ext <<_ACEOF
  20082. /* confdefs.h. */
  20083. _ACEOF
  20084. cat confdefs.h >>conftest.$ac_ext
  20085. cat >>conftest.$ac_ext <<_ACEOF
  20086. /* end confdefs.h. */
  20087. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20088. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20089. #define $ac_func innocuous_$ac_func
  20090. /* System header to define __stub macros and hopefully few prototypes,
  20091. which can conflict with char $ac_func (); below.
  20092. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20093. <limits.h> exists even on freestanding compilers. */
  20094. #ifdef __STDC__
  20095. # include <limits.h>
  20096. #else
  20097. # include <assert.h>
  20098. #endif
  20099. #undef $ac_func
  20100. /* Override any gcc2 internal prototype to avoid an error. */
  20101. #ifdef __cplusplus
  20102. extern "C"
  20103. {
  20104. #endif
  20105. /* We use char because int might match the return type of a gcc2
  20106. builtin and then its argument prototype would still apply. */
  20107. char $ac_func ();
  20108. /* The GNU C library defines this for functions which it implements
  20109. to always fail with ENOSYS. Some functions are actually named
  20110. something starting with __ and the normal name is an alias. */
  20111. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20112. choke me
  20113. #else
  20114. char (*f) () = $ac_func;
  20115. #endif
  20116. #ifdef __cplusplus
  20117. }
  20118. #endif
  20119. int
  20120. main ()
  20121. {
  20122. return f != $ac_func;
  20123. ;
  20124. return 0;
  20125. }
  20126. _ACEOF
  20127. rm -f conftest.$ac_objext conftest$ac_exeext
  20128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20129. (eval $ac_link) 2>conftest.er1
  20130. ac_status=$?
  20131. grep -v '^ *+' conftest.er1 >conftest.err
  20132. rm -f conftest.er1
  20133. cat conftest.err >&5
  20134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20135. (exit $ac_status); } &&
  20136. { ac_try='test -z "$ac_c_werror_flag"
  20137. || test ! -s conftest.err'
  20138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20139. (eval $ac_try) 2>&5
  20140. ac_status=$?
  20141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20142. (exit $ac_status); }; } &&
  20143. { ac_try='test -s conftest$ac_exeext'
  20144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20145. (eval $ac_try) 2>&5
  20146. ac_status=$?
  20147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20148. (exit $ac_status); }; }; then
  20149. eval "$as_ac_var=yes"
  20150. else
  20151. echo "$as_me: failed program was:" >&5
  20152. sed 's/^/| /' conftest.$ac_ext >&5
  20153. eval "$as_ac_var=no"
  20154. fi
  20155. rm -f conftest.err conftest.$ac_objext \
  20156. conftest$ac_exeext conftest.$ac_ext
  20157. fi
  20158. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20159. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20160. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20161. cat >>confdefs.h <<_ACEOF
  20162. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20163. _ACEOF
  20164. else
  20165. # strftime is in -lintl on SCO UNIX.
  20166. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20167. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20168. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20169. echo $ECHO_N "(cached) $ECHO_C" >&6
  20170. else
  20171. ac_check_lib_save_LIBS=$LIBS
  20172. LIBS="-lintl $LIBS"
  20173. cat >conftest.$ac_ext <<_ACEOF
  20174. /* confdefs.h. */
  20175. _ACEOF
  20176. cat confdefs.h >>conftest.$ac_ext
  20177. cat >>conftest.$ac_ext <<_ACEOF
  20178. /* end confdefs.h. */
  20179. /* Override any gcc2 internal prototype to avoid an error. */
  20180. #ifdef __cplusplus
  20181. extern "C"
  20182. #endif
  20183. /* We use char because int might match the return type of a gcc2
  20184. builtin and then its argument prototype would still apply. */
  20185. char strftime ();
  20186. int
  20187. main ()
  20188. {
  20189. strftime ();
  20190. ;
  20191. return 0;
  20192. }
  20193. _ACEOF
  20194. rm -f conftest.$ac_objext conftest$ac_exeext
  20195. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20196. (eval $ac_link) 2>conftest.er1
  20197. ac_status=$?
  20198. grep -v '^ *+' conftest.er1 >conftest.err
  20199. rm -f conftest.er1
  20200. cat conftest.err >&5
  20201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20202. (exit $ac_status); } &&
  20203. { ac_try='test -z "$ac_c_werror_flag"
  20204. || test ! -s conftest.err'
  20205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20206. (eval $ac_try) 2>&5
  20207. ac_status=$?
  20208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20209. (exit $ac_status); }; } &&
  20210. { ac_try='test -s conftest$ac_exeext'
  20211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20212. (eval $ac_try) 2>&5
  20213. ac_status=$?
  20214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20215. (exit $ac_status); }; }; then
  20216. ac_cv_lib_intl_strftime=yes
  20217. else
  20218. echo "$as_me: failed program was:" >&5
  20219. sed 's/^/| /' conftest.$ac_ext >&5
  20220. ac_cv_lib_intl_strftime=no
  20221. fi
  20222. rm -f conftest.err conftest.$ac_objext \
  20223. conftest$ac_exeext conftest.$ac_ext
  20224. LIBS=$ac_check_lib_save_LIBS
  20225. fi
  20226. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20227. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20228. if test $ac_cv_lib_intl_strftime = yes; then
  20229. cat >>confdefs.h <<\_ACEOF
  20230. #define HAVE_STRFTIME 1
  20231. _ACEOF
  20232. LIBS="-lintl $LIBS"
  20233. fi
  20234. fi
  20235. done
  20236. for ac_func in vprintf
  20237. do
  20238. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20239. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20240. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20241. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20242. echo $ECHO_N "(cached) $ECHO_C" >&6
  20243. else
  20244. cat >conftest.$ac_ext <<_ACEOF
  20245. /* confdefs.h. */
  20246. _ACEOF
  20247. cat confdefs.h >>conftest.$ac_ext
  20248. cat >>conftest.$ac_ext <<_ACEOF
  20249. /* end confdefs.h. */
  20250. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20251. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20252. #define $ac_func innocuous_$ac_func
  20253. /* System header to define __stub macros and hopefully few prototypes,
  20254. which can conflict with char $ac_func (); below.
  20255. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20256. <limits.h> exists even on freestanding compilers. */
  20257. #ifdef __STDC__
  20258. # include <limits.h>
  20259. #else
  20260. # include <assert.h>
  20261. #endif
  20262. #undef $ac_func
  20263. /* Override any gcc2 internal prototype to avoid an error. */
  20264. #ifdef __cplusplus
  20265. extern "C"
  20266. {
  20267. #endif
  20268. /* We use char because int might match the return type of a gcc2
  20269. builtin and then its argument prototype would still apply. */
  20270. char $ac_func ();
  20271. /* The GNU C library defines this for functions which it implements
  20272. to always fail with ENOSYS. Some functions are actually named
  20273. something starting with __ and the normal name is an alias. */
  20274. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20275. choke me
  20276. #else
  20277. char (*f) () = $ac_func;
  20278. #endif
  20279. #ifdef __cplusplus
  20280. }
  20281. #endif
  20282. int
  20283. main ()
  20284. {
  20285. return f != $ac_func;
  20286. ;
  20287. return 0;
  20288. }
  20289. _ACEOF
  20290. rm -f conftest.$ac_objext conftest$ac_exeext
  20291. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20292. (eval $ac_link) 2>conftest.er1
  20293. ac_status=$?
  20294. grep -v '^ *+' conftest.er1 >conftest.err
  20295. rm -f conftest.er1
  20296. cat conftest.err >&5
  20297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20298. (exit $ac_status); } &&
  20299. { ac_try='test -z "$ac_c_werror_flag"
  20300. || test ! -s conftest.err'
  20301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20302. (eval $ac_try) 2>&5
  20303. ac_status=$?
  20304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20305. (exit $ac_status); }; } &&
  20306. { ac_try='test -s conftest$ac_exeext'
  20307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20308. (eval $ac_try) 2>&5
  20309. ac_status=$?
  20310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20311. (exit $ac_status); }; }; then
  20312. eval "$as_ac_var=yes"
  20313. else
  20314. echo "$as_me: failed program was:" >&5
  20315. sed 's/^/| /' conftest.$ac_ext >&5
  20316. eval "$as_ac_var=no"
  20317. fi
  20318. rm -f conftest.err conftest.$ac_objext \
  20319. conftest$ac_exeext conftest.$ac_ext
  20320. fi
  20321. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20322. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20323. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20324. cat >>confdefs.h <<_ACEOF
  20325. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20326. _ACEOF
  20327. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20328. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20329. if test "${ac_cv_func__doprnt+set}" = set; then
  20330. echo $ECHO_N "(cached) $ECHO_C" >&6
  20331. else
  20332. cat >conftest.$ac_ext <<_ACEOF
  20333. /* confdefs.h. */
  20334. _ACEOF
  20335. cat confdefs.h >>conftest.$ac_ext
  20336. cat >>conftest.$ac_ext <<_ACEOF
  20337. /* end confdefs.h. */
  20338. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20339. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20340. #define _doprnt innocuous__doprnt
  20341. /* System header to define __stub macros and hopefully few prototypes,
  20342. which can conflict with char _doprnt (); below.
  20343. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20344. <limits.h> exists even on freestanding compilers. */
  20345. #ifdef __STDC__
  20346. # include <limits.h>
  20347. #else
  20348. # include <assert.h>
  20349. #endif
  20350. #undef _doprnt
  20351. /* Override any gcc2 internal prototype to avoid an error. */
  20352. #ifdef __cplusplus
  20353. extern "C"
  20354. {
  20355. #endif
  20356. /* We use char because int might match the return type of a gcc2
  20357. builtin and then its argument prototype would still apply. */
  20358. char _doprnt ();
  20359. /* The GNU C library defines this for functions which it implements
  20360. to always fail with ENOSYS. Some functions are actually named
  20361. something starting with __ and the normal name is an alias. */
  20362. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20363. choke me
  20364. #else
  20365. char (*f) () = _doprnt;
  20366. #endif
  20367. #ifdef __cplusplus
  20368. }
  20369. #endif
  20370. int
  20371. main ()
  20372. {
  20373. return f != _doprnt;
  20374. ;
  20375. return 0;
  20376. }
  20377. _ACEOF
  20378. rm -f conftest.$ac_objext conftest$ac_exeext
  20379. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20380. (eval $ac_link) 2>conftest.er1
  20381. ac_status=$?
  20382. grep -v '^ *+' conftest.er1 >conftest.err
  20383. rm -f conftest.er1
  20384. cat conftest.err >&5
  20385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20386. (exit $ac_status); } &&
  20387. { ac_try='test -z "$ac_c_werror_flag"
  20388. || test ! -s conftest.err'
  20389. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20390. (eval $ac_try) 2>&5
  20391. ac_status=$?
  20392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20393. (exit $ac_status); }; } &&
  20394. { ac_try='test -s conftest$ac_exeext'
  20395. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20396. (eval $ac_try) 2>&5
  20397. ac_status=$?
  20398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20399. (exit $ac_status); }; }; then
  20400. ac_cv_func__doprnt=yes
  20401. else
  20402. echo "$as_me: failed program was:" >&5
  20403. sed 's/^/| /' conftest.$ac_ext >&5
  20404. ac_cv_func__doprnt=no
  20405. fi
  20406. rm -f conftest.err conftest.$ac_objext \
  20407. conftest$ac_exeext conftest.$ac_ext
  20408. fi
  20409. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20410. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20411. if test $ac_cv_func__doprnt = yes; then
  20412. cat >>confdefs.h <<\_ACEOF
  20413. #define HAVE_DOPRNT 1
  20414. _ACEOF
  20415. fi
  20416. fi
  20417. done
  20418. 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
  20419. do
  20420. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20421. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20422. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20423. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20424. echo $ECHO_N "(cached) $ECHO_C" >&6
  20425. else
  20426. cat >conftest.$ac_ext <<_ACEOF
  20427. /* confdefs.h. */
  20428. _ACEOF
  20429. cat confdefs.h >>conftest.$ac_ext
  20430. cat >>conftest.$ac_ext <<_ACEOF
  20431. /* end confdefs.h. */
  20432. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20433. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20434. #define $ac_func innocuous_$ac_func
  20435. /* System header to define __stub macros and hopefully few prototypes,
  20436. which can conflict with char $ac_func (); below.
  20437. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20438. <limits.h> exists even on freestanding compilers. */
  20439. #ifdef __STDC__
  20440. # include <limits.h>
  20441. #else
  20442. # include <assert.h>
  20443. #endif
  20444. #undef $ac_func
  20445. /* Override any gcc2 internal prototype to avoid an error. */
  20446. #ifdef __cplusplus
  20447. extern "C"
  20448. {
  20449. #endif
  20450. /* We use char because int might match the return type of a gcc2
  20451. builtin and then its argument prototype would still apply. */
  20452. char $ac_func ();
  20453. /* The GNU C library defines this for functions which it implements
  20454. to always fail with ENOSYS. Some functions are actually named
  20455. something starting with __ and the normal name is an alias. */
  20456. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20457. choke me
  20458. #else
  20459. char (*f) () = $ac_func;
  20460. #endif
  20461. #ifdef __cplusplus
  20462. }
  20463. #endif
  20464. int
  20465. main ()
  20466. {
  20467. return f != $ac_func;
  20468. ;
  20469. return 0;
  20470. }
  20471. _ACEOF
  20472. rm -f conftest.$ac_objext conftest$ac_exeext
  20473. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20474. (eval $ac_link) 2>conftest.er1
  20475. ac_status=$?
  20476. grep -v '^ *+' conftest.er1 >conftest.err
  20477. rm -f conftest.er1
  20478. cat conftest.err >&5
  20479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20480. (exit $ac_status); } &&
  20481. { ac_try='test -z "$ac_c_werror_flag"
  20482. || test ! -s conftest.err'
  20483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20484. (eval $ac_try) 2>&5
  20485. ac_status=$?
  20486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20487. (exit $ac_status); }; } &&
  20488. { ac_try='test -s conftest$ac_exeext'
  20489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20490. (eval $ac_try) 2>&5
  20491. ac_status=$?
  20492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20493. (exit $ac_status); }; }; then
  20494. eval "$as_ac_var=yes"
  20495. else
  20496. echo "$as_me: failed program was:" >&5
  20497. sed 's/^/| /' conftest.$ac_ext >&5
  20498. eval "$as_ac_var=no"
  20499. fi
  20500. rm -f conftest.err conftest.$ac_objext \
  20501. conftest$ac_exeext conftest.$ac_ext
  20502. fi
  20503. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20504. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20505. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20506. cat >>confdefs.h <<_ACEOF
  20507. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20508. _ACEOF
  20509. fi
  20510. done
  20511. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20512. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20513. # Check whether --enable-debug or --disable-debug was given.
  20514. if test "${enable_debug+set}" = set; then
  20515. enableval="$enable_debug"
  20516. echo "$as_me:$LINENO: result: yes" >&5
  20517. echo "${ECHO_T}yes" >&6
  20518. debug_defs="-DDEBUG -DMCC_DEBUG"
  20519. else
  20520. echo "$as_me:$LINENO: result: no" >&5
  20521. echo "${ECHO_T}no" >&6
  20522. debug_defs=""
  20523. fi;
  20524. # Used for legacy style packaging where we bundle all of the dependencies.
  20525. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20526. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20527. # Check whether --enable-bundle or --disable-bundle was given.
  20528. if test "${enable_bundle+set}" = set; then
  20529. enableval="$enable_bundle"
  20530. echo "$as_me:$LINENO: result: yes" >&5
  20531. echo "${ECHO_T}yes" >&6
  20532. bundle="1";
  20533. else
  20534. echo "$as_me:$LINENO: result: no" >&5
  20535. echo "${ECHO_T}no" >&6
  20536. bundle="";
  20537. fi;
  20538. if test "$bundle" = "1"; then
  20539. BUNDLE_TRUE=
  20540. BUNDLE_FALSE='#'
  20541. else
  20542. BUNDLE_TRUE='#'
  20543. BUNDLE_FALSE=
  20544. fi
  20545. # these enables are for optional or experimental features
  20546. if test -z "$enable_pam_passthru" ; then
  20547. enable_pam_passthru=yes # if not set on cmdline, set default
  20548. fi
  20549. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20550. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20551. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20552. if test "${enable_pam_passthru+set}" = set; then
  20553. enableval="$enable_pam_passthru"
  20554. fi;
  20555. if test "$enable_pam_passthru" = yes ; then
  20556. echo "$as_me:$LINENO: result: yes" >&5
  20557. echo "${ECHO_T}yes" >&6
  20558. cat >>confdefs.h <<\_ACEOF
  20559. #define ENABLE_PAM_PASSTHRU 1
  20560. _ACEOF
  20561. else
  20562. echo "$as_me:$LINENO: result: no" >&5
  20563. echo "${ECHO_T}no" >&6
  20564. fi
  20565. if test "$enable_pam_passthru" = "yes"; then
  20566. enable_pam_passthru_TRUE=
  20567. enable_pam_passthru_FALSE='#'
  20568. else
  20569. enable_pam_passthru_TRUE='#'
  20570. enable_pam_passthru_FALSE=
  20571. fi
  20572. if test -z "$enable_dna" ; then
  20573. enable_dna=yes # if not set on cmdline, set default
  20574. fi
  20575. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20576. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20577. # Check whether --enable-dna or --disable-dna was given.
  20578. if test "${enable_dna+set}" = set; then
  20579. enableval="$enable_dna"
  20580. fi;
  20581. if test "$enable_dna" = yes ; then
  20582. echo "$as_me:$LINENO: result: yes" >&5
  20583. echo "${ECHO_T}yes" >&6
  20584. cat >>confdefs.h <<\_ACEOF
  20585. #define ENABLE_DNA 1
  20586. _ACEOF
  20587. else
  20588. echo "$as_me:$LINENO: result: no" >&5
  20589. echo "${ECHO_T}no" >&6
  20590. fi
  20591. if test "$enable_dna" = "yes"; then
  20592. enable_dna_TRUE=
  20593. enable_dna_FALSE='#'
  20594. else
  20595. enable_dna_TRUE='#'
  20596. enable_dna_FALSE=
  20597. fi
  20598. if test -z "$enable_ldapi" ; then
  20599. enable_ldapi=yes # if not set on cmdline, set default
  20600. fi
  20601. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20602. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20603. # Check whether --enable-ldapi or --disable-ldapi was given.
  20604. if test "${enable_ldapi+set}" = set; then
  20605. enableval="$enable_ldapi"
  20606. fi;
  20607. if test "$enable_ldapi" = yes ; then
  20608. echo "$as_me:$LINENO: result: yes" >&5
  20609. echo "${ECHO_T}yes" >&6
  20610. cat >>confdefs.h <<\_ACEOF
  20611. #define ENABLE_LDAPI 1
  20612. _ACEOF
  20613. else
  20614. echo "$as_me:$LINENO: result: no" >&5
  20615. echo "${ECHO_T}no" >&6
  20616. fi
  20617. if test "$enable_ldapi" = "yes"; then
  20618. enable_ldapi_TRUE=
  20619. enable_ldapi_FALSE='#'
  20620. else
  20621. enable_ldapi_TRUE='#'
  20622. enable_ldapi_FALSE=
  20623. fi
  20624. if test -z "$enable_autobind" ; then
  20625. enable_autobind=no # if not set on cmdline, set default
  20626. fi
  20627. echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  20628. echo $ECHO_N "checking for --enable-autobind... $ECHO_C" >&6
  20629. # Check whether --enable-autobind or --disable-autobind was given.
  20630. if test "${enable_autobind+set}" = set; then
  20631. enableval="$enable_autobind"
  20632. fi;
  20633. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  20634. echo "$as_me:$LINENO: result: yes" >&5
  20635. echo "${ECHO_T}yes" >&6
  20636. cat >>confdefs.h <<\_ACEOF
  20637. #define ENABLE_AUTOBIND 1
  20638. _ACEOF
  20639. else
  20640. echo "$as_me:$LINENO: result: no" >&5
  20641. echo "${ECHO_T}no" >&6
  20642. fi
  20643. if test "$enable_autobind" = "yes"; then
  20644. enable_autobind_TRUE=
  20645. enable_autobind_FALSE='#'
  20646. else
  20647. enable_autobind_TRUE='#'
  20648. enable_autobind_FALSE=
  20649. fi
  20650. if test -z "$enable_auto_dn_suffix" ; then
  20651. enable_auto_dn_suffix=no # if not set on cmdline, set default
  20652. fi
  20653. echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  20654. echo $ECHO_N "checking for --enable-auto-dn-suffix... $ECHO_C" >&6
  20655. # Check whether --enable-autobind or --disable-autobind was given.
  20656. if test "${enable_autobind+set}" = set; then
  20657. enableval="$enable_autobind"
  20658. fi;
  20659. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  20660. echo "$as_me:$LINENO: result: yes" >&5
  20661. echo "${ECHO_T}yes" >&6
  20662. cat >>confdefs.h <<\_ACEOF
  20663. #define ENABLE_AUTO_DN_SUFFIX 1
  20664. _ACEOF
  20665. else
  20666. echo "$as_me:$LINENO: result: no" >&5
  20667. echo "${ECHO_T}no" >&6
  20668. fi
  20669. if test "$enable_auto_dn_suffix" = "yes"; then
  20670. enable_auto_dn_suffix_TRUE=
  20671. enable_auto_dn_suffix_FALSE='#'
  20672. else
  20673. enable_auto_dn_suffix_TRUE='#'
  20674. enable_auto_dn_suffix_FALSE=
  20675. fi
  20676. if test -z "$enable_bitwise" ; then
  20677. enable_bitwise=yes # if not set on cmdline, set default
  20678. fi
  20679. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20680. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20681. # Check whether --enable-bitwise or --disable-bitwise was given.
  20682. if test "${enable_bitwise+set}" = set; then
  20683. enableval="$enable_bitwise"
  20684. fi;
  20685. if test "$enable_bitwise" = yes ; then
  20686. echo "$as_me:$LINENO: result: yes" >&5
  20687. echo "${ECHO_T}yes" >&6
  20688. cat >>confdefs.h <<\_ACEOF
  20689. #define ENABLE_BITWISE 1
  20690. _ACEOF
  20691. else
  20692. echo "$as_me:$LINENO: result: no" >&5
  20693. echo "${ECHO_T}no" >&6
  20694. fi
  20695. if test "$enable_bitwise" = "yes"; then
  20696. enable_bitwise_TRUE=
  20697. enable_bitwise_FALSE='#'
  20698. else
  20699. enable_bitwise_TRUE='#'
  20700. enable_bitwise_FALSE=
  20701. fi
  20702. if test -z "$enable_presence" ; then
  20703. enable_presence=no # if not set on cmdline, set default
  20704. fi
  20705. echo "$as_me:$LINENO: checking for --enable-presence" >&5
  20706. echo $ECHO_N "checking for --enable-presence... $ECHO_C" >&6
  20707. # Check whether --enable-presence or --disable-presence was given.
  20708. if test "${enable_presence+set}" = set; then
  20709. enableval="$enable_presence"
  20710. fi;
  20711. if test "$enable_presence" = yes ; then
  20712. echo "$as_me:$LINENO: result: yes" >&5
  20713. echo "${ECHO_T}yes" >&6
  20714. cat >>confdefs.h <<\_ACEOF
  20715. #define ENABLE_PRESENCE 1
  20716. _ACEOF
  20717. else
  20718. echo "$as_me:$LINENO: result: no" >&5
  20719. echo "${ECHO_T}no" >&6
  20720. fi
  20721. if test "$enable_presence" = "yes"; then
  20722. enable_presence_TRUE=
  20723. enable_presence_FALSE='#'
  20724. else
  20725. enable_presence_TRUE='#'
  20726. enable_presence_FALSE=
  20727. fi
  20728. # the default prefix - override with --prefix or --with-fhs
  20729. brand=389
  20730. capbrand=389
  20731. vendor="389 Project"
  20732. # BEGIN COPYRIGHT BLOCK
  20733. # Copyright (C) 2006 Red Hat, Inc.
  20734. # All rights reserved.
  20735. #
  20736. # This program is free software; you can redistribute it and/or
  20737. # modify it under the terms of the GNU General Public License
  20738. # as published by the Free Software Foundation; either version 2
  20739. # of the License, or (at your option) any later version.
  20740. #
  20741. # This program is distributed in the hope that it will be useful,
  20742. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20743. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20744. # GNU General Public License for more details.
  20745. #
  20746. # You should have received a copy of the GNU General Public License
  20747. # along with this program; if not, write to the Free Software
  20748. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20749. #
  20750. # END COPYRIGHT BLOCK
  20751. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20752. echo "$as_me: checking for FHS..." >&6;}
  20753. # check for --with-fhs
  20754. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20755. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20756. # Check whether --with-fhs or --without-fhs was given.
  20757. if test "${with_fhs+set}" = set; then
  20758. withval="$with_fhs"
  20759. with_fhs=yes
  20760. echo "$as_me:$LINENO: result: yes" >&5
  20761. echo "${ECHO_T}yes" >&6
  20762. else
  20763. echo "$as_me:$LINENO: result: no" >&5
  20764. echo "${ECHO_T}no" >&6
  20765. fi;
  20766. if test "$with_fhs" = "yes"; then
  20767. cat >>confdefs.h <<\_ACEOF
  20768. #define IS_FHS 1
  20769. _ACEOF
  20770. fi
  20771. # check for --with-fhs-opt
  20772. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20773. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20774. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20775. if test "${with_fhs_opt+set}" = set; then
  20776. withval="$with_fhs_opt"
  20777. with_fhs_opt=yes
  20778. echo "$as_me:$LINENO: result: yes" >&5
  20779. echo "${ECHO_T}yes" >&6
  20780. else
  20781. echo "$as_me:$LINENO: result: no" >&5
  20782. echo "${ECHO_T}no" >&6
  20783. fi;
  20784. if test "$with_fhs_opt" = "yes"; then
  20785. cat >>confdefs.h <<\_ACEOF
  20786. #define IS_FHS_OPT 1
  20787. _ACEOF
  20788. fi
  20789. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20790. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20791. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20792. { (exit 1); exit 1; }; }
  20793. fi
  20794. # installation paths - by default, we store everything
  20795. # under the prefix. The with-fhs option will use /usr,
  20796. # /etc, and /var. The with-fhs-opt option will use the
  20797. # prefix, but it's sysconfdir and localstatedir will be
  20798. # /etc/opt, and /var/opt.
  20799. if test "$with_fhs_opt" = "yes"; then
  20800. # Override sysconfdir and localstatedir if FHS optional
  20801. # package was requested.
  20802. sysconfdir='/etc/opt'
  20803. localstatedir='/var/opt'
  20804. # relative to datadir
  20805. sampledatadir=/data
  20806. # relative to datadir
  20807. scripttemplatedir=/script-templates
  20808. # relative to datadir
  20809. updatedir=/updates
  20810. # relative to libdir
  20811. serverdir=
  20812. # relative to libdir
  20813. serverplugindir=/plugins
  20814. # relative to datadir
  20815. infdir=/inf
  20816. # relative to datadir
  20817. mibdir=/mibs
  20818. # location of property/resource files, relative to datadir
  20819. propertydir=/properties
  20820. # relative to libdir
  20821. perldir=/perl
  20822. else
  20823. if test "$with_fhs" = "yes"; then
  20824. ac_default_prefix=/usr
  20825. prefix=$ac_default_prefix
  20826. exec_prefix=$prefix
  20827. sysconfdir='/etc'
  20828. localstatedir='/var'
  20829. fi
  20830. # relative to datadir
  20831. sampledatadir=/$PACKAGE_NAME/data
  20832. # relative to datadir
  20833. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20834. # relative to datadir
  20835. updatedir=/$PACKAGE_NAME/updates
  20836. # relative to libdir
  20837. serverdir=/$PACKAGE_NAME
  20838. # relative to libdir
  20839. serverplugindir=/$PACKAGE_NAME/plugins
  20840. # relative to datadir
  20841. infdir=/$PACKAGE_NAME/inf
  20842. # relative to datadir
  20843. mibdir=/$PACKAGE_NAME/mibs
  20844. # location of property/resource files, relative to datadir
  20845. propertydir=/$PACKAGE_NAME/properties
  20846. # relative to libdir
  20847. perldir=/$PACKAGE_NAME/perl
  20848. fi
  20849. # if mandir is the default value, override it
  20850. # otherwise, the user must have set it - just use it
  20851. if test X"$mandir" = X'${prefix}/man' ; then
  20852. mandir='$(datadir)/man'
  20853. fi
  20854. # Shared paths for all layouts
  20855. # relative to sysconfdir
  20856. configdir=/$PACKAGE_NAME/config
  20857. # relative to sysconfdir
  20858. schemadir=/$PACKAGE_NAME/schema
  20859. # default user, group
  20860. defaultuser=nobody
  20861. defaultgroup=nobody
  20862. # check for --with-instconfigdir
  20863. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20864. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20865. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20866. if test "${with_instconfigdir+set}" = set; then
  20867. withval="$with_instconfigdir"
  20868. if test $withval = yes ; then
  20869. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20870. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20871. { (exit 1); exit 1; }; }
  20872. fi
  20873. instconfigdir="$withval"
  20874. echo "$as_me:$LINENO: result: $withval" >&5
  20875. echo "${ECHO_T}$withval" >&6
  20876. else
  20877. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20878. echo "$as_me:$LINENO: result: no" >&5
  20879. echo "${ECHO_T}no" >&6
  20880. fi;
  20881. # WINNT should be true if building on Windows system not using
  20882. # cygnus, mingw, or the like and using cmd.exe as the shell
  20883. if false; then
  20884. WINNT_TRUE=
  20885. WINNT_FALSE='#'
  20886. else
  20887. WINNT_TRUE='#'
  20888. WINNT_FALSE=
  20889. fi
  20890. # Deal with platform dependent defines
  20891. # relative to sysconfdir
  20892. initdir=/rc.d
  20893. # on most platforms, we will just use perl from PATH
  20894. # On some platforms, we cannot. Why not just use any old
  20895. # perl? Because of perldap. We use a perldap that is
  20896. # compiled to either 32bit or 64bit, so we must use a native
  20897. # perl binary compiled with the same bitsize. On Solaris
  20898. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20899. # those with our 64 bit compiled product.
  20900. perlexec='/usr/bin/env perl'
  20901. case $host in
  20902. *-*-linux*)
  20903. cat >>confdefs.h <<\_ACEOF
  20904. #define XP_UNIX 1
  20905. _ACEOF
  20906. cat >>confdefs.h <<\_ACEOF
  20907. #define Linux 1
  20908. _ACEOF
  20909. cat >>confdefs.h <<\_ACEOF
  20910. #define LINUX 1
  20911. _ACEOF
  20912. cat >>confdefs.h <<\_ACEOF
  20913. #define LINUX2_0 1
  20914. _ACEOF
  20915. cat >>confdefs.h <<\_ACEOF
  20916. #define LINUX2_2 1
  20917. _ACEOF
  20918. cat >>confdefs.h <<\_ACEOF
  20919. #define LINUX2_4 1
  20920. _ACEOF
  20921. cat >>confdefs.h <<\_ACEOF
  20922. #define _GNU_SOURCE 1
  20923. _ACEOF
  20924. platform="linux"
  20925. # relative to sysconfdir
  20926. initdir=/rc.d/init.d
  20927. # do arch specific linux stuff here
  20928. case $host in
  20929. i*86-*-linux*)
  20930. cat >>confdefs.h <<\_ACEOF
  20931. #define CPU_x86
  20932. _ACEOF
  20933. cat >>confdefs.h <<\_ACEOF
  20934. #define ATOMIC_64BIT_OPERATIONS 1
  20935. _ACEOF
  20936. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  20937. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  20938. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  20939. echo $ECHO_N "(cached) $ECHO_C" >&6
  20940. else
  20941. cat >conftest.$ac_ext <<_ACEOF
  20942. /* confdefs.h. */
  20943. _ACEOF
  20944. cat confdefs.h >>conftest.$ac_ext
  20945. cat >>conftest.$ac_ext <<_ACEOF
  20946. /* end confdefs.h. */
  20947. $ac_includes_default
  20948. int
  20949. main ()
  20950. {
  20951. #ifndef __sync_add_and_fetch
  20952. char *p = (char *) __sync_add_and_fetch;
  20953. #endif
  20954. ;
  20955. return 0;
  20956. }
  20957. _ACEOF
  20958. rm -f conftest.$ac_objext
  20959. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20960. (eval $ac_compile) 2>conftest.er1
  20961. ac_status=$?
  20962. grep -v '^ *+' conftest.er1 >conftest.err
  20963. rm -f conftest.er1
  20964. cat conftest.err >&5
  20965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20966. (exit $ac_status); } &&
  20967. { ac_try='test -z "$ac_c_werror_flag"
  20968. || test ! -s conftest.err'
  20969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20970. (eval $ac_try) 2>&5
  20971. ac_status=$?
  20972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20973. (exit $ac_status); }; } &&
  20974. { ac_try='test -s conftest.$ac_objext'
  20975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20976. (eval $ac_try) 2>&5
  20977. ac_status=$?
  20978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20979. (exit $ac_status); }; }; then
  20980. ac_cv_have_decl___sync_add_and_fetch=yes
  20981. else
  20982. echo "$as_me: failed program was:" >&5
  20983. sed 's/^/| /' conftest.$ac_ext >&5
  20984. ac_cv_have_decl___sync_add_and_fetch=no
  20985. fi
  20986. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20987. fi
  20988. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  20989. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  20990. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  20991. cat >>confdefs.h <<_ACEOF
  20992. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  20993. _ACEOF
  20994. else
  20995. cat >>confdefs.h <<_ACEOF
  20996. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  20997. _ACEOF
  20998. fi
  20999. ;;
  21000. x86_64-*-linux*)
  21001. cat >>confdefs.h <<\_ACEOF
  21002. #define CPU_x86_64
  21003. _ACEOF
  21004. cat >>confdefs.h <<\_ACEOF
  21005. #define ATOMIC_64BIT_OPERATIONS 1
  21006. _ACEOF
  21007. echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  21008. echo $ECHO_N "checking whether __sync_add_and_fetch is declared... $ECHO_C" >&6
  21009. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  21010. echo $ECHO_N "(cached) $ECHO_C" >&6
  21011. else
  21012. cat >conftest.$ac_ext <<_ACEOF
  21013. /* confdefs.h. */
  21014. _ACEOF
  21015. cat confdefs.h >>conftest.$ac_ext
  21016. cat >>conftest.$ac_ext <<_ACEOF
  21017. /* end confdefs.h. */
  21018. $ac_includes_default
  21019. int
  21020. main ()
  21021. {
  21022. #ifndef __sync_add_and_fetch
  21023. char *p = (char *) __sync_add_and_fetch;
  21024. #endif
  21025. ;
  21026. return 0;
  21027. }
  21028. _ACEOF
  21029. rm -f conftest.$ac_objext
  21030. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21031. (eval $ac_compile) 2>conftest.er1
  21032. ac_status=$?
  21033. grep -v '^ *+' conftest.er1 >conftest.err
  21034. rm -f conftest.er1
  21035. cat conftest.err >&5
  21036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21037. (exit $ac_status); } &&
  21038. { ac_try='test -z "$ac_c_werror_flag"
  21039. || test ! -s conftest.err'
  21040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21041. (eval $ac_try) 2>&5
  21042. ac_status=$?
  21043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21044. (exit $ac_status); }; } &&
  21045. { ac_try='test -s conftest.$ac_objext'
  21046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21047. (eval $ac_try) 2>&5
  21048. ac_status=$?
  21049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21050. (exit $ac_status); }; }; then
  21051. ac_cv_have_decl___sync_add_and_fetch=yes
  21052. else
  21053. echo "$as_me: failed program was:" >&5
  21054. sed 's/^/| /' conftest.$ac_ext >&5
  21055. ac_cv_have_decl___sync_add_and_fetch=no
  21056. fi
  21057. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21058. fi
  21059. echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  21060. echo "${ECHO_T}$ac_cv_have_decl___sync_add_and_fetch" >&6
  21061. if test $ac_cv_have_decl___sync_add_and_fetch = yes; then
  21062. cat >>confdefs.h <<_ACEOF
  21063. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  21064. _ACEOF
  21065. else
  21066. cat >>confdefs.h <<_ACEOF
  21067. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  21068. _ACEOF
  21069. fi
  21070. ;;
  21071. esac
  21072. ;;
  21073. ia64-hp-hpux*)
  21074. cat >>confdefs.h <<\_ACEOF
  21075. #define XP_UNIX 1
  21076. _ACEOF
  21077. cat >>confdefs.h <<\_ACEOF
  21078. #define hpux 1
  21079. _ACEOF
  21080. cat >>confdefs.h <<\_ACEOF
  21081. #define HPUX 1
  21082. _ACEOF
  21083. cat >>confdefs.h <<\_ACEOF
  21084. #define HPUX11 1
  21085. _ACEOF
  21086. cat >>confdefs.h <<\_ACEOF
  21087. #define HPUX11_23 1
  21088. _ACEOF
  21089. cat >>confdefs.h <<\_ACEOF
  21090. #define CPU_ia64
  21091. _ACEOF
  21092. cat >>confdefs.h <<\_ACEOF
  21093. #define OS_hpux 1
  21094. _ACEOF
  21095. cat >>confdefs.h <<\_ACEOF
  21096. #define _POSIX_C_SOURCE 199506L
  21097. _ACEOF
  21098. cat >>confdefs.h <<\_ACEOF
  21099. #define _HPUX_SOURCE 1
  21100. _ACEOF
  21101. cat >>confdefs.h <<\_ACEOF
  21102. #define _INCLUDE_STDC__SOURCE_199901 1
  21103. _ACEOF
  21104. cat >>confdefs.h <<\_ACEOF
  21105. #define ATOMIC_64BIT_OPERATIONS 1
  21106. _ACEOF
  21107. # assume 64 bit
  21108. perlexec='/opt/perl_64/bin/perl'
  21109. platform="hpux"
  21110. initconfigdir="/$PACKAGE_NAME/config"
  21111. ;;
  21112. hppa*-hp-hpux*)
  21113. cat >>confdefs.h <<\_ACEOF
  21114. #define XP_UNIX 1
  21115. _ACEOF
  21116. cat >>confdefs.h <<\_ACEOF
  21117. #define hpux 1
  21118. _ACEOF
  21119. cat >>confdefs.h <<\_ACEOF
  21120. #define HPUX 1
  21121. _ACEOF
  21122. cat >>confdefs.h <<\_ACEOF
  21123. #define HPUX11 1
  21124. _ACEOF
  21125. cat >>confdefs.h <<\_ACEOF
  21126. #define HPUX11_11 1
  21127. _ACEOF
  21128. cat >>confdefs.h <<\_ACEOF
  21129. #define CPU_hppa
  21130. _ACEOF
  21131. cat >>confdefs.h <<\_ACEOF
  21132. #define OS_hpux 1
  21133. _ACEOF
  21134. cat >>confdefs.h <<\_ACEOF
  21135. #define _POSIX_C_SOURCE 199506L
  21136. _ACEOF
  21137. cat >>confdefs.h <<\_ACEOF
  21138. #define _HPUX_SOURCE 1
  21139. _ACEOF
  21140. cat >>confdefs.h <<\_ACEOF
  21141. #define _INCLUDE_STDC__SOURCE_199901 1
  21142. _ACEOF
  21143. cat >>confdefs.h <<\_ACEOF
  21144. #define ATOMIC_64BIT_OPERATIONS 1
  21145. _ACEOF
  21146. # assume 64 bit
  21147. initconfigdir="/$PACKAGE_NAME/config"
  21148. perlexec='/opt/perl_64/bin/perl'
  21149. platform="hpux"
  21150. ;;
  21151. sparc-sun-solaris*)
  21152. cat >>confdefs.h <<\_ACEOF
  21153. #define XP_UNIX 1
  21154. _ACEOF
  21155. cat >>confdefs.h <<\_ACEOF
  21156. #define SVR4 1
  21157. _ACEOF
  21158. cat >>confdefs.h <<\_ACEOF
  21159. #define __svr4 1
  21160. _ACEOF
  21161. cat >>confdefs.h <<\_ACEOF
  21162. #define __svr4__ 1
  21163. _ACEOF
  21164. cat >>confdefs.h <<\_ACEOF
  21165. #define _SVID_GETTOD 1
  21166. _ACEOF
  21167. cat >>confdefs.h <<\_ACEOF
  21168. #define SOLARIS 1
  21169. _ACEOF
  21170. cat >>confdefs.h <<\_ACEOF
  21171. #define CPU_sparc
  21172. _ACEOF
  21173. cat >>confdefs.h <<\_ACEOF
  21174. #define OS_solaris 1
  21175. _ACEOF
  21176. cat >>confdefs.h <<\_ACEOF
  21177. #define sunos5 1
  21178. _ACEOF
  21179. cat >>confdefs.h <<\_ACEOF
  21180. #define OSVERSION 509
  21181. _ACEOF
  21182. cat >>confdefs.h <<\_ACEOF
  21183. #define _REENTRANT 1
  21184. _ACEOF
  21185. cat >>confdefs.h <<\_ACEOF
  21186. #define NO_DOMAINNAME 1
  21187. _ACEOF
  21188. cat >>confdefs.h <<\_ACEOF
  21189. #define ATOMIC_64BIT_OPERATIONS 1
  21190. _ACEOF
  21191. LIBSOCKET=-lsocket
  21192. LIBSOCKET=$LIBSOCKET
  21193. LIBNSL=-lnsl
  21194. LIBNSL=$LIBNSL
  21195. LIBDL=-ldl
  21196. LIBDL=$LIBDL
  21197. LIBCSTD=-lCstd
  21198. LIBCSTD=$LIBCSTD
  21199. LIBCRUN=-lCrun
  21200. LIBCRUN=$LIBCRUN
  21201. platform="solaris"
  21202. # assume 64 bit
  21203. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  21204. # relative to sysconfdir
  21205. initdir=/init.d
  21206. ;;
  21207. *)
  21208. platform=""
  21209. ;;
  21210. esac
  21211. # set default initconfigdir if not already set
  21212. # value will be set so as to be relative to $(sysconfdir)
  21213. if test -z "$initconfigdir" ; then
  21214. if test -d /etc/sysconfig ; then
  21215. initconfigdir=/sysconfig
  21216. elif test -d /etc/default ; then
  21217. initconfigdir=/default
  21218. else
  21219. initconfigdir="/$PACKAGE_NAME/config"
  21220. fi
  21221. fi
  21222. if test "$platform" = "hpux"; then
  21223. HPUX_TRUE=
  21224. HPUX_FALSE='#'
  21225. else
  21226. HPUX_TRUE='#'
  21227. HPUX_FALSE=
  21228. fi
  21229. if test "$platform" = "solaris"; then
  21230. SOLARIS_TRUE=
  21231. SOLARIS_FALSE='#'
  21232. else
  21233. SOLARIS_TRUE='#'
  21234. SOLARIS_FALSE=
  21235. fi
  21236. # Check for library dependencies
  21237. # BEGIN COPYRIGHT BLOCK
  21238. # Copyright (C) 2007 Red Hat, Inc.
  21239. # All rights reserved.
  21240. #
  21241. # This program is free software; you can redistribute it and/or
  21242. # modify it under the terms of the GNU General Public License
  21243. # as published by the Free Software Foundation; either version 2
  21244. # of the License, or (at your option) any later version.
  21245. #
  21246. # This program is distributed in the hope that it will be useful,
  21247. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21248. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21249. # GNU General Public License for more details.
  21250. #
  21251. # You should have received a copy of the GNU General Public License
  21252. # along with this program; if not, write to the Free Software
  21253. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21254. #
  21255. # END COPYRIGHT BLOCK
  21256. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  21257. echo "$as_me: checking for NSPR..." >&6;}
  21258. # check for --with-nspr
  21259. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  21260. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  21261. # Check whether --with-nspr or --without-nspr was given.
  21262. if test "${with_nspr+set}" = set; then
  21263. withval="$with_nspr"
  21264. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  21265. then
  21266. echo "$as_me:$LINENO: result: using $withval" >&5
  21267. echo "${ECHO_T}using $withval" >&6
  21268. NSPRDIR=$withval
  21269. nspr_inc="-I$NSPRDIR/include"
  21270. nspr_lib="-L$NSPRDIR/lib"
  21271. nspr_libdir="$NSPRDIR/lib"
  21272. else
  21273. echo
  21274. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21275. echo "$as_me: error: $withval not found" >&2;}
  21276. { (exit 1); exit 1; }; }
  21277. fi
  21278. else
  21279. echo "$as_me:$LINENO: result: no" >&5
  21280. echo "${ECHO_T}no" >&6
  21281. fi;
  21282. # check for --with-nspr-inc
  21283. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  21284. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  21285. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  21286. if test "${with_nspr_inc+set}" = set; then
  21287. withval="$with_nspr_inc"
  21288. if test -e "$withval"/nspr.h
  21289. then
  21290. echo "$as_me:$LINENO: result: using $withval" >&5
  21291. echo "${ECHO_T}using $withval" >&6
  21292. nspr_inc="-I$withval"
  21293. else
  21294. echo
  21295. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21296. echo "$as_me: error: $withval not found" >&2;}
  21297. { (exit 1); exit 1; }; }
  21298. fi
  21299. else
  21300. echo "$as_me:$LINENO: result: no" >&5
  21301. echo "${ECHO_T}no" >&6
  21302. fi;
  21303. # check for --with-nspr-lib
  21304. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  21305. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  21306. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  21307. if test "${with_nspr_lib+set}" = set; then
  21308. withval="$with_nspr_lib"
  21309. if test -d "$withval"
  21310. then
  21311. echo "$as_me:$LINENO: result: using $withval" >&5
  21312. echo "${ECHO_T}using $withval" >&6
  21313. nspr_lib="-L$withval"
  21314. nspr_libdir="$withval"
  21315. else
  21316. echo
  21317. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21318. echo "$as_me: error: $withval not found" >&2;}
  21319. { (exit 1); exit 1; }; }
  21320. fi
  21321. else
  21322. echo "$as_me:$LINENO: result: no" >&5
  21323. echo "${ECHO_T}no" >&6
  21324. fi;
  21325. # if NSPR is not found yet, try pkg-config
  21326. # last resort
  21327. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  21328. # Extract the first word of "pkg-config", so it can be a program name with args.
  21329. set dummy pkg-config; ac_word=$2
  21330. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21332. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21333. echo $ECHO_N "(cached) $ECHO_C" >&6
  21334. else
  21335. case $PKG_CONFIG in
  21336. [\\/]* | ?:[\\/]*)
  21337. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21338. ;;
  21339. *)
  21340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21341. for as_dir in $PATH
  21342. do
  21343. IFS=$as_save_IFS
  21344. test -z "$as_dir" && as_dir=.
  21345. for ac_exec_ext in '' $ac_executable_extensions; do
  21346. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21347. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21348. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21349. break 2
  21350. fi
  21351. done
  21352. done
  21353. ;;
  21354. esac
  21355. fi
  21356. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21357. if test -n "$PKG_CONFIG"; then
  21358. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21359. echo "${ECHO_T}$PKG_CONFIG" >&6
  21360. else
  21361. echo "$as_me:$LINENO: result: no" >&5
  21362. echo "${ECHO_T}no" >&6
  21363. fi
  21364. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  21365. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  21366. if test -n "$PKG_CONFIG"; then
  21367. if $PKG_CONFIG --exists nspr; then
  21368. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  21369. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  21370. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21371. echo "$as_me:$LINENO: result: using system NSPR" >&5
  21372. echo "${ECHO_T}using system NSPR" >&6
  21373. elif $PKG_CONFIG --exists dirsec-nspr; then
  21374. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  21375. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  21376. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  21377. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  21378. echo "${ECHO_T}using system dirsec NSPR" >&6
  21379. else
  21380. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  21381. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  21382. { (exit 1); exit 1; }; }
  21383. fi
  21384. fi
  21385. fi
  21386. # BEGIN COPYRIGHT BLOCK
  21387. # Copyright (C) 2007 Red Hat, Inc.
  21388. # All rights reserved.
  21389. #
  21390. # This program is free software; you can redistribute it and/or
  21391. # modify it under the terms of the GNU General Public License
  21392. # as published by the Free Software Foundation; either version 2
  21393. # of the License, or (at your option) any later version.
  21394. #
  21395. # This program is distributed in the hope that it will be useful,
  21396. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21397. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21398. # GNU General Public License for more details.
  21399. #
  21400. # You should have received a copy of the GNU General Public License
  21401. # along with this program; if not, write to the Free Software
  21402. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21403. #
  21404. # END COPYRIGHT BLOCK
  21405. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21406. echo "$as_me: checking for NSS..." >&6;}
  21407. # check for --with-nss
  21408. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21409. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21410. # Check whether --with-nss or --without-nss was given.
  21411. if test "${with_nss+set}" = set; then
  21412. withval="$with_nss"
  21413. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21414. then
  21415. echo "$as_me:$LINENO: result: using $withval" >&5
  21416. echo "${ECHO_T}using $withval" >&6
  21417. NSSDIR=$withval
  21418. nss_inc="-I$NSSDIR/include"
  21419. nss_lib="-L$NSSDIR/lib"
  21420. nss_libdir="$NSSDIR/lib"
  21421. else
  21422. echo
  21423. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21424. echo "$as_me: error: $withval not found" >&2;}
  21425. { (exit 1); exit 1; }; }
  21426. fi
  21427. else
  21428. echo "$as_me:$LINENO: result: no" >&5
  21429. echo "${ECHO_T}no" >&6
  21430. fi;
  21431. # check for --with-nss-inc
  21432. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21433. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21434. # Check whether --with-nss-inc or --without-nss-inc was given.
  21435. if test "${with_nss_inc+set}" = set; then
  21436. withval="$with_nss_inc"
  21437. if test -e "$withval"/nss.h
  21438. then
  21439. echo "$as_me:$LINENO: result: using $withval" >&5
  21440. echo "${ECHO_T}using $withval" >&6
  21441. nss_inc="-I$withval"
  21442. else
  21443. echo
  21444. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21445. echo "$as_me: error: $withval not found" >&2;}
  21446. { (exit 1); exit 1; }; }
  21447. fi
  21448. else
  21449. echo "$as_me:$LINENO: result: no" >&5
  21450. echo "${ECHO_T}no" >&6
  21451. fi;
  21452. # check for --with-nss-lib
  21453. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21454. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21455. # Check whether --with-nss-lib or --without-nss-lib was given.
  21456. if test "${with_nss_lib+set}" = set; then
  21457. withval="$with_nss_lib"
  21458. if test -d "$withval"
  21459. then
  21460. echo "$as_me:$LINENO: result: using $withval" >&5
  21461. echo "${ECHO_T}using $withval" >&6
  21462. nss_lib="-L$withval"
  21463. nss_libdir="$withval"
  21464. else
  21465. echo
  21466. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21467. echo "$as_me: error: $withval not found" >&2;}
  21468. { (exit 1); exit 1; }; }
  21469. fi
  21470. else
  21471. echo "$as_me:$LINENO: result: no" >&5
  21472. echo "${ECHO_T}no" >&6
  21473. fi;
  21474. # if NSS is not found yet, try pkg-config
  21475. # last resort
  21476. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21477. # Extract the first word of "pkg-config", so it can be a program name with args.
  21478. set dummy pkg-config; ac_word=$2
  21479. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21480. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21481. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21482. echo $ECHO_N "(cached) $ECHO_C" >&6
  21483. else
  21484. case $PKG_CONFIG in
  21485. [\\/]* | ?:[\\/]*)
  21486. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21487. ;;
  21488. *)
  21489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21490. for as_dir in $PATH
  21491. do
  21492. IFS=$as_save_IFS
  21493. test -z "$as_dir" && as_dir=.
  21494. for ac_exec_ext in '' $ac_executable_extensions; do
  21495. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21496. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21497. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21498. break 2
  21499. fi
  21500. done
  21501. done
  21502. ;;
  21503. esac
  21504. fi
  21505. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21506. if test -n "$PKG_CONFIG"; then
  21507. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21508. echo "${ECHO_T}$PKG_CONFIG" >&6
  21509. else
  21510. echo "$as_me:$LINENO: result: no" >&5
  21511. echo "${ECHO_T}no" >&6
  21512. fi
  21513. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21514. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21515. if test -n "$PKG_CONFIG"; then
  21516. if $PKG_CONFIG --exists nss; then
  21517. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21518. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21519. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21520. echo "$as_me:$LINENO: result: using system NSS" >&5
  21521. echo "${ECHO_T}using system NSS" >&6
  21522. elif $PKG_CONFIG --exists dirsec-nss; then
  21523. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21524. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21525. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21526. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21527. echo "${ECHO_T}using system dirsec NSS" >&6
  21528. else
  21529. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21530. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21531. { (exit 1); exit 1; }; }
  21532. fi
  21533. fi
  21534. fi
  21535. # default to Mozilla LDAP C SDK - override with --with-openldap
  21536. with_ldapsdk=yes
  21537. # BEGIN COPYRIGHT BLOCK
  21538. # Copyright (C) 2009 Red Hat, Inc.
  21539. # All rights reserved.
  21540. #
  21541. # This program is free software; you can redistribute it and/or
  21542. # modify it under the terms of the GNU General Public License
  21543. # as published by the Free Software Foundation; either version 2
  21544. # of the License, or (at your option) any later version.
  21545. #
  21546. # This program is distributed in the hope that it will be useful,
  21547. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21548. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21549. # GNU General Public License for more details.
  21550. #
  21551. # You should have received a copy of the GNU General Public License
  21552. # along with this program; if not, write to the Free Software
  21553. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21554. #
  21555. # END COPYRIGHT BLOCK
  21556. { echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  21557. echo "$as_me: checking for OpenLDAP..." >&6;}
  21558. # check for --with-openldap
  21559. echo "$as_me:$LINENO: checking for --with-openldap" >&5
  21560. echo $ECHO_N "checking for --with-openldap... $ECHO_C" >&6
  21561. # Check whether --with-openldap or --without-openldap was given.
  21562. if test "${with_openldap+set}" = set; then
  21563. withval="$with_openldap"
  21564. if test "$withval" = yes
  21565. then
  21566. echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  21567. echo "${ECHO_T}using system OpenLDAP" >&6
  21568. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21569. then
  21570. echo "$as_me:$LINENO: result: using $withval" >&5
  21571. echo "${ECHO_T}using $withval" >&6
  21572. OPENLDAPDIR=$withval
  21573. openldap_incdir="$OPENLDAPDIR/include"
  21574. openldap_inc="-I$openldap_incdir"
  21575. openldap_lib="-L$OPENLDAPDIR/lib"
  21576. openldap_libdir="$OPENLDAPDIR/lib"
  21577. openldap_bindir="$OPENLDAPDIR/bin"
  21578. with_openldap=yes
  21579. else
  21580. echo
  21581. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21582. echo "$as_me: error: $withval not found" >&2;}
  21583. { (exit 1); exit 1; }; }
  21584. fi
  21585. else
  21586. echo "$as_me:$LINENO: result: no" >&5
  21587. echo "${ECHO_T}no" >&6
  21588. fi;
  21589. # check for --with-openldap-inc
  21590. echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  21591. echo $ECHO_N "checking for --with-openldap-inc... $ECHO_C" >&6
  21592. # Check whether --with-openldap-inc or --without-openldap-inc was given.
  21593. if test "${with_openldap_inc+set}" = set; then
  21594. withval="$with_openldap_inc"
  21595. if test -e "$withval"/ldap.h
  21596. then
  21597. echo "$as_me:$LINENO: result: using $withval" >&5
  21598. echo "${ECHO_T}using $withval" >&6
  21599. openldap_incdir="$withval"
  21600. openldap_inc="-I$withval"
  21601. with_openldap=yes
  21602. else
  21603. echo
  21604. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21605. echo "$as_me: error: $withval not found" >&2;}
  21606. { (exit 1); exit 1; }; }
  21607. fi
  21608. else
  21609. echo "$as_me:$LINENO: result: no" >&5
  21610. echo "${ECHO_T}no" >&6
  21611. fi;
  21612. # check for --with-openldap-lib
  21613. echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  21614. echo $ECHO_N "checking for --with-openldap-lib... $ECHO_C" >&6
  21615. # Check whether --with-openldap-lib or --without-openldap-lib was given.
  21616. if test "${with_openldap_lib+set}" = set; then
  21617. withval="$with_openldap_lib"
  21618. if test -d "$withval"
  21619. then
  21620. echo "$as_me:$LINENO: result: using $withval" >&5
  21621. echo "${ECHO_T}using $withval" >&6
  21622. openldap_lib="-L$withval"
  21623. openldap_libdir="$withval"
  21624. with_openldap=yes
  21625. else
  21626. echo
  21627. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21628. echo "$as_me: error: $withval not found" >&2;}
  21629. { (exit 1); exit 1; }; }
  21630. fi
  21631. else
  21632. echo "$as_me:$LINENO: result: no" >&5
  21633. echo "${ECHO_T}no" >&6
  21634. fi;
  21635. # check for --with-openldap-bin
  21636. echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  21637. echo $ECHO_N "checking for --with-openldap-bin... $ECHO_C" >&6
  21638. # Check whether --with-openldap-bin or --without-openldap-bin was given.
  21639. if test "${with_openldap_bin+set}" = set; then
  21640. withval="$with_openldap_bin"
  21641. if test -d "$withval"
  21642. then
  21643. echo "$as_me:$LINENO: result: using $withval" >&5
  21644. echo "${ECHO_T}using $withval" >&6
  21645. openldap_bindir="$withval"
  21646. with_openldap=yes
  21647. else
  21648. echo
  21649. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21650. echo "$as_me: error: $withval not found" >&2;}
  21651. { (exit 1); exit 1; }; }
  21652. fi
  21653. else
  21654. echo "$as_me:$LINENO: result: no" >&5
  21655. echo "${ECHO_T}no" >&6
  21656. fi;
  21657. # if OPENLDAP is not found yet, try pkg-config
  21658. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  21659. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  21660. # Extract the first word of "pkg-config", so it can be a program name with args.
  21661. set dummy pkg-config; ac_word=$2
  21662. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21663. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21664. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21665. echo $ECHO_N "(cached) $ECHO_C" >&6
  21666. else
  21667. case $PKG_CONFIG in
  21668. [\\/]* | ?:[\\/]*)
  21669. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21670. ;;
  21671. *)
  21672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21673. for as_dir in $PATH
  21674. do
  21675. IFS=$as_save_IFS
  21676. test -z "$as_dir" && as_dir=.
  21677. for ac_exec_ext in '' $ac_executable_extensions; do
  21678. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21679. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21680. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21681. break 2
  21682. fi
  21683. done
  21684. done
  21685. ;;
  21686. esac
  21687. fi
  21688. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21689. if test -n "$PKG_CONFIG"; then
  21690. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21691. echo "${ECHO_T}$PKG_CONFIG" >&6
  21692. else
  21693. echo "$as_me:$LINENO: result: no" >&5
  21694. echo "${ECHO_T}no" >&6
  21695. fi
  21696. echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  21697. echo $ECHO_N "checking for OpenLDAP with pkg-config... $ECHO_C" >&6
  21698. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  21699. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  21700. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  21701. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  21702. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  21703. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  21704. echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  21705. echo "${ECHO_T}using system OpenLDAP from pkg-config" >&6
  21706. else
  21707. openldap_incdir="/usr/include"
  21708. openldap_inc="-I$openldap_incdir"
  21709. echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  21710. echo "${ECHO_T}no OpenLDAP pkg-config files" >&6
  21711. fi
  21712. fi
  21713. fi
  21714. if test "$with_openldap" = yes ; then
  21715. save_cppflags="$CPPFLAGS"
  21716. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  21717. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21718. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21719. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21720. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21721. echo $ECHO_N "(cached) $ECHO_C" >&6
  21722. fi
  21723. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21724. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21725. else
  21726. # Is the header compilable?
  21727. echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  21728. echo $ECHO_N "checking ldap_features.h usability... $ECHO_C" >&6
  21729. cat >conftest.$ac_ext <<_ACEOF
  21730. /* confdefs.h. */
  21731. _ACEOF
  21732. cat confdefs.h >>conftest.$ac_ext
  21733. cat >>conftest.$ac_ext <<_ACEOF
  21734. /* end confdefs.h. */
  21735. $ac_includes_default
  21736. #include <ldap_features.h>
  21737. _ACEOF
  21738. rm -f conftest.$ac_objext
  21739. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21740. (eval $ac_compile) 2>conftest.er1
  21741. ac_status=$?
  21742. grep -v '^ *+' conftest.er1 >conftest.err
  21743. rm -f conftest.er1
  21744. cat conftest.err >&5
  21745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21746. (exit $ac_status); } &&
  21747. { ac_try='test -z "$ac_c_werror_flag"
  21748. || test ! -s conftest.err'
  21749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21750. (eval $ac_try) 2>&5
  21751. ac_status=$?
  21752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21753. (exit $ac_status); }; } &&
  21754. { ac_try='test -s conftest.$ac_objext'
  21755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21756. (eval $ac_try) 2>&5
  21757. ac_status=$?
  21758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21759. (exit $ac_status); }; }; then
  21760. ac_header_compiler=yes
  21761. else
  21762. echo "$as_me: failed program was:" >&5
  21763. sed 's/^/| /' conftest.$ac_ext >&5
  21764. ac_header_compiler=no
  21765. fi
  21766. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21767. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21768. echo "${ECHO_T}$ac_header_compiler" >&6
  21769. # Is the header present?
  21770. echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  21771. echo $ECHO_N "checking ldap_features.h presence... $ECHO_C" >&6
  21772. cat >conftest.$ac_ext <<_ACEOF
  21773. /* confdefs.h. */
  21774. _ACEOF
  21775. cat confdefs.h >>conftest.$ac_ext
  21776. cat >>conftest.$ac_ext <<_ACEOF
  21777. /* end confdefs.h. */
  21778. #include <ldap_features.h>
  21779. _ACEOF
  21780. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21781. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21782. ac_status=$?
  21783. grep -v '^ *+' conftest.er1 >conftest.err
  21784. rm -f conftest.er1
  21785. cat conftest.err >&5
  21786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21787. (exit $ac_status); } >/dev/null; then
  21788. if test -s conftest.err; then
  21789. ac_cpp_err=$ac_c_preproc_warn_flag
  21790. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21791. else
  21792. ac_cpp_err=
  21793. fi
  21794. else
  21795. ac_cpp_err=yes
  21796. fi
  21797. if test -z "$ac_cpp_err"; then
  21798. ac_header_preproc=yes
  21799. else
  21800. echo "$as_me: failed program was:" >&5
  21801. sed 's/^/| /' conftest.$ac_ext >&5
  21802. ac_header_preproc=no
  21803. fi
  21804. rm -f conftest.err conftest.$ac_ext
  21805. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21806. echo "${ECHO_T}$ac_header_preproc" >&6
  21807. # So? What about this header?
  21808. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21809. yes:no: )
  21810. { echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21811. echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21812. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  21813. echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  21814. ac_header_preproc=yes
  21815. ;;
  21816. no:yes:* )
  21817. { echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  21818. echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  21819. { echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  21820. echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  21821. { echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  21822. echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  21823. { echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  21824. echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  21825. { echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  21826. echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  21827. { echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  21828. echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  21829. (
  21830. cat <<\_ASBOX
  21831. ## ------------------------------------------ ##
  21832. ## Report this to http://bugzilla.redhat.com/ ##
  21833. ## ------------------------------------------ ##
  21834. _ASBOX
  21835. ) |
  21836. sed "s/^/$as_me: WARNING: /" >&2
  21837. ;;
  21838. esac
  21839. echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  21840. echo $ECHO_N "checking for ldap_features.h... $ECHO_C" >&6
  21841. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  21842. echo $ECHO_N "(cached) $ECHO_C" >&6
  21843. else
  21844. ac_cv_header_ldap_features_h=$ac_header_preproc
  21845. fi
  21846. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  21847. echo "${ECHO_T}$ac_cv_header_ldap_features_h" >&6
  21848. fi
  21849. if test $ac_cv_header_ldap_features_h = yes; then
  21850. :
  21851. else
  21852. { { echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  21853. echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  21854. { (exit 1); exit 1; }; }
  21855. fi
  21856. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21857. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21858. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  21859. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  21860. save_ldflags="$LDFLAGS"
  21861. LDFLAGS="$openldap_lib $LDFLAGS"
  21862. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  21863. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  21864. echo $ECHO_N "checking for ldap_initialize in -lldap$ol_libver... $ECHO_C" >&6
  21865. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21866. echo $ECHO_N "(cached) $ECHO_C" >&6
  21867. else
  21868. ac_check_lib_save_LIBS=$LIBS
  21869. LIBS="-lldap$ol_libver $LIBS"
  21870. cat >conftest.$ac_ext <<_ACEOF
  21871. /* confdefs.h. */
  21872. _ACEOF
  21873. cat confdefs.h >>conftest.$ac_ext
  21874. cat >>conftest.$ac_ext <<_ACEOF
  21875. /* end confdefs.h. */
  21876. /* Override any gcc2 internal prototype to avoid an error. */
  21877. #ifdef __cplusplus
  21878. extern "C"
  21879. #endif
  21880. /* We use char because int might match the return type of a gcc2
  21881. builtin and then its argument prototype would still apply. */
  21882. char ldap_initialize ();
  21883. int
  21884. main ()
  21885. {
  21886. ldap_initialize ();
  21887. ;
  21888. return 0;
  21889. }
  21890. _ACEOF
  21891. rm -f conftest.$ac_objext conftest$ac_exeext
  21892. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21893. (eval $ac_link) 2>conftest.er1
  21894. ac_status=$?
  21895. grep -v '^ *+' conftest.er1 >conftest.err
  21896. rm -f conftest.er1
  21897. cat conftest.err >&5
  21898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21899. (exit $ac_status); } &&
  21900. { ac_try='test -z "$ac_c_werror_flag"
  21901. || test ! -s conftest.err'
  21902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21903. (eval $ac_try) 2>&5
  21904. ac_status=$?
  21905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21906. (exit $ac_status); }; } &&
  21907. { ac_try='test -s conftest$ac_exeext'
  21908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21909. (eval $ac_try) 2>&5
  21910. ac_status=$?
  21911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21912. (exit $ac_status); }; }; then
  21913. eval "$as_ac_Lib=yes"
  21914. else
  21915. echo "$as_me: failed program was:" >&5
  21916. sed 's/^/| /' conftest.$ac_ext >&5
  21917. eval "$as_ac_Lib=no"
  21918. fi
  21919. rm -f conftest.err conftest.$ac_objext \
  21920. conftest$ac_exeext conftest.$ac_ext
  21921. LIBS=$ac_check_lib_save_LIBS
  21922. fi
  21923. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21924. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21925. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21926. have_ldap_lib=1
  21927. fi
  21928. if test -z "$have_ldap_lib" ; then
  21929. echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  21930. echo $ECHO_N "checking for ldap_initialize in -lldap... $ECHO_C" >&6
  21931. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  21932. echo $ECHO_N "(cached) $ECHO_C" >&6
  21933. else
  21934. ac_check_lib_save_LIBS=$LIBS
  21935. LIBS="-lldap $LIBS"
  21936. cat >conftest.$ac_ext <<_ACEOF
  21937. /* confdefs.h. */
  21938. _ACEOF
  21939. cat confdefs.h >>conftest.$ac_ext
  21940. cat >>conftest.$ac_ext <<_ACEOF
  21941. /* end confdefs.h. */
  21942. /* Override any gcc2 internal prototype to avoid an error. */
  21943. #ifdef __cplusplus
  21944. extern "C"
  21945. #endif
  21946. /* We use char because int might match the return type of a gcc2
  21947. builtin and then its argument prototype would still apply. */
  21948. char ldap_initialize ();
  21949. int
  21950. main ()
  21951. {
  21952. ldap_initialize ();
  21953. ;
  21954. return 0;
  21955. }
  21956. _ACEOF
  21957. rm -f conftest.$ac_objext conftest$ac_exeext
  21958. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21959. (eval $ac_link) 2>conftest.er1
  21960. ac_status=$?
  21961. grep -v '^ *+' conftest.er1 >conftest.err
  21962. rm -f conftest.er1
  21963. cat conftest.err >&5
  21964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21965. (exit $ac_status); } &&
  21966. { ac_try='test -z "$ac_c_werror_flag"
  21967. || test ! -s conftest.err'
  21968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21969. (eval $ac_try) 2>&5
  21970. ac_status=$?
  21971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21972. (exit $ac_status); }; } &&
  21973. { ac_try='test -s conftest$ac_exeext'
  21974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21975. (eval $ac_try) 2>&5
  21976. ac_status=$?
  21977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21978. (exit $ac_status); }; }; then
  21979. ac_cv_lib_ldap_ldap_initialize=yes
  21980. else
  21981. echo "$as_me: failed program was:" >&5
  21982. sed 's/^/| /' conftest.$ac_ext >&5
  21983. ac_cv_lib_ldap_ldap_initialize=no
  21984. fi
  21985. rm -f conftest.err conftest.$ac_objext \
  21986. conftest$ac_exeext conftest.$ac_ext
  21987. LIBS=$ac_check_lib_save_LIBS
  21988. fi
  21989. echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  21990. echo "${ECHO_T}$ac_cv_lib_ldap_ldap_initialize" >&6
  21991. if test $ac_cv_lib_ldap_ldap_initialize = yes; then
  21992. unset ol_libver
  21993. else
  21994. { { echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  21995. echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  21996. { (exit 1); exit 1; }; }
  21997. fi
  21998. fi
  21999. as_ac_Lib=`echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  22000. echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  22001. echo $ECHO_N "checking for ldap_url_parse_ext in -lldap$ol_libver... $ECHO_C" >&6
  22002. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22003. echo $ECHO_N "(cached) $ECHO_C" >&6
  22004. else
  22005. ac_check_lib_save_LIBS=$LIBS
  22006. LIBS="-lldap$ol_libver $LIBS"
  22007. cat >conftest.$ac_ext <<_ACEOF
  22008. /* confdefs.h. */
  22009. _ACEOF
  22010. cat confdefs.h >>conftest.$ac_ext
  22011. cat >>conftest.$ac_ext <<_ACEOF
  22012. /* end confdefs.h. */
  22013. /* Override any gcc2 internal prototype to avoid an error. */
  22014. #ifdef __cplusplus
  22015. extern "C"
  22016. #endif
  22017. /* We use char because int might match the return type of a gcc2
  22018. builtin and then its argument prototype would still apply. */
  22019. char ldap_url_parse_ext ();
  22020. int
  22021. main ()
  22022. {
  22023. ldap_url_parse_ext ();
  22024. ;
  22025. return 0;
  22026. }
  22027. _ACEOF
  22028. rm -f conftest.$ac_objext conftest$ac_exeext
  22029. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22030. (eval $ac_link) 2>conftest.er1
  22031. ac_status=$?
  22032. grep -v '^ *+' conftest.er1 >conftest.err
  22033. rm -f conftest.er1
  22034. cat conftest.err >&5
  22035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22036. (exit $ac_status); } &&
  22037. { ac_try='test -z "$ac_c_werror_flag"
  22038. || test ! -s conftest.err'
  22039. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22040. (eval $ac_try) 2>&5
  22041. ac_status=$?
  22042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22043. (exit $ac_status); }; } &&
  22044. { ac_try='test -s conftest$ac_exeext'
  22045. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22046. (eval $ac_try) 2>&5
  22047. ac_status=$?
  22048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22049. (exit $ac_status); }; }; then
  22050. eval "$as_ac_Lib=yes"
  22051. else
  22052. echo "$as_me: failed program was:" >&5
  22053. sed 's/^/| /' conftest.$ac_ext >&5
  22054. eval "$as_ac_Lib=no"
  22055. fi
  22056. rm -f conftest.err conftest.$ac_objext \
  22057. conftest$ac_exeext conftest.$ac_ext
  22058. LIBS=$ac_check_lib_save_LIBS
  22059. fi
  22060. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22061. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22062. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22063. cat >>confdefs.h <<\_ACEOF
  22064. #define HAVE_LDAP_URL_PARSE_EXT 1
  22065. _ACEOF
  22066. fi
  22067. LDFLAGS="$save_ldflags"
  22068. CPPFLAGS="$save_cppflags"
  22069. cat >>confdefs.h <<\_ACEOF
  22070. #define USE_OPENLDAP 1
  22071. _ACEOF
  22072. with_ldapsdk=no # using openldap not mozldap
  22073. fi
  22074. # BEGIN COPYRIGHT BLOCK
  22075. # Copyright (C) 2007 Red Hat, Inc.
  22076. # All rights reserved.
  22077. #
  22078. # This program is free software; you can redistribute it and/or
  22079. # modify it under the terms of the GNU General Public License
  22080. # as published by the Free Software Foundation; either version 2
  22081. # of the License, or (at your option) any later version.
  22082. #
  22083. # This program is distributed in the hope that it will be useful,
  22084. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22085. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22086. # GNU General Public License for more details.
  22087. #
  22088. # You should have received a copy of the GNU General Public License
  22089. # along with this program; if not, write to the Free Software
  22090. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22091. #
  22092. # END COPYRIGHT BLOCK
  22093. { echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  22094. echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  22095. # check for --with-ldapsdk
  22096. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  22097. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  22098. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  22099. if test "${with_ldapsdk+set}" = set; then
  22100. withval="$with_ldapsdk"
  22101. if test "$withval" = yes
  22102. then
  22103. echo "$as_me:$LINENO: result: using system MozLDAP" >&5
  22104. echo "${ECHO_T}using system MozLDAP" >&6
  22105. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  22106. then
  22107. echo "$as_me:$LINENO: result: using $withval" >&5
  22108. echo "${ECHO_T}using $withval" >&6
  22109. LDAPSDKDIR=$withval
  22110. ldapsdk_inc="-I$LDAPSDKDIR/include"
  22111. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  22112. ldapsdk_libdir="$LDAPSDKDIR/lib"
  22113. ldapsdk_bindir="$LDAPSDKDIR/bin"
  22114. with_ldapsdk=yes
  22115. else
  22116. echo
  22117. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22118. echo "$as_me: error: $withval not found" >&2;}
  22119. { (exit 1); exit 1; }; }
  22120. fi
  22121. else
  22122. echo "$as_me:$LINENO: result: no" >&5
  22123. echo "${ECHO_T}no" >&6
  22124. fi;
  22125. # check for --with-ldapsdk-inc
  22126. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  22127. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  22128. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  22129. if test "${with_ldapsdk_inc+set}" = set; then
  22130. withval="$with_ldapsdk_inc"
  22131. if test -e "$withval"/ldap.h
  22132. then
  22133. echo "$as_me:$LINENO: result: using $withval" >&5
  22134. echo "${ECHO_T}using $withval" >&6
  22135. ldapsdk_inc="-I$withval"
  22136. with_ldapsdk=yes
  22137. else
  22138. echo
  22139. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22140. echo "$as_me: error: $withval not found" >&2;}
  22141. { (exit 1); exit 1; }; }
  22142. fi
  22143. else
  22144. echo "$as_me:$LINENO: result: no" >&5
  22145. echo "${ECHO_T}no" >&6
  22146. fi;
  22147. # check for --with-ldapsdk-lib
  22148. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  22149. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  22150. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  22151. if test "${with_ldapsdk_lib+set}" = set; then
  22152. withval="$with_ldapsdk_lib"
  22153. if test -d "$withval"
  22154. then
  22155. echo "$as_me:$LINENO: result: using $withval" >&5
  22156. echo "${ECHO_T}using $withval" >&6
  22157. ldapsdk_lib="-L$withval"
  22158. ldapsdk_libdir="$withval"
  22159. with_ldapsdk=yes
  22160. else
  22161. echo
  22162. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22163. echo "$as_me: error: $withval not found" >&2;}
  22164. { (exit 1); exit 1; }; }
  22165. fi
  22166. else
  22167. echo "$as_me:$LINENO: result: no" >&5
  22168. echo "${ECHO_T}no" >&6
  22169. fi;
  22170. # check for --with-ldapsdk-bin
  22171. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  22172. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  22173. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  22174. if test "${with_ldapsdk_bin+set}" = set; then
  22175. withval="$with_ldapsdk_bin"
  22176. if test -d "$withval"
  22177. then
  22178. echo "$as_me:$LINENO: result: using $withval" >&5
  22179. echo "${ECHO_T}using $withval" >&6
  22180. ldapsdk_bindir="$withval"
  22181. with_ldapsdk=yes
  22182. else
  22183. echo
  22184. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22185. echo "$as_me: error: $withval not found" >&2;}
  22186. { (exit 1); exit 1; }; }
  22187. fi
  22188. else
  22189. echo "$as_me:$LINENO: result: no" >&5
  22190. echo "${ECHO_T}no" >&6
  22191. fi;
  22192. # if LDAPSDK is not found yet, try pkg-config
  22193. # last resort
  22194. if test "$with_ldapsdk" = yes ; then
  22195. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  22196. # Extract the first word of "pkg-config", so it can be a program name with args.
  22197. set dummy pkg-config; ac_word=$2
  22198. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22199. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22200. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22201. echo $ECHO_N "(cached) $ECHO_C" >&6
  22202. else
  22203. case $PKG_CONFIG in
  22204. [\\/]* | ?:[\\/]*)
  22205. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22206. ;;
  22207. *)
  22208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22209. for as_dir in $PATH
  22210. do
  22211. IFS=$as_save_IFS
  22212. test -z "$as_dir" && as_dir=.
  22213. for ac_exec_ext in '' $ac_executable_extensions; do
  22214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22215. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22217. break 2
  22218. fi
  22219. done
  22220. done
  22221. ;;
  22222. esac
  22223. fi
  22224. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22225. if test -n "$PKG_CONFIG"; then
  22226. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22227. echo "${ECHO_T}$PKG_CONFIG" >&6
  22228. else
  22229. echo "$as_me:$LINENO: result: no" >&5
  22230. echo "${ECHO_T}no" >&6
  22231. fi
  22232. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  22233. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  22234. if test -n "$PKG_CONFIG"; then
  22235. if $PKG_CONFIG --exists mozldap6; then
  22236. mozldappkg=mozldap6
  22237. elif $PKG_CONFIG --exists mozldap; then
  22238. mozldappkg=mozldap
  22239. else
  22240. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22241. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22242. { (exit 1); exit 1; }; }
  22243. fi
  22244. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  22245. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  22246. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  22247. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  22248. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  22249. echo "${ECHO_T}using system $mozldappkg" >&6
  22250. fi
  22251. fi
  22252. fi
  22253. if test "$with_ldapsdk" = yes ; then
  22254. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  22255. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  22256. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  22257. { (exit 1); exit 1; }; }
  22258. fi
  22259. if test -z "$ldapsdk_bindir" ; then
  22260. if -d $libdir/mozldap6 ; then
  22261. ldapsdk_bindir=$libdir/mozldap6
  22262. else
  22263. ldapsdk_bindir=$libdir/mozldap
  22264. fi
  22265. fi
  22266. save_cppflags="$CPPFLAGS"
  22267. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  22268. echo "$as_me:$LINENO: checking for ldap.h" >&5
  22269. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  22270. if test "${ac_cv_header_ldap_h+set}" = set; then
  22271. echo $ECHO_N "(cached) $ECHO_C" >&6
  22272. else
  22273. cat >conftest.$ac_ext <<_ACEOF
  22274. /* confdefs.h. */
  22275. _ACEOF
  22276. cat confdefs.h >>conftest.$ac_ext
  22277. cat >>conftest.$ac_ext <<_ACEOF
  22278. /* end confdefs.h. */
  22279. #include <ldap-standard.h>
  22280. #if LDAP_VENDOR_VERSION < 600
  22281. #error The LDAP C SDK version is not supported
  22282. #endif
  22283. #include <ldap.h>
  22284. _ACEOF
  22285. rm -f conftest.$ac_objext
  22286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22287. (eval $ac_compile) 2>conftest.er1
  22288. ac_status=$?
  22289. grep -v '^ *+' conftest.er1 >conftest.err
  22290. rm -f conftest.er1
  22291. cat conftest.err >&5
  22292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22293. (exit $ac_status); } &&
  22294. { ac_try='test -z "$ac_c_werror_flag"
  22295. || test ! -s conftest.err'
  22296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22297. (eval $ac_try) 2>&5
  22298. ac_status=$?
  22299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22300. (exit $ac_status); }; } &&
  22301. { ac_try='test -s conftest.$ac_objext'
  22302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22303. (eval $ac_try) 2>&5
  22304. ac_status=$?
  22305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22306. (exit $ac_status); }; }; then
  22307. ac_cv_header_ldap_h=yes
  22308. else
  22309. echo "$as_me: failed program was:" >&5
  22310. sed 's/^/| /' conftest.$ac_ext >&5
  22311. ac_cv_header_ldap_h=no
  22312. fi
  22313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22314. fi
  22315. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  22316. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  22317. if test $ac_cv_header_ldap_h = yes; then
  22318. isversion6=1
  22319. else
  22320. isversion6=
  22321. fi
  22322. CPPFLAGS="$save_cppflags"
  22323. if test -z "$isversion6" ; then
  22324. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  22325. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  22326. { (exit 1); exit 1; }; }
  22327. fi
  22328. cat >>confdefs.h <<\_ACEOF
  22329. #define USE_MOZLDAP 1
  22330. _ACEOF
  22331. cat >>confdefs.h <<\_ACEOF
  22332. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  22333. _ACEOF
  22334. fi
  22335. # BEGIN COPYRIGHT BLOCK
  22336. # Copyright (C) 2007 Red Hat, Inc.
  22337. # All rights reserved.
  22338. #
  22339. # This program is free software; you can redistribute it and/or
  22340. # modify it under the terms of the GNU General Public License
  22341. # as published by the Free Software Foundation; either version 2
  22342. # of the License, or (at your option) any later version.
  22343. #
  22344. # This program is distributed in the hope that it will be useful,
  22345. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22346. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22347. # GNU General Public License for more details.
  22348. #
  22349. # You should have received a copy of the GNU General Public License
  22350. # along with this program; if not, write to the Free Software
  22351. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22352. #
  22353. # END COPYRIGHT BLOCK
  22354. { echo "$as_me:$LINENO: checking for db..." >&5
  22355. echo "$as_me: checking for db..." >&6;}
  22356. echo "$as_me:$LINENO: checking for --with-db" >&5
  22357. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  22358. # Check whether --with-db or --without-db was given.
  22359. if test "${with_db+set}" = set; then
  22360. withval="$with_db"
  22361. if test "$withval" = "yes"; then
  22362. echo "$as_me:$LINENO: result: yes" >&5
  22363. echo "${ECHO_T}yes" >&6
  22364. if test -f "/usr/include/db.h"; then
  22365. db_incdir="/usr/include"
  22366. db_inc="-I/usr/include"
  22367. db_lib='-L$(libdir)'
  22368. db_libdir='$(libdir)'
  22369. else
  22370. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  22371. echo "$as_me: error: db.h not found" >&2;}
  22372. { (exit 1); exit 1; }; }
  22373. fi
  22374. elif test -d "$withval"/include -a -d "$withval"/lib; then
  22375. echo "$as_me:$LINENO: result: using $withval" >&5
  22376. echo "${ECHO_T}using $withval" >&6
  22377. DBDIR=$withval
  22378. db_lib="-L$DBDIR/lib"
  22379. db_libdir="$DBDIR/lib"
  22380. db_incdir="$DBDIR/include"
  22381. if ! test -e "$db_incdir/db.h" ; then
  22382. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  22383. echo "$as_me: error: $withval include dir not found" >&2;}
  22384. { (exit 1); exit 1; }; }
  22385. fi
  22386. db_inc="-I$db_incdir"
  22387. else
  22388. echo
  22389. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22390. echo "$as_me: error: $withval not found" >&2;}
  22391. { (exit 1); exit 1; }; }
  22392. fi
  22393. else
  22394. echo "$as_me:$LINENO: result: no" >&5
  22395. echo "${ECHO_T}no" >&6
  22396. fi;
  22397. if test -z "$db_inc"; then
  22398. echo "$as_me:$LINENO: checking for db.h" >&5
  22399. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  22400. if test -f "/usr/include/db.h"; then
  22401. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  22402. echo "${ECHO_T}using /usr/include/db.h" >&6
  22403. db_incdir="/usr/include"
  22404. db_inc="-I/usr/include"
  22405. db_lib='-L$(libdir)'
  22406. db_libdir='$(libdir)'
  22407. else
  22408. echo "$as_me:$LINENO: result: no" >&5
  22409. echo "${ECHO_T}no" >&6
  22410. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  22411. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  22412. { (exit 1); exit 1; }; }
  22413. fi
  22414. fi
  22415. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  22416. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  22417. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  22418. db_libver=${db_ver_maj}.${db_ver_min}
  22419. save_ldflags="$LDFLAGS"
  22420. LDFLAGS="$db_lib $LDFLAGS"
  22421. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  22422. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  22423. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  22424. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  22425. echo $ECHO_N "(cached) $ECHO_C" >&6
  22426. else
  22427. ac_check_lib_save_LIBS=$LIBS
  22428. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  22429. cat >conftest.$ac_ext <<_ACEOF
  22430. /* confdefs.h. */
  22431. _ACEOF
  22432. cat confdefs.h >>conftest.$ac_ext
  22433. cat >>conftest.$ac_ext <<_ACEOF
  22434. /* end confdefs.h. */
  22435. /* Override any gcc2 internal prototype to avoid an error. */
  22436. #ifdef __cplusplus
  22437. extern "C"
  22438. #endif
  22439. /* We use char because int might match the return type of a gcc2
  22440. builtin and then its argument prototype would still apply. */
  22441. char db_create ();
  22442. int
  22443. main ()
  22444. {
  22445. db_create ();
  22446. ;
  22447. return 0;
  22448. }
  22449. _ACEOF
  22450. rm -f conftest.$ac_objext conftest$ac_exeext
  22451. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22452. (eval $ac_link) 2>conftest.er1
  22453. ac_status=$?
  22454. grep -v '^ *+' conftest.er1 >conftest.err
  22455. rm -f conftest.er1
  22456. cat conftest.err >&5
  22457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22458. (exit $ac_status); } &&
  22459. { ac_try='test -z "$ac_c_werror_flag"
  22460. || test ! -s conftest.err'
  22461. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22462. (eval $ac_try) 2>&5
  22463. ac_status=$?
  22464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22465. (exit $ac_status); }; } &&
  22466. { ac_try='test -s conftest$ac_exeext'
  22467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22468. (eval $ac_try) 2>&5
  22469. ac_status=$?
  22470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22471. (exit $ac_status); }; }; then
  22472. eval "$as_ac_Lib=yes"
  22473. else
  22474. echo "$as_me: failed program was:" >&5
  22475. sed 's/^/| /' conftest.$ac_ext >&5
  22476. eval "$as_ac_Lib=no"
  22477. fi
  22478. rm -f conftest.err conftest.$ac_objext \
  22479. conftest$ac_exeext conftest.$ac_ext
  22480. LIBS=$ac_check_lib_save_LIBS
  22481. fi
  22482. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  22483. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  22484. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  22485. true
  22486. else
  22487. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  22488. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  22489. { (exit 1); exit 1; }; }
  22490. fi
  22491. LDFLAGS="$save_ldflags"
  22492. # if DB is not found yet, try pkg-config
  22493. # last resort
  22494. # Although the other db_* variables are correctly assigned at this point,
  22495. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  22496. if test -n "$PKG_CONFIG"; then
  22497. if $PKG_CONFIG --exists db; then
  22498. db_bindir=`$PKG_CONFIG --variable=bindir db`
  22499. else
  22500. db_bindir=/usr/bin
  22501. fi
  22502. else
  22503. db_bindir=/usr/bin
  22504. fi
  22505. # BEGIN COPYRIGHT BLOCK
  22506. # Copyright (C) 2007 Red Hat, Inc.
  22507. # All rights reserved.
  22508. #
  22509. # This program is free software; you can redistribute it and/or
  22510. # modify it under the terms of the GNU General Public License
  22511. # as published by the Free Software Foundation; either version 2
  22512. # of the License, or (at your option) any later version.
  22513. #
  22514. # This program is distributed in the hope that it will be useful,
  22515. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22516. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22517. # GNU General Public License for more details.
  22518. #
  22519. # You should have received a copy of the GNU General Public License
  22520. # along with this program; if not, write to the Free Software
  22521. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22522. #
  22523. # END COPYRIGHT BLOCK
  22524. # -*- tab-width: 4; -*-
  22525. # Configure paths for SASL
  22526. { echo "$as_me:$LINENO: checking for sasl..." >&5
  22527. echo "$as_me: checking for sasl..." >&6;}
  22528. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  22529. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  22530. # Check whether --with-sasl or --without-sasl was given.
  22531. if test "${with_sasl+set}" = set; then
  22532. withval="$with_sasl"
  22533. if test "$withval" = "yes"; then
  22534. echo "$as_me:$LINENO: result: yes" >&5
  22535. echo "${ECHO_T}yes" >&6
  22536. if test -f /usr/include/sasl/sasl.h; then
  22537. sasl_inc="-I/usr/include/sasl"
  22538. elif test -f /usr/include/sasl.h; then
  22539. sasl_inc="-I/usr/include"
  22540. else
  22541. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22542. echo "$as_me: error: sasl.h not found" >&2;}
  22543. { (exit 1); exit 1; }; }
  22544. fi
  22545. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22546. echo "$as_me:$LINENO: result: using $withval" >&5
  22547. echo "${ECHO_T}using $withval" >&6
  22548. if test -f "$withval/include/sasl/sasl.h"; then
  22549. sasl_inc="-I$withval/include/sasl"
  22550. elif test -f "$withval/include/sasl.h"; then
  22551. sasl_inc="-I$withval/include"
  22552. else
  22553. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  22554. echo "$as_me: error: sasl.h not found" >&2;}
  22555. { (exit 1); exit 1; }; }
  22556. fi
  22557. sasl_lib="-L$withval/lib"
  22558. sasl_libdir="$withval/lib"
  22559. else
  22560. echo "$as_me:$LINENO: result: yes" >&5
  22561. echo "${ECHO_T}yes" >&6
  22562. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  22563. echo "$as_me: error: sasl not found in $withval" >&2;}
  22564. { (exit 1); exit 1; }; }
  22565. fi
  22566. else
  22567. echo "$as_me:$LINENO: result: no" >&5
  22568. echo "${ECHO_T}no" >&6
  22569. fi;
  22570. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  22571. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  22572. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  22573. if test "${with_sasl_inc+set}" = set; then
  22574. withval="$with_sasl_inc"
  22575. if test -f "$withval"/sasl.h; then
  22576. echo "$as_me:$LINENO: result: using $withval" >&5
  22577. echo "${ECHO_T}using $withval" >&6
  22578. sasl_inc="-I$withval"
  22579. else
  22580. echo
  22581. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  22582. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  22583. { (exit 1); exit 1; }; }
  22584. fi
  22585. else
  22586. echo "$as_me:$LINENO: result: no" >&5
  22587. echo "${ECHO_T}no" >&6
  22588. fi;
  22589. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  22590. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  22591. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  22592. if test "${with_sasl_lib+set}" = set; then
  22593. withval="$with_sasl_lib"
  22594. if test -d "$withval"; then
  22595. echo "$as_me:$LINENO: result: using $withval" >&5
  22596. echo "${ECHO_T}using $withval" >&6
  22597. sasl_lib="-L$withval"
  22598. sasl_libdir="$withval"
  22599. else
  22600. echo
  22601. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22602. echo "$as_me: error: $withval not found" >&2;}
  22603. { (exit 1); exit 1; }; }
  22604. fi
  22605. else
  22606. echo "$as_me:$LINENO: result: no" >&5
  22607. echo "${ECHO_T}no" >&6
  22608. fi;
  22609. if test -z "$sasl_inc"; then
  22610. echo "$as_me:$LINENO: checking for sasl.h" >&5
  22611. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  22612. if test -f /usr/include/sasl/sasl.h; then
  22613. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  22614. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  22615. sasl_inc="-I/usr/include/sasl"
  22616. elif test -f /usr/include/sasl.h; then
  22617. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  22618. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  22619. sasl_inc="-I/usr/include"
  22620. else
  22621. echo "$as_me:$LINENO: result: no" >&5
  22622. echo "${ECHO_T}no" >&6
  22623. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  22624. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  22625. { (exit 1); exit 1; }; }
  22626. fi
  22627. fi
  22628. # BEGIN COPYRIGHT BLOCK
  22629. # Copyright (C) 2007 Red Hat, Inc.
  22630. # All rights reserved.
  22631. #
  22632. # This program is free software; you can redistribute it and/or
  22633. # modify it under the terms of the GNU General Public License
  22634. # as published by the Free Software Foundation; either version 2
  22635. # of the License, or (at your option) any later version.
  22636. #
  22637. # This program is distributed in the hope that it will be useful,
  22638. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22639. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22640. # GNU General Public License for more details.
  22641. #
  22642. # You should have received a copy of the GNU General Public License
  22643. # along with this program; if not, write to the Free Software
  22644. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22645. #
  22646. # END COPYRIGHT BLOCK
  22647. #
  22648. # Configure paths for SVRCORE
  22649. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  22650. echo "$as_me: checking for svrcore..." >&6;}
  22651. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  22652. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  22653. # Check whether --with-svrcore or --without-svrcore was given.
  22654. if test "${with_svrcore+set}" = set; then
  22655. withval="$with_svrcore"
  22656. if test "$withval" = "yes"; then
  22657. echo "$as_me:$LINENO: result: yes" >&5
  22658. echo "${ECHO_T}yes" >&6
  22659. if test -f /usr/include/svrcore.h; then
  22660. svrcore_inc="-I/usr/include"
  22661. else
  22662. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22663. echo "$as_me: error: svrcore.h not found" >&2;}
  22664. { (exit 1); exit 1; }; }
  22665. fi
  22666. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  22667. echo "$as_me:$LINENO: result: using $withval" >&5
  22668. echo "${ECHO_T}using $withval" >&6
  22669. if test -f "$withval/include/svrcore.h"; then
  22670. svrcore_inc="-I$withval/include"
  22671. else
  22672. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  22673. echo "$as_me: error: svrcore.h not found" >&2;}
  22674. { (exit 1); exit 1; }; }
  22675. fi
  22676. svrcore_lib="-L$withval/lib"
  22677. else
  22678. echo "$as_me:$LINENO: result: yes" >&5
  22679. echo "${ECHO_T}yes" >&6
  22680. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  22681. echo "$as_me: error: svrcore not found in $withval" >&2;}
  22682. { (exit 1); exit 1; }; }
  22683. fi
  22684. else
  22685. echo "$as_me:$LINENO: result: no" >&5
  22686. echo "${ECHO_T}no" >&6
  22687. fi;
  22688. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  22689. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  22690. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  22691. if test "${with_svrcore_inc+set}" = set; then
  22692. withval="$with_svrcore_inc"
  22693. if test -f "$withval"/svrcore.h; then
  22694. echo "$as_me:$LINENO: result: using $withval" >&5
  22695. echo "${ECHO_T}using $withval" >&6
  22696. svrcore_inc="-I$withval"
  22697. else
  22698. echo
  22699. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  22700. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  22701. { (exit 1); exit 1; }; }
  22702. fi
  22703. else
  22704. echo "$as_me:$LINENO: result: no" >&5
  22705. echo "${ECHO_T}no" >&6
  22706. fi;
  22707. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  22708. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  22709. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  22710. if test "${with_svrcore_lib+set}" = set; then
  22711. withval="$with_svrcore_lib"
  22712. if test -d "$withval"; then
  22713. echo "$as_me:$LINENO: result: using $withval" >&5
  22714. echo "${ECHO_T}using $withval" >&6
  22715. svrcore_lib="-L$withval"
  22716. else
  22717. echo
  22718. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22719. echo "$as_me: error: $withval not found" >&2;}
  22720. { (exit 1); exit 1; }; }
  22721. fi
  22722. else
  22723. echo "$as_me:$LINENO: result: no" >&5
  22724. echo "${ECHO_T}no" >&6
  22725. fi;
  22726. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22727. # Extract the first word of "pkg-config", so it can be a program name with args.
  22728. set dummy pkg-config; ac_word=$2
  22729. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22730. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22731. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22732. echo $ECHO_N "(cached) $ECHO_C" >&6
  22733. else
  22734. case $PKG_CONFIG in
  22735. [\\/]* | ?:[\\/]*)
  22736. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22737. ;;
  22738. *)
  22739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22740. for as_dir in $PATH
  22741. do
  22742. IFS=$as_save_IFS
  22743. test -z "$as_dir" && as_dir=.
  22744. for ac_exec_ext in '' $ac_executable_extensions; do
  22745. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22746. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22747. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22748. break 2
  22749. fi
  22750. done
  22751. done
  22752. ;;
  22753. esac
  22754. fi
  22755. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22756. if test -n "$PKG_CONFIG"; then
  22757. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22758. echo "${ECHO_T}$PKG_CONFIG" >&6
  22759. else
  22760. echo "$as_me:$LINENO: result: no" >&5
  22761. echo "${ECHO_T}no" >&6
  22762. fi
  22763. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  22764. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  22765. if test -n "$PKG_CONFIG"; then
  22766. if $PKG_CONFIG --exists svrcore; then
  22767. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  22768. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  22769. echo "$as_me:$LINENO: result: using system svrcore" >&5
  22770. echo "${ECHO_T}using system svrcore" >&6
  22771. fi
  22772. fi
  22773. fi
  22774. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  22775. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  22776. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  22777. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  22778. echo $ECHO_N "(cached) $ECHO_C" >&6
  22779. else
  22780. ac_check_lib_save_LIBS=$LIBS
  22781. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  22782. cat >conftest.$ac_ext <<_ACEOF
  22783. /* confdefs.h. */
  22784. _ACEOF
  22785. cat confdefs.h >>conftest.$ac_ext
  22786. cat >>conftest.$ac_ext <<_ACEOF
  22787. /* end confdefs.h. */
  22788. /* Override any gcc2 internal prototype to avoid an error. */
  22789. #ifdef __cplusplus
  22790. extern "C"
  22791. #endif
  22792. /* We use char because int might match the return type of a gcc2
  22793. builtin and then its argument prototype would still apply. */
  22794. char SVRCORE_GetRegisteredPinObj ();
  22795. int
  22796. main ()
  22797. {
  22798. SVRCORE_GetRegisteredPinObj ();
  22799. ;
  22800. return 0;
  22801. }
  22802. _ACEOF
  22803. rm -f conftest.$ac_objext conftest$ac_exeext
  22804. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22805. (eval $ac_link) 2>conftest.er1
  22806. ac_status=$?
  22807. grep -v '^ *+' conftest.er1 >conftest.err
  22808. rm -f conftest.er1
  22809. cat conftest.err >&5
  22810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22811. (exit $ac_status); } &&
  22812. { ac_try='test -z "$ac_c_werror_flag"
  22813. || test ! -s conftest.err'
  22814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22815. (eval $ac_try) 2>&5
  22816. ac_status=$?
  22817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22818. (exit $ac_status); }; } &&
  22819. { ac_try='test -s conftest$ac_exeext'
  22820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22821. (eval $ac_try) 2>&5
  22822. ac_status=$?
  22823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22824. (exit $ac_status); }; }; then
  22825. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  22826. else
  22827. echo "$as_me: failed program was:" >&5
  22828. sed 's/^/| /' conftest.$ac_ext >&5
  22829. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  22830. fi
  22831. rm -f conftest.err conftest.$ac_objext \
  22832. conftest$ac_exeext conftest.$ac_ext
  22833. LIBS=$ac_check_lib_save_LIBS
  22834. fi
  22835. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  22836. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  22837. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  22838. havesvrcore=1
  22839. fi
  22840. if test -n "$havesvrcore" ; then
  22841. save_cppflags="$CPPFLAGS"
  22842. CPPFLAGS="$nss_inc $nspr_inc"
  22843. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22844. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22845. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22846. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22847. echo $ECHO_N "(cached) $ECHO_C" >&6
  22848. fi
  22849. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22850. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22851. else
  22852. # Is the header compilable?
  22853. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  22854. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  22855. cat >conftest.$ac_ext <<_ACEOF
  22856. /* confdefs.h. */
  22857. _ACEOF
  22858. cat confdefs.h >>conftest.$ac_ext
  22859. cat >>conftest.$ac_ext <<_ACEOF
  22860. /* end confdefs.h. */
  22861. $ac_includes_default
  22862. #include <svrcore.h>
  22863. _ACEOF
  22864. rm -f conftest.$ac_objext
  22865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22866. (eval $ac_compile) 2>conftest.er1
  22867. ac_status=$?
  22868. grep -v '^ *+' conftest.er1 >conftest.err
  22869. rm -f conftest.er1
  22870. cat conftest.err >&5
  22871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22872. (exit $ac_status); } &&
  22873. { ac_try='test -z "$ac_c_werror_flag"
  22874. || test ! -s conftest.err'
  22875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22876. (eval $ac_try) 2>&5
  22877. ac_status=$?
  22878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22879. (exit $ac_status); }; } &&
  22880. { ac_try='test -s conftest.$ac_objext'
  22881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22882. (eval $ac_try) 2>&5
  22883. ac_status=$?
  22884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22885. (exit $ac_status); }; }; then
  22886. ac_header_compiler=yes
  22887. else
  22888. echo "$as_me: failed program was:" >&5
  22889. sed 's/^/| /' conftest.$ac_ext >&5
  22890. ac_header_compiler=no
  22891. fi
  22892. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22893. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22894. echo "${ECHO_T}$ac_header_compiler" >&6
  22895. # Is the header present?
  22896. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  22897. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  22898. cat >conftest.$ac_ext <<_ACEOF
  22899. /* confdefs.h. */
  22900. _ACEOF
  22901. cat confdefs.h >>conftest.$ac_ext
  22902. cat >>conftest.$ac_ext <<_ACEOF
  22903. /* end confdefs.h. */
  22904. #include <svrcore.h>
  22905. _ACEOF
  22906. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22907. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22908. ac_status=$?
  22909. grep -v '^ *+' conftest.er1 >conftest.err
  22910. rm -f conftest.er1
  22911. cat conftest.err >&5
  22912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22913. (exit $ac_status); } >/dev/null; then
  22914. if test -s conftest.err; then
  22915. ac_cpp_err=$ac_c_preproc_warn_flag
  22916. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22917. else
  22918. ac_cpp_err=
  22919. fi
  22920. else
  22921. ac_cpp_err=yes
  22922. fi
  22923. if test -z "$ac_cpp_err"; then
  22924. ac_header_preproc=yes
  22925. else
  22926. echo "$as_me: failed program was:" >&5
  22927. sed 's/^/| /' conftest.$ac_ext >&5
  22928. ac_header_preproc=no
  22929. fi
  22930. rm -f conftest.err conftest.$ac_ext
  22931. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22932. echo "${ECHO_T}$ac_header_preproc" >&6
  22933. # So? What about this header?
  22934. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22935. yes:no: )
  22936. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22937. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22938. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  22939. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  22940. ac_header_preproc=yes
  22941. ;;
  22942. no:yes:* )
  22943. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  22944. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  22945. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  22946. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  22947. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  22948. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  22949. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  22950. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22951. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  22952. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  22953. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  22954. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  22955. (
  22956. cat <<\_ASBOX
  22957. ## ------------------------------------------ ##
  22958. ## Report this to http://bugzilla.redhat.com/ ##
  22959. ## ------------------------------------------ ##
  22960. _ASBOX
  22961. ) |
  22962. sed "s/^/$as_me: WARNING: /" >&2
  22963. ;;
  22964. esac
  22965. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22966. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22967. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22968. echo $ECHO_N "(cached) $ECHO_C" >&6
  22969. else
  22970. ac_cv_header_svrcore_h=$ac_header_preproc
  22971. fi
  22972. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22973. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22974. fi
  22975. if test $ac_cv_header_svrcore_h = yes; then
  22976. havesvrcore=1
  22977. else
  22978. havesvrcore=
  22979. fi
  22980. CPPFLAGS="$save_cppflags"
  22981. fi
  22982. if test -z "$havesvrcore" ; then
  22983. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  22984. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  22985. { (exit 1); exit 1; }; }
  22986. fi
  22987. fi
  22988. # BEGIN COPYRIGHT BLOCK
  22989. # Copyright (C) 2006 Red Hat, Inc.
  22990. # All rights reserved.
  22991. #
  22992. # This program is free software; you can redistribute it and/or
  22993. # modify it under the terms of the GNU General Public License
  22994. # as published by the Free Software Foundation; either version 2
  22995. # of the License, or (at your option) any later version.
  22996. #
  22997. # This program is distributed in the hope that it will be useful,
  22998. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22999. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23000. # GNU General Public License for more details.
  23001. #
  23002. # You should have received a copy of the GNU General Public License
  23003. # along with this program; if not, write to the Free Software
  23004. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23005. #
  23006. # END COPYRIGHT BLOCK
  23007. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  23008. echo "$as_me: checking for LIBICU..." >&6;}
  23009. # check for --with-icu
  23010. echo "$as_me:$LINENO: checking for --with-icu" >&5
  23011. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  23012. # Check whether --with-icu or --without-icu was given.
  23013. if test "${with_icu+set}" = set; then
  23014. withval="$with_icu"
  23015. if test -d "$withval"/lib
  23016. then
  23017. echo "$as_me:$LINENO: result: using $withval" >&5
  23018. echo "${ECHO_T}using $withval" >&6
  23019. ICUDIR=$withval
  23020. icu_lib="-L$ICUDIR/lib"
  23021. else
  23022. echo
  23023. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23024. echo "$as_me: error: $withval not found" >&2;}
  23025. { (exit 1); exit 1; }; }
  23026. fi
  23027. icu_inc="-I$withval/include"
  23028. icu_bin="$withval/bin"
  23029. else
  23030. echo "$as_me:$LINENO: result: no" >&5
  23031. echo "${ECHO_T}no" >&6
  23032. fi;
  23033. # check for --with-icu-inc
  23034. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  23035. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  23036. # Check whether --with-icu-inc or --without-icu-inc was given.
  23037. if test "${with_icu_inc+set}" = set; then
  23038. withval="$with_icu_inc"
  23039. if test -d "$withval"
  23040. then
  23041. echo "$as_me:$LINENO: result: using $withval" >&5
  23042. echo "${ECHO_T}using $withval" >&6
  23043. icu_inc="-I$withval"
  23044. else
  23045. echo
  23046. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23047. echo "$as_me: error: $withval not found" >&2;}
  23048. { (exit 1); exit 1; }; }
  23049. fi
  23050. else
  23051. echo "$as_me:$LINENO: result: no" >&5
  23052. echo "${ECHO_T}no" >&6
  23053. fi;
  23054. # check for --with-icu-lib
  23055. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  23056. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  23057. # Check whether --with-icu-lib or --without-icu-lib was given.
  23058. if test "${with_icu_lib+set}" = set; then
  23059. withval="$with_icu_lib"
  23060. if test -d "$withval"
  23061. then
  23062. echo "$as_me:$LINENO: result: using $withval" >&5
  23063. echo "${ECHO_T}using $withval" >&6
  23064. icu_lib="-L$withval"
  23065. else
  23066. echo
  23067. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23068. echo "$as_me: error: $withval not found" >&2;}
  23069. { (exit 1); exit 1; }; }
  23070. fi
  23071. else
  23072. echo "$as_me:$LINENO: result: no" >&5
  23073. echo "${ECHO_T}no" >&6
  23074. fi;
  23075. # check for --with-icu-bin
  23076. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  23077. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  23078. # Check whether --with-icu-bin or --without-icu-bin was given.
  23079. if test "${with_icu_bin+set}" = set; then
  23080. withval="$with_icu_bin"
  23081. if test -d "$withval"
  23082. then
  23083. echo "$as_me:$LINENO: result: using $withval" >&5
  23084. echo "${ECHO_T}using $withval" >&6
  23085. icu_bin="$withval"
  23086. else
  23087. echo
  23088. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23089. echo "$as_me: error: $withval not found" >&2;}
  23090. { (exit 1); exit 1; }; }
  23091. fi
  23092. else
  23093. echo "$as_me:$LINENO: result: no" >&5
  23094. echo "${ECHO_T}no" >&6
  23095. fi;
  23096. # if ICU is not found yet, try pkg-config
  23097. # last resort
  23098. if test -z "$icu_lib"; then
  23099. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  23100. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  23101. # Extract the first word of "icu-config", so it can be a program name with args.
  23102. set dummy icu-config; ac_word=$2
  23103. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23104. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23105. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  23106. echo $ECHO_N "(cached) $ECHO_C" >&6
  23107. else
  23108. case $ICU_CONFIG in
  23109. [\\/]* | ?:[\\/]*)
  23110. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  23111. ;;
  23112. *)
  23113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23114. for as_dir in $PATH
  23115. do
  23116. IFS=$as_save_IFS
  23117. test -z "$as_dir" && as_dir=.
  23118. for ac_exec_ext in '' $ac_executable_extensions; do
  23119. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23120. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23121. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23122. break 2
  23123. fi
  23124. done
  23125. done
  23126. ;;
  23127. esac
  23128. fi
  23129. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  23130. if test -n "$ICU_CONFIG"; then
  23131. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  23132. echo "${ECHO_T}$ICU_CONFIG" >&6
  23133. else
  23134. echo "$as_me:$LINENO: result: no" >&5
  23135. echo "${ECHO_T}no" >&6
  23136. fi
  23137. if test -n "$ICU_CONFIG"; then
  23138. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  23139. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  23140. icu_bin=`$ICU_CONFIG --bindir`
  23141. echo "$as_me:$LINENO: result: using system ICU" >&5
  23142. echo "${ECHO_T}using system ICU" >&6
  23143. else
  23144. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  23145. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  23146. { (exit 1); exit 1; }; }
  23147. fi
  23148. fi
  23149. # BEGIN COPYRIGHT BLOCK
  23150. # Copyright (C) 2006 Red Hat, Inc.
  23151. # All rights reserved.
  23152. #
  23153. # This program is free software; you can redistribute it and/or
  23154. # modify it under the terms of the GNU General Public License
  23155. # as published by the Free Software Foundation; either version 2
  23156. # of the License, or (at your option) any later version.
  23157. #
  23158. # This program is distributed in the hope that it will be useful,
  23159. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23160. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23161. # GNU General Public License for more details.
  23162. #
  23163. # You should have received a copy of the GNU General Public License
  23164. # along with this program; if not, write to the Free Software
  23165. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23166. #
  23167. # END COPYRIGHT BLOCK
  23168. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  23169. echo "$as_me: checking for Net-SNMP..." >&6;}
  23170. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  23171. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  23172. # Check whether --with-netsnmp or --without-netsnmp was given.
  23173. if test "${with_netsnmp+set}" = set; then
  23174. withval="$with_netsnmp"
  23175. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  23176. echo "$as_me:$LINENO: result: using $withval" >&5
  23177. echo "${ECHO_T}using $withval" >&6
  23178. NETSNMPDIR=$withval
  23179. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  23180. netsnmp_inc="-I$withval/include"
  23181. else
  23182. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  23183. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  23184. { (exit 1); exit 1; }; }
  23185. fi
  23186. netsnmp_lib="-L$withval/lib"
  23187. netsnmp_libdir="$withval/lib"
  23188. else
  23189. echo "$as_me:$LINENO: result: yes" >&5
  23190. echo "${ECHO_T}yes" >&6
  23191. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23192. echo "$as_me: error: $withval not found" >&2;}
  23193. { (exit 1); exit 1; }; }
  23194. fi
  23195. else
  23196. echo "$as_me:$LINENO: result: no" >&5
  23197. echo "${ECHO_T}no" >&6
  23198. fi;
  23199. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  23200. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  23201. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  23202. if test "${with_netsnmp_inc+set}" = set; then
  23203. withval="$with_netsnmp_inc"
  23204. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  23205. echo "$as_me:$LINENO: result: using $withval" >&5
  23206. echo "${ECHO_T}using $withval" >&6
  23207. netsnmp_inc="-I$withval"
  23208. else
  23209. echo
  23210. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  23211. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  23212. { (exit 1); exit 1; }; }
  23213. fi
  23214. else
  23215. echo "$as_me:$LINENO: result: no" >&5
  23216. echo "${ECHO_T}no" >&6
  23217. fi;
  23218. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  23219. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  23220. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  23221. if test "${with_netsnmp_lib+set}" = set; then
  23222. withval="$with_netsnmp_lib"
  23223. if test -d "$withval"
  23224. then
  23225. echo "$as_me:$LINENO: result: using $withval" >&5
  23226. echo "${ECHO_T}using $withval" >&6
  23227. netsnmp_lib="-L$withval"
  23228. netsnmp_libdir="$withval"
  23229. else
  23230. echo
  23231. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23232. echo "$as_me: error: $withval not found" >&2;}
  23233. { (exit 1); exit 1; }; }
  23234. fi
  23235. else
  23236. echo "$as_me:$LINENO: result: no" >&5
  23237. echo "${ECHO_T}no" >&6
  23238. fi;
  23239. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  23240. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  23241. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  23242. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  23243. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  23244. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  23245. netsnmp_inc="-I/usr/include"
  23246. else
  23247. echo "$as_me:$LINENO: result: no" >&5
  23248. echo "${ECHO_T}no" >&6
  23249. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  23250. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  23251. { (exit 1); exit 1; }; }
  23252. fi
  23253. fi
  23254. if test -n "$netsnmp_inc"; then
  23255. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  23256. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  23257. else
  23258. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  23259. set dummy net-snmp-config; ac_word=$2
  23260. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23261. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23262. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  23263. echo $ECHO_N "(cached) $ECHO_C" >&6
  23264. else
  23265. case $NETSNMP_CONFIG in
  23266. [\\/]* | ?:[\\/]*)
  23267. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  23268. ;;
  23269. *)
  23270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23271. for as_dir in $PATH
  23272. do
  23273. IFS=$as_save_IFS
  23274. test -z "$as_dir" && as_dir=.
  23275. for ac_exec_ext in '' $ac_executable_extensions; do
  23276. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23277. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23278. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23279. break 2
  23280. fi
  23281. done
  23282. done
  23283. ;;
  23284. esac
  23285. fi
  23286. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  23287. if test -n "$NETSNMP_CONFIG"; then
  23288. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  23289. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  23290. else
  23291. echo "$as_me:$LINENO: result: no" >&5
  23292. echo "${ECHO_T}no" >&6
  23293. fi
  23294. fi
  23295. if test -n "$NETSNMP_CONFIG"; then
  23296. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  23297. else
  23298. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  23299. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  23300. { (exit 1); exit 1; }; }
  23301. fi
  23302. else
  23303. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  23304. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  23305. { (exit 1); exit 1; }; }
  23306. fi
  23307. # BEGIN COPYRIGHT BLOCK
  23308. # Copyright (C) 2008 Red Hat, Inc.
  23309. # All rights reserved.
  23310. #
  23311. # This program is free software; you can redistribute it and/or
  23312. # modify it under the terms of the GNU General Public License
  23313. # as published by the Free Software Foundation; either version 2
  23314. # of the License, or (at your option) any later version.
  23315. #
  23316. # This program is distributed in the hope that it will be useful,
  23317. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23318. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23319. # GNU General Public License for more details.
  23320. #
  23321. # You should have received a copy of the GNU General Public License
  23322. # along with this program; if not, write to the Free Software
  23323. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23324. #
  23325. # END COPYRIGHT BLOCK
  23326. # -*- tab-width: 4; -*-
  23327. # Configure paths for Kerberos
  23328. { echo "$as_me:$LINENO: checking for kerberos..." >&5
  23329. echo "$as_me: checking for kerberos..." >&6;}
  23330. if test -z "$with_kerberos" ; then
  23331. with_kerberos=yes # if not set on cmdline, set default
  23332. fi
  23333. echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  23334. echo $ECHO_N "checking for --with-kerberos... $ECHO_C" >&6
  23335. # Check whether --with-kerberos or --without-kerberos was given.
  23336. if test "${with_kerberos+set}" = set; then
  23337. withval="$with_kerberos"
  23338. if test "x$withval" = "xyes"; then
  23339. echo "$as_me:$LINENO: result: yes" >&5
  23340. echo "${ECHO_T}yes" >&6
  23341. elif test "x$withval" = "xno"; then
  23342. echo "$as_me:$LINENO: result: no" >&5
  23343. echo "${ECHO_T}no" >&6
  23344. with_kerberos=
  23345. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  23346. echo "$as_me:$LINENO: result: using $withval" >&5
  23347. echo "${ECHO_T}using $withval" >&6
  23348. kerberos_incdir="$withval/include"
  23349. kerberos_libdir="$withval/lib"
  23350. else
  23351. echo "$as_me:$LINENO: result: yes" >&5
  23352. echo "${ECHO_T}yes" >&6
  23353. { { echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  23354. echo "$as_me: error: kerberos not found in $withval" >&2;}
  23355. { (exit 1); exit 1; }; }
  23356. fi
  23357. else
  23358. echo "$as_me:$LINENO: result: no" >&5
  23359. echo "${ECHO_T}no" >&6
  23360. with_kerberos=
  23361. fi;
  23362. echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  23363. echo $ECHO_N "checking for --with-kerberos-inc... $ECHO_C" >&6
  23364. # Check whether --with-kerberos-inc or --without-kerberos-inc was given.
  23365. if test "${with_kerberos_inc+set}" = set; then
  23366. withval="$with_kerberos_inc"
  23367. if test -f "$withval"/krb5.h; then
  23368. echo "$as_me:$LINENO: result: using $withval" >&5
  23369. echo "${ECHO_T}using $withval" >&6
  23370. kerberos_incdir="$withval"
  23371. with_kerberos=yes # implies use of kerberos
  23372. else
  23373. echo
  23374. { { echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  23375. echo "$as_me: error: $withval/krb5.h not found" >&2;}
  23376. { (exit 1); exit 1; }; }
  23377. fi
  23378. else
  23379. echo "$as_me:$LINENO: result: no" >&5
  23380. echo "${ECHO_T}no" >&6
  23381. fi;
  23382. echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  23383. echo $ECHO_N "checking for --with-kerberos-lib... $ECHO_C" >&6
  23384. # Check whether --with-kerberos-lib or --without-kerberos-lib was given.
  23385. if test "${with_kerberos_lib+set}" = set; then
  23386. withval="$with_kerberos_lib"
  23387. if test -d "$withval"; then
  23388. echo "$as_me:$LINENO: result: using $withval" >&5
  23389. echo "${ECHO_T}using $withval" >&6
  23390. kerberos_libdir="$withval"
  23391. with_kerberos=yes # implies use of kerberos
  23392. else
  23393. echo
  23394. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  23395. echo "$as_me: error: $withval not found" >&2;}
  23396. { (exit 1); exit 1; }; }
  23397. fi
  23398. else
  23399. echo "$as_me:$LINENO: result: no" >&5
  23400. echo "${ECHO_T}no" >&6
  23401. fi;
  23402. if test -n "$with_kerberos" ; then
  23403. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  23404. if test -z "$KRB5_CONFIG_BIN" ; then
  23405. # Extract the first word of "krb5-config", so it can be a program name with args.
  23406. set dummy krb5-config; ac_word=$2
  23407. echo "$as_me:$LINENO: checking for $ac_word" >&5
  23408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23409. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  23410. echo $ECHO_N "(cached) $ECHO_C" >&6
  23411. else
  23412. case $KRB5_CONFIG_BIN in
  23413. [\\/]* | ?:[\\/]*)
  23414. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  23415. ;;
  23416. *)
  23417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23418. for as_dir in $PATH
  23419. do
  23420. IFS=$as_save_IFS
  23421. test -z "$as_dir" && as_dir=.
  23422. for ac_exec_ext in '' $ac_executable_extensions; do
  23423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23424. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  23425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23426. break 2
  23427. fi
  23428. done
  23429. done
  23430. ;;
  23431. esac
  23432. fi
  23433. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  23434. if test -n "$KRB5_CONFIG_BIN"; then
  23435. echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  23436. echo "${ECHO_T}$KRB5_CONFIG_BIN" >&6
  23437. else
  23438. echo "$as_me:$LINENO: result: no" >&5
  23439. echo "${ECHO_T}no" >&6
  23440. fi
  23441. fi
  23442. if test -n "$KRB5_CONFIG_BIN" ; then
  23443. echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  23444. echo $ECHO_N "checking for kerberos with $KRB5_CONFIG_BIN... $ECHO_C" >&6
  23445. if test -z "$kerberos_libdir" ; then
  23446. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  23447. fi
  23448. if test -z "$kerberos_incdir" ; then
  23449. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  23450. fi
  23451. if test -n "$kerberos_lib" ; then
  23452. echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  23453. echo "${ECHO_T}using kerberos found with $KRB5_CONFIG_BIN" >&6
  23454. have_krb5=yes
  23455. fi
  23456. fi
  23457. fi
  23458. fi
  23459. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  23460. # save these in order to set them to use the check macros below
  23461. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  23462. save_CPPFLAGS="$CPPFLAGS"
  23463. if test -n "$kerberos_incdir" ; then
  23464. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  23465. fi
  23466. save_LDFLAGS="$LDFLAGS"
  23467. if test -n "$kerberos_libdir" ; then
  23468. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  23469. fi
  23470. krb5_impl=mit
  23471. for ac_header in heim_err.h
  23472. do
  23473. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23474. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23475. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23476. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23477. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23478. echo $ECHO_N "(cached) $ECHO_C" >&6
  23479. fi
  23480. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23481. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23482. else
  23483. # Is the header compilable?
  23484. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23485. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23486. cat >conftest.$ac_ext <<_ACEOF
  23487. /* confdefs.h. */
  23488. _ACEOF
  23489. cat confdefs.h >>conftest.$ac_ext
  23490. cat >>conftest.$ac_ext <<_ACEOF
  23491. /* end confdefs.h. */
  23492. $ac_includes_default
  23493. #include <$ac_header>
  23494. _ACEOF
  23495. rm -f conftest.$ac_objext
  23496. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23497. (eval $ac_compile) 2>conftest.er1
  23498. ac_status=$?
  23499. grep -v '^ *+' conftest.er1 >conftest.err
  23500. rm -f conftest.er1
  23501. cat conftest.err >&5
  23502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23503. (exit $ac_status); } &&
  23504. { ac_try='test -z "$ac_c_werror_flag"
  23505. || test ! -s conftest.err'
  23506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23507. (eval $ac_try) 2>&5
  23508. ac_status=$?
  23509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23510. (exit $ac_status); }; } &&
  23511. { ac_try='test -s conftest.$ac_objext'
  23512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23513. (eval $ac_try) 2>&5
  23514. ac_status=$?
  23515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23516. (exit $ac_status); }; }; then
  23517. ac_header_compiler=yes
  23518. else
  23519. echo "$as_me: failed program was:" >&5
  23520. sed 's/^/| /' conftest.$ac_ext >&5
  23521. ac_header_compiler=no
  23522. fi
  23523. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23524. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23525. echo "${ECHO_T}$ac_header_compiler" >&6
  23526. # Is the header present?
  23527. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23528. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23529. cat >conftest.$ac_ext <<_ACEOF
  23530. /* confdefs.h. */
  23531. _ACEOF
  23532. cat confdefs.h >>conftest.$ac_ext
  23533. cat >>conftest.$ac_ext <<_ACEOF
  23534. /* end confdefs.h. */
  23535. #include <$ac_header>
  23536. _ACEOF
  23537. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23538. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23539. ac_status=$?
  23540. grep -v '^ *+' conftest.er1 >conftest.err
  23541. rm -f conftest.er1
  23542. cat conftest.err >&5
  23543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23544. (exit $ac_status); } >/dev/null; then
  23545. if test -s conftest.err; then
  23546. ac_cpp_err=$ac_c_preproc_warn_flag
  23547. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23548. else
  23549. ac_cpp_err=
  23550. fi
  23551. else
  23552. ac_cpp_err=yes
  23553. fi
  23554. if test -z "$ac_cpp_err"; then
  23555. ac_header_preproc=yes
  23556. else
  23557. echo "$as_me: failed program was:" >&5
  23558. sed 's/^/| /' conftest.$ac_ext >&5
  23559. ac_header_preproc=no
  23560. fi
  23561. rm -f conftest.err conftest.$ac_ext
  23562. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23563. echo "${ECHO_T}$ac_header_preproc" >&6
  23564. # So? What about this header?
  23565. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23566. yes:no: )
  23567. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23568. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23569. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23570. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23571. ac_header_preproc=yes
  23572. ;;
  23573. no:yes:* )
  23574. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23575. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23576. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23577. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23578. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23579. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23580. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23581. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23582. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23583. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23584. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23585. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23586. (
  23587. cat <<\_ASBOX
  23588. ## ------------------------------------------ ##
  23589. ## Report this to http://bugzilla.redhat.com/ ##
  23590. ## ------------------------------------------ ##
  23591. _ASBOX
  23592. ) |
  23593. sed "s/^/$as_me: WARNING: /" >&2
  23594. ;;
  23595. esac
  23596. echo "$as_me:$LINENO: checking for $ac_header" >&5
  23597. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23598. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23599. echo $ECHO_N "(cached) $ECHO_C" >&6
  23600. else
  23601. eval "$as_ac_Header=\$ac_header_preproc"
  23602. fi
  23603. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23604. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23605. fi
  23606. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23607. cat >>confdefs.h <<_ACEOF
  23608. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23609. _ACEOF
  23610. fi
  23611. done
  23612. if test $ac_cv_header_heim_err_h = yes ; then
  23613. krb5_impl=heimdal
  23614. fi
  23615. if test "x$krb5_impl" = "xmit"; then
  23616. echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  23617. echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
  23618. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  23619. echo $ECHO_N "(cached) $ECHO_C" >&6
  23620. else
  23621. ac_check_lib_save_LIBS=$LIBS
  23622. LIBS="-lk5crypto $LIBS"
  23623. cat >conftest.$ac_ext <<_ACEOF
  23624. /* confdefs.h. */
  23625. _ACEOF
  23626. cat confdefs.h >>conftest.$ac_ext
  23627. cat >>conftest.$ac_ext <<_ACEOF
  23628. /* end confdefs.h. */
  23629. int
  23630. main ()
  23631. {
  23632. main ();
  23633. ;
  23634. return 0;
  23635. }
  23636. _ACEOF
  23637. rm -f conftest.$ac_objext conftest$ac_exeext
  23638. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23639. (eval $ac_link) 2>conftest.er1
  23640. ac_status=$?
  23641. grep -v '^ *+' conftest.er1 >conftest.err
  23642. rm -f conftest.er1
  23643. cat conftest.err >&5
  23644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23645. (exit $ac_status); } &&
  23646. { ac_try='test -z "$ac_c_werror_flag"
  23647. || test ! -s conftest.err'
  23648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23649. (eval $ac_try) 2>&5
  23650. ac_status=$?
  23651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23652. (exit $ac_status); }; } &&
  23653. { ac_try='test -s conftest$ac_exeext'
  23654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23655. (eval $ac_try) 2>&5
  23656. ac_status=$?
  23657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23658. (exit $ac_status); }; }; then
  23659. ac_cv_lib_k5crypto_main=yes
  23660. else
  23661. echo "$as_me: failed program was:" >&5
  23662. sed 's/^/| /' conftest.$ac_ext >&5
  23663. ac_cv_lib_k5crypto_main=no
  23664. fi
  23665. rm -f conftest.err conftest.$ac_objext \
  23666. conftest$ac_exeext conftest.$ac_ext
  23667. LIBS=$ac_check_lib_save_LIBS
  23668. fi
  23669. echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  23670. echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
  23671. if test $ac_cv_lib_k5crypto_main = yes; then
  23672. krb5crypto=k5crypto
  23673. else
  23674. krb5crypto=crypto
  23675. fi
  23676. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23677. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23678. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23679. echo $ECHO_N "(cached) $ECHO_C" >&6
  23680. else
  23681. ac_check_lib_save_LIBS=$LIBS
  23682. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  23683. cat >conftest.$ac_ext <<_ACEOF
  23684. /* confdefs.h. */
  23685. _ACEOF
  23686. cat confdefs.h >>conftest.$ac_ext
  23687. cat >>conftest.$ac_ext <<_ACEOF
  23688. /* end confdefs.h. */
  23689. int
  23690. main ()
  23691. {
  23692. main ();
  23693. ;
  23694. return 0;
  23695. }
  23696. _ACEOF
  23697. rm -f conftest.$ac_objext conftest$ac_exeext
  23698. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23699. (eval $ac_link) 2>conftest.er1
  23700. ac_status=$?
  23701. grep -v '^ *+' conftest.er1 >conftest.err
  23702. rm -f conftest.er1
  23703. cat conftest.err >&5
  23704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23705. (exit $ac_status); } &&
  23706. { ac_try='test -z "$ac_c_werror_flag"
  23707. || test ! -s conftest.err'
  23708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23709. (eval $ac_try) 2>&5
  23710. ac_status=$?
  23711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23712. (exit $ac_status); }; } &&
  23713. { ac_try='test -s conftest$ac_exeext'
  23714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23715. (eval $ac_try) 2>&5
  23716. ac_status=$?
  23717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23718. (exit $ac_status); }; }; then
  23719. ac_cv_lib_krb5_main=yes
  23720. else
  23721. echo "$as_me: failed program was:" >&5
  23722. sed 's/^/| /' conftest.$ac_ext >&5
  23723. ac_cv_lib_krb5_main=no
  23724. fi
  23725. rm -f conftest.err conftest.$ac_objext \
  23726. conftest$ac_exeext conftest.$ac_ext
  23727. LIBS=$ac_check_lib_save_LIBS
  23728. fi
  23729. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23730. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23731. if test $ac_cv_lib_krb5_main = yes; then
  23732. have_krb5=yes
  23733. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  23734. else
  23735. have_krb5=no
  23736. fi
  23737. elif test "x$krb5_impl" = "xheimdal"; then
  23738. echo "$as_me:$LINENO: checking for main in -ldes" >&5
  23739. echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
  23740. if test "${ac_cv_lib_des_main+set}" = set; then
  23741. echo $ECHO_N "(cached) $ECHO_C" >&6
  23742. else
  23743. ac_check_lib_save_LIBS=$LIBS
  23744. LIBS="-ldes $LIBS"
  23745. cat >conftest.$ac_ext <<_ACEOF
  23746. /* confdefs.h. */
  23747. _ACEOF
  23748. cat confdefs.h >>conftest.$ac_ext
  23749. cat >>conftest.$ac_ext <<_ACEOF
  23750. /* end confdefs.h. */
  23751. int
  23752. main ()
  23753. {
  23754. main ();
  23755. ;
  23756. return 0;
  23757. }
  23758. _ACEOF
  23759. rm -f conftest.$ac_objext conftest$ac_exeext
  23760. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23761. (eval $ac_link) 2>conftest.er1
  23762. ac_status=$?
  23763. grep -v '^ *+' conftest.er1 >conftest.err
  23764. rm -f conftest.er1
  23765. cat conftest.err >&5
  23766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23767. (exit $ac_status); } &&
  23768. { ac_try='test -z "$ac_c_werror_flag"
  23769. || test ! -s conftest.err'
  23770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23771. (eval $ac_try) 2>&5
  23772. ac_status=$?
  23773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23774. (exit $ac_status); }; } &&
  23775. { ac_try='test -s conftest$ac_exeext'
  23776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23777. (eval $ac_try) 2>&5
  23778. ac_status=$?
  23779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23780. (exit $ac_status); }; }; then
  23781. ac_cv_lib_des_main=yes
  23782. else
  23783. echo "$as_me: failed program was:" >&5
  23784. sed 's/^/| /' conftest.$ac_ext >&5
  23785. ac_cv_lib_des_main=no
  23786. fi
  23787. rm -f conftest.err conftest.$ac_objext \
  23788. conftest$ac_exeext conftest.$ac_ext
  23789. LIBS=$ac_check_lib_save_LIBS
  23790. fi
  23791. echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  23792. echo "${ECHO_T}$ac_cv_lib_des_main" >&6
  23793. if test $ac_cv_lib_des_main = yes; then
  23794. krb5crypto=des
  23795. else
  23796. krb5crypto=crypto
  23797. fi
  23798. echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  23799. echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
  23800. if test "${ac_cv_lib_krb5_main+set}" = set; then
  23801. echo $ECHO_N "(cached) $ECHO_C" >&6
  23802. else
  23803. ac_check_lib_save_LIBS=$LIBS
  23804. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  23805. cat >conftest.$ac_ext <<_ACEOF
  23806. /* confdefs.h. */
  23807. _ACEOF
  23808. cat confdefs.h >>conftest.$ac_ext
  23809. cat >>conftest.$ac_ext <<_ACEOF
  23810. /* end confdefs.h. */
  23811. int
  23812. main ()
  23813. {
  23814. main ();
  23815. ;
  23816. return 0;
  23817. }
  23818. _ACEOF
  23819. rm -f conftest.$ac_objext conftest$ac_exeext
  23820. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23821. (eval $ac_link) 2>conftest.er1
  23822. ac_status=$?
  23823. grep -v '^ *+' conftest.er1 >conftest.err
  23824. rm -f conftest.er1
  23825. cat conftest.err >&5
  23826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23827. (exit $ac_status); } &&
  23828. { ac_try='test -z "$ac_c_werror_flag"
  23829. || test ! -s conftest.err'
  23830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23831. (eval $ac_try) 2>&5
  23832. ac_status=$?
  23833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23834. (exit $ac_status); }; } &&
  23835. { ac_try='test -s conftest$ac_exeext'
  23836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23837. (eval $ac_try) 2>&5
  23838. ac_status=$?
  23839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23840. (exit $ac_status); }; }; then
  23841. ac_cv_lib_krb5_main=yes
  23842. else
  23843. echo "$as_me: failed program was:" >&5
  23844. sed 's/^/| /' conftest.$ac_ext >&5
  23845. ac_cv_lib_krb5_main=no
  23846. fi
  23847. rm -f conftest.err conftest.$ac_objext \
  23848. conftest$ac_exeext conftest.$ac_ext
  23849. LIBS=$ac_check_lib_save_LIBS
  23850. fi
  23851. echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  23852. echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
  23853. if test $ac_cv_lib_krb5_main = yes; then
  23854. have_krb5=yes
  23855. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  23856. else
  23857. have_krb5=no
  23858. fi
  23859. cat >>confdefs.h <<\_ACEOF
  23860. #define HAVE_HEIMDAL_KERBEROS 1
  23861. _ACEOF
  23862. else
  23863. have_krb5=no
  23864. { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  23865. echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  23866. fi
  23867. # reset to original values
  23868. CPPFLAGS="$save_CPPFLAGS"
  23869. LDFLAGS="$save_LDFLAGS"
  23870. if test -n "$kerberos_incdir" ; then
  23871. kerberos_inc="-I$kerberos_incdir"
  23872. fi
  23873. if test -n "$kerberos_libdir" ; then
  23874. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  23875. fi
  23876. fi
  23877. if test -n "$with_kerberos" ; then
  23878. if test "x$have_krb5" = "xyes" ; then
  23879. cat >>confdefs.h <<\_ACEOF
  23880. #define HAVE_KRB5 1
  23881. _ACEOF
  23882. else
  23883. { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  23884. echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  23885. { (exit 1); exit 1; }; }
  23886. fi
  23887. save_LIBS="$LIBS"
  23888. LIBS="$kerberos_lib"
  23889. save_CPPFLAGS="$CPPFLAGS"
  23890. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  23891. for ac_func in krb5_cc_new_unique
  23892. do
  23893. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  23894. echo "$as_me:$LINENO: checking for $ac_func" >&5
  23895. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  23896. if eval "test \"\${$as_ac_var+set}\" = set"; then
  23897. echo $ECHO_N "(cached) $ECHO_C" >&6
  23898. else
  23899. cat >conftest.$ac_ext <<_ACEOF
  23900. /* confdefs.h. */
  23901. _ACEOF
  23902. cat confdefs.h >>conftest.$ac_ext
  23903. cat >>conftest.$ac_ext <<_ACEOF
  23904. /* end confdefs.h. */
  23905. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  23906. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  23907. #define $ac_func innocuous_$ac_func
  23908. /* System header to define __stub macros and hopefully few prototypes,
  23909. which can conflict with char $ac_func (); below.
  23910. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23911. <limits.h> exists even on freestanding compilers. */
  23912. #ifdef __STDC__
  23913. # include <limits.h>
  23914. #else
  23915. # include <assert.h>
  23916. #endif
  23917. #undef $ac_func
  23918. /* Override any gcc2 internal prototype to avoid an error. */
  23919. #ifdef __cplusplus
  23920. extern "C"
  23921. {
  23922. #endif
  23923. /* We use char because int might match the return type of a gcc2
  23924. builtin and then its argument prototype would still apply. */
  23925. char $ac_func ();
  23926. /* The GNU C library defines this for functions which it implements
  23927. to always fail with ENOSYS. Some functions are actually named
  23928. something starting with __ and the normal name is an alias. */
  23929. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  23930. choke me
  23931. #else
  23932. char (*f) () = $ac_func;
  23933. #endif
  23934. #ifdef __cplusplus
  23935. }
  23936. #endif
  23937. int
  23938. main ()
  23939. {
  23940. return f != $ac_func;
  23941. ;
  23942. return 0;
  23943. }
  23944. _ACEOF
  23945. rm -f conftest.$ac_objext conftest$ac_exeext
  23946. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23947. (eval $ac_link) 2>conftest.er1
  23948. ac_status=$?
  23949. grep -v '^ *+' conftest.er1 >conftest.err
  23950. rm -f conftest.er1
  23951. cat conftest.err >&5
  23952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23953. (exit $ac_status); } &&
  23954. { ac_try='test -z "$ac_c_werror_flag"
  23955. || test ! -s conftest.err'
  23956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23957. (eval $ac_try) 2>&5
  23958. ac_status=$?
  23959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23960. (exit $ac_status); }; } &&
  23961. { ac_try='test -s conftest$ac_exeext'
  23962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23963. (eval $ac_try) 2>&5
  23964. ac_status=$?
  23965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23966. (exit $ac_status); }; }; then
  23967. eval "$as_ac_var=yes"
  23968. else
  23969. echo "$as_me: failed program was:" >&5
  23970. sed 's/^/| /' conftest.$ac_ext >&5
  23971. eval "$as_ac_var=no"
  23972. fi
  23973. rm -f conftest.err conftest.$ac_objext \
  23974. conftest$ac_exeext conftest.$ac_ext
  23975. fi
  23976. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  23977. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  23978. if test `eval echo '${'$as_ac_var'}'` = yes; then
  23979. cat >>confdefs.h <<_ACEOF
  23980. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  23981. _ACEOF
  23982. fi
  23983. done
  23984. LIBS="$save_LIBS"
  23985. CPPFLAGS="$save_CPPFLAGS"
  23986. fi
  23987. # BEGIN COPYRIGHT BLOCK
  23988. # Copyright (C) 2007 Red Hat, Inc.
  23989. # All rights reserved.
  23990. #
  23991. # This program is free software; you can redistribute it and/or
  23992. # modify it under the terms of the GNU General Public License
  23993. # as published by the Free Software Foundation; either version 2
  23994. # of the License, or (at your option) any later version.
  23995. #
  23996. # This program is distributed in the hope that it will be useful,
  23997. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23998. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23999. # GNU General Public License for more details.
  24000. #
  24001. # You should have received a copy of the GNU General Public License
  24002. # along with this program; if not, write to the Free Software
  24003. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24004. #
  24005. # END COPYRIGHT BLOCK
  24006. { echo "$as_me:$LINENO: checking for pcre..." >&5
  24007. echo "$as_me: checking for pcre..." >&6;}
  24008. echo "$as_me:$LINENO: checking for --with-pcre" >&5
  24009. echo $ECHO_N "checking for --with-pcre... $ECHO_C" >&6
  24010. # Check whether --with-pcre or --without-pcre was given.
  24011. if test "${with_pcre+set}" = set; then
  24012. withval="$with_pcre"
  24013. if test "$withval" = "yes"; then
  24014. echo "$as_me:$LINENO: result: yes" >&5
  24015. echo "${ECHO_T}yes" >&6
  24016. if test -f "/usr/include/pcre.h"; then
  24017. pcre_incdir="/usr/include"
  24018. pcre_inc="-I/usr/include"
  24019. pcre_lib='-L$(libdir)'
  24020. pcre_libdir='$(libdir)'
  24021. else
  24022. { { echo "$as_me:$LINENO: error: pcre.h not found" >&5
  24023. echo "$as_me: error: pcre.h not found" >&2;}
  24024. { (exit 1); exit 1; }; }
  24025. fi
  24026. elif test -d "$withval"/include -a -d "$withval"/lib; then
  24027. echo "$as_me:$LINENO: result: using $withval" >&5
  24028. echo "${ECHO_T}using $withval" >&6
  24029. PCREDIR=$withval
  24030. pcre_lib="-L$PCREDIR/lib"
  24031. pcre_libdir="$PCREDIR/lib"
  24032. pcre_incdir="$PCREDIR/include"
  24033. if ! test -e "$pcre_incdir/pcre.h" ; then
  24034. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  24035. echo "$as_me: error: $withval include dir not found" >&2;}
  24036. { (exit 1); exit 1; }; }
  24037. fi
  24038. pcre_inc="-I$pcre_incdir"
  24039. else
  24040. echo
  24041. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  24042. echo "$as_me: error: $withval not found" >&2;}
  24043. { (exit 1); exit 1; }; }
  24044. fi
  24045. else
  24046. echo "$as_me:$LINENO: result: no" >&5
  24047. echo "${ECHO_T}no" >&6
  24048. fi;
  24049. #
  24050. # if PCRE is not found yet, try pkg-config
  24051. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  24052. # Extract the first word of "pkg-config", so it can be a program name with args.
  24053. set dummy pkg-config; ac_word=$2
  24054. echo "$as_me:$LINENO: checking for $ac_word" >&5
  24055. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24056. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  24057. echo $ECHO_N "(cached) $ECHO_C" >&6
  24058. else
  24059. case $PKG_CONFIG in
  24060. [\\/]* | ?:[\\/]*)
  24061. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  24062. ;;
  24063. *)
  24064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24065. for as_dir in $PATH
  24066. do
  24067. IFS=$as_save_IFS
  24068. test -z "$as_dir" && as_dir=.
  24069. for ac_exec_ext in '' $ac_executable_extensions; do
  24070. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24071. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24072. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24073. break 2
  24074. fi
  24075. done
  24076. done
  24077. ;;
  24078. esac
  24079. fi
  24080. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  24081. if test -n "$PKG_CONFIG"; then
  24082. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  24083. echo "${ECHO_T}$PKG_CONFIG" >&6
  24084. else
  24085. echo "$as_me:$LINENO: result: no" >&5
  24086. echo "${ECHO_T}no" >&6
  24087. fi
  24088. echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  24089. echo $ECHO_N "checking for pcre with pkg-config... $ECHO_C" >&6
  24090. if test -n "$PKG_CONFIG"; then
  24091. if $PKG_CONFIG --exists pcre; then
  24092. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  24093. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  24094. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  24095. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24096. echo "${ECHO_T}using system PCRE" >&6
  24097. elif $PKG_CONFIG --exists libpcre; then
  24098. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  24099. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  24100. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  24101. echo "$as_me:$LINENO: result: using system PCRE" >&5
  24102. echo "${ECHO_T}using system PCRE" >&6
  24103. else
  24104. { { echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  24105. echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  24106. { (exit 1); exit 1; }; }
  24107. fi
  24108. fi
  24109. fi
  24110. if test -z "$pcre_inc"; then
  24111. echo "$as_me:$LINENO: checking for pcre.h" >&5
  24112. echo $ECHO_N "checking for pcre.h... $ECHO_C" >&6
  24113. if test -f "/usr/include/pcre.h"; then
  24114. echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  24115. echo "${ECHO_T}using /usr/include/pcre.h" >&6
  24116. pcre_incdir="/usr/include"
  24117. pcre_inc="-I/usr/include"
  24118. pcre_lib='-L$(libdir)'
  24119. pcre_libdir='$(libdir)'
  24120. else
  24121. echo "$as_me:$LINENO: result: no" >&5
  24122. echo "${ECHO_T}no" >&6
  24123. { { echo "$as_me:$LINENO: error: pcre not found, specify with --with-pcre." >&5
  24124. echo "$as_me: error: pcre not found, specify with --with-pcre." >&2;}
  24125. { (exit 1); exit 1; }; }
  24126. fi
  24127. fi
  24128. # BEGIN COPYRIGHT BLOCK
  24129. # Copyright (C) 2009 Red Hat, Inc.
  24130. # All rights reserved.
  24131. #
  24132. # This program is free software; you can redistribute it and/or
  24133. # modify it under the terms of the GNU General Public License
  24134. # as published by the Free Software Foundation; either version 2
  24135. # of the License, or (at your option) any later version.
  24136. #
  24137. # This program is distributed in the hope that it will be useful,
  24138. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24139. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24140. # GNU General Public License for more details.
  24141. #
  24142. # You should have received a copy of the GNU General Public License
  24143. # along with this program; if not, write to the Free Software
  24144. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24145. #
  24146. # END COPYRIGHT BLOCK
  24147. { echo "$as_me:$LINENO: checking for SELinux..." >&5
  24148. echo "$as_me: checking for SELinux..." >&6;}
  24149. # check for --with-selinux
  24150. echo "$as_me:$LINENO: checking for --with-selinux" >&5
  24151. echo $ECHO_N "checking for --with-selinux... $ECHO_C" >&6
  24152. # Check whether --with-selinux or --without-selinux was given.
  24153. if test "${with_selinux+set}" = set; then
  24154. withval="$with_selinux"
  24155. with_selinux=yes
  24156. echo "$as_me:$LINENO: result: yes" >&5
  24157. echo "${ECHO_T}yes" >&6
  24158. if test ! -f "/usr/share/selinux/devel/Makefile"; then
  24159. { { echo "$as_me:$LINENO: error: SELinux development tools (selinux-policy) not found" >&5
  24160. echo "$as_me: error: SELinux development tools (selinux-policy) not found" >&2;}
  24161. { (exit 1); exit 1; }; }
  24162. fi
  24163. else
  24164. echo "$as_me:$LINENO: result: no" >&5
  24165. echo "${ECHO_T}no" >&6
  24166. fi;
  24167. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  24168. # set sasl_path for wrapper scripts
  24169. if test -z "$sasl_libdir" ; then
  24170. sasl_path="$libdir/sasl2"
  24171. else
  24172. sasl_path="$sasl_libdir/sasl2"
  24173. fi
  24174. if test "$with_selinux" = "yes"; then
  24175. SELINUX_TRUE=
  24176. SELINUX_FALSE='#'
  24177. else
  24178. SELINUX_TRUE='#'
  24179. SELINUX_FALSE=
  24180. fi
  24181. if test "$with_openldap" = "yes"; then
  24182. OPENLDAP_TRUE=
  24183. OPENLDAP_FALSE='#'
  24184. else
  24185. OPENLDAP_TRUE='#'
  24186. OPENLDAP_FALSE=
  24187. fi
  24188. # write out paths for binary components
  24189. cat >>confdefs.h <<\_ACEOF
  24190. #define LDAP_DEBUG 1
  24191. _ACEOF
  24192. cat >>confdefs.h <<\_ACEOF
  24193. #define LDAP_DONT_USE_SMARTHEAP 1
  24194. _ACEOF
  24195. # libtool on fedora/rhel contains some gcc-isms which cause problems
  24196. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  24197. # we remove them here
  24198. if test "$GCC" != yes ; then
  24199. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  24200. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  24201. cp -p libtool libtool.orig
  24202. cp -p libtool libtool.tmp
  24203. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  24204. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  24205. # perl produced write-only code . . .
  24206. sed -e '/^gcc_dir/ d' \
  24207. -e '/^gcc_ver/ d' \
  24208. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  24209. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  24210. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  24211. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  24212. libtool > libtool.tmp
  24213. cp -p libtool.tmp libtool
  24214. rm -f libtool.tmp
  24215. fi
  24216. ac_config_files="$ac_config_files Makefile"
  24217. cat >confcache <<\_ACEOF
  24218. # This file is a shell script that caches the results of configure
  24219. # tests run on this system so they can be shared between configure
  24220. # scripts and configure runs, see configure's option --config-cache.
  24221. # It is not useful on other systems. If it contains results you don't
  24222. # want to keep, you may remove or edit it.
  24223. #
  24224. # config.status only pays attention to the cache file if you give it
  24225. # the --recheck option to rerun configure.
  24226. #
  24227. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24228. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24229. # following values.
  24230. _ACEOF
  24231. # The following way of writing the cache mishandles newlines in values,
  24232. # but we know of no workaround that is simple, portable, and efficient.
  24233. # So, don't put newlines in cache variables' values.
  24234. # Ultrix sh set writes to stderr and can't be redirected directly,
  24235. # and sets the high bit in the cache file unless we assign to the vars.
  24236. {
  24237. (set) 2>&1 |
  24238. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  24239. *ac_space=\ *)
  24240. # `set' does not quote correctly, so add quotes (double-quote
  24241. # substitution turns \\\\ into \\, and sed turns \\ into \).
  24242. sed -n \
  24243. "s/'/'\\\\''/g;
  24244. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24245. ;;
  24246. *)
  24247. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24248. sed -n \
  24249. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  24250. ;;
  24251. esac;
  24252. } |
  24253. sed '
  24254. t clear
  24255. : clear
  24256. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  24257. t end
  24258. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24259. : end' >>confcache
  24260. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  24261. if test -w $cache_file; then
  24262. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  24263. cat confcache >$cache_file
  24264. else
  24265. echo "not updating unwritable cache $cache_file"
  24266. fi
  24267. fi
  24268. rm -f confcache
  24269. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24270. # Let make expand exec_prefix.
  24271. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24272. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  24273. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  24274. # trailing colons and then remove the whole line if VPATH becomes empty
  24275. # (actually we leave an empty line to preserve line numbers).
  24276. if test "x$srcdir" = x.; then
  24277. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  24278. s/:*\$(srcdir):*/:/;
  24279. s/:*\${srcdir}:*/:/;
  24280. s/:*@srcdir@:*/:/;
  24281. s/^\([^=]*=[ ]*\):*/\1/;
  24282. s/:*$//;
  24283. s/^[^=]*=[ ]*$//;
  24284. }'
  24285. fi
  24286. DEFS=-DHAVE_CONFIG_H
  24287. ac_libobjs=
  24288. ac_ltlibobjs=
  24289. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24290. # 1. Remove the extension, and $U if already installed.
  24291. ac_i=`echo "$ac_i" |
  24292. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  24293. # 2. Add them.
  24294. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  24295. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  24296. done
  24297. LIBOBJS=$ac_libobjs
  24298. LTLIBOBJS=$ac_ltlibobjs
  24299. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  24300. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  24301. Usually this means the macro was only invoked conditionally." >&5
  24302. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  24303. Usually this means the macro was only invoked conditionally." >&2;}
  24304. { (exit 1); exit 1; }; }
  24305. fi
  24306. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  24307. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  24308. Usually this means the macro was only invoked conditionally." >&5
  24309. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  24310. Usually this means the macro was only invoked conditionally." >&2;}
  24311. { (exit 1); exit 1; }; }
  24312. fi
  24313. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  24314. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  24315. Usually this means the macro was only invoked conditionally." >&5
  24316. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  24317. Usually this means the macro was only invoked conditionally." >&2;}
  24318. { (exit 1); exit 1; }; }
  24319. fi
  24320. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  24321. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  24322. Usually this means the macro was only invoked conditionally." >&5
  24323. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  24324. Usually this means the macro was only invoked conditionally." >&2;}
  24325. { (exit 1); exit 1; }; }
  24326. fi
  24327. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  24328. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  24329. Usually this means the macro was only invoked conditionally." >&5
  24330. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  24331. Usually this means the macro was only invoked conditionally." >&2;}
  24332. { (exit 1); exit 1; }; }
  24333. fi
  24334. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  24335. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  24336. Usually this means the macro was only invoked conditionally." >&5
  24337. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  24338. Usually this means the macro was only invoked conditionally." >&2;}
  24339. { (exit 1); exit 1; }; }
  24340. fi
  24341. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  24342. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  24343. Usually this means the macro was only invoked conditionally." >&5
  24344. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  24345. Usually this means the macro was only invoked conditionally." >&2;}
  24346. { (exit 1); exit 1; }; }
  24347. fi
  24348. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  24349. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  24350. Usually this means the macro was only invoked conditionally." >&5
  24351. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  24352. Usually this means the macro was only invoked conditionally." >&2;}
  24353. { (exit 1); exit 1; }; }
  24354. fi
  24355. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  24356. { { echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  24357. Usually this means the macro was only invoked conditionally." >&5
  24358. echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  24359. Usually this means the macro was only invoked conditionally." >&2;}
  24360. { (exit 1); exit 1; }; }
  24361. fi
  24362. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  24363. { { echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24364. Usually this means the macro was only invoked conditionally." >&5
  24365. echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  24366. Usually this means the macro was only invoked conditionally." >&2;}
  24367. { (exit 1); exit 1; }; }
  24368. fi
  24369. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  24370. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  24371. Usually this means the macro was only invoked conditionally." >&5
  24372. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  24373. Usually this means the macro was only invoked conditionally." >&2;}
  24374. { (exit 1); exit 1; }; }
  24375. fi
  24376. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  24377. { { echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  24378. Usually this means the macro was only invoked conditionally." >&5
  24379. echo "$as_me: error: conditional \"enable_presence\" was never defined.
  24380. Usually this means the macro was only invoked conditionally." >&2;}
  24381. { (exit 1); exit 1; }; }
  24382. fi
  24383. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  24384. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  24385. Usually this means the macro was only invoked conditionally." >&5
  24386. echo "$as_me: error: conditional \"WINNT\" was never defined.
  24387. Usually this means the macro was only invoked conditionally." >&2;}
  24388. { (exit 1); exit 1; }; }
  24389. fi
  24390. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  24391. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  24392. Usually this means the macro was only invoked conditionally." >&5
  24393. echo "$as_me: error: conditional \"HPUX\" was never defined.
  24394. Usually this means the macro was only invoked conditionally." >&2;}
  24395. { (exit 1); exit 1; }; }
  24396. fi
  24397. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  24398. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  24399. Usually this means the macro was only invoked conditionally." >&5
  24400. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  24401. Usually this means the macro was only invoked conditionally." >&2;}
  24402. { (exit 1); exit 1; }; }
  24403. fi
  24404. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  24405. { { echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  24406. Usually this means the macro was only invoked conditionally." >&5
  24407. echo "$as_me: error: conditional \"SELINUX\" was never defined.
  24408. Usually this means the macro was only invoked conditionally." >&2;}
  24409. { (exit 1); exit 1; }; }
  24410. fi
  24411. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  24412. { { echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  24413. Usually this means the macro was only invoked conditionally." >&5
  24414. echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  24415. Usually this means the macro was only invoked conditionally." >&2;}
  24416. { (exit 1); exit 1; }; }
  24417. fi
  24418. : ${CONFIG_STATUS=./config.status}
  24419. ac_clean_files_save=$ac_clean_files
  24420. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24421. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  24422. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  24423. cat >$CONFIG_STATUS <<_ACEOF
  24424. #! $SHELL
  24425. # Generated by $as_me.
  24426. # Run this file to recreate the current configuration.
  24427. # Compiler output produced by configure, useful for debugging
  24428. # configure, is in config.log if it exists.
  24429. debug=false
  24430. ac_cs_recheck=false
  24431. ac_cs_silent=false
  24432. SHELL=\${CONFIG_SHELL-$SHELL}
  24433. _ACEOF
  24434. cat >>$CONFIG_STATUS <<\_ACEOF
  24435. ## --------------------- ##
  24436. ## M4sh Initialization. ##
  24437. ## --------------------- ##
  24438. # Be Bourne compatible
  24439. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  24440. emulate sh
  24441. NULLCMD=:
  24442. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24443. # is contrary to our usage. Disable this feature.
  24444. alias -g '${1+"$@"}'='"$@"'
  24445. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  24446. set -o posix
  24447. fi
  24448. DUALCASE=1; export DUALCASE # for MKS sh
  24449. # Support unset when possible.
  24450. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24451. as_unset=unset
  24452. else
  24453. as_unset=false
  24454. fi
  24455. # Work around bugs in pre-3.0 UWIN ksh.
  24456. $as_unset ENV MAIL MAILPATH
  24457. PS1='$ '
  24458. PS2='> '
  24459. PS4='+ '
  24460. # NLS nuisances.
  24461. for as_var in \
  24462. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  24463. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  24464. LC_TELEPHONE LC_TIME
  24465. do
  24466. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  24467. eval $as_var=C; export $as_var
  24468. else
  24469. $as_unset $as_var
  24470. fi
  24471. done
  24472. # Required to use basename.
  24473. if expr a : '\(a\)' >/dev/null 2>&1; then
  24474. as_expr=expr
  24475. else
  24476. as_expr=false
  24477. fi
  24478. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  24479. as_basename=basename
  24480. else
  24481. as_basename=false
  24482. fi
  24483. # Name of the executable.
  24484. as_me=`$as_basename "$0" ||
  24485. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24486. X"$0" : 'X\(//\)$' \| \
  24487. X"$0" : 'X\(/\)$' \| \
  24488. . : '\(.\)' 2>/dev/null ||
  24489. echo X/"$0" |
  24490. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  24491. /^X\/\(\/\/\)$/{ s//\1/; q; }
  24492. /^X\/\(\/\).*/{ s//\1/; q; }
  24493. s/.*/./; q'`
  24494. # PATH needs CR, and LINENO needs CR and PATH.
  24495. # Avoid depending upon Character Ranges.
  24496. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24497. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24498. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24499. as_cr_digits='0123456789'
  24500. as_cr_alnum=$as_cr_Letters$as_cr_digits
  24501. # The user is always right.
  24502. if test "${PATH_SEPARATOR+set}" != set; then
  24503. echo "#! /bin/sh" >conf$$.sh
  24504. echo "exit 0" >>conf$$.sh
  24505. chmod +x conf$$.sh
  24506. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24507. PATH_SEPARATOR=';'
  24508. else
  24509. PATH_SEPARATOR=:
  24510. fi
  24511. rm -f conf$$.sh
  24512. fi
  24513. as_lineno_1=$LINENO
  24514. as_lineno_2=$LINENO
  24515. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24516. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24517. test "x$as_lineno_3" = "x$as_lineno_2" || {
  24518. # Find who we are. Look in the path if we contain no path at all
  24519. # relative or not.
  24520. case $0 in
  24521. *[\\/]* ) as_myself=$0 ;;
  24522. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24523. for as_dir in $PATH
  24524. do
  24525. IFS=$as_save_IFS
  24526. test -z "$as_dir" && as_dir=.
  24527. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  24528. done
  24529. ;;
  24530. esac
  24531. # We did not find ourselves, most probably we were run as `sh COMMAND'
  24532. # in which case we are not to be found in the path.
  24533. if test "x$as_myself" = x; then
  24534. as_myself=$0
  24535. fi
  24536. if test ! -f "$as_myself"; then
  24537. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  24538. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  24539. { (exit 1); exit 1; }; }
  24540. fi
  24541. case $CONFIG_SHELL in
  24542. '')
  24543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24544. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  24545. do
  24546. IFS=$as_save_IFS
  24547. test -z "$as_dir" && as_dir=.
  24548. for as_base in sh bash ksh sh5; do
  24549. case $as_dir in
  24550. /*)
  24551. if ("$as_dir/$as_base" -c '
  24552. as_lineno_1=$LINENO
  24553. as_lineno_2=$LINENO
  24554. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  24555. test "x$as_lineno_1" != "x$as_lineno_2" &&
  24556. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  24557. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  24558. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  24559. CONFIG_SHELL=$as_dir/$as_base
  24560. export CONFIG_SHELL
  24561. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  24562. fi;;
  24563. esac
  24564. done
  24565. done
  24566. ;;
  24567. esac
  24568. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  24569. # uniformly replaced by the line number. The first 'sed' inserts a
  24570. # line-number line before each line; the second 'sed' does the real
  24571. # work. The second script uses 'N' to pair each line-number line
  24572. # with the numbered line, and appends trailing '-' during
  24573. # substitution so that $LINENO is not a special case at line end.
  24574. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  24575. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  24576. sed '=' <$as_myself |
  24577. sed '
  24578. N
  24579. s,$,-,
  24580. : loop
  24581. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  24582. t loop
  24583. s,-$,,
  24584. s,^['$as_cr_digits']*\n,,
  24585. ' >$as_me.lineno &&
  24586. chmod +x $as_me.lineno ||
  24587. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  24588. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  24589. { (exit 1); exit 1; }; }
  24590. # Don't try to exec as it changes $[0], causing all sort of problems
  24591. # (the dirname of $[0] is not the place where we might find the
  24592. # original and so on. Autoconf is especially sensible to this).
  24593. . ./$as_me.lineno
  24594. # Exit status is that of the last command.
  24595. exit
  24596. }
  24597. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  24598. *c*,-n*) ECHO_N= ECHO_C='
  24599. ' ECHO_T=' ' ;;
  24600. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  24601. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  24602. esac
  24603. if expr a : '\(a\)' >/dev/null 2>&1; then
  24604. as_expr=expr
  24605. else
  24606. as_expr=false
  24607. fi
  24608. rm -f conf$$ conf$$.exe conf$$.file
  24609. echo >conf$$.file
  24610. if ln -s conf$$.file conf$$ 2>/dev/null; then
  24611. # We could just check for DJGPP; but this test a) works b) is more generic
  24612. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  24613. if test -f conf$$.exe; then
  24614. # Don't use ln at all; we don't have any links
  24615. as_ln_s='cp -p'
  24616. else
  24617. as_ln_s='ln -s'
  24618. fi
  24619. elif ln conf$$.file conf$$ 2>/dev/null; then
  24620. as_ln_s=ln
  24621. else
  24622. as_ln_s='cp -p'
  24623. fi
  24624. rm -f conf$$ conf$$.exe conf$$.file
  24625. if mkdir -p . 2>/dev/null; then
  24626. as_mkdir_p=:
  24627. else
  24628. test -d ./-p && rmdir ./-p
  24629. as_mkdir_p=false
  24630. fi
  24631. as_executable_p="test -f"
  24632. # Sed expression to map a string onto a valid CPP name.
  24633. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24634. # Sed expression to map a string onto a valid variable name.
  24635. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24636. # IFS
  24637. # We need space, tab and new line, in precisely that order.
  24638. as_nl='
  24639. '
  24640. IFS=" $as_nl"
  24641. # CDPATH.
  24642. $as_unset CDPATH
  24643. exec 6>&1
  24644. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  24645. # report actual input values of CONFIG_FILES etc. instead of their
  24646. # values after options handling. Logging --version etc. is OK.
  24647. exec 5>>config.log
  24648. {
  24649. echo
  24650. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24651. ## Running $as_me. ##
  24652. _ASBOX
  24653. } >&5
  24654. cat >&5 <<_CSEOF
  24655. This file was extended by dirsrv $as_me 1.2.3, which was
  24656. generated by GNU Autoconf 2.59. Invocation command line was
  24657. CONFIG_FILES = $CONFIG_FILES
  24658. CONFIG_HEADERS = $CONFIG_HEADERS
  24659. CONFIG_LINKS = $CONFIG_LINKS
  24660. CONFIG_COMMANDS = $CONFIG_COMMANDS
  24661. $ $0 $@
  24662. _CSEOF
  24663. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  24664. echo >&5
  24665. _ACEOF
  24666. # Files that config.status was made for.
  24667. if test -n "$ac_config_files"; then
  24668. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  24669. fi
  24670. if test -n "$ac_config_headers"; then
  24671. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  24672. fi
  24673. if test -n "$ac_config_links"; then
  24674. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  24675. fi
  24676. if test -n "$ac_config_commands"; then
  24677. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  24678. fi
  24679. cat >>$CONFIG_STATUS <<\_ACEOF
  24680. ac_cs_usage="\
  24681. \`$as_me' instantiates files from templates according to the
  24682. current configuration.
  24683. Usage: $0 [OPTIONS] [FILE]...
  24684. -h, --help print this help, then exit
  24685. -V, --version print version number, then exit
  24686. -q, --quiet do not print progress messages
  24687. -d, --debug don't remove temporary files
  24688. --recheck update $as_me by reconfiguring in the same conditions
  24689. --file=FILE[:TEMPLATE]
  24690. instantiate the configuration file FILE
  24691. --header=FILE[:TEMPLATE]
  24692. instantiate the configuration header FILE
  24693. Configuration files:
  24694. $config_files
  24695. Configuration headers:
  24696. $config_headers
  24697. Configuration commands:
  24698. $config_commands
  24699. Report bugs to <[email protected]>."
  24700. _ACEOF
  24701. cat >>$CONFIG_STATUS <<_ACEOF
  24702. ac_cs_version="\\
  24703. dirsrv config.status 1.2.3
  24704. configured by $0, generated by GNU Autoconf 2.59,
  24705. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  24706. Copyright (C) 2003 Free Software Foundation, Inc.
  24707. This config.status script is free software; the Free Software Foundation
  24708. gives unlimited permission to copy, distribute and modify it."
  24709. srcdir=$srcdir
  24710. INSTALL="$INSTALL"
  24711. _ACEOF
  24712. cat >>$CONFIG_STATUS <<\_ACEOF
  24713. # If no file are specified by the user, then we need to provide default
  24714. # value. By we need to know if files were specified by the user.
  24715. ac_need_defaults=:
  24716. while test $# != 0
  24717. do
  24718. case $1 in
  24719. --*=*)
  24720. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  24721. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  24722. ac_shift=:
  24723. ;;
  24724. -*)
  24725. ac_option=$1
  24726. ac_optarg=$2
  24727. ac_shift=shift
  24728. ;;
  24729. *) # This is not an option, so the user has probably given explicit
  24730. # arguments.
  24731. ac_option=$1
  24732. ac_need_defaults=false;;
  24733. esac
  24734. case $ac_option in
  24735. # Handling of the options.
  24736. _ACEOF
  24737. cat >>$CONFIG_STATUS <<\_ACEOF
  24738. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24739. ac_cs_recheck=: ;;
  24740. --version | --vers* | -V )
  24741. echo "$ac_cs_version"; exit 0 ;;
  24742. --he | --h)
  24743. # Conflict between --help and --header
  24744. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  24745. Try \`$0 --help' for more information." >&5
  24746. echo "$as_me: error: ambiguous option: $1
  24747. Try \`$0 --help' for more information." >&2;}
  24748. { (exit 1); exit 1; }; };;
  24749. --help | --hel | -h )
  24750. echo "$ac_cs_usage"; exit 0 ;;
  24751. --debug | --d* | -d )
  24752. debug=: ;;
  24753. --file | --fil | --fi | --f )
  24754. $ac_shift
  24755. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  24756. ac_need_defaults=false;;
  24757. --header | --heade | --head | --hea )
  24758. $ac_shift
  24759. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  24760. ac_need_defaults=false;;
  24761. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24762. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24763. ac_cs_silent=: ;;
  24764. # This is an error.
  24765. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  24766. Try \`$0 --help' for more information." >&5
  24767. echo "$as_me: error: unrecognized option: $1
  24768. Try \`$0 --help' for more information." >&2;}
  24769. { (exit 1); exit 1; }; } ;;
  24770. *) ac_config_targets="$ac_config_targets $1" ;;
  24771. esac
  24772. shift
  24773. done
  24774. ac_configure_extra_args=
  24775. if $ac_cs_silent; then
  24776. exec 6>/dev/null
  24777. ac_configure_extra_args="$ac_configure_extra_args --silent"
  24778. fi
  24779. _ACEOF
  24780. cat >>$CONFIG_STATUS <<_ACEOF
  24781. if \$ac_cs_recheck; then
  24782. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  24783. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24784. fi
  24785. _ACEOF
  24786. cat >>$CONFIG_STATUS <<_ACEOF
  24787. #
  24788. # INIT-COMMANDS section.
  24789. #
  24790. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24791. _ACEOF
  24792. cat >>$CONFIG_STATUS <<\_ACEOF
  24793. for ac_config_target in $ac_config_targets
  24794. do
  24795. case "$ac_config_target" in
  24796. # Handling of arguments.
  24797. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24798. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24799. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24800. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  24801. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  24802. { (exit 1); exit 1; }; };;
  24803. esac
  24804. done
  24805. # If the user did not use the arguments to specify the items to instantiate,
  24806. # then the envvar interface is used. Set only those that are not.
  24807. # We use the long form for the default assignment because of an extremely
  24808. # bizarre bug on SunOS 4.1.3.
  24809. if $ac_need_defaults; then
  24810. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24811. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24812. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24813. fi
  24814. # Have a temporary directory for convenience. Make it in the build tree
  24815. # simply because there is no reason to put it here, and in addition,
  24816. # creating and moving files from /tmp can sometimes cause problems.
  24817. # Create a temporary directory, and hook for its removal unless debugging.
  24818. $debug ||
  24819. {
  24820. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  24821. trap '{ (exit 1); exit 1; }' 1 2 13 15
  24822. }
  24823. # Create a (secure) tmp directory for tmp files.
  24824. {
  24825. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  24826. test -n "$tmp" && test -d "$tmp"
  24827. } ||
  24828. {
  24829. tmp=./confstat$$-$RANDOM
  24830. (umask 077 && mkdir $tmp)
  24831. } ||
  24832. {
  24833. echo "$me: cannot create a temporary directory in ." >&2
  24834. { (exit 1); exit 1; }
  24835. }
  24836. _ACEOF
  24837. cat >>$CONFIG_STATUS <<_ACEOF
  24838. #
  24839. # CONFIG_FILES section.
  24840. #
  24841. # No need to generate the scripts if there are no CONFIG_FILES.
  24842. # This happens for instance when ./config.status config.h
  24843. if test -n "\$CONFIG_FILES"; then
  24844. # Protect against being on the right side of a sed subst in config.status.
  24845. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  24846. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  24847. s,@SHELL@,$SHELL,;t t
  24848. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  24849. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  24850. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  24851. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  24852. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  24853. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  24854. s,@exec_prefix@,$exec_prefix,;t t
  24855. s,@prefix@,$prefix,;t t
  24856. s,@program_transform_name@,$program_transform_name,;t t
  24857. s,@bindir@,$bindir,;t t
  24858. s,@sbindir@,$sbindir,;t t
  24859. s,@libexecdir@,$libexecdir,;t t
  24860. s,@datadir@,$datadir,;t t
  24861. s,@sysconfdir@,$sysconfdir,;t t
  24862. s,@sharedstatedir@,$sharedstatedir,;t t
  24863. s,@localstatedir@,$localstatedir,;t t
  24864. s,@libdir@,$libdir,;t t
  24865. s,@includedir@,$includedir,;t t
  24866. s,@oldincludedir@,$oldincludedir,;t t
  24867. s,@infodir@,$infodir,;t t
  24868. s,@mandir@,$mandir,;t t
  24869. s,@build_alias@,$build_alias,;t t
  24870. s,@host_alias@,$host_alias,;t t
  24871. s,@target_alias@,$target_alias,;t t
  24872. s,@DEFS@,$DEFS,;t t
  24873. s,@ECHO_C@,$ECHO_C,;t t
  24874. s,@ECHO_N@,$ECHO_N,;t t
  24875. s,@ECHO_T@,$ECHO_T,;t t
  24876. s,@LIBS@,$LIBS,;t t
  24877. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  24878. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  24879. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  24880. s,@CYGPATH_W@,$CYGPATH_W,;t t
  24881. s,@PACKAGE@,$PACKAGE,;t t
  24882. s,@VERSION@,$VERSION,;t t
  24883. s,@ACLOCAL@,$ACLOCAL,;t t
  24884. s,@AUTOCONF@,$AUTOCONF,;t t
  24885. s,@AUTOMAKE@,$AUTOMAKE,;t t
  24886. s,@AUTOHEADER@,$AUTOHEADER,;t t
  24887. s,@MAKEINFO@,$MAKEINFO,;t t
  24888. s,@install_sh@,$install_sh,;t t
  24889. s,@STRIP@,$STRIP,;t t
  24890. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  24891. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  24892. s,@mkdir_p@,$mkdir_p,;t t
  24893. s,@AWK@,$AWK,;t t
  24894. s,@SET_MAKE@,$SET_MAKE,;t t
  24895. s,@am__leading_dot@,$am__leading_dot,;t t
  24896. s,@AMTAR@,$AMTAR,;t t
  24897. s,@am__tar@,$am__tar,;t t
  24898. s,@am__untar@,$am__untar,;t t
  24899. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  24900. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  24901. s,@MAINT@,$MAINT,;t t
  24902. s,@build@,$build,;t t
  24903. s,@build_cpu@,$build_cpu,;t t
  24904. s,@build_vendor@,$build_vendor,;t t
  24905. s,@build_os@,$build_os,;t t
  24906. s,@host@,$host,;t t
  24907. s,@host_cpu@,$host_cpu,;t t
  24908. s,@host_vendor@,$host_vendor,;t t
  24909. s,@host_os@,$host_os,;t t
  24910. s,@CXX@,$CXX,;t t
  24911. s,@CXXFLAGS@,$CXXFLAGS,;t t
  24912. s,@LDFLAGS@,$LDFLAGS,;t t
  24913. s,@CPPFLAGS@,$CPPFLAGS,;t t
  24914. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  24915. s,@EXEEXT@,$EXEEXT,;t t
  24916. s,@OBJEXT@,$OBJEXT,;t t
  24917. s,@DEPDIR@,$DEPDIR,;t t
  24918. s,@am__include@,$am__include,;t t
  24919. s,@am__quote@,$am__quote,;t t
  24920. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  24921. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  24922. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  24923. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  24924. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  24925. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  24926. s,@CC@,$CC,;t t
  24927. s,@CFLAGS@,$CFLAGS,;t t
  24928. s,@ac_ct_CC@,$ac_ct_CC,;t t
  24929. s,@CCDEPMODE@,$CCDEPMODE,;t t
  24930. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  24931. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  24932. s,@CCAS@,$CCAS,;t t
  24933. s,@CCASFLAGS@,$CCASFLAGS,;t t
  24934. s,@SED@,$SED,;t t
  24935. s,@EGREP@,$EGREP,;t t
  24936. s,@LN_S@,$LN_S,;t t
  24937. s,@ECHO@,$ECHO,;t t
  24938. s,@AR@,$AR,;t t
  24939. s,@ac_ct_AR@,$ac_ct_AR,;t t
  24940. s,@RANLIB@,$RANLIB,;t t
  24941. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  24942. s,@CPP@,$CPP,;t t
  24943. s,@CXXCPP@,$CXXCPP,;t t
  24944. s,@F77@,$F77,;t t
  24945. s,@FFLAGS@,$FFLAGS,;t t
  24946. s,@ac_ct_F77@,$ac_ct_F77,;t t
  24947. s,@LIBTOOL@,$LIBTOOL,;t t
  24948. s,@LIBOBJS@,$LIBOBJS,;t t
  24949. s,@debug_defs@,$debug_defs,;t t
  24950. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  24951. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  24952. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  24953. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  24954. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  24955. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  24956. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  24957. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  24958. s,@enable_autobind_TRUE@,$enable_autobind_TRUE,;t t
  24959. s,@enable_autobind_FALSE@,$enable_autobind_FALSE,;t t
  24960. s,@enable_auto_dn_suffix_TRUE@,$enable_auto_dn_suffix_TRUE,;t t
  24961. s,@enable_auto_dn_suffix_FALSE@,$enable_auto_dn_suffix_FALSE,;t t
  24962. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  24963. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  24964. s,@enable_presence_TRUE@,$enable_presence_TRUE,;t t
  24965. s,@enable_presence_FALSE@,$enable_presence_FALSE,;t t
  24966. s,@with_fhs_opt@,$with_fhs_opt,;t t
  24967. s,@configdir@,$configdir,;t t
  24968. s,@sampledatadir@,$sampledatadir,;t t
  24969. s,@propertydir@,$propertydir,;t t
  24970. s,@schemadir@,$schemadir,;t t
  24971. s,@serverdir@,$serverdir,;t t
  24972. s,@serverplugindir@,$serverplugindir,;t t
  24973. s,@scripttemplatedir@,$scripttemplatedir,;t t
  24974. s,@perldir@,$perldir,;t t
  24975. s,@infdir@,$infdir,;t t
  24976. s,@mibdir@,$mibdir,;t t
  24977. s,@updatedir@,$updatedir,;t t
  24978. s,@defaultuser@,$defaultuser,;t t
  24979. s,@defaultgroup@,$defaultgroup,;t t
  24980. s,@instconfigdir@,$instconfigdir,;t t
  24981. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  24982. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  24983. s,@LIBSOCKET@,$LIBSOCKET,;t t
  24984. s,@LIBNSL@,$LIBNSL,;t t
  24985. s,@LIBDL@,$LIBDL,;t t
  24986. s,@LIBCSTD@,$LIBCSTD,;t t
  24987. s,@LIBCRUN@,$LIBCRUN,;t t
  24988. s,@initdir@,$initdir,;t t
  24989. s,@perlexec@,$perlexec,;t t
  24990. s,@initconfigdir@,$initconfigdir,;t t
  24991. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  24992. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  24993. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  24994. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  24995. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  24996. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  24997. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  24998. s,@KRB5_CONFIG_BIN@,$KRB5_CONFIG_BIN,;t t
  24999. s,@kerberos_inc@,$kerberos_inc,;t t
  25000. s,@kerberos_lib@,$kerberos_lib,;t t
  25001. s,@kerberos_libdir@,$kerberos_libdir,;t t
  25002. s,@with_selinux@,$with_selinux,;t t
  25003. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  25004. s,@SELINUX_TRUE@,$SELINUX_TRUE,;t t
  25005. s,@SELINUX_FALSE@,$SELINUX_FALSE,;t t
  25006. s,@OPENLDAP_TRUE@,$OPENLDAP_TRUE,;t t
  25007. s,@OPENLDAP_FALSE@,$OPENLDAP_FALSE,;t t
  25008. s,@nspr_inc@,$nspr_inc,;t t
  25009. s,@nspr_lib@,$nspr_lib,;t t
  25010. s,@nspr_libdir@,$nspr_libdir,;t t
  25011. s,@nss_inc@,$nss_inc,;t t
  25012. s,@nss_lib@,$nss_lib,;t t
  25013. s,@nss_libdir@,$nss_libdir,;t t
  25014. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  25015. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  25016. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  25017. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  25018. s,@openldap_inc@,$openldap_inc,;t t
  25019. s,@openldap_lib@,$openldap_lib,;t t
  25020. s,@openldap_libdir@,$openldap_libdir,;t t
  25021. s,@openldap_bindir@,$openldap_bindir,;t t
  25022. s,@ol_libver@,$ol_libver,;t t
  25023. s,@db_inc@,$db_inc,;t t
  25024. s,@db_incdir@,$db_incdir,;t t
  25025. s,@db_lib@,$db_lib,;t t
  25026. s,@db_libdir@,$db_libdir,;t t
  25027. s,@db_bindir@,$db_bindir,;t t
  25028. s,@db_libver@,$db_libver,;t t
  25029. s,@sasl_inc@,$sasl_inc,;t t
  25030. s,@sasl_lib@,$sasl_lib,;t t
  25031. s,@sasl_libdir@,$sasl_libdir,;t t
  25032. s,@sasl_path@,$sasl_path,;t t
  25033. s,@svrcore_inc@,$svrcore_inc,;t t
  25034. s,@svrcore_lib@,$svrcore_lib,;t t
  25035. s,@icu_lib@,$icu_lib,;t t
  25036. s,@icu_inc@,$icu_inc,;t t
  25037. s,@icu_bin@,$icu_bin,;t t
  25038. s,@netsnmp_inc@,$netsnmp_inc,;t t
  25039. s,@netsnmp_lib@,$netsnmp_lib,;t t
  25040. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  25041. s,@netsnmp_link@,$netsnmp_link,;t t
  25042. s,@pcre_inc@,$pcre_inc,;t t
  25043. s,@pcre_lib@,$pcre_lib,;t t
  25044. s,@pcre_libdir@,$pcre_libdir,;t t
  25045. s,@brand@,$brand,;t t
  25046. s,@capbrand@,$capbrand,;t t
  25047. s,@vendor@,$vendor,;t t
  25048. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  25049. CEOF
  25050. _ACEOF
  25051. cat >>$CONFIG_STATUS <<\_ACEOF
  25052. # Split the substitutions into bite-sized pieces for seds with
  25053. # small command number limits, like on Digital OSF/1 and HP-UX.
  25054. ac_max_sed_lines=48
  25055. ac_sed_frag=1 # Number of current file.
  25056. ac_beg=1 # First line for current file.
  25057. ac_end=$ac_max_sed_lines # Line after last line for current file.
  25058. ac_more_lines=:
  25059. ac_sed_cmds=
  25060. while $ac_more_lines; do
  25061. if test $ac_beg -gt 1; then
  25062. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25063. else
  25064. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  25065. fi
  25066. if test ! -s $tmp/subs.frag; then
  25067. ac_more_lines=false
  25068. else
  25069. # The purpose of the label and of the branching condition is to
  25070. # speed up the sed processing (if there are no `@' at all, there
  25071. # is no need to browse any of the substitutions).
  25072. # These are the two extra sed commands mentioned above.
  25073. (echo ':t
  25074. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  25075. if test -z "$ac_sed_cmds"; then
  25076. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  25077. else
  25078. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  25079. fi
  25080. ac_sed_frag=`expr $ac_sed_frag + 1`
  25081. ac_beg=$ac_end
  25082. ac_end=`expr $ac_end + $ac_max_sed_lines`
  25083. fi
  25084. done
  25085. if test -z "$ac_sed_cmds"; then
  25086. ac_sed_cmds=cat
  25087. fi
  25088. fi # test -n "$CONFIG_FILES"
  25089. _ACEOF
  25090. cat >>$CONFIG_STATUS <<\_ACEOF
  25091. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  25092. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25093. case $ac_file in
  25094. - | *:- | *:-:* ) # input from stdin
  25095. cat >$tmp/stdin
  25096. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25097. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25098. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25099. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25100. * ) ac_file_in=$ac_file.in ;;
  25101. esac
  25102. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  25103. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25104. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25105. X"$ac_file" : 'X\(//\)[^/]' \| \
  25106. X"$ac_file" : 'X\(//\)$' \| \
  25107. X"$ac_file" : 'X\(/\)' \| \
  25108. . : '\(.\)' 2>/dev/null ||
  25109. echo X"$ac_file" |
  25110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25111. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25112. /^X\(\/\/\)$/{ s//\1/; q; }
  25113. /^X\(\/\).*/{ s//\1/; q; }
  25114. s/.*/./; q'`
  25115. { if $as_mkdir_p; then
  25116. mkdir -p "$ac_dir"
  25117. else
  25118. as_dir="$ac_dir"
  25119. as_dirs=
  25120. while test ! -d "$as_dir"; do
  25121. as_dirs="$as_dir $as_dirs"
  25122. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25123. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25124. X"$as_dir" : 'X\(//\)[^/]' \| \
  25125. X"$as_dir" : 'X\(//\)$' \| \
  25126. X"$as_dir" : 'X\(/\)' \| \
  25127. . : '\(.\)' 2>/dev/null ||
  25128. echo X"$as_dir" |
  25129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25130. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25131. /^X\(\/\/\)$/{ s//\1/; q; }
  25132. /^X\(\/\).*/{ s//\1/; q; }
  25133. s/.*/./; q'`
  25134. done
  25135. test ! -n "$as_dirs" || mkdir $as_dirs
  25136. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25137. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25138. { (exit 1); exit 1; }; }; }
  25139. ac_builddir=.
  25140. if test "$ac_dir" != .; then
  25141. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25142. # A "../" for each directory in $ac_dir_suffix.
  25143. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25144. else
  25145. ac_dir_suffix= ac_top_builddir=
  25146. fi
  25147. case $srcdir in
  25148. .) # No --srcdir option. We are building in place.
  25149. ac_srcdir=.
  25150. if test -z "$ac_top_builddir"; then
  25151. ac_top_srcdir=.
  25152. else
  25153. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25154. fi ;;
  25155. [\\/]* | ?:[\\/]* ) # Absolute path.
  25156. ac_srcdir=$srcdir$ac_dir_suffix;
  25157. ac_top_srcdir=$srcdir ;;
  25158. *) # Relative path.
  25159. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25160. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25161. esac
  25162. # Do not use `cd foo && pwd` to compute absolute paths, because
  25163. # the directories may not exist.
  25164. case `pwd` in
  25165. .) ac_abs_builddir="$ac_dir";;
  25166. *)
  25167. case "$ac_dir" in
  25168. .) ac_abs_builddir=`pwd`;;
  25169. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25170. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25171. esac;;
  25172. esac
  25173. case $ac_abs_builddir in
  25174. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25175. *)
  25176. case ${ac_top_builddir}. in
  25177. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25178. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25179. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25180. esac;;
  25181. esac
  25182. case $ac_abs_builddir in
  25183. .) ac_abs_srcdir=$ac_srcdir;;
  25184. *)
  25185. case $ac_srcdir in
  25186. .) ac_abs_srcdir=$ac_abs_builddir;;
  25187. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25188. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25189. esac;;
  25190. esac
  25191. case $ac_abs_builddir in
  25192. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25193. *)
  25194. case $ac_top_srcdir in
  25195. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25196. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25197. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25198. esac;;
  25199. esac
  25200. case $INSTALL in
  25201. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25202. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  25203. esac
  25204. if test x"$ac_file" != x-; then
  25205. { echo "$as_me:$LINENO: creating $ac_file" >&5
  25206. echo "$as_me: creating $ac_file" >&6;}
  25207. rm -f "$ac_file"
  25208. fi
  25209. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25210. # use $as_me), people would be surprised to read:
  25211. # /* config.h. Generated by config.status. */
  25212. if test x"$ac_file" = x-; then
  25213. configure_input=
  25214. else
  25215. configure_input="$ac_file. "
  25216. fi
  25217. configure_input=$configure_input"Generated from `echo $ac_file_in |
  25218. sed 's,.*/,,'` by configure."
  25219. # First look for the input files in the build tree, otherwise in the
  25220. # src tree.
  25221. ac_file_inputs=`IFS=:
  25222. for f in $ac_file_in; do
  25223. case $f in
  25224. -) echo $tmp/stdin ;;
  25225. [\\/$]*)
  25226. # Absolute (can't be DOS-style, as IFS=:)
  25227. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25228. echo "$as_me: error: cannot find input file: $f" >&2;}
  25229. { (exit 1); exit 1; }; }
  25230. echo "$f";;
  25231. *) # Relative
  25232. if test -f "$f"; then
  25233. # Build tree
  25234. echo "$f"
  25235. elif test -f "$srcdir/$f"; then
  25236. # Source tree
  25237. echo "$srcdir/$f"
  25238. else
  25239. # /dev/null tree
  25240. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25241. echo "$as_me: error: cannot find input file: $f" >&2;}
  25242. { (exit 1); exit 1; }; }
  25243. fi;;
  25244. esac
  25245. done` || { (exit 1); exit 1; }
  25246. _ACEOF
  25247. cat >>$CONFIG_STATUS <<_ACEOF
  25248. sed "$ac_vpsub
  25249. $extrasub
  25250. _ACEOF
  25251. cat >>$CONFIG_STATUS <<\_ACEOF
  25252. :t
  25253. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25254. s,@configure_input@,$configure_input,;t t
  25255. s,@srcdir@,$ac_srcdir,;t t
  25256. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  25257. s,@top_srcdir@,$ac_top_srcdir,;t t
  25258. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  25259. s,@builddir@,$ac_builddir,;t t
  25260. s,@abs_builddir@,$ac_abs_builddir,;t t
  25261. s,@top_builddir@,$ac_top_builddir,;t t
  25262. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  25263. s,@INSTALL@,$ac_INSTALL,;t t
  25264. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  25265. rm -f $tmp/stdin
  25266. if test x"$ac_file" != x-; then
  25267. mv $tmp/out $ac_file
  25268. else
  25269. cat $tmp/out
  25270. rm -f $tmp/out
  25271. fi
  25272. done
  25273. _ACEOF
  25274. cat >>$CONFIG_STATUS <<\_ACEOF
  25275. #
  25276. # CONFIG_HEADER section.
  25277. #
  25278. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  25279. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  25280. #
  25281. # ac_d sets the value in "#define NAME VALUE" lines.
  25282. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  25283. ac_dB='[ ].*$,\1#\2'
  25284. ac_dC=' '
  25285. ac_dD=',;t'
  25286. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  25287. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  25288. ac_uB='$,\1#\2define\3'
  25289. ac_uC=' '
  25290. ac_uD=',;t'
  25291. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  25292. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  25293. case $ac_file in
  25294. - | *:- | *:-:* ) # input from stdin
  25295. cat >$tmp/stdin
  25296. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25297. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25298. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25299. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  25300. * ) ac_file_in=$ac_file.in ;;
  25301. esac
  25302. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  25303. echo "$as_me: creating $ac_file" >&6;}
  25304. # First look for the input files in the build tree, otherwise in the
  25305. # src tree.
  25306. ac_file_inputs=`IFS=:
  25307. for f in $ac_file_in; do
  25308. case $f in
  25309. -) echo $tmp/stdin ;;
  25310. [\\/$]*)
  25311. # Absolute (can't be DOS-style, as IFS=:)
  25312. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25313. echo "$as_me: error: cannot find input file: $f" >&2;}
  25314. { (exit 1); exit 1; }; }
  25315. # Do quote $f, to prevent DOS paths from being IFS'd.
  25316. echo "$f";;
  25317. *) # Relative
  25318. if test -f "$f"; then
  25319. # Build tree
  25320. echo "$f"
  25321. elif test -f "$srcdir/$f"; then
  25322. # Source tree
  25323. echo "$srcdir/$f"
  25324. else
  25325. # /dev/null tree
  25326. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  25327. echo "$as_me: error: cannot find input file: $f" >&2;}
  25328. { (exit 1); exit 1; }; }
  25329. fi;;
  25330. esac
  25331. done` || { (exit 1); exit 1; }
  25332. # Remove the trailing spaces.
  25333. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  25334. _ACEOF
  25335. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  25336. # `conftest.undefs', that substitutes the proper values into
  25337. # config.h.in to produce config.h. The first handles `#define'
  25338. # templates, and the second `#undef' templates.
  25339. # And first: Protect against being on the right side of a sed subst in
  25340. # config.status. Protect against being in an unquoted here document
  25341. # in config.status.
  25342. rm -f conftest.defines conftest.undefs
  25343. # Using a here document instead of a string reduces the quoting nightmare.
  25344. # Putting comments in sed scripts is not portable.
  25345. #
  25346. # `end' is used to avoid that the second main sed command (meant for
  25347. # 0-ary CPP macros) applies to n-ary macro definitions.
  25348. # See the Autoconf documentation for `clear'.
  25349. cat >confdef2sed.sed <<\_ACEOF
  25350. s/[\\&,]/\\&/g
  25351. s,[\\$`],\\&,g
  25352. t clear
  25353. : clear
  25354. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  25355. t end
  25356. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  25357. : end
  25358. _ACEOF
  25359. # If some macros were called several times there might be several times
  25360. # the same #defines, which is useless. Nevertheless, we may not want to
  25361. # sort them, since we want the *last* AC-DEFINE to be honored.
  25362. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  25363. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  25364. rm -f confdef2sed.sed
  25365. # This sed command replaces #undef with comments. This is necessary, for
  25366. # example, in the case of _POSIX_SOURCE, which is predefined and required
  25367. # on some systems where configure will not decide to define it.
  25368. cat >>conftest.undefs <<\_ACEOF
  25369. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  25370. _ACEOF
  25371. # Break up conftest.defines because some shells have a limit on the size
  25372. # of here documents, and old seds have small limits too (100 cmds).
  25373. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  25374. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  25375. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  25376. echo ' :' >>$CONFIG_STATUS
  25377. rm -f conftest.tail
  25378. while grep . conftest.defines >/dev/null
  25379. do
  25380. # Write a limited-size here document to $tmp/defines.sed.
  25381. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  25382. # Speed up: don't consider the non `#define' lines.
  25383. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  25384. # Work around the forget-to-reset-the-flag bug.
  25385. echo 't clr' >>$CONFIG_STATUS
  25386. echo ': clr' >>$CONFIG_STATUS
  25387. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  25388. echo 'CEOF
  25389. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  25390. rm -f $tmp/in
  25391. mv $tmp/out $tmp/in
  25392. ' >>$CONFIG_STATUS
  25393. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  25394. rm -f conftest.defines
  25395. mv conftest.tail conftest.defines
  25396. done
  25397. rm -f conftest.defines
  25398. echo ' fi # grep' >>$CONFIG_STATUS
  25399. echo >>$CONFIG_STATUS
  25400. # Break up conftest.undefs because some shells have a limit on the size
  25401. # of here documents, and old seds have small limits too (100 cmds).
  25402. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  25403. rm -f conftest.tail
  25404. while grep . conftest.undefs >/dev/null
  25405. do
  25406. # Write a limited-size here document to $tmp/undefs.sed.
  25407. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  25408. # Speed up: don't consider the non `#undef'
  25409. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  25410. # Work around the forget-to-reset-the-flag bug.
  25411. echo 't clr' >>$CONFIG_STATUS
  25412. echo ': clr' >>$CONFIG_STATUS
  25413. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  25414. echo 'CEOF
  25415. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  25416. rm -f $tmp/in
  25417. mv $tmp/out $tmp/in
  25418. ' >>$CONFIG_STATUS
  25419. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  25420. rm -f conftest.undefs
  25421. mv conftest.tail conftest.undefs
  25422. done
  25423. rm -f conftest.undefs
  25424. cat >>$CONFIG_STATUS <<\_ACEOF
  25425. # Let's still pretend it is `configure' which instantiates (i.e., don't
  25426. # use $as_me), people would be surprised to read:
  25427. # /* config.h. Generated by config.status. */
  25428. if test x"$ac_file" = x-; then
  25429. echo "/* Generated by configure. */" >$tmp/config.h
  25430. else
  25431. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  25432. fi
  25433. cat $tmp/in >>$tmp/config.h
  25434. rm -f $tmp/in
  25435. if test x"$ac_file" != x-; then
  25436. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  25437. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  25438. echo "$as_me: $ac_file is unchanged" >&6;}
  25439. else
  25440. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  25441. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25442. X"$ac_file" : 'X\(//\)[^/]' \| \
  25443. X"$ac_file" : 'X\(//\)$' \| \
  25444. X"$ac_file" : 'X\(/\)' \| \
  25445. . : '\(.\)' 2>/dev/null ||
  25446. echo X"$ac_file" |
  25447. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25448. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25449. /^X\(\/\/\)$/{ s//\1/; q; }
  25450. /^X\(\/\).*/{ s//\1/; q; }
  25451. s/.*/./; q'`
  25452. { if $as_mkdir_p; then
  25453. mkdir -p "$ac_dir"
  25454. else
  25455. as_dir="$ac_dir"
  25456. as_dirs=
  25457. while test ! -d "$as_dir"; do
  25458. as_dirs="$as_dir $as_dirs"
  25459. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25460. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25461. X"$as_dir" : 'X\(//\)[^/]' \| \
  25462. X"$as_dir" : 'X\(//\)$' \| \
  25463. X"$as_dir" : 'X\(/\)' \| \
  25464. . : '\(.\)' 2>/dev/null ||
  25465. echo X"$as_dir" |
  25466. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25467. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25468. /^X\(\/\/\)$/{ s//\1/; q; }
  25469. /^X\(\/\).*/{ s//\1/; q; }
  25470. s/.*/./; q'`
  25471. done
  25472. test ! -n "$as_dirs" || mkdir $as_dirs
  25473. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25474. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25475. { (exit 1); exit 1; }; }; }
  25476. rm -f $ac_file
  25477. mv $tmp/config.h $ac_file
  25478. fi
  25479. else
  25480. cat $tmp/config.h
  25481. rm -f $tmp/config.h
  25482. fi
  25483. # Compute $ac_file's index in $config_headers.
  25484. _am_stamp_count=1
  25485. for _am_header in $config_headers :; do
  25486. case $_am_header in
  25487. $ac_file | $ac_file:* )
  25488. break ;;
  25489. * )
  25490. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  25491. esac
  25492. done
  25493. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  25494. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25495. X$ac_file : 'X\(//\)[^/]' \| \
  25496. X$ac_file : 'X\(//\)$' \| \
  25497. X$ac_file : 'X\(/\)' \| \
  25498. . : '\(.\)' 2>/dev/null ||
  25499. echo X$ac_file |
  25500. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25501. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25502. /^X\(\/\/\)$/{ s//\1/; q; }
  25503. /^X\(\/\).*/{ s//\1/; q; }
  25504. s/.*/./; q'`/stamp-h$_am_stamp_count
  25505. done
  25506. _ACEOF
  25507. cat >>$CONFIG_STATUS <<\_ACEOF
  25508. #
  25509. # CONFIG_COMMANDS section.
  25510. #
  25511. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  25512. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  25513. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  25514. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  25515. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25516. X"$ac_dest" : 'X\(//\)[^/]' \| \
  25517. X"$ac_dest" : 'X\(//\)$' \| \
  25518. X"$ac_dest" : 'X\(/\)' \| \
  25519. . : '\(.\)' 2>/dev/null ||
  25520. echo X"$ac_dest" |
  25521. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25522. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25523. /^X\(\/\/\)$/{ s//\1/; q; }
  25524. /^X\(\/\).*/{ s//\1/; q; }
  25525. s/.*/./; q'`
  25526. { if $as_mkdir_p; then
  25527. mkdir -p "$ac_dir"
  25528. else
  25529. as_dir="$ac_dir"
  25530. as_dirs=
  25531. while test ! -d "$as_dir"; do
  25532. as_dirs="$as_dir $as_dirs"
  25533. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25534. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25535. X"$as_dir" : 'X\(//\)[^/]' \| \
  25536. X"$as_dir" : 'X\(//\)$' \| \
  25537. X"$as_dir" : 'X\(/\)' \| \
  25538. . : '\(.\)' 2>/dev/null ||
  25539. echo X"$as_dir" |
  25540. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25541. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25542. /^X\(\/\/\)$/{ s//\1/; q; }
  25543. /^X\(\/\).*/{ s//\1/; q; }
  25544. s/.*/./; q'`
  25545. done
  25546. test ! -n "$as_dirs" || mkdir $as_dirs
  25547. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  25548. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  25549. { (exit 1); exit 1; }; }; }
  25550. ac_builddir=.
  25551. if test "$ac_dir" != .; then
  25552. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  25553. # A "../" for each directory in $ac_dir_suffix.
  25554. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  25555. else
  25556. ac_dir_suffix= ac_top_builddir=
  25557. fi
  25558. case $srcdir in
  25559. .) # No --srcdir option. We are building in place.
  25560. ac_srcdir=.
  25561. if test -z "$ac_top_builddir"; then
  25562. ac_top_srcdir=.
  25563. else
  25564. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  25565. fi ;;
  25566. [\\/]* | ?:[\\/]* ) # Absolute path.
  25567. ac_srcdir=$srcdir$ac_dir_suffix;
  25568. ac_top_srcdir=$srcdir ;;
  25569. *) # Relative path.
  25570. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  25571. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  25572. esac
  25573. # Do not use `cd foo && pwd` to compute absolute paths, because
  25574. # the directories may not exist.
  25575. case `pwd` in
  25576. .) ac_abs_builddir="$ac_dir";;
  25577. *)
  25578. case "$ac_dir" in
  25579. .) ac_abs_builddir=`pwd`;;
  25580. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  25581. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  25582. esac;;
  25583. esac
  25584. case $ac_abs_builddir in
  25585. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  25586. *)
  25587. case ${ac_top_builddir}. in
  25588. .) ac_abs_top_builddir=$ac_abs_builddir;;
  25589. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  25590. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  25591. esac;;
  25592. esac
  25593. case $ac_abs_builddir in
  25594. .) ac_abs_srcdir=$ac_srcdir;;
  25595. *)
  25596. case $ac_srcdir in
  25597. .) ac_abs_srcdir=$ac_abs_builddir;;
  25598. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  25599. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  25600. esac;;
  25601. esac
  25602. case $ac_abs_builddir in
  25603. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  25604. *)
  25605. case $ac_top_srcdir in
  25606. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  25607. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  25608. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  25609. esac;;
  25610. esac
  25611. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  25612. echo "$as_me: executing $ac_dest commands" >&6;}
  25613. case $ac_dest in
  25614. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  25615. # Strip MF so we end up with the name of the file.
  25616. mf=`echo "$mf" | sed -e 's/:.*$//'`
  25617. # Check whether this is an Automake generated Makefile or not.
  25618. # We used to match only the files named `Makefile.in', but
  25619. # some people rename them; so instead we look at the file content.
  25620. # Grep'ing the first line is not enough: some people post-process
  25621. # each Makefile.in and add a new line on top of each file to say so.
  25622. # So let's grep whole file.
  25623. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  25624. dirpart=`(dirname "$mf") 2>/dev/null ||
  25625. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25626. X"$mf" : 'X\(//\)[^/]' \| \
  25627. X"$mf" : 'X\(//\)$' \| \
  25628. X"$mf" : 'X\(/\)' \| \
  25629. . : '\(.\)' 2>/dev/null ||
  25630. echo X"$mf" |
  25631. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25632. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25633. /^X\(\/\/\)$/{ s//\1/; q; }
  25634. /^X\(\/\).*/{ s//\1/; q; }
  25635. s/.*/./; q'`
  25636. else
  25637. continue
  25638. fi
  25639. # Extract the definition of DEPDIR, am__include, and am__quote
  25640. # from the Makefile without running `make'.
  25641. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  25642. test -z "$DEPDIR" && continue
  25643. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  25644. test -z "am__include" && continue
  25645. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  25646. # When using ansi2knr, U may be empty or an underscore; expand it
  25647. U=`sed -n 's/^U = //p' < "$mf"`
  25648. # Find all dependency output files, they are included files with
  25649. # $(DEPDIR) in their names. We invoke sed twice because it is the
  25650. # simplest approach to changing $(DEPDIR) to its actual value in the
  25651. # expansion.
  25652. for file in `sed -n "
  25653. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  25654. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  25655. # Make sure the directory exists.
  25656. test -f "$dirpart/$file" && continue
  25657. fdir=`(dirname "$file") 2>/dev/null ||
  25658. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25659. X"$file" : 'X\(//\)[^/]' \| \
  25660. X"$file" : 'X\(//\)$' \| \
  25661. X"$file" : 'X\(/\)' \| \
  25662. . : '\(.\)' 2>/dev/null ||
  25663. echo X"$file" |
  25664. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25665. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25666. /^X\(\/\/\)$/{ s//\1/; q; }
  25667. /^X\(\/\).*/{ s//\1/; q; }
  25668. s/.*/./; q'`
  25669. { if $as_mkdir_p; then
  25670. mkdir -p $dirpart/$fdir
  25671. else
  25672. as_dir=$dirpart/$fdir
  25673. as_dirs=
  25674. while test ! -d "$as_dir"; do
  25675. as_dirs="$as_dir $as_dirs"
  25676. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  25677. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25678. X"$as_dir" : 'X\(//\)[^/]' \| \
  25679. X"$as_dir" : 'X\(//\)$' \| \
  25680. X"$as_dir" : 'X\(/\)' \| \
  25681. . : '\(.\)' 2>/dev/null ||
  25682. echo X"$as_dir" |
  25683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  25684. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  25685. /^X\(\/\/\)$/{ s//\1/; q; }
  25686. /^X\(\/\).*/{ s//\1/; q; }
  25687. s/.*/./; q'`
  25688. done
  25689. test ! -n "$as_dirs" || mkdir $as_dirs
  25690. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  25691. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  25692. { (exit 1); exit 1; }; }; }
  25693. # echo "creating $dirpart/$file"
  25694. echo '# dummy' > "$dirpart/$file"
  25695. done
  25696. done
  25697. ;;
  25698. esac
  25699. done
  25700. _ACEOF
  25701. cat >>$CONFIG_STATUS <<\_ACEOF
  25702. { (exit 0); exit 0; }
  25703. _ACEOF
  25704. chmod +x $CONFIG_STATUS
  25705. ac_clean_files=$ac_clean_files_save
  25706. # configure is writing to config.log, and then calls config.status.
  25707. # config.status does its own redirection, appending to config.log.
  25708. # Unfortunately, on DOS this fails, as config.log is still kept open
  25709. # by configure, so config.status won't be able to write to it; its
  25710. # output is simply discarded. So we exec the FD to /dev/null,
  25711. # effectively closing config.log, so it can be properly (re)opened and
  25712. # appended to by config.status. When coming back to configure, we
  25713. # need to make the FD available again.
  25714. if test "$no_create" != yes; then
  25715. ac_cs_success=:
  25716. ac_config_status_args=
  25717. test "$silent" = yes &&
  25718. ac_config_status_args="$ac_config_status_args --quiet"
  25719. exec 5>/dev/null
  25720. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  25721. exec 5>>config.log
  25722. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  25723. # would make configure fail if this is the last instruction.
  25724. $ac_cs_success || { (exit 1); exit 1; }
  25725. fi