configure 840 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dirsrv 1.1.0b1.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Check that we are running under the correct shell.
  217. SHELL=${CONFIG_SHELL-/bin/sh}
  218. case X$ECHO in
  219. X*--fallback-echo)
  220. # Remove one level of quotation (which was required for Make).
  221. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  222. ;;
  223. esac
  224. echo=${ECHO-echo}
  225. if test "X$1" = X--no-reexec; then
  226. # Discard the --no-reexec flag, and continue.
  227. shift
  228. elif test "X$1" = X--fallback-echo; then
  229. # Avoid inline document here, it may be left over
  230. :
  231. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  232. # Yippee, $echo works!
  233. :
  234. else
  235. # Restart under the correct shell.
  236. exec $SHELL "$0" --no-reexec ${1+"$@"}
  237. fi
  238. if test "X$1" = X--fallback-echo; then
  239. # used as fallback echo
  240. shift
  241. cat <<EOF
  242. $*
  243. EOF
  244. exit 0
  245. fi
  246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  247. # if CDPATH is set.
  248. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  249. if test -z "$ECHO"; then
  250. if test "X${echo_test_string+set}" != Xset; then
  251. # find a string as large as possible, as long as the shell can cope with it
  252. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  253. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  254. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  255. echo_test_string=`eval $cmd` &&
  256. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  257. then
  258. break
  259. fi
  260. done
  261. fi
  262. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  263. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  264. test "X$echo_testing_string" = "X$echo_test_string"; then
  265. :
  266. else
  267. # The Solaris, AIX, and Digital Unix default echo programs unquote
  268. # backslashes. This makes it impossible to quote backslashes using
  269. # echo "$something" | sed 's/\\/\\\\/g'
  270. #
  271. # So, first we look for a working echo in the user's PATH.
  272. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  273. for dir in $PATH /usr/ucb; do
  274. IFS="$lt_save_ifs"
  275. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  276. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  277. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  278. test "X$echo_testing_string" = "X$echo_test_string"; then
  279. echo="$dir/echo"
  280. break
  281. fi
  282. done
  283. IFS="$lt_save_ifs"
  284. if test "X$echo" = Xecho; then
  285. # We didn't find a better echo, so look for alternatives.
  286. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  287. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  288. test "X$echo_testing_string" = "X$echo_test_string"; then
  289. # This shell has a builtin print -r that does the trick.
  290. echo='print -r'
  291. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  292. test "X$CONFIG_SHELL" != X/bin/ksh; then
  293. # If we have ksh, try running configure again with it.
  294. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  295. export ORIGINAL_CONFIG_SHELL
  296. CONFIG_SHELL=/bin/ksh
  297. export CONFIG_SHELL
  298. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  299. else
  300. # Try using printf.
  301. echo='printf %s\n'
  302. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  303. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  304. test "X$echo_testing_string" = "X$echo_test_string"; then
  305. # Cool, printf works
  306. :
  307. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  308. test "X$echo_testing_string" = 'X\t' &&
  309. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  310. test "X$echo_testing_string" = "X$echo_test_string"; then
  311. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  312. export CONFIG_SHELL
  313. SHELL="$CONFIG_SHELL"
  314. export SHELL
  315. echo="$CONFIG_SHELL $0 --fallback-echo"
  316. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  317. test "X$echo_testing_string" = 'X\t' &&
  318. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  319. test "X$echo_testing_string" = "X$echo_test_string"; then
  320. echo="$CONFIG_SHELL $0 --fallback-echo"
  321. else
  322. # maybe with a smaller string...
  323. prev=:
  324. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  325. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  326. then
  327. break
  328. fi
  329. prev="$cmd"
  330. done
  331. if test "$prev" != 'sed 50q "$0"'; then
  332. echo_test_string=`eval $prev`
  333. export echo_test_string
  334. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  335. else
  336. # Oops. We lost completely, so just stick with echo.
  337. echo=echo
  338. fi
  339. fi
  340. fi
  341. fi
  342. fi
  343. fi
  344. # Copy echo and quote the copy suitably for passing to libtool from
  345. # the Makefile, instead of quoting the original, which is used later.
  346. ECHO=$echo
  347. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  348. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  349. fi
  350. tagnames=${tagnames+${tagnames},}CXX
  351. tagnames=${tagnames+${tagnames},}F77
  352. # Name of the host.
  353. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  354. # so uname gets run too.
  355. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  356. exec 6>&1
  357. #
  358. # Initializations.
  359. #
  360. ac_default_prefix=/usr/local
  361. ac_config_libobj_dir=.
  362. cross_compiling=no
  363. subdirs=
  364. MFLAGS=
  365. MAKEFLAGS=
  366. SHELL=${CONFIG_SHELL-/bin/sh}
  367. # Maximum number of lines to put in a shell here document.
  368. # This variable seems obsolete. It should probably be removed, and
  369. # only ac_max_sed_lines should be used.
  370. : ${ac_max_here_lines=38}
  371. # Identity of this package.
  372. PACKAGE_NAME='dirsrv'
  373. PACKAGE_TARNAME='dirsrv'
  374. PACKAGE_VERSION='1.1.0b1'
  375. PACKAGE_STRING='dirsrv 1.1.0b1'
  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 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_bitwise_TRUE enable_bitwise_FALSE with_fhs_opt configdir sampledatadir propertydir schemadir serverdir serverplugindir scripttemplatedir perldir infdir mibdir defaultuser defaultgroup instconfigdir WINNT_TRUE WINNT_FALSE LIBSOCKET LIBNSL LIBDL LIBCSTD LIBCRUN initdir perlexec initconfigdir HPUX_TRUE HPUX_FALSE SOLARIS_TRUE SOLARIS_FALSE PKG_CONFIG ICU_CONFIG NETSNMP_CONFIG PACKAGE_BASE_VERSION nspr_inc nspr_lib nspr_libdir nss_inc nss_lib nss_libdir ldapsdk_inc ldapsdk_lib ldapsdk_libdir ldapsdk_bindir db_inc db_incdir db_lib db_libdir db_bindir db_libver sasl_inc sasl_lib sasl_libdir sasl_path svrcore_inc svrcore_lib icu_lib icu_inc icu_bin netsnmp_inc netsnmp_lib netsnmp_libdir netsnmp_link brand capbrand vendor LTLIBOBJS'
  415. ac_subst_files=''
  416. # Initialize some variables set by options.
  417. ac_init_help=
  418. ac_init_version=false
  419. # The variables have the same names as the options, with
  420. # dashes changed to underlines.
  421. cache_file=/dev/null
  422. exec_prefix=NONE
  423. no_create=
  424. no_recursion=
  425. prefix=NONE
  426. program_prefix=NONE
  427. program_suffix=NONE
  428. program_transform_name=s,x,x,
  429. silent=
  430. site=
  431. srcdir=
  432. verbose=
  433. x_includes=NONE
  434. x_libraries=NONE
  435. # Installation directory options.
  436. # These are left unexpanded so users can "make install exec_prefix=/foo"
  437. # and all the variables that are supposed to be based on exec_prefix
  438. # by default will actually change.
  439. # Use braces instead of parens because sh, perl, etc. also accept them.
  440. bindir='${exec_prefix}/bin'
  441. sbindir='${exec_prefix}/sbin'
  442. libexecdir='${exec_prefix}/libexec'
  443. datadir='${prefix}/share'
  444. sysconfdir='${prefix}/etc'
  445. sharedstatedir='${prefix}/com'
  446. localstatedir='${prefix}/var'
  447. libdir='${exec_prefix}/lib'
  448. includedir='${prefix}/include'
  449. oldincludedir='/usr/include'
  450. infodir='${prefix}/info'
  451. mandir='${prefix}/man'
  452. ac_prev=
  453. for ac_option
  454. do
  455. # If the previous option needs an argument, assign it.
  456. if test -n "$ac_prev"; then
  457. eval "$ac_prev=\$ac_option"
  458. ac_prev=
  459. continue
  460. fi
  461. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  462. # Accept the important Cygnus configure options, so we can diagnose typos.
  463. case $ac_option in
  464. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  465. ac_prev=bindir ;;
  466. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  467. bindir=$ac_optarg ;;
  468. -build | --build | --buil | --bui | --bu)
  469. ac_prev=build_alias ;;
  470. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  471. build_alias=$ac_optarg ;;
  472. -cache-file | --cache-file | --cache-fil | --cache-fi \
  473. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  474. ac_prev=cache_file ;;
  475. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  476. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  477. cache_file=$ac_optarg ;;
  478. --config-cache | -C)
  479. cache_file=config.cache ;;
  480. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  481. ac_prev=datadir ;;
  482. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  483. | --da=*)
  484. datadir=$ac_optarg ;;
  485. -disable-* | --disable-*)
  486. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  492. eval "enable_$ac_feature=no" ;;
  493. -enable-* | --enable-*)
  494. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  495. # Reject names that are not valid shell variable names.
  496. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  497. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  498. { (exit 1); exit 1; }; }
  499. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  500. case $ac_option in
  501. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  502. *) ac_optarg=yes ;;
  503. esac
  504. eval "enable_$ac_feature='$ac_optarg'" ;;
  505. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  506. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  507. | --exec | --exe | --ex)
  508. ac_prev=exec_prefix ;;
  509. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  510. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  511. | --exec=* | --exe=* | --ex=*)
  512. exec_prefix=$ac_optarg ;;
  513. -gas | --gas | --ga | --g)
  514. # Obsolete; use --with-gas.
  515. with_gas=yes ;;
  516. -help | --help | --hel | --he | -h)
  517. ac_init_help=long ;;
  518. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  519. ac_init_help=recursive ;;
  520. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  521. ac_init_help=short ;;
  522. -host | --host | --hos | --ho)
  523. ac_prev=host_alias ;;
  524. -host=* | --host=* | --hos=* | --ho=*)
  525. host_alias=$ac_optarg ;;
  526. -includedir | --includedir | --includedi | --included | --include \
  527. | --includ | --inclu | --incl | --inc)
  528. ac_prev=includedir ;;
  529. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  530. | --includ=* | --inclu=* | --incl=* | --inc=*)
  531. includedir=$ac_optarg ;;
  532. -infodir | --infodir | --infodi | --infod | --info | --inf)
  533. ac_prev=infodir ;;
  534. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  535. infodir=$ac_optarg ;;
  536. -libdir | --libdir | --libdi | --libd)
  537. ac_prev=libdir ;;
  538. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  539. libdir=$ac_optarg ;;
  540. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  541. | --libexe | --libex | --libe)
  542. ac_prev=libexecdir ;;
  543. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  544. | --libexe=* | --libex=* | --libe=*)
  545. libexecdir=$ac_optarg ;;
  546. -localstatedir | --localstatedir | --localstatedi | --localstated \
  547. | --localstate | --localstat | --localsta | --localst \
  548. | --locals | --local | --loca | --loc | --lo)
  549. ac_prev=localstatedir ;;
  550. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  551. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  552. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  553. localstatedir=$ac_optarg ;;
  554. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  555. ac_prev=mandir ;;
  556. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  557. mandir=$ac_optarg ;;
  558. -nfp | --nfp | --nf)
  559. # Obsolete; use --without-fp.
  560. with_fp=no ;;
  561. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  562. | --no-cr | --no-c | -n)
  563. no_create=yes ;;
  564. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  565. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  566. no_recursion=yes ;;
  567. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  568. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  569. | --oldin | --oldi | --old | --ol | --o)
  570. ac_prev=oldincludedir ;;
  571. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  572. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  573. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  574. oldincludedir=$ac_optarg ;;
  575. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  576. ac_prev=prefix ;;
  577. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  578. prefix=$ac_optarg ;;
  579. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  580. | --program-pre | --program-pr | --program-p)
  581. ac_prev=program_prefix ;;
  582. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  583. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  584. program_prefix=$ac_optarg ;;
  585. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  586. | --program-suf | --program-su | --program-s)
  587. ac_prev=program_suffix ;;
  588. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  589. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  590. program_suffix=$ac_optarg ;;
  591. -program-transform-name | --program-transform-name \
  592. | --program-transform-nam | --program-transform-na \
  593. | --program-transform-n | --program-transform- \
  594. | --program-transform | --program-transfor \
  595. | --program-transfo | --program-transf \
  596. | --program-trans | --program-tran \
  597. | --progr-tra | --program-tr | --program-t)
  598. ac_prev=program_transform_name ;;
  599. -program-transform-name=* | --program-transform-name=* \
  600. | --program-transform-nam=* | --program-transform-na=* \
  601. | --program-transform-n=* | --program-transform-=* \
  602. | --program-transform=* | --program-transfor=* \
  603. | --program-transfo=* | --program-transf=* \
  604. | --program-trans=* | --program-tran=* \
  605. | --progr-tra=* | --program-tr=* | --program-t=*)
  606. program_transform_name=$ac_optarg ;;
  607. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  608. | -silent | --silent | --silen | --sile | --sil)
  609. silent=yes ;;
  610. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  611. ac_prev=sbindir ;;
  612. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  613. | --sbi=* | --sb=*)
  614. sbindir=$ac_optarg ;;
  615. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  616. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  617. | --sharedst | --shareds | --shared | --share | --shar \
  618. | --sha | --sh)
  619. ac_prev=sharedstatedir ;;
  620. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  621. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  622. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  623. | --sha=* | --sh=*)
  624. sharedstatedir=$ac_optarg ;;
  625. -site | --site | --sit)
  626. ac_prev=site ;;
  627. -site=* | --site=* | --sit=*)
  628. site=$ac_optarg ;;
  629. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  630. ac_prev=srcdir ;;
  631. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  632. srcdir=$ac_optarg ;;
  633. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  634. | --syscon | --sysco | --sysc | --sys | --sy)
  635. ac_prev=sysconfdir ;;
  636. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  637. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  638. sysconfdir=$ac_optarg ;;
  639. -target | --target | --targe | --targ | --tar | --ta | --t)
  640. ac_prev=target_alias ;;
  641. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  642. target_alias=$ac_optarg ;;
  643. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  644. verbose=yes ;;
  645. -version | --version | --versio | --versi | --vers | -V)
  646. ac_init_version=: ;;
  647. -with-* | --with-*)
  648. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  649. # Reject names that are not valid shell variable names.
  650. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  651. { echo "$as_me: error: invalid package name: $ac_package" >&2
  652. { (exit 1); exit 1; }; }
  653. ac_package=`echo $ac_package| sed 's/-/_/g'`
  654. case $ac_option in
  655. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  656. *) ac_optarg=yes ;;
  657. esac
  658. eval "with_$ac_package='$ac_optarg'" ;;
  659. -without-* | --without-*)
  660. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  661. # Reject names that are not valid shell variable names.
  662. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  663. { echo "$as_me: error: invalid package name: $ac_package" >&2
  664. { (exit 1); exit 1; }; }
  665. ac_package=`echo $ac_package | sed 's/-/_/g'`
  666. eval "with_$ac_package=no" ;;
  667. --x)
  668. # Obsolete; use --with-x.
  669. with_x=yes ;;
  670. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  671. | --x-incl | --x-inc | --x-in | --x-i)
  672. ac_prev=x_includes ;;
  673. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  674. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  675. x_includes=$ac_optarg ;;
  676. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  677. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  678. ac_prev=x_libraries ;;
  679. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  680. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  681. x_libraries=$ac_optarg ;;
  682. -*) { echo "$as_me: error: unrecognized option: $ac_option
  683. Try \`$0 --help' for more information." >&2
  684. { (exit 1); exit 1; }; }
  685. ;;
  686. *=*)
  687. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  688. # Reject names that are not valid shell variable names.
  689. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  690. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  691. { (exit 1); exit 1; }; }
  692. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  693. eval "$ac_envvar='$ac_optarg'"
  694. export $ac_envvar ;;
  695. *)
  696. # FIXME: should be removed in autoconf 3.0.
  697. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  698. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  699. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  700. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  701. ;;
  702. esac
  703. done
  704. if test -n "$ac_prev"; then
  705. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  706. { echo "$as_me: error: missing argument to $ac_option" >&2
  707. { (exit 1); exit 1; }; }
  708. fi
  709. # Be sure to have absolute paths.
  710. for ac_var in exec_prefix prefix
  711. do
  712. eval ac_val=$`echo $ac_var`
  713. case $ac_val in
  714. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  715. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  716. { (exit 1); exit 1; }; };;
  717. esac
  718. done
  719. # Be sure to have absolute paths.
  720. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  721. localstatedir libdir includedir oldincludedir infodir mandir
  722. do
  723. eval ac_val=$`echo $ac_var`
  724. case $ac_val in
  725. [\\/$]* | ?:[\\/]* ) ;;
  726. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  727. { (exit 1); exit 1; }; };;
  728. esac
  729. done
  730. # There might be people who depend on the old broken behavior: `$host'
  731. # used to hold the argument of --host etc.
  732. # FIXME: To remove some day.
  733. build=$build_alias
  734. host=$host_alias
  735. target=$target_alias
  736. # FIXME: To remove some day.
  737. if test "x$host_alias" != x; then
  738. if test "x$build_alias" = x; then
  739. cross_compiling=maybe
  740. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  741. If a cross compiler is detected then cross compile mode will be used." >&2
  742. elif test "x$build_alias" != "x$host_alias"; then
  743. cross_compiling=yes
  744. fi
  745. fi
  746. ac_tool_prefix=
  747. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  748. test "$silent" = yes && exec 6>/dev/null
  749. # Find the source files, if location was not specified.
  750. if test -z "$srcdir"; then
  751. ac_srcdir_defaulted=yes
  752. # Try the directory containing this script, then its parent.
  753. ac_confdir=`(dirname "$0") 2>/dev/null ||
  754. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  755. X"$0" : 'X\(//\)[^/]' \| \
  756. X"$0" : 'X\(//\)$' \| \
  757. X"$0" : 'X\(/\)' \| \
  758. . : '\(.\)' 2>/dev/null ||
  759. echo X"$0" |
  760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  761. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  762. /^X\(\/\/\)$/{ s//\1/; q; }
  763. /^X\(\/\).*/{ s//\1/; q; }
  764. s/.*/./; q'`
  765. srcdir=$ac_confdir
  766. if test ! -r $srcdir/$ac_unique_file; then
  767. srcdir=..
  768. fi
  769. else
  770. ac_srcdir_defaulted=no
  771. fi
  772. if test ! -r $srcdir/$ac_unique_file; then
  773. if test "$ac_srcdir_defaulted" = yes; then
  774. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  775. { (exit 1); exit 1; }; }
  776. else
  777. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  778. { (exit 1); exit 1; }; }
  779. fi
  780. fi
  781. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  782. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  783. { (exit 1); exit 1; }; }
  784. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  785. ac_env_build_alias_set=${build_alias+set}
  786. ac_env_build_alias_value=$build_alias
  787. ac_cv_env_build_alias_set=${build_alias+set}
  788. ac_cv_env_build_alias_value=$build_alias
  789. ac_env_host_alias_set=${host_alias+set}
  790. ac_env_host_alias_value=$host_alias
  791. ac_cv_env_host_alias_set=${host_alias+set}
  792. ac_cv_env_host_alias_value=$host_alias
  793. ac_env_target_alias_set=${target_alias+set}
  794. ac_env_target_alias_value=$target_alias
  795. ac_cv_env_target_alias_set=${target_alias+set}
  796. ac_cv_env_target_alias_value=$target_alias
  797. ac_env_CXX_set=${CXX+set}
  798. ac_env_CXX_value=$CXX
  799. ac_cv_env_CXX_set=${CXX+set}
  800. ac_cv_env_CXX_value=$CXX
  801. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  802. ac_env_CXXFLAGS_value=$CXXFLAGS
  803. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  804. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  805. ac_env_LDFLAGS_set=${LDFLAGS+set}
  806. ac_env_LDFLAGS_value=$LDFLAGS
  807. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  808. ac_cv_env_LDFLAGS_value=$LDFLAGS
  809. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  810. ac_env_CPPFLAGS_value=$CPPFLAGS
  811. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  812. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  813. ac_env_CC_set=${CC+set}
  814. ac_env_CC_value=$CC
  815. ac_cv_env_CC_set=${CC+set}
  816. ac_cv_env_CC_value=$CC
  817. ac_env_CFLAGS_set=${CFLAGS+set}
  818. ac_env_CFLAGS_value=$CFLAGS
  819. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  820. ac_cv_env_CFLAGS_value=$CFLAGS
  821. ac_env_CPP_set=${CPP+set}
  822. ac_env_CPP_value=$CPP
  823. ac_cv_env_CPP_set=${CPP+set}
  824. ac_cv_env_CPP_value=$CPP
  825. ac_env_CXXCPP_set=${CXXCPP+set}
  826. ac_env_CXXCPP_value=$CXXCPP
  827. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  828. ac_cv_env_CXXCPP_value=$CXXCPP
  829. ac_env_F77_set=${F77+set}
  830. ac_env_F77_value=$F77
  831. ac_cv_env_F77_set=${F77+set}
  832. ac_cv_env_F77_value=$F77
  833. ac_env_FFLAGS_set=${FFLAGS+set}
  834. ac_env_FFLAGS_value=$FFLAGS
  835. ac_cv_env_FFLAGS_set=${FFLAGS+set}
  836. ac_cv_env_FFLAGS_value=$FFLAGS
  837. #
  838. # Report the --help message.
  839. #
  840. if test "$ac_init_help" = "long"; then
  841. # Omit some internal or obsolete options to make the list less imposing.
  842. # This message is too long to be a string in the A/UX 3.1 sh.
  843. cat <<_ACEOF
  844. \`configure' configures dirsrv 1.1.0b1 to adapt to many kinds of systems.
  845. Usage: $0 [OPTION]... [VAR=VALUE]...
  846. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  847. VAR=VALUE. See below for descriptions of some of the useful variables.
  848. Defaults for the options are specified in brackets.
  849. Configuration:
  850. -h, --help display this help and exit
  851. --help=short display options specific to this package
  852. --help=recursive display the short help of all the included packages
  853. -V, --version display version information and exit
  854. -q, --quiet, --silent do not print \`checking...' messages
  855. --cache-file=FILE cache test results in FILE [disabled]
  856. -C, --config-cache alias for \`--cache-file=config.cache'
  857. -n, --no-create do not create output files
  858. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  859. _ACEOF
  860. cat <<_ACEOF
  861. Installation directories:
  862. --prefix=PREFIX install architecture-independent files in PREFIX
  863. [$ac_default_prefix]
  864. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  865. [PREFIX]
  866. By default, \`make install' will install all the files in
  867. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  868. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  869. for instance \`--prefix=\$HOME'.
  870. For better control, use the options below.
  871. Fine tuning of the installation directories:
  872. --bindir=DIR user executables [EPREFIX/bin]
  873. --sbindir=DIR system admin executables [EPREFIX/sbin]
  874. --libexecdir=DIR program executables [EPREFIX/libexec]
  875. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  876. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  877. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  878. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  879. --libdir=DIR object code libraries [EPREFIX/lib]
  880. --includedir=DIR C header files [PREFIX/include]
  881. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  882. --infodir=DIR info documentation [PREFIX/info]
  883. --mandir=DIR man documentation [PREFIX/man]
  884. _ACEOF
  885. cat <<\_ACEOF
  886. Program names:
  887. --program-prefix=PREFIX prepend PREFIX to installed program names
  888. --program-suffix=SUFFIX append SUFFIX to installed program names
  889. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  890. System types:
  891. --build=BUILD configure for building on BUILD [guessed]
  892. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  893. _ACEOF
  894. fi
  895. if test -n "$ac_init_help"; then
  896. case $ac_init_help in
  897. short | recursive ) echo "Configuration of dirsrv 1.1.0b1:";;
  898. esac
  899. cat <<\_ACEOF
  900. Optional Features:
  901. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  902. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  903. --enable-maintainer-mode enable make rules and dependencies not useful
  904. (and sometimes confusing) to the casual installer
  905. --disable-dependency-tracking speeds up one-time build
  906. --enable-dependency-tracking do not reject slow dependency extractors
  907. --enable-static[=PKGS]
  908. build static libraries [default=no]
  909. --enable-shared[=PKGS]
  910. build shared libraries [default=yes]
  911. --enable-fast-install[=PKGS]
  912. optimize for fast installation [default=yes]
  913. --disable-libtool-lock avoid locking (might break parallel builds)
  914. --enable-debug Enable debug features (default: no)
  915. --enable-bundle Enable bundled dependencies (default: no)
  916. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  917. yes)
  918. --enable-dna enable the Distributed Numeric Assignment (DNA)
  919. plugin (default: yes)
  920. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  921. (default: yes)
  922. --enable-bitwise enable the bitwise matching rule plugin (default:
  923. yes)
  924. Optional Packages:
  925. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  926. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  927. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  928. --with-pic try to use only PIC/non-PIC objects [default=use
  929. both]
  930. --with-tags[=TAGS]
  931. include additional configurations [automatic]
  932. --with-fhs Use FHS layout
  933. --with-fhs-opt Use FHS optional layout
  934. --with-instconfigdir=/path
  935. Base directory for instance specific writable
  936. configuration directories (default
  937. $sysconfdir/$PACKAGE_NAME)
  938. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  939. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  940. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  941. --with-nss=PATH Network Security Services (NSS) directory
  942. --with-nss-inc=PATH Network Security Services (NSS) include directory
  943. --with-nss-lib=PATH Network Security Services (NSS) library directory
  944. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  945. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  946. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  947. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  948. --with-db=PATH Berkeley DB directory
  949. --with-sasl=PATH Use sasl from supplied path
  950. --with-sasl-inc=PATH SASL include file directory
  951. --with-sasl-lib=PATH SASL library directory
  952. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  953. --with-svrcore-inc=PATH SVRCORE include file directory
  954. --with-svrcore-lib=PATH SVRCORE library directory
  955. --with-icu=PATH ICU directory
  956. --with-icu-inc=PATH ICU include directory
  957. --with-icu-lib=PATH ICU library directory
  958. --with-icu-bin=PATH ICU binary directory
  959. --with-netsnmp=PATH Net-SNMP directory
  960. --with-netsnmp-inc=PATH Net-SNMP include directory
  961. --with-netsnmp-lib=PATH Net-SNMP library directory
  962. Some influential environment variables:
  963. CXX C++ compiler command
  964. CXXFLAGS C++ compiler flags
  965. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  966. nonstandard directory <lib dir>
  967. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  968. headers in a nonstandard directory <include dir>
  969. CC C compiler command
  970. CFLAGS C compiler flags
  971. CPP C preprocessor
  972. CXXCPP C++ preprocessor
  973. F77 Fortran 77 compiler command
  974. FFLAGS Fortran 77 compiler flags
  975. Use these variables to override the choices made by `configure' or to help
  976. it to find libraries and programs with nonstandard names/locations.
  977. Report bugs to <http://bugzilla.redhat.com/>.
  978. _ACEOF
  979. fi
  980. if test "$ac_init_help" = "recursive"; then
  981. # If there are subdirs, report their specific --help.
  982. ac_popdir=`pwd`
  983. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  984. test -d $ac_dir || continue
  985. ac_builddir=.
  986. if test "$ac_dir" != .; then
  987. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  988. # A "../" for each directory in $ac_dir_suffix.
  989. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  990. else
  991. ac_dir_suffix= ac_top_builddir=
  992. fi
  993. case $srcdir in
  994. .) # No --srcdir option. We are building in place.
  995. ac_srcdir=.
  996. if test -z "$ac_top_builddir"; then
  997. ac_top_srcdir=.
  998. else
  999. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1000. fi ;;
  1001. [\\/]* | ?:[\\/]* ) # Absolute path.
  1002. ac_srcdir=$srcdir$ac_dir_suffix;
  1003. ac_top_srcdir=$srcdir ;;
  1004. *) # Relative path.
  1005. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1006. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1007. esac
  1008. # Do not use `cd foo && pwd` to compute absolute paths, because
  1009. # the directories may not exist.
  1010. case `pwd` in
  1011. .) ac_abs_builddir="$ac_dir";;
  1012. *)
  1013. case "$ac_dir" in
  1014. .) ac_abs_builddir=`pwd`;;
  1015. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1016. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1017. esac;;
  1018. esac
  1019. case $ac_abs_builddir in
  1020. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  1021. *)
  1022. case ${ac_top_builddir}. in
  1023. .) ac_abs_top_builddir=$ac_abs_builddir;;
  1024. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1025. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1026. esac;;
  1027. esac
  1028. case $ac_abs_builddir in
  1029. .) ac_abs_srcdir=$ac_srcdir;;
  1030. *)
  1031. case $ac_srcdir in
  1032. .) ac_abs_srcdir=$ac_abs_builddir;;
  1033. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1034. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1035. esac;;
  1036. esac
  1037. case $ac_abs_builddir in
  1038. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  1039. *)
  1040. case $ac_top_srcdir in
  1041. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1042. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1043. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1044. esac;;
  1045. esac
  1046. cd $ac_dir
  1047. # Check for guested configure; otherwise get Cygnus style configure.
  1048. if test -f $ac_srcdir/configure.gnu; then
  1049. echo
  1050. $SHELL $ac_srcdir/configure.gnu --help=recursive
  1051. elif test -f $ac_srcdir/configure; then
  1052. echo
  1053. $SHELL $ac_srcdir/configure --help=recursive
  1054. elif test -f $ac_srcdir/configure.ac ||
  1055. test -f $ac_srcdir/configure.in; then
  1056. echo
  1057. $ac_configure --help
  1058. else
  1059. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1060. fi
  1061. cd $ac_popdir
  1062. done
  1063. fi
  1064. test -n "$ac_init_help" && exit 0
  1065. if $ac_init_version; then
  1066. cat <<\_ACEOF
  1067. dirsrv configure 1.1.0b1
  1068. generated by GNU Autoconf 2.59
  1069. Copyright (C) 2003 Free Software Foundation, Inc.
  1070. This configure script is free software; the Free Software Foundation
  1071. gives unlimited permission to copy, distribute and modify it.
  1072. _ACEOF
  1073. exit 0
  1074. fi
  1075. exec 5>config.log
  1076. cat >&5 <<_ACEOF
  1077. This file contains any messages produced by compilers while
  1078. running configure, to aid debugging if configure makes a mistake.
  1079. It was created by dirsrv $as_me 1.1.0b1, which was
  1080. generated by GNU Autoconf 2.59. Invocation command line was
  1081. $ $0 $@
  1082. _ACEOF
  1083. {
  1084. cat <<_ASUNAME
  1085. ## --------- ##
  1086. ## Platform. ##
  1087. ## --------- ##
  1088. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1089. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1090. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1091. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1092. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1093. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1094. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1095. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1096. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1097. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1098. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1099. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1100. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1101. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1102. _ASUNAME
  1103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1104. for as_dir in $PATH
  1105. do
  1106. IFS=$as_save_IFS
  1107. test -z "$as_dir" && as_dir=.
  1108. echo "PATH: $as_dir"
  1109. done
  1110. } >&5
  1111. cat >&5 <<_ACEOF
  1112. ## ----------- ##
  1113. ## Core tests. ##
  1114. ## ----------- ##
  1115. _ACEOF
  1116. # Keep a trace of the command line.
  1117. # Strip out --no-create and --no-recursion so they do not pile up.
  1118. # Strip out --silent because we don't want to record it for future runs.
  1119. # Also quote any args containing shell meta-characters.
  1120. # Make two passes to allow for proper duplicate-argument suppression.
  1121. ac_configure_args=
  1122. ac_configure_args0=
  1123. ac_configure_args1=
  1124. ac_sep=
  1125. ac_must_keep_next=false
  1126. for ac_pass in 1 2
  1127. do
  1128. for ac_arg
  1129. do
  1130. case $ac_arg in
  1131. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1132. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1133. | -silent | --silent | --silen | --sile | --sil)
  1134. continue ;;
  1135. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1136. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1137. esac
  1138. case $ac_pass in
  1139. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1140. 2)
  1141. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1142. if test $ac_must_keep_next = true; then
  1143. ac_must_keep_next=false # Got value, back to normal.
  1144. else
  1145. case $ac_arg in
  1146. *=* | --config-cache | -C | -disable-* | --disable-* \
  1147. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1148. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1149. | -with-* | --with-* | -without-* | --without-* | --x)
  1150. case "$ac_configure_args0 " in
  1151. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1152. esac
  1153. ;;
  1154. -* ) ac_must_keep_next=true ;;
  1155. esac
  1156. fi
  1157. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1158. # Get rid of the leading space.
  1159. ac_sep=" "
  1160. ;;
  1161. esac
  1162. done
  1163. done
  1164. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1165. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1166. # When interrupted or exit'd, cleanup temporary files, and complete
  1167. # config.log. We remove comments because anyway the quotes in there
  1168. # would cause problems or look ugly.
  1169. # WARNING: Be sure not to use single quotes in there, as some shells,
  1170. # such as our DU 5.0 friend, will then `close' the trap.
  1171. trap 'exit_status=$?
  1172. # Save into config.log some information that might help in debugging.
  1173. {
  1174. echo
  1175. cat <<\_ASBOX
  1176. ## ---------------- ##
  1177. ## Cache variables. ##
  1178. ## ---------------- ##
  1179. _ASBOX
  1180. echo
  1181. # The following way of writing the cache mishandles newlines in values,
  1182. {
  1183. (set) 2>&1 |
  1184. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1185. *ac_space=\ *)
  1186. sed -n \
  1187. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1188. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1189. ;;
  1190. *)
  1191. sed -n \
  1192. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1193. ;;
  1194. esac;
  1195. }
  1196. echo
  1197. cat <<\_ASBOX
  1198. ## ----------------- ##
  1199. ## Output variables. ##
  1200. ## ----------------- ##
  1201. _ASBOX
  1202. echo
  1203. for ac_var in $ac_subst_vars
  1204. do
  1205. eval ac_val=$`echo $ac_var`
  1206. echo "$ac_var='"'"'$ac_val'"'"'"
  1207. done | sort
  1208. echo
  1209. if test -n "$ac_subst_files"; then
  1210. cat <<\_ASBOX
  1211. ## ------------- ##
  1212. ## Output files. ##
  1213. ## ------------- ##
  1214. _ASBOX
  1215. echo
  1216. for ac_var in $ac_subst_files
  1217. do
  1218. eval ac_val=$`echo $ac_var`
  1219. echo "$ac_var='"'"'$ac_val'"'"'"
  1220. done | sort
  1221. echo
  1222. fi
  1223. if test -s confdefs.h; then
  1224. cat <<\_ASBOX
  1225. ## ----------- ##
  1226. ## confdefs.h. ##
  1227. ## ----------- ##
  1228. _ASBOX
  1229. echo
  1230. sed "/^$/d" confdefs.h | sort
  1231. echo
  1232. fi
  1233. test "$ac_signal" != 0 &&
  1234. echo "$as_me: caught signal $ac_signal"
  1235. echo "$as_me: exit $exit_status"
  1236. } >&5
  1237. rm -f core *.core &&
  1238. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1239. exit $exit_status
  1240. ' 0
  1241. for ac_signal in 1 2 13 15; do
  1242. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1243. done
  1244. ac_signal=0
  1245. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1246. rm -rf conftest* confdefs.h
  1247. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1248. echo >confdefs.h
  1249. # Predefined preprocessor variables.
  1250. cat >>confdefs.h <<_ACEOF
  1251. #define PACKAGE_NAME "$PACKAGE_NAME"
  1252. _ACEOF
  1253. cat >>confdefs.h <<_ACEOF
  1254. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1255. _ACEOF
  1256. cat >>confdefs.h <<_ACEOF
  1257. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1258. _ACEOF
  1259. cat >>confdefs.h <<_ACEOF
  1260. #define PACKAGE_STRING "$PACKAGE_STRING"
  1261. _ACEOF
  1262. cat >>confdefs.h <<_ACEOF
  1263. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1264. _ACEOF
  1265. # Let the site file select an alternate cache file if it wants to.
  1266. # Prefer explicitly selected file to automatically selected ones.
  1267. if test -z "$CONFIG_SITE"; then
  1268. if test "x$prefix" != xNONE; then
  1269. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1270. else
  1271. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1272. fi
  1273. fi
  1274. for ac_site_file in $CONFIG_SITE; do
  1275. if test -r "$ac_site_file"; then
  1276. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1277. echo "$as_me: loading site script $ac_site_file" >&6;}
  1278. sed 's/^/| /' "$ac_site_file" >&5
  1279. . "$ac_site_file"
  1280. fi
  1281. done
  1282. if test -r "$cache_file"; then
  1283. # Some versions of bash will fail to source /dev/null (special
  1284. # files actually), so we avoid doing that.
  1285. if test -f "$cache_file"; then
  1286. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1287. echo "$as_me: loading cache $cache_file" >&6;}
  1288. case $cache_file in
  1289. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1290. *) . ./$cache_file;;
  1291. esac
  1292. fi
  1293. else
  1294. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1295. echo "$as_me: creating cache $cache_file" >&6;}
  1296. >$cache_file
  1297. fi
  1298. # Check that the precious variables saved in the cache have kept the same
  1299. # value.
  1300. ac_cache_corrupted=false
  1301. for ac_var in `(set) 2>&1 |
  1302. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1303. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1304. eval ac_new_set=\$ac_env_${ac_var}_set
  1305. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1306. eval ac_new_val="\$ac_env_${ac_var}_value"
  1307. case $ac_old_set,$ac_new_set in
  1308. set,)
  1309. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1310. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1311. ac_cache_corrupted=: ;;
  1312. ,set)
  1313. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1314. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1315. ac_cache_corrupted=: ;;
  1316. ,);;
  1317. *)
  1318. if test "x$ac_old_val" != "x$ac_new_val"; then
  1319. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1320. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1321. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1322. echo "$as_me: former value: $ac_old_val" >&2;}
  1323. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1324. echo "$as_me: current value: $ac_new_val" >&2;}
  1325. ac_cache_corrupted=:
  1326. fi;;
  1327. esac
  1328. # Pass precious variables to config.status.
  1329. if test "$ac_new_set" = set; then
  1330. case $ac_new_val in
  1331. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1332. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1333. *) ac_arg=$ac_var=$ac_new_val ;;
  1334. esac
  1335. case " $ac_configure_args " in
  1336. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1337. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1338. esac
  1339. fi
  1340. done
  1341. if $ac_cache_corrupted; then
  1342. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1343. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1344. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1345. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1346. { (exit 1); exit 1; }; }
  1347. fi
  1348. ac_ext=c
  1349. ac_cpp='$CPP $CPPFLAGS'
  1350. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1351. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1352. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1353. # AC_CONFIG_HEADER must be called right after AC_INIT.
  1354. ac_config_headers="$ac_config_headers config.h"
  1355. am__api_version="1.9"
  1356. ac_aux_dir=
  1357. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1358. if test -f $ac_dir/install-sh; then
  1359. ac_aux_dir=$ac_dir
  1360. ac_install_sh="$ac_aux_dir/install-sh -c"
  1361. break
  1362. elif test -f $ac_dir/install.sh; then
  1363. ac_aux_dir=$ac_dir
  1364. ac_install_sh="$ac_aux_dir/install.sh -c"
  1365. break
  1366. elif test -f $ac_dir/shtool; then
  1367. ac_aux_dir=$ac_dir
  1368. ac_install_sh="$ac_aux_dir/shtool install -c"
  1369. break
  1370. fi
  1371. done
  1372. if test -z "$ac_aux_dir"; then
  1373. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1374. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1375. { (exit 1); exit 1; }; }
  1376. fi
  1377. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1378. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1379. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1380. # Find a good install program. We prefer a C program (faster),
  1381. # so one script is as good as another. But avoid the broken or
  1382. # incompatible versions:
  1383. # SysV /etc/install, /usr/sbin/install
  1384. # SunOS /usr/etc/install
  1385. # IRIX /sbin/install
  1386. # AIX /bin/install
  1387. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1388. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1389. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1390. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1391. # OS/2's system install, which has a completely different semantic
  1392. # ./install, which can be erroneously created by make from ./install.sh.
  1393. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1394. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1395. if test -z "$INSTALL"; then
  1396. if test "${ac_cv_path_install+set}" = set; then
  1397. echo $ECHO_N "(cached) $ECHO_C" >&6
  1398. else
  1399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1400. for as_dir in $PATH
  1401. do
  1402. IFS=$as_save_IFS
  1403. test -z "$as_dir" && as_dir=.
  1404. # Account for people who put trailing slashes in PATH elements.
  1405. case $as_dir/ in
  1406. ./ | .// | /cC/* | \
  1407. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1408. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1409. /usr/ucb/* ) ;;
  1410. *)
  1411. # OSF1 and SCO ODT 3.0 have their own names for install.
  1412. # Don't use installbsd from OSF since it installs stuff as root
  1413. # by default.
  1414. for ac_prog in ginstall scoinst install; do
  1415. for ac_exec_ext in '' $ac_executable_extensions; do
  1416. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1417. if test $ac_prog = install &&
  1418. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1419. # AIX install. It has an incompatible calling convention.
  1420. :
  1421. elif test $ac_prog = install &&
  1422. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1423. # program-specific install script used by HP pwplus--don't use.
  1424. :
  1425. else
  1426. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1427. break 3
  1428. fi
  1429. fi
  1430. done
  1431. done
  1432. ;;
  1433. esac
  1434. done
  1435. fi
  1436. if test "${ac_cv_path_install+set}" = set; then
  1437. INSTALL=$ac_cv_path_install
  1438. else
  1439. # As a last resort, use the slow shell script. We don't cache a
  1440. # path for INSTALL within a source directory, because that will
  1441. # break other packages using the cache if that directory is
  1442. # removed, or if the path is relative.
  1443. INSTALL=$ac_install_sh
  1444. fi
  1445. fi
  1446. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1447. echo "${ECHO_T}$INSTALL" >&6
  1448. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1449. # It thinks the first close brace ends the variable substitution.
  1450. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1451. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1452. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1453. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1454. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1455. # Just in case
  1456. sleep 1
  1457. echo timestamp > conftest.file
  1458. # Do `set' in a subshell so we don't clobber the current shell's
  1459. # arguments. Must try -L first in case configure is actually a
  1460. # symlink; some systems play weird games with the mod time of symlinks
  1461. # (eg FreeBSD returns the mod time of the symlink's containing
  1462. # directory).
  1463. if (
  1464. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1465. if test "$*" = "X"; then
  1466. # -L didn't work.
  1467. set X `ls -t $srcdir/configure conftest.file`
  1468. fi
  1469. rm -f conftest.file
  1470. if test "$*" != "X $srcdir/configure conftest.file" \
  1471. && test "$*" != "X conftest.file $srcdir/configure"; then
  1472. # If neither matched, then we have a broken ls. This can happen
  1473. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1474. # broken ls alias from the environment. This has actually
  1475. # happened. Such a system could not be considered "sane".
  1476. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1477. alias in your environment" >&5
  1478. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1479. alias in your environment" >&2;}
  1480. { (exit 1); exit 1; }; }
  1481. fi
  1482. test "$2" = conftest.file
  1483. )
  1484. then
  1485. # Ok.
  1486. :
  1487. else
  1488. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1489. Check your system clock" >&5
  1490. echo "$as_me: error: newly created file is older than distributed files!
  1491. Check your system clock" >&2;}
  1492. { (exit 1); exit 1; }; }
  1493. fi
  1494. echo "$as_me:$LINENO: result: yes" >&5
  1495. echo "${ECHO_T}yes" >&6
  1496. test "$program_prefix" != NONE &&
  1497. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1498. # Use a double $ so make ignores it.
  1499. test "$program_suffix" != NONE &&
  1500. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1501. # Double any \ or $. echo might interpret backslashes.
  1502. # By default was `s,x,x', remove it if useless.
  1503. cat <<\_ACEOF >conftest.sed
  1504. s/[\\$]/&&/g;s/;s,x,x,$//
  1505. _ACEOF
  1506. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1507. rm conftest.sed
  1508. # expand $ac_aux_dir to an absolute path
  1509. am_aux_dir=`cd $ac_aux_dir && pwd`
  1510. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1511. # Use eval to expand $SHELL
  1512. if eval "$MISSING --run true"; then
  1513. am_missing_run="$MISSING --run "
  1514. else
  1515. am_missing_run=
  1516. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1517. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1518. fi
  1519. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1520. # We used to keeping the `.' as first argument, in order to
  1521. # allow $(mkdir_p) to be used without argument. As in
  1522. # $(mkdir_p) $(somedir)
  1523. # where $(somedir) is conditionally defined. However this is wrong
  1524. # for two reasons:
  1525. # 1. if the package is installed by a user who cannot write `.'
  1526. # make install will fail,
  1527. # 2. the above comment should most certainly read
  1528. # $(mkdir_p) $(DESTDIR)$(somedir)
  1529. # so it does not work when $(somedir) is undefined and
  1530. # $(DESTDIR) is not.
  1531. # To support the latter case, we have to write
  1532. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1533. # so the `.' trick is pointless.
  1534. mkdir_p='mkdir -p --'
  1535. else
  1536. # On NextStep and OpenStep, the `mkdir' command does not
  1537. # recognize any option. It will interpret all options as
  1538. # directories to create, and then abort because `.' already
  1539. # exists.
  1540. for d in ./-p ./--version;
  1541. do
  1542. test -d $d && rmdir $d
  1543. done
  1544. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1545. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1546. mkdir_p='$(mkinstalldirs)'
  1547. else
  1548. mkdir_p='$(install_sh) -d'
  1549. fi
  1550. fi
  1551. for ac_prog in gawk mawk nawk awk
  1552. do
  1553. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1554. set dummy $ac_prog; ac_word=$2
  1555. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1556. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1557. if test "${ac_cv_prog_AWK+set}" = set; then
  1558. echo $ECHO_N "(cached) $ECHO_C" >&6
  1559. else
  1560. if test -n "$AWK"; then
  1561. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1562. else
  1563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1564. for as_dir in $PATH
  1565. do
  1566. IFS=$as_save_IFS
  1567. test -z "$as_dir" && as_dir=.
  1568. for ac_exec_ext in '' $ac_executable_extensions; do
  1569. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1570. ac_cv_prog_AWK="$ac_prog"
  1571. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1572. break 2
  1573. fi
  1574. done
  1575. done
  1576. fi
  1577. fi
  1578. AWK=$ac_cv_prog_AWK
  1579. if test -n "$AWK"; then
  1580. echo "$as_me:$LINENO: result: $AWK" >&5
  1581. echo "${ECHO_T}$AWK" >&6
  1582. else
  1583. echo "$as_me:$LINENO: result: no" >&5
  1584. echo "${ECHO_T}no" >&6
  1585. fi
  1586. test -n "$AWK" && break
  1587. done
  1588. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1589. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1590. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1591. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1592. echo $ECHO_N "(cached) $ECHO_C" >&6
  1593. else
  1594. cat >conftest.make <<\_ACEOF
  1595. all:
  1596. @echo 'ac_maketemp="$(MAKE)"'
  1597. _ACEOF
  1598. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1599. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1600. if test -n "$ac_maketemp"; then
  1601. eval ac_cv_prog_make_${ac_make}_set=yes
  1602. else
  1603. eval ac_cv_prog_make_${ac_make}_set=no
  1604. fi
  1605. rm -f conftest.make
  1606. fi
  1607. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1608. echo "$as_me:$LINENO: result: yes" >&5
  1609. echo "${ECHO_T}yes" >&6
  1610. SET_MAKE=
  1611. else
  1612. echo "$as_me:$LINENO: result: no" >&5
  1613. echo "${ECHO_T}no" >&6
  1614. SET_MAKE="MAKE=${MAKE-make}"
  1615. fi
  1616. rm -rf .tst 2>/dev/null
  1617. mkdir .tst 2>/dev/null
  1618. if test -d .tst; then
  1619. am__leading_dot=.
  1620. else
  1621. am__leading_dot=_
  1622. fi
  1623. rmdir .tst 2>/dev/null
  1624. # test to see if srcdir already configured
  1625. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1626. test -f $srcdir/config.status; then
  1627. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1628. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1629. { (exit 1); exit 1; }; }
  1630. fi
  1631. # test whether we have cygpath
  1632. if test -z "$CYGPATH_W"; then
  1633. if (cygpath --version) >/dev/null 2>/dev/null; then
  1634. CYGPATH_W='cygpath -w'
  1635. else
  1636. CYGPATH_W=echo
  1637. fi
  1638. fi
  1639. # Define the identity of the package.
  1640. PACKAGE='dirsrv'
  1641. VERSION='1.1.0b1'
  1642. cat >>confdefs.h <<_ACEOF
  1643. #define PACKAGE "$PACKAGE"
  1644. _ACEOF
  1645. cat >>confdefs.h <<_ACEOF
  1646. #define VERSION "$VERSION"
  1647. _ACEOF
  1648. # Some tools Automake needs.
  1649. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1650. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1651. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1652. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1653. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1654. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1655. # Installed binaries are usually stripped using `strip' when the user
  1656. # run `make install-strip'. However `strip' might not be the right
  1657. # tool to use in cross-compilation environments, therefore Automake
  1658. # will honor the `STRIP' environment variable to overrule this program.
  1659. if test "$cross_compiling" != no; then
  1660. if test -n "$ac_tool_prefix"; then
  1661. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1662. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1663. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1664. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1665. if test "${ac_cv_prog_STRIP+set}" = set; then
  1666. echo $ECHO_N "(cached) $ECHO_C" >&6
  1667. else
  1668. if test -n "$STRIP"; then
  1669. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1670. else
  1671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1672. for as_dir in $PATH
  1673. do
  1674. IFS=$as_save_IFS
  1675. test -z "$as_dir" && as_dir=.
  1676. for ac_exec_ext in '' $ac_executable_extensions; do
  1677. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1678. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1679. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1680. break 2
  1681. fi
  1682. done
  1683. done
  1684. fi
  1685. fi
  1686. STRIP=$ac_cv_prog_STRIP
  1687. if test -n "$STRIP"; then
  1688. echo "$as_me:$LINENO: result: $STRIP" >&5
  1689. echo "${ECHO_T}$STRIP" >&6
  1690. else
  1691. echo "$as_me:$LINENO: result: no" >&5
  1692. echo "${ECHO_T}no" >&6
  1693. fi
  1694. fi
  1695. if test -z "$ac_cv_prog_STRIP"; then
  1696. ac_ct_STRIP=$STRIP
  1697. # Extract the first word of "strip", so it can be a program name with args.
  1698. set dummy strip; ac_word=$2
  1699. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1700. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1701. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1702. echo $ECHO_N "(cached) $ECHO_C" >&6
  1703. else
  1704. if test -n "$ac_ct_STRIP"; then
  1705. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1706. else
  1707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1708. for as_dir in $PATH
  1709. do
  1710. IFS=$as_save_IFS
  1711. test -z "$as_dir" && as_dir=.
  1712. for ac_exec_ext in '' $ac_executable_extensions; do
  1713. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1714. ac_cv_prog_ac_ct_STRIP="strip"
  1715. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1716. break 2
  1717. fi
  1718. done
  1719. done
  1720. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1721. fi
  1722. fi
  1723. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1724. if test -n "$ac_ct_STRIP"; then
  1725. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1726. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1727. else
  1728. echo "$as_me:$LINENO: result: no" >&5
  1729. echo "${ECHO_T}no" >&6
  1730. fi
  1731. STRIP=$ac_ct_STRIP
  1732. else
  1733. STRIP="$ac_cv_prog_STRIP"
  1734. fi
  1735. fi
  1736. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1737. # We need awk for the "check" target. The system "awk" is bad on
  1738. # some platforms.
  1739. # Always define AMTAR for backward compatibility.
  1740. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1741. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1742. echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  1743. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  1744. # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  1745. if test "${enable_maintainer_mode+set}" = set; then
  1746. enableval="$enable_maintainer_mode"
  1747. USE_MAINTAINER_MODE=$enableval
  1748. else
  1749. USE_MAINTAINER_MODE=no
  1750. fi;
  1751. echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  1752. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  1753. if test $USE_MAINTAINER_MODE = yes; then
  1754. MAINTAINER_MODE_TRUE=
  1755. MAINTAINER_MODE_FALSE='#'
  1756. else
  1757. MAINTAINER_MODE_TRUE='#'
  1758. MAINTAINER_MODE_FALSE=
  1759. fi
  1760. MAINT=$MAINTAINER_MODE_TRUE
  1761. # Make sure we can run config.sub.
  1762. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1763. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1764. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1765. { (exit 1); exit 1; }; }
  1766. echo "$as_me:$LINENO: checking build system type" >&5
  1767. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1768. if test "${ac_cv_build+set}" = set; then
  1769. echo $ECHO_N "(cached) $ECHO_C" >&6
  1770. else
  1771. ac_cv_build_alias=$build_alias
  1772. test -z "$ac_cv_build_alias" &&
  1773. ac_cv_build_alias=`$ac_config_guess`
  1774. test -z "$ac_cv_build_alias" &&
  1775. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1776. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1779. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1780. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1781. { (exit 1); exit 1; }; }
  1782. fi
  1783. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1784. echo "${ECHO_T}$ac_cv_build" >&6
  1785. build=$ac_cv_build
  1786. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1787. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1788. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1789. echo "$as_me:$LINENO: checking host system type" >&5
  1790. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1791. if test "${ac_cv_host+set}" = set; then
  1792. echo $ECHO_N "(cached) $ECHO_C" >&6
  1793. else
  1794. ac_cv_host_alias=$host_alias
  1795. test -z "$ac_cv_host_alias" &&
  1796. ac_cv_host_alias=$ac_cv_build_alias
  1797. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1798. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1799. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1800. { (exit 1); exit 1; }; }
  1801. fi
  1802. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1803. echo "${ECHO_T}$ac_cv_host" >&6
  1804. host=$ac_cv_host
  1805. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1806. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1807. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1808. # Checks for programs.
  1809. ac_ext=cc
  1810. ac_cpp='$CXXCPP $CPPFLAGS'
  1811. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1812. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1813. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1814. if test -n "$ac_tool_prefix"; then
  1815. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1816. do
  1817. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1818. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1819. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1820. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1821. if test "${ac_cv_prog_CXX+set}" = set; then
  1822. echo $ECHO_N "(cached) $ECHO_C" >&6
  1823. else
  1824. if test -n "$CXX"; then
  1825. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1826. else
  1827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1828. for as_dir in $PATH
  1829. do
  1830. IFS=$as_save_IFS
  1831. test -z "$as_dir" && as_dir=.
  1832. for ac_exec_ext in '' $ac_executable_extensions; do
  1833. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1834. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1835. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1836. break 2
  1837. fi
  1838. done
  1839. done
  1840. fi
  1841. fi
  1842. CXX=$ac_cv_prog_CXX
  1843. if test -n "$CXX"; then
  1844. echo "$as_me:$LINENO: result: $CXX" >&5
  1845. echo "${ECHO_T}$CXX" >&6
  1846. else
  1847. echo "$as_me:$LINENO: result: no" >&5
  1848. echo "${ECHO_T}no" >&6
  1849. fi
  1850. test -n "$CXX" && break
  1851. done
  1852. fi
  1853. if test -z "$CXX"; then
  1854. ac_ct_CXX=$CXX
  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_prog", so it can be a program name with args.
  1858. set dummy $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_ac_ct_CXX+set}" = set; then
  1862. echo $ECHO_N "(cached) $ECHO_C" >&6
  1863. else
  1864. if test -n "$ac_ct_CXX"; then
  1865. ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1883. if test -n "$ac_ct_CXX"; then
  1884. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1885. echo "${ECHO_T}$ac_ct_CXX" >&6
  1886. else
  1887. echo "$as_me:$LINENO: result: no" >&5
  1888. echo "${ECHO_T}no" >&6
  1889. fi
  1890. test -n "$ac_ct_CXX" && break
  1891. done
  1892. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1893. CXX=$ac_ct_CXX
  1894. fi
  1895. # Provide some information about the compiler.
  1896. echo "$as_me:$LINENO:" \
  1897. "checking for C++ compiler version" >&5
  1898. ac_compiler=`set X $ac_compile; echo $2`
  1899. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1900. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1901. ac_status=$?
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); }
  1904. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1905. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }
  1909. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1910. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }
  1914. cat >conftest.$ac_ext <<_ACEOF
  1915. /* confdefs.h. */
  1916. _ACEOF
  1917. cat confdefs.h >>conftest.$ac_ext
  1918. cat >>conftest.$ac_ext <<_ACEOF
  1919. /* end confdefs.h. */
  1920. int
  1921. main ()
  1922. {
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. ac_clean_files_save=$ac_clean_files
  1928. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1929. # Try to create an executable without -o first, disregard a.out.
  1930. # It will help us diagnose broken compilers, and finding out an intuition
  1931. # of exeext.
  1932. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1933. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1934. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1935. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1936. (eval $ac_link_default) 2>&5
  1937. ac_status=$?
  1938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1939. (exit $ac_status); }; then
  1940. # Find the output, starting from the most likely. This scheme is
  1941. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1942. # resort.
  1943. # Be careful to initialize this variable, since it used to be cached.
  1944. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1945. ac_cv_exeext=
  1946. # b.out is created by i960 compilers.
  1947. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1948. do
  1949. test -f "$ac_file" || continue
  1950. case $ac_file in
  1951. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1952. ;;
  1953. conftest.$ac_ext )
  1954. # This is the source file.
  1955. ;;
  1956. [ab].out )
  1957. # We found the default executable, but exeext='' is most
  1958. # certainly right.
  1959. break;;
  1960. *.* )
  1961. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1962. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1963. # but it would be cool to find out if it's true. Does anybody
  1964. # maintain Libtool? --akim.
  1965. export ac_cv_exeext
  1966. break;;
  1967. * )
  1968. break;;
  1969. esac
  1970. done
  1971. else
  1972. echo "$as_me: failed program was:" >&5
  1973. sed 's/^/| /' conftest.$ac_ext >&5
  1974. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1975. See \`config.log' for more details." >&5
  1976. echo "$as_me: error: C++ compiler cannot create executables
  1977. See \`config.log' for more details." >&2;}
  1978. { (exit 77); exit 77; }; }
  1979. fi
  1980. ac_exeext=$ac_cv_exeext
  1981. echo "$as_me:$LINENO: result: $ac_file" >&5
  1982. echo "${ECHO_T}$ac_file" >&6
  1983. # Check the compiler produces executables we can run. If not, either
  1984. # the compiler is broken, or we cross compile.
  1985. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1986. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1987. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1988. # If not cross compiling, check that we can run a simple program.
  1989. if test "$cross_compiling" != yes; then
  1990. if { ac_try='./$ac_file'
  1991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1992. (eval $ac_try) 2>&5
  1993. ac_status=$?
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); }; }; then
  1996. cross_compiling=no
  1997. else
  1998. if test "$cross_compiling" = maybe; then
  1999. cross_compiling=yes
  2000. else
  2001. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2002. If you meant to cross compile, use \`--host'.
  2003. See \`config.log' for more details." >&5
  2004. echo "$as_me: error: cannot run C++ compiled programs.
  2005. If you meant to cross compile, use \`--host'.
  2006. See \`config.log' for more details." >&2;}
  2007. { (exit 1); exit 1; }; }
  2008. fi
  2009. fi
  2010. fi
  2011. echo "$as_me:$LINENO: result: yes" >&5
  2012. echo "${ECHO_T}yes" >&6
  2013. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2014. ac_clean_files=$ac_clean_files_save
  2015. # Check the compiler produces executables we can run. If not, either
  2016. # the compiler is broken, or we cross compile.
  2017. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2018. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2019. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2020. echo "${ECHO_T}$cross_compiling" >&6
  2021. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2022. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2023. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2024. (eval $ac_link) 2>&5
  2025. ac_status=$?
  2026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2027. (exit $ac_status); }; then
  2028. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2029. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2030. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2031. # `rm'.
  2032. for ac_file in conftest.exe conftest conftest.*; do
  2033. test -f "$ac_file" || continue
  2034. case $ac_file in
  2035. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2036. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2037. export ac_cv_exeext
  2038. break;;
  2039. * ) break;;
  2040. esac
  2041. done
  2042. else
  2043. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2044. See \`config.log' for more details." >&5
  2045. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2046. See \`config.log' for more details." >&2;}
  2047. { (exit 1); exit 1; }; }
  2048. fi
  2049. rm -f conftest$ac_cv_exeext
  2050. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2051. echo "${ECHO_T}$ac_cv_exeext" >&6
  2052. rm -f conftest.$ac_ext
  2053. EXEEXT=$ac_cv_exeext
  2054. ac_exeext=$EXEEXT
  2055. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2056. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2057. if test "${ac_cv_objext+set}" = set; then
  2058. echo $ECHO_N "(cached) $ECHO_C" >&6
  2059. else
  2060. cat >conftest.$ac_ext <<_ACEOF
  2061. /* confdefs.h. */
  2062. _ACEOF
  2063. cat confdefs.h >>conftest.$ac_ext
  2064. cat >>conftest.$ac_ext <<_ACEOF
  2065. /* end confdefs.h. */
  2066. int
  2067. main ()
  2068. {
  2069. ;
  2070. return 0;
  2071. }
  2072. _ACEOF
  2073. rm -f conftest.o conftest.obj
  2074. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2075. (eval $ac_compile) 2>&5
  2076. ac_status=$?
  2077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2078. (exit $ac_status); }; then
  2079. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2080. case $ac_file in
  2081. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2082. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2083. break;;
  2084. esac
  2085. done
  2086. else
  2087. echo "$as_me: failed program was:" >&5
  2088. sed 's/^/| /' conftest.$ac_ext >&5
  2089. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2090. See \`config.log' for more details." >&5
  2091. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2092. See \`config.log' for more details." >&2;}
  2093. { (exit 1); exit 1; }; }
  2094. fi
  2095. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2096. fi
  2097. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2098. echo "${ECHO_T}$ac_cv_objext" >&6
  2099. OBJEXT=$ac_cv_objext
  2100. ac_objext=$OBJEXT
  2101. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2102. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  2103. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2104. echo $ECHO_N "(cached) $ECHO_C" >&6
  2105. else
  2106. cat >conftest.$ac_ext <<_ACEOF
  2107. /* confdefs.h. */
  2108. _ACEOF
  2109. cat confdefs.h >>conftest.$ac_ext
  2110. cat >>conftest.$ac_ext <<_ACEOF
  2111. /* end confdefs.h. */
  2112. int
  2113. main ()
  2114. {
  2115. #ifndef __GNUC__
  2116. choke me
  2117. #endif
  2118. ;
  2119. return 0;
  2120. }
  2121. _ACEOF
  2122. rm -f conftest.$ac_objext
  2123. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2124. (eval $ac_compile) 2>conftest.er1
  2125. ac_status=$?
  2126. grep -v '^ *+' conftest.er1 >conftest.err
  2127. rm -f conftest.er1
  2128. cat conftest.err >&5
  2129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2130. (exit $ac_status); } &&
  2131. { ac_try='test -z "$ac_cxx_werror_flag"
  2132. || test ! -s conftest.err'
  2133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2134. (eval $ac_try) 2>&5
  2135. ac_status=$?
  2136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. (exit $ac_status); }; } &&
  2138. { ac_try='test -s conftest.$ac_objext'
  2139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2140. (eval $ac_try) 2>&5
  2141. ac_status=$?
  2142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2143. (exit $ac_status); }; }; then
  2144. ac_compiler_gnu=yes
  2145. else
  2146. echo "$as_me: failed program was:" >&5
  2147. sed 's/^/| /' conftest.$ac_ext >&5
  2148. ac_compiler_gnu=no
  2149. fi
  2150. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2151. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2152. fi
  2153. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2154. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  2155. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2156. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2157. ac_save_CXXFLAGS=$CXXFLAGS
  2158. CXXFLAGS="-g"
  2159. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2160. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  2161. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2162. echo $ECHO_N "(cached) $ECHO_C" >&6
  2163. else
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. int
  2171. main ()
  2172. {
  2173. ;
  2174. return 0;
  2175. }
  2176. _ACEOF
  2177. rm -f conftest.$ac_objext
  2178. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2179. (eval $ac_compile) 2>conftest.er1
  2180. ac_status=$?
  2181. grep -v '^ *+' conftest.er1 >conftest.err
  2182. rm -f conftest.er1
  2183. cat conftest.err >&5
  2184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. (exit $ac_status); } &&
  2186. { ac_try='test -z "$ac_cxx_werror_flag"
  2187. || test ! -s conftest.err'
  2188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2189. (eval $ac_try) 2>&5
  2190. ac_status=$?
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); }; } &&
  2193. { ac_try='test -s conftest.$ac_objext'
  2194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2195. (eval $ac_try) 2>&5
  2196. ac_status=$?
  2197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2198. (exit $ac_status); }; }; then
  2199. ac_cv_prog_cxx_g=yes
  2200. else
  2201. echo "$as_me: failed program was:" >&5
  2202. sed 's/^/| /' conftest.$ac_ext >&5
  2203. ac_cv_prog_cxx_g=no
  2204. fi
  2205. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2206. fi
  2207. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2208. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  2209. if test "$ac_test_CXXFLAGS" = set; then
  2210. CXXFLAGS=$ac_save_CXXFLAGS
  2211. elif test $ac_cv_prog_cxx_g = yes; then
  2212. if test "$GXX" = yes; then
  2213. CXXFLAGS="-g -O2"
  2214. else
  2215. CXXFLAGS="-g"
  2216. fi
  2217. else
  2218. if test "$GXX" = yes; then
  2219. CXXFLAGS="-O2"
  2220. else
  2221. CXXFLAGS=
  2222. fi
  2223. fi
  2224. for ac_declaration in \
  2225. '' \
  2226. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2227. 'extern "C" void std::exit (int); using std::exit;' \
  2228. 'extern "C" void exit (int) throw ();' \
  2229. 'extern "C" void exit (int);' \
  2230. 'void exit (int);'
  2231. do
  2232. cat >conftest.$ac_ext <<_ACEOF
  2233. /* confdefs.h. */
  2234. _ACEOF
  2235. cat confdefs.h >>conftest.$ac_ext
  2236. cat >>conftest.$ac_ext <<_ACEOF
  2237. /* end confdefs.h. */
  2238. $ac_declaration
  2239. #include <stdlib.h>
  2240. int
  2241. main ()
  2242. {
  2243. exit (42);
  2244. ;
  2245. return 0;
  2246. }
  2247. _ACEOF
  2248. rm -f conftest.$ac_objext
  2249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2250. (eval $ac_compile) 2>conftest.er1
  2251. ac_status=$?
  2252. grep -v '^ *+' conftest.er1 >conftest.err
  2253. rm -f conftest.er1
  2254. cat conftest.err >&5
  2255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2256. (exit $ac_status); } &&
  2257. { ac_try='test -z "$ac_cxx_werror_flag"
  2258. || test ! -s conftest.err'
  2259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2260. (eval $ac_try) 2>&5
  2261. ac_status=$?
  2262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2263. (exit $ac_status); }; } &&
  2264. { ac_try='test -s conftest.$ac_objext'
  2265. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2266. (eval $ac_try) 2>&5
  2267. ac_status=$?
  2268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2269. (exit $ac_status); }; }; then
  2270. :
  2271. else
  2272. echo "$as_me: failed program was:" >&5
  2273. sed 's/^/| /' conftest.$ac_ext >&5
  2274. continue
  2275. fi
  2276. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2277. cat >conftest.$ac_ext <<_ACEOF
  2278. /* confdefs.h. */
  2279. _ACEOF
  2280. cat confdefs.h >>conftest.$ac_ext
  2281. cat >>conftest.$ac_ext <<_ACEOF
  2282. /* end confdefs.h. */
  2283. $ac_declaration
  2284. int
  2285. main ()
  2286. {
  2287. exit (42);
  2288. ;
  2289. return 0;
  2290. }
  2291. _ACEOF
  2292. rm -f conftest.$ac_objext
  2293. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2294. (eval $ac_compile) 2>conftest.er1
  2295. ac_status=$?
  2296. grep -v '^ *+' conftest.er1 >conftest.err
  2297. rm -f conftest.er1
  2298. cat conftest.err >&5
  2299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2300. (exit $ac_status); } &&
  2301. { ac_try='test -z "$ac_cxx_werror_flag"
  2302. || test ! -s conftest.err'
  2303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2304. (eval $ac_try) 2>&5
  2305. ac_status=$?
  2306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2307. (exit $ac_status); }; } &&
  2308. { ac_try='test -s conftest.$ac_objext'
  2309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2310. (eval $ac_try) 2>&5
  2311. ac_status=$?
  2312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2313. (exit $ac_status); }; }; then
  2314. break
  2315. else
  2316. echo "$as_me: failed program was:" >&5
  2317. sed 's/^/| /' conftest.$ac_ext >&5
  2318. fi
  2319. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2320. done
  2321. rm -f conftest*
  2322. if test -n "$ac_declaration"; then
  2323. echo '#ifdef __cplusplus' >>confdefs.h
  2324. echo $ac_declaration >>confdefs.h
  2325. echo '#endif' >>confdefs.h
  2326. fi
  2327. ac_ext=c
  2328. ac_cpp='$CPP $CPPFLAGS'
  2329. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2330. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2331. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2332. DEPDIR="${am__leading_dot}deps"
  2333. ac_config_commands="$ac_config_commands depfiles"
  2334. am_make=${MAKE-make}
  2335. cat > confinc << 'END'
  2336. am__doit:
  2337. @echo done
  2338. .PHONY: am__doit
  2339. END
  2340. # If we don't find an include directive, just comment out the code.
  2341. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2342. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2343. am__include="#"
  2344. am__quote=
  2345. _am_result=none
  2346. # First try GNU make style include.
  2347. echo "include confinc" > confmf
  2348. # We grep out `Entering directory' and `Leaving directory'
  2349. # messages which can occur if `w' ends up in MAKEFLAGS.
  2350. # In particular we don't look at `^make:' because GNU make might
  2351. # be invoked under some other name (usually "gmake"), in which
  2352. # case it prints its new name instead of `make'.
  2353. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2354. am__include=include
  2355. am__quote=
  2356. _am_result=GNU
  2357. fi
  2358. # Now try BSD make style include.
  2359. if test "$am__include" = "#"; then
  2360. echo '.include "confinc"' > confmf
  2361. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2362. am__include=.include
  2363. am__quote="\""
  2364. _am_result=BSD
  2365. fi
  2366. fi
  2367. echo "$as_me:$LINENO: result: $_am_result" >&5
  2368. echo "${ECHO_T}$_am_result" >&6
  2369. rm -f confinc confmf
  2370. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2371. if test "${enable_dependency_tracking+set}" = set; then
  2372. enableval="$enable_dependency_tracking"
  2373. fi;
  2374. if test "x$enable_dependency_tracking" != xno; then
  2375. am_depcomp="$ac_aux_dir/depcomp"
  2376. AMDEPBACKSLASH='\'
  2377. fi
  2378. if test "x$enable_dependency_tracking" != xno; then
  2379. AMDEP_TRUE=
  2380. AMDEP_FALSE='#'
  2381. else
  2382. AMDEP_TRUE='#'
  2383. AMDEP_FALSE=
  2384. fi
  2385. depcc="$CXX" am_compiler_list=
  2386. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2387. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2388. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2389. echo $ECHO_N "(cached) $ECHO_C" >&6
  2390. else
  2391. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2392. # We make a subdir and do the tests there. Otherwise we can end up
  2393. # making bogus files that we don't know about and never remove. For
  2394. # instance it was reported that on HP-UX the gcc test will end up
  2395. # making a dummy file named `D' -- because `-MD' means `put the output
  2396. # in D'.
  2397. mkdir conftest.dir
  2398. # Copy depcomp to subdir because otherwise we won't find it if we're
  2399. # using a relative directory.
  2400. cp "$am_depcomp" conftest.dir
  2401. cd conftest.dir
  2402. # We will build objects and dependencies in a subdirectory because
  2403. # it helps to detect inapplicable dependency modes. For instance
  2404. # both Tru64's cc and ICC support -MD to output dependencies as a
  2405. # side effect of compilation, but ICC will put the dependencies in
  2406. # the current directory while Tru64 will put them in the object
  2407. # directory.
  2408. mkdir sub
  2409. am_cv_CXX_dependencies_compiler_type=none
  2410. if test "$am_compiler_list" = ""; then
  2411. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2412. fi
  2413. for depmode in $am_compiler_list; do
  2414. # Setup a source with many dependencies, because some compilers
  2415. # like to wrap large dependency lists on column 80 (with \), and
  2416. # we should not choose a depcomp mode which is confused by this.
  2417. #
  2418. # We need to recreate these files for each test, as the compiler may
  2419. # overwrite some of them when testing with obscure command lines.
  2420. # This happens at least with the AIX C compiler.
  2421. : > sub/conftest.c
  2422. for i in 1 2 3 4 5 6; do
  2423. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2424. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2425. # Solaris 8's {/usr,}/bin/sh.
  2426. touch sub/conftst$i.h
  2427. done
  2428. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2429. case $depmode in
  2430. nosideeffect)
  2431. # after this tag, mechanisms are not by side-effect, so they'll
  2432. # only be used when explicitly requested
  2433. if test "x$enable_dependency_tracking" = xyes; then
  2434. continue
  2435. else
  2436. break
  2437. fi
  2438. ;;
  2439. none) break ;;
  2440. esac
  2441. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2442. # mode. It turns out that the SunPro C++ compiler does not properly
  2443. # handle `-M -o', and we need to detect this.
  2444. if depmode=$depmode \
  2445. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2446. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2447. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2448. >/dev/null 2>conftest.err &&
  2449. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2450. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2451. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2452. # icc doesn't choke on unknown options, it will just issue warnings
  2453. # or remarks (even with -Werror). So we grep stderr for any message
  2454. # that says an option was ignored or not supported.
  2455. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2456. # icc: Command line warning: ignoring option '-M'; no argument required
  2457. # The diagnosis changed in icc 8.0:
  2458. # icc: Command line remark: option '-MP' not supported
  2459. if (grep 'ignoring option' conftest.err ||
  2460. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2461. am_cv_CXX_dependencies_compiler_type=$depmode
  2462. break
  2463. fi
  2464. fi
  2465. done
  2466. cd ..
  2467. rm -rf conftest.dir
  2468. else
  2469. am_cv_CXX_dependencies_compiler_type=none
  2470. fi
  2471. fi
  2472. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2473. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  2474. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2475. if
  2476. test "x$enable_dependency_tracking" != xno \
  2477. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2478. am__fastdepCXX_TRUE=
  2479. am__fastdepCXX_FALSE='#'
  2480. else
  2481. am__fastdepCXX_TRUE='#'
  2482. am__fastdepCXX_FALSE=
  2483. fi
  2484. ac_ext=c
  2485. ac_cpp='$CPP $CPPFLAGS'
  2486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2489. if test -n "$ac_tool_prefix"; then
  2490. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2491. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2492. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2494. if test "${ac_cv_prog_CC+set}" = set; then
  2495. echo $ECHO_N "(cached) $ECHO_C" >&6
  2496. else
  2497. if test -n "$CC"; then
  2498. ac_cv_prog_CC="$CC" # Let the user override the test.
  2499. else
  2500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2501. for as_dir in $PATH
  2502. do
  2503. IFS=$as_save_IFS
  2504. test -z "$as_dir" && as_dir=.
  2505. for ac_exec_ext in '' $ac_executable_extensions; do
  2506. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2507. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2509. break 2
  2510. fi
  2511. done
  2512. done
  2513. fi
  2514. fi
  2515. CC=$ac_cv_prog_CC
  2516. if test -n "$CC"; then
  2517. echo "$as_me:$LINENO: result: $CC" >&5
  2518. echo "${ECHO_T}$CC" >&6
  2519. else
  2520. echo "$as_me:$LINENO: result: no" >&5
  2521. echo "${ECHO_T}no" >&6
  2522. fi
  2523. fi
  2524. if test -z "$ac_cv_prog_CC"; then
  2525. ac_ct_CC=$CC
  2526. # Extract the first word of "gcc", so it can be a program name with args.
  2527. set dummy gcc; ac_word=$2
  2528. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2529. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2530. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2531. echo $ECHO_N "(cached) $ECHO_C" >&6
  2532. else
  2533. if test -n "$ac_ct_CC"; then
  2534. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2535. else
  2536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2537. for as_dir in $PATH
  2538. do
  2539. IFS=$as_save_IFS
  2540. test -z "$as_dir" && as_dir=.
  2541. for ac_exec_ext in '' $ac_executable_extensions; do
  2542. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2543. ac_cv_prog_ac_ct_CC="gcc"
  2544. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2545. break 2
  2546. fi
  2547. done
  2548. done
  2549. fi
  2550. fi
  2551. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2552. if test -n "$ac_ct_CC"; then
  2553. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2554. echo "${ECHO_T}$ac_ct_CC" >&6
  2555. else
  2556. echo "$as_me:$LINENO: result: no" >&5
  2557. echo "${ECHO_T}no" >&6
  2558. fi
  2559. CC=$ac_ct_CC
  2560. else
  2561. CC="$ac_cv_prog_CC"
  2562. fi
  2563. if test -z "$CC"; then
  2564. if test -n "$ac_tool_prefix"; then
  2565. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2566. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2567. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2568. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2569. if test "${ac_cv_prog_CC+set}" = set; then
  2570. echo $ECHO_N "(cached) $ECHO_C" >&6
  2571. else
  2572. if test -n "$CC"; then
  2573. ac_cv_prog_CC="$CC" # Let the user override the test.
  2574. else
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2582. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2583. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2584. break 2
  2585. fi
  2586. done
  2587. done
  2588. fi
  2589. fi
  2590. CC=$ac_cv_prog_CC
  2591. if test -n "$CC"; then
  2592. echo "$as_me:$LINENO: result: $CC" >&5
  2593. echo "${ECHO_T}$CC" >&6
  2594. else
  2595. echo "$as_me:$LINENO: result: no" >&5
  2596. echo "${ECHO_T}no" >&6
  2597. fi
  2598. fi
  2599. if test -z "$ac_cv_prog_CC"; then
  2600. ac_ct_CC=$CC
  2601. # Extract the first word of "cc", so it can be a program name with args.
  2602. set dummy cc; ac_word=$2
  2603. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2604. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2605. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2606. echo $ECHO_N "(cached) $ECHO_C" >&6
  2607. else
  2608. if test -n "$ac_ct_CC"; then
  2609. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2610. else
  2611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2612. for as_dir in $PATH
  2613. do
  2614. IFS=$as_save_IFS
  2615. test -z "$as_dir" && as_dir=.
  2616. for ac_exec_ext in '' $ac_executable_extensions; do
  2617. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2618. ac_cv_prog_ac_ct_CC="cc"
  2619. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2620. break 2
  2621. fi
  2622. done
  2623. done
  2624. fi
  2625. fi
  2626. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2627. if test -n "$ac_ct_CC"; then
  2628. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2629. echo "${ECHO_T}$ac_ct_CC" >&6
  2630. else
  2631. echo "$as_me:$LINENO: result: no" >&5
  2632. echo "${ECHO_T}no" >&6
  2633. fi
  2634. CC=$ac_ct_CC
  2635. else
  2636. CC="$ac_cv_prog_CC"
  2637. fi
  2638. fi
  2639. if test -z "$CC"; then
  2640. # Extract the first word of "cc", so it can be a program name with args.
  2641. set dummy cc; ac_word=$2
  2642. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2643. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2644. if test "${ac_cv_prog_CC+set}" = set; then
  2645. echo $ECHO_N "(cached) $ECHO_C" >&6
  2646. else
  2647. if test -n "$CC"; then
  2648. ac_cv_prog_CC="$CC" # Let the user override the test.
  2649. else
  2650. ac_prog_rejected=no
  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. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2659. ac_prog_rejected=yes
  2660. continue
  2661. fi
  2662. ac_cv_prog_CC="cc"
  2663. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. if test $ac_prog_rejected = yes; then
  2669. # We found a bogon in the path, so make sure we never use it.
  2670. set dummy $ac_cv_prog_CC
  2671. shift
  2672. if test $# != 0; then
  2673. # We chose a different compiler from the bogus one.
  2674. # However, it has the same basename, so the bogon will be chosen
  2675. # first if we set CC to just the basename; use the full file name.
  2676. shift
  2677. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2678. fi
  2679. fi
  2680. fi
  2681. fi
  2682. CC=$ac_cv_prog_CC
  2683. if test -n "$CC"; then
  2684. echo "$as_me:$LINENO: result: $CC" >&5
  2685. echo "${ECHO_T}$CC" >&6
  2686. else
  2687. echo "$as_me:$LINENO: result: no" >&5
  2688. echo "${ECHO_T}no" >&6
  2689. fi
  2690. fi
  2691. if test -z "$CC"; then
  2692. if test -n "$ac_tool_prefix"; then
  2693. for ac_prog in cl
  2694. do
  2695. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2696. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2697. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2698. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2699. if test "${ac_cv_prog_CC+set}" = set; then
  2700. echo $ECHO_N "(cached) $ECHO_C" >&6
  2701. else
  2702. if test -n "$CC"; then
  2703. ac_cv_prog_CC="$CC" # Let the user override the test.
  2704. else
  2705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2706. for as_dir in $PATH
  2707. do
  2708. IFS=$as_save_IFS
  2709. test -z "$as_dir" && as_dir=.
  2710. for ac_exec_ext in '' $ac_executable_extensions; do
  2711. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2712. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2713. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2714. break 2
  2715. fi
  2716. done
  2717. done
  2718. fi
  2719. fi
  2720. CC=$ac_cv_prog_CC
  2721. if test -n "$CC"; then
  2722. echo "$as_me:$LINENO: result: $CC" >&5
  2723. echo "${ECHO_T}$CC" >&6
  2724. else
  2725. echo "$as_me:$LINENO: result: no" >&5
  2726. echo "${ECHO_T}no" >&6
  2727. fi
  2728. test -n "$CC" && break
  2729. done
  2730. fi
  2731. if test -z "$CC"; then
  2732. ac_ct_CC=$CC
  2733. for ac_prog in cl
  2734. do
  2735. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2736. set dummy $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_ac_ct_CC+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. if test -n "$ac_ct_CC"; then
  2743. ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2761. if test -n "$ac_ct_CC"; then
  2762. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2763. echo "${ECHO_T}$ac_ct_CC" >&6
  2764. else
  2765. echo "$as_me:$LINENO: result: no" >&5
  2766. echo "${ECHO_T}no" >&6
  2767. fi
  2768. test -n "$ac_ct_CC" && break
  2769. done
  2770. CC=$ac_ct_CC
  2771. fi
  2772. fi
  2773. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2774. See \`config.log' for more details." >&5
  2775. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2776. See \`config.log' for more details." >&2;}
  2777. { (exit 1); exit 1; }; }
  2778. # Provide some information about the compiler.
  2779. echo "$as_me:$LINENO:" \
  2780. "checking for C compiler version" >&5
  2781. ac_compiler=`set X $ac_compile; echo $2`
  2782. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2783. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2784. ac_status=$?
  2785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2786. (exit $ac_status); }
  2787. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2788. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2789. ac_status=$?
  2790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); }
  2792. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2793. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2794. ac_status=$?
  2795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2796. (exit $ac_status); }
  2797. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2798. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2799. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2800. echo $ECHO_N "(cached) $ECHO_C" >&6
  2801. else
  2802. cat >conftest.$ac_ext <<_ACEOF
  2803. /* confdefs.h. */
  2804. _ACEOF
  2805. cat confdefs.h >>conftest.$ac_ext
  2806. cat >>conftest.$ac_ext <<_ACEOF
  2807. /* end confdefs.h. */
  2808. int
  2809. main ()
  2810. {
  2811. #ifndef __GNUC__
  2812. choke me
  2813. #endif
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. rm -f conftest.$ac_objext
  2819. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2820. (eval $ac_compile) 2>conftest.er1
  2821. ac_status=$?
  2822. grep -v '^ *+' conftest.er1 >conftest.err
  2823. rm -f conftest.er1
  2824. cat conftest.err >&5
  2825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2826. (exit $ac_status); } &&
  2827. { ac_try='test -z "$ac_c_werror_flag"
  2828. || test ! -s conftest.err'
  2829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2830. (eval $ac_try) 2>&5
  2831. ac_status=$?
  2832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2833. (exit $ac_status); }; } &&
  2834. { ac_try='test -s conftest.$ac_objext'
  2835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2836. (eval $ac_try) 2>&5
  2837. ac_status=$?
  2838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2839. (exit $ac_status); }; }; then
  2840. ac_compiler_gnu=yes
  2841. else
  2842. echo "$as_me: failed program was:" >&5
  2843. sed 's/^/| /' conftest.$ac_ext >&5
  2844. ac_compiler_gnu=no
  2845. fi
  2846. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2847. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2848. fi
  2849. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2850. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2851. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2852. ac_test_CFLAGS=${CFLAGS+set}
  2853. ac_save_CFLAGS=$CFLAGS
  2854. CFLAGS="-g"
  2855. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2856. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2857. if test "${ac_cv_prog_cc_g+set}" = set; then
  2858. echo $ECHO_N "(cached) $ECHO_C" >&6
  2859. else
  2860. cat >conftest.$ac_ext <<_ACEOF
  2861. /* confdefs.h. */
  2862. _ACEOF
  2863. cat confdefs.h >>conftest.$ac_ext
  2864. cat >>conftest.$ac_ext <<_ACEOF
  2865. /* end confdefs.h. */
  2866. int
  2867. main ()
  2868. {
  2869. ;
  2870. return 0;
  2871. }
  2872. _ACEOF
  2873. rm -f conftest.$ac_objext
  2874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2875. (eval $ac_compile) 2>conftest.er1
  2876. ac_status=$?
  2877. grep -v '^ *+' conftest.er1 >conftest.err
  2878. rm -f conftest.er1
  2879. cat conftest.err >&5
  2880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2881. (exit $ac_status); } &&
  2882. { ac_try='test -z "$ac_c_werror_flag"
  2883. || test ! -s conftest.err'
  2884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2885. (eval $ac_try) 2>&5
  2886. ac_status=$?
  2887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2888. (exit $ac_status); }; } &&
  2889. { ac_try='test -s conftest.$ac_objext'
  2890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2891. (eval $ac_try) 2>&5
  2892. ac_status=$?
  2893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2894. (exit $ac_status); }; }; then
  2895. ac_cv_prog_cc_g=yes
  2896. else
  2897. echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. ac_cv_prog_cc_g=no
  2900. fi
  2901. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2902. fi
  2903. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2904. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2905. if test "$ac_test_CFLAGS" = set; then
  2906. CFLAGS=$ac_save_CFLAGS
  2907. elif test $ac_cv_prog_cc_g = yes; then
  2908. if test "$GCC" = yes; then
  2909. CFLAGS="-g -O2"
  2910. else
  2911. CFLAGS="-g"
  2912. fi
  2913. else
  2914. if test "$GCC" = yes; then
  2915. CFLAGS="-O2"
  2916. else
  2917. CFLAGS=
  2918. fi
  2919. fi
  2920. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2921. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2922. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2923. echo $ECHO_N "(cached) $ECHO_C" >&6
  2924. else
  2925. ac_cv_prog_cc_stdc=no
  2926. ac_save_CC=$CC
  2927. cat >conftest.$ac_ext <<_ACEOF
  2928. /* confdefs.h. */
  2929. _ACEOF
  2930. cat confdefs.h >>conftest.$ac_ext
  2931. cat >>conftest.$ac_ext <<_ACEOF
  2932. /* end confdefs.h. */
  2933. #include <stdarg.h>
  2934. #include <stdio.h>
  2935. #include <sys/types.h>
  2936. #include <sys/stat.h>
  2937. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2938. struct buf { int x; };
  2939. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2940. static char *e (p, i)
  2941. char **p;
  2942. int i;
  2943. {
  2944. return p[i];
  2945. }
  2946. static char *f (char * (*g) (char **, int), char **p, ...)
  2947. {
  2948. char *s;
  2949. va_list v;
  2950. va_start (v,p);
  2951. s = g (p, va_arg (v,int));
  2952. va_end (v);
  2953. return s;
  2954. }
  2955. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2956. function prototypes and stuff, but not '\xHH' hex character constants.
  2957. These don't provoke an error unfortunately, instead are silently treated
  2958. as 'x'. The following induces an error, until -std1 is added to get
  2959. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2960. array size at least. It's necessary to write '\x00'==0 to get something
  2961. that's true only with -std1. */
  2962. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2963. int test (int i, double x);
  2964. struct s1 {int (*f) (int a);};
  2965. struct s2 {int (*f) (double a);};
  2966. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2967. int argc;
  2968. char **argv;
  2969. int
  2970. main ()
  2971. {
  2972. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2973. ;
  2974. return 0;
  2975. }
  2976. _ACEOF
  2977. # Don't try gcc -ansi; that turns off useful extensions and
  2978. # breaks some systems' header files.
  2979. # AIX -qlanglvl=ansi
  2980. # Ultrix and OSF/1 -std1
  2981. # HP-UX 10.20 and later -Ae
  2982. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2983. # SVR4 -Xc -D__EXTENSIONS__
  2984. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2985. do
  2986. CC="$ac_save_CC $ac_arg"
  2987. rm -f conftest.$ac_objext
  2988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2989. (eval $ac_compile) 2>conftest.er1
  2990. ac_status=$?
  2991. grep -v '^ *+' conftest.er1 >conftest.err
  2992. rm -f conftest.er1
  2993. cat conftest.err >&5
  2994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2995. (exit $ac_status); } &&
  2996. { ac_try='test -z "$ac_c_werror_flag"
  2997. || test ! -s conftest.err'
  2998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2999. (eval $ac_try) 2>&5
  3000. ac_status=$?
  3001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3002. (exit $ac_status); }; } &&
  3003. { ac_try='test -s conftest.$ac_objext'
  3004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3005. (eval $ac_try) 2>&5
  3006. ac_status=$?
  3007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3008. (exit $ac_status); }; }; then
  3009. ac_cv_prog_cc_stdc=$ac_arg
  3010. break
  3011. else
  3012. echo "$as_me: failed program was:" >&5
  3013. sed 's/^/| /' conftest.$ac_ext >&5
  3014. fi
  3015. rm -f conftest.err conftest.$ac_objext
  3016. done
  3017. rm -f conftest.$ac_ext conftest.$ac_objext
  3018. CC=$ac_save_CC
  3019. fi
  3020. case "x$ac_cv_prog_cc_stdc" in
  3021. x|xno)
  3022. echo "$as_me:$LINENO: result: none needed" >&5
  3023. echo "${ECHO_T}none needed" >&6 ;;
  3024. *)
  3025. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3026. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3027. CC="$CC $ac_cv_prog_cc_stdc" ;;
  3028. esac
  3029. # Some people use a C++ compiler to compile C. Since we use `exit',
  3030. # in C++ we need to declare it. In case someone uses the same compiler
  3031. # for both compiling C and C++ we need to have the C++ compiler decide
  3032. # the declaration of exit, since it's the most demanding environment.
  3033. cat >conftest.$ac_ext <<_ACEOF
  3034. #ifndef __cplusplus
  3035. choke me
  3036. #endif
  3037. _ACEOF
  3038. rm -f conftest.$ac_objext
  3039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3040. (eval $ac_compile) 2>conftest.er1
  3041. ac_status=$?
  3042. grep -v '^ *+' conftest.er1 >conftest.err
  3043. rm -f conftest.er1
  3044. cat conftest.err >&5
  3045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3046. (exit $ac_status); } &&
  3047. { ac_try='test -z "$ac_c_werror_flag"
  3048. || test ! -s conftest.err'
  3049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3050. (eval $ac_try) 2>&5
  3051. ac_status=$?
  3052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3053. (exit $ac_status); }; } &&
  3054. { ac_try='test -s conftest.$ac_objext'
  3055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3056. (eval $ac_try) 2>&5
  3057. ac_status=$?
  3058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3059. (exit $ac_status); }; }; then
  3060. for ac_declaration in \
  3061. '' \
  3062. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3063. 'extern "C" void std::exit (int); using std::exit;' \
  3064. 'extern "C" void exit (int) throw ();' \
  3065. 'extern "C" void exit (int);' \
  3066. 'void exit (int);'
  3067. do
  3068. cat >conftest.$ac_ext <<_ACEOF
  3069. /* confdefs.h. */
  3070. _ACEOF
  3071. cat confdefs.h >>conftest.$ac_ext
  3072. cat >>conftest.$ac_ext <<_ACEOF
  3073. /* end confdefs.h. */
  3074. $ac_declaration
  3075. #include <stdlib.h>
  3076. int
  3077. main ()
  3078. {
  3079. exit (42);
  3080. ;
  3081. return 0;
  3082. }
  3083. _ACEOF
  3084. rm -f conftest.$ac_objext
  3085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3086. (eval $ac_compile) 2>conftest.er1
  3087. ac_status=$?
  3088. grep -v '^ *+' conftest.er1 >conftest.err
  3089. rm -f conftest.er1
  3090. cat conftest.err >&5
  3091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3092. (exit $ac_status); } &&
  3093. { ac_try='test -z "$ac_c_werror_flag"
  3094. || test ! -s conftest.err'
  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); }; } &&
  3100. { ac_try='test -s conftest.$ac_objext'
  3101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3102. (eval $ac_try) 2>&5
  3103. ac_status=$?
  3104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3105. (exit $ac_status); }; }; then
  3106. :
  3107. else
  3108. echo "$as_me: failed program was:" >&5
  3109. sed 's/^/| /' conftest.$ac_ext >&5
  3110. continue
  3111. fi
  3112. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3113. cat >conftest.$ac_ext <<_ACEOF
  3114. /* confdefs.h. */
  3115. _ACEOF
  3116. cat confdefs.h >>conftest.$ac_ext
  3117. cat >>conftest.$ac_ext <<_ACEOF
  3118. /* end confdefs.h. */
  3119. $ac_declaration
  3120. int
  3121. main ()
  3122. {
  3123. exit (42);
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. rm -f conftest.$ac_objext
  3129. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3130. (eval $ac_compile) 2>conftest.er1
  3131. ac_status=$?
  3132. grep -v '^ *+' conftest.er1 >conftest.err
  3133. rm -f conftest.er1
  3134. cat conftest.err >&5
  3135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3136. (exit $ac_status); } &&
  3137. { ac_try='test -z "$ac_c_werror_flag"
  3138. || test ! -s conftest.err'
  3139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3140. (eval $ac_try) 2>&5
  3141. ac_status=$?
  3142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3143. (exit $ac_status); }; } &&
  3144. { ac_try='test -s conftest.$ac_objext'
  3145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3146. (eval $ac_try) 2>&5
  3147. ac_status=$?
  3148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3149. (exit $ac_status); }; }; then
  3150. break
  3151. else
  3152. echo "$as_me: failed program was:" >&5
  3153. sed 's/^/| /' conftest.$ac_ext >&5
  3154. fi
  3155. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3156. done
  3157. rm -f conftest*
  3158. if test -n "$ac_declaration"; then
  3159. echo '#ifdef __cplusplus' >>confdefs.h
  3160. echo $ac_declaration >>confdefs.h
  3161. echo '#endif' >>confdefs.h
  3162. fi
  3163. else
  3164. echo "$as_me: failed program was:" >&5
  3165. sed 's/^/| /' conftest.$ac_ext >&5
  3166. fi
  3167. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3168. ac_ext=c
  3169. ac_cpp='$CPP $CPPFLAGS'
  3170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3173. depcc="$CC" am_compiler_list=
  3174. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3175. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3176. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3177. echo $ECHO_N "(cached) $ECHO_C" >&6
  3178. else
  3179. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3180. # We make a subdir and do the tests there. Otherwise we can end up
  3181. # making bogus files that we don't know about and never remove. For
  3182. # instance it was reported that on HP-UX the gcc test will end up
  3183. # making a dummy file named `D' -- because `-MD' means `put the output
  3184. # in D'.
  3185. mkdir conftest.dir
  3186. # Copy depcomp to subdir because otherwise we won't find it if we're
  3187. # using a relative directory.
  3188. cp "$am_depcomp" conftest.dir
  3189. cd conftest.dir
  3190. # We will build objects and dependencies in a subdirectory because
  3191. # it helps to detect inapplicable dependency modes. For instance
  3192. # both Tru64's cc and ICC support -MD to output dependencies as a
  3193. # side effect of compilation, but ICC will put the dependencies in
  3194. # the current directory while Tru64 will put them in the object
  3195. # directory.
  3196. mkdir sub
  3197. am_cv_CC_dependencies_compiler_type=none
  3198. if test "$am_compiler_list" = ""; then
  3199. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3200. fi
  3201. for depmode in $am_compiler_list; do
  3202. # Setup a source with many dependencies, because some compilers
  3203. # like to wrap large dependency lists on column 80 (with \), and
  3204. # we should not choose a depcomp mode which is confused by this.
  3205. #
  3206. # We need to recreate these files for each test, as the compiler may
  3207. # overwrite some of them when testing with obscure command lines.
  3208. # This happens at least with the AIX C compiler.
  3209. : > sub/conftest.c
  3210. for i in 1 2 3 4 5 6; do
  3211. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3212. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3213. # Solaris 8's {/usr,}/bin/sh.
  3214. touch sub/conftst$i.h
  3215. done
  3216. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3217. case $depmode in
  3218. nosideeffect)
  3219. # after this tag, mechanisms are not by side-effect, so they'll
  3220. # only be used when explicitly requested
  3221. if test "x$enable_dependency_tracking" = xyes; then
  3222. continue
  3223. else
  3224. break
  3225. fi
  3226. ;;
  3227. none) break ;;
  3228. esac
  3229. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3230. # mode. It turns out that the SunPro C++ compiler does not properly
  3231. # handle `-M -o', and we need to detect this.
  3232. if depmode=$depmode \
  3233. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3234. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3235. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3236. >/dev/null 2>conftest.err &&
  3237. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3238. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3239. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3240. # icc doesn't choke on unknown options, it will just issue warnings
  3241. # or remarks (even with -Werror). So we grep stderr for any message
  3242. # that says an option was ignored or not supported.
  3243. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3244. # icc: Command line warning: ignoring option '-M'; no argument required
  3245. # The diagnosis changed in icc 8.0:
  3246. # icc: Command line remark: option '-MP' not supported
  3247. if (grep 'ignoring option' conftest.err ||
  3248. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3249. am_cv_CC_dependencies_compiler_type=$depmode
  3250. break
  3251. fi
  3252. fi
  3253. done
  3254. cd ..
  3255. rm -rf conftest.dir
  3256. else
  3257. am_cv_CC_dependencies_compiler_type=none
  3258. fi
  3259. fi
  3260. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3261. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3262. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3263. if
  3264. test "x$enable_dependency_tracking" != xno \
  3265. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3266. am__fastdepCC_TRUE=
  3267. am__fastdepCC_FALSE='#'
  3268. else
  3269. am__fastdepCC_TRUE='#'
  3270. am__fastdepCC_FALSE=
  3271. fi
  3272. if test "x$CC" != xcc; then
  3273. echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3274. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
  3275. else
  3276. echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3277. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
  3278. fi
  3279. set dummy $CC; ac_cc=`echo $2 |
  3280. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3281. if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
  3282. echo $ECHO_N "(cached) $ECHO_C" >&6
  3283. else
  3284. cat >conftest.$ac_ext <<_ACEOF
  3285. /* confdefs.h. */
  3286. _ACEOF
  3287. cat confdefs.h >>conftest.$ac_ext
  3288. cat >>conftest.$ac_ext <<_ACEOF
  3289. /* end confdefs.h. */
  3290. int
  3291. main ()
  3292. {
  3293. ;
  3294. return 0;
  3295. }
  3296. _ACEOF
  3297. # Make sure it works both with $CC and with simple cc.
  3298. # We do the test twice because some compilers refuse to overwrite an
  3299. # existing .o file with -o, though they will create one.
  3300. ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3301. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3302. (eval $ac_try) 2>&5
  3303. ac_status=$?
  3304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3305. (exit $ac_status); } &&
  3306. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3307. (eval $ac_try) 2>&5
  3308. ac_status=$?
  3309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3310. (exit $ac_status); };
  3311. then
  3312. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3313. if test "x$CC" != xcc; then
  3314. # Test first that cc exists at all.
  3315. if { ac_try='cc -c conftest.$ac_ext >&5'
  3316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3317. (eval $ac_try) 2>&5
  3318. ac_status=$?
  3319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3320. (exit $ac_status); }; }; then
  3321. ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
  3322. if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3323. (eval $ac_try) 2>&5
  3324. ac_status=$?
  3325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3326. (exit $ac_status); } &&
  3327. test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3328. (eval $ac_try) 2>&5
  3329. ac_status=$?
  3330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3331. (exit $ac_status); };
  3332. then
  3333. # cc works too.
  3334. :
  3335. else
  3336. # cc exists but doesn't like -o.
  3337. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3338. fi
  3339. fi
  3340. fi
  3341. else
  3342. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3343. fi
  3344. rm -f conftest*
  3345. fi
  3346. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3347. echo "$as_me:$LINENO: result: yes" >&5
  3348. echo "${ECHO_T}yes" >&6
  3349. else
  3350. echo "$as_me:$LINENO: result: no" >&5
  3351. echo "${ECHO_T}no" >&6
  3352. cat >>confdefs.h <<\_ACEOF
  3353. #define NO_MINUS_C_MINUS_O 1
  3354. _ACEOF
  3355. fi
  3356. # FIXME: we rely on the cache variable name because
  3357. # there is no other way.
  3358. set dummy $CC
  3359. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3360. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3361. # Losing compiler, so override with the script.
  3362. # FIXME: It is wrong to rewrite CC.
  3363. # But if we don't then we get into trouble of one sort or another.
  3364. # A longer-term fix would be to have automake use am__CC in this case,
  3365. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3366. CC="$am_aux_dir/compile $CC"
  3367. fi
  3368. # disable static libs by default - we only use a couple
  3369. # Check whether --enable-static or --disable-static was given.
  3370. if test "${enable_static+set}" = set; then
  3371. enableval="$enable_static"
  3372. p=${PACKAGE-default}
  3373. case $enableval in
  3374. yes) enable_static=yes ;;
  3375. no) enable_static=no ;;
  3376. *)
  3377. enable_static=no
  3378. # Look at the argument we got. We use all the common list separators.
  3379. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3380. for pkg in $enableval; do
  3381. IFS="$lt_save_ifs"
  3382. if test "X$pkg" = "X$p"; then
  3383. enable_static=yes
  3384. fi
  3385. done
  3386. IFS="$lt_save_ifs"
  3387. ;;
  3388. esac
  3389. else
  3390. enable_static=no
  3391. fi;
  3392. # Check whether --enable-shared or --disable-shared was given.
  3393. if test "${enable_shared+set}" = set; then
  3394. enableval="$enable_shared"
  3395. p=${PACKAGE-default}
  3396. case $enableval in
  3397. yes) enable_shared=yes ;;
  3398. no) enable_shared=no ;;
  3399. *)
  3400. enable_shared=no
  3401. # Look at the argument we got. We use all the common list separators.
  3402. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3403. for pkg in $enableval; do
  3404. IFS="$lt_save_ifs"
  3405. if test "X$pkg" = "X$p"; then
  3406. enable_shared=yes
  3407. fi
  3408. done
  3409. IFS="$lt_save_ifs"
  3410. ;;
  3411. esac
  3412. else
  3413. enable_shared=yes
  3414. fi;
  3415. # Check whether --enable-fast-install or --disable-fast-install was given.
  3416. if test "${enable_fast_install+set}" = set; then
  3417. enableval="$enable_fast_install"
  3418. p=${PACKAGE-default}
  3419. case $enableval in
  3420. yes) enable_fast_install=yes ;;
  3421. no) enable_fast_install=no ;;
  3422. *)
  3423. enable_fast_install=no
  3424. # Look at the argument we got. We use all the common list separators.
  3425. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3426. for pkg in $enableval; do
  3427. IFS="$lt_save_ifs"
  3428. if test "X$pkg" = "X$p"; then
  3429. enable_fast_install=yes
  3430. fi
  3431. done
  3432. IFS="$lt_save_ifs"
  3433. ;;
  3434. esac
  3435. else
  3436. enable_fast_install=yes
  3437. fi;
  3438. echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3439. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  3440. if test "${lt_cv_path_SED+set}" = set; then
  3441. echo $ECHO_N "(cached) $ECHO_C" >&6
  3442. else
  3443. # Loop through the user's path and test for sed and gsed.
  3444. # Then use that list of sed's as ones to test for truncation.
  3445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3446. for as_dir in $PATH
  3447. do
  3448. IFS=$as_save_IFS
  3449. test -z "$as_dir" && as_dir=.
  3450. for lt_ac_prog in sed gsed; do
  3451. for ac_exec_ext in '' $ac_executable_extensions; do
  3452. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3453. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3454. fi
  3455. done
  3456. done
  3457. done
  3458. lt_ac_max=0
  3459. lt_ac_count=0
  3460. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3461. # along with /bin/sed that truncates output.
  3462. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3463. test ! -f $lt_ac_sed && continue
  3464. cat /dev/null > conftest.in
  3465. lt_ac_count=0
  3466. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3467. # Check for GNU sed and select it if it is found.
  3468. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3469. lt_cv_path_SED=$lt_ac_sed
  3470. break
  3471. fi
  3472. while true; do
  3473. cat conftest.in conftest.in >conftest.tmp
  3474. mv conftest.tmp conftest.in
  3475. cp conftest.in conftest.nl
  3476. echo >>conftest.nl
  3477. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3478. cmp -s conftest.out conftest.nl || break
  3479. # 10000 chars as input seems more than enough
  3480. test $lt_ac_count -gt 10 && break
  3481. lt_ac_count=`expr $lt_ac_count + 1`
  3482. if test $lt_ac_count -gt $lt_ac_max; then
  3483. lt_ac_max=$lt_ac_count
  3484. lt_cv_path_SED=$lt_ac_sed
  3485. fi
  3486. done
  3487. done
  3488. fi
  3489. SED=$lt_cv_path_SED
  3490. echo "$as_me:$LINENO: result: $SED" >&5
  3491. echo "${ECHO_T}$SED" >&6
  3492. echo "$as_me:$LINENO: checking for egrep" >&5
  3493. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3494. if test "${ac_cv_prog_egrep+set}" = set; then
  3495. echo $ECHO_N "(cached) $ECHO_C" >&6
  3496. else
  3497. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3498. then ac_cv_prog_egrep='grep -E'
  3499. else ac_cv_prog_egrep='egrep'
  3500. fi
  3501. fi
  3502. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3503. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3504. EGREP=$ac_cv_prog_egrep
  3505. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  3506. if test "${with_gnu_ld+set}" = set; then
  3507. withval="$with_gnu_ld"
  3508. test "$withval" = no || with_gnu_ld=yes
  3509. else
  3510. with_gnu_ld=no
  3511. fi;
  3512. ac_prog=ld
  3513. if test "$GCC" = yes; then
  3514. # Check if gcc -print-prog-name=ld gives a path.
  3515. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3516. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  3517. case $host in
  3518. *-*-mingw*)
  3519. # gcc leaves a trailing carriage return which upsets mingw
  3520. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3521. *)
  3522. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3523. esac
  3524. case $ac_prog in
  3525. # Accept absolute paths.
  3526. [\\/]* | ?:[\\/]*)
  3527. re_direlt='/[^/][^/]*/\.\./'
  3528. # Canonicalize the pathname of ld
  3529. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3530. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3531. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3532. done
  3533. test -z "$LD" && LD="$ac_prog"
  3534. ;;
  3535. "")
  3536. # If it fails, then pretend we aren't using GCC.
  3537. ac_prog=ld
  3538. ;;
  3539. *)
  3540. # If it is relative, then search for the first ld in PATH.
  3541. with_gnu_ld=unknown
  3542. ;;
  3543. esac
  3544. elif test "$with_gnu_ld" = yes; then
  3545. echo "$as_me:$LINENO: checking for GNU ld" >&5
  3546. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  3547. else
  3548. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3549. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  3550. fi
  3551. if test "${lt_cv_path_LD+set}" = set; then
  3552. echo $ECHO_N "(cached) $ECHO_C" >&6
  3553. else
  3554. if test -z "$LD"; then
  3555. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3556. for ac_dir in $PATH; do
  3557. IFS="$lt_save_ifs"
  3558. test -z "$ac_dir" && ac_dir=.
  3559. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3560. lt_cv_path_LD="$ac_dir/$ac_prog"
  3561. # Check to see if the program is GNU ld. I'd rather use --version,
  3562. # but apparently some variants of GNU ld only accept -v.
  3563. # Break only if it was the GNU/non-GNU ld that we prefer.
  3564. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3565. *GNU* | *'with BFD'*)
  3566. test "$with_gnu_ld" != no && break
  3567. ;;
  3568. *)
  3569. test "$with_gnu_ld" != yes && break
  3570. ;;
  3571. esac
  3572. fi
  3573. done
  3574. IFS="$lt_save_ifs"
  3575. else
  3576. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3577. fi
  3578. fi
  3579. LD="$lt_cv_path_LD"
  3580. if test -n "$LD"; then
  3581. echo "$as_me:$LINENO: result: $LD" >&5
  3582. echo "${ECHO_T}$LD" >&6
  3583. else
  3584. echo "$as_me:$LINENO: result: no" >&5
  3585. echo "${ECHO_T}no" >&6
  3586. fi
  3587. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3588. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3589. { (exit 1); exit 1; }; }
  3590. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3591. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  3592. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3593. echo $ECHO_N "(cached) $ECHO_C" >&6
  3594. else
  3595. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3596. case `$LD -v 2>&1 </dev/null` in
  3597. *GNU* | *'with BFD'*)
  3598. lt_cv_prog_gnu_ld=yes
  3599. ;;
  3600. *)
  3601. lt_cv_prog_gnu_ld=no
  3602. ;;
  3603. esac
  3604. fi
  3605. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3606. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  3607. with_gnu_ld=$lt_cv_prog_gnu_ld
  3608. echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3609. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  3610. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3611. echo $ECHO_N "(cached) $ECHO_C" >&6
  3612. else
  3613. lt_cv_ld_reload_flag='-r'
  3614. fi
  3615. echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3616. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  3617. reload_flag=$lt_cv_ld_reload_flag
  3618. case $reload_flag in
  3619. "" | " "*) ;;
  3620. *) reload_flag=" $reload_flag" ;;
  3621. esac
  3622. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3623. case $host_os in
  3624. darwin*)
  3625. if test "$GCC" = yes; then
  3626. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3627. else
  3628. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3629. fi
  3630. ;;
  3631. esac
  3632. echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3633. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  3634. if test "${lt_cv_path_NM+set}" = set; then
  3635. echo $ECHO_N "(cached) $ECHO_C" >&6
  3636. else
  3637. if test -n "$NM"; then
  3638. # Let the user override the test.
  3639. lt_cv_path_NM="$NM"
  3640. else
  3641. lt_nm_to_check="${ac_tool_prefix}nm"
  3642. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3643. lt_nm_to_check="$lt_nm_to_check nm"
  3644. fi
  3645. for lt_tmp_nm in $lt_nm_to_check; do
  3646. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3647. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3648. IFS="$lt_save_ifs"
  3649. test -z "$ac_dir" && ac_dir=.
  3650. tmp_nm="$ac_dir/$lt_tmp_nm"
  3651. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3652. # Check to see if the nm accepts a BSD-compat flag.
  3653. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3654. # nm: unknown option "B" ignored
  3655. # Tru64's nm complains that /dev/null is an invalid object file
  3656. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3657. */dev/null* | *'Invalid file or object type'*)
  3658. lt_cv_path_NM="$tmp_nm -B"
  3659. break
  3660. ;;
  3661. *)
  3662. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3663. */dev/null*)
  3664. lt_cv_path_NM="$tmp_nm -p"
  3665. break
  3666. ;;
  3667. *)
  3668. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3669. continue # so that we can try to find one that supports BSD flags
  3670. ;;
  3671. esac
  3672. ;;
  3673. esac
  3674. fi
  3675. done
  3676. IFS="$lt_save_ifs"
  3677. done
  3678. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3679. fi
  3680. fi
  3681. echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3682. echo "${ECHO_T}$lt_cv_path_NM" >&6
  3683. NM="$lt_cv_path_NM"
  3684. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3685. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3686. LN_S=$as_ln_s
  3687. if test "$LN_S" = "ln -s"; then
  3688. echo "$as_me:$LINENO: result: yes" >&5
  3689. echo "${ECHO_T}yes" >&6
  3690. else
  3691. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3692. echo "${ECHO_T}no, using $LN_S" >&6
  3693. fi
  3694. echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  3695. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  3696. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3697. echo $ECHO_N "(cached) $ECHO_C" >&6
  3698. else
  3699. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3700. lt_cv_file_magic_test_file=
  3701. lt_cv_deplibs_check_method='unknown'
  3702. # Need to set the preceding variable on all platforms that support
  3703. # interlibrary dependencies.
  3704. # 'none' -- dependencies not supported.
  3705. # `unknown' -- same as none, but documents that we really don't know.
  3706. # 'pass_all' -- all dependencies passed with no checks.
  3707. # 'test_compile' -- check by making test program.
  3708. # 'file_magic [[regex]]' -- check by looking for files in library path
  3709. # which responds to the $file_magic_cmd with a given extended regex.
  3710. # If you have `file' or equivalent on your system and you're not sure
  3711. # whether `pass_all' will *always* work, you probably want this one.
  3712. case $host_os in
  3713. aix4* | aix5*)
  3714. lt_cv_deplibs_check_method=pass_all
  3715. ;;
  3716. beos*)
  3717. lt_cv_deplibs_check_method=pass_all
  3718. ;;
  3719. bsdi[45]*)
  3720. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  3721. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3722. lt_cv_file_magic_test_file=/shlib/libc.so
  3723. ;;
  3724. cygwin*)
  3725. # func_win32_libid is a shell function defined in ltmain.sh
  3726. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3727. lt_cv_file_magic_cmd='func_win32_libid'
  3728. ;;
  3729. mingw* | pw32*)
  3730. # Base MSYS/MinGW do not provide the 'file' command needed by
  3731. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3732. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3733. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3734. ;;
  3735. darwin* | rhapsody*)
  3736. lt_cv_deplibs_check_method=pass_all
  3737. ;;
  3738. freebsd* | kfreebsd*-gnu | dragonfly*)
  3739. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3740. case $host_cpu in
  3741. i*86 )
  3742. # Not sure whether the presence of OpenBSD here was a mistake.
  3743. # Let's accept both of them until this is cleared up.
  3744. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  3745. lt_cv_file_magic_cmd=/usr/bin/file
  3746. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3747. ;;
  3748. esac
  3749. else
  3750. lt_cv_deplibs_check_method=pass_all
  3751. fi
  3752. ;;
  3753. gnu*)
  3754. lt_cv_deplibs_check_method=pass_all
  3755. ;;
  3756. hpux10.20* | hpux11*)
  3757. lt_cv_file_magic_cmd=/usr/bin/file
  3758. case $host_cpu in
  3759. ia64*)
  3760. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  3761. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3762. ;;
  3763. hppa*64*)
  3764. 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]'
  3765. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3766. ;;
  3767. *)
  3768. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  3769. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3770. ;;
  3771. esac
  3772. ;;
  3773. interix3*)
  3774. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3775. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  3776. ;;
  3777. irix5* | irix6* | nonstopux*)
  3778. case $LD in
  3779. *-32|*"-32 ") libmagic=32-bit;;
  3780. *-n32|*"-n32 ") libmagic=N32;;
  3781. *-64|*"-64 ") libmagic=64-bit;;
  3782. *) libmagic=never-match;;
  3783. esac
  3784. lt_cv_deplibs_check_method=pass_all
  3785. ;;
  3786. # This must be Linux ELF.
  3787. linux*)
  3788. lt_cv_deplibs_check_method=pass_all
  3789. ;;
  3790. netbsd*)
  3791. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3792. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3793. else
  3794. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  3795. fi
  3796. ;;
  3797. newos6*)
  3798. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  3799. lt_cv_file_magic_cmd=/usr/bin/file
  3800. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3801. ;;
  3802. nto-qnx*)
  3803. lt_cv_deplibs_check_method=unknown
  3804. ;;
  3805. openbsd*)
  3806. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3807. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  3808. else
  3809. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  3810. fi
  3811. ;;
  3812. osf3* | osf4* | osf5*)
  3813. lt_cv_deplibs_check_method=pass_all
  3814. ;;
  3815. solaris*)
  3816. lt_cv_deplibs_check_method=pass_all
  3817. ;;
  3818. sysv4 | sysv4.3*)
  3819. case $host_vendor in
  3820. motorola)
  3821. 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]'
  3822. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3823. ;;
  3824. ncr)
  3825. lt_cv_deplibs_check_method=pass_all
  3826. ;;
  3827. sequent)
  3828. lt_cv_file_magic_cmd='/bin/file'
  3829. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  3830. ;;
  3831. sni)
  3832. lt_cv_file_magic_cmd='/bin/file'
  3833. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  3834. lt_cv_file_magic_test_file=/lib/libc.so
  3835. ;;
  3836. siemens)
  3837. lt_cv_deplibs_check_method=pass_all
  3838. ;;
  3839. pc)
  3840. lt_cv_deplibs_check_method=pass_all
  3841. ;;
  3842. esac
  3843. ;;
  3844. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3845. lt_cv_deplibs_check_method=pass_all
  3846. ;;
  3847. esac
  3848. fi
  3849. echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  3850. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  3851. file_magic_cmd=$lt_cv_file_magic_cmd
  3852. deplibs_check_method=$lt_cv_deplibs_check_method
  3853. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3854. # If no C compiler was specified, use CC.
  3855. LTCC=${LTCC-"$CC"}
  3856. # If no C compiler flags were specified, use CFLAGS.
  3857. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  3858. # Allow CC to be a program name with arguments.
  3859. compiler=$CC
  3860. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  3861. if test "${enable_libtool_lock+set}" = set; then
  3862. enableval="$enable_libtool_lock"
  3863. fi;
  3864. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3865. # Some flags need to be propagated to the compiler or linker for good
  3866. # libtool support.
  3867. case $host in
  3868. ia64-*-hpux*)
  3869. # Find out which ABI we are using.
  3870. echo 'int i;' > conftest.$ac_ext
  3871. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3872. (eval $ac_compile) 2>&5
  3873. ac_status=$?
  3874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. (exit $ac_status); }; then
  3876. case `/usr/bin/file conftest.$ac_objext` in
  3877. *ELF-32*)
  3878. HPUX_IA64_MODE="32"
  3879. ;;
  3880. *ELF-64*)
  3881. HPUX_IA64_MODE="64"
  3882. ;;
  3883. esac
  3884. fi
  3885. rm -rf conftest*
  3886. ;;
  3887. *-*-irix6*)
  3888. # Find out which ABI we are using.
  3889. echo '#line 4313 "configure"' > conftest.$ac_ext
  3890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3891. (eval $ac_compile) 2>&5
  3892. ac_status=$?
  3893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3894. (exit $ac_status); }; then
  3895. if test "$lt_cv_prog_gnu_ld" = yes; then
  3896. case `/usr/bin/file conftest.$ac_objext` in
  3897. *32-bit*)
  3898. LD="${LD-ld} -melf32bsmip"
  3899. ;;
  3900. *N32*)
  3901. LD="${LD-ld} -melf32bmipn32"
  3902. ;;
  3903. *64-bit*)
  3904. LD="${LD-ld} -melf64bmip"
  3905. ;;
  3906. esac
  3907. else
  3908. case `/usr/bin/file conftest.$ac_objext` in
  3909. *32-bit*)
  3910. LD="${LD-ld} -32"
  3911. ;;
  3912. *N32*)
  3913. LD="${LD-ld} -n32"
  3914. ;;
  3915. *64-bit*)
  3916. LD="${LD-ld} -64"
  3917. ;;
  3918. esac
  3919. fi
  3920. fi
  3921. rm -rf conftest*
  3922. ;;
  3923. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  3924. # Find out which ABI we are using.
  3925. echo 'int i;' > conftest.$ac_ext
  3926. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3927. (eval $ac_compile) 2>&5
  3928. ac_status=$?
  3929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3930. (exit $ac_status); }; then
  3931. case `/usr/bin/file conftest.o` in
  3932. *32-bit*)
  3933. case $host in
  3934. x86_64-*linux*)
  3935. LD="${LD-ld} -m elf_i386"
  3936. ;;
  3937. ppc64-*linux*|powerpc64-*linux*)
  3938. LD="${LD-ld} -m elf32ppclinux"
  3939. ;;
  3940. s390x-*linux*)
  3941. LD="${LD-ld} -m elf_s390"
  3942. ;;
  3943. sparc64-*linux*)
  3944. LD="${LD-ld} -m elf32_sparc"
  3945. ;;
  3946. esac
  3947. ;;
  3948. *64-bit*)
  3949. case $host in
  3950. x86_64-*linux*)
  3951. LD="${LD-ld} -m elf_x86_64"
  3952. ;;
  3953. ppc*-*linux*|powerpc*-*linux*)
  3954. LD="${LD-ld} -m elf64ppc"
  3955. ;;
  3956. s390*-*linux*)
  3957. LD="${LD-ld} -m elf64_s390"
  3958. ;;
  3959. sparc*-*linux*)
  3960. LD="${LD-ld} -m elf64_sparc"
  3961. ;;
  3962. esac
  3963. ;;
  3964. esac
  3965. fi
  3966. rm -rf conftest*
  3967. ;;
  3968. *-*-sco3.2v5*)
  3969. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3970. SAVE_CFLAGS="$CFLAGS"
  3971. CFLAGS="$CFLAGS -belf"
  3972. echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  3973. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  3974. if test "${lt_cv_cc_needs_belf+set}" = set; then
  3975. echo $ECHO_N "(cached) $ECHO_C" >&6
  3976. else
  3977. ac_ext=c
  3978. ac_cpp='$CPP $CPPFLAGS'
  3979. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3980. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3982. cat >conftest.$ac_ext <<_ACEOF
  3983. /* confdefs.h. */
  3984. _ACEOF
  3985. cat confdefs.h >>conftest.$ac_ext
  3986. cat >>conftest.$ac_ext <<_ACEOF
  3987. /* end confdefs.h. */
  3988. int
  3989. main ()
  3990. {
  3991. ;
  3992. return 0;
  3993. }
  3994. _ACEOF
  3995. rm -f conftest.$ac_objext conftest$ac_exeext
  3996. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3997. (eval $ac_link) 2>conftest.er1
  3998. ac_status=$?
  3999. grep -v '^ *+' conftest.er1 >conftest.err
  4000. rm -f conftest.er1
  4001. cat conftest.err >&5
  4002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4003. (exit $ac_status); } &&
  4004. { ac_try='test -z "$ac_c_werror_flag"
  4005. || test ! -s conftest.err'
  4006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4007. (eval $ac_try) 2>&5
  4008. ac_status=$?
  4009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4010. (exit $ac_status); }; } &&
  4011. { ac_try='test -s conftest$ac_exeext'
  4012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4013. (eval $ac_try) 2>&5
  4014. ac_status=$?
  4015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4016. (exit $ac_status); }; }; then
  4017. lt_cv_cc_needs_belf=yes
  4018. else
  4019. echo "$as_me: failed program was:" >&5
  4020. sed 's/^/| /' conftest.$ac_ext >&5
  4021. lt_cv_cc_needs_belf=no
  4022. fi
  4023. rm -f conftest.err conftest.$ac_objext \
  4024. conftest$ac_exeext conftest.$ac_ext
  4025. ac_ext=c
  4026. ac_cpp='$CPP $CPPFLAGS'
  4027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4030. fi
  4031. echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4032. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  4033. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4034. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4035. CFLAGS="$SAVE_CFLAGS"
  4036. fi
  4037. ;;
  4038. sparc*-*solaris*)
  4039. # Find out which ABI we are using.
  4040. echo 'int i;' > conftest.$ac_ext
  4041. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4042. (eval $ac_compile) 2>&5
  4043. ac_status=$?
  4044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4045. (exit $ac_status); }; then
  4046. case `/usr/bin/file conftest.o` in
  4047. *64-bit*)
  4048. case $lt_cv_prog_gnu_ld in
  4049. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4050. *) LD="${LD-ld} -64" ;;
  4051. esac
  4052. ;;
  4053. esac
  4054. fi
  4055. rm -rf conftest*
  4056. ;;
  4057. esac
  4058. need_locks="$enable_libtool_lock"
  4059. ac_ext=c
  4060. ac_cpp='$CPP $CPPFLAGS'
  4061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4064. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4065. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4066. # On Suns, sometimes $CPP names a directory.
  4067. if test -n "$CPP" && test -d "$CPP"; then
  4068. CPP=
  4069. fi
  4070. if test -z "$CPP"; then
  4071. if test "${ac_cv_prog_CPP+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. # Double quotes because CPP needs to be expanded
  4075. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4076. do
  4077. ac_preproc_ok=false
  4078. for ac_c_preproc_warn_flag in '' yes
  4079. do
  4080. # Use a header file that comes with gcc, so configuring glibc
  4081. # with a fresh cross-compiler works.
  4082. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4083. # <limits.h> exists even on freestanding compilers.
  4084. # On the NeXT, cc -E runs the code through the compiler's parser,
  4085. # not just through cpp. "Syntax error" is here to catch this case.
  4086. cat >conftest.$ac_ext <<_ACEOF
  4087. /* confdefs.h. */
  4088. _ACEOF
  4089. cat confdefs.h >>conftest.$ac_ext
  4090. cat >>conftest.$ac_ext <<_ACEOF
  4091. /* end confdefs.h. */
  4092. #ifdef __STDC__
  4093. # include <limits.h>
  4094. #else
  4095. # include <assert.h>
  4096. #endif
  4097. Syntax error
  4098. _ACEOF
  4099. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4100. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4101. ac_status=$?
  4102. grep -v '^ *+' conftest.er1 >conftest.err
  4103. rm -f conftest.er1
  4104. cat conftest.err >&5
  4105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4106. (exit $ac_status); } >/dev/null; then
  4107. if test -s conftest.err; then
  4108. ac_cpp_err=$ac_c_preproc_warn_flag
  4109. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4110. else
  4111. ac_cpp_err=
  4112. fi
  4113. else
  4114. ac_cpp_err=yes
  4115. fi
  4116. if test -z "$ac_cpp_err"; then
  4117. :
  4118. else
  4119. echo "$as_me: failed program was:" >&5
  4120. sed 's/^/| /' conftest.$ac_ext >&5
  4121. # Broken: fails on valid input.
  4122. continue
  4123. fi
  4124. rm -f conftest.err conftest.$ac_ext
  4125. # OK, works on sane cases. Now check whether non-existent headers
  4126. # can be detected and how.
  4127. cat >conftest.$ac_ext <<_ACEOF
  4128. /* confdefs.h. */
  4129. _ACEOF
  4130. cat confdefs.h >>conftest.$ac_ext
  4131. cat >>conftest.$ac_ext <<_ACEOF
  4132. /* end confdefs.h. */
  4133. #include <ac_nonexistent.h>
  4134. _ACEOF
  4135. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4136. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4137. ac_status=$?
  4138. grep -v '^ *+' conftest.er1 >conftest.err
  4139. rm -f conftest.er1
  4140. cat conftest.err >&5
  4141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4142. (exit $ac_status); } >/dev/null; then
  4143. if test -s conftest.err; then
  4144. ac_cpp_err=$ac_c_preproc_warn_flag
  4145. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4146. else
  4147. ac_cpp_err=
  4148. fi
  4149. else
  4150. ac_cpp_err=yes
  4151. fi
  4152. if test -z "$ac_cpp_err"; then
  4153. # Broken: success on invalid input.
  4154. continue
  4155. else
  4156. echo "$as_me: failed program was:" >&5
  4157. sed 's/^/| /' conftest.$ac_ext >&5
  4158. # Passes both tests.
  4159. ac_preproc_ok=:
  4160. break
  4161. fi
  4162. rm -f conftest.err conftest.$ac_ext
  4163. done
  4164. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4165. rm -f conftest.err conftest.$ac_ext
  4166. if $ac_preproc_ok; then
  4167. break
  4168. fi
  4169. done
  4170. ac_cv_prog_CPP=$CPP
  4171. fi
  4172. CPP=$ac_cv_prog_CPP
  4173. else
  4174. ac_cv_prog_CPP=$CPP
  4175. fi
  4176. echo "$as_me:$LINENO: result: $CPP" >&5
  4177. echo "${ECHO_T}$CPP" >&6
  4178. ac_preproc_ok=false
  4179. for ac_c_preproc_warn_flag in '' yes
  4180. do
  4181. # Use a header file that comes with gcc, so configuring glibc
  4182. # with a fresh cross-compiler works.
  4183. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4184. # <limits.h> exists even on freestanding compilers.
  4185. # On the NeXT, cc -E runs the code through the compiler's parser,
  4186. # not just through cpp. "Syntax error" is here to catch this case.
  4187. cat >conftest.$ac_ext <<_ACEOF
  4188. /* confdefs.h. */
  4189. _ACEOF
  4190. cat confdefs.h >>conftest.$ac_ext
  4191. cat >>conftest.$ac_ext <<_ACEOF
  4192. /* end confdefs.h. */
  4193. #ifdef __STDC__
  4194. # include <limits.h>
  4195. #else
  4196. # include <assert.h>
  4197. #endif
  4198. Syntax error
  4199. _ACEOF
  4200. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4201. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4202. ac_status=$?
  4203. grep -v '^ *+' conftest.er1 >conftest.err
  4204. rm -f conftest.er1
  4205. cat conftest.err >&5
  4206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4207. (exit $ac_status); } >/dev/null; then
  4208. if test -s conftest.err; then
  4209. ac_cpp_err=$ac_c_preproc_warn_flag
  4210. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4211. else
  4212. ac_cpp_err=
  4213. fi
  4214. else
  4215. ac_cpp_err=yes
  4216. fi
  4217. if test -z "$ac_cpp_err"; then
  4218. :
  4219. else
  4220. echo "$as_me: failed program was:" >&5
  4221. sed 's/^/| /' conftest.$ac_ext >&5
  4222. # Broken: fails on valid input.
  4223. continue
  4224. fi
  4225. rm -f conftest.err conftest.$ac_ext
  4226. # OK, works on sane cases. Now check whether non-existent headers
  4227. # can be detected and how.
  4228. cat >conftest.$ac_ext <<_ACEOF
  4229. /* confdefs.h. */
  4230. _ACEOF
  4231. cat confdefs.h >>conftest.$ac_ext
  4232. cat >>conftest.$ac_ext <<_ACEOF
  4233. /* end confdefs.h. */
  4234. #include <ac_nonexistent.h>
  4235. _ACEOF
  4236. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4237. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4238. ac_status=$?
  4239. grep -v '^ *+' conftest.er1 >conftest.err
  4240. rm -f conftest.er1
  4241. cat conftest.err >&5
  4242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4243. (exit $ac_status); } >/dev/null; then
  4244. if test -s conftest.err; then
  4245. ac_cpp_err=$ac_c_preproc_warn_flag
  4246. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4247. else
  4248. ac_cpp_err=
  4249. fi
  4250. else
  4251. ac_cpp_err=yes
  4252. fi
  4253. if test -z "$ac_cpp_err"; then
  4254. # Broken: success on invalid input.
  4255. continue
  4256. else
  4257. echo "$as_me: failed program was:" >&5
  4258. sed 's/^/| /' conftest.$ac_ext >&5
  4259. # Passes both tests.
  4260. ac_preproc_ok=:
  4261. break
  4262. fi
  4263. rm -f conftest.err conftest.$ac_ext
  4264. done
  4265. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4266. rm -f conftest.err conftest.$ac_ext
  4267. if $ac_preproc_ok; then
  4268. :
  4269. else
  4270. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4271. See \`config.log' for more details." >&5
  4272. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4273. See \`config.log' for more details." >&2;}
  4274. { (exit 1); exit 1; }; }
  4275. fi
  4276. ac_ext=c
  4277. ac_cpp='$CPP $CPPFLAGS'
  4278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4281. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4282. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4283. if test "${ac_cv_header_stdc+set}" = set; then
  4284. echo $ECHO_N "(cached) $ECHO_C" >&6
  4285. else
  4286. cat >conftest.$ac_ext <<_ACEOF
  4287. /* confdefs.h. */
  4288. _ACEOF
  4289. cat confdefs.h >>conftest.$ac_ext
  4290. cat >>conftest.$ac_ext <<_ACEOF
  4291. /* end confdefs.h. */
  4292. #include <stdlib.h>
  4293. #include <stdarg.h>
  4294. #include <string.h>
  4295. #include <float.h>
  4296. int
  4297. main ()
  4298. {
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. rm -f conftest.$ac_objext
  4304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4305. (eval $ac_compile) 2>conftest.er1
  4306. ac_status=$?
  4307. grep -v '^ *+' conftest.er1 >conftest.err
  4308. rm -f conftest.er1
  4309. cat conftest.err >&5
  4310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4311. (exit $ac_status); } &&
  4312. { ac_try='test -z "$ac_c_werror_flag"
  4313. || test ! -s conftest.err'
  4314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4315. (eval $ac_try) 2>&5
  4316. ac_status=$?
  4317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4318. (exit $ac_status); }; } &&
  4319. { ac_try='test -s conftest.$ac_objext'
  4320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4321. (eval $ac_try) 2>&5
  4322. ac_status=$?
  4323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4324. (exit $ac_status); }; }; then
  4325. ac_cv_header_stdc=yes
  4326. else
  4327. echo "$as_me: failed program was:" >&5
  4328. sed 's/^/| /' conftest.$ac_ext >&5
  4329. ac_cv_header_stdc=no
  4330. fi
  4331. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4332. if test $ac_cv_header_stdc = yes; then
  4333. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4334. cat >conftest.$ac_ext <<_ACEOF
  4335. /* confdefs.h. */
  4336. _ACEOF
  4337. cat confdefs.h >>conftest.$ac_ext
  4338. cat >>conftest.$ac_ext <<_ACEOF
  4339. /* end confdefs.h. */
  4340. #include <string.h>
  4341. _ACEOF
  4342. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4343. $EGREP "memchr" >/dev/null 2>&1; then
  4344. :
  4345. else
  4346. ac_cv_header_stdc=no
  4347. fi
  4348. rm -f conftest*
  4349. fi
  4350. if test $ac_cv_header_stdc = yes; then
  4351. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4352. cat >conftest.$ac_ext <<_ACEOF
  4353. /* confdefs.h. */
  4354. _ACEOF
  4355. cat confdefs.h >>conftest.$ac_ext
  4356. cat >>conftest.$ac_ext <<_ACEOF
  4357. /* end confdefs.h. */
  4358. #include <stdlib.h>
  4359. _ACEOF
  4360. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4361. $EGREP "free" >/dev/null 2>&1; then
  4362. :
  4363. else
  4364. ac_cv_header_stdc=no
  4365. fi
  4366. rm -f conftest*
  4367. fi
  4368. if test $ac_cv_header_stdc = yes; then
  4369. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4370. if test "$cross_compiling" = yes; then
  4371. :
  4372. else
  4373. cat >conftest.$ac_ext <<_ACEOF
  4374. /* confdefs.h. */
  4375. _ACEOF
  4376. cat confdefs.h >>conftest.$ac_ext
  4377. cat >>conftest.$ac_ext <<_ACEOF
  4378. /* end confdefs.h. */
  4379. #include <ctype.h>
  4380. #if ((' ' & 0x0FF) == 0x020)
  4381. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4382. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4383. #else
  4384. # define ISLOWER(c) \
  4385. (('a' <= (c) && (c) <= 'i') \
  4386. || ('j' <= (c) && (c) <= 'r') \
  4387. || ('s' <= (c) && (c) <= 'z'))
  4388. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4389. #endif
  4390. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4391. int
  4392. main ()
  4393. {
  4394. int i;
  4395. for (i = 0; i < 256; i++)
  4396. if (XOR (islower (i), ISLOWER (i))
  4397. || toupper (i) != TOUPPER (i))
  4398. exit(2);
  4399. exit (0);
  4400. }
  4401. _ACEOF
  4402. rm -f conftest$ac_exeext
  4403. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4404. (eval $ac_link) 2>&5
  4405. ac_status=$?
  4406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4407. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4409. (eval $ac_try) 2>&5
  4410. ac_status=$?
  4411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4412. (exit $ac_status); }; }; then
  4413. :
  4414. else
  4415. echo "$as_me: program exited with status $ac_status" >&5
  4416. echo "$as_me: failed program was:" >&5
  4417. sed 's/^/| /' conftest.$ac_ext >&5
  4418. ( exit $ac_status )
  4419. ac_cv_header_stdc=no
  4420. fi
  4421. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4422. fi
  4423. fi
  4424. fi
  4425. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4426. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  4427. if test $ac_cv_header_stdc = yes; then
  4428. cat >>confdefs.h <<\_ACEOF
  4429. #define STDC_HEADERS 1
  4430. _ACEOF
  4431. fi
  4432. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4433. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4434. inttypes.h stdint.h unistd.h
  4435. do
  4436. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4437. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4438. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4439. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4440. echo $ECHO_N "(cached) $ECHO_C" >&6
  4441. else
  4442. cat >conftest.$ac_ext <<_ACEOF
  4443. /* confdefs.h. */
  4444. _ACEOF
  4445. cat confdefs.h >>conftest.$ac_ext
  4446. cat >>conftest.$ac_ext <<_ACEOF
  4447. /* end confdefs.h. */
  4448. $ac_includes_default
  4449. #include <$ac_header>
  4450. _ACEOF
  4451. rm -f conftest.$ac_objext
  4452. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4453. (eval $ac_compile) 2>conftest.er1
  4454. ac_status=$?
  4455. grep -v '^ *+' conftest.er1 >conftest.err
  4456. rm -f conftest.er1
  4457. cat conftest.err >&5
  4458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4459. (exit $ac_status); } &&
  4460. { ac_try='test -z "$ac_c_werror_flag"
  4461. || test ! -s conftest.err'
  4462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4463. (eval $ac_try) 2>&5
  4464. ac_status=$?
  4465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4466. (exit $ac_status); }; } &&
  4467. { ac_try='test -s conftest.$ac_objext'
  4468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4469. (eval $ac_try) 2>&5
  4470. ac_status=$?
  4471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472. (exit $ac_status); }; }; then
  4473. eval "$as_ac_Header=yes"
  4474. else
  4475. echo "$as_me: failed program was:" >&5
  4476. sed 's/^/| /' conftest.$ac_ext >&5
  4477. eval "$as_ac_Header=no"
  4478. fi
  4479. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4480. fi
  4481. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4482. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4483. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4484. cat >>confdefs.h <<_ACEOF
  4485. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4486. _ACEOF
  4487. fi
  4488. done
  4489. for ac_header in dlfcn.h
  4490. do
  4491. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4492. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4493. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4494. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4495. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4496. echo $ECHO_N "(cached) $ECHO_C" >&6
  4497. fi
  4498. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4499. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4500. else
  4501. # Is the header compilable?
  4502. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4503. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4504. cat >conftest.$ac_ext <<_ACEOF
  4505. /* confdefs.h. */
  4506. _ACEOF
  4507. cat confdefs.h >>conftest.$ac_ext
  4508. cat >>conftest.$ac_ext <<_ACEOF
  4509. /* end confdefs.h. */
  4510. $ac_includes_default
  4511. #include <$ac_header>
  4512. _ACEOF
  4513. rm -f conftest.$ac_objext
  4514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4515. (eval $ac_compile) 2>conftest.er1
  4516. ac_status=$?
  4517. grep -v '^ *+' conftest.er1 >conftest.err
  4518. rm -f conftest.er1
  4519. cat conftest.err >&5
  4520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4521. (exit $ac_status); } &&
  4522. { ac_try='test -z "$ac_c_werror_flag"
  4523. || test ! -s conftest.err'
  4524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4525. (eval $ac_try) 2>&5
  4526. ac_status=$?
  4527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4528. (exit $ac_status); }; } &&
  4529. { ac_try='test -s conftest.$ac_objext'
  4530. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4531. (eval $ac_try) 2>&5
  4532. ac_status=$?
  4533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4534. (exit $ac_status); }; }; then
  4535. ac_header_compiler=yes
  4536. else
  4537. echo "$as_me: failed program was:" >&5
  4538. sed 's/^/| /' conftest.$ac_ext >&5
  4539. ac_header_compiler=no
  4540. fi
  4541. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4542. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4543. echo "${ECHO_T}$ac_header_compiler" >&6
  4544. # Is the header present?
  4545. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4546. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4547. cat >conftest.$ac_ext <<_ACEOF
  4548. /* confdefs.h. */
  4549. _ACEOF
  4550. cat confdefs.h >>conftest.$ac_ext
  4551. cat >>conftest.$ac_ext <<_ACEOF
  4552. /* end confdefs.h. */
  4553. #include <$ac_header>
  4554. _ACEOF
  4555. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4556. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4557. ac_status=$?
  4558. grep -v '^ *+' conftest.er1 >conftest.err
  4559. rm -f conftest.er1
  4560. cat conftest.err >&5
  4561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4562. (exit $ac_status); } >/dev/null; then
  4563. if test -s conftest.err; then
  4564. ac_cpp_err=$ac_c_preproc_warn_flag
  4565. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4566. else
  4567. ac_cpp_err=
  4568. fi
  4569. else
  4570. ac_cpp_err=yes
  4571. fi
  4572. if test -z "$ac_cpp_err"; then
  4573. ac_header_preproc=yes
  4574. else
  4575. echo "$as_me: failed program was:" >&5
  4576. sed 's/^/| /' conftest.$ac_ext >&5
  4577. ac_header_preproc=no
  4578. fi
  4579. rm -f conftest.err conftest.$ac_ext
  4580. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4581. echo "${ECHO_T}$ac_header_preproc" >&6
  4582. # So? What about this header?
  4583. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4584. yes:no: )
  4585. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4586. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4587. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4588. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4589. ac_header_preproc=yes
  4590. ;;
  4591. no:yes:* )
  4592. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4593. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4594. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4595. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4596. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4597. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4598. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4599. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4600. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4601. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4602. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4603. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4604. (
  4605. cat <<\_ASBOX
  4606. ## ------------------------------------------ ##
  4607. ## Report this to http://bugzilla.redhat.com/ ##
  4608. ## ------------------------------------------ ##
  4609. _ASBOX
  4610. ) |
  4611. sed "s/^/$as_me: WARNING: /" >&2
  4612. ;;
  4613. esac
  4614. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4615. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4616. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4617. echo $ECHO_N "(cached) $ECHO_C" >&6
  4618. else
  4619. eval "$as_ac_Header=\$ac_header_preproc"
  4620. fi
  4621. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4622. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4623. fi
  4624. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4625. cat >>confdefs.h <<_ACEOF
  4626. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4627. _ACEOF
  4628. fi
  4629. done
  4630. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4631. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4632. (test "X$CXX" != "Xg++"))) ; then
  4633. ac_ext=cc
  4634. ac_cpp='$CXXCPP $CPPFLAGS'
  4635. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4636. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4637. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4638. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4639. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  4640. if test -z "$CXXCPP"; then
  4641. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4642. echo $ECHO_N "(cached) $ECHO_C" >&6
  4643. else
  4644. # Double quotes because CXXCPP needs to be expanded
  4645. for CXXCPP in "$CXX -E" "/lib/cpp"
  4646. do
  4647. ac_preproc_ok=false
  4648. for ac_cxx_preproc_warn_flag in '' yes
  4649. do
  4650. # Use a header file that comes with gcc, so configuring glibc
  4651. # with a fresh cross-compiler works.
  4652. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4653. # <limits.h> exists even on freestanding compilers.
  4654. # On the NeXT, cc -E runs the code through the compiler's parser,
  4655. # not just through cpp. "Syntax error" is here to catch this case.
  4656. cat >conftest.$ac_ext <<_ACEOF
  4657. /* confdefs.h. */
  4658. _ACEOF
  4659. cat confdefs.h >>conftest.$ac_ext
  4660. cat >>conftest.$ac_ext <<_ACEOF
  4661. /* end confdefs.h. */
  4662. #ifdef __STDC__
  4663. # include <limits.h>
  4664. #else
  4665. # include <assert.h>
  4666. #endif
  4667. Syntax error
  4668. _ACEOF
  4669. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4670. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4671. ac_status=$?
  4672. grep -v '^ *+' conftest.er1 >conftest.err
  4673. rm -f conftest.er1
  4674. cat conftest.err >&5
  4675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4676. (exit $ac_status); } >/dev/null; then
  4677. if test -s conftest.err; then
  4678. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4679. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4680. else
  4681. ac_cpp_err=
  4682. fi
  4683. else
  4684. ac_cpp_err=yes
  4685. fi
  4686. if test -z "$ac_cpp_err"; then
  4687. :
  4688. else
  4689. echo "$as_me: failed program was:" >&5
  4690. sed 's/^/| /' conftest.$ac_ext >&5
  4691. # Broken: fails on valid input.
  4692. continue
  4693. fi
  4694. rm -f conftest.err conftest.$ac_ext
  4695. # OK, works on sane cases. Now check whether non-existent headers
  4696. # can be detected and how.
  4697. cat >conftest.$ac_ext <<_ACEOF
  4698. /* confdefs.h. */
  4699. _ACEOF
  4700. cat confdefs.h >>conftest.$ac_ext
  4701. cat >>conftest.$ac_ext <<_ACEOF
  4702. /* end confdefs.h. */
  4703. #include <ac_nonexistent.h>
  4704. _ACEOF
  4705. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4706. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4707. ac_status=$?
  4708. grep -v '^ *+' conftest.er1 >conftest.err
  4709. rm -f conftest.er1
  4710. cat conftest.err >&5
  4711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4712. (exit $ac_status); } >/dev/null; then
  4713. if test -s conftest.err; then
  4714. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4715. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4716. else
  4717. ac_cpp_err=
  4718. fi
  4719. else
  4720. ac_cpp_err=yes
  4721. fi
  4722. if test -z "$ac_cpp_err"; then
  4723. # Broken: success on invalid input.
  4724. continue
  4725. else
  4726. echo "$as_me: failed program was:" >&5
  4727. sed 's/^/| /' conftest.$ac_ext >&5
  4728. # Passes both tests.
  4729. ac_preproc_ok=:
  4730. break
  4731. fi
  4732. rm -f conftest.err conftest.$ac_ext
  4733. done
  4734. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4735. rm -f conftest.err conftest.$ac_ext
  4736. if $ac_preproc_ok; then
  4737. break
  4738. fi
  4739. done
  4740. ac_cv_prog_CXXCPP=$CXXCPP
  4741. fi
  4742. CXXCPP=$ac_cv_prog_CXXCPP
  4743. else
  4744. ac_cv_prog_CXXCPP=$CXXCPP
  4745. fi
  4746. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4747. echo "${ECHO_T}$CXXCPP" >&6
  4748. ac_preproc_ok=false
  4749. for ac_cxx_preproc_warn_flag in '' yes
  4750. do
  4751. # Use a header file that comes with gcc, so configuring glibc
  4752. # with a fresh cross-compiler works.
  4753. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4754. # <limits.h> exists even on freestanding compilers.
  4755. # On the NeXT, cc -E runs the code through the compiler's parser,
  4756. # not just through cpp. "Syntax error" is here to catch this case.
  4757. cat >conftest.$ac_ext <<_ACEOF
  4758. /* confdefs.h. */
  4759. _ACEOF
  4760. cat confdefs.h >>conftest.$ac_ext
  4761. cat >>conftest.$ac_ext <<_ACEOF
  4762. /* end confdefs.h. */
  4763. #ifdef __STDC__
  4764. # include <limits.h>
  4765. #else
  4766. # include <assert.h>
  4767. #endif
  4768. Syntax error
  4769. _ACEOF
  4770. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4771. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4772. ac_status=$?
  4773. grep -v '^ *+' conftest.er1 >conftest.err
  4774. rm -f conftest.er1
  4775. cat conftest.err >&5
  4776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4777. (exit $ac_status); } >/dev/null; then
  4778. if test -s conftest.err; then
  4779. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4780. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4781. else
  4782. ac_cpp_err=
  4783. fi
  4784. else
  4785. ac_cpp_err=yes
  4786. fi
  4787. if test -z "$ac_cpp_err"; then
  4788. :
  4789. else
  4790. echo "$as_me: failed program was:" >&5
  4791. sed 's/^/| /' conftest.$ac_ext >&5
  4792. # Broken: fails on valid input.
  4793. continue
  4794. fi
  4795. rm -f conftest.err conftest.$ac_ext
  4796. # OK, works on sane cases. Now check whether non-existent headers
  4797. # can be detected and how.
  4798. cat >conftest.$ac_ext <<_ACEOF
  4799. /* confdefs.h. */
  4800. _ACEOF
  4801. cat confdefs.h >>conftest.$ac_ext
  4802. cat >>conftest.$ac_ext <<_ACEOF
  4803. /* end confdefs.h. */
  4804. #include <ac_nonexistent.h>
  4805. _ACEOF
  4806. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4807. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } >/dev/null; then
  4814. if test -s conftest.err; then
  4815. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4816. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4817. else
  4818. ac_cpp_err=
  4819. fi
  4820. else
  4821. ac_cpp_err=yes
  4822. fi
  4823. if test -z "$ac_cpp_err"; then
  4824. # Broken: success on invalid input.
  4825. continue
  4826. else
  4827. echo "$as_me: failed program was:" >&5
  4828. sed 's/^/| /' conftest.$ac_ext >&5
  4829. # Passes both tests.
  4830. ac_preproc_ok=:
  4831. break
  4832. fi
  4833. rm -f conftest.err conftest.$ac_ext
  4834. done
  4835. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4836. rm -f conftest.err conftest.$ac_ext
  4837. if $ac_preproc_ok; then
  4838. :
  4839. else
  4840. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4841. See \`config.log' for more details." >&5
  4842. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4843. See \`config.log' for more details." >&2;}
  4844. { (exit 1); exit 1; }; }
  4845. fi
  4846. ac_ext=cc
  4847. ac_cpp='$CXXCPP $CPPFLAGS'
  4848. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4849. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4850. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4851. fi
  4852. ac_ext=f
  4853. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  4854. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4855. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  4856. if test -n "$ac_tool_prefix"; then
  4857. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4858. do
  4859. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4860. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4861. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4862. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4863. if test "${ac_cv_prog_F77+set}" = set; then
  4864. echo $ECHO_N "(cached) $ECHO_C" >&6
  4865. else
  4866. if test -n "$F77"; then
  4867. ac_cv_prog_F77="$F77" # Let the user override the test.
  4868. else
  4869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4870. for as_dir in $PATH
  4871. do
  4872. IFS=$as_save_IFS
  4873. test -z "$as_dir" && as_dir=.
  4874. for ac_exec_ext in '' $ac_executable_extensions; do
  4875. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4876. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  4877. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4878. break 2
  4879. fi
  4880. done
  4881. done
  4882. fi
  4883. fi
  4884. F77=$ac_cv_prog_F77
  4885. if test -n "$F77"; then
  4886. echo "$as_me:$LINENO: result: $F77" >&5
  4887. echo "${ECHO_T}$F77" >&6
  4888. else
  4889. echo "$as_me:$LINENO: result: no" >&5
  4890. echo "${ECHO_T}no" >&6
  4891. fi
  4892. test -n "$F77" && break
  4893. done
  4894. fi
  4895. if test -z "$F77"; then
  4896. ac_ct_F77=$F77
  4897. for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  4898. do
  4899. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4900. set dummy $ac_prog; ac_word=$2
  4901. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4902. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4903. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  4904. echo $ECHO_N "(cached) $ECHO_C" >&6
  4905. else
  4906. if test -n "$ac_ct_F77"; then
  4907. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4916. ac_cv_prog_ac_ct_F77="$ac_prog"
  4917. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. fi
  4923. fi
  4924. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  4925. if test -n "$ac_ct_F77"; then
  4926. echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  4927. echo "${ECHO_T}$ac_ct_F77" >&6
  4928. else
  4929. echo "$as_me:$LINENO: result: no" >&5
  4930. echo "${ECHO_T}no" >&6
  4931. fi
  4932. test -n "$ac_ct_F77" && break
  4933. done
  4934. F77=$ac_ct_F77
  4935. fi
  4936. # Provide some information about the compiler.
  4937. echo "$as_me:5448:" \
  4938. "checking for Fortran 77 compiler version" >&5
  4939. ac_compiler=`set X $ac_compile; echo $2`
  4940. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  4941. (eval $ac_compiler --version </dev/null >&5) 2>&5
  4942. ac_status=$?
  4943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4944. (exit $ac_status); }
  4945. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  4946. (eval $ac_compiler -v </dev/null >&5) 2>&5
  4947. ac_status=$?
  4948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4949. (exit $ac_status); }
  4950. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  4951. (eval $ac_compiler -V </dev/null >&5) 2>&5
  4952. ac_status=$?
  4953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4954. (exit $ac_status); }
  4955. rm -f a.out
  4956. # If we don't use `.F' as extension, the preprocessor is not run on the
  4957. # input file. (Note that this only needs to work for GNU compilers.)
  4958. ac_save_ext=$ac_ext
  4959. ac_ext=F
  4960. echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  4961. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  4962. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  4963. echo $ECHO_N "(cached) $ECHO_C" >&6
  4964. else
  4965. cat >conftest.$ac_ext <<_ACEOF
  4966. program main
  4967. #ifndef __GNUC__
  4968. choke me
  4969. #endif
  4970. end
  4971. _ACEOF
  4972. rm -f conftest.$ac_objext
  4973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4974. (eval $ac_compile) 2>conftest.er1
  4975. ac_status=$?
  4976. grep -v '^ *+' conftest.er1 >conftest.err
  4977. rm -f conftest.er1
  4978. cat conftest.err >&5
  4979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4980. (exit $ac_status); } &&
  4981. { ac_try='test -z "$ac_f77_werror_flag"
  4982. || test ! -s conftest.err'
  4983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4984. (eval $ac_try) 2>&5
  4985. ac_status=$?
  4986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4987. (exit $ac_status); }; } &&
  4988. { ac_try='test -s conftest.$ac_objext'
  4989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4990. (eval $ac_try) 2>&5
  4991. ac_status=$?
  4992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4993. (exit $ac_status); }; }; then
  4994. ac_compiler_gnu=yes
  4995. else
  4996. echo "$as_me: failed program was:" >&5
  4997. sed 's/^/| /' conftest.$ac_ext >&5
  4998. ac_compiler_gnu=no
  4999. fi
  5000. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5001. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5002. fi
  5003. echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5004. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  5005. ac_ext=$ac_save_ext
  5006. ac_test_FFLAGS=${FFLAGS+set}
  5007. ac_save_FFLAGS=$FFLAGS
  5008. FFLAGS=
  5009. echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5010. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  5011. if test "${ac_cv_prog_f77_g+set}" = set; then
  5012. echo $ECHO_N "(cached) $ECHO_C" >&6
  5013. else
  5014. FFLAGS=-g
  5015. cat >conftest.$ac_ext <<_ACEOF
  5016. program main
  5017. end
  5018. _ACEOF
  5019. rm -f conftest.$ac_objext
  5020. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5021. (eval $ac_compile) 2>conftest.er1
  5022. ac_status=$?
  5023. grep -v '^ *+' conftest.er1 >conftest.err
  5024. rm -f conftest.er1
  5025. cat conftest.err >&5
  5026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5027. (exit $ac_status); } &&
  5028. { ac_try='test -z "$ac_f77_werror_flag"
  5029. || test ! -s conftest.err'
  5030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5031. (eval $ac_try) 2>&5
  5032. ac_status=$?
  5033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. (exit $ac_status); }; } &&
  5035. { ac_try='test -s conftest.$ac_objext'
  5036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5037. (eval $ac_try) 2>&5
  5038. ac_status=$?
  5039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5040. (exit $ac_status); }; }; then
  5041. ac_cv_prog_f77_g=yes
  5042. else
  5043. echo "$as_me: failed program was:" >&5
  5044. sed 's/^/| /' conftest.$ac_ext >&5
  5045. ac_cv_prog_f77_g=no
  5046. fi
  5047. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5048. fi
  5049. echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5050. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  5051. if test "$ac_test_FFLAGS" = set; then
  5052. FFLAGS=$ac_save_FFLAGS
  5053. elif test $ac_cv_prog_f77_g = yes; then
  5054. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5055. FFLAGS="-g -O2"
  5056. else
  5057. FFLAGS="-g"
  5058. fi
  5059. else
  5060. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5061. FFLAGS="-O2"
  5062. else
  5063. FFLAGS=
  5064. fi
  5065. fi
  5066. G77=`test $ac_compiler_gnu = yes && echo yes`
  5067. ac_ext=c
  5068. ac_cpp='$CPP $CPPFLAGS'
  5069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5072. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5073. # find the maximum length of command line arguments
  5074. echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5075. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  5076. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5077. echo $ECHO_N "(cached) $ECHO_C" >&6
  5078. else
  5079. i=0
  5080. teststring="ABCD"
  5081. case $build_os in
  5082. msdosdjgpp*)
  5083. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5084. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5085. # during glob expansion). Even if it were fixed, the result of this
  5086. # check would be larger than it should be.
  5087. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5088. ;;
  5089. gnu*)
  5090. # Under GNU Hurd, this test is not required because there is
  5091. # no limit to the length of command line arguments.
  5092. # Libtool will interpret -1 as no limit whatsoever
  5093. lt_cv_sys_max_cmd_len=-1;
  5094. ;;
  5095. cygwin* | mingw*)
  5096. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5097. # about 5 minutes as the teststring grows exponentially.
  5098. # Worse, since 9x/ME are not pre-emptively multitasking,
  5099. # you end up with a "frozen" computer, even though with patience
  5100. # the test eventually succeeds (with a max line length of 256k).
  5101. # Instead, let's just punt: use the minimum linelength reported by
  5102. # all of the supported platforms: 8192 (on NT/2K/XP).
  5103. lt_cv_sys_max_cmd_len=8192;
  5104. ;;
  5105. amigaos*)
  5106. # On AmigaOS with pdksh, this test takes hours, literally.
  5107. # So we just punt and use a minimum line length of 8192.
  5108. lt_cv_sys_max_cmd_len=8192;
  5109. ;;
  5110. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5111. # This has been around since 386BSD, at least. Likely further.
  5112. if test -x /sbin/sysctl; then
  5113. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5114. elif test -x /usr/sbin/sysctl; then
  5115. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5116. else
  5117. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5118. fi
  5119. # And add a safety zone
  5120. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5121. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5122. ;;
  5123. interix*)
  5124. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5125. lt_cv_sys_max_cmd_len=196608
  5126. ;;
  5127. osf*)
  5128. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5129. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5130. # nice to cause kernel panics so lets avoid the loop below.
  5131. # First set a reasonable default.
  5132. lt_cv_sys_max_cmd_len=16384
  5133. #
  5134. if test -x /sbin/sysconfig; then
  5135. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5136. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5137. esac
  5138. fi
  5139. ;;
  5140. sco3.2v5*)
  5141. lt_cv_sys_max_cmd_len=102400
  5142. ;;
  5143. sysv5* | sco5v6* | sysv4.2uw2*)
  5144. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5145. if test -n "$kargmax"; then
  5146. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5147. else
  5148. lt_cv_sys_max_cmd_len=32768
  5149. fi
  5150. ;;
  5151. *)
  5152. # If test is not a shell built-in, we'll probably end up computing a
  5153. # maximum length that is only half of the actual maximum length, but
  5154. # we can't tell.
  5155. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5156. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5157. = "XX$teststring") >/dev/null 2>&1 &&
  5158. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5159. lt_cv_sys_max_cmd_len=$new_result &&
  5160. test $i != 17 # 1/2 MB should be enough
  5161. do
  5162. i=`expr $i + 1`
  5163. teststring=$teststring$teststring
  5164. done
  5165. teststring=
  5166. # Add a significant safety factor because C++ compilers can tack on massive
  5167. # amounts of additional arguments before passing them to the linker.
  5168. # It appears as though 1/2 is a usable value.
  5169. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5170. ;;
  5171. esac
  5172. fi
  5173. if test -n $lt_cv_sys_max_cmd_len ; then
  5174. echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5175. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  5176. else
  5177. echo "$as_me:$LINENO: result: none" >&5
  5178. echo "${ECHO_T}none" >&6
  5179. fi
  5180. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5181. echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5182. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  5183. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5184. echo $ECHO_N "(cached) $ECHO_C" >&6
  5185. else
  5186. # These are sane defaults that work on at least a few old systems.
  5187. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5188. # Character class describing NM global symbol codes.
  5189. symcode='[BCDEGRST]'
  5190. # Regexp to match symbols that can be accessed directly from C.
  5191. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5192. # Transform an extracted symbol line into a proper C declaration
  5193. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5194. # Transform an extracted symbol line into symbol name and symbol address
  5195. 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'"
  5196. # Define system-specific variables.
  5197. case $host_os in
  5198. aix*)
  5199. symcode='[BCDT]'
  5200. ;;
  5201. cygwin* | mingw* | pw32*)
  5202. symcode='[ABCDGISTW]'
  5203. ;;
  5204. hpux*) # Its linker distinguishes data from code symbols
  5205. if test "$host_cpu" = ia64; then
  5206. symcode='[ABCDEGRST]'
  5207. fi
  5208. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5209. 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'"
  5210. ;;
  5211. linux*)
  5212. if test "$host_cpu" = ia64; then
  5213. symcode='[ABCDGIRSTW]'
  5214. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5215. 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'"
  5216. fi
  5217. ;;
  5218. irix* | nonstopux*)
  5219. symcode='[BCDEGRST]'
  5220. ;;
  5221. osf*)
  5222. symcode='[BCDEGQRST]'
  5223. ;;
  5224. solaris*)
  5225. symcode='[BDRT]'
  5226. ;;
  5227. sco3.2v5*)
  5228. symcode='[DT]'
  5229. ;;
  5230. sysv4.2uw2*)
  5231. symcode='[DT]'
  5232. ;;
  5233. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5234. symcode='[ABDT]'
  5235. ;;
  5236. sysv4)
  5237. symcode='[DFNSTU]'
  5238. ;;
  5239. esac
  5240. # Handle CRLF in mingw tool chain
  5241. opt_cr=
  5242. case $build_os in
  5243. mingw*)
  5244. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5245. ;;
  5246. esac
  5247. # If we're using GNU nm, then use its standard symbol codes.
  5248. case `$NM -V 2>&1` in
  5249. *GNU* | *'with BFD'*)
  5250. symcode='[ABCDGIRSTW]' ;;
  5251. esac
  5252. # Try without a prefix undercore, then with it.
  5253. for ac_symprfx in "" "_"; do
  5254. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5255. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5256. # Write the raw and C identifiers.
  5257. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5258. # Check to see that the pipe works correctly.
  5259. pipe_works=no
  5260. rm -f conftest*
  5261. cat > conftest.$ac_ext <<EOF
  5262. #ifdef __cplusplus
  5263. extern "C" {
  5264. #endif
  5265. char nm_test_var;
  5266. void nm_test_func(){}
  5267. #ifdef __cplusplus
  5268. }
  5269. #endif
  5270. int main(){nm_test_var='a';nm_test_func();return(0);}
  5271. EOF
  5272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5273. (eval $ac_compile) 2>&5
  5274. ac_status=$?
  5275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5276. (exit $ac_status); }; then
  5277. # Now try to grab the symbols.
  5278. nlist=conftest.nm
  5279. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5280. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5281. ac_status=$?
  5282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5283. (exit $ac_status); } && test -s "$nlist"; then
  5284. # Try sorting and uniquifying the output.
  5285. if sort "$nlist" | uniq > "$nlist"T; then
  5286. mv -f "$nlist"T "$nlist"
  5287. else
  5288. rm -f "$nlist"T
  5289. fi
  5290. # Make sure that we snagged all the symbols we need.
  5291. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5292. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5293. cat <<EOF > conftest.$ac_ext
  5294. #ifdef __cplusplus
  5295. extern "C" {
  5296. #endif
  5297. EOF
  5298. # Now generate the symbol file.
  5299. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5300. cat <<EOF >> conftest.$ac_ext
  5301. #if defined (__STDC__) && __STDC__
  5302. # define lt_ptr_t void *
  5303. #else
  5304. # define lt_ptr_t char *
  5305. # define const
  5306. #endif
  5307. /* The mapping between symbol names and symbols. */
  5308. const struct {
  5309. const char *name;
  5310. lt_ptr_t address;
  5311. }
  5312. lt_preloaded_symbols[] =
  5313. {
  5314. EOF
  5315. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5316. cat <<\EOF >> conftest.$ac_ext
  5317. {0, (lt_ptr_t) 0}
  5318. };
  5319. #ifdef __cplusplus
  5320. }
  5321. #endif
  5322. EOF
  5323. # Now try linking the two files.
  5324. mv conftest.$ac_objext conftstm.$ac_objext
  5325. lt_save_LIBS="$LIBS"
  5326. lt_save_CFLAGS="$CFLAGS"
  5327. LIBS="conftstm.$ac_objext"
  5328. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5330. (eval $ac_link) 2>&5
  5331. ac_status=$?
  5332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5333. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5334. pipe_works=yes
  5335. fi
  5336. LIBS="$lt_save_LIBS"
  5337. CFLAGS="$lt_save_CFLAGS"
  5338. else
  5339. echo "cannot find nm_test_func in $nlist" >&5
  5340. fi
  5341. else
  5342. echo "cannot find nm_test_var in $nlist" >&5
  5343. fi
  5344. else
  5345. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5346. fi
  5347. else
  5348. echo "$progname: failed program was:" >&5
  5349. cat conftest.$ac_ext >&5
  5350. fi
  5351. rm -f conftest* conftst*
  5352. # Do not use the global_symbol_pipe unless it works.
  5353. if test "$pipe_works" = yes; then
  5354. break
  5355. else
  5356. lt_cv_sys_global_symbol_pipe=
  5357. fi
  5358. done
  5359. fi
  5360. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5361. lt_cv_sys_global_symbol_to_cdecl=
  5362. fi
  5363. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5364. echo "$as_me:$LINENO: result: failed" >&5
  5365. echo "${ECHO_T}failed" >&6
  5366. else
  5367. echo "$as_me:$LINENO: result: ok" >&5
  5368. echo "${ECHO_T}ok" >&6
  5369. fi
  5370. echo "$as_me:$LINENO: checking for objdir" >&5
  5371. echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5372. if test "${lt_cv_objdir+set}" = set; then
  5373. echo $ECHO_N "(cached) $ECHO_C" >&6
  5374. else
  5375. rm -f .libs 2>/dev/null
  5376. mkdir .libs 2>/dev/null
  5377. if test -d .libs; then
  5378. lt_cv_objdir=.libs
  5379. else
  5380. # MS-DOS does not allow filenames that begin with a dot.
  5381. lt_cv_objdir=_libs
  5382. fi
  5383. rmdir .libs 2>/dev/null
  5384. fi
  5385. echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  5386. echo "${ECHO_T}$lt_cv_objdir" >&6
  5387. objdir=$lt_cv_objdir
  5388. case $host_os in
  5389. aix3*)
  5390. # AIX sometimes has problems with the GCC collect2 program. For some
  5391. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5392. # vanish in a puff of smoke.
  5393. if test "X${COLLECT_NAMES+set}" != Xset; then
  5394. COLLECT_NAMES=
  5395. export COLLECT_NAMES
  5396. fi
  5397. ;;
  5398. esac
  5399. # Sed substitution that helps us do robust quoting. It backslashifies
  5400. # metacharacters that are still active within double-quoted strings.
  5401. Xsed='sed -e 1s/^X//'
  5402. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5403. # Same as above, but do not quote variable references.
  5404. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5405. # Sed substitution to delay expansion of an escaped shell variable in a
  5406. # double_quote_subst'ed string.
  5407. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5408. # Sed substitution to avoid accidental globbing in evaled expressions
  5409. no_glob_subst='s/\*/\\\*/g'
  5410. # Constants:
  5411. rm="rm -f"
  5412. # Global variables:
  5413. default_ofile=libtool
  5414. can_build_shared=yes
  5415. # All known linkers require a `.a' archive for static linking (except MSVC,
  5416. # which needs '.lib').
  5417. libext=a
  5418. ltmain="$ac_aux_dir/ltmain.sh"
  5419. ofile="$default_ofile"
  5420. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5421. if test -n "$ac_tool_prefix"; then
  5422. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5423. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5424. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5425. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5426. if test "${ac_cv_prog_AR+set}" = set; then
  5427. echo $ECHO_N "(cached) $ECHO_C" >&6
  5428. else
  5429. if test -n "$AR"; then
  5430. ac_cv_prog_AR="$AR" # Let the user override the test.
  5431. else
  5432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5433. for as_dir in $PATH
  5434. do
  5435. IFS=$as_save_IFS
  5436. test -z "$as_dir" && as_dir=.
  5437. for ac_exec_ext in '' $ac_executable_extensions; do
  5438. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5439. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5440. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5441. break 2
  5442. fi
  5443. done
  5444. done
  5445. fi
  5446. fi
  5447. AR=$ac_cv_prog_AR
  5448. if test -n "$AR"; then
  5449. echo "$as_me:$LINENO: result: $AR" >&5
  5450. echo "${ECHO_T}$AR" >&6
  5451. else
  5452. echo "$as_me:$LINENO: result: no" >&5
  5453. echo "${ECHO_T}no" >&6
  5454. fi
  5455. fi
  5456. if test -z "$ac_cv_prog_AR"; then
  5457. ac_ct_AR=$AR
  5458. # Extract the first word of "ar", so it can be a program name with args.
  5459. set dummy ar; ac_word=$2
  5460. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5461. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5462. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5463. echo $ECHO_N "(cached) $ECHO_C" >&6
  5464. else
  5465. if test -n "$ac_ct_AR"; then
  5466. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5467. else
  5468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5469. for as_dir in $PATH
  5470. do
  5471. IFS=$as_save_IFS
  5472. test -z "$as_dir" && as_dir=.
  5473. for ac_exec_ext in '' $ac_executable_extensions; do
  5474. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5475. ac_cv_prog_ac_ct_AR="ar"
  5476. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5477. break 2
  5478. fi
  5479. done
  5480. done
  5481. test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  5482. fi
  5483. fi
  5484. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5485. if test -n "$ac_ct_AR"; then
  5486. echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5487. echo "${ECHO_T}$ac_ct_AR" >&6
  5488. else
  5489. echo "$as_me:$LINENO: result: no" >&5
  5490. echo "${ECHO_T}no" >&6
  5491. fi
  5492. AR=$ac_ct_AR
  5493. else
  5494. AR="$ac_cv_prog_AR"
  5495. fi
  5496. if test -n "$ac_tool_prefix"; then
  5497. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5498. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5499. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5500. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5501. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5502. echo $ECHO_N "(cached) $ECHO_C" >&6
  5503. else
  5504. if test -n "$RANLIB"; then
  5505. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5514. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5515. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. fi
  5521. fi
  5522. RANLIB=$ac_cv_prog_RANLIB
  5523. if test -n "$RANLIB"; then
  5524. echo "$as_me:$LINENO: result: $RANLIB" >&5
  5525. echo "${ECHO_T}$RANLIB" >&6
  5526. else
  5527. echo "$as_me:$LINENO: result: no" >&5
  5528. echo "${ECHO_T}no" >&6
  5529. fi
  5530. fi
  5531. if test -z "$ac_cv_prog_RANLIB"; then
  5532. ac_ct_RANLIB=$RANLIB
  5533. # Extract the first word of "ranlib", so it can be a program name with args.
  5534. set dummy ranlib; ac_word=$2
  5535. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5536. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5537. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5538. echo $ECHO_N "(cached) $ECHO_C" >&6
  5539. else
  5540. if test -n "$ac_ct_RANLIB"; then
  5541. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5542. else
  5543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5544. for as_dir in $PATH
  5545. do
  5546. IFS=$as_save_IFS
  5547. test -z "$as_dir" && as_dir=.
  5548. for ac_exec_ext in '' $ac_executable_extensions; do
  5549. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5550. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5551. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5552. break 2
  5553. fi
  5554. done
  5555. done
  5556. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5557. fi
  5558. fi
  5559. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5560. if test -n "$ac_ct_RANLIB"; then
  5561. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5562. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5563. else
  5564. echo "$as_me:$LINENO: result: no" >&5
  5565. echo "${ECHO_T}no" >&6
  5566. fi
  5567. RANLIB=$ac_ct_RANLIB
  5568. else
  5569. RANLIB="$ac_cv_prog_RANLIB"
  5570. fi
  5571. if test -n "$ac_tool_prefix"; then
  5572. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5573. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5574. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5575. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5576. if test "${ac_cv_prog_STRIP+set}" = set; then
  5577. echo $ECHO_N "(cached) $ECHO_C" >&6
  5578. else
  5579. if test -n "$STRIP"; then
  5580. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5581. else
  5582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5583. for as_dir in $PATH
  5584. do
  5585. IFS=$as_save_IFS
  5586. test -z "$as_dir" && as_dir=.
  5587. for ac_exec_ext in '' $ac_executable_extensions; do
  5588. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5589. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5590. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5591. break 2
  5592. fi
  5593. done
  5594. done
  5595. fi
  5596. fi
  5597. STRIP=$ac_cv_prog_STRIP
  5598. if test -n "$STRIP"; then
  5599. echo "$as_me:$LINENO: result: $STRIP" >&5
  5600. echo "${ECHO_T}$STRIP" >&6
  5601. else
  5602. echo "$as_me:$LINENO: result: no" >&5
  5603. echo "${ECHO_T}no" >&6
  5604. fi
  5605. fi
  5606. if test -z "$ac_cv_prog_STRIP"; then
  5607. ac_ct_STRIP=$STRIP
  5608. # Extract the first word of "strip", so it can be a program name with args.
  5609. set dummy strip; ac_word=$2
  5610. echo "$as_me:$LINENO: checking for $ac_word" >&5
  5611. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5612. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5613. echo $ECHO_N "(cached) $ECHO_C" >&6
  5614. else
  5615. if test -n "$ac_ct_STRIP"; then
  5616. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_ac_ct_STRIP="strip"
  5626. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5632. fi
  5633. fi
  5634. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5635. if test -n "$ac_ct_STRIP"; then
  5636. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5637. echo "${ECHO_T}$ac_ct_STRIP" >&6
  5638. else
  5639. echo "$as_me:$LINENO: result: no" >&5
  5640. echo "${ECHO_T}no" >&6
  5641. fi
  5642. STRIP=$ac_ct_STRIP
  5643. else
  5644. STRIP="$ac_cv_prog_STRIP"
  5645. fi
  5646. old_CC="$CC"
  5647. old_CFLAGS="$CFLAGS"
  5648. # Set sane defaults for various variables
  5649. test -z "$AR" && AR=ar
  5650. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5651. test -z "$AS" && AS=as
  5652. test -z "$CC" && CC=cc
  5653. test -z "$LTCC" && LTCC=$CC
  5654. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5655. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5656. test -z "$LD" && LD=ld
  5657. test -z "$LN_S" && LN_S="ln -s"
  5658. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5659. test -z "$NM" && NM=nm
  5660. test -z "$SED" && SED=sed
  5661. test -z "$OBJDUMP" && OBJDUMP=objdump
  5662. test -z "$RANLIB" && RANLIB=:
  5663. test -z "$STRIP" && STRIP=:
  5664. test -z "$ac_objext" && ac_objext=o
  5665. # Determine commands to create old-style static archives.
  5666. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5667. old_postinstall_cmds='chmod 644 $oldlib'
  5668. old_postuninstall_cmds=
  5669. if test -n "$RANLIB"; then
  5670. case $host_os in
  5671. openbsd*)
  5672. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5673. ;;
  5674. *)
  5675. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5676. ;;
  5677. esac
  5678. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5679. fi
  5680. for cc_temp in $compiler""; do
  5681. case $cc_temp in
  5682. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5683. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5684. \-*) ;;
  5685. *) break;;
  5686. esac
  5687. done
  5688. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5689. # Only perform the check for file, if the check method requires it
  5690. case $deplibs_check_method in
  5691. file_magic*)
  5692. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5693. echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5694. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5695. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5696. echo $ECHO_N "(cached) $ECHO_C" >&6
  5697. else
  5698. case $MAGIC_CMD in
  5699. [\\/*] | ?:[\\/]*)
  5700. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5701. ;;
  5702. *)
  5703. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5704. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5705. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5706. for ac_dir in $ac_dummy; do
  5707. IFS="$lt_save_ifs"
  5708. test -z "$ac_dir" && ac_dir=.
  5709. if test -f $ac_dir/${ac_tool_prefix}file; then
  5710. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5711. if test -n "$file_magic_test_file"; then
  5712. case $deplibs_check_method in
  5713. "file_magic "*)
  5714. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5715. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5716. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5717. $EGREP "$file_magic_regex" > /dev/null; then
  5718. :
  5719. else
  5720. cat <<EOF 1>&2
  5721. *** Warning: the command libtool uses to detect shared libraries,
  5722. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5723. *** The result is that libtool may fail to recognize shared libraries
  5724. *** as such. This will affect the creation of libtool libraries that
  5725. *** depend on shared libraries, but programs linked with such libtool
  5726. *** libraries will work regardless of this problem. Nevertheless, you
  5727. *** may want to report the problem to your system manager and/or to
  5728. *** [email protected]
  5729. EOF
  5730. fi ;;
  5731. esac
  5732. fi
  5733. break
  5734. fi
  5735. done
  5736. IFS="$lt_save_ifs"
  5737. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5738. ;;
  5739. esac
  5740. fi
  5741. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5742. if test -n "$MAGIC_CMD"; then
  5743. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5744. echo "${ECHO_T}$MAGIC_CMD" >&6
  5745. else
  5746. echo "$as_me:$LINENO: result: no" >&5
  5747. echo "${ECHO_T}no" >&6
  5748. fi
  5749. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5750. if test -n "$ac_tool_prefix"; then
  5751. echo "$as_me:$LINENO: checking for file" >&5
  5752. echo $ECHO_N "checking for file... $ECHO_C" >&6
  5753. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5754. echo $ECHO_N "(cached) $ECHO_C" >&6
  5755. else
  5756. case $MAGIC_CMD in
  5757. [\\/*] | ?:[\\/]*)
  5758. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5759. ;;
  5760. *)
  5761. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5762. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5763. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5764. for ac_dir in $ac_dummy; do
  5765. IFS="$lt_save_ifs"
  5766. test -z "$ac_dir" && ac_dir=.
  5767. if test -f $ac_dir/file; then
  5768. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5769. if test -n "$file_magic_test_file"; then
  5770. case $deplibs_check_method in
  5771. "file_magic "*)
  5772. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5773. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5774. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5775. $EGREP "$file_magic_regex" > /dev/null; then
  5776. :
  5777. else
  5778. cat <<EOF 1>&2
  5779. *** Warning: the command libtool uses to detect shared libraries,
  5780. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5781. *** The result is that libtool may fail to recognize shared libraries
  5782. *** as such. This will affect the creation of libtool libraries that
  5783. *** depend on shared libraries, but programs linked with such libtool
  5784. *** libraries will work regardless of this problem. Nevertheless, you
  5785. *** may want to report the problem to your system manager and/or to
  5786. *** [email protected]
  5787. EOF
  5788. fi ;;
  5789. esac
  5790. fi
  5791. break
  5792. fi
  5793. done
  5794. IFS="$lt_save_ifs"
  5795. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5796. ;;
  5797. esac
  5798. fi
  5799. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5800. if test -n "$MAGIC_CMD"; then
  5801. echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5802. echo "${ECHO_T}$MAGIC_CMD" >&6
  5803. else
  5804. echo "$as_me:$LINENO: result: no" >&5
  5805. echo "${ECHO_T}no" >&6
  5806. fi
  5807. else
  5808. MAGIC_CMD=:
  5809. fi
  5810. fi
  5811. fi
  5812. ;;
  5813. esac
  5814. enable_dlopen=no
  5815. enable_win32_dll=no
  5816. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5817. if test "${enable_libtool_lock+set}" = set; then
  5818. enableval="$enable_libtool_lock"
  5819. fi;
  5820. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5821. # Check whether --with-pic or --without-pic was given.
  5822. if test "${with_pic+set}" = set; then
  5823. withval="$with_pic"
  5824. pic_mode="$withval"
  5825. else
  5826. pic_mode=default
  5827. fi;
  5828. test -z "$pic_mode" && pic_mode=default
  5829. # Use C for the default configuration in the libtool script
  5830. tagname=
  5831. lt_save_CC="$CC"
  5832. ac_ext=c
  5833. ac_cpp='$CPP $CPPFLAGS'
  5834. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5835. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5836. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5837. # Source file extension for C test sources.
  5838. ac_ext=c
  5839. # Object file extension for compiled C test sources.
  5840. objext=o
  5841. objext=$objext
  5842. # Code to be used in simple compile tests
  5843. lt_simple_compile_test_code="int some_variable = 0;\n"
  5844. # Code to be used in simple link tests
  5845. lt_simple_link_test_code='int main(){return(0);}\n'
  5846. # If no C compiler was specified, use CC.
  5847. LTCC=${LTCC-"$CC"}
  5848. # If no C compiler flags were specified, use CFLAGS.
  5849. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5850. # Allow CC to be a program name with arguments.
  5851. compiler=$CC
  5852. # save warnings/boilerplate of simple test code
  5853. ac_outfile=conftest.$ac_objext
  5854. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5855. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5856. _lt_compiler_boilerplate=`cat conftest.err`
  5857. $rm conftest*
  5858. ac_outfile=conftest.$ac_objext
  5859. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5860. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5861. _lt_linker_boilerplate=`cat conftest.err`
  5862. $rm conftest*
  5863. lt_prog_compiler_no_builtin_flag=
  5864. if test "$GCC" = yes; then
  5865. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5866. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5867. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  5868. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  5869. echo $ECHO_N "(cached) $ECHO_C" >&6
  5870. else
  5871. lt_cv_prog_compiler_rtti_exceptions=no
  5872. ac_outfile=conftest.$ac_objext
  5873. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5874. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5875. # Insert the option either (1) after the last *FLAGS variable, or
  5876. # (2) before a word containing "conftest.", or (3) at the end.
  5877. # Note that $ac_compile itself does not contain backslashes and begins
  5878. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5879. # The option is referenced via a variable to avoid confusing sed.
  5880. lt_compile=`echo "$ac_compile" | $SED \
  5881. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5882. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5883. -e 's:$: $lt_compiler_flag:'`
  5884. (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
  5885. (eval "$lt_compile" 2>conftest.err)
  5886. ac_status=$?
  5887. cat conftest.err >&5
  5888. echo "$as_me:6515: \$? = $ac_status" >&5
  5889. if (exit $ac_status) && test -s "$ac_outfile"; then
  5890. # The compiler can only warn and ignore the option if not recognized
  5891. # So say no if there are warnings other than the usual output.
  5892. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5893. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5894. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5895. lt_cv_prog_compiler_rtti_exceptions=yes
  5896. fi
  5897. fi
  5898. $rm conftest*
  5899. fi
  5900. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5901. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  5902. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5903. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5904. else
  5905. :
  5906. fi
  5907. fi
  5908. lt_prog_compiler_wl=
  5909. lt_prog_compiler_pic=
  5910. lt_prog_compiler_static=
  5911. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5912. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5913. if test "$GCC" = yes; then
  5914. lt_prog_compiler_wl='-Wl,'
  5915. lt_prog_compiler_static='-static'
  5916. case $host_os in
  5917. aix*)
  5918. # All AIX code is PIC.
  5919. if test "$host_cpu" = ia64; then
  5920. # AIX 5 now supports IA64 processor
  5921. lt_prog_compiler_static='-Bstatic'
  5922. fi
  5923. ;;
  5924. amigaos*)
  5925. # FIXME: we need at least 68020 code to build shared libraries, but
  5926. # adding the `-m68020' flag to GCC prevents building anything better,
  5927. # like `-m68040'.
  5928. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5929. ;;
  5930. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5931. # PIC is the default for these OSes.
  5932. ;;
  5933. mingw* | pw32* | os2*)
  5934. # This hack is so that the source file can tell whether it is being
  5935. # built for inclusion in a dll (and should export symbols for example).
  5936. lt_prog_compiler_pic='-DDLL_EXPORT'
  5937. ;;
  5938. darwin* | rhapsody*)
  5939. # PIC is the default on this platform
  5940. # Common symbols not allowed in MH_DYLIB files
  5941. lt_prog_compiler_pic='-fno-common'
  5942. ;;
  5943. interix3*)
  5944. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5945. # Instead, we relocate shared libraries at runtime.
  5946. ;;
  5947. msdosdjgpp*)
  5948. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5949. # on systems that don't support them.
  5950. lt_prog_compiler_can_build_shared=no
  5951. enable_shared=no
  5952. ;;
  5953. sysv4*MP*)
  5954. if test -d /usr/nec; then
  5955. lt_prog_compiler_pic=-Kconform_pic
  5956. fi
  5957. ;;
  5958. hpux*)
  5959. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5960. # not for PA HP-UX.
  5961. case $host_cpu in
  5962. hppa*64*|ia64*)
  5963. # +Z the default
  5964. ;;
  5965. *)
  5966. lt_prog_compiler_pic='-fPIC'
  5967. ;;
  5968. esac
  5969. ;;
  5970. *)
  5971. lt_prog_compiler_pic='-fPIC'
  5972. ;;
  5973. esac
  5974. else
  5975. # PORTME Check for flag to pass linker flags through the system compiler.
  5976. case $host_os in
  5977. aix*)
  5978. lt_prog_compiler_wl='-Wl,'
  5979. if test "$host_cpu" = ia64; then
  5980. # AIX 5 now supports IA64 processor
  5981. lt_prog_compiler_static='-Bstatic'
  5982. else
  5983. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5984. fi
  5985. ;;
  5986. darwin*)
  5987. # PIC is the default on this platform
  5988. # Common symbols not allowed in MH_DYLIB files
  5989. case $cc_basename in
  5990. xlc*)
  5991. lt_prog_compiler_pic='-qnocommon'
  5992. lt_prog_compiler_wl='-Wl,'
  5993. ;;
  5994. esac
  5995. ;;
  5996. mingw* | pw32* | os2*)
  5997. # This hack is so that the source file can tell whether it is being
  5998. # built for inclusion in a dll (and should export symbols for example).
  5999. lt_prog_compiler_pic='-DDLL_EXPORT'
  6000. ;;
  6001. hpux9* | hpux10* | hpux11*)
  6002. lt_prog_compiler_wl='-Wl,'
  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='+Z'
  6011. ;;
  6012. esac
  6013. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6014. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6015. ;;
  6016. irix5* | irix6* | nonstopux*)
  6017. lt_prog_compiler_wl='-Wl,'
  6018. # PIC (with -KPIC) is the default.
  6019. lt_prog_compiler_static='-non_shared'
  6020. ;;
  6021. newsos6)
  6022. lt_prog_compiler_pic='-KPIC'
  6023. lt_prog_compiler_static='-Bstatic'
  6024. ;;
  6025. linux*)
  6026. case $cc_basename in
  6027. icc* | ecc*)
  6028. lt_prog_compiler_wl='-Wl,'
  6029. lt_prog_compiler_pic='-KPIC'
  6030. lt_prog_compiler_static='-static'
  6031. ;;
  6032. pgcc* | pgf77* | pgf90* | pgf95*)
  6033. # Portland Group compilers (*not* the Pentium gcc compiler,
  6034. # which looks to be a dead project)
  6035. lt_prog_compiler_wl='-Wl,'
  6036. lt_prog_compiler_pic='-fpic'
  6037. lt_prog_compiler_static='-Bstatic'
  6038. ;;
  6039. ccc*)
  6040. lt_prog_compiler_wl='-Wl,'
  6041. # All Alpha code is PIC.
  6042. lt_prog_compiler_static='-non_shared'
  6043. ;;
  6044. esac
  6045. ;;
  6046. osf3* | osf4* | osf5*)
  6047. lt_prog_compiler_wl='-Wl,'
  6048. # All OSF/1 code is PIC.
  6049. lt_prog_compiler_static='-non_shared'
  6050. ;;
  6051. solaris*)
  6052. lt_prog_compiler_pic='-KPIC'
  6053. lt_prog_compiler_static='-Bstatic'
  6054. case $cc_basename in
  6055. f77* | f90* | f95*)
  6056. lt_prog_compiler_wl='-Qoption ld ';;
  6057. *)
  6058. lt_prog_compiler_wl='-Wl,';;
  6059. esac
  6060. ;;
  6061. sunos4*)
  6062. lt_prog_compiler_wl='-Qoption ld '
  6063. lt_prog_compiler_pic='-PIC'
  6064. lt_prog_compiler_static='-Bstatic'
  6065. ;;
  6066. sysv4 | sysv4.2uw2* | sysv4.3*)
  6067. lt_prog_compiler_wl='-Wl,'
  6068. lt_prog_compiler_pic='-KPIC'
  6069. lt_prog_compiler_static='-Bstatic'
  6070. ;;
  6071. sysv4*MP*)
  6072. if test -d /usr/nec ;then
  6073. lt_prog_compiler_pic='-Kconform_pic'
  6074. lt_prog_compiler_static='-Bstatic'
  6075. fi
  6076. ;;
  6077. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6078. lt_prog_compiler_wl='-Wl,'
  6079. lt_prog_compiler_pic='-KPIC'
  6080. lt_prog_compiler_static='-Bstatic'
  6081. ;;
  6082. unicos*)
  6083. lt_prog_compiler_wl='-Wl,'
  6084. lt_prog_compiler_can_build_shared=no
  6085. ;;
  6086. uts4*)
  6087. lt_prog_compiler_pic='-pic'
  6088. lt_prog_compiler_static='-Bstatic'
  6089. ;;
  6090. *)
  6091. lt_prog_compiler_can_build_shared=no
  6092. ;;
  6093. esac
  6094. fi
  6095. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6096. echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  6097. #
  6098. # Check to make sure the PIC flag actually works.
  6099. #
  6100. if test -n "$lt_prog_compiler_pic"; then
  6101. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6102. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  6103. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6104. echo $ECHO_N "(cached) $ECHO_C" >&6
  6105. else
  6106. lt_prog_compiler_pic_works=no
  6107. ac_outfile=conftest.$ac_objext
  6108. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6109. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6110. # Insert the option either (1) after the last *FLAGS variable, or
  6111. # (2) before a word containing "conftest.", or (3) at the end.
  6112. # Note that $ac_compile itself does not contain backslashes and begins
  6113. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6114. # The option is referenced via a variable to avoid confusing sed.
  6115. lt_compile=`echo "$ac_compile" | $SED \
  6116. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6117. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6118. -e 's:$: $lt_compiler_flag:'`
  6119. (eval echo "\"\$as_me:6779: $lt_compile\"" >&5)
  6120. (eval "$lt_compile" 2>conftest.err)
  6121. ac_status=$?
  6122. cat conftest.err >&5
  6123. echo "$as_me:6783: \$? = $ac_status" >&5
  6124. if (exit $ac_status) && test -s "$ac_outfile"; then
  6125. # The compiler can only warn and ignore the option if not recognized
  6126. # So say no if there are warnings other than the usual output.
  6127. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6128. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6129. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6130. lt_prog_compiler_pic_works=yes
  6131. fi
  6132. fi
  6133. $rm conftest*
  6134. fi
  6135. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6136. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  6137. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6138. case $lt_prog_compiler_pic in
  6139. "" | " "*) ;;
  6140. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6141. esac
  6142. else
  6143. lt_prog_compiler_pic=
  6144. lt_prog_compiler_can_build_shared=no
  6145. fi
  6146. fi
  6147. case $host_os in
  6148. # For platforms which do not support PIC, -DPIC is meaningless:
  6149. *djgpp*)
  6150. lt_prog_compiler_pic=
  6151. ;;
  6152. *)
  6153. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6154. ;;
  6155. esac
  6156. #
  6157. # Check to make sure the static flag actually works.
  6158. #
  6159. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6160. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6161. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  6162. if test "${lt_prog_compiler_static_works+set}" = set; then
  6163. echo $ECHO_N "(cached) $ECHO_C" >&6
  6164. else
  6165. lt_prog_compiler_static_works=no
  6166. save_LDFLAGS="$LDFLAGS"
  6167. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6168. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  6169. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6170. # The linker can only warn and ignore the option if not recognized
  6171. # So say no if there are warnings
  6172. if test -s conftest.err; then
  6173. # Append any errors to the config.log.
  6174. cat conftest.err 1>&5
  6175. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6176. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6177. if diff conftest.exp conftest.er2 >/dev/null; then
  6178. lt_prog_compiler_static_works=yes
  6179. fi
  6180. else
  6181. lt_prog_compiler_static_works=yes
  6182. fi
  6183. fi
  6184. $rm conftest*
  6185. LDFLAGS="$save_LDFLAGS"
  6186. fi
  6187. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6188. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  6189. if test x"$lt_prog_compiler_static_works" = xyes; then
  6190. :
  6191. else
  6192. lt_prog_compiler_static=
  6193. fi
  6194. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6195. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6196. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6197. echo $ECHO_N "(cached) $ECHO_C" >&6
  6198. else
  6199. lt_cv_prog_compiler_c_o=no
  6200. $rm -r conftest 2>/dev/null
  6201. mkdir conftest
  6202. cd conftest
  6203. mkdir out
  6204. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6205. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6206. # Insert the option either (1) after the last *FLAGS variable, or
  6207. # (2) before a word containing "conftest.", or (3) at the end.
  6208. # Note that $ac_compile itself does not contain backslashes and begins
  6209. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6210. lt_compile=`echo "$ac_compile" | $SED \
  6211. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6212. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6213. -e 's:$: $lt_compiler_flag:'`
  6214. (eval echo "\"\$as_me:6883: $lt_compile\"" >&5)
  6215. (eval "$lt_compile" 2>out/conftest.err)
  6216. ac_status=$?
  6217. cat out/conftest.err >&5
  6218. echo "$as_me:6887: \$? = $ac_status" >&5
  6219. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6220. then
  6221. # The compiler can only warn and ignore the option if not recognized
  6222. # So say no if there are warnings
  6223. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6224. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6225. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6226. lt_cv_prog_compiler_c_o=yes
  6227. fi
  6228. fi
  6229. chmod u+w . 2>&5
  6230. $rm conftest*
  6231. # SGI C++ compiler will create directory out/ii_files/ for
  6232. # template instantiation
  6233. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6234. $rm out/* && rmdir out
  6235. cd ..
  6236. rmdir conftest
  6237. $rm conftest*
  6238. fi
  6239. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  6240. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  6241. hard_links="nottested"
  6242. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6243. # do not overwrite the value of need_locks provided by the user
  6244. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6245. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6246. hard_links=yes
  6247. $rm conftest*
  6248. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6249. touch conftest.a
  6250. ln conftest.a conftest.b 2>&5 || hard_links=no
  6251. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6252. echo "$as_me:$LINENO: result: $hard_links" >&5
  6253. echo "${ECHO_T}$hard_links" >&6
  6254. if test "$hard_links" = no; then
  6255. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6256. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6257. need_locks=warn
  6258. fi
  6259. else
  6260. need_locks=no
  6261. fi
  6262. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6263. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  6264. runpath_var=
  6265. allow_undefined_flag=
  6266. enable_shared_with_static_runtimes=no
  6267. archive_cmds=
  6268. archive_expsym_cmds=
  6269. old_archive_From_new_cmds=
  6270. old_archive_from_expsyms_cmds=
  6271. export_dynamic_flag_spec=
  6272. whole_archive_flag_spec=
  6273. thread_safe_flag_spec=
  6274. hardcode_libdir_flag_spec=
  6275. hardcode_libdir_flag_spec_ld=
  6276. hardcode_libdir_separator=
  6277. hardcode_direct=no
  6278. hardcode_minus_L=no
  6279. hardcode_shlibpath_var=unsupported
  6280. link_all_deplibs=unknown
  6281. hardcode_automatic=no
  6282. module_cmds=
  6283. module_expsym_cmds=
  6284. always_export_symbols=no
  6285. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6286. # include_expsyms should be a list of space-separated symbols to be *always*
  6287. # included in the symbol list
  6288. include_expsyms=
  6289. # exclude_expsyms can be an extended regexp of symbols to exclude
  6290. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6291. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6292. # as well as any symbol that contains `d'.
  6293. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6294. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6295. # platforms (ab)use it in PIC code, but their linkers get confused if
  6296. # the symbol is explicitly referenced. Since portable code cannot
  6297. # rely on this symbol name, it's probably fine to never include it in
  6298. # preloaded symbol tables.
  6299. extract_expsyms_cmds=
  6300. # Just being paranoid about ensuring that cc_basename is set.
  6301. for cc_temp in $compiler""; do
  6302. case $cc_temp in
  6303. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6304. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6305. \-*) ;;
  6306. *) break;;
  6307. esac
  6308. done
  6309. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6310. case $host_os in
  6311. cygwin* | mingw* | pw32*)
  6312. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6313. # When not using gcc, we currently assume that we are using
  6314. # Microsoft Visual C++.
  6315. if test "$GCC" != yes; then
  6316. with_gnu_ld=no
  6317. fi
  6318. ;;
  6319. interix*)
  6320. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6321. with_gnu_ld=yes
  6322. ;;
  6323. openbsd*)
  6324. with_gnu_ld=no
  6325. ;;
  6326. esac
  6327. ld_shlibs=yes
  6328. if test "$with_gnu_ld" = yes; then
  6329. # If archive_cmds runs LD, not CC, wlarc should be empty
  6330. wlarc='${wl}'
  6331. # Set some defaults for GNU ld with shared library support. These
  6332. # are reset later if shared libraries are not supported. Putting them
  6333. # here allows them to be overridden if necessary.
  6334. runpath_var=LD_RUN_PATH
  6335. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6336. export_dynamic_flag_spec='${wl}--export-dynamic'
  6337. # ancient GNU ld didn't support --whole-archive et. al.
  6338. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6339. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6340. else
  6341. whole_archive_flag_spec=
  6342. fi
  6343. supports_anon_versioning=no
  6344. case `$LD -v 2>/dev/null` in
  6345. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6346. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6347. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6348. *\ 2.11.*) ;; # other 2.11 versions
  6349. *) supports_anon_versioning=yes ;;
  6350. esac
  6351. # See if GNU ld supports shared libraries.
  6352. case $host_os in
  6353. aix3* | aix4* | aix5*)
  6354. # On AIX/PPC, the GNU linker is very broken
  6355. if test "$host_cpu" != ia64; then
  6356. ld_shlibs=no
  6357. cat <<EOF 1>&2
  6358. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6359. *** to be unable to reliably create shared libraries on AIX.
  6360. *** Therefore, libtool is disabling shared libraries support. If you
  6361. *** really care for shared libraries, you may want to modify your PATH
  6362. *** so that a non-GNU linker is found, and then restart.
  6363. EOF
  6364. fi
  6365. ;;
  6366. amigaos*)
  6367. 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)'
  6368. hardcode_libdir_flag_spec='-L$libdir'
  6369. hardcode_minus_L=yes
  6370. # Samuel A. Falvo II <[email protected]> reports
  6371. # that the semantics of dynamic libraries on AmigaOS, at least up
  6372. # to version 4, is to share data among multiple programs linked
  6373. # with the same dynamic library. Since this doesn't match the
  6374. # behavior of shared libraries on other platforms, we can't use
  6375. # them.
  6376. ld_shlibs=no
  6377. ;;
  6378. beos*)
  6379. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6380. allow_undefined_flag=unsupported
  6381. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6382. # support --undefined. This deserves some investigation. FIXME
  6383. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6384. else
  6385. ld_shlibs=no
  6386. fi
  6387. ;;
  6388. cygwin* | mingw* | pw32*)
  6389. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6390. # as there is no search path for DLLs.
  6391. hardcode_libdir_flag_spec='-L$libdir'
  6392. allow_undefined_flag=unsupported
  6393. always_export_symbols=no
  6394. enable_shared_with_static_runtimes=yes
  6395. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6396. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6397. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6398. # If the export-symbols file already is a .def file (1st line
  6399. # is EXPORTS), use it as is; otherwise, prepend...
  6400. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6401. cp $export_symbols $output_objdir/$soname.def;
  6402. else
  6403. echo EXPORTS > $output_objdir/$soname.def;
  6404. cat $export_symbols >> $output_objdir/$soname.def;
  6405. fi~
  6406. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6407. else
  6408. ld_shlibs=no
  6409. fi
  6410. ;;
  6411. interix3*)
  6412. hardcode_direct=no
  6413. hardcode_shlibpath_var=no
  6414. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6415. export_dynamic_flag_spec='${wl}-E'
  6416. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6417. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6418. # default) and relocated if they conflict, which is a slow very memory
  6419. # consuming and fragmenting process. To avoid this, we pick a random,
  6420. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6421. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6422. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6423. 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'
  6424. ;;
  6425. linux*)
  6426. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6427. tmp_addflag=
  6428. case $cc_basename,$host_cpu in
  6429. pgcc*) # Portland Group C compiler
  6430. 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'
  6431. tmp_addflag=' $pic_flag'
  6432. ;;
  6433. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6434. 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'
  6435. tmp_addflag=' $pic_flag -Mnomain' ;;
  6436. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6437. tmp_addflag=' -i_dynamic' ;;
  6438. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6439. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6440. ifc* | ifort*) # Intel Fortran compiler
  6441. tmp_addflag=' -nofor_main' ;;
  6442. esac
  6443. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6444. if test $supports_anon_versioning = yes; then
  6445. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6446. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6447. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6448. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6449. fi
  6450. else
  6451. ld_shlibs=no
  6452. fi
  6453. ;;
  6454. netbsd*)
  6455. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6456. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6457. wlarc=
  6458. else
  6459. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6460. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6461. fi
  6462. ;;
  6463. solaris*)
  6464. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6465. ld_shlibs=no
  6466. cat <<EOF 1>&2
  6467. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6468. *** create shared libraries on Solaris systems. Therefore, libtool
  6469. *** is disabling shared libraries support. We urge you to upgrade GNU
  6470. *** binutils to release 2.9.1 or newer. Another option is to modify
  6471. *** your PATH or compiler configuration so that the native linker is
  6472. *** used, and then restart.
  6473. EOF
  6474. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6475. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6476. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6477. else
  6478. ld_shlibs=no
  6479. fi
  6480. ;;
  6481. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6482. case `$LD -v 2>&1` in
  6483. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6484. ld_shlibs=no
  6485. cat <<_LT_EOF 1>&2
  6486. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6487. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6488. *** is disabling shared libraries support. We urge you to upgrade GNU
  6489. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6490. *** your PATH or compiler configuration so that the native linker is
  6491. *** used, and then restart.
  6492. _LT_EOF
  6493. ;;
  6494. *)
  6495. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6496. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6497. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6498. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6499. else
  6500. ld_shlibs=no
  6501. fi
  6502. ;;
  6503. esac
  6504. ;;
  6505. sunos4*)
  6506. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6507. wlarc=
  6508. hardcode_direct=yes
  6509. hardcode_shlibpath_var=no
  6510. ;;
  6511. *)
  6512. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6513. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6514. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6515. else
  6516. ld_shlibs=no
  6517. fi
  6518. ;;
  6519. esac
  6520. if test "$ld_shlibs" = no; then
  6521. runpath_var=
  6522. hardcode_libdir_flag_spec=
  6523. export_dynamic_flag_spec=
  6524. whole_archive_flag_spec=
  6525. fi
  6526. else
  6527. # PORTME fill in a description of your system's linker (not GNU ld)
  6528. case $host_os in
  6529. aix3*)
  6530. allow_undefined_flag=unsupported
  6531. always_export_symbols=yes
  6532. 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'
  6533. # Note: this linker hardcodes the directories in LIBPATH if there
  6534. # are no directories specified by -L.
  6535. hardcode_minus_L=yes
  6536. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6537. # Neither direct hardcoding nor static linking is supported with a
  6538. # broken collect2.
  6539. hardcode_direct=unsupported
  6540. fi
  6541. ;;
  6542. aix4* | aix5*)
  6543. if test "$host_cpu" = ia64; then
  6544. # On IA64, the linker does run time linking by default, so we don't
  6545. # have to do anything special.
  6546. aix_use_runtimelinking=no
  6547. exp_sym_flag='-Bexport'
  6548. no_entry_flag=""
  6549. else
  6550. # If we're using GNU nm, then we don't want the "-C" option.
  6551. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6552. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6553. 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'
  6554. else
  6555. 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'
  6556. fi
  6557. aix_use_runtimelinking=no
  6558. # Test if we are trying to use run time linking or normal
  6559. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6560. # need to do runtime linking.
  6561. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6562. for ld_flag in $LDFLAGS; do
  6563. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6564. aix_use_runtimelinking=yes
  6565. break
  6566. fi
  6567. done
  6568. ;;
  6569. esac
  6570. exp_sym_flag='-bexport'
  6571. no_entry_flag='-bnoentry'
  6572. fi
  6573. # When large executables or shared objects are built, AIX ld can
  6574. # have problems creating the table of contents. If linking a library
  6575. # or program results in "error TOC overflow" add -mminimal-toc to
  6576. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6577. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6578. archive_cmds=''
  6579. hardcode_direct=yes
  6580. hardcode_libdir_separator=':'
  6581. link_all_deplibs=yes
  6582. if test "$GCC" = yes; then
  6583. case $host_os in aix4.[012]|aix4.[012].*)
  6584. # We only want to do this on AIX 4.2 and lower, the check
  6585. # below for broken collect2 doesn't work under 4.3+
  6586. collect2name=`${CC} -print-prog-name=collect2`
  6587. if test -f "$collect2name" && \
  6588. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6589. then
  6590. # We have reworked collect2
  6591. hardcode_direct=yes
  6592. else
  6593. # We have old collect2
  6594. hardcode_direct=unsupported
  6595. # It fails to find uninstalled libraries when the uninstalled
  6596. # path is not listed in the libpath. Setting hardcode_minus_L
  6597. # to unsupported forces relinking
  6598. hardcode_minus_L=yes
  6599. hardcode_libdir_flag_spec='-L$libdir'
  6600. hardcode_libdir_separator=
  6601. fi
  6602. ;;
  6603. esac
  6604. shared_flag='-shared'
  6605. if test "$aix_use_runtimelinking" = yes; then
  6606. shared_flag="$shared_flag "'${wl}-G'
  6607. fi
  6608. else
  6609. # not using gcc
  6610. if test "$host_cpu" = ia64; then
  6611. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6612. # chokes on -Wl,-G. The following line is correct:
  6613. shared_flag='-G'
  6614. else
  6615. if test "$aix_use_runtimelinking" = yes; then
  6616. shared_flag='${wl}-G'
  6617. else
  6618. shared_flag='${wl}-bM:SRE'
  6619. fi
  6620. fi
  6621. fi
  6622. # It seems that -bexpall does not export symbols beginning with
  6623. # underscore (_), so it is better to generate a list of symbols to export.
  6624. always_export_symbols=yes
  6625. if test "$aix_use_runtimelinking" = yes; then
  6626. # Warning - without using the other runtime loading flags (-brtl),
  6627. # -berok will link without error, but may produce a broken library.
  6628. allow_undefined_flag='-berok'
  6629. # Determine the default libpath from the value encoded in an empty executable.
  6630. cat >conftest.$ac_ext <<_ACEOF
  6631. /* confdefs.h. */
  6632. _ACEOF
  6633. cat confdefs.h >>conftest.$ac_ext
  6634. cat >>conftest.$ac_ext <<_ACEOF
  6635. /* end confdefs.h. */
  6636. int
  6637. main ()
  6638. {
  6639. ;
  6640. return 0;
  6641. }
  6642. _ACEOF
  6643. rm -f conftest.$ac_objext conftest$ac_exeext
  6644. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6645. (eval $ac_link) 2>conftest.er1
  6646. ac_status=$?
  6647. grep -v '^ *+' conftest.er1 >conftest.err
  6648. rm -f conftest.er1
  6649. cat conftest.err >&5
  6650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6651. (exit $ac_status); } &&
  6652. { ac_try='test -z "$ac_c_werror_flag"
  6653. || test ! -s conftest.err'
  6654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6655. (eval $ac_try) 2>&5
  6656. ac_status=$?
  6657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6658. (exit $ac_status); }; } &&
  6659. { ac_try='test -s conftest$ac_exeext'
  6660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6661. (eval $ac_try) 2>&5
  6662. ac_status=$?
  6663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6664. (exit $ac_status); }; }; then
  6665. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6666. }'`
  6667. # Check for a 64-bit object if we didn't find anything.
  6668. 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; }
  6669. }'`; fi
  6670. else
  6671. echo "$as_me: failed program was:" >&5
  6672. sed 's/^/| /' conftest.$ac_ext >&5
  6673. fi
  6674. rm -f conftest.err conftest.$ac_objext \
  6675. conftest$ac_exeext conftest.$ac_ext
  6676. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6677. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6678. 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"
  6679. else
  6680. if test "$host_cpu" = ia64; then
  6681. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6682. allow_undefined_flag="-z nodefs"
  6683. 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"
  6684. else
  6685. # Determine the default libpath from the value encoded in an empty executable.
  6686. cat >conftest.$ac_ext <<_ACEOF
  6687. /* confdefs.h. */
  6688. _ACEOF
  6689. cat confdefs.h >>conftest.$ac_ext
  6690. cat >>conftest.$ac_ext <<_ACEOF
  6691. /* end confdefs.h. */
  6692. int
  6693. main ()
  6694. {
  6695. ;
  6696. return 0;
  6697. }
  6698. _ACEOF
  6699. rm -f conftest.$ac_objext conftest$ac_exeext
  6700. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6701. (eval $ac_link) 2>conftest.er1
  6702. ac_status=$?
  6703. grep -v '^ *+' conftest.er1 >conftest.err
  6704. rm -f conftest.er1
  6705. cat conftest.err >&5
  6706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707. (exit $ac_status); } &&
  6708. { ac_try='test -z "$ac_c_werror_flag"
  6709. || test ! -s conftest.err'
  6710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6711. (eval $ac_try) 2>&5
  6712. ac_status=$?
  6713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6714. (exit $ac_status); }; } &&
  6715. { ac_try='test -s conftest$ac_exeext'
  6716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6717. (eval $ac_try) 2>&5
  6718. ac_status=$?
  6719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6720. (exit $ac_status); }; }; then
  6721. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6722. }'`
  6723. # Check for a 64-bit object if we didn't find anything.
  6724. 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; }
  6725. }'`; fi
  6726. else
  6727. echo "$as_me: failed program was:" >&5
  6728. sed 's/^/| /' conftest.$ac_ext >&5
  6729. fi
  6730. rm -f conftest.err conftest.$ac_objext \
  6731. conftest$ac_exeext conftest.$ac_ext
  6732. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6733. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6734. # Warning - without using the other run time loading flags,
  6735. # -berok will link without error, but may produce a broken library.
  6736. no_undefined_flag=' ${wl}-bernotok'
  6737. allow_undefined_flag=' ${wl}-berok'
  6738. # Exported symbols can be pulled into shared objects from archives
  6739. whole_archive_flag_spec='$convenience'
  6740. archive_cmds_need_lc=yes
  6741. # This is similar to how AIX traditionally builds its shared libraries.
  6742. 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'
  6743. fi
  6744. fi
  6745. ;;
  6746. amigaos*)
  6747. 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)'
  6748. hardcode_libdir_flag_spec='-L$libdir'
  6749. hardcode_minus_L=yes
  6750. # see comment about different semantics on the GNU ld section
  6751. ld_shlibs=no
  6752. ;;
  6753. bsdi[45]*)
  6754. export_dynamic_flag_spec=-rdynamic
  6755. ;;
  6756. cygwin* | mingw* | pw32*)
  6757. # When not using gcc, we currently assume that we are using
  6758. # Microsoft Visual C++.
  6759. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6760. # no search path for DLLs.
  6761. hardcode_libdir_flag_spec=' '
  6762. allow_undefined_flag=unsupported
  6763. # Tell ltmain to make .lib files, not .a files.
  6764. libext=lib
  6765. # Tell ltmain to make .dll files, not .so files.
  6766. shrext_cmds=".dll"
  6767. # FIXME: Setting linknames here is a bad hack.
  6768. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6769. # The linker will automatically build a .lib file if we build a DLL.
  6770. old_archive_From_new_cmds='true'
  6771. # FIXME: Should let the user specify the lib program.
  6772. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6773. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6774. enable_shared_with_static_runtimes=yes
  6775. ;;
  6776. darwin* | rhapsody*)
  6777. case $host_os in
  6778. rhapsody* | darwin1.[012])
  6779. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6780. ;;
  6781. *) # Darwin 1.3 on
  6782. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6783. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6784. else
  6785. case ${MACOSX_DEPLOYMENT_TARGET} in
  6786. 10.[012])
  6787. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6788. ;;
  6789. 10.*)
  6790. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6791. ;;
  6792. esac
  6793. fi
  6794. ;;
  6795. esac
  6796. archive_cmds_need_lc=no
  6797. hardcode_direct=no
  6798. hardcode_automatic=yes
  6799. hardcode_shlibpath_var=unsupported
  6800. whole_archive_flag_spec=''
  6801. link_all_deplibs=yes
  6802. if test "$GCC" = yes ; then
  6803. output_verbose_link_cmd='echo'
  6804. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6805. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6806. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6807. 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}'
  6808. 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}'
  6809. else
  6810. case $cc_basename in
  6811. xlc*)
  6812. output_verbose_link_cmd='echo'
  6813. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6814. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6815. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6816. 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}'
  6817. 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}'
  6818. ;;
  6819. *)
  6820. ld_shlibs=no
  6821. ;;
  6822. esac
  6823. fi
  6824. ;;
  6825. dgux*)
  6826. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6827. hardcode_libdir_flag_spec='-L$libdir'
  6828. hardcode_shlibpath_var=no
  6829. ;;
  6830. freebsd1*)
  6831. ld_shlibs=no
  6832. ;;
  6833. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6834. # support. Future versions do this automatically, but an explicit c++rt0.o
  6835. # does not break anything, and helps significantly (at the cost of a little
  6836. # extra space).
  6837. freebsd2.2*)
  6838. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6839. hardcode_libdir_flag_spec='-R$libdir'
  6840. hardcode_direct=yes
  6841. hardcode_shlibpath_var=no
  6842. ;;
  6843. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6844. freebsd2*)
  6845. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6846. hardcode_direct=yes
  6847. hardcode_minus_L=yes
  6848. hardcode_shlibpath_var=no
  6849. ;;
  6850. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6851. freebsd* | kfreebsd*-gnu | dragonfly*)
  6852. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6853. hardcode_libdir_flag_spec='-R$libdir'
  6854. hardcode_direct=yes
  6855. hardcode_shlibpath_var=no
  6856. ;;
  6857. hpux9*)
  6858. if test "$GCC" = yes; then
  6859. 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'
  6860. else
  6861. 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'
  6862. fi
  6863. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6864. hardcode_libdir_separator=:
  6865. hardcode_direct=yes
  6866. # hardcode_minus_L: Not really in the search PATH,
  6867. # but as the default location of the library.
  6868. hardcode_minus_L=yes
  6869. export_dynamic_flag_spec='${wl}-E'
  6870. ;;
  6871. hpux10*)
  6872. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6873. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6874. else
  6875. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6876. fi
  6877. if test "$with_gnu_ld" = no; then
  6878. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6879. hardcode_libdir_separator=:
  6880. hardcode_direct=yes
  6881. export_dynamic_flag_spec='${wl}-E'
  6882. # hardcode_minus_L: Not really in the search PATH,
  6883. # but as the default location of the library.
  6884. hardcode_minus_L=yes
  6885. fi
  6886. ;;
  6887. hpux11*)
  6888. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6889. case $host_cpu in
  6890. hppa*64*)
  6891. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6892. ;;
  6893. ia64*)
  6894. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6895. ;;
  6896. *)
  6897. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6898. ;;
  6899. esac
  6900. else
  6901. case $host_cpu in
  6902. hppa*64*)
  6903. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6904. ;;
  6905. ia64*)
  6906. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6907. ;;
  6908. *)
  6909. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6910. ;;
  6911. esac
  6912. fi
  6913. if test "$with_gnu_ld" = no; then
  6914. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6915. hardcode_libdir_separator=:
  6916. case $host_cpu in
  6917. hppa*64*|ia64*)
  6918. hardcode_libdir_flag_spec_ld='+b $libdir'
  6919. hardcode_direct=no
  6920. hardcode_shlibpath_var=no
  6921. ;;
  6922. *)
  6923. hardcode_direct=yes
  6924. export_dynamic_flag_spec='${wl}-E'
  6925. # hardcode_minus_L: Not really in the search PATH,
  6926. # but as the default location of the library.
  6927. hardcode_minus_L=yes
  6928. ;;
  6929. esac
  6930. fi
  6931. ;;
  6932. irix5* | irix6* | nonstopux*)
  6933. if test "$GCC" = yes; then
  6934. 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'
  6935. else
  6936. 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'
  6937. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6938. fi
  6939. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6940. hardcode_libdir_separator=:
  6941. link_all_deplibs=yes
  6942. ;;
  6943. netbsd*)
  6944. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6945. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6946. else
  6947. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6948. fi
  6949. hardcode_libdir_flag_spec='-R$libdir'
  6950. hardcode_direct=yes
  6951. hardcode_shlibpath_var=no
  6952. ;;
  6953. newsos6)
  6954. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6955. hardcode_direct=yes
  6956. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6957. hardcode_libdir_separator=:
  6958. hardcode_shlibpath_var=no
  6959. ;;
  6960. openbsd*)
  6961. hardcode_direct=yes
  6962. hardcode_shlibpath_var=no
  6963. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6964. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6965. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6966. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6967. export_dynamic_flag_spec='${wl}-E'
  6968. else
  6969. case $host_os in
  6970. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6971. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6972. hardcode_libdir_flag_spec='-R$libdir'
  6973. ;;
  6974. *)
  6975. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6976. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6977. ;;
  6978. esac
  6979. fi
  6980. ;;
  6981. os2*)
  6982. hardcode_libdir_flag_spec='-L$libdir'
  6983. hardcode_minus_L=yes
  6984. allow_undefined_flag=unsupported
  6985. 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'
  6986. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6987. ;;
  6988. osf3*)
  6989. if test "$GCC" = yes; then
  6990. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6991. 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'
  6992. else
  6993. allow_undefined_flag=' -expect_unresolved \*'
  6994. 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'
  6995. fi
  6996. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6997. hardcode_libdir_separator=:
  6998. ;;
  6999. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7000. if test "$GCC" = yes; then
  7001. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7002. 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'
  7003. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7004. else
  7005. allow_undefined_flag=' -expect_unresolved \*'
  7006. 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'
  7007. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7008. $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'
  7009. # Both c and cxx compiler support -rpath directly
  7010. hardcode_libdir_flag_spec='-rpath $libdir'
  7011. fi
  7012. hardcode_libdir_separator=:
  7013. ;;
  7014. solaris*)
  7015. no_undefined_flag=' -z text'
  7016. if test "$GCC" = yes; then
  7017. wlarc='${wl}'
  7018. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7019. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7020. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7021. else
  7022. wlarc=''
  7023. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7024. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7025. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7026. fi
  7027. hardcode_libdir_flag_spec='-R$libdir'
  7028. hardcode_shlibpath_var=no
  7029. case $host_os in
  7030. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7031. *)
  7032. # The compiler driver will combine linker options so we
  7033. # cannot just pass the convience library names through
  7034. # without $wl, iff we do not link with $LD.
  7035. # Luckily, gcc supports the same syntax we need for Sun Studio.
  7036. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7037. case $wlarc in
  7038. '')
  7039. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7040. *)
  7041. 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' ;;
  7042. esac ;;
  7043. esac
  7044. link_all_deplibs=yes
  7045. ;;
  7046. sunos4*)
  7047. if test "x$host_vendor" = xsequent; then
  7048. # Use $CC to link under sequent, because it throws in some extra .o
  7049. # files that make .init and .fini sections work.
  7050. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7051. else
  7052. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7053. fi
  7054. hardcode_libdir_flag_spec='-L$libdir'
  7055. hardcode_direct=yes
  7056. hardcode_minus_L=yes
  7057. hardcode_shlibpath_var=no
  7058. ;;
  7059. sysv4)
  7060. case $host_vendor in
  7061. sni)
  7062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7063. hardcode_direct=yes # is this really true???
  7064. ;;
  7065. siemens)
  7066. ## LD is ld it makes a PLAMLIB
  7067. ## CC just makes a GrossModule.
  7068. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7069. reload_cmds='$CC -r -o $output$reload_objs'
  7070. hardcode_direct=no
  7071. ;;
  7072. motorola)
  7073. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7074. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7075. ;;
  7076. esac
  7077. runpath_var='LD_RUN_PATH'
  7078. hardcode_shlibpath_var=no
  7079. ;;
  7080. sysv4.3*)
  7081. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7082. hardcode_shlibpath_var=no
  7083. export_dynamic_flag_spec='-Bexport'
  7084. ;;
  7085. sysv4*MP*)
  7086. if test -d /usr/nec; then
  7087. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7088. hardcode_shlibpath_var=no
  7089. runpath_var=LD_RUN_PATH
  7090. hardcode_runpath_var=yes
  7091. ld_shlibs=yes
  7092. fi
  7093. ;;
  7094. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  7095. no_undefined_flag='${wl}-z,text'
  7096. archive_cmds_need_lc=no
  7097. hardcode_shlibpath_var=no
  7098. runpath_var='LD_RUN_PATH'
  7099. if test "$GCC" = yes; then
  7100. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7101. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7102. else
  7103. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7104. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7105. fi
  7106. ;;
  7107. sysv5* | sco3.2v5* | sco5v6*)
  7108. # Note: We can NOT use -z defs as we might desire, because we do not
  7109. # link with -lc, and that would cause any symbols used from libc to
  7110. # always be unresolved, which means just about no library would
  7111. # ever link correctly. If we're not using GNU ld we use -z text
  7112. # though, which does catch some bad symbols but isn't as heavy-handed
  7113. # as -z defs.
  7114. no_undefined_flag='${wl}-z,text'
  7115. allow_undefined_flag='${wl}-z,nodefs'
  7116. archive_cmds_need_lc=no
  7117. hardcode_shlibpath_var=no
  7118. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7119. hardcode_libdir_separator=':'
  7120. link_all_deplibs=yes
  7121. export_dynamic_flag_spec='${wl}-Bexport'
  7122. runpath_var='LD_RUN_PATH'
  7123. if test "$GCC" = yes; then
  7124. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7125. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7126. else
  7127. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7128. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7129. fi
  7130. ;;
  7131. uts4*)
  7132. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7133. hardcode_libdir_flag_spec='-L$libdir'
  7134. hardcode_shlibpath_var=no
  7135. ;;
  7136. *)
  7137. ld_shlibs=no
  7138. ;;
  7139. esac
  7140. fi
  7141. echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7142. echo "${ECHO_T}$ld_shlibs" >&6
  7143. test "$ld_shlibs" = no && can_build_shared=no
  7144. #
  7145. # Do we need to explicitly link libc?
  7146. #
  7147. case "x$archive_cmds_need_lc" in
  7148. x|xyes)
  7149. # Assume -lc should be added
  7150. archive_cmds_need_lc=yes
  7151. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7152. case $archive_cmds in
  7153. *'~'*)
  7154. # FIXME: we may have to deal with multi-command sequences.
  7155. ;;
  7156. '$CC '*)
  7157. # Test whether the compiler implicitly links with -lc since on some
  7158. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7159. # to ld, don't add -lc before -lgcc.
  7160. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7161. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  7162. $rm conftest*
  7163. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  7164. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7165. (eval $ac_compile) 2>&5
  7166. ac_status=$?
  7167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7168. (exit $ac_status); } 2>conftest.err; then
  7169. soname=conftest
  7170. lib=conftest
  7171. libobjs=conftest.$ac_objext
  7172. deplibs=
  7173. wl=$lt_prog_compiler_wl
  7174. pic_flag=$lt_prog_compiler_pic
  7175. compiler_flags=-v
  7176. linker_flags=-v
  7177. verstring=
  7178. output_objdir=.
  7179. libname=conftest
  7180. lt_save_allow_undefined_flag=$allow_undefined_flag
  7181. allow_undefined_flag=
  7182. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7183. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  7184. ac_status=$?
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. (exit $ac_status); }
  7187. then
  7188. archive_cmds_need_lc=no
  7189. else
  7190. archive_cmds_need_lc=yes
  7191. fi
  7192. allow_undefined_flag=$lt_save_allow_undefined_flag
  7193. else
  7194. cat conftest.err 1>&5
  7195. fi
  7196. $rm conftest*
  7197. echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  7198. echo "${ECHO_T}$archive_cmds_need_lc" >&6
  7199. ;;
  7200. esac
  7201. fi
  7202. ;;
  7203. esac
  7204. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7205. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7206. library_names_spec=
  7207. libname_spec='lib$name'
  7208. soname_spec=
  7209. shrext_cmds=".so"
  7210. postinstall_cmds=
  7211. postuninstall_cmds=
  7212. finish_cmds=
  7213. finish_eval=
  7214. shlibpath_var=
  7215. shlibpath_overrides_runpath=unknown
  7216. version_type=none
  7217. dynamic_linker="$host_os ld.so"
  7218. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7219. if test "$GCC" = yes; then
  7220. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7221. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  7222. # if the path contains ";" then we assume it to be the separator
  7223. # otherwise default to the standard path separator (i.e. ":") - it is
  7224. # assumed that no part of a normal pathname contains ";" but that should
  7225. # okay in the real world where ";" in dirpaths is itself problematic.
  7226. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7227. else
  7228. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7229. fi
  7230. else
  7231. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7232. fi
  7233. need_lib_prefix=unknown
  7234. hardcode_into_libs=no
  7235. # when you set need_version to no, make sure it does not cause -set_version
  7236. # flags to be left without arguments
  7237. need_version=unknown
  7238. case $host_os in
  7239. aix3*)
  7240. version_type=linux
  7241. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7242. shlibpath_var=LIBPATH
  7243. # AIX 3 has no versioning support, so we append a major version to the name.
  7244. soname_spec='${libname}${release}${shared_ext}$major'
  7245. ;;
  7246. aix4* | aix5*)
  7247. version_type=linux
  7248. need_lib_prefix=no
  7249. need_version=no
  7250. hardcode_into_libs=yes
  7251. if test "$host_cpu" = ia64; then
  7252. # AIX 5 supports IA64
  7253. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7254. shlibpath_var=LD_LIBRARY_PATH
  7255. else
  7256. # With GCC up to 2.95.x, collect2 would create an import file
  7257. # for dependence libraries. The import file would start with
  7258. # the line `#! .'. This would cause the generated library to
  7259. # depend on `.', always an invalid library. This was fixed in
  7260. # development snapshots of GCC prior to 3.0.
  7261. case $host_os in
  7262. aix4 | aix4.[01] | aix4.[01].*)
  7263. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7264. echo ' yes '
  7265. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7266. :
  7267. else
  7268. can_build_shared=no
  7269. fi
  7270. ;;
  7271. esac
  7272. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7273. # soname into executable. Probably we can add versioning support to
  7274. # collect2, so additional links can be useful in future.
  7275. if test "$aix_use_runtimelinking" = yes; then
  7276. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7277. # instead of lib<name>.a to let people know that these are not
  7278. # typical AIX shared libraries.
  7279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7280. else
  7281. # We preserve .a as extension for shared libraries through AIX4.2
  7282. # and later when we are not doing run time linking.
  7283. library_names_spec='${libname}${release}.a $libname.a'
  7284. soname_spec='${libname}${release}${shared_ext}$major'
  7285. fi
  7286. shlibpath_var=LIBPATH
  7287. fi
  7288. ;;
  7289. amigaos*)
  7290. library_names_spec='$libname.ixlibrary $libname.a'
  7291. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7292. 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'
  7293. ;;
  7294. beos*)
  7295. library_names_spec='${libname}${shared_ext}'
  7296. dynamic_linker="$host_os ld.so"
  7297. shlibpath_var=LIBRARY_PATH
  7298. ;;
  7299. bsdi[45]*)
  7300. version_type=linux
  7301. need_version=no
  7302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7303. soname_spec='${libname}${release}${shared_ext}$major'
  7304. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7305. shlibpath_var=LD_LIBRARY_PATH
  7306. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7307. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7308. # the default ld.so.conf also contains /usr/contrib/lib and
  7309. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7310. # libtool to hard-code these into programs
  7311. ;;
  7312. cygwin* | mingw* | pw32*)
  7313. version_type=windows
  7314. shrext_cmds=".dll"
  7315. need_version=no
  7316. need_lib_prefix=no
  7317. case $GCC,$host_os in
  7318. yes,cygwin* | yes,mingw* | yes,pw32*)
  7319. library_names_spec='$libname.dll.a'
  7320. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7321. postinstall_cmds='base_file=`basename \${file}`~
  7322. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7323. dldir=$destdir/`dirname \$dlpath`~
  7324. test -d \$dldir || mkdir -p \$dldir~
  7325. $install_prog $dir/$dlname \$dldir/$dlname~
  7326. chmod a+x \$dldir/$dlname'
  7327. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7328. dlpath=$dir/\$dldll~
  7329. $rm \$dlpath'
  7330. shlibpath_overrides_runpath=yes
  7331. case $host_os in
  7332. cygwin*)
  7333. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7334. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7335. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7336. ;;
  7337. mingw*)
  7338. # MinGW DLLs use traditional 'lib' prefix
  7339. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7340. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7341. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7342. # It is most probably a Windows format PATH printed by
  7343. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7344. # path with ; separators, and with drive letters. We can handle the
  7345. # drive letters (cygwin fileutils understands them), so leave them,
  7346. # especially as we might pass files found there to a mingw objdump,
  7347. # which wouldn't understand a cygwinified path. Ahh.
  7348. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7349. else
  7350. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7351. fi
  7352. ;;
  7353. pw32*)
  7354. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7355. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7356. ;;
  7357. esac
  7358. ;;
  7359. *)
  7360. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7361. ;;
  7362. esac
  7363. dynamic_linker='Win32 ld.exe'
  7364. # FIXME: first we should search . and the directory the executable is in
  7365. shlibpath_var=PATH
  7366. ;;
  7367. darwin* | rhapsody*)
  7368. dynamic_linker="$host_os dyld"
  7369. version_type=darwin
  7370. need_lib_prefix=no
  7371. need_version=no
  7372. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7373. soname_spec='${libname}${release}${major}$shared_ext'
  7374. shlibpath_overrides_runpath=yes
  7375. shlibpath_var=DYLD_LIBRARY_PATH
  7376. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7377. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  7378. if test "$GCC" = yes; then
  7379. 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"`
  7380. else
  7381. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  7382. fi
  7383. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7384. ;;
  7385. dgux*)
  7386. version_type=linux
  7387. need_lib_prefix=no
  7388. need_version=no
  7389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7390. soname_spec='${libname}${release}${shared_ext}$major'
  7391. shlibpath_var=LD_LIBRARY_PATH
  7392. ;;
  7393. freebsd1*)
  7394. dynamic_linker=no
  7395. ;;
  7396. kfreebsd*-gnu)
  7397. version_type=linux
  7398. need_lib_prefix=no
  7399. need_version=no
  7400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7401. soname_spec='${libname}${release}${shared_ext}$major'
  7402. shlibpath_var=LD_LIBRARY_PATH
  7403. shlibpath_overrides_runpath=no
  7404. hardcode_into_libs=yes
  7405. dynamic_linker='GNU ld.so'
  7406. ;;
  7407. freebsd* | dragonfly*)
  7408. # DragonFly does not have aout. When/if they implement a new
  7409. # versioning mechanism, adjust this.
  7410. if test -x /usr/bin/objformat; then
  7411. objformat=`/usr/bin/objformat`
  7412. else
  7413. case $host_os in
  7414. freebsd[123]*) objformat=aout ;;
  7415. *) objformat=elf ;;
  7416. esac
  7417. fi
  7418. version_type=freebsd-$objformat
  7419. case $version_type in
  7420. freebsd-elf*)
  7421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7422. need_version=no
  7423. need_lib_prefix=no
  7424. ;;
  7425. freebsd-*)
  7426. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7427. need_version=yes
  7428. ;;
  7429. esac
  7430. shlibpath_var=LD_LIBRARY_PATH
  7431. case $host_os in
  7432. freebsd2*)
  7433. shlibpath_overrides_runpath=yes
  7434. ;;
  7435. freebsd3.[01]* | freebsdelf3.[01]*)
  7436. shlibpath_overrides_runpath=yes
  7437. hardcode_into_libs=yes
  7438. ;;
  7439. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7440. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7441. shlibpath_overrides_runpath=no
  7442. hardcode_into_libs=yes
  7443. ;;
  7444. freebsd*) # from 4.6 on
  7445. shlibpath_overrides_runpath=yes
  7446. hardcode_into_libs=yes
  7447. ;;
  7448. esac
  7449. ;;
  7450. gnu*)
  7451. version_type=linux
  7452. need_lib_prefix=no
  7453. need_version=no
  7454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7455. soname_spec='${libname}${release}${shared_ext}$major'
  7456. shlibpath_var=LD_LIBRARY_PATH
  7457. hardcode_into_libs=yes
  7458. ;;
  7459. hpux9* | hpux10* | hpux11*)
  7460. # Give a soname corresponding to the major version so that dld.sl refuses to
  7461. # link against other versions.
  7462. version_type=sunos
  7463. need_lib_prefix=no
  7464. need_version=no
  7465. case $host_cpu in
  7466. ia64*)
  7467. shrext_cmds='.so'
  7468. hardcode_into_libs=yes
  7469. dynamic_linker="$host_os dld.so"
  7470. shlibpath_var=LD_LIBRARY_PATH
  7471. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7473. soname_spec='${libname}${release}${shared_ext}$major'
  7474. if test "X$HPUX_IA64_MODE" = X32; then
  7475. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7476. else
  7477. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7478. fi
  7479. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7480. ;;
  7481. hppa*64*)
  7482. shrext_cmds='.sl'
  7483. hardcode_into_libs=yes
  7484. dynamic_linker="$host_os dld.sl"
  7485. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7486. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7488. soname_spec='${libname}${release}${shared_ext}$major'
  7489. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7490. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7491. ;;
  7492. *)
  7493. shrext_cmds='.sl'
  7494. dynamic_linker="$host_os dld.sl"
  7495. shlibpath_var=SHLIB_PATH
  7496. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7497. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7498. soname_spec='${libname}${release}${shared_ext}$major'
  7499. ;;
  7500. esac
  7501. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7502. postinstall_cmds='chmod 555 $lib'
  7503. ;;
  7504. interix3*)
  7505. version_type=linux
  7506. need_lib_prefix=no
  7507. need_version=no
  7508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7509. soname_spec='${libname}${release}${shared_ext}$major'
  7510. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7511. shlibpath_var=LD_LIBRARY_PATH
  7512. shlibpath_overrides_runpath=no
  7513. hardcode_into_libs=yes
  7514. ;;
  7515. irix5* | irix6* | nonstopux*)
  7516. case $host_os in
  7517. nonstopux*) version_type=nonstopux ;;
  7518. *)
  7519. if test "$lt_cv_prog_gnu_ld" = yes; then
  7520. version_type=linux
  7521. else
  7522. version_type=irix
  7523. fi ;;
  7524. esac
  7525. need_lib_prefix=no
  7526. need_version=no
  7527. soname_spec='${libname}${release}${shared_ext}$major'
  7528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7529. case $host_os in
  7530. irix5* | nonstopux*)
  7531. libsuff= shlibsuff=
  7532. ;;
  7533. *)
  7534. case $LD in # libtool.m4 will add one of these switches to LD
  7535. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7536. libsuff= shlibsuff= libmagic=32-bit;;
  7537. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7538. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7539. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7540. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7541. *) libsuff= shlibsuff= libmagic=never-match;;
  7542. esac
  7543. ;;
  7544. esac
  7545. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7546. shlibpath_overrides_runpath=no
  7547. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7548. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7549. hardcode_into_libs=yes
  7550. ;;
  7551. # No shared lib support for Linux oldld, aout, or coff.
  7552. linux*oldld* | linux*aout* | linux*coff*)
  7553. dynamic_linker=no
  7554. ;;
  7555. # This must be Linux ELF.
  7556. linux*)
  7557. version_type=linux
  7558. need_lib_prefix=no
  7559. need_version=no
  7560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7561. soname_spec='${libname}${release}${shared_ext}$major'
  7562. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7563. shlibpath_var=LD_LIBRARY_PATH
  7564. shlibpath_overrides_runpath=no
  7565. # This implies no fast_install, which is unacceptable.
  7566. # Some rework will be needed to allow for fast_install
  7567. # before this can be enabled.
  7568. hardcode_into_libs=yes
  7569. # Append ld.so.conf contents to the search path
  7570. if test -f /etc/ld.so.conf; then
  7571. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7572. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7573. fi
  7574. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7575. # powerpc, because MkLinux only supported shared libraries with the
  7576. # GNU dynamic linker. Since this was broken with cross compilers,
  7577. # most powerpc-linux boxes support dynamic linking these days and
  7578. # people can always --disable-shared, the test was removed, and we
  7579. # assume the GNU/Linux dynamic linker is in use.
  7580. dynamic_linker='GNU/Linux ld.so'
  7581. ;;
  7582. knetbsd*-gnu)
  7583. version_type=linux
  7584. need_lib_prefix=no
  7585. need_version=no
  7586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7587. soname_spec='${libname}${release}${shared_ext}$major'
  7588. shlibpath_var=LD_LIBRARY_PATH
  7589. shlibpath_overrides_runpath=no
  7590. hardcode_into_libs=yes
  7591. dynamic_linker='GNU ld.so'
  7592. ;;
  7593. netbsd*)
  7594. version_type=sunos
  7595. need_lib_prefix=no
  7596. need_version=no
  7597. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7599. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7600. dynamic_linker='NetBSD (a.out) ld.so'
  7601. else
  7602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7603. soname_spec='${libname}${release}${shared_ext}$major'
  7604. dynamic_linker='NetBSD ld.elf_so'
  7605. fi
  7606. shlibpath_var=LD_LIBRARY_PATH
  7607. shlibpath_overrides_runpath=yes
  7608. hardcode_into_libs=yes
  7609. ;;
  7610. newsos6)
  7611. version_type=linux
  7612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7613. shlibpath_var=LD_LIBRARY_PATH
  7614. shlibpath_overrides_runpath=yes
  7615. ;;
  7616. nto-qnx*)
  7617. version_type=linux
  7618. need_lib_prefix=no
  7619. need_version=no
  7620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7621. soname_spec='${libname}${release}${shared_ext}$major'
  7622. shlibpath_var=LD_LIBRARY_PATH
  7623. shlibpath_overrides_runpath=yes
  7624. ;;
  7625. openbsd*)
  7626. version_type=sunos
  7627. sys_lib_dlsearch_path_spec="/usr/lib"
  7628. need_lib_prefix=no
  7629. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7630. case $host_os in
  7631. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7632. *) need_version=no ;;
  7633. esac
  7634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7635. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7636. shlibpath_var=LD_LIBRARY_PATH
  7637. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7638. case $host_os in
  7639. openbsd2.[89] | openbsd2.[89].*)
  7640. shlibpath_overrides_runpath=no
  7641. ;;
  7642. *)
  7643. shlibpath_overrides_runpath=yes
  7644. ;;
  7645. esac
  7646. else
  7647. shlibpath_overrides_runpath=yes
  7648. fi
  7649. ;;
  7650. os2*)
  7651. libname_spec='$name'
  7652. shrext_cmds=".dll"
  7653. need_lib_prefix=no
  7654. library_names_spec='$libname${shared_ext} $libname.a'
  7655. dynamic_linker='OS/2 ld.exe'
  7656. shlibpath_var=LIBPATH
  7657. ;;
  7658. osf3* | osf4* | osf5*)
  7659. version_type=osf
  7660. need_lib_prefix=no
  7661. need_version=no
  7662. soname_spec='${libname}${release}${shared_ext}$major'
  7663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7664. shlibpath_var=LD_LIBRARY_PATH
  7665. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7666. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7667. ;;
  7668. solaris*)
  7669. version_type=linux
  7670. need_lib_prefix=no
  7671. need_version=no
  7672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7673. soname_spec='${libname}${release}${shared_ext}$major'
  7674. shlibpath_var=LD_LIBRARY_PATH
  7675. shlibpath_overrides_runpath=yes
  7676. hardcode_into_libs=yes
  7677. # ldd complains unless libraries are executable
  7678. postinstall_cmds='chmod +x $lib'
  7679. ;;
  7680. sunos4*)
  7681. version_type=sunos
  7682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7683. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7684. shlibpath_var=LD_LIBRARY_PATH
  7685. shlibpath_overrides_runpath=yes
  7686. if test "$with_gnu_ld" = yes; then
  7687. need_lib_prefix=no
  7688. fi
  7689. need_version=yes
  7690. ;;
  7691. sysv4 | sysv4.3*)
  7692. version_type=linux
  7693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7694. soname_spec='${libname}${release}${shared_ext}$major'
  7695. shlibpath_var=LD_LIBRARY_PATH
  7696. case $host_vendor in
  7697. sni)
  7698. shlibpath_overrides_runpath=no
  7699. need_lib_prefix=no
  7700. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7701. runpath_var=LD_RUN_PATH
  7702. ;;
  7703. siemens)
  7704. need_lib_prefix=no
  7705. ;;
  7706. motorola)
  7707. need_lib_prefix=no
  7708. need_version=no
  7709. shlibpath_overrides_runpath=no
  7710. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7711. ;;
  7712. esac
  7713. ;;
  7714. sysv4*MP*)
  7715. if test -d /usr/nec ;then
  7716. version_type=linux
  7717. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7718. soname_spec='$libname${shared_ext}.$major'
  7719. shlibpath_var=LD_LIBRARY_PATH
  7720. fi
  7721. ;;
  7722. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7723. version_type=freebsd-elf
  7724. need_lib_prefix=no
  7725. need_version=no
  7726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7727. soname_spec='${libname}${release}${shared_ext}$major'
  7728. shlibpath_var=LD_LIBRARY_PATH
  7729. hardcode_into_libs=yes
  7730. if test "$with_gnu_ld" = yes; then
  7731. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7732. shlibpath_overrides_runpath=no
  7733. else
  7734. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7735. shlibpath_overrides_runpath=yes
  7736. case $host_os in
  7737. sco3.2v5*)
  7738. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7739. ;;
  7740. esac
  7741. fi
  7742. sys_lib_dlsearch_path_spec='/usr/lib'
  7743. ;;
  7744. uts4*)
  7745. version_type=linux
  7746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7747. soname_spec='${libname}${release}${shared_ext}$major'
  7748. shlibpath_var=LD_LIBRARY_PATH
  7749. ;;
  7750. *)
  7751. dynamic_linker=no
  7752. ;;
  7753. esac
  7754. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7755. echo "${ECHO_T}$dynamic_linker" >&6
  7756. test "$dynamic_linker" = no && can_build_shared=no
  7757. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7758. if test "$GCC" = yes; then
  7759. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7760. fi
  7761. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7762. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7763. hardcode_action=
  7764. if test -n "$hardcode_libdir_flag_spec" || \
  7765. test -n "$runpath_var" || \
  7766. test "X$hardcode_automatic" = "Xyes" ; then
  7767. # We can hardcode non-existant directories.
  7768. if test "$hardcode_direct" != no &&
  7769. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7770. # have to relink, otherwise we might link with an installed library
  7771. # when we should be linking with a yet-to-be-installed one
  7772. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7773. test "$hardcode_minus_L" != no; then
  7774. # Linking always hardcodes the temporary library directory.
  7775. hardcode_action=relink
  7776. else
  7777. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7778. hardcode_action=immediate
  7779. fi
  7780. else
  7781. # We cannot hardcode anything, or else we can only hardcode existing
  7782. # directories.
  7783. hardcode_action=unsupported
  7784. fi
  7785. echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7786. echo "${ECHO_T}$hardcode_action" >&6
  7787. if test "$hardcode_action" = relink; then
  7788. # Fast installation is not supported
  7789. enable_fast_install=no
  7790. elif test "$shlibpath_overrides_runpath" = yes ||
  7791. test "$enable_shared" = no; then
  7792. # Fast installation is not necessary
  7793. enable_fast_install=needless
  7794. fi
  7795. striplib=
  7796. old_striplib=
  7797. echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7798. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7799. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7800. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7801. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7802. echo "$as_me:$LINENO: result: yes" >&5
  7803. echo "${ECHO_T}yes" >&6
  7804. else
  7805. # FIXME - insert some real tests, host_os isn't really good enough
  7806. case $host_os in
  7807. darwin*)
  7808. if test -n "$STRIP" ; then
  7809. striplib="$STRIP -x"
  7810. echo "$as_me:$LINENO: result: yes" >&5
  7811. echo "${ECHO_T}yes" >&6
  7812. else
  7813. echo "$as_me:$LINENO: result: no" >&5
  7814. echo "${ECHO_T}no" >&6
  7815. fi
  7816. ;;
  7817. *)
  7818. echo "$as_me:$LINENO: result: no" >&5
  7819. echo "${ECHO_T}no" >&6
  7820. ;;
  7821. esac
  7822. fi
  7823. if test "x$enable_dlopen" != xyes; then
  7824. enable_dlopen=unknown
  7825. enable_dlopen_self=unknown
  7826. enable_dlopen_self_static=unknown
  7827. else
  7828. lt_cv_dlopen=no
  7829. lt_cv_dlopen_libs=
  7830. case $host_os in
  7831. beos*)
  7832. lt_cv_dlopen="load_add_on"
  7833. lt_cv_dlopen_libs=
  7834. lt_cv_dlopen_self=yes
  7835. ;;
  7836. mingw* | pw32*)
  7837. lt_cv_dlopen="LoadLibrary"
  7838. lt_cv_dlopen_libs=
  7839. ;;
  7840. cygwin*)
  7841. lt_cv_dlopen="dlopen"
  7842. lt_cv_dlopen_libs=
  7843. ;;
  7844. darwin*)
  7845. # if libdl is installed we need to link against it
  7846. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7847. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7848. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7849. echo $ECHO_N "(cached) $ECHO_C" >&6
  7850. else
  7851. ac_check_lib_save_LIBS=$LIBS
  7852. LIBS="-ldl $LIBS"
  7853. cat >conftest.$ac_ext <<_ACEOF
  7854. /* confdefs.h. */
  7855. _ACEOF
  7856. cat confdefs.h >>conftest.$ac_ext
  7857. cat >>conftest.$ac_ext <<_ACEOF
  7858. /* end confdefs.h. */
  7859. /* Override any gcc2 internal prototype to avoid an error. */
  7860. #ifdef __cplusplus
  7861. extern "C"
  7862. #endif
  7863. /* We use char because int might match the return type of a gcc2
  7864. builtin and then its argument prototype would still apply. */
  7865. char dlopen ();
  7866. int
  7867. main ()
  7868. {
  7869. dlopen ();
  7870. ;
  7871. return 0;
  7872. }
  7873. _ACEOF
  7874. rm -f conftest.$ac_objext conftest$ac_exeext
  7875. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7876. (eval $ac_link) 2>conftest.er1
  7877. ac_status=$?
  7878. grep -v '^ *+' conftest.er1 >conftest.err
  7879. rm -f conftest.er1
  7880. cat conftest.err >&5
  7881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7882. (exit $ac_status); } &&
  7883. { ac_try='test -z "$ac_c_werror_flag"
  7884. || test ! -s conftest.err'
  7885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7886. (eval $ac_try) 2>&5
  7887. ac_status=$?
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. (exit $ac_status); }; } &&
  7890. { ac_try='test -s conftest$ac_exeext'
  7891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7892. (eval $ac_try) 2>&5
  7893. ac_status=$?
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. (exit $ac_status); }; }; then
  7896. ac_cv_lib_dl_dlopen=yes
  7897. else
  7898. echo "$as_me: failed program was:" >&5
  7899. sed 's/^/| /' conftest.$ac_ext >&5
  7900. ac_cv_lib_dl_dlopen=no
  7901. fi
  7902. rm -f conftest.err conftest.$ac_objext \
  7903. conftest$ac_exeext conftest.$ac_ext
  7904. LIBS=$ac_check_lib_save_LIBS
  7905. fi
  7906. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  7907. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  7908. if test $ac_cv_lib_dl_dlopen = yes; then
  7909. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7910. else
  7911. lt_cv_dlopen="dyld"
  7912. lt_cv_dlopen_libs=
  7913. lt_cv_dlopen_self=yes
  7914. fi
  7915. ;;
  7916. *)
  7917. echo "$as_me:$LINENO: checking for shl_load" >&5
  7918. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7919. if test "${ac_cv_func_shl_load+set}" = set; then
  7920. echo $ECHO_N "(cached) $ECHO_C" >&6
  7921. else
  7922. cat >conftest.$ac_ext <<_ACEOF
  7923. /* confdefs.h. */
  7924. _ACEOF
  7925. cat confdefs.h >>conftest.$ac_ext
  7926. cat >>conftest.$ac_ext <<_ACEOF
  7927. /* end confdefs.h. */
  7928. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7929. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7930. #define shl_load innocuous_shl_load
  7931. /* System header to define __stub macros and hopefully few prototypes,
  7932. which can conflict with char shl_load (); below.
  7933. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7934. <limits.h> exists even on freestanding compilers. */
  7935. #ifdef __STDC__
  7936. # include <limits.h>
  7937. #else
  7938. # include <assert.h>
  7939. #endif
  7940. #undef shl_load
  7941. /* Override any gcc2 internal prototype to avoid an error. */
  7942. #ifdef __cplusplus
  7943. extern "C"
  7944. {
  7945. #endif
  7946. /* We use char because int might match the return type of a gcc2
  7947. builtin and then its argument prototype would still apply. */
  7948. char shl_load ();
  7949. /* The GNU C library defines this for functions which it implements
  7950. to always fail with ENOSYS. Some functions are actually named
  7951. something starting with __ and the normal name is an alias. */
  7952. #if defined (__stub_shl_load) || defined (__stub___shl_load)
  7953. choke me
  7954. #else
  7955. char (*f) () = shl_load;
  7956. #endif
  7957. #ifdef __cplusplus
  7958. }
  7959. #endif
  7960. int
  7961. main ()
  7962. {
  7963. return f != shl_load;
  7964. ;
  7965. return 0;
  7966. }
  7967. _ACEOF
  7968. rm -f conftest.$ac_objext conftest$ac_exeext
  7969. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7970. (eval $ac_link) 2>conftest.er1
  7971. ac_status=$?
  7972. grep -v '^ *+' conftest.er1 >conftest.err
  7973. rm -f conftest.er1
  7974. cat conftest.err >&5
  7975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); } &&
  7977. { ac_try='test -z "$ac_c_werror_flag"
  7978. || test ! -s conftest.err'
  7979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7980. (eval $ac_try) 2>&5
  7981. ac_status=$?
  7982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7983. (exit $ac_status); }; } &&
  7984. { ac_try='test -s conftest$ac_exeext'
  7985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7986. (eval $ac_try) 2>&5
  7987. ac_status=$?
  7988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. (exit $ac_status); }; }; then
  7990. ac_cv_func_shl_load=yes
  7991. else
  7992. echo "$as_me: failed program was:" >&5
  7993. sed 's/^/| /' conftest.$ac_ext >&5
  7994. ac_cv_func_shl_load=no
  7995. fi
  7996. rm -f conftest.err conftest.$ac_objext \
  7997. conftest$ac_exeext conftest.$ac_ext
  7998. fi
  7999. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8000. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  8001. if test $ac_cv_func_shl_load = yes; then
  8002. lt_cv_dlopen="shl_load"
  8003. else
  8004. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8005. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  8006. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8007. echo $ECHO_N "(cached) $ECHO_C" >&6
  8008. else
  8009. ac_check_lib_save_LIBS=$LIBS
  8010. LIBS="-ldld $LIBS"
  8011. cat >conftest.$ac_ext <<_ACEOF
  8012. /* confdefs.h. */
  8013. _ACEOF
  8014. cat confdefs.h >>conftest.$ac_ext
  8015. cat >>conftest.$ac_ext <<_ACEOF
  8016. /* end confdefs.h. */
  8017. /* Override any gcc2 internal prototype to avoid an error. */
  8018. #ifdef __cplusplus
  8019. extern "C"
  8020. #endif
  8021. /* We use char because int might match the return type of a gcc2
  8022. builtin and then its argument prototype would still apply. */
  8023. char shl_load ();
  8024. int
  8025. main ()
  8026. {
  8027. 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_lib_dld_shl_load=yes
  8055. else
  8056. echo "$as_me: failed program was:" >&5
  8057. sed 's/^/| /' conftest.$ac_ext >&5
  8058. ac_cv_lib_dld_shl_load=no
  8059. fi
  8060. rm -f conftest.err conftest.$ac_objext \
  8061. conftest$ac_exeext conftest.$ac_ext
  8062. LIBS=$ac_check_lib_save_LIBS
  8063. fi
  8064. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8065. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  8066. if test $ac_cv_lib_dld_shl_load = yes; then
  8067. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8068. else
  8069. echo "$as_me:$LINENO: checking for dlopen" >&5
  8070. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  8071. if test "${ac_cv_func_dlopen+set}" = set; then
  8072. echo $ECHO_N "(cached) $ECHO_C" >&6
  8073. else
  8074. cat >conftest.$ac_ext <<_ACEOF
  8075. /* confdefs.h. */
  8076. _ACEOF
  8077. cat confdefs.h >>conftest.$ac_ext
  8078. cat >>conftest.$ac_ext <<_ACEOF
  8079. /* end confdefs.h. */
  8080. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8081. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8082. #define dlopen innocuous_dlopen
  8083. /* System header to define __stub macros and hopefully few prototypes,
  8084. which can conflict with char dlopen (); below.
  8085. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8086. <limits.h> exists even on freestanding compilers. */
  8087. #ifdef __STDC__
  8088. # include <limits.h>
  8089. #else
  8090. # include <assert.h>
  8091. #endif
  8092. #undef dlopen
  8093. /* Override any gcc2 internal prototype to avoid an error. */
  8094. #ifdef __cplusplus
  8095. extern "C"
  8096. {
  8097. #endif
  8098. /* We use char because int might match the return type of a gcc2
  8099. builtin and then its argument prototype would still apply. */
  8100. char dlopen ();
  8101. /* The GNU C library defines this for functions which it implements
  8102. to always fail with ENOSYS. Some functions are actually named
  8103. something starting with __ and the normal name is an alias. */
  8104. #if defined (__stub_dlopen) || defined (__stub___dlopen)
  8105. choke me
  8106. #else
  8107. char (*f) () = dlopen;
  8108. #endif
  8109. #ifdef __cplusplus
  8110. }
  8111. #endif
  8112. int
  8113. main ()
  8114. {
  8115. return f != dlopen;
  8116. ;
  8117. return 0;
  8118. }
  8119. _ACEOF
  8120. rm -f conftest.$ac_objext conftest$ac_exeext
  8121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8122. (eval $ac_link) 2>conftest.er1
  8123. ac_status=$?
  8124. grep -v '^ *+' conftest.er1 >conftest.err
  8125. rm -f conftest.er1
  8126. cat conftest.err >&5
  8127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8128. (exit $ac_status); } &&
  8129. { ac_try='test -z "$ac_c_werror_flag"
  8130. || test ! -s conftest.err'
  8131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8132. (eval $ac_try) 2>&5
  8133. ac_status=$?
  8134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8135. (exit $ac_status); }; } &&
  8136. { ac_try='test -s conftest$ac_exeext'
  8137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8138. (eval $ac_try) 2>&5
  8139. ac_status=$?
  8140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8141. (exit $ac_status); }; }; then
  8142. ac_cv_func_dlopen=yes
  8143. else
  8144. echo "$as_me: failed program was:" >&5
  8145. sed 's/^/| /' conftest.$ac_ext >&5
  8146. ac_cv_func_dlopen=no
  8147. fi
  8148. rm -f conftest.err conftest.$ac_objext \
  8149. conftest$ac_exeext conftest.$ac_ext
  8150. fi
  8151. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8152. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  8153. if test $ac_cv_func_dlopen = yes; then
  8154. lt_cv_dlopen="dlopen"
  8155. else
  8156. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8157. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  8158. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8159. echo $ECHO_N "(cached) $ECHO_C" >&6
  8160. else
  8161. ac_check_lib_save_LIBS=$LIBS
  8162. LIBS="-ldl $LIBS"
  8163. cat >conftest.$ac_ext <<_ACEOF
  8164. /* confdefs.h. */
  8165. _ACEOF
  8166. cat confdefs.h >>conftest.$ac_ext
  8167. cat >>conftest.$ac_ext <<_ACEOF
  8168. /* end confdefs.h. */
  8169. /* Override any gcc2 internal prototype to avoid an error. */
  8170. #ifdef __cplusplus
  8171. extern "C"
  8172. #endif
  8173. /* We use char because int might match the return type of a gcc2
  8174. builtin and then its argument prototype would still apply. */
  8175. char dlopen ();
  8176. int
  8177. main ()
  8178. {
  8179. 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_lib_dl_dlopen=yes
  8207. else
  8208. echo "$as_me: failed program was:" >&5
  8209. sed 's/^/| /' conftest.$ac_ext >&5
  8210. ac_cv_lib_dl_dlopen=no
  8211. fi
  8212. rm -f conftest.err conftest.$ac_objext \
  8213. conftest$ac_exeext conftest.$ac_ext
  8214. LIBS=$ac_check_lib_save_LIBS
  8215. fi
  8216. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8217. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8218. if test $ac_cv_lib_dl_dlopen = yes; then
  8219. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8220. else
  8221. echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8222. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8223. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8224. echo $ECHO_N "(cached) $ECHO_C" >&6
  8225. else
  8226. ac_check_lib_save_LIBS=$LIBS
  8227. LIBS="-lsvld $LIBS"
  8228. cat >conftest.$ac_ext <<_ACEOF
  8229. /* confdefs.h. */
  8230. _ACEOF
  8231. cat confdefs.h >>conftest.$ac_ext
  8232. cat >>conftest.$ac_ext <<_ACEOF
  8233. /* end confdefs.h. */
  8234. /* Override any gcc2 internal prototype to avoid an error. */
  8235. #ifdef __cplusplus
  8236. extern "C"
  8237. #endif
  8238. /* We use char because int might match the return type of a gcc2
  8239. builtin and then its argument prototype would still apply. */
  8240. char dlopen ();
  8241. int
  8242. main ()
  8243. {
  8244. dlopen ();
  8245. ;
  8246. return 0;
  8247. }
  8248. _ACEOF
  8249. rm -f conftest.$ac_objext conftest$ac_exeext
  8250. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8251. (eval $ac_link) 2>conftest.er1
  8252. ac_status=$?
  8253. grep -v '^ *+' conftest.er1 >conftest.err
  8254. rm -f conftest.er1
  8255. cat conftest.err >&5
  8256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8257. (exit $ac_status); } &&
  8258. { ac_try='test -z "$ac_c_werror_flag"
  8259. || test ! -s conftest.err'
  8260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8261. (eval $ac_try) 2>&5
  8262. ac_status=$?
  8263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8264. (exit $ac_status); }; } &&
  8265. { ac_try='test -s conftest$ac_exeext'
  8266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8267. (eval $ac_try) 2>&5
  8268. ac_status=$?
  8269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8270. (exit $ac_status); }; }; then
  8271. ac_cv_lib_svld_dlopen=yes
  8272. else
  8273. echo "$as_me: failed program was:" >&5
  8274. sed 's/^/| /' conftest.$ac_ext >&5
  8275. ac_cv_lib_svld_dlopen=no
  8276. fi
  8277. rm -f conftest.err conftest.$ac_objext \
  8278. conftest$ac_exeext conftest.$ac_ext
  8279. LIBS=$ac_check_lib_save_LIBS
  8280. fi
  8281. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8282. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8283. if test $ac_cv_lib_svld_dlopen = yes; then
  8284. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8285. else
  8286. echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8287. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8288. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8289. echo $ECHO_N "(cached) $ECHO_C" >&6
  8290. else
  8291. ac_check_lib_save_LIBS=$LIBS
  8292. LIBS="-ldld $LIBS"
  8293. cat >conftest.$ac_ext <<_ACEOF
  8294. /* confdefs.h. */
  8295. _ACEOF
  8296. cat confdefs.h >>conftest.$ac_ext
  8297. cat >>conftest.$ac_ext <<_ACEOF
  8298. /* end confdefs.h. */
  8299. /* Override any gcc2 internal prototype to avoid an error. */
  8300. #ifdef __cplusplus
  8301. extern "C"
  8302. #endif
  8303. /* We use char because int might match the return type of a gcc2
  8304. builtin and then its argument prototype would still apply. */
  8305. char dld_link ();
  8306. int
  8307. main ()
  8308. {
  8309. dld_link ();
  8310. ;
  8311. return 0;
  8312. }
  8313. _ACEOF
  8314. rm -f conftest.$ac_objext conftest$ac_exeext
  8315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8316. (eval $ac_link) 2>conftest.er1
  8317. ac_status=$?
  8318. grep -v '^ *+' conftest.er1 >conftest.err
  8319. rm -f conftest.er1
  8320. cat conftest.err >&5
  8321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8322. (exit $ac_status); } &&
  8323. { ac_try='test -z "$ac_c_werror_flag"
  8324. || test ! -s conftest.err'
  8325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8326. (eval $ac_try) 2>&5
  8327. ac_status=$?
  8328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8329. (exit $ac_status); }; } &&
  8330. { ac_try='test -s conftest$ac_exeext'
  8331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8332. (eval $ac_try) 2>&5
  8333. ac_status=$?
  8334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8335. (exit $ac_status); }; }; then
  8336. ac_cv_lib_dld_dld_link=yes
  8337. else
  8338. echo "$as_me: failed program was:" >&5
  8339. sed 's/^/| /' conftest.$ac_ext >&5
  8340. ac_cv_lib_dld_dld_link=no
  8341. fi
  8342. rm -f conftest.err conftest.$ac_objext \
  8343. conftest$ac_exeext conftest.$ac_ext
  8344. LIBS=$ac_check_lib_save_LIBS
  8345. fi
  8346. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8347. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8348. if test $ac_cv_lib_dld_dld_link = yes; then
  8349. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8350. fi
  8351. fi
  8352. fi
  8353. fi
  8354. fi
  8355. fi
  8356. ;;
  8357. esac
  8358. if test "x$lt_cv_dlopen" != xno; then
  8359. enable_dlopen=yes
  8360. else
  8361. enable_dlopen=no
  8362. fi
  8363. case $lt_cv_dlopen in
  8364. dlopen)
  8365. save_CPPFLAGS="$CPPFLAGS"
  8366. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8367. save_LDFLAGS="$LDFLAGS"
  8368. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8369. save_LIBS="$LIBS"
  8370. LIBS="$lt_cv_dlopen_libs $LIBS"
  8371. echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8372. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8373. if test "${lt_cv_dlopen_self+set}" = set; then
  8374. echo $ECHO_N "(cached) $ECHO_C" >&6
  8375. else
  8376. if test "$cross_compiling" = yes; then :
  8377. lt_cv_dlopen_self=cross
  8378. else
  8379. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8380. lt_status=$lt_dlunknown
  8381. cat > conftest.$ac_ext <<EOF
  8382. #line 9228 "configure"
  8383. #include "confdefs.h"
  8384. #if HAVE_DLFCN_H
  8385. #include <dlfcn.h>
  8386. #endif
  8387. #include <stdio.h>
  8388. #ifdef RTLD_GLOBAL
  8389. # define LT_DLGLOBAL RTLD_GLOBAL
  8390. #else
  8391. # ifdef DL_GLOBAL
  8392. # define LT_DLGLOBAL DL_GLOBAL
  8393. # else
  8394. # define LT_DLGLOBAL 0
  8395. # endif
  8396. #endif
  8397. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8398. find out it does not work in some platform. */
  8399. #ifndef LT_DLLAZY_OR_NOW
  8400. # ifdef RTLD_LAZY
  8401. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8402. # else
  8403. # ifdef DL_LAZY
  8404. # define LT_DLLAZY_OR_NOW DL_LAZY
  8405. # else
  8406. # ifdef RTLD_NOW
  8407. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8408. # else
  8409. # ifdef DL_NOW
  8410. # define LT_DLLAZY_OR_NOW DL_NOW
  8411. # else
  8412. # define LT_DLLAZY_OR_NOW 0
  8413. # endif
  8414. # endif
  8415. # endif
  8416. # endif
  8417. #endif
  8418. #ifdef __cplusplus
  8419. extern "C" void exit (int);
  8420. #endif
  8421. void fnord() { int i=42;}
  8422. int main ()
  8423. {
  8424. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8425. int status = $lt_dlunknown;
  8426. if (self)
  8427. {
  8428. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8429. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8430. /* dlclose (self); */
  8431. }
  8432. else
  8433. puts (dlerror ());
  8434. exit (status);
  8435. }
  8436. EOF
  8437. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8438. (eval $ac_link) 2>&5
  8439. ac_status=$?
  8440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8441. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8442. (./conftest; exit; ) >&5 2>/dev/null
  8443. lt_status=$?
  8444. case x$lt_status in
  8445. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8446. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8447. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  8448. esac
  8449. else :
  8450. # compilation failed
  8451. lt_cv_dlopen_self=no
  8452. fi
  8453. fi
  8454. rm -fr conftest*
  8455. fi
  8456. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8457. echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8458. if test "x$lt_cv_dlopen_self" = xyes; then
  8459. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  8460. echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8461. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8462. if test "${lt_cv_dlopen_self_static+set}" = set; then
  8463. echo $ECHO_N "(cached) $ECHO_C" >&6
  8464. else
  8465. if test "$cross_compiling" = yes; then :
  8466. lt_cv_dlopen_self_static=cross
  8467. else
  8468. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8469. lt_status=$lt_dlunknown
  8470. cat > conftest.$ac_ext <<EOF
  8471. #line 9328 "configure"
  8472. #include "confdefs.h"
  8473. #if HAVE_DLFCN_H
  8474. #include <dlfcn.h>
  8475. #endif
  8476. #include <stdio.h>
  8477. #ifdef RTLD_GLOBAL
  8478. # define LT_DLGLOBAL RTLD_GLOBAL
  8479. #else
  8480. # ifdef DL_GLOBAL
  8481. # define LT_DLGLOBAL DL_GLOBAL
  8482. # else
  8483. # define LT_DLGLOBAL 0
  8484. # endif
  8485. #endif
  8486. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8487. find out it does not work in some platform. */
  8488. #ifndef LT_DLLAZY_OR_NOW
  8489. # ifdef RTLD_LAZY
  8490. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8491. # else
  8492. # ifdef DL_LAZY
  8493. # define LT_DLLAZY_OR_NOW DL_LAZY
  8494. # else
  8495. # ifdef RTLD_NOW
  8496. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8497. # else
  8498. # ifdef DL_NOW
  8499. # define LT_DLLAZY_OR_NOW DL_NOW
  8500. # else
  8501. # define LT_DLLAZY_OR_NOW 0
  8502. # endif
  8503. # endif
  8504. # endif
  8505. # endif
  8506. #endif
  8507. #ifdef __cplusplus
  8508. extern "C" void exit (int);
  8509. #endif
  8510. void fnord() { int i=42;}
  8511. int main ()
  8512. {
  8513. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8514. int status = $lt_dlunknown;
  8515. if (self)
  8516. {
  8517. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8518. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8519. /* dlclose (self); */
  8520. }
  8521. else
  8522. puts (dlerror ());
  8523. exit (status);
  8524. }
  8525. EOF
  8526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8527. (eval $ac_link) 2>&5
  8528. ac_status=$?
  8529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8530. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8531. (./conftest; exit; ) >&5 2>/dev/null
  8532. lt_status=$?
  8533. case x$lt_status in
  8534. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8535. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8536. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8537. esac
  8538. else :
  8539. # compilation failed
  8540. lt_cv_dlopen_self_static=no
  8541. fi
  8542. fi
  8543. rm -fr conftest*
  8544. fi
  8545. echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8546. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8547. fi
  8548. CPPFLAGS="$save_CPPFLAGS"
  8549. LDFLAGS="$save_LDFLAGS"
  8550. LIBS="$save_LIBS"
  8551. ;;
  8552. esac
  8553. case $lt_cv_dlopen_self in
  8554. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8555. *) enable_dlopen_self=unknown ;;
  8556. esac
  8557. case $lt_cv_dlopen_self_static in
  8558. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8559. *) enable_dlopen_self_static=unknown ;;
  8560. esac
  8561. fi
  8562. # Report which library types will actually be built
  8563. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  8564. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  8565. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  8566. echo "${ECHO_T}$can_build_shared" >&6
  8567. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  8568. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  8569. test "$can_build_shared" = "no" && enable_shared=no
  8570. # On AIX, shared libraries and static libraries use the same namespace, and
  8571. # are all built from PIC.
  8572. case $host_os in
  8573. aix3*)
  8574. test "$enable_shared" = yes && enable_static=no
  8575. if test -n "$RANLIB"; then
  8576. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8577. postinstall_cmds='$RANLIB $lib'
  8578. fi
  8579. ;;
  8580. aix4* | aix5*)
  8581. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8582. test "$enable_shared" = yes && enable_static=no
  8583. fi
  8584. ;;
  8585. esac
  8586. echo "$as_me:$LINENO: result: $enable_shared" >&5
  8587. echo "${ECHO_T}$enable_shared" >&6
  8588. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  8589. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  8590. # Make sure either enable_shared or enable_static is yes.
  8591. test "$enable_shared" = yes || enable_static=yes
  8592. echo "$as_me:$LINENO: result: $enable_static" >&5
  8593. echo "${ECHO_T}$enable_static" >&6
  8594. # The else clause should only fire when bootstrapping the
  8595. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8596. # with your package, and you will get complaints that there are
  8597. # no rules to generate ltmain.sh.
  8598. if test -f "$ltmain"; then
  8599. # See if we are running on zsh, and set the options which allow our commands through
  8600. # without removal of \ escapes.
  8601. if test -n "${ZSH_VERSION+set}" ; then
  8602. setopt NO_GLOB_SUBST
  8603. fi
  8604. # Now quote all the things that may contain metacharacters while being
  8605. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8606. # variables and quote the copies for generation of the libtool script.
  8607. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8608. SED SHELL STRIP \
  8609. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8610. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8611. deplibs_check_method reload_flag reload_cmds need_locks \
  8612. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8613. lt_cv_sys_global_symbol_to_c_name_address \
  8614. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8615. old_postinstall_cmds old_postuninstall_cmds \
  8616. compiler \
  8617. CC \
  8618. LD \
  8619. lt_prog_compiler_wl \
  8620. lt_prog_compiler_pic \
  8621. lt_prog_compiler_static \
  8622. lt_prog_compiler_no_builtin_flag \
  8623. export_dynamic_flag_spec \
  8624. thread_safe_flag_spec \
  8625. whole_archive_flag_spec \
  8626. enable_shared_with_static_runtimes \
  8627. old_archive_cmds \
  8628. old_archive_from_new_cmds \
  8629. predep_objects \
  8630. postdep_objects \
  8631. predeps \
  8632. postdeps \
  8633. compiler_lib_search_path \
  8634. archive_cmds \
  8635. archive_expsym_cmds \
  8636. postinstall_cmds \
  8637. postuninstall_cmds \
  8638. old_archive_from_expsyms_cmds \
  8639. allow_undefined_flag \
  8640. no_undefined_flag \
  8641. export_symbols_cmds \
  8642. hardcode_libdir_flag_spec \
  8643. hardcode_libdir_flag_spec_ld \
  8644. hardcode_libdir_separator \
  8645. hardcode_automatic \
  8646. module_cmds \
  8647. module_expsym_cmds \
  8648. lt_cv_prog_compiler_c_o \
  8649. exclude_expsyms \
  8650. include_expsyms; do
  8651. case $var in
  8652. old_archive_cmds | \
  8653. old_archive_from_new_cmds | \
  8654. archive_cmds | \
  8655. archive_expsym_cmds | \
  8656. module_cmds | \
  8657. module_expsym_cmds | \
  8658. old_archive_from_expsyms_cmds | \
  8659. export_symbols_cmds | \
  8660. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8661. postinstall_cmds | postuninstall_cmds | \
  8662. old_postinstall_cmds | old_postuninstall_cmds | \
  8663. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8664. # Double-quote double-evaled strings.
  8665. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8666. ;;
  8667. *)
  8668. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8669. ;;
  8670. esac
  8671. done
  8672. case $lt_echo in
  8673. *'\$0 --fallback-echo"')
  8674. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8675. ;;
  8676. esac
  8677. cfgfile="${ofile}T"
  8678. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8679. $rm -f "$cfgfile"
  8680. { echo "$as_me:$LINENO: creating $ofile" >&5
  8681. echo "$as_me: creating $ofile" >&6;}
  8682. cat <<__EOF__ >> "$cfgfile"
  8683. #! $SHELL
  8684. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8685. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8686. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8687. #
  8688. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  8689. # Free Software Foundation, Inc.
  8690. #
  8691. # This file is part of GNU Libtool:
  8692. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  8693. #
  8694. # This program is free software; you can redistribute it and/or modify
  8695. # it under the terms of the GNU General Public License as published by
  8696. # the Free Software Foundation; either version 2 of the License, or
  8697. # (at your option) any later version.
  8698. #
  8699. # This program is distributed in the hope that it will be useful, but
  8700. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8701. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8702. # General Public License for more details.
  8703. #
  8704. # You should have received a copy of the GNU General Public License
  8705. # along with this program; if not, write to the Free Software
  8706. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8707. #
  8708. # As a special exception to the GNU General Public License, if you
  8709. # distribute this file as part of a program that contains a
  8710. # configuration script generated by Autoconf, you may include it under
  8711. # the same distribution terms that you use for the rest of that program.
  8712. # A sed program that does not truncate output.
  8713. SED=$lt_SED
  8714. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8715. Xsed="$SED -e 1s/^X//"
  8716. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8717. # if CDPATH is set.
  8718. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8719. # The names of the tagged configurations supported by this script.
  8720. available_tags=
  8721. # ### BEGIN LIBTOOL CONFIG
  8722. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8723. # Shell to use when invoking shell scripts.
  8724. SHELL=$lt_SHELL
  8725. # Whether or not to build shared libraries.
  8726. build_libtool_libs=$enable_shared
  8727. # Whether or not to build static libraries.
  8728. build_old_libs=$enable_static
  8729. # Whether or not to add -lc for building shared libraries.
  8730. build_libtool_need_lc=$archive_cmds_need_lc
  8731. # Whether or not to disallow shared libs when runtime libs are static
  8732. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8733. # Whether or not to optimize for fast installation.
  8734. fast_install=$enable_fast_install
  8735. # The host system.
  8736. host_alias=$host_alias
  8737. host=$host
  8738. host_os=$host_os
  8739. # The build system.
  8740. build_alias=$build_alias
  8741. build=$build
  8742. build_os=$build_os
  8743. # An echo program that does not interpret backslashes.
  8744. echo=$lt_echo
  8745. # The archiver.
  8746. AR=$lt_AR
  8747. AR_FLAGS=$lt_AR_FLAGS
  8748. # A C compiler.
  8749. LTCC=$lt_LTCC
  8750. # LTCC compiler flags.
  8751. LTCFLAGS=$lt_LTCFLAGS
  8752. # A language-specific compiler.
  8753. CC=$lt_compiler
  8754. # Is the compiler the GNU C compiler?
  8755. with_gcc=$GCC
  8756. # An ERE matcher.
  8757. EGREP=$lt_EGREP
  8758. # The linker used to build libraries.
  8759. LD=$lt_LD
  8760. # Whether we need hard or soft links.
  8761. LN_S=$lt_LN_S
  8762. # A BSD-compatible nm program.
  8763. NM=$lt_NM
  8764. # A symbol stripping program
  8765. STRIP=$lt_STRIP
  8766. # Used to examine libraries when file_magic_cmd begins "file"
  8767. MAGIC_CMD=$MAGIC_CMD
  8768. # Used on cygwin: DLL creation program.
  8769. DLLTOOL="$DLLTOOL"
  8770. # Used on cygwin: object dumper.
  8771. OBJDUMP="$OBJDUMP"
  8772. # Used on cygwin: assembler.
  8773. AS="$AS"
  8774. # The name of the directory that contains temporary libtool files.
  8775. objdir=$objdir
  8776. # How to create reloadable object files.
  8777. reload_flag=$lt_reload_flag
  8778. reload_cmds=$lt_reload_cmds
  8779. # How to pass a linker flag through the compiler.
  8780. wl=$lt_lt_prog_compiler_wl
  8781. # Object file suffix (normally "o").
  8782. objext="$ac_objext"
  8783. # Old archive suffix (normally "a").
  8784. libext="$libext"
  8785. # Shared library suffix (normally ".so").
  8786. shrext_cmds='$shrext_cmds'
  8787. # Executable file suffix (normally "").
  8788. exeext="$exeext"
  8789. # Additional compiler flags for building library objects.
  8790. pic_flag=$lt_lt_prog_compiler_pic
  8791. pic_mode=$pic_mode
  8792. # What is the maximum length of a command?
  8793. max_cmd_len=$lt_cv_sys_max_cmd_len
  8794. # Does compiler simultaneously support -c and -o options?
  8795. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8796. # Must we lock files when doing compilation?
  8797. need_locks=$lt_need_locks
  8798. # Do we need the lib prefix for modules?
  8799. need_lib_prefix=$need_lib_prefix
  8800. # Do we need a version for libraries?
  8801. need_version=$need_version
  8802. # Whether dlopen is supported.
  8803. dlopen_support=$enable_dlopen
  8804. # Whether dlopen of programs is supported.
  8805. dlopen_self=$enable_dlopen_self
  8806. # Whether dlopen of statically linked programs is supported.
  8807. dlopen_self_static=$enable_dlopen_self_static
  8808. # Compiler flag to prevent dynamic linking.
  8809. link_static_flag=$lt_lt_prog_compiler_static
  8810. # Compiler flag to turn off builtin functions.
  8811. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8812. # Compiler flag to allow reflexive dlopens.
  8813. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8814. # Compiler flag to generate shared objects directly from archives.
  8815. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8816. # Compiler flag to generate thread-safe objects.
  8817. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8818. # Library versioning type.
  8819. version_type=$version_type
  8820. # Format of library name prefix.
  8821. libname_spec=$lt_libname_spec
  8822. # List of archive names. First name is the real one, the rest are links.
  8823. # The last name is the one that the linker finds with -lNAME.
  8824. library_names_spec=$lt_library_names_spec
  8825. # The coded name of the library, if different from the real name.
  8826. soname_spec=$lt_soname_spec
  8827. # Commands used to build and install an old-style archive.
  8828. RANLIB=$lt_RANLIB
  8829. old_archive_cmds=$lt_old_archive_cmds
  8830. old_postinstall_cmds=$lt_old_postinstall_cmds
  8831. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8832. # Create an old-style archive from a shared archive.
  8833. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8834. # Create a temporary old-style archive to link instead of a shared archive.
  8835. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8836. # Commands used to build and install a shared archive.
  8837. archive_cmds=$lt_archive_cmds
  8838. archive_expsym_cmds=$lt_archive_expsym_cmds
  8839. postinstall_cmds=$lt_postinstall_cmds
  8840. postuninstall_cmds=$lt_postuninstall_cmds
  8841. # Commands used to build a loadable module (assumed same as above if empty)
  8842. module_cmds=$lt_module_cmds
  8843. module_expsym_cmds=$lt_module_expsym_cmds
  8844. # Commands to strip libraries.
  8845. old_striplib=$lt_old_striplib
  8846. striplib=$lt_striplib
  8847. # Dependencies to place before the objects being linked to create a
  8848. # shared library.
  8849. predep_objects=$lt_predep_objects
  8850. # Dependencies to place after the objects being linked to create a
  8851. # shared library.
  8852. postdep_objects=$lt_postdep_objects
  8853. # Dependencies to place before the objects being linked to create a
  8854. # shared library.
  8855. predeps=$lt_predeps
  8856. # Dependencies to place after the objects being linked to create a
  8857. # shared library.
  8858. postdeps=$lt_postdeps
  8859. # The library search path used internally by the compiler when linking
  8860. # a shared library.
  8861. compiler_lib_search_path=$lt_compiler_lib_search_path
  8862. # Method to check whether dependent libraries are shared objects.
  8863. deplibs_check_method=$lt_deplibs_check_method
  8864. # Command to use when deplibs_check_method == file_magic.
  8865. file_magic_cmd=$lt_file_magic_cmd
  8866. # Flag that allows shared libraries with undefined symbols to be built.
  8867. allow_undefined_flag=$lt_allow_undefined_flag
  8868. # Flag that forces no undefined symbols.
  8869. no_undefined_flag=$lt_no_undefined_flag
  8870. # Commands used to finish a libtool library installation in a directory.
  8871. finish_cmds=$lt_finish_cmds
  8872. # Same as above, but a single script fragment to be evaled but not shown.
  8873. finish_eval=$lt_finish_eval
  8874. # Take the output of nm and produce a listing of raw symbols and C names.
  8875. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8876. # Transform the output of nm in a proper C declaration
  8877. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8878. # Transform the output of nm in a C name address pair
  8879. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8880. # This is the shared library runtime path variable.
  8881. runpath_var=$runpath_var
  8882. # This is the shared library path variable.
  8883. shlibpath_var=$shlibpath_var
  8884. # Is shlibpath searched before the hard-coded library search path?
  8885. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8886. # How to hardcode a shared library path into an executable.
  8887. hardcode_action=$hardcode_action
  8888. # Whether we should hardcode library paths into libraries.
  8889. hardcode_into_libs=$hardcode_into_libs
  8890. # Flag to hardcode \$libdir into a binary during linking.
  8891. # This must work even if \$libdir does not exist.
  8892. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8893. # If ld is used when linking, flag to hardcode \$libdir into
  8894. # a binary during linking. This must work even if \$libdir does
  8895. # not exist.
  8896. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8897. # Whether we need a single -rpath flag with a separated argument.
  8898. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8899. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8900. # resulting binary.
  8901. hardcode_direct=$hardcode_direct
  8902. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8903. # resulting binary.
  8904. hardcode_minus_L=$hardcode_minus_L
  8905. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8906. # the resulting binary.
  8907. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8908. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8909. # and all subsequent libraries and executables linked against it.
  8910. hardcode_automatic=$hardcode_automatic
  8911. # Variables whose values should be saved in libtool wrapper scripts and
  8912. # restored at relink time.
  8913. variables_saved_for_relink="$variables_saved_for_relink"
  8914. # Whether libtool must link a program against all its dependency libraries.
  8915. link_all_deplibs=$link_all_deplibs
  8916. # Compile-time system search path for libraries
  8917. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8918. # Run-time system search path for libraries
  8919. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8920. # Fix the shell variable \$srcfile for the compiler.
  8921. fix_srcfile_path="$fix_srcfile_path"
  8922. # Set to yes if exported symbols are required.
  8923. always_export_symbols=$always_export_symbols
  8924. # The commands to list exported symbols.
  8925. export_symbols_cmds=$lt_export_symbols_cmds
  8926. # The commands to extract the exported symbol list from a shared archive.
  8927. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8928. # Symbols that should not be listed in the preloaded symbols.
  8929. exclude_expsyms=$lt_exclude_expsyms
  8930. # Symbols that must always be exported.
  8931. include_expsyms=$lt_include_expsyms
  8932. # ### END LIBTOOL CONFIG
  8933. __EOF__
  8934. case $host_os in
  8935. aix3*)
  8936. cat <<\EOF >> "$cfgfile"
  8937. # AIX sometimes has problems with the GCC collect2 program. For some
  8938. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8939. # vanish in a puff of smoke.
  8940. if test "X${COLLECT_NAMES+set}" != Xset; then
  8941. COLLECT_NAMES=
  8942. export COLLECT_NAMES
  8943. fi
  8944. EOF
  8945. ;;
  8946. esac
  8947. # We use sed instead of cat because bash on DJGPP gets confused if
  8948. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8949. # text mode, it properly converts lines to CR/LF. This bash problem
  8950. # is reportedly fixed, but why not run on old versions too?
  8951. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8952. mv -f "$cfgfile" "$ofile" || \
  8953. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8954. chmod +x "$ofile"
  8955. else
  8956. # If there is no Makefile yet, we rely on a make rule to execute
  8957. # `config.status --recheck' to rerun these tests and create the
  8958. # libtool script then.
  8959. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8960. if test -f "$ltmain_in"; then
  8961. test -f Makefile && make "$ltmain"
  8962. fi
  8963. fi
  8964. ac_ext=c
  8965. ac_cpp='$CPP $CPPFLAGS'
  8966. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8967. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8969. CC="$lt_save_CC"
  8970. # Check whether --with-tags or --without-tags was given.
  8971. if test "${with_tags+set}" = set; then
  8972. withval="$with_tags"
  8973. tagnames="$withval"
  8974. fi;
  8975. if test -f "$ltmain" && test -n "$tagnames"; then
  8976. if test ! -f "${ofile}"; then
  8977. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  8978. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8979. fi
  8980. if test -z "$LTCC"; then
  8981. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8982. if test -z "$LTCC"; then
  8983. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8984. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8985. else
  8986. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8987. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8988. fi
  8989. fi
  8990. if test -z "$LTCFLAGS"; then
  8991. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8992. fi
  8993. # Extract list of available tagged configurations in $ofile.
  8994. # Note that this assumes the entire list is on one line.
  8995. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8996. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8997. for tagname in $tagnames; do
  8998. IFS="$lt_save_ifs"
  8999. # Check whether tagname contains only valid characters
  9000. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9001. "") ;;
  9002. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9003. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9004. { (exit 1); exit 1; }; }
  9005. ;;
  9006. esac
  9007. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9008. then
  9009. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9010. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9011. { (exit 1); exit 1; }; }
  9012. fi
  9013. # Update the list of available tags.
  9014. if test -n "$tagname"; then
  9015. echo appending configuration tag \"$tagname\" to $ofile
  9016. case $tagname in
  9017. CXX)
  9018. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9019. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9020. (test "X$CXX" != "Xg++"))) ; then
  9021. ac_ext=cc
  9022. ac_cpp='$CXXCPP $CPPFLAGS'
  9023. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9024. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9025. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9026. archive_cmds_need_lc_CXX=no
  9027. allow_undefined_flag_CXX=
  9028. always_export_symbols_CXX=no
  9029. archive_expsym_cmds_CXX=
  9030. export_dynamic_flag_spec_CXX=
  9031. hardcode_direct_CXX=no
  9032. hardcode_libdir_flag_spec_CXX=
  9033. hardcode_libdir_flag_spec_ld_CXX=
  9034. hardcode_libdir_separator_CXX=
  9035. hardcode_minus_L_CXX=no
  9036. hardcode_shlibpath_var_CXX=unsupported
  9037. hardcode_automatic_CXX=no
  9038. module_cmds_CXX=
  9039. module_expsym_cmds_CXX=
  9040. link_all_deplibs_CXX=unknown
  9041. old_archive_cmds_CXX=$old_archive_cmds
  9042. no_undefined_flag_CXX=
  9043. whole_archive_flag_spec_CXX=
  9044. enable_shared_with_static_runtimes_CXX=no
  9045. # Dependencies to place before and after the object being linked:
  9046. predep_objects_CXX=
  9047. postdep_objects_CXX=
  9048. predeps_CXX=
  9049. postdeps_CXX=
  9050. compiler_lib_search_path_CXX=
  9051. # Source file extension for C++ test sources.
  9052. ac_ext=cpp
  9053. # Object file extension for compiled C++ test sources.
  9054. objext=o
  9055. objext_CXX=$objext
  9056. # Code to be used in simple compile tests
  9057. lt_simple_compile_test_code="int some_variable = 0;\n"
  9058. # Code to be used in simple link tests
  9059. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  9060. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9061. # If no C compiler was specified, use CC.
  9062. LTCC=${LTCC-"$CC"}
  9063. # If no C compiler flags were specified, use CFLAGS.
  9064. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9065. # Allow CC to be a program name with arguments.
  9066. compiler=$CC
  9067. # save warnings/boilerplate of simple test code
  9068. ac_outfile=conftest.$ac_objext
  9069. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9070. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9071. _lt_compiler_boilerplate=`cat conftest.err`
  9072. $rm conftest*
  9073. ac_outfile=conftest.$ac_objext
  9074. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9075. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9076. _lt_linker_boilerplate=`cat conftest.err`
  9077. $rm conftest*
  9078. # Allow CC to be a program name with arguments.
  9079. lt_save_CC=$CC
  9080. lt_save_LD=$LD
  9081. lt_save_GCC=$GCC
  9082. GCC=$GXX
  9083. lt_save_with_gnu_ld=$with_gnu_ld
  9084. lt_save_path_LD=$lt_cv_path_LD
  9085. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9086. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9087. else
  9088. $as_unset lt_cv_prog_gnu_ld
  9089. fi
  9090. if test -n "${lt_cv_path_LDCXX+set}"; then
  9091. lt_cv_path_LD=$lt_cv_path_LDCXX
  9092. else
  9093. $as_unset lt_cv_path_LD
  9094. fi
  9095. test -z "${LDCXX+set}" || LD=$LDCXX
  9096. CC=${CXX-"c++"}
  9097. compiler=$CC
  9098. compiler_CXX=$CC
  9099. for cc_temp in $compiler""; do
  9100. case $cc_temp in
  9101. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9102. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9103. \-*) ;;
  9104. *) break;;
  9105. esac
  9106. done
  9107. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9108. # We don't want -fno-exception wen compiling C++ code, so set the
  9109. # no_builtin_flag separately
  9110. if test "$GXX" = yes; then
  9111. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9112. else
  9113. lt_prog_compiler_no_builtin_flag_CXX=
  9114. fi
  9115. if test "$GXX" = yes; then
  9116. # Set up default GNU C++ configuration
  9117. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  9118. if test "${with_gnu_ld+set}" = set; then
  9119. withval="$with_gnu_ld"
  9120. test "$withval" = no || with_gnu_ld=yes
  9121. else
  9122. with_gnu_ld=no
  9123. fi;
  9124. ac_prog=ld
  9125. if test "$GCC" = yes; then
  9126. # Check if gcc -print-prog-name=ld gives a path.
  9127. echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9128. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  9129. case $host in
  9130. *-*-mingw*)
  9131. # gcc leaves a trailing carriage return which upsets mingw
  9132. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9133. *)
  9134. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9135. esac
  9136. case $ac_prog in
  9137. # Accept absolute paths.
  9138. [\\/]* | ?:[\\/]*)
  9139. re_direlt='/[^/][^/]*/\.\./'
  9140. # Canonicalize the pathname of ld
  9141. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9142. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9143. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9144. done
  9145. test -z "$LD" && LD="$ac_prog"
  9146. ;;
  9147. "")
  9148. # If it fails, then pretend we aren't using GCC.
  9149. ac_prog=ld
  9150. ;;
  9151. *)
  9152. # If it is relative, then search for the first ld in PATH.
  9153. with_gnu_ld=unknown
  9154. ;;
  9155. esac
  9156. elif test "$with_gnu_ld" = yes; then
  9157. echo "$as_me:$LINENO: checking for GNU ld" >&5
  9158. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  9159. else
  9160. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9161. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  9162. fi
  9163. if test "${lt_cv_path_LD+set}" = set; then
  9164. echo $ECHO_N "(cached) $ECHO_C" >&6
  9165. else
  9166. if test -z "$LD"; then
  9167. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9168. for ac_dir in $PATH; do
  9169. IFS="$lt_save_ifs"
  9170. test -z "$ac_dir" && ac_dir=.
  9171. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9172. lt_cv_path_LD="$ac_dir/$ac_prog"
  9173. # Check to see if the program is GNU ld. I'd rather use --version,
  9174. # but apparently some variants of GNU ld only accept -v.
  9175. # Break only if it was the GNU/non-GNU ld that we prefer.
  9176. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9177. *GNU* | *'with BFD'*)
  9178. test "$with_gnu_ld" != no && break
  9179. ;;
  9180. *)
  9181. test "$with_gnu_ld" != yes && break
  9182. ;;
  9183. esac
  9184. fi
  9185. done
  9186. IFS="$lt_save_ifs"
  9187. else
  9188. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9189. fi
  9190. fi
  9191. LD="$lt_cv_path_LD"
  9192. if test -n "$LD"; then
  9193. echo "$as_me:$LINENO: result: $LD" >&5
  9194. echo "${ECHO_T}$LD" >&6
  9195. else
  9196. echo "$as_me:$LINENO: result: no" >&5
  9197. echo "${ECHO_T}no" >&6
  9198. fi
  9199. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9200. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9201. { (exit 1); exit 1; }; }
  9202. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9203. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  9204. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9205. echo $ECHO_N "(cached) $ECHO_C" >&6
  9206. else
  9207. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9208. case `$LD -v 2>&1 </dev/null` in
  9209. *GNU* | *'with BFD'*)
  9210. lt_cv_prog_gnu_ld=yes
  9211. ;;
  9212. *)
  9213. lt_cv_prog_gnu_ld=no
  9214. ;;
  9215. esac
  9216. fi
  9217. echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  9218. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  9219. with_gnu_ld=$lt_cv_prog_gnu_ld
  9220. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9221. # archiving commands below assume that GNU ld is being used.
  9222. if test "$with_gnu_ld" = yes; then
  9223. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9224. 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'
  9225. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9226. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9227. # If archive_cmds runs LD, not CC, wlarc should be empty
  9228. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9229. # investigate it a little bit more. (MM)
  9230. wlarc='${wl}'
  9231. # ancient GNU ld didn't support --whole-archive et. al.
  9232. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  9233. grep 'no-whole-archive' > /dev/null; then
  9234. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9235. else
  9236. whole_archive_flag_spec_CXX=
  9237. fi
  9238. else
  9239. with_gnu_ld=no
  9240. wlarc=
  9241. # A generic and very simple default shared library creation
  9242. # command for GNU C++ for the case where it uses the native
  9243. # linker, instead of GNU ld. If possible, this setting should
  9244. # overridden to take advantage of the native linker features on
  9245. # the platform it is being used on.
  9246. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9247. fi
  9248. # Commands to make compiler produce verbose output that lists
  9249. # what "hidden" libraries, object files and flags are used when
  9250. # linking a shared library.
  9251. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9252. else
  9253. GXX=no
  9254. with_gnu_ld=no
  9255. wlarc=
  9256. fi
  9257. # PORTME: fill in a description of your system's C++ link characteristics
  9258. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9259. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  9260. ld_shlibs_CXX=yes
  9261. case $host_os in
  9262. aix3*)
  9263. # FIXME: insert proper C++ library support
  9264. ld_shlibs_CXX=no
  9265. ;;
  9266. aix4* | aix5*)
  9267. if test "$host_cpu" = ia64; then
  9268. # On IA64, the linker does run time linking by default, so we don't
  9269. # have to do anything special.
  9270. aix_use_runtimelinking=no
  9271. exp_sym_flag='-Bexport'
  9272. no_entry_flag=""
  9273. else
  9274. aix_use_runtimelinking=no
  9275. # Test if we are trying to use run time linking or normal
  9276. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9277. # need to do runtime linking.
  9278. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9279. for ld_flag in $LDFLAGS; do
  9280. case $ld_flag in
  9281. *-brtl*)
  9282. aix_use_runtimelinking=yes
  9283. break
  9284. ;;
  9285. esac
  9286. done
  9287. ;;
  9288. esac
  9289. exp_sym_flag='-bexport'
  9290. no_entry_flag='-bnoentry'
  9291. fi
  9292. # When large executables or shared objects are built, AIX ld can
  9293. # have problems creating the table of contents. If linking a library
  9294. # or program results in "error TOC overflow" add -mminimal-toc to
  9295. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9296. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9297. archive_cmds_CXX=''
  9298. hardcode_direct_CXX=yes
  9299. hardcode_libdir_separator_CXX=':'
  9300. link_all_deplibs_CXX=yes
  9301. if test "$GXX" = yes; then
  9302. case $host_os in aix4.[012]|aix4.[012].*)
  9303. # We only want to do this on AIX 4.2 and lower, the check
  9304. # below for broken collect2 doesn't work under 4.3+
  9305. collect2name=`${CC} -print-prog-name=collect2`
  9306. if test -f "$collect2name" && \
  9307. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9308. then
  9309. # We have reworked collect2
  9310. hardcode_direct_CXX=yes
  9311. else
  9312. # We have old collect2
  9313. hardcode_direct_CXX=unsupported
  9314. # It fails to find uninstalled libraries when the uninstalled
  9315. # path is not listed in the libpath. Setting hardcode_minus_L
  9316. # to unsupported forces relinking
  9317. hardcode_minus_L_CXX=yes
  9318. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9319. hardcode_libdir_separator_CXX=
  9320. fi
  9321. ;;
  9322. esac
  9323. shared_flag='-shared'
  9324. if test "$aix_use_runtimelinking" = yes; then
  9325. shared_flag="$shared_flag "'${wl}-G'
  9326. fi
  9327. else
  9328. # not using gcc
  9329. if test "$host_cpu" = ia64; then
  9330. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9331. # chokes on -Wl,-G. The following line is correct:
  9332. shared_flag='-G'
  9333. else
  9334. if test "$aix_use_runtimelinking" = yes; then
  9335. shared_flag='${wl}-G'
  9336. else
  9337. shared_flag='${wl}-bM:SRE'
  9338. fi
  9339. fi
  9340. fi
  9341. # It seems that -bexpall does not export symbols beginning with
  9342. # underscore (_), so it is better to generate a list of symbols to export.
  9343. always_export_symbols_CXX=yes
  9344. if test "$aix_use_runtimelinking" = yes; then
  9345. # Warning - without using the other runtime loading flags (-brtl),
  9346. # -berok will link without error, but may produce a broken library.
  9347. allow_undefined_flag_CXX='-berok'
  9348. # Determine the default libpath from the value encoded in an empty executable.
  9349. cat >conftest.$ac_ext <<_ACEOF
  9350. /* confdefs.h. */
  9351. _ACEOF
  9352. cat confdefs.h >>conftest.$ac_ext
  9353. cat >>conftest.$ac_ext <<_ACEOF
  9354. /* end confdefs.h. */
  9355. int
  9356. main ()
  9357. {
  9358. ;
  9359. return 0;
  9360. }
  9361. _ACEOF
  9362. rm -f conftest.$ac_objext conftest$ac_exeext
  9363. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9364. (eval $ac_link) 2>conftest.er1
  9365. ac_status=$?
  9366. grep -v '^ *+' conftest.er1 >conftest.err
  9367. rm -f conftest.er1
  9368. cat conftest.err >&5
  9369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9370. (exit $ac_status); } &&
  9371. { ac_try='test -z "$ac_cxx_werror_flag"
  9372. || test ! -s conftest.err'
  9373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9374. (eval $ac_try) 2>&5
  9375. ac_status=$?
  9376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9377. (exit $ac_status); }; } &&
  9378. { ac_try='test -s conftest$ac_exeext'
  9379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9380. (eval $ac_try) 2>&5
  9381. ac_status=$?
  9382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9383. (exit $ac_status); }; }; then
  9384. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9385. }'`
  9386. # Check for a 64-bit object if we didn't find anything.
  9387. 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; }
  9388. }'`; fi
  9389. else
  9390. echo "$as_me: failed program was:" >&5
  9391. sed 's/^/| /' conftest.$ac_ext >&5
  9392. fi
  9393. rm -f conftest.err conftest.$ac_objext \
  9394. conftest$ac_exeext conftest.$ac_ext
  9395. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9396. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9397. 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"
  9398. else
  9399. if test "$host_cpu" = ia64; then
  9400. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  9401. allow_undefined_flag_CXX="-z nodefs"
  9402. 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"
  9403. else
  9404. # Determine the default libpath from the value encoded in an empty executable.
  9405. cat >conftest.$ac_ext <<_ACEOF
  9406. /* confdefs.h. */
  9407. _ACEOF
  9408. cat confdefs.h >>conftest.$ac_ext
  9409. cat >>conftest.$ac_ext <<_ACEOF
  9410. /* end confdefs.h. */
  9411. int
  9412. main ()
  9413. {
  9414. ;
  9415. return 0;
  9416. }
  9417. _ACEOF
  9418. rm -f conftest.$ac_objext conftest$ac_exeext
  9419. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9420. (eval $ac_link) 2>conftest.er1
  9421. ac_status=$?
  9422. grep -v '^ *+' conftest.er1 >conftest.err
  9423. rm -f conftest.er1
  9424. cat conftest.err >&5
  9425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9426. (exit $ac_status); } &&
  9427. { ac_try='test -z "$ac_cxx_werror_flag"
  9428. || test ! -s conftest.err'
  9429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9430. (eval $ac_try) 2>&5
  9431. ac_status=$?
  9432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9433. (exit $ac_status); }; } &&
  9434. { ac_try='test -s conftest$ac_exeext'
  9435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9436. (eval $ac_try) 2>&5
  9437. ac_status=$?
  9438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9439. (exit $ac_status); }; }; then
  9440. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9441. }'`
  9442. # Check for a 64-bit object if we didn't find anything.
  9443. 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; }
  9444. }'`; fi
  9445. else
  9446. echo "$as_me: failed program was:" >&5
  9447. sed 's/^/| /' conftest.$ac_ext >&5
  9448. fi
  9449. rm -f conftest.err conftest.$ac_objext \
  9450. conftest$ac_exeext conftest.$ac_ext
  9451. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9452. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  9453. # Warning - without using the other run time loading flags,
  9454. # -berok will link without error, but may produce a broken library.
  9455. no_undefined_flag_CXX=' ${wl}-bernotok'
  9456. allow_undefined_flag_CXX=' ${wl}-berok'
  9457. # Exported symbols can be pulled into shared objects from archives
  9458. whole_archive_flag_spec_CXX='$convenience'
  9459. archive_cmds_need_lc_CXX=yes
  9460. # This is similar to how AIX traditionally builds its shared libraries.
  9461. 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'
  9462. fi
  9463. fi
  9464. ;;
  9465. beos*)
  9466. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9467. allow_undefined_flag_CXX=unsupported
  9468. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9469. # support --undefined. This deserves some investigation. FIXME
  9470. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9471. else
  9472. ld_shlibs_CXX=no
  9473. fi
  9474. ;;
  9475. chorus*)
  9476. case $cc_basename in
  9477. *)
  9478. # FIXME: insert proper C++ library support
  9479. ld_shlibs_CXX=no
  9480. ;;
  9481. esac
  9482. ;;
  9483. cygwin* | mingw* | pw32*)
  9484. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  9485. # as there is no search path for DLLs.
  9486. hardcode_libdir_flag_spec_CXX='-L$libdir'
  9487. allow_undefined_flag_CXX=unsupported
  9488. always_export_symbols_CXX=no
  9489. enable_shared_with_static_runtimes_CXX=yes
  9490. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9491. 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'
  9492. # If the export-symbols file already is a .def file (1st line
  9493. # is EXPORTS), use it as is; otherwise, prepend...
  9494. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9495. cp $export_symbols $output_objdir/$soname.def;
  9496. else
  9497. echo EXPORTS > $output_objdir/$soname.def;
  9498. cat $export_symbols >> $output_objdir/$soname.def;
  9499. fi~
  9500. $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'
  9501. else
  9502. ld_shlibs_CXX=no
  9503. fi
  9504. ;;
  9505. darwin* | rhapsody*)
  9506. case $host_os in
  9507. rhapsody* | darwin1.[012])
  9508. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  9509. ;;
  9510. *) # Darwin 1.3 on
  9511. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9512. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9513. else
  9514. case ${MACOSX_DEPLOYMENT_TARGET} in
  9515. 10.[012])
  9516. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9517. ;;
  9518. 10.*)
  9519. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  9520. ;;
  9521. esac
  9522. fi
  9523. ;;
  9524. esac
  9525. archive_cmds_need_lc_CXX=no
  9526. hardcode_direct_CXX=no
  9527. hardcode_automatic_CXX=yes
  9528. hardcode_shlibpath_var_CXX=unsupported
  9529. whole_archive_flag_spec_CXX=''
  9530. link_all_deplibs_CXX=yes
  9531. if test "$GXX" = yes ; then
  9532. lt_int_apple_cc_single_mod=no
  9533. output_verbose_link_cmd='echo'
  9534. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  9535. lt_int_apple_cc_single_mod=yes
  9536. fi
  9537. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9538. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9539. else
  9540. 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'
  9541. fi
  9542. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9543. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9544. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9545. 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}'
  9546. else
  9547. 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}'
  9548. fi
  9549. 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}'
  9550. else
  9551. case $cc_basename in
  9552. xlc*)
  9553. output_verbose_link_cmd='echo'
  9554. 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'
  9555. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9556. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9557. 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}'
  9558. 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}'
  9559. ;;
  9560. *)
  9561. ld_shlibs_CXX=no
  9562. ;;
  9563. esac
  9564. fi
  9565. ;;
  9566. dgux*)
  9567. case $cc_basename in
  9568. ec++*)
  9569. # FIXME: insert proper C++ library support
  9570. ld_shlibs_CXX=no
  9571. ;;
  9572. ghcx*)
  9573. # Green Hills C++ Compiler
  9574. # FIXME: insert proper C++ library support
  9575. ld_shlibs_CXX=no
  9576. ;;
  9577. *)
  9578. # FIXME: insert proper C++ library support
  9579. ld_shlibs_CXX=no
  9580. ;;
  9581. esac
  9582. ;;
  9583. freebsd[12]*)
  9584. # C++ shared libraries reported to be fairly broken before switch to ELF
  9585. ld_shlibs_CXX=no
  9586. ;;
  9587. freebsd-elf*)
  9588. archive_cmds_need_lc_CXX=no
  9589. ;;
  9590. freebsd* | kfreebsd*-gnu | dragonfly*)
  9591. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9592. # conventions
  9593. ld_shlibs_CXX=yes
  9594. ;;
  9595. gnu*)
  9596. ;;
  9597. hpux9*)
  9598. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9599. hardcode_libdir_separator_CXX=:
  9600. export_dynamic_flag_spec_CXX='${wl}-E'
  9601. hardcode_direct_CXX=yes
  9602. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9603. # but as the default
  9604. # location of the library.
  9605. case $cc_basename in
  9606. CC*)
  9607. # FIXME: insert proper C++ library support
  9608. ld_shlibs_CXX=no
  9609. ;;
  9610. aCC*)
  9611. 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'
  9612. # Commands to make compiler produce verbose output that lists
  9613. # what "hidden" libraries, object files and flags are used when
  9614. # linking a shared library.
  9615. #
  9616. # There doesn't appear to be a way to prevent this compiler from
  9617. # explicitly linking system object files so we need to strip them
  9618. # from the output so that they don't get included in the library
  9619. # dependencies.
  9620. 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'
  9621. ;;
  9622. *)
  9623. if test "$GXX" = yes; then
  9624. 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'
  9625. else
  9626. # FIXME: insert proper C++ library support
  9627. ld_shlibs_CXX=no
  9628. fi
  9629. ;;
  9630. esac
  9631. ;;
  9632. hpux10*|hpux11*)
  9633. if test $with_gnu_ld = no; then
  9634. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9635. hardcode_libdir_separator_CXX=:
  9636. case $host_cpu in
  9637. hppa*64*|ia64*)
  9638. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  9639. ;;
  9640. *)
  9641. export_dynamic_flag_spec_CXX='${wl}-E'
  9642. ;;
  9643. esac
  9644. fi
  9645. case $host_cpu in
  9646. hppa*64*|ia64*)
  9647. hardcode_direct_CXX=no
  9648. hardcode_shlibpath_var_CXX=no
  9649. ;;
  9650. *)
  9651. hardcode_direct_CXX=yes
  9652. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9653. # but as the default
  9654. # location of the library.
  9655. ;;
  9656. esac
  9657. case $cc_basename in
  9658. CC*)
  9659. # FIXME: insert proper C++ library support
  9660. ld_shlibs_CXX=no
  9661. ;;
  9662. aCC*)
  9663. case $host_cpu in
  9664. hppa*64*)
  9665. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9666. ;;
  9667. ia64*)
  9668. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9669. ;;
  9670. *)
  9671. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9672. ;;
  9673. esac
  9674. # Commands to make compiler produce verbose output that lists
  9675. # what "hidden" libraries, object files and flags are used when
  9676. # linking a shared library.
  9677. #
  9678. # There doesn't appear to be a way to prevent this compiler from
  9679. # explicitly linking system object files so we need to strip them
  9680. # from the output so that they don't get included in the library
  9681. # dependencies.
  9682. 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'
  9683. ;;
  9684. *)
  9685. if test "$GXX" = yes; then
  9686. if test $with_gnu_ld = no; then
  9687. case $host_cpu in
  9688. hppa*64*)
  9689. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9690. ;;
  9691. ia64*)
  9692. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9693. ;;
  9694. *)
  9695. 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'
  9696. ;;
  9697. esac
  9698. fi
  9699. else
  9700. # FIXME: insert proper C++ library support
  9701. ld_shlibs_CXX=no
  9702. fi
  9703. ;;
  9704. esac
  9705. ;;
  9706. interix3*)
  9707. hardcode_direct_CXX=no
  9708. hardcode_shlibpath_var_CXX=no
  9709. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9710. export_dynamic_flag_spec_CXX='${wl}-E'
  9711. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9712. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9713. # default) and relocated if they conflict, which is a slow very memory
  9714. # consuming and fragmenting process. To avoid this, we pick a random,
  9715. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9716. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9717. 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'
  9718. 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'
  9719. ;;
  9720. irix5* | irix6*)
  9721. case $cc_basename in
  9722. CC*)
  9723. # SGI C++
  9724. 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'
  9725. # Archives containing C++ object files must be created using
  9726. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9727. # necessary to make sure instantiated templates are included
  9728. # in the archive.
  9729. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9730. ;;
  9731. *)
  9732. if test "$GXX" = yes; then
  9733. if test "$with_gnu_ld" = no; then
  9734. 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'
  9735. else
  9736. 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'
  9737. fi
  9738. fi
  9739. link_all_deplibs_CXX=yes
  9740. ;;
  9741. esac
  9742. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9743. hardcode_libdir_separator_CXX=:
  9744. ;;
  9745. linux*)
  9746. case $cc_basename in
  9747. KCC*)
  9748. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9749. # KCC will only create a shared library if the output file
  9750. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9751. # to its proper name (with version) after linking.
  9752. 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'
  9753. 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'
  9754. # Commands to make compiler produce verbose output that lists
  9755. # what "hidden" libraries, object files and flags are used when
  9756. # linking a shared library.
  9757. #
  9758. # There doesn't appear to be a way to prevent this compiler from
  9759. # explicitly linking system object files so we need to strip them
  9760. # from the output so that they don't get included in the library
  9761. # dependencies.
  9762. 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'
  9763. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9764. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9765. # Archives containing C++ object files must be created using
  9766. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9767. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9768. ;;
  9769. icpc*)
  9770. # Intel C++
  9771. with_gnu_ld=yes
  9772. # version 8.0 and above of icpc choke on multiply defined symbols
  9773. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9774. # earlier do not add the objects themselves.
  9775. case `$CC -V 2>&1` in
  9776. *"Version 7."*)
  9777. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9778. 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'
  9779. ;;
  9780. *) # Version 8.0 or newer
  9781. tmp_idyn=
  9782. case $host_cpu in
  9783. ia64*) tmp_idyn=' -i_dynamic';;
  9784. esac
  9785. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9786. 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'
  9787. ;;
  9788. esac
  9789. archive_cmds_need_lc_CXX=no
  9790. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9791. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9792. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9793. ;;
  9794. pgCC*)
  9795. # Portland Group C++ compiler
  9796. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9797. 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'
  9798. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9799. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9800. 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'
  9801. ;;
  9802. cxx*)
  9803. # Compaq C++
  9804. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9805. 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'
  9806. runpath_var=LD_RUN_PATH
  9807. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9808. hardcode_libdir_separator_CXX=:
  9809. # Commands to make compiler produce verbose output that lists
  9810. # what "hidden" libraries, object files and flags are used when
  9811. # linking a shared library.
  9812. #
  9813. # There doesn't appear to be a way to prevent this compiler from
  9814. # explicitly linking system object files so we need to strip them
  9815. # from the output so that they don't get included in the library
  9816. # dependencies.
  9817. 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'
  9818. ;;
  9819. esac
  9820. ;;
  9821. lynxos*)
  9822. # FIXME: insert proper C++ library support
  9823. ld_shlibs_CXX=no
  9824. ;;
  9825. m88k*)
  9826. # FIXME: insert proper C++ library support
  9827. ld_shlibs_CXX=no
  9828. ;;
  9829. mvs*)
  9830. case $cc_basename in
  9831. cxx*)
  9832. # FIXME: insert proper C++ library support
  9833. ld_shlibs_CXX=no
  9834. ;;
  9835. *)
  9836. # FIXME: insert proper C++ library support
  9837. ld_shlibs_CXX=no
  9838. ;;
  9839. esac
  9840. ;;
  9841. netbsd*)
  9842. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9843. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9844. wlarc=
  9845. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9846. hardcode_direct_CXX=yes
  9847. hardcode_shlibpath_var_CXX=no
  9848. fi
  9849. # Workaround some broken pre-1.5 toolchains
  9850. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9851. ;;
  9852. openbsd2*)
  9853. # C++ shared libraries are fairly broken
  9854. ld_shlibs_CXX=no
  9855. ;;
  9856. openbsd*)
  9857. hardcode_direct_CXX=yes
  9858. hardcode_shlibpath_var_CXX=no
  9859. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9860. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9861. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9862. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9863. export_dynamic_flag_spec_CXX='${wl}-E'
  9864. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9865. fi
  9866. output_verbose_link_cmd='echo'
  9867. ;;
  9868. osf3*)
  9869. case $cc_basename in
  9870. KCC*)
  9871. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9872. # KCC will only create a shared library if the output file
  9873. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9874. # to its proper name (with version) after linking.
  9875. 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'
  9876. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9877. hardcode_libdir_separator_CXX=:
  9878. # Archives containing C++ object files must be created using
  9879. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9880. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9881. ;;
  9882. RCC*)
  9883. # Rational C++ 2.4.1
  9884. # FIXME: insert proper C++ library support
  9885. ld_shlibs_CXX=no
  9886. ;;
  9887. cxx*)
  9888. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9889. 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'
  9890. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9891. hardcode_libdir_separator_CXX=:
  9892. # Commands to make compiler produce verbose output that lists
  9893. # what "hidden" libraries, object files and flags are used when
  9894. # linking a shared library.
  9895. #
  9896. # There doesn't appear to be a way to prevent this compiler from
  9897. # explicitly linking system object files so we need to strip them
  9898. # from the output so that they don't get included in the library
  9899. # dependencies.
  9900. 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'
  9901. ;;
  9902. *)
  9903. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9904. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9905. 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'
  9906. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9907. hardcode_libdir_separator_CXX=:
  9908. # Commands to make compiler produce verbose output that lists
  9909. # what "hidden" libraries, object files and flags are used when
  9910. # linking a shared library.
  9911. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9912. else
  9913. # FIXME: insert proper C++ library support
  9914. ld_shlibs_CXX=no
  9915. fi
  9916. ;;
  9917. esac
  9918. ;;
  9919. osf4* | osf5*)
  9920. case $cc_basename in
  9921. KCC*)
  9922. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9923. # KCC will only create a shared library if the output file
  9924. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9925. # to its proper name (with version) after linking.
  9926. 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'
  9927. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9928. hardcode_libdir_separator_CXX=:
  9929. # Archives containing C++ object files must be created using
  9930. # the KAI C++ compiler.
  9931. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9932. ;;
  9933. RCC*)
  9934. # Rational C++ 2.4.1
  9935. # FIXME: insert proper C++ library support
  9936. ld_shlibs_CXX=no
  9937. ;;
  9938. cxx*)
  9939. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9940. 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'
  9941. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9942. echo "-hidden">> $lib.exp~
  9943. $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~
  9944. $rm $lib.exp'
  9945. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9946. hardcode_libdir_separator_CXX=:
  9947. # Commands to make compiler produce verbose output that lists
  9948. # what "hidden" libraries, object files and flags are used when
  9949. # linking a shared library.
  9950. #
  9951. # There doesn't appear to be a way to prevent this compiler from
  9952. # explicitly linking system object files so we need to strip them
  9953. # from the output so that they don't get included in the library
  9954. # dependencies.
  9955. 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'
  9956. ;;
  9957. *)
  9958. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9959. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9960. 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'
  9961. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9962. hardcode_libdir_separator_CXX=:
  9963. # Commands to make compiler produce verbose output that lists
  9964. # what "hidden" libraries, object files and flags are used when
  9965. # linking a shared library.
  9966. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9967. else
  9968. # FIXME: insert proper C++ library support
  9969. ld_shlibs_CXX=no
  9970. fi
  9971. ;;
  9972. esac
  9973. ;;
  9974. psos*)
  9975. # FIXME: insert proper C++ library support
  9976. ld_shlibs_CXX=no
  9977. ;;
  9978. sunos4*)
  9979. case $cc_basename in
  9980. CC*)
  9981. # Sun C++ 4.x
  9982. # FIXME: insert proper C++ library support
  9983. ld_shlibs_CXX=no
  9984. ;;
  9985. lcc*)
  9986. # Lucid
  9987. # FIXME: insert proper C++ library support
  9988. ld_shlibs_CXX=no
  9989. ;;
  9990. *)
  9991. # FIXME: insert proper C++ library support
  9992. ld_shlibs_CXX=no
  9993. ;;
  9994. esac
  9995. ;;
  9996. solaris*)
  9997. case $cc_basename in
  9998. CC*)
  9999. # Sun C++ 4.2, 5.x and Centerline C++
  10000. archive_cmds_need_lc_CXX=yes
  10001. no_undefined_flag_CXX=' -zdefs'
  10002. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10003. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10004. $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'
  10005. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10006. hardcode_shlibpath_var_CXX=no
  10007. case $host_os in
  10008. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10009. *)
  10010. # The C++ compiler is used as linker so we must use $wl
  10011. # flag to pass the commands to the underlying system
  10012. # linker. We must also pass each convience library through
  10013. # to the system linker between allextract/defaultextract.
  10014. # The C++ compiler will combine linker options so we
  10015. # cannot just pass the convience library names through
  10016. # without $wl.
  10017. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10018. 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'
  10019. ;;
  10020. esac
  10021. link_all_deplibs_CXX=yes
  10022. output_verbose_link_cmd='echo'
  10023. # Archives containing C++ object files must be created using
  10024. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10025. # necessary to make sure instantiated templates are included
  10026. # in the archive.
  10027. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10028. ;;
  10029. gcx*)
  10030. # Green Hills C++ Compiler
  10031. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10032. # The C++ compiler must be used to create the archive.
  10033. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10034. ;;
  10035. *)
  10036. # GNU C++ compiler with Solaris linker
  10037. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10038. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10039. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10040. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10041. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10042. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10043. # Commands to make compiler produce verbose output that lists
  10044. # what "hidden" libraries, object files and flags are used when
  10045. # linking a shared library.
  10046. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10047. else
  10048. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10049. # platform.
  10050. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10051. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10052. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10053. # Commands to make compiler produce verbose output that lists
  10054. # what "hidden" libraries, object files and flags are used when
  10055. # linking a shared library.
  10056. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10057. fi
  10058. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10059. fi
  10060. ;;
  10061. esac
  10062. ;;
  10063. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10064. no_undefined_flag_CXX='${wl}-z,text'
  10065. archive_cmds_need_lc_CXX=no
  10066. hardcode_shlibpath_var_CXX=no
  10067. runpath_var='LD_RUN_PATH'
  10068. case $cc_basename in
  10069. CC*)
  10070. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10071. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10072. ;;
  10073. *)
  10074. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10075. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10076. ;;
  10077. esac
  10078. ;;
  10079. sysv5* | sco3.2v5* | sco5v6*)
  10080. # Note: We can NOT use -z defs as we might desire, because we do not
  10081. # link with -lc, and that would cause any symbols used from libc to
  10082. # always be unresolved, which means just about no library would
  10083. # ever link correctly. If we're not using GNU ld we use -z text
  10084. # though, which does catch some bad symbols but isn't as heavy-handed
  10085. # as -z defs.
  10086. # For security reasons, it is highly recommended that you always
  10087. # use absolute paths for naming shared libraries, and exclude the
  10088. # DT_RUNPATH tag from executables and libraries. But doing so
  10089. # requires that you compile everything twice, which is a pain.
  10090. # So that behaviour is only enabled if SCOABSPATH is set to a
  10091. # non-empty value in the environment. Most likely only useful for
  10092. # creating official distributions of packages.
  10093. # This is a hack until libtool officially supports absolute path
  10094. # names for shared libraries.
  10095. no_undefined_flag_CXX='${wl}-z,text'
  10096. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10097. archive_cmds_need_lc_CXX=no
  10098. hardcode_shlibpath_var_CXX=no
  10099. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10100. hardcode_libdir_separator_CXX=':'
  10101. link_all_deplibs_CXX=yes
  10102. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10103. runpath_var='LD_RUN_PATH'
  10104. case $cc_basename in
  10105. CC*)
  10106. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10107. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10108. ;;
  10109. *)
  10110. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10111. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10112. ;;
  10113. esac
  10114. ;;
  10115. tandem*)
  10116. case $cc_basename in
  10117. NCC*)
  10118. # NonStop-UX NCC 3.20
  10119. # FIXME: insert proper C++ library support
  10120. ld_shlibs_CXX=no
  10121. ;;
  10122. *)
  10123. # FIXME: insert proper C++ library support
  10124. ld_shlibs_CXX=no
  10125. ;;
  10126. esac
  10127. ;;
  10128. vxworks*)
  10129. # FIXME: insert proper C++ library support
  10130. ld_shlibs_CXX=no
  10131. ;;
  10132. *)
  10133. # FIXME: insert proper C++ library support
  10134. ld_shlibs_CXX=no
  10135. ;;
  10136. esac
  10137. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10138. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10139. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10140. GCC_CXX="$GXX"
  10141. LD_CXX="$LD"
  10142. cat > conftest.$ac_ext <<EOF
  10143. class Foo
  10144. {
  10145. public:
  10146. Foo (void) { a = 0; }
  10147. private:
  10148. int a;
  10149. };
  10150. EOF
  10151. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10152. (eval $ac_compile) 2>&5
  10153. ac_status=$?
  10154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10155. (exit $ac_status); }; then
  10156. # Parse the compiler output and extract the necessary
  10157. # objects, libraries and library flags.
  10158. # Sentinel used to keep track of whether or not we are before
  10159. # the conftest object file.
  10160. pre_test_object_deps_done=no
  10161. # The `*' in the case matches for architectures that use `case' in
  10162. # $output_verbose_cmd can trigger glob expansion during the loop
  10163. # eval without this substitution.
  10164. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10165. for p in `eval $output_verbose_link_cmd`; do
  10166. case $p in
  10167. -L* | -R* | -l*)
  10168. # Some compilers place space between "-{L,R}" and the path.
  10169. # Remove the space.
  10170. if test $p = "-L" \
  10171. || test $p = "-R"; then
  10172. prev=$p
  10173. continue
  10174. else
  10175. prev=
  10176. fi
  10177. if test "$pre_test_object_deps_done" = no; then
  10178. case $p in
  10179. -L* | -R*)
  10180. # Internal compiler library paths should come after those
  10181. # provided the user. The postdeps already come after the
  10182. # user supplied libs so there is no need to process them.
  10183. if test -z "$compiler_lib_search_path_CXX"; then
  10184. compiler_lib_search_path_CXX="${prev}${p}"
  10185. else
  10186. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10187. fi
  10188. ;;
  10189. # The "-l" case would never come before the object being
  10190. # linked, so don't bother handling this case.
  10191. esac
  10192. else
  10193. if test -z "$postdeps_CXX"; then
  10194. postdeps_CXX="${prev}${p}"
  10195. else
  10196. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10197. fi
  10198. fi
  10199. ;;
  10200. *.$objext)
  10201. # This assumes that the test object file only shows up
  10202. # once in the compiler output.
  10203. if test "$p" = "conftest.$objext"; then
  10204. pre_test_object_deps_done=yes
  10205. continue
  10206. fi
  10207. if test "$pre_test_object_deps_done" = no; then
  10208. if test -z "$predep_objects_CXX"; then
  10209. predep_objects_CXX="$p"
  10210. else
  10211. predep_objects_CXX="$predep_objects_CXX $p"
  10212. fi
  10213. else
  10214. if test -z "$postdep_objects_CXX"; then
  10215. postdep_objects_CXX="$p"
  10216. else
  10217. postdep_objects_CXX="$postdep_objects_CXX $p"
  10218. fi
  10219. fi
  10220. ;;
  10221. *) ;; # Ignore the rest.
  10222. esac
  10223. done
  10224. # Clean up.
  10225. rm -f a.out a.exe
  10226. else
  10227. echo "libtool.m4: error: problem compiling CXX test program"
  10228. fi
  10229. $rm -f confest.$objext
  10230. # PORTME: override above test on systems where it is broken
  10231. case $host_os in
  10232. interix3*)
  10233. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10234. # hack all around it, let's just trust "g++" to DTRT.
  10235. predep_objects_CXX=
  10236. postdep_objects_CXX=
  10237. postdeps_CXX=
  10238. ;;
  10239. solaris*)
  10240. case $cc_basename in
  10241. CC*)
  10242. # Adding this requires a known-good setup of shared libraries for
  10243. # Sun compiler versions before 5.6, else PIC objects from an old
  10244. # archive will be linked into the output, leading to subtle bugs.
  10245. postdeps_CXX='-lCstd -lCrun'
  10246. ;;
  10247. esac
  10248. ;;
  10249. esac
  10250. case " $postdeps_CXX " in
  10251. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  10252. esac
  10253. lt_prog_compiler_wl_CXX=
  10254. lt_prog_compiler_pic_CXX=
  10255. lt_prog_compiler_static_CXX=
  10256. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  10257. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  10258. # C++ specific cases for pic, static, wl, etc.
  10259. if test "$GXX" = yes; then
  10260. lt_prog_compiler_wl_CXX='-Wl,'
  10261. lt_prog_compiler_static_CXX='-static'
  10262. case $host_os in
  10263. aix*)
  10264. # All AIX code is PIC.
  10265. if test "$host_cpu" = ia64; then
  10266. # AIX 5 now supports IA64 processor
  10267. lt_prog_compiler_static_CXX='-Bstatic'
  10268. fi
  10269. ;;
  10270. amigaos*)
  10271. # FIXME: we need at least 68020 code to build shared libraries, but
  10272. # adding the `-m68020' flag to GCC prevents building anything better,
  10273. # like `-m68040'.
  10274. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  10275. ;;
  10276. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10277. # PIC is the default for these OSes.
  10278. ;;
  10279. mingw* | os2* | pw32*)
  10280. # This hack is so that the source file can tell whether it is being
  10281. # built for inclusion in a dll (and should export symbols for example).
  10282. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  10283. ;;
  10284. darwin* | rhapsody*)
  10285. # PIC is the default on this platform
  10286. # Common symbols not allowed in MH_DYLIB files
  10287. lt_prog_compiler_pic_CXX='-fno-common'
  10288. ;;
  10289. *djgpp*)
  10290. # DJGPP does not support shared libraries at all
  10291. lt_prog_compiler_pic_CXX=
  10292. ;;
  10293. interix3*)
  10294. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10295. # Instead, we relocate shared libraries at runtime.
  10296. ;;
  10297. sysv4*MP*)
  10298. if test -d /usr/nec; then
  10299. lt_prog_compiler_pic_CXX=-Kconform_pic
  10300. fi
  10301. ;;
  10302. hpux*)
  10303. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10304. # not for PA HP-UX.
  10305. case $host_cpu in
  10306. hppa*64*|ia64*)
  10307. ;;
  10308. *)
  10309. lt_prog_compiler_pic_CXX='-fPIC'
  10310. ;;
  10311. esac
  10312. ;;
  10313. *)
  10314. lt_prog_compiler_pic_CXX='-fPIC'
  10315. ;;
  10316. esac
  10317. else
  10318. case $host_os in
  10319. aix4* | aix5*)
  10320. # All AIX code is PIC.
  10321. if test "$host_cpu" = ia64; then
  10322. # AIX 5 now supports IA64 processor
  10323. lt_prog_compiler_static_CXX='-Bstatic'
  10324. else
  10325. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  10326. fi
  10327. ;;
  10328. chorus*)
  10329. case $cc_basename in
  10330. cxch68*)
  10331. # Green Hills C++ Compiler
  10332. # _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"
  10333. ;;
  10334. esac
  10335. ;;
  10336. darwin*)
  10337. # PIC is the default on this platform
  10338. # Common symbols not allowed in MH_DYLIB files
  10339. case $cc_basename in
  10340. xlc*)
  10341. lt_prog_compiler_pic_CXX='-qnocommon'
  10342. lt_prog_compiler_wl_CXX='-Wl,'
  10343. ;;
  10344. esac
  10345. ;;
  10346. dgux*)
  10347. case $cc_basename in
  10348. ec++*)
  10349. lt_prog_compiler_pic_CXX='-KPIC'
  10350. ;;
  10351. ghcx*)
  10352. # Green Hills C++ Compiler
  10353. lt_prog_compiler_pic_CXX='-pic'
  10354. ;;
  10355. *)
  10356. ;;
  10357. esac
  10358. ;;
  10359. freebsd* | kfreebsd*-gnu | dragonfly*)
  10360. # FreeBSD uses GNU C++
  10361. ;;
  10362. hpux9* | hpux10* | hpux11*)
  10363. case $cc_basename in
  10364. CC*)
  10365. lt_prog_compiler_wl_CXX='-Wl,'
  10366. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10367. if test "$host_cpu" != ia64; then
  10368. lt_prog_compiler_pic_CXX='+Z'
  10369. fi
  10370. ;;
  10371. aCC*)
  10372. lt_prog_compiler_wl_CXX='-Wl,'
  10373. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  10374. case $host_cpu in
  10375. hppa*64*|ia64*)
  10376. # +Z the default
  10377. ;;
  10378. *)
  10379. lt_prog_compiler_pic_CXX='+Z'
  10380. ;;
  10381. esac
  10382. ;;
  10383. *)
  10384. ;;
  10385. esac
  10386. ;;
  10387. interix*)
  10388. # This is c89, which is MS Visual C++ (no shared libs)
  10389. # Anyone wants to do a port?
  10390. ;;
  10391. irix5* | irix6* | nonstopux*)
  10392. case $cc_basename in
  10393. CC*)
  10394. lt_prog_compiler_wl_CXX='-Wl,'
  10395. lt_prog_compiler_static_CXX='-non_shared'
  10396. # CC pic flag -KPIC is the default.
  10397. ;;
  10398. *)
  10399. ;;
  10400. esac
  10401. ;;
  10402. linux*)
  10403. case $cc_basename in
  10404. KCC*)
  10405. # KAI C++ Compiler
  10406. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10407. lt_prog_compiler_pic_CXX='-fPIC'
  10408. ;;
  10409. icpc* | ecpc*)
  10410. # Intel C++
  10411. lt_prog_compiler_wl_CXX='-Wl,'
  10412. lt_prog_compiler_pic_CXX='-KPIC'
  10413. lt_prog_compiler_static_CXX='-static'
  10414. ;;
  10415. pgCC*)
  10416. # Portland Group C++ compiler.
  10417. lt_prog_compiler_wl_CXX='-Wl,'
  10418. lt_prog_compiler_pic_CXX='-fpic'
  10419. lt_prog_compiler_static_CXX='-Bstatic'
  10420. ;;
  10421. cxx*)
  10422. # Compaq C++
  10423. # Make sure the PIC flag is empty. It appears that all Alpha
  10424. # Linux and Compaq Tru64 Unix objects are PIC.
  10425. lt_prog_compiler_pic_CXX=
  10426. lt_prog_compiler_static_CXX='-non_shared'
  10427. ;;
  10428. *)
  10429. ;;
  10430. esac
  10431. ;;
  10432. lynxos*)
  10433. ;;
  10434. m88k*)
  10435. ;;
  10436. mvs*)
  10437. case $cc_basename in
  10438. cxx*)
  10439. lt_prog_compiler_pic_CXX='-W c,exportall'
  10440. ;;
  10441. *)
  10442. ;;
  10443. esac
  10444. ;;
  10445. netbsd*)
  10446. ;;
  10447. osf3* | osf4* | osf5*)
  10448. case $cc_basename in
  10449. KCC*)
  10450. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10451. ;;
  10452. RCC*)
  10453. # Rational C++ 2.4.1
  10454. lt_prog_compiler_pic_CXX='-pic'
  10455. ;;
  10456. cxx*)
  10457. # Digital/Compaq C++
  10458. lt_prog_compiler_wl_CXX='-Wl,'
  10459. # Make sure the PIC flag is empty. It appears that all Alpha
  10460. # Linux and Compaq Tru64 Unix objects are PIC.
  10461. lt_prog_compiler_pic_CXX=
  10462. lt_prog_compiler_static_CXX='-non_shared'
  10463. ;;
  10464. *)
  10465. ;;
  10466. esac
  10467. ;;
  10468. psos*)
  10469. ;;
  10470. solaris*)
  10471. case $cc_basename in
  10472. CC*)
  10473. # Sun C++ 4.2, 5.x and Centerline C++
  10474. lt_prog_compiler_pic_CXX='-KPIC'
  10475. lt_prog_compiler_static_CXX='-Bstatic'
  10476. lt_prog_compiler_wl_CXX='-Qoption ld '
  10477. ;;
  10478. gcx*)
  10479. # Green Hills C++ Compiler
  10480. lt_prog_compiler_pic_CXX='-PIC'
  10481. ;;
  10482. *)
  10483. ;;
  10484. esac
  10485. ;;
  10486. sunos4*)
  10487. case $cc_basename in
  10488. CC*)
  10489. # Sun C++ 4.x
  10490. lt_prog_compiler_pic_CXX='-pic'
  10491. lt_prog_compiler_static_CXX='-Bstatic'
  10492. ;;
  10493. lcc*)
  10494. # Lucid
  10495. lt_prog_compiler_pic_CXX='-pic'
  10496. ;;
  10497. *)
  10498. ;;
  10499. esac
  10500. ;;
  10501. tandem*)
  10502. case $cc_basename in
  10503. NCC*)
  10504. # NonStop-UX NCC 3.20
  10505. lt_prog_compiler_pic_CXX='-KPIC'
  10506. ;;
  10507. *)
  10508. ;;
  10509. esac
  10510. ;;
  10511. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10512. case $cc_basename in
  10513. CC*)
  10514. lt_prog_compiler_wl_CXX='-Wl,'
  10515. lt_prog_compiler_pic_CXX='-KPIC'
  10516. lt_prog_compiler_static_CXX='-Bstatic'
  10517. ;;
  10518. esac
  10519. ;;
  10520. vxworks*)
  10521. ;;
  10522. *)
  10523. lt_prog_compiler_can_build_shared_CXX=no
  10524. ;;
  10525. esac
  10526. fi
  10527. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  10528. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  10529. #
  10530. # Check to make sure the PIC flag actually works.
  10531. #
  10532. if test -n "$lt_prog_compiler_pic_CXX"; then
  10533. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10534. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  10535. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  10536. echo $ECHO_N "(cached) $ECHO_C" >&6
  10537. else
  10538. lt_prog_compiler_pic_works_CXX=no
  10539. ac_outfile=conftest.$ac_objext
  10540. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10541. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10542. # Insert the option either (1) after the last *FLAGS variable, or
  10543. # (2) before a word containing "conftest.", or (3) at the end.
  10544. # Note that $ac_compile itself does not contain backslashes and begins
  10545. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10546. # The option is referenced via a variable to avoid confusing sed.
  10547. lt_compile=`echo "$ac_compile" | $SED \
  10548. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10549. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10550. -e 's:$: $lt_compiler_flag:'`
  10551. (eval echo "\"\$as_me:11668: $lt_compile\"" >&5)
  10552. (eval "$lt_compile" 2>conftest.err)
  10553. ac_status=$?
  10554. cat conftest.err >&5
  10555. echo "$as_me:11672: \$? = $ac_status" >&5
  10556. if (exit $ac_status) && test -s "$ac_outfile"; then
  10557. # The compiler can only warn and ignore the option if not recognized
  10558. # So say no if there are warnings other than the usual output.
  10559. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10560. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10561. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10562. lt_prog_compiler_pic_works_CXX=yes
  10563. fi
  10564. fi
  10565. $rm conftest*
  10566. fi
  10567. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  10568. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  10569. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  10570. case $lt_prog_compiler_pic_CXX in
  10571. "" | " "*) ;;
  10572. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10573. esac
  10574. else
  10575. lt_prog_compiler_pic_CXX=
  10576. lt_prog_compiler_can_build_shared_CXX=no
  10577. fi
  10578. fi
  10579. case $host_os in
  10580. # For platforms which do not support PIC, -DPIC is meaningless:
  10581. *djgpp*)
  10582. lt_prog_compiler_pic_CXX=
  10583. ;;
  10584. *)
  10585. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10586. ;;
  10587. esac
  10588. #
  10589. # Check to make sure the static flag actually works.
  10590. #
  10591. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10592. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10593. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  10594. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  10595. echo $ECHO_N "(cached) $ECHO_C" >&6
  10596. else
  10597. lt_prog_compiler_static_works_CXX=no
  10598. save_LDFLAGS="$LDFLAGS"
  10599. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10600. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  10601. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10602. # The linker can only warn and ignore the option if not recognized
  10603. # So say no if there are warnings
  10604. if test -s conftest.err; then
  10605. # Append any errors to the config.log.
  10606. cat conftest.err 1>&5
  10607. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10608. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10609. if diff conftest.exp conftest.er2 >/dev/null; then
  10610. lt_prog_compiler_static_works_CXX=yes
  10611. fi
  10612. else
  10613. lt_prog_compiler_static_works_CXX=yes
  10614. fi
  10615. fi
  10616. $rm conftest*
  10617. LDFLAGS="$save_LDFLAGS"
  10618. fi
  10619. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  10620. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
  10621. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  10622. :
  10623. else
  10624. lt_prog_compiler_static_CXX=
  10625. fi
  10626. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  10627. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  10628. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  10629. echo $ECHO_N "(cached) $ECHO_C" >&6
  10630. else
  10631. lt_cv_prog_compiler_c_o_CXX=no
  10632. $rm -r conftest 2>/dev/null
  10633. mkdir conftest
  10634. cd conftest
  10635. mkdir out
  10636. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10637. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10638. # Insert the option either (1) after the last *FLAGS variable, or
  10639. # (2) before a word containing "conftest.", or (3) at the end.
  10640. # Note that $ac_compile itself does not contain backslashes and begins
  10641. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10642. lt_compile=`echo "$ac_compile" | $SED \
  10643. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10644. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10645. -e 's:$: $lt_compiler_flag:'`
  10646. (eval echo "\"\$as_me:11772: $lt_compile\"" >&5)
  10647. (eval "$lt_compile" 2>out/conftest.err)
  10648. ac_status=$?
  10649. cat out/conftest.err >&5
  10650. echo "$as_me:11776: \$? = $ac_status" >&5
  10651. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10652. then
  10653. # The compiler can only warn and ignore the option if not recognized
  10654. # So say no if there are warnings
  10655. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10656. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10657. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10658. lt_cv_prog_compiler_c_o_CXX=yes
  10659. fi
  10660. fi
  10661. chmod u+w . 2>&5
  10662. $rm conftest*
  10663. # SGI C++ compiler will create directory out/ii_files/ for
  10664. # template instantiation
  10665. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10666. $rm out/* && rmdir out
  10667. cd ..
  10668. rmdir conftest
  10669. $rm conftest*
  10670. fi
  10671. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10672. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  10673. hard_links="nottested"
  10674. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10675. # do not overwrite the value of need_locks provided by the user
  10676. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  10677. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  10678. hard_links=yes
  10679. $rm conftest*
  10680. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10681. touch conftest.a
  10682. ln conftest.a conftest.b 2>&5 || hard_links=no
  10683. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10684. echo "$as_me:$LINENO: result: $hard_links" >&5
  10685. echo "${ECHO_T}$hard_links" >&6
  10686. if test "$hard_links" = no; then
  10687. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10688. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10689. need_locks=warn
  10690. fi
  10691. else
  10692. need_locks=no
  10693. fi
  10694. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10695. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  10696. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10697. case $host_os in
  10698. aix4* | aix5*)
  10699. # If we're using GNU nm, then we don't want the "-C" option.
  10700. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10701. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10702. 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'
  10703. else
  10704. 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'
  10705. fi
  10706. ;;
  10707. pw32*)
  10708. export_symbols_cmds_CXX="$ltdll_cmds"
  10709. ;;
  10710. cygwin* | mingw*)
  10711. 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'
  10712. ;;
  10713. *)
  10714. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10715. ;;
  10716. esac
  10717. echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10718. echo "${ECHO_T}$ld_shlibs_CXX" >&6
  10719. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10720. #
  10721. # Do we need to explicitly link libc?
  10722. #
  10723. case "x$archive_cmds_need_lc_CXX" in
  10724. x|xyes)
  10725. # Assume -lc should be added
  10726. archive_cmds_need_lc_CXX=yes
  10727. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10728. case $archive_cmds_CXX in
  10729. *'~'*)
  10730. # FIXME: we may have to deal with multi-command sequences.
  10731. ;;
  10732. '$CC '*)
  10733. # Test whether the compiler implicitly links with -lc since on some
  10734. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10735. # to ld, don't add -lc before -lgcc.
  10736. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10737. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10738. $rm conftest*
  10739. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10740. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10741. (eval $ac_compile) 2>&5
  10742. ac_status=$?
  10743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10744. (exit $ac_status); } 2>conftest.err; then
  10745. soname=conftest
  10746. lib=conftest
  10747. libobjs=conftest.$ac_objext
  10748. deplibs=
  10749. wl=$lt_prog_compiler_wl_CXX
  10750. pic_flag=$lt_prog_compiler_pic_CXX
  10751. compiler_flags=-v
  10752. linker_flags=-v
  10753. verstring=
  10754. output_objdir=.
  10755. libname=conftest
  10756. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10757. allow_undefined_flag_CXX=
  10758. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10759. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10760. ac_status=$?
  10761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10762. (exit $ac_status); }
  10763. then
  10764. archive_cmds_need_lc_CXX=no
  10765. else
  10766. archive_cmds_need_lc_CXX=yes
  10767. fi
  10768. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10769. else
  10770. cat conftest.err 1>&5
  10771. fi
  10772. $rm conftest*
  10773. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  10774. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  10775. ;;
  10776. esac
  10777. fi
  10778. ;;
  10779. esac
  10780. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  10781. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  10782. library_names_spec=
  10783. libname_spec='lib$name'
  10784. soname_spec=
  10785. shrext_cmds=".so"
  10786. postinstall_cmds=
  10787. postuninstall_cmds=
  10788. finish_cmds=
  10789. finish_eval=
  10790. shlibpath_var=
  10791. shlibpath_overrides_runpath=unknown
  10792. version_type=none
  10793. dynamic_linker="$host_os ld.so"
  10794. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10795. if test "$GCC" = yes; then
  10796. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10797. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10798. # if the path contains ";" then we assume it to be the separator
  10799. # otherwise default to the standard path separator (i.e. ":") - it is
  10800. # assumed that no part of a normal pathname contains ";" but that should
  10801. # okay in the real world where ";" in dirpaths is itself problematic.
  10802. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10803. else
  10804. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10805. fi
  10806. else
  10807. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10808. fi
  10809. need_lib_prefix=unknown
  10810. hardcode_into_libs=no
  10811. # when you set need_version to no, make sure it does not cause -set_version
  10812. # flags to be left without arguments
  10813. need_version=unknown
  10814. case $host_os in
  10815. aix3*)
  10816. version_type=linux
  10817. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10818. shlibpath_var=LIBPATH
  10819. # AIX 3 has no versioning support, so we append a major version to the name.
  10820. soname_spec='${libname}${release}${shared_ext}$major'
  10821. ;;
  10822. aix4* | aix5*)
  10823. version_type=linux
  10824. need_lib_prefix=no
  10825. need_version=no
  10826. hardcode_into_libs=yes
  10827. if test "$host_cpu" = ia64; then
  10828. # AIX 5 supports IA64
  10829. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10830. shlibpath_var=LD_LIBRARY_PATH
  10831. else
  10832. # With GCC up to 2.95.x, collect2 would create an import file
  10833. # for dependence libraries. The import file would start with
  10834. # the line `#! .'. This would cause the generated library to
  10835. # depend on `.', always an invalid library. This was fixed in
  10836. # development snapshots of GCC prior to 3.0.
  10837. case $host_os in
  10838. aix4 | aix4.[01] | aix4.[01].*)
  10839. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10840. echo ' yes '
  10841. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10842. :
  10843. else
  10844. can_build_shared=no
  10845. fi
  10846. ;;
  10847. esac
  10848. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10849. # soname into executable. Probably we can add versioning support to
  10850. # collect2, so additional links can be useful in future.
  10851. if test "$aix_use_runtimelinking" = yes; then
  10852. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10853. # instead of lib<name>.a to let people know that these are not
  10854. # typical AIX shared libraries.
  10855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10856. else
  10857. # We preserve .a as extension for shared libraries through AIX4.2
  10858. # and later when we are not doing run time linking.
  10859. library_names_spec='${libname}${release}.a $libname.a'
  10860. soname_spec='${libname}${release}${shared_ext}$major'
  10861. fi
  10862. shlibpath_var=LIBPATH
  10863. fi
  10864. ;;
  10865. amigaos*)
  10866. library_names_spec='$libname.ixlibrary $libname.a'
  10867. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10868. 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'
  10869. ;;
  10870. beos*)
  10871. library_names_spec='${libname}${shared_ext}'
  10872. dynamic_linker="$host_os ld.so"
  10873. shlibpath_var=LIBRARY_PATH
  10874. ;;
  10875. bsdi[45]*)
  10876. version_type=linux
  10877. need_version=no
  10878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10879. soname_spec='${libname}${release}${shared_ext}$major'
  10880. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10881. shlibpath_var=LD_LIBRARY_PATH
  10882. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10883. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10884. # the default ld.so.conf also contains /usr/contrib/lib and
  10885. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10886. # libtool to hard-code these into programs
  10887. ;;
  10888. cygwin* | mingw* | pw32*)
  10889. version_type=windows
  10890. shrext_cmds=".dll"
  10891. need_version=no
  10892. need_lib_prefix=no
  10893. case $GCC,$host_os in
  10894. yes,cygwin* | yes,mingw* | yes,pw32*)
  10895. library_names_spec='$libname.dll.a'
  10896. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10897. postinstall_cmds='base_file=`basename \${file}`~
  10898. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10899. dldir=$destdir/`dirname \$dlpath`~
  10900. test -d \$dldir || mkdir -p \$dldir~
  10901. $install_prog $dir/$dlname \$dldir/$dlname~
  10902. chmod a+x \$dldir/$dlname'
  10903. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10904. dlpath=$dir/\$dldll~
  10905. $rm \$dlpath'
  10906. shlibpath_overrides_runpath=yes
  10907. case $host_os in
  10908. cygwin*)
  10909. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10910. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10911. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10912. ;;
  10913. mingw*)
  10914. # MinGW DLLs use traditional 'lib' prefix
  10915. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10916. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10917. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10918. # It is most probably a Windows format PATH printed by
  10919. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10920. # path with ; separators, and with drive letters. We can handle the
  10921. # drive letters (cygwin fileutils understands them), so leave them,
  10922. # especially as we might pass files found there to a mingw objdump,
  10923. # which wouldn't understand a cygwinified path. Ahh.
  10924. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10925. else
  10926. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10927. fi
  10928. ;;
  10929. pw32*)
  10930. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10931. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10932. ;;
  10933. esac
  10934. ;;
  10935. *)
  10936. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10937. ;;
  10938. esac
  10939. dynamic_linker='Win32 ld.exe'
  10940. # FIXME: first we should search . and the directory the executable is in
  10941. shlibpath_var=PATH
  10942. ;;
  10943. darwin* | rhapsody*)
  10944. dynamic_linker="$host_os dyld"
  10945. version_type=darwin
  10946. need_lib_prefix=no
  10947. need_version=no
  10948. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10949. soname_spec='${libname}${release}${major}$shared_ext'
  10950. shlibpath_overrides_runpath=yes
  10951. shlibpath_var=DYLD_LIBRARY_PATH
  10952. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10953. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10954. if test "$GCC" = yes; then
  10955. 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"`
  10956. else
  10957. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10958. fi
  10959. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10960. ;;
  10961. dgux*)
  10962. version_type=linux
  10963. need_lib_prefix=no
  10964. need_version=no
  10965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10966. soname_spec='${libname}${release}${shared_ext}$major'
  10967. shlibpath_var=LD_LIBRARY_PATH
  10968. ;;
  10969. freebsd1*)
  10970. dynamic_linker=no
  10971. ;;
  10972. kfreebsd*-gnu)
  10973. version_type=linux
  10974. need_lib_prefix=no
  10975. need_version=no
  10976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10977. soname_spec='${libname}${release}${shared_ext}$major'
  10978. shlibpath_var=LD_LIBRARY_PATH
  10979. shlibpath_overrides_runpath=no
  10980. hardcode_into_libs=yes
  10981. dynamic_linker='GNU ld.so'
  10982. ;;
  10983. freebsd* | dragonfly*)
  10984. # DragonFly does not have aout. When/if they implement a new
  10985. # versioning mechanism, adjust this.
  10986. if test -x /usr/bin/objformat; then
  10987. objformat=`/usr/bin/objformat`
  10988. else
  10989. case $host_os in
  10990. freebsd[123]*) objformat=aout ;;
  10991. *) objformat=elf ;;
  10992. esac
  10993. fi
  10994. version_type=freebsd-$objformat
  10995. case $version_type in
  10996. freebsd-elf*)
  10997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10998. need_version=no
  10999. need_lib_prefix=no
  11000. ;;
  11001. freebsd-*)
  11002. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11003. need_version=yes
  11004. ;;
  11005. esac
  11006. shlibpath_var=LD_LIBRARY_PATH
  11007. case $host_os in
  11008. freebsd2*)
  11009. shlibpath_overrides_runpath=yes
  11010. ;;
  11011. freebsd3.[01]* | freebsdelf3.[01]*)
  11012. shlibpath_overrides_runpath=yes
  11013. hardcode_into_libs=yes
  11014. ;;
  11015. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11016. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11017. shlibpath_overrides_runpath=no
  11018. hardcode_into_libs=yes
  11019. ;;
  11020. freebsd*) # from 4.6 on
  11021. shlibpath_overrides_runpath=yes
  11022. hardcode_into_libs=yes
  11023. ;;
  11024. esac
  11025. ;;
  11026. gnu*)
  11027. version_type=linux
  11028. need_lib_prefix=no
  11029. need_version=no
  11030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11031. soname_spec='${libname}${release}${shared_ext}$major'
  11032. shlibpath_var=LD_LIBRARY_PATH
  11033. hardcode_into_libs=yes
  11034. ;;
  11035. hpux9* | hpux10* | hpux11*)
  11036. # Give a soname corresponding to the major version so that dld.sl refuses to
  11037. # link against other versions.
  11038. version_type=sunos
  11039. need_lib_prefix=no
  11040. need_version=no
  11041. case $host_cpu in
  11042. ia64*)
  11043. shrext_cmds='.so'
  11044. hardcode_into_libs=yes
  11045. dynamic_linker="$host_os dld.so"
  11046. shlibpath_var=LD_LIBRARY_PATH
  11047. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11049. soname_spec='${libname}${release}${shared_ext}$major'
  11050. if test "X$HPUX_IA64_MODE" = X32; then
  11051. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11052. else
  11053. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11054. fi
  11055. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11056. ;;
  11057. hppa*64*)
  11058. shrext_cmds='.sl'
  11059. hardcode_into_libs=yes
  11060. dynamic_linker="$host_os dld.sl"
  11061. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11062. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11064. soname_spec='${libname}${release}${shared_ext}$major'
  11065. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11066. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11067. ;;
  11068. *)
  11069. shrext_cmds='.sl'
  11070. dynamic_linker="$host_os dld.sl"
  11071. shlibpath_var=SHLIB_PATH
  11072. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11074. soname_spec='${libname}${release}${shared_ext}$major'
  11075. ;;
  11076. esac
  11077. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11078. postinstall_cmds='chmod 555 $lib'
  11079. ;;
  11080. interix3*)
  11081. version_type=linux
  11082. need_lib_prefix=no
  11083. need_version=no
  11084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11085. soname_spec='${libname}${release}${shared_ext}$major'
  11086. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11087. shlibpath_var=LD_LIBRARY_PATH
  11088. shlibpath_overrides_runpath=no
  11089. hardcode_into_libs=yes
  11090. ;;
  11091. irix5* | irix6* | nonstopux*)
  11092. case $host_os in
  11093. nonstopux*) version_type=nonstopux ;;
  11094. *)
  11095. if test "$lt_cv_prog_gnu_ld" = yes; then
  11096. version_type=linux
  11097. else
  11098. version_type=irix
  11099. fi ;;
  11100. esac
  11101. need_lib_prefix=no
  11102. need_version=no
  11103. soname_spec='${libname}${release}${shared_ext}$major'
  11104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11105. case $host_os in
  11106. irix5* | nonstopux*)
  11107. libsuff= shlibsuff=
  11108. ;;
  11109. *)
  11110. case $LD in # libtool.m4 will add one of these switches to LD
  11111. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11112. libsuff= shlibsuff= libmagic=32-bit;;
  11113. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11114. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11115. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11116. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11117. *) libsuff= shlibsuff= libmagic=never-match;;
  11118. esac
  11119. ;;
  11120. esac
  11121. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11122. shlibpath_overrides_runpath=no
  11123. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11124. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11125. hardcode_into_libs=yes
  11126. ;;
  11127. # No shared lib support for Linux oldld, aout, or coff.
  11128. linux*oldld* | linux*aout* | linux*coff*)
  11129. dynamic_linker=no
  11130. ;;
  11131. # This must be Linux ELF.
  11132. linux*)
  11133. version_type=linux
  11134. need_lib_prefix=no
  11135. need_version=no
  11136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11137. soname_spec='${libname}${release}${shared_ext}$major'
  11138. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11139. shlibpath_var=LD_LIBRARY_PATH
  11140. shlibpath_overrides_runpath=no
  11141. # This implies no fast_install, which is unacceptable.
  11142. # Some rework will be needed to allow for fast_install
  11143. # before this can be enabled.
  11144. hardcode_into_libs=yes
  11145. # Append ld.so.conf contents to the search path
  11146. if test -f /etc/ld.so.conf; then
  11147. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11148. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11149. fi
  11150. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11151. # powerpc, because MkLinux only supported shared libraries with the
  11152. # GNU dynamic linker. Since this was broken with cross compilers,
  11153. # most powerpc-linux boxes support dynamic linking these days and
  11154. # people can always --disable-shared, the test was removed, and we
  11155. # assume the GNU/Linux dynamic linker is in use.
  11156. dynamic_linker='GNU/Linux ld.so'
  11157. ;;
  11158. knetbsd*-gnu)
  11159. version_type=linux
  11160. need_lib_prefix=no
  11161. need_version=no
  11162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11163. soname_spec='${libname}${release}${shared_ext}$major'
  11164. shlibpath_var=LD_LIBRARY_PATH
  11165. shlibpath_overrides_runpath=no
  11166. hardcode_into_libs=yes
  11167. dynamic_linker='GNU ld.so'
  11168. ;;
  11169. netbsd*)
  11170. version_type=sunos
  11171. need_lib_prefix=no
  11172. need_version=no
  11173. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11174. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11175. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11176. dynamic_linker='NetBSD (a.out) ld.so'
  11177. else
  11178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11179. soname_spec='${libname}${release}${shared_ext}$major'
  11180. dynamic_linker='NetBSD ld.elf_so'
  11181. fi
  11182. shlibpath_var=LD_LIBRARY_PATH
  11183. shlibpath_overrides_runpath=yes
  11184. hardcode_into_libs=yes
  11185. ;;
  11186. newsos6)
  11187. version_type=linux
  11188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11189. shlibpath_var=LD_LIBRARY_PATH
  11190. shlibpath_overrides_runpath=yes
  11191. ;;
  11192. nto-qnx*)
  11193. version_type=linux
  11194. need_lib_prefix=no
  11195. need_version=no
  11196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11197. soname_spec='${libname}${release}${shared_ext}$major'
  11198. shlibpath_var=LD_LIBRARY_PATH
  11199. shlibpath_overrides_runpath=yes
  11200. ;;
  11201. openbsd*)
  11202. version_type=sunos
  11203. sys_lib_dlsearch_path_spec="/usr/lib"
  11204. need_lib_prefix=no
  11205. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  11206. case $host_os in
  11207. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  11208. *) need_version=no ;;
  11209. esac
  11210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11211. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11212. shlibpath_var=LD_LIBRARY_PATH
  11213. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11214. case $host_os in
  11215. openbsd2.[89] | openbsd2.[89].*)
  11216. shlibpath_overrides_runpath=no
  11217. ;;
  11218. *)
  11219. shlibpath_overrides_runpath=yes
  11220. ;;
  11221. esac
  11222. else
  11223. shlibpath_overrides_runpath=yes
  11224. fi
  11225. ;;
  11226. os2*)
  11227. libname_spec='$name'
  11228. shrext_cmds=".dll"
  11229. need_lib_prefix=no
  11230. library_names_spec='$libname${shared_ext} $libname.a'
  11231. dynamic_linker='OS/2 ld.exe'
  11232. shlibpath_var=LIBPATH
  11233. ;;
  11234. osf3* | osf4* | osf5*)
  11235. version_type=osf
  11236. need_lib_prefix=no
  11237. need_version=no
  11238. soname_spec='${libname}${release}${shared_ext}$major'
  11239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11240. shlibpath_var=LD_LIBRARY_PATH
  11241. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11242. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  11243. ;;
  11244. solaris*)
  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=yes
  11252. hardcode_into_libs=yes
  11253. # ldd complains unless libraries are executable
  11254. postinstall_cmds='chmod +x $lib'
  11255. ;;
  11256. sunos4*)
  11257. version_type=sunos
  11258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11259. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11260. shlibpath_var=LD_LIBRARY_PATH
  11261. shlibpath_overrides_runpath=yes
  11262. if test "$with_gnu_ld" = yes; then
  11263. need_lib_prefix=no
  11264. fi
  11265. need_version=yes
  11266. ;;
  11267. sysv4 | sysv4.3*)
  11268. version_type=linux
  11269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11270. soname_spec='${libname}${release}${shared_ext}$major'
  11271. shlibpath_var=LD_LIBRARY_PATH
  11272. case $host_vendor in
  11273. sni)
  11274. shlibpath_overrides_runpath=no
  11275. need_lib_prefix=no
  11276. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11277. runpath_var=LD_RUN_PATH
  11278. ;;
  11279. siemens)
  11280. need_lib_prefix=no
  11281. ;;
  11282. motorola)
  11283. need_lib_prefix=no
  11284. need_version=no
  11285. shlibpath_overrides_runpath=no
  11286. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11287. ;;
  11288. esac
  11289. ;;
  11290. sysv4*MP*)
  11291. if test -d /usr/nec ;then
  11292. version_type=linux
  11293. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  11294. soname_spec='$libname${shared_ext}.$major'
  11295. shlibpath_var=LD_LIBRARY_PATH
  11296. fi
  11297. ;;
  11298. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11299. version_type=freebsd-elf
  11300. need_lib_prefix=no
  11301. need_version=no
  11302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11303. soname_spec='${libname}${release}${shared_ext}$major'
  11304. shlibpath_var=LD_LIBRARY_PATH
  11305. hardcode_into_libs=yes
  11306. if test "$with_gnu_ld" = yes; then
  11307. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11308. shlibpath_overrides_runpath=no
  11309. else
  11310. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11311. shlibpath_overrides_runpath=yes
  11312. case $host_os in
  11313. sco3.2v5*)
  11314. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11315. ;;
  11316. esac
  11317. fi
  11318. sys_lib_dlsearch_path_spec='/usr/lib'
  11319. ;;
  11320. uts4*)
  11321. version_type=linux
  11322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11323. soname_spec='${libname}${release}${shared_ext}$major'
  11324. shlibpath_var=LD_LIBRARY_PATH
  11325. ;;
  11326. *)
  11327. dynamic_linker=no
  11328. ;;
  11329. esac
  11330. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  11331. echo "${ECHO_T}$dynamic_linker" >&6
  11332. test "$dynamic_linker" = no && can_build_shared=no
  11333. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11334. if test "$GCC" = yes; then
  11335. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11336. fi
  11337. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  11338. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  11339. hardcode_action_CXX=
  11340. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  11341. test -n "$runpath_var_CXX" || \
  11342. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  11343. # We can hardcode non-existant directories.
  11344. if test "$hardcode_direct_CXX" != no &&
  11345. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11346. # have to relink, otherwise we might link with an installed library
  11347. # when we should be linking with a yet-to-be-installed one
  11348. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  11349. test "$hardcode_minus_L_CXX" != no; then
  11350. # Linking always hardcodes the temporary library directory.
  11351. hardcode_action_CXX=relink
  11352. else
  11353. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11354. hardcode_action_CXX=immediate
  11355. fi
  11356. else
  11357. # We cannot hardcode anything, or else we can only hardcode existing
  11358. # directories.
  11359. hardcode_action_CXX=unsupported
  11360. fi
  11361. echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  11362. echo "${ECHO_T}$hardcode_action_CXX" >&6
  11363. if test "$hardcode_action_CXX" = relink; then
  11364. # Fast installation is not supported
  11365. enable_fast_install=no
  11366. elif test "$shlibpath_overrides_runpath" = yes ||
  11367. test "$enable_shared" = no; then
  11368. # Fast installation is not necessary
  11369. enable_fast_install=needless
  11370. fi
  11371. # The else clause should only fire when bootstrapping the
  11372. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11373. # with your package, and you will get complaints that there are
  11374. # no rules to generate ltmain.sh.
  11375. if test -f "$ltmain"; then
  11376. # See if we are running on zsh, and set the options which allow our commands through
  11377. # without removal of \ escapes.
  11378. if test -n "${ZSH_VERSION+set}" ; then
  11379. setopt NO_GLOB_SUBST
  11380. fi
  11381. # Now quote all the things that may contain metacharacters while being
  11382. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11383. # variables and quote the copies for generation of the libtool script.
  11384. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  11385. SED SHELL STRIP \
  11386. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11387. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11388. deplibs_check_method reload_flag reload_cmds need_locks \
  11389. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11390. lt_cv_sys_global_symbol_to_c_name_address \
  11391. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11392. old_postinstall_cmds old_postuninstall_cmds \
  11393. compiler_CXX \
  11394. CC_CXX \
  11395. LD_CXX \
  11396. lt_prog_compiler_wl_CXX \
  11397. lt_prog_compiler_pic_CXX \
  11398. lt_prog_compiler_static_CXX \
  11399. lt_prog_compiler_no_builtin_flag_CXX \
  11400. export_dynamic_flag_spec_CXX \
  11401. thread_safe_flag_spec_CXX \
  11402. whole_archive_flag_spec_CXX \
  11403. enable_shared_with_static_runtimes_CXX \
  11404. old_archive_cmds_CXX \
  11405. old_archive_from_new_cmds_CXX \
  11406. predep_objects_CXX \
  11407. postdep_objects_CXX \
  11408. predeps_CXX \
  11409. postdeps_CXX \
  11410. compiler_lib_search_path_CXX \
  11411. archive_cmds_CXX \
  11412. archive_expsym_cmds_CXX \
  11413. postinstall_cmds_CXX \
  11414. postuninstall_cmds_CXX \
  11415. old_archive_from_expsyms_cmds_CXX \
  11416. allow_undefined_flag_CXX \
  11417. no_undefined_flag_CXX \
  11418. export_symbols_cmds_CXX \
  11419. hardcode_libdir_flag_spec_CXX \
  11420. hardcode_libdir_flag_spec_ld_CXX \
  11421. hardcode_libdir_separator_CXX \
  11422. hardcode_automatic_CXX \
  11423. module_cmds_CXX \
  11424. module_expsym_cmds_CXX \
  11425. lt_cv_prog_compiler_c_o_CXX \
  11426. exclude_expsyms_CXX \
  11427. include_expsyms_CXX; do
  11428. case $var in
  11429. old_archive_cmds_CXX | \
  11430. old_archive_from_new_cmds_CXX | \
  11431. archive_cmds_CXX | \
  11432. archive_expsym_cmds_CXX | \
  11433. module_cmds_CXX | \
  11434. module_expsym_cmds_CXX | \
  11435. old_archive_from_expsyms_cmds_CXX | \
  11436. export_symbols_cmds_CXX | \
  11437. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11438. postinstall_cmds | postuninstall_cmds | \
  11439. old_postinstall_cmds | old_postuninstall_cmds | \
  11440. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11441. # Double-quote double-evaled strings.
  11442. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11443. ;;
  11444. *)
  11445. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11446. ;;
  11447. esac
  11448. done
  11449. case $lt_echo in
  11450. *'\$0 --fallback-echo"')
  11451. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11452. ;;
  11453. esac
  11454. cfgfile="$ofile"
  11455. cat <<__EOF__ >> "$cfgfile"
  11456. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  11457. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11458. # Shell to use when invoking shell scripts.
  11459. SHELL=$lt_SHELL
  11460. # Whether or not to build shared libraries.
  11461. build_libtool_libs=$enable_shared
  11462. # Whether or not to build static libraries.
  11463. build_old_libs=$enable_static
  11464. # Whether or not to add -lc for building shared libraries.
  11465. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  11466. # Whether or not to disallow shared libs when runtime libs are static
  11467. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  11468. # Whether or not to optimize for fast installation.
  11469. fast_install=$enable_fast_install
  11470. # The host system.
  11471. host_alias=$host_alias
  11472. host=$host
  11473. host_os=$host_os
  11474. # The build system.
  11475. build_alias=$build_alias
  11476. build=$build
  11477. build_os=$build_os
  11478. # An echo program that does not interpret backslashes.
  11479. echo=$lt_echo
  11480. # The archiver.
  11481. AR=$lt_AR
  11482. AR_FLAGS=$lt_AR_FLAGS
  11483. # A C compiler.
  11484. LTCC=$lt_LTCC
  11485. # LTCC compiler flags.
  11486. LTCFLAGS=$lt_LTCFLAGS
  11487. # A language-specific compiler.
  11488. CC=$lt_compiler_CXX
  11489. # Is the compiler the GNU C compiler?
  11490. with_gcc=$GCC_CXX
  11491. # An ERE matcher.
  11492. EGREP=$lt_EGREP
  11493. # The linker used to build libraries.
  11494. LD=$lt_LD_CXX
  11495. # Whether we need hard or soft links.
  11496. LN_S=$lt_LN_S
  11497. # A BSD-compatible nm program.
  11498. NM=$lt_NM
  11499. # A symbol stripping program
  11500. STRIP=$lt_STRIP
  11501. # Used to examine libraries when file_magic_cmd begins "file"
  11502. MAGIC_CMD=$MAGIC_CMD
  11503. # Used on cygwin: DLL creation program.
  11504. DLLTOOL="$DLLTOOL"
  11505. # Used on cygwin: object dumper.
  11506. OBJDUMP="$OBJDUMP"
  11507. # Used on cygwin: assembler.
  11508. AS="$AS"
  11509. # The name of the directory that contains temporary libtool files.
  11510. objdir=$objdir
  11511. # How to create reloadable object files.
  11512. reload_flag=$lt_reload_flag
  11513. reload_cmds=$lt_reload_cmds
  11514. # How to pass a linker flag through the compiler.
  11515. wl=$lt_lt_prog_compiler_wl_CXX
  11516. # Object file suffix (normally "o").
  11517. objext="$ac_objext"
  11518. # Old archive suffix (normally "a").
  11519. libext="$libext"
  11520. # Shared library suffix (normally ".so").
  11521. shrext_cmds='$shrext_cmds'
  11522. # Executable file suffix (normally "").
  11523. exeext="$exeext"
  11524. # Additional compiler flags for building library objects.
  11525. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11526. pic_mode=$pic_mode
  11527. # What is the maximum length of a command?
  11528. max_cmd_len=$lt_cv_sys_max_cmd_len
  11529. # Does compiler simultaneously support -c and -o options?
  11530. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11531. # Must we lock files when doing compilation?
  11532. need_locks=$lt_need_locks
  11533. # Do we need the lib prefix for modules?
  11534. need_lib_prefix=$need_lib_prefix
  11535. # Do we need a version for libraries?
  11536. need_version=$need_version
  11537. # Whether dlopen is supported.
  11538. dlopen_support=$enable_dlopen
  11539. # Whether dlopen of programs is supported.
  11540. dlopen_self=$enable_dlopen_self
  11541. # Whether dlopen of statically linked programs is supported.
  11542. dlopen_self_static=$enable_dlopen_self_static
  11543. # Compiler flag to prevent dynamic linking.
  11544. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11545. # Compiler flag to turn off builtin functions.
  11546. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11547. # Compiler flag to allow reflexive dlopens.
  11548. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11549. # Compiler flag to generate shared objects directly from archives.
  11550. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11551. # Compiler flag to generate thread-safe objects.
  11552. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11553. # Library versioning type.
  11554. version_type=$version_type
  11555. # Format of library name prefix.
  11556. libname_spec=$lt_libname_spec
  11557. # List of archive names. First name is the real one, the rest are links.
  11558. # The last name is the one that the linker finds with -lNAME.
  11559. library_names_spec=$lt_library_names_spec
  11560. # The coded name of the library, if different from the real name.
  11561. soname_spec=$lt_soname_spec
  11562. # Commands used to build and install an old-style archive.
  11563. RANLIB=$lt_RANLIB
  11564. old_archive_cmds=$lt_old_archive_cmds_CXX
  11565. old_postinstall_cmds=$lt_old_postinstall_cmds
  11566. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11567. # Create an old-style archive from a shared archive.
  11568. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11569. # Create a temporary old-style archive to link instead of a shared archive.
  11570. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11571. # Commands used to build and install a shared archive.
  11572. archive_cmds=$lt_archive_cmds_CXX
  11573. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11574. postinstall_cmds=$lt_postinstall_cmds
  11575. postuninstall_cmds=$lt_postuninstall_cmds
  11576. # Commands used to build a loadable module (assumed same as above if empty)
  11577. module_cmds=$lt_module_cmds_CXX
  11578. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11579. # Commands to strip libraries.
  11580. old_striplib=$lt_old_striplib
  11581. striplib=$lt_striplib
  11582. # Dependencies to place before the objects being linked to create a
  11583. # shared library.
  11584. predep_objects=$lt_predep_objects_CXX
  11585. # Dependencies to place after the objects being linked to create a
  11586. # shared library.
  11587. postdep_objects=$lt_postdep_objects_CXX
  11588. # Dependencies to place before the objects being linked to create a
  11589. # shared library.
  11590. predeps=$lt_predeps_CXX
  11591. # Dependencies to place after the objects being linked to create a
  11592. # shared library.
  11593. postdeps=$lt_postdeps_CXX
  11594. # The library search path used internally by the compiler when linking
  11595. # a shared library.
  11596. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11597. # Method to check whether dependent libraries are shared objects.
  11598. deplibs_check_method=$lt_deplibs_check_method
  11599. # Command to use when deplibs_check_method == file_magic.
  11600. file_magic_cmd=$lt_file_magic_cmd
  11601. # Flag that allows shared libraries with undefined symbols to be built.
  11602. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11603. # Flag that forces no undefined symbols.
  11604. no_undefined_flag=$lt_no_undefined_flag_CXX
  11605. # Commands used to finish a libtool library installation in a directory.
  11606. finish_cmds=$lt_finish_cmds
  11607. # Same as above, but a single script fragment to be evaled but not shown.
  11608. finish_eval=$lt_finish_eval
  11609. # Take the output of nm and produce a listing of raw symbols and C names.
  11610. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11611. # Transform the output of nm in a proper C declaration
  11612. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11613. # Transform the output of nm in a C name address pair
  11614. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11615. # This is the shared library runtime path variable.
  11616. runpath_var=$runpath_var
  11617. # This is the shared library path variable.
  11618. shlibpath_var=$shlibpath_var
  11619. # Is shlibpath searched before the hard-coded library search path?
  11620. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11621. # How to hardcode a shared library path into an executable.
  11622. hardcode_action=$hardcode_action_CXX
  11623. # Whether we should hardcode library paths into libraries.
  11624. hardcode_into_libs=$hardcode_into_libs
  11625. # Flag to hardcode \$libdir into a binary during linking.
  11626. # This must work even if \$libdir does not exist.
  11627. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11628. # If ld is used when linking, flag to hardcode \$libdir into
  11629. # a binary during linking. This must work even if \$libdir does
  11630. # not exist.
  11631. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11632. # Whether we need a single -rpath flag with a separated argument.
  11633. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11634. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11635. # resulting binary.
  11636. hardcode_direct=$hardcode_direct_CXX
  11637. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11638. # resulting binary.
  11639. hardcode_minus_L=$hardcode_minus_L_CXX
  11640. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11641. # the resulting binary.
  11642. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11643. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11644. # and all subsequent libraries and executables linked against it.
  11645. hardcode_automatic=$hardcode_automatic_CXX
  11646. # Variables whose values should be saved in libtool wrapper scripts and
  11647. # restored at relink time.
  11648. variables_saved_for_relink="$variables_saved_for_relink"
  11649. # Whether libtool must link a program against all its dependency libraries.
  11650. link_all_deplibs=$link_all_deplibs_CXX
  11651. # Compile-time system search path for libraries
  11652. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11653. # Run-time system search path for libraries
  11654. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11655. # Fix the shell variable \$srcfile for the compiler.
  11656. fix_srcfile_path="$fix_srcfile_path_CXX"
  11657. # Set to yes if exported symbols are required.
  11658. always_export_symbols=$always_export_symbols_CXX
  11659. # The commands to list exported symbols.
  11660. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11661. # The commands to extract the exported symbol list from a shared archive.
  11662. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11663. # Symbols that should not be listed in the preloaded symbols.
  11664. exclude_expsyms=$lt_exclude_expsyms_CXX
  11665. # Symbols that must always be exported.
  11666. include_expsyms=$lt_include_expsyms_CXX
  11667. # ### END LIBTOOL TAG CONFIG: $tagname
  11668. __EOF__
  11669. else
  11670. # If there is no Makefile yet, we rely on a make rule to execute
  11671. # `config.status --recheck' to rerun these tests and create the
  11672. # libtool script then.
  11673. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11674. if test -f "$ltmain_in"; then
  11675. test -f Makefile && make "$ltmain"
  11676. fi
  11677. fi
  11678. ac_ext=c
  11679. ac_cpp='$CPP $CPPFLAGS'
  11680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11683. CC=$lt_save_CC
  11684. LDCXX=$LD
  11685. LD=$lt_save_LD
  11686. GCC=$lt_save_GCC
  11687. with_gnu_ldcxx=$with_gnu_ld
  11688. with_gnu_ld=$lt_save_with_gnu_ld
  11689. lt_cv_path_LDCXX=$lt_cv_path_LD
  11690. lt_cv_path_LD=$lt_save_path_LD
  11691. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11692. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11693. else
  11694. tagname=""
  11695. fi
  11696. ;;
  11697. F77)
  11698. if test -n "$F77" && test "X$F77" != "Xno"; then
  11699. ac_ext=f
  11700. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  11701. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11702. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  11703. archive_cmds_need_lc_F77=no
  11704. allow_undefined_flag_F77=
  11705. always_export_symbols_F77=no
  11706. archive_expsym_cmds_F77=
  11707. export_dynamic_flag_spec_F77=
  11708. hardcode_direct_F77=no
  11709. hardcode_libdir_flag_spec_F77=
  11710. hardcode_libdir_flag_spec_ld_F77=
  11711. hardcode_libdir_separator_F77=
  11712. hardcode_minus_L_F77=no
  11713. hardcode_automatic_F77=no
  11714. module_cmds_F77=
  11715. module_expsym_cmds_F77=
  11716. link_all_deplibs_F77=unknown
  11717. old_archive_cmds_F77=$old_archive_cmds
  11718. no_undefined_flag_F77=
  11719. whole_archive_flag_spec_F77=
  11720. enable_shared_with_static_runtimes_F77=no
  11721. # Source file extension for f77 test sources.
  11722. ac_ext=f
  11723. # Object file extension for compiled f77 test sources.
  11724. objext=o
  11725. objext_F77=$objext
  11726. # Code to be used in simple compile tests
  11727. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11728. # Code to be used in simple link tests
  11729. lt_simple_link_test_code=" program t\n end\n"
  11730. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11731. # If no C compiler was specified, use CC.
  11732. LTCC=${LTCC-"$CC"}
  11733. # If no C compiler flags were specified, use CFLAGS.
  11734. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11735. # Allow CC to be a program name with arguments.
  11736. compiler=$CC
  11737. # save warnings/boilerplate of simple test code
  11738. ac_outfile=conftest.$ac_objext
  11739. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11740. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11741. _lt_compiler_boilerplate=`cat conftest.err`
  11742. $rm conftest*
  11743. ac_outfile=conftest.$ac_objext
  11744. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11745. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11746. _lt_linker_boilerplate=`cat conftest.err`
  11747. $rm conftest*
  11748. # Allow CC to be a program name with arguments.
  11749. lt_save_CC="$CC"
  11750. CC=${F77-"f77"}
  11751. compiler=$CC
  11752. compiler_F77=$CC
  11753. for cc_temp in $compiler""; do
  11754. case $cc_temp in
  11755. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11756. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11757. \-*) ;;
  11758. *) break;;
  11759. esac
  11760. done
  11761. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11762. echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11763. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  11764. echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11765. echo "${ECHO_T}$can_build_shared" >&6
  11766. echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11767. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  11768. test "$can_build_shared" = "no" && enable_shared=no
  11769. # On AIX, shared libraries and static libraries use the same namespace, and
  11770. # are all built from PIC.
  11771. case $host_os in
  11772. aix3*)
  11773. test "$enable_shared" = yes && enable_static=no
  11774. if test -n "$RANLIB"; then
  11775. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11776. postinstall_cmds='$RANLIB $lib'
  11777. fi
  11778. ;;
  11779. aix4* | aix5*)
  11780. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11781. test "$enable_shared" = yes && enable_static=no
  11782. fi
  11783. ;;
  11784. esac
  11785. echo "$as_me:$LINENO: result: $enable_shared" >&5
  11786. echo "${ECHO_T}$enable_shared" >&6
  11787. echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11788. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  11789. # Make sure either enable_shared or enable_static is yes.
  11790. test "$enable_shared" = yes || enable_static=yes
  11791. echo "$as_me:$LINENO: result: $enable_static" >&5
  11792. echo "${ECHO_T}$enable_static" >&6
  11793. GCC_F77="$G77"
  11794. LD_F77="$LD"
  11795. lt_prog_compiler_wl_F77=
  11796. lt_prog_compiler_pic_F77=
  11797. lt_prog_compiler_static_F77=
  11798. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11799. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  11800. if test "$GCC" = yes; then
  11801. lt_prog_compiler_wl_F77='-Wl,'
  11802. lt_prog_compiler_static_F77='-static'
  11803. case $host_os in
  11804. aix*)
  11805. # All AIX code is PIC.
  11806. if test "$host_cpu" = ia64; then
  11807. # AIX 5 now supports IA64 processor
  11808. lt_prog_compiler_static_F77='-Bstatic'
  11809. fi
  11810. ;;
  11811. amigaos*)
  11812. # FIXME: we need at least 68020 code to build shared libraries, but
  11813. # adding the `-m68020' flag to GCC prevents building anything better,
  11814. # like `-m68040'.
  11815. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  11816. ;;
  11817. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11818. # PIC is the default for these OSes.
  11819. ;;
  11820. mingw* | pw32* | os2*)
  11821. # This hack is so that the source file can tell whether it is being
  11822. # built for inclusion in a dll (and should export symbols for example).
  11823. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11824. ;;
  11825. darwin* | rhapsody*)
  11826. # PIC is the default on this platform
  11827. # Common symbols not allowed in MH_DYLIB files
  11828. lt_prog_compiler_pic_F77='-fno-common'
  11829. ;;
  11830. interix3*)
  11831. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11832. # Instead, we relocate shared libraries at runtime.
  11833. ;;
  11834. msdosdjgpp*)
  11835. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11836. # on systems that don't support them.
  11837. lt_prog_compiler_can_build_shared_F77=no
  11838. enable_shared=no
  11839. ;;
  11840. sysv4*MP*)
  11841. if test -d /usr/nec; then
  11842. lt_prog_compiler_pic_F77=-Kconform_pic
  11843. fi
  11844. ;;
  11845. hpux*)
  11846. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11847. # not for PA HP-UX.
  11848. case $host_cpu in
  11849. hppa*64*|ia64*)
  11850. # +Z the default
  11851. ;;
  11852. *)
  11853. lt_prog_compiler_pic_F77='-fPIC'
  11854. ;;
  11855. esac
  11856. ;;
  11857. *)
  11858. lt_prog_compiler_pic_F77='-fPIC'
  11859. ;;
  11860. esac
  11861. else
  11862. # PORTME Check for flag to pass linker flags through the system compiler.
  11863. case $host_os in
  11864. aix*)
  11865. lt_prog_compiler_wl_F77='-Wl,'
  11866. if test "$host_cpu" = ia64; then
  11867. # AIX 5 now supports IA64 processor
  11868. lt_prog_compiler_static_F77='-Bstatic'
  11869. else
  11870. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  11871. fi
  11872. ;;
  11873. darwin*)
  11874. # PIC is the default on this platform
  11875. # Common symbols not allowed in MH_DYLIB files
  11876. case $cc_basename in
  11877. xlc*)
  11878. lt_prog_compiler_pic_F77='-qnocommon'
  11879. lt_prog_compiler_wl_F77='-Wl,'
  11880. ;;
  11881. esac
  11882. ;;
  11883. mingw* | pw32* | os2*)
  11884. # This hack is so that the source file can tell whether it is being
  11885. # built for inclusion in a dll (and should export symbols for example).
  11886. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  11887. ;;
  11888. hpux9* | hpux10* | hpux11*)
  11889. lt_prog_compiler_wl_F77='-Wl,'
  11890. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11891. # not for PA HP-UX.
  11892. case $host_cpu in
  11893. hppa*64*|ia64*)
  11894. # +Z the default
  11895. ;;
  11896. *)
  11897. lt_prog_compiler_pic_F77='+Z'
  11898. ;;
  11899. esac
  11900. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11901. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  11902. ;;
  11903. irix5* | irix6* | nonstopux*)
  11904. lt_prog_compiler_wl_F77='-Wl,'
  11905. # PIC (with -KPIC) is the default.
  11906. lt_prog_compiler_static_F77='-non_shared'
  11907. ;;
  11908. newsos6)
  11909. lt_prog_compiler_pic_F77='-KPIC'
  11910. lt_prog_compiler_static_F77='-Bstatic'
  11911. ;;
  11912. linux*)
  11913. case $cc_basename in
  11914. icc* | ecc*)
  11915. lt_prog_compiler_wl_F77='-Wl,'
  11916. lt_prog_compiler_pic_F77='-KPIC'
  11917. lt_prog_compiler_static_F77='-static'
  11918. ;;
  11919. pgcc* | pgf77* | pgf90* | pgf95*)
  11920. # Portland Group compilers (*not* the Pentium gcc compiler,
  11921. # which looks to be a dead project)
  11922. lt_prog_compiler_wl_F77='-Wl,'
  11923. lt_prog_compiler_pic_F77='-fpic'
  11924. lt_prog_compiler_static_F77='-Bstatic'
  11925. ;;
  11926. ccc*)
  11927. lt_prog_compiler_wl_F77='-Wl,'
  11928. # All Alpha code is PIC.
  11929. lt_prog_compiler_static_F77='-non_shared'
  11930. ;;
  11931. esac
  11932. ;;
  11933. osf3* | osf4* | osf5*)
  11934. lt_prog_compiler_wl_F77='-Wl,'
  11935. # All OSF/1 code is PIC.
  11936. lt_prog_compiler_static_F77='-non_shared'
  11937. ;;
  11938. solaris*)
  11939. lt_prog_compiler_pic_F77='-KPIC'
  11940. lt_prog_compiler_static_F77='-Bstatic'
  11941. case $cc_basename in
  11942. f77* | f90* | f95*)
  11943. lt_prog_compiler_wl_F77='-Qoption ld ';;
  11944. *)
  11945. lt_prog_compiler_wl_F77='-Wl,';;
  11946. esac
  11947. ;;
  11948. sunos4*)
  11949. lt_prog_compiler_wl_F77='-Qoption ld '
  11950. lt_prog_compiler_pic_F77='-PIC'
  11951. lt_prog_compiler_static_F77='-Bstatic'
  11952. ;;
  11953. sysv4 | sysv4.2uw2* | sysv4.3*)
  11954. lt_prog_compiler_wl_F77='-Wl,'
  11955. lt_prog_compiler_pic_F77='-KPIC'
  11956. lt_prog_compiler_static_F77='-Bstatic'
  11957. ;;
  11958. sysv4*MP*)
  11959. if test -d /usr/nec ;then
  11960. lt_prog_compiler_pic_F77='-Kconform_pic'
  11961. lt_prog_compiler_static_F77='-Bstatic'
  11962. fi
  11963. ;;
  11964. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11965. lt_prog_compiler_wl_F77='-Wl,'
  11966. lt_prog_compiler_pic_F77='-KPIC'
  11967. lt_prog_compiler_static_F77='-Bstatic'
  11968. ;;
  11969. unicos*)
  11970. lt_prog_compiler_wl_F77='-Wl,'
  11971. lt_prog_compiler_can_build_shared_F77=no
  11972. ;;
  11973. uts4*)
  11974. lt_prog_compiler_pic_F77='-pic'
  11975. lt_prog_compiler_static_F77='-Bstatic'
  11976. ;;
  11977. *)
  11978. lt_prog_compiler_can_build_shared_F77=no
  11979. ;;
  11980. esac
  11981. fi
  11982. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  11983. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  11984. #
  11985. # Check to make sure the PIC flag actually works.
  11986. #
  11987. if test -n "$lt_prog_compiler_pic_F77"; then
  11988. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  11989. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  11990. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  11991. echo $ECHO_N "(cached) $ECHO_C" >&6
  11992. else
  11993. lt_prog_compiler_pic_works_F77=no
  11994. ac_outfile=conftest.$ac_objext
  11995. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11996. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  11997. # Insert the option either (1) after the last *FLAGS variable, or
  11998. # (2) before a word containing "conftest.", or (3) at the end.
  11999. # Note that $ac_compile itself does not contain backslashes and begins
  12000. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12001. # The option is referenced via a variable to avoid confusing sed.
  12002. lt_compile=`echo "$ac_compile" | $SED \
  12003. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12004. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12005. -e 's:$: $lt_compiler_flag:'`
  12006. (eval echo "\"\$as_me:13342: $lt_compile\"" >&5)
  12007. (eval "$lt_compile" 2>conftest.err)
  12008. ac_status=$?
  12009. cat conftest.err >&5
  12010. echo "$as_me:13346: \$? = $ac_status" >&5
  12011. if (exit $ac_status) && test -s "$ac_outfile"; then
  12012. # The compiler can only warn and ignore the option if not recognized
  12013. # So say no if there are warnings other than the usual output.
  12014. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12015. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12016. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12017. lt_prog_compiler_pic_works_F77=yes
  12018. fi
  12019. fi
  12020. $rm conftest*
  12021. fi
  12022. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12023. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  12024. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12025. case $lt_prog_compiler_pic_F77 in
  12026. "" | " "*) ;;
  12027. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12028. esac
  12029. else
  12030. lt_prog_compiler_pic_F77=
  12031. lt_prog_compiler_can_build_shared_F77=no
  12032. fi
  12033. fi
  12034. case $host_os in
  12035. # For platforms which do not support PIC, -DPIC is meaningless:
  12036. *djgpp*)
  12037. lt_prog_compiler_pic_F77=
  12038. ;;
  12039. *)
  12040. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12041. ;;
  12042. esac
  12043. #
  12044. # Check to make sure the static flag actually works.
  12045. #
  12046. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12047. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12048. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  12049. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12050. echo $ECHO_N "(cached) $ECHO_C" >&6
  12051. else
  12052. lt_prog_compiler_static_works_F77=no
  12053. save_LDFLAGS="$LDFLAGS"
  12054. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12055. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12056. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12057. # The linker can only warn and ignore the option if not recognized
  12058. # So say no if there are warnings
  12059. if test -s conftest.err; then
  12060. # Append any errors to the config.log.
  12061. cat conftest.err 1>&5
  12062. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12063. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12064. if diff conftest.exp conftest.er2 >/dev/null; then
  12065. lt_prog_compiler_static_works_F77=yes
  12066. fi
  12067. else
  12068. lt_prog_compiler_static_works_F77=yes
  12069. fi
  12070. fi
  12071. $rm conftest*
  12072. LDFLAGS="$save_LDFLAGS"
  12073. fi
  12074. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12075. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
  12076. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12077. :
  12078. else
  12079. lt_prog_compiler_static_F77=
  12080. fi
  12081. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12082. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  12083. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12084. echo $ECHO_N "(cached) $ECHO_C" >&6
  12085. else
  12086. lt_cv_prog_compiler_c_o_F77=no
  12087. $rm -r conftest 2>/dev/null
  12088. mkdir conftest
  12089. cd conftest
  12090. mkdir out
  12091. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12092. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12093. # Insert the option either (1) after the last *FLAGS variable, or
  12094. # (2) before a word containing "conftest.", or (3) at the end.
  12095. # Note that $ac_compile itself does not contain backslashes and begins
  12096. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12097. lt_compile=`echo "$ac_compile" | $SED \
  12098. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12099. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12100. -e 's:$: $lt_compiler_flag:'`
  12101. (eval echo "\"\$as_me:13446: $lt_compile\"" >&5)
  12102. (eval "$lt_compile" 2>out/conftest.err)
  12103. ac_status=$?
  12104. cat out/conftest.err >&5
  12105. echo "$as_me:13450: \$? = $ac_status" >&5
  12106. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12107. then
  12108. # The compiler can only warn and ignore the option if not recognized
  12109. # So say no if there are warnings
  12110. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12111. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12112. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12113. lt_cv_prog_compiler_c_o_F77=yes
  12114. fi
  12115. fi
  12116. chmod u+w . 2>&5
  12117. $rm conftest*
  12118. # SGI C++ compiler will create directory out/ii_files/ for
  12119. # template instantiation
  12120. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12121. $rm out/* && rmdir out
  12122. cd ..
  12123. rmdir conftest
  12124. $rm conftest*
  12125. fi
  12126. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12127. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  12128. hard_links="nottested"
  12129. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12130. # do not overwrite the value of need_locks provided by the user
  12131. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12132. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  12133. hard_links=yes
  12134. $rm conftest*
  12135. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12136. touch conftest.a
  12137. ln conftest.a conftest.b 2>&5 || hard_links=no
  12138. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12139. echo "$as_me:$LINENO: result: $hard_links" >&5
  12140. echo "${ECHO_T}$hard_links" >&6
  12141. if test "$hard_links" = no; then
  12142. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12143. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12144. need_locks=warn
  12145. fi
  12146. else
  12147. need_locks=no
  12148. fi
  12149. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12150. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  12151. runpath_var=
  12152. allow_undefined_flag_F77=
  12153. enable_shared_with_static_runtimes_F77=no
  12154. archive_cmds_F77=
  12155. archive_expsym_cmds_F77=
  12156. old_archive_From_new_cmds_F77=
  12157. old_archive_from_expsyms_cmds_F77=
  12158. export_dynamic_flag_spec_F77=
  12159. whole_archive_flag_spec_F77=
  12160. thread_safe_flag_spec_F77=
  12161. hardcode_libdir_flag_spec_F77=
  12162. hardcode_libdir_flag_spec_ld_F77=
  12163. hardcode_libdir_separator_F77=
  12164. hardcode_direct_F77=no
  12165. hardcode_minus_L_F77=no
  12166. hardcode_shlibpath_var_F77=unsupported
  12167. link_all_deplibs_F77=unknown
  12168. hardcode_automatic_F77=no
  12169. module_cmds_F77=
  12170. module_expsym_cmds_F77=
  12171. always_export_symbols_F77=no
  12172. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12173. # include_expsyms should be a list of space-separated symbols to be *always*
  12174. # included in the symbol list
  12175. include_expsyms_F77=
  12176. # exclude_expsyms can be an extended regexp of symbols to exclude
  12177. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12178. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12179. # as well as any symbol that contains `d'.
  12180. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  12181. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12182. # platforms (ab)use it in PIC code, but their linkers get confused if
  12183. # the symbol is explicitly referenced. Since portable code cannot
  12184. # rely on this symbol name, it's probably fine to never include it in
  12185. # preloaded symbol tables.
  12186. extract_expsyms_cmds=
  12187. # Just being paranoid about ensuring that cc_basename is set.
  12188. for cc_temp in $compiler""; do
  12189. case $cc_temp in
  12190. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12191. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12192. \-*) ;;
  12193. *) break;;
  12194. esac
  12195. done
  12196. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12197. case $host_os in
  12198. cygwin* | mingw* | pw32*)
  12199. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12200. # When not using gcc, we currently assume that we are using
  12201. # Microsoft Visual C++.
  12202. if test "$GCC" != yes; then
  12203. with_gnu_ld=no
  12204. fi
  12205. ;;
  12206. interix*)
  12207. # we just hope/assume this is gcc and not c89 (= MSVC++)
  12208. with_gnu_ld=yes
  12209. ;;
  12210. openbsd*)
  12211. with_gnu_ld=no
  12212. ;;
  12213. esac
  12214. ld_shlibs_F77=yes
  12215. if test "$with_gnu_ld" = yes; then
  12216. # If archive_cmds runs LD, not CC, wlarc should be empty
  12217. wlarc='${wl}'
  12218. # Set some defaults for GNU ld with shared library support. These
  12219. # are reset later if shared libraries are not supported. Putting them
  12220. # here allows them to be overridden if necessary.
  12221. runpath_var=LD_RUN_PATH
  12222. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  12223. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  12224. # ancient GNU ld didn't support --whole-archive et. al.
  12225. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12226. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12227. else
  12228. whole_archive_flag_spec_F77=
  12229. fi
  12230. supports_anon_versioning=no
  12231. case `$LD -v 2>/dev/null` in
  12232. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12233. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12234. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12235. *\ 2.11.*) ;; # other 2.11 versions
  12236. *) supports_anon_versioning=yes ;;
  12237. esac
  12238. # See if GNU ld supports shared libraries.
  12239. case $host_os in
  12240. aix3* | aix4* | aix5*)
  12241. # On AIX/PPC, the GNU linker is very broken
  12242. if test "$host_cpu" != ia64; then
  12243. ld_shlibs_F77=no
  12244. cat <<EOF 1>&2
  12245. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12246. *** to be unable to reliably create shared libraries on AIX.
  12247. *** Therefore, libtool is disabling shared libraries support. If you
  12248. *** really care for shared libraries, you may want to modify your PATH
  12249. *** so that a non-GNU linker is found, and then restart.
  12250. EOF
  12251. fi
  12252. ;;
  12253. amigaos*)
  12254. 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)'
  12255. hardcode_libdir_flag_spec_F77='-L$libdir'
  12256. hardcode_minus_L_F77=yes
  12257. # Samuel A. Falvo II <[email protected]> reports
  12258. # that the semantics of dynamic libraries on AmigaOS, at least up
  12259. # to version 4, is to share data among multiple programs linked
  12260. # with the same dynamic library. Since this doesn't match the
  12261. # behavior of shared libraries on other platforms, we can't use
  12262. # them.
  12263. ld_shlibs_F77=no
  12264. ;;
  12265. beos*)
  12266. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12267. allow_undefined_flag_F77=unsupported
  12268. # Joseph Beckenbach <[email protected]> says some releases of gcc
  12269. # support --undefined. This deserves some investigation. FIXME
  12270. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12271. else
  12272. ld_shlibs_F77=no
  12273. fi
  12274. ;;
  12275. cygwin* | mingw* | pw32*)
  12276. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  12277. # as there is no search path for DLLs.
  12278. hardcode_libdir_flag_spec_F77='-L$libdir'
  12279. allow_undefined_flag_F77=unsupported
  12280. always_export_symbols_F77=no
  12281. enable_shared_with_static_runtimes_F77=yes
  12282. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12283. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12284. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12285. # If the export-symbols file already is a .def file (1st line
  12286. # is EXPORTS), use it as is; otherwise, prepend...
  12287. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12288. cp $export_symbols $output_objdir/$soname.def;
  12289. else
  12290. echo EXPORTS > $output_objdir/$soname.def;
  12291. cat $export_symbols >> $output_objdir/$soname.def;
  12292. fi~
  12293. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12294. else
  12295. ld_shlibs_F77=no
  12296. fi
  12297. ;;
  12298. interix3*)
  12299. hardcode_direct_F77=no
  12300. hardcode_shlibpath_var_F77=no
  12301. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12302. export_dynamic_flag_spec_F77='${wl}-E'
  12303. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12304. # Instead, shared libraries are loaded at an image base (0x10000000 by
  12305. # default) and relocated if they conflict, which is a slow very memory
  12306. # consuming and fragmenting process. To avoid this, we pick a random,
  12307. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12308. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  12309. 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'
  12310. 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'
  12311. ;;
  12312. linux*)
  12313. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12314. tmp_addflag=
  12315. case $cc_basename,$host_cpu in
  12316. pgcc*) # Portland Group C compiler
  12317. 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'
  12318. tmp_addflag=' $pic_flag'
  12319. ;;
  12320. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12321. 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'
  12322. tmp_addflag=' $pic_flag -Mnomain' ;;
  12323. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12324. tmp_addflag=' -i_dynamic' ;;
  12325. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12326. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12327. ifc* | ifort*) # Intel Fortran compiler
  12328. tmp_addflag=' -nofor_main' ;;
  12329. esac
  12330. archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12331. if test $supports_anon_versioning = yes; then
  12332. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  12333. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12334. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12335. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12336. fi
  12337. else
  12338. ld_shlibs_F77=no
  12339. fi
  12340. ;;
  12341. netbsd*)
  12342. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12343. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12344. wlarc=
  12345. else
  12346. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12347. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12348. fi
  12349. ;;
  12350. solaris*)
  12351. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12352. ld_shlibs_F77=no
  12353. cat <<EOF 1>&2
  12354. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12355. *** create shared libraries on Solaris systems. Therefore, libtool
  12356. *** is disabling shared libraries support. We urge you to upgrade GNU
  12357. *** binutils to release 2.9.1 or newer. Another option is to modify
  12358. *** your PATH or compiler configuration so that the native linker is
  12359. *** used, and then restart.
  12360. EOF
  12361. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12362. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12363. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12364. else
  12365. ld_shlibs_F77=no
  12366. fi
  12367. ;;
  12368. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12369. case `$LD -v 2>&1` in
  12370. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12371. ld_shlibs_F77=no
  12372. cat <<_LT_EOF 1>&2
  12373. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  12374. *** reliably create shared libraries on SCO systems. Therefore, libtool
  12375. *** is disabling shared libraries support. We urge you to upgrade GNU
  12376. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  12377. *** your PATH or compiler configuration so that the native linker is
  12378. *** used, and then restart.
  12379. _LT_EOF
  12380. ;;
  12381. *)
  12382. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12383. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  12384. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  12385. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  12386. else
  12387. ld_shlibs_F77=no
  12388. fi
  12389. ;;
  12390. esac
  12391. ;;
  12392. sunos4*)
  12393. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12394. wlarc=
  12395. hardcode_direct_F77=yes
  12396. hardcode_shlibpath_var_F77=no
  12397. ;;
  12398. *)
  12399. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12400. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12401. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12402. else
  12403. ld_shlibs_F77=no
  12404. fi
  12405. ;;
  12406. esac
  12407. if test "$ld_shlibs_F77" = no; then
  12408. runpath_var=
  12409. hardcode_libdir_flag_spec_F77=
  12410. export_dynamic_flag_spec_F77=
  12411. whole_archive_flag_spec_F77=
  12412. fi
  12413. else
  12414. # PORTME fill in a description of your system's linker (not GNU ld)
  12415. case $host_os in
  12416. aix3*)
  12417. allow_undefined_flag_F77=unsupported
  12418. always_export_symbols_F77=yes
  12419. 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'
  12420. # Note: this linker hardcodes the directories in LIBPATH if there
  12421. # are no directories specified by -L.
  12422. hardcode_minus_L_F77=yes
  12423. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12424. # Neither direct hardcoding nor static linking is supported with a
  12425. # broken collect2.
  12426. hardcode_direct_F77=unsupported
  12427. fi
  12428. ;;
  12429. aix4* | aix5*)
  12430. if test "$host_cpu" = ia64; then
  12431. # On IA64, the linker does run time linking by default, so we don't
  12432. # have to do anything special.
  12433. aix_use_runtimelinking=no
  12434. exp_sym_flag='-Bexport'
  12435. no_entry_flag=""
  12436. else
  12437. # If we're using GNU nm, then we don't want the "-C" option.
  12438. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12439. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12440. 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'
  12441. else
  12442. 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'
  12443. fi
  12444. aix_use_runtimelinking=no
  12445. # Test if we are trying to use run time linking or normal
  12446. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12447. # need to do runtime linking.
  12448. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12449. for ld_flag in $LDFLAGS; do
  12450. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12451. aix_use_runtimelinking=yes
  12452. break
  12453. fi
  12454. done
  12455. ;;
  12456. esac
  12457. exp_sym_flag='-bexport'
  12458. no_entry_flag='-bnoentry'
  12459. fi
  12460. # When large executables or shared objects are built, AIX ld can
  12461. # have problems creating the table of contents. If linking a library
  12462. # or program results in "error TOC overflow" add -mminimal-toc to
  12463. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12464. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12465. archive_cmds_F77=''
  12466. hardcode_direct_F77=yes
  12467. hardcode_libdir_separator_F77=':'
  12468. link_all_deplibs_F77=yes
  12469. if test "$GCC" = yes; then
  12470. case $host_os in aix4.[012]|aix4.[012].*)
  12471. # We only want to do this on AIX 4.2 and lower, the check
  12472. # below for broken collect2 doesn't work under 4.3+
  12473. collect2name=`${CC} -print-prog-name=collect2`
  12474. if test -f "$collect2name" && \
  12475. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12476. then
  12477. # We have reworked collect2
  12478. hardcode_direct_F77=yes
  12479. else
  12480. # We have old collect2
  12481. hardcode_direct_F77=unsupported
  12482. # It fails to find uninstalled libraries when the uninstalled
  12483. # path is not listed in the libpath. Setting hardcode_minus_L
  12484. # to unsupported forces relinking
  12485. hardcode_minus_L_F77=yes
  12486. hardcode_libdir_flag_spec_F77='-L$libdir'
  12487. hardcode_libdir_separator_F77=
  12488. fi
  12489. ;;
  12490. esac
  12491. shared_flag='-shared'
  12492. if test "$aix_use_runtimelinking" = yes; then
  12493. shared_flag="$shared_flag "'${wl}-G'
  12494. fi
  12495. else
  12496. # not using gcc
  12497. if test "$host_cpu" = ia64; then
  12498. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12499. # chokes on -Wl,-G. The following line is correct:
  12500. shared_flag='-G'
  12501. else
  12502. if test "$aix_use_runtimelinking" = yes; then
  12503. shared_flag='${wl}-G'
  12504. else
  12505. shared_flag='${wl}-bM:SRE'
  12506. fi
  12507. fi
  12508. fi
  12509. # It seems that -bexpall does not export symbols beginning with
  12510. # underscore (_), so it is better to generate a list of symbols to export.
  12511. always_export_symbols_F77=yes
  12512. if test "$aix_use_runtimelinking" = yes; then
  12513. # Warning - without using the other runtime loading flags (-brtl),
  12514. # -berok will link without error, but may produce a broken library.
  12515. allow_undefined_flag_F77='-berok'
  12516. # Determine the default libpath from the value encoded in an empty executable.
  12517. cat >conftest.$ac_ext <<_ACEOF
  12518. program main
  12519. end
  12520. _ACEOF
  12521. rm -f conftest.$ac_objext conftest$ac_exeext
  12522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12523. (eval $ac_link) 2>conftest.er1
  12524. ac_status=$?
  12525. grep -v '^ *+' conftest.er1 >conftest.err
  12526. rm -f conftest.er1
  12527. cat conftest.err >&5
  12528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12529. (exit $ac_status); } &&
  12530. { ac_try='test -z "$ac_f77_werror_flag"
  12531. || test ! -s conftest.err'
  12532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12533. (eval $ac_try) 2>&5
  12534. ac_status=$?
  12535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12536. (exit $ac_status); }; } &&
  12537. { ac_try='test -s conftest$ac_exeext'
  12538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12539. (eval $ac_try) 2>&5
  12540. ac_status=$?
  12541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12542. (exit $ac_status); }; }; then
  12543. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12544. }'`
  12545. # Check for a 64-bit object if we didn't find anything.
  12546. 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; }
  12547. }'`; fi
  12548. else
  12549. echo "$as_me: failed program was:" >&5
  12550. sed 's/^/| /' conftest.$ac_ext >&5
  12551. fi
  12552. rm -f conftest.err conftest.$ac_objext \
  12553. conftest$ac_exeext conftest.$ac_ext
  12554. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12555. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12556. 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"
  12557. else
  12558. if test "$host_cpu" = ia64; then
  12559. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  12560. allow_undefined_flag_F77="-z nodefs"
  12561. 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"
  12562. else
  12563. # Determine the default libpath from the value encoded in an empty executable.
  12564. cat >conftest.$ac_ext <<_ACEOF
  12565. program main
  12566. end
  12567. _ACEOF
  12568. rm -f conftest.$ac_objext conftest$ac_exeext
  12569. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12570. (eval $ac_link) 2>conftest.er1
  12571. ac_status=$?
  12572. grep -v '^ *+' conftest.er1 >conftest.err
  12573. rm -f conftest.er1
  12574. cat conftest.err >&5
  12575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12576. (exit $ac_status); } &&
  12577. { ac_try='test -z "$ac_f77_werror_flag"
  12578. || test ! -s conftest.err'
  12579. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12580. (eval $ac_try) 2>&5
  12581. ac_status=$?
  12582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12583. (exit $ac_status); }; } &&
  12584. { ac_try='test -s conftest$ac_exeext'
  12585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12586. (eval $ac_try) 2>&5
  12587. ac_status=$?
  12588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12589. (exit $ac_status); }; }; then
  12590. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12591. }'`
  12592. # Check for a 64-bit object if we didn't find anything.
  12593. 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; }
  12594. }'`; fi
  12595. else
  12596. echo "$as_me: failed program was:" >&5
  12597. sed 's/^/| /' conftest.$ac_ext >&5
  12598. fi
  12599. rm -f conftest.err conftest.$ac_objext \
  12600. conftest$ac_exeext conftest.$ac_ext
  12601. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12602. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  12603. # Warning - without using the other run time loading flags,
  12604. # -berok will link without error, but may produce a broken library.
  12605. no_undefined_flag_F77=' ${wl}-bernotok'
  12606. allow_undefined_flag_F77=' ${wl}-berok'
  12607. # Exported symbols can be pulled into shared objects from archives
  12608. whole_archive_flag_spec_F77='$convenience'
  12609. archive_cmds_need_lc_F77=yes
  12610. # This is similar to how AIX traditionally builds its shared libraries.
  12611. 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'
  12612. fi
  12613. fi
  12614. ;;
  12615. amigaos*)
  12616. 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)'
  12617. hardcode_libdir_flag_spec_F77='-L$libdir'
  12618. hardcode_minus_L_F77=yes
  12619. # see comment about different semantics on the GNU ld section
  12620. ld_shlibs_F77=no
  12621. ;;
  12622. bsdi[45]*)
  12623. export_dynamic_flag_spec_F77=-rdynamic
  12624. ;;
  12625. cygwin* | mingw* | pw32*)
  12626. # When not using gcc, we currently assume that we are using
  12627. # Microsoft Visual C++.
  12628. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12629. # no search path for DLLs.
  12630. hardcode_libdir_flag_spec_F77=' '
  12631. allow_undefined_flag_F77=unsupported
  12632. # Tell ltmain to make .lib files, not .a files.
  12633. libext=lib
  12634. # Tell ltmain to make .dll files, not .so files.
  12635. shrext_cmds=".dll"
  12636. # FIXME: Setting linknames here is a bad hack.
  12637. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12638. # The linker will automatically build a .lib file if we build a DLL.
  12639. old_archive_From_new_cmds_F77='true'
  12640. # FIXME: Should let the user specify the lib program.
  12641. old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12642. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  12643. enable_shared_with_static_runtimes_F77=yes
  12644. ;;
  12645. darwin* | rhapsody*)
  12646. case $host_os in
  12647. rhapsody* | darwin1.[012])
  12648. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  12649. ;;
  12650. *) # Darwin 1.3 on
  12651. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12652. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12653. else
  12654. case ${MACOSX_DEPLOYMENT_TARGET} in
  12655. 10.[012])
  12656. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12657. ;;
  12658. 10.*)
  12659. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  12660. ;;
  12661. esac
  12662. fi
  12663. ;;
  12664. esac
  12665. archive_cmds_need_lc_F77=no
  12666. hardcode_direct_F77=no
  12667. hardcode_automatic_F77=yes
  12668. hardcode_shlibpath_var_F77=unsupported
  12669. whole_archive_flag_spec_F77=''
  12670. link_all_deplibs_F77=yes
  12671. if test "$GCC" = yes ; then
  12672. output_verbose_link_cmd='echo'
  12673. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12674. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12675. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12676. 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}'
  12677. 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}'
  12678. else
  12679. case $cc_basename in
  12680. xlc*)
  12681. output_verbose_link_cmd='echo'
  12682. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12683. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12684. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12685. 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}'
  12686. 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}'
  12687. ;;
  12688. *)
  12689. ld_shlibs_F77=no
  12690. ;;
  12691. esac
  12692. fi
  12693. ;;
  12694. dgux*)
  12695. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12696. hardcode_libdir_flag_spec_F77='-L$libdir'
  12697. hardcode_shlibpath_var_F77=no
  12698. ;;
  12699. freebsd1*)
  12700. ld_shlibs_F77=no
  12701. ;;
  12702. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12703. # support. Future versions do this automatically, but an explicit c++rt0.o
  12704. # does not break anything, and helps significantly (at the cost of a little
  12705. # extra space).
  12706. freebsd2.2*)
  12707. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12708. hardcode_libdir_flag_spec_F77='-R$libdir'
  12709. hardcode_direct_F77=yes
  12710. hardcode_shlibpath_var_F77=no
  12711. ;;
  12712. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12713. freebsd2*)
  12714. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12715. hardcode_direct_F77=yes
  12716. hardcode_minus_L_F77=yes
  12717. hardcode_shlibpath_var_F77=no
  12718. ;;
  12719. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12720. freebsd* | kfreebsd*-gnu | dragonfly*)
  12721. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12722. hardcode_libdir_flag_spec_F77='-R$libdir'
  12723. hardcode_direct_F77=yes
  12724. hardcode_shlibpath_var_F77=no
  12725. ;;
  12726. hpux9*)
  12727. if test "$GCC" = yes; then
  12728. 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'
  12729. else
  12730. 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'
  12731. fi
  12732. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12733. hardcode_libdir_separator_F77=:
  12734. hardcode_direct_F77=yes
  12735. # hardcode_minus_L: Not really in the search PATH,
  12736. # but as the default location of the library.
  12737. hardcode_minus_L_F77=yes
  12738. export_dynamic_flag_spec_F77='${wl}-E'
  12739. ;;
  12740. hpux10*)
  12741. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12742. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12743. else
  12744. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12745. fi
  12746. if test "$with_gnu_ld" = no; then
  12747. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12748. hardcode_libdir_separator_F77=:
  12749. hardcode_direct_F77=yes
  12750. export_dynamic_flag_spec_F77='${wl}-E'
  12751. # hardcode_minus_L: Not really in the search PATH,
  12752. # but as the default location of the library.
  12753. hardcode_minus_L_F77=yes
  12754. fi
  12755. ;;
  12756. hpux11*)
  12757. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12758. case $host_cpu in
  12759. hppa*64*)
  12760. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12761. ;;
  12762. ia64*)
  12763. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12764. ;;
  12765. *)
  12766. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12767. ;;
  12768. esac
  12769. else
  12770. case $host_cpu in
  12771. hppa*64*)
  12772. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12773. ;;
  12774. ia64*)
  12775. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12776. ;;
  12777. *)
  12778. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12779. ;;
  12780. esac
  12781. fi
  12782. if test "$with_gnu_ld" = no; then
  12783. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  12784. hardcode_libdir_separator_F77=:
  12785. case $host_cpu in
  12786. hppa*64*|ia64*)
  12787. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  12788. hardcode_direct_F77=no
  12789. hardcode_shlibpath_var_F77=no
  12790. ;;
  12791. *)
  12792. hardcode_direct_F77=yes
  12793. export_dynamic_flag_spec_F77='${wl}-E'
  12794. # hardcode_minus_L: Not really in the search PATH,
  12795. # but as the default location of the library.
  12796. hardcode_minus_L_F77=yes
  12797. ;;
  12798. esac
  12799. fi
  12800. ;;
  12801. irix5* | irix6* | nonstopux*)
  12802. if test "$GCC" = yes; then
  12803. 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'
  12804. else
  12805. 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'
  12806. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  12807. fi
  12808. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12809. hardcode_libdir_separator_F77=:
  12810. link_all_deplibs_F77=yes
  12811. ;;
  12812. netbsd*)
  12813. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12814. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12815. else
  12816. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12817. fi
  12818. hardcode_libdir_flag_spec_F77='-R$libdir'
  12819. hardcode_direct_F77=yes
  12820. hardcode_shlibpath_var_F77=no
  12821. ;;
  12822. newsos6)
  12823. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12824. hardcode_direct_F77=yes
  12825. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12826. hardcode_libdir_separator_F77=:
  12827. hardcode_shlibpath_var_F77=no
  12828. ;;
  12829. openbsd*)
  12830. hardcode_direct_F77=yes
  12831. hardcode_shlibpath_var_F77=no
  12832. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12833. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12834. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12835. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12836. export_dynamic_flag_spec_F77='${wl}-E'
  12837. else
  12838. case $host_os in
  12839. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12840. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12841. hardcode_libdir_flag_spec_F77='-R$libdir'
  12842. ;;
  12843. *)
  12844. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12845. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  12846. ;;
  12847. esac
  12848. fi
  12849. ;;
  12850. os2*)
  12851. hardcode_libdir_flag_spec_F77='-L$libdir'
  12852. hardcode_minus_L_F77=yes
  12853. allow_undefined_flag_F77=unsupported
  12854. 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'
  12855. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12856. ;;
  12857. osf3*)
  12858. if test "$GCC" = yes; then
  12859. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12860. 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'
  12861. else
  12862. allow_undefined_flag_F77=' -expect_unresolved \*'
  12863. 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'
  12864. fi
  12865. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12866. hardcode_libdir_separator_F77=:
  12867. ;;
  12868. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12869. if test "$GCC" = yes; then
  12870. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  12871. 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'
  12872. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  12873. else
  12874. allow_undefined_flag_F77=' -expect_unresolved \*'
  12875. 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'
  12876. 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~
  12877. $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'
  12878. # Both c and cxx compiler support -rpath directly
  12879. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  12880. fi
  12881. hardcode_libdir_separator_F77=:
  12882. ;;
  12883. solaris*)
  12884. no_undefined_flag_F77=' -z text'
  12885. if test "$GCC" = yes; then
  12886. wlarc='${wl}'
  12887. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12888. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12889. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12890. else
  12891. wlarc=''
  12892. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12893. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12894. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12895. fi
  12896. hardcode_libdir_flag_spec_F77='-R$libdir'
  12897. hardcode_shlibpath_var_F77=no
  12898. case $host_os in
  12899. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12900. *)
  12901. # The compiler driver will combine linker options so we
  12902. # cannot just pass the convience library names through
  12903. # without $wl, iff we do not link with $LD.
  12904. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12905. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12906. case $wlarc in
  12907. '')
  12908. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  12909. *)
  12910. 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' ;;
  12911. esac ;;
  12912. esac
  12913. link_all_deplibs_F77=yes
  12914. ;;
  12915. sunos4*)
  12916. if test "x$host_vendor" = xsequent; then
  12917. # Use $CC to link under sequent, because it throws in some extra .o
  12918. # files that make .init and .fini sections work.
  12919. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12920. else
  12921. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12922. fi
  12923. hardcode_libdir_flag_spec_F77='-L$libdir'
  12924. hardcode_direct_F77=yes
  12925. hardcode_minus_L_F77=yes
  12926. hardcode_shlibpath_var_F77=no
  12927. ;;
  12928. sysv4)
  12929. case $host_vendor in
  12930. sni)
  12931. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12932. hardcode_direct_F77=yes # is this really true???
  12933. ;;
  12934. siemens)
  12935. ## LD is ld it makes a PLAMLIB
  12936. ## CC just makes a GrossModule.
  12937. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12938. reload_cmds_F77='$CC -r -o $output$reload_objs'
  12939. hardcode_direct_F77=no
  12940. ;;
  12941. motorola)
  12942. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12943. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  12944. ;;
  12945. esac
  12946. runpath_var='LD_RUN_PATH'
  12947. hardcode_shlibpath_var_F77=no
  12948. ;;
  12949. sysv4.3*)
  12950. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12951. hardcode_shlibpath_var_F77=no
  12952. export_dynamic_flag_spec_F77='-Bexport'
  12953. ;;
  12954. sysv4*MP*)
  12955. if test -d /usr/nec; then
  12956. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12957. hardcode_shlibpath_var_F77=no
  12958. runpath_var=LD_RUN_PATH
  12959. hardcode_runpath_var=yes
  12960. ld_shlibs_F77=yes
  12961. fi
  12962. ;;
  12963. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  12964. no_undefined_flag_F77='${wl}-z,text'
  12965. archive_cmds_need_lc_F77=no
  12966. hardcode_shlibpath_var_F77=no
  12967. runpath_var='LD_RUN_PATH'
  12968. if test "$GCC" = yes; then
  12969. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12970. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12971. else
  12972. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12973. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12974. fi
  12975. ;;
  12976. sysv5* | sco3.2v5* | sco5v6*)
  12977. # Note: We can NOT use -z defs as we might desire, because we do not
  12978. # link with -lc, and that would cause any symbols used from libc to
  12979. # always be unresolved, which means just about no library would
  12980. # ever link correctly. If we're not using GNU ld we use -z text
  12981. # though, which does catch some bad symbols but isn't as heavy-handed
  12982. # as -z defs.
  12983. no_undefined_flag_F77='${wl}-z,text'
  12984. allow_undefined_flag_F77='${wl}-z,nodefs'
  12985. archive_cmds_need_lc_F77=no
  12986. hardcode_shlibpath_var_F77=no
  12987. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12988. hardcode_libdir_separator_F77=':'
  12989. link_all_deplibs_F77=yes
  12990. export_dynamic_flag_spec_F77='${wl}-Bexport'
  12991. runpath_var='LD_RUN_PATH'
  12992. if test "$GCC" = yes; then
  12993. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12994. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12995. else
  12996. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12997. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12998. fi
  12999. ;;
  13000. uts4*)
  13001. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13002. hardcode_libdir_flag_spec_F77='-L$libdir'
  13003. hardcode_shlibpath_var_F77=no
  13004. ;;
  13005. *)
  13006. ld_shlibs_F77=no
  13007. ;;
  13008. esac
  13009. fi
  13010. echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13011. echo "${ECHO_T}$ld_shlibs_F77" >&6
  13012. test "$ld_shlibs_F77" = no && can_build_shared=no
  13013. #
  13014. # Do we need to explicitly link libc?
  13015. #
  13016. case "x$archive_cmds_need_lc_F77" in
  13017. x|xyes)
  13018. # Assume -lc should be added
  13019. archive_cmds_need_lc_F77=yes
  13020. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13021. case $archive_cmds_F77 in
  13022. *'~'*)
  13023. # FIXME: we may have to deal with multi-command sequences.
  13024. ;;
  13025. '$CC '*)
  13026. # Test whether the compiler implicitly links with -lc since on some
  13027. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13028. # to ld, don't add -lc before -lgcc.
  13029. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13030. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  13031. $rm conftest*
  13032. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13033. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13034. (eval $ac_compile) 2>&5
  13035. ac_status=$?
  13036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13037. (exit $ac_status); } 2>conftest.err; then
  13038. soname=conftest
  13039. lib=conftest
  13040. libobjs=conftest.$ac_objext
  13041. deplibs=
  13042. wl=$lt_prog_compiler_wl_F77
  13043. pic_flag=$lt_prog_compiler_pic_F77
  13044. compiler_flags=-v
  13045. linker_flags=-v
  13046. verstring=
  13047. output_objdir=.
  13048. libname=conftest
  13049. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13050. allow_undefined_flag_F77=
  13051. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13052. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13053. ac_status=$?
  13054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13055. (exit $ac_status); }
  13056. then
  13057. archive_cmds_need_lc_F77=no
  13058. else
  13059. archive_cmds_need_lc_F77=yes
  13060. fi
  13061. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13062. else
  13063. cat conftest.err 1>&5
  13064. fi
  13065. $rm conftest*
  13066. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13067. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  13068. ;;
  13069. esac
  13070. fi
  13071. ;;
  13072. esac
  13073. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13074. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  13075. library_names_spec=
  13076. libname_spec='lib$name'
  13077. soname_spec=
  13078. shrext_cmds=".so"
  13079. postinstall_cmds=
  13080. postuninstall_cmds=
  13081. finish_cmds=
  13082. finish_eval=
  13083. shlibpath_var=
  13084. shlibpath_overrides_runpath=unknown
  13085. version_type=none
  13086. dynamic_linker="$host_os ld.so"
  13087. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13088. if test "$GCC" = yes; then
  13089. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13090. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13091. # if the path contains ";" then we assume it to be the separator
  13092. # otherwise default to the standard path separator (i.e. ":") - it is
  13093. # assumed that no part of a normal pathname contains ";" but that should
  13094. # okay in the real world where ";" in dirpaths is itself problematic.
  13095. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13096. else
  13097. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13098. fi
  13099. else
  13100. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13101. fi
  13102. need_lib_prefix=unknown
  13103. hardcode_into_libs=no
  13104. # when you set need_version to no, make sure it does not cause -set_version
  13105. # flags to be left without arguments
  13106. need_version=unknown
  13107. case $host_os in
  13108. aix3*)
  13109. version_type=linux
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13111. shlibpath_var=LIBPATH
  13112. # AIX 3 has no versioning support, so we append a major version to the name.
  13113. soname_spec='${libname}${release}${shared_ext}$major'
  13114. ;;
  13115. aix4* | aix5*)
  13116. version_type=linux
  13117. need_lib_prefix=no
  13118. need_version=no
  13119. hardcode_into_libs=yes
  13120. if test "$host_cpu" = ia64; then
  13121. # AIX 5 supports IA64
  13122. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13123. shlibpath_var=LD_LIBRARY_PATH
  13124. else
  13125. # With GCC up to 2.95.x, collect2 would create an import file
  13126. # for dependence libraries. The import file would start with
  13127. # the line `#! .'. This would cause the generated library to
  13128. # depend on `.', always an invalid library. This was fixed in
  13129. # development snapshots of GCC prior to 3.0.
  13130. case $host_os in
  13131. aix4 | aix4.[01] | aix4.[01].*)
  13132. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13133. echo ' yes '
  13134. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13135. :
  13136. else
  13137. can_build_shared=no
  13138. fi
  13139. ;;
  13140. esac
  13141. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13142. # soname into executable. Probably we can add versioning support to
  13143. # collect2, so additional links can be useful in future.
  13144. if test "$aix_use_runtimelinking" = yes; then
  13145. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13146. # instead of lib<name>.a to let people know that these are not
  13147. # typical AIX shared libraries.
  13148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13149. else
  13150. # We preserve .a as extension for shared libraries through AIX4.2
  13151. # and later when we are not doing run time linking.
  13152. library_names_spec='${libname}${release}.a $libname.a'
  13153. soname_spec='${libname}${release}${shared_ext}$major'
  13154. fi
  13155. shlibpath_var=LIBPATH
  13156. fi
  13157. ;;
  13158. amigaos*)
  13159. library_names_spec='$libname.ixlibrary $libname.a'
  13160. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13161. 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'
  13162. ;;
  13163. beos*)
  13164. library_names_spec='${libname}${shared_ext}'
  13165. dynamic_linker="$host_os ld.so"
  13166. shlibpath_var=LIBRARY_PATH
  13167. ;;
  13168. bsdi[45]*)
  13169. version_type=linux
  13170. need_version=no
  13171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13172. soname_spec='${libname}${release}${shared_ext}$major'
  13173. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13174. shlibpath_var=LD_LIBRARY_PATH
  13175. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13176. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13177. # the default ld.so.conf also contains /usr/contrib/lib and
  13178. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13179. # libtool to hard-code these into programs
  13180. ;;
  13181. cygwin* | mingw* | pw32*)
  13182. version_type=windows
  13183. shrext_cmds=".dll"
  13184. need_version=no
  13185. need_lib_prefix=no
  13186. case $GCC,$host_os in
  13187. yes,cygwin* | yes,mingw* | yes,pw32*)
  13188. library_names_spec='$libname.dll.a'
  13189. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13190. postinstall_cmds='base_file=`basename \${file}`~
  13191. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13192. dldir=$destdir/`dirname \$dlpath`~
  13193. test -d \$dldir || mkdir -p \$dldir~
  13194. $install_prog $dir/$dlname \$dldir/$dlname~
  13195. chmod a+x \$dldir/$dlname'
  13196. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13197. dlpath=$dir/\$dldll~
  13198. $rm \$dlpath'
  13199. shlibpath_overrides_runpath=yes
  13200. case $host_os in
  13201. cygwin*)
  13202. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13203. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13204. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13205. ;;
  13206. mingw*)
  13207. # MinGW DLLs use traditional 'lib' prefix
  13208. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13209. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13210. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13211. # It is most probably a Windows format PATH printed by
  13212. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13213. # path with ; separators, and with drive letters. We can handle the
  13214. # drive letters (cygwin fileutils understands them), so leave them,
  13215. # especially as we might pass files found there to a mingw objdump,
  13216. # which wouldn't understand a cygwinified path. Ahh.
  13217. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13218. else
  13219. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13220. fi
  13221. ;;
  13222. pw32*)
  13223. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13224. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13225. ;;
  13226. esac
  13227. ;;
  13228. *)
  13229. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13230. ;;
  13231. esac
  13232. dynamic_linker='Win32 ld.exe'
  13233. # FIXME: first we should search . and the directory the executable is in
  13234. shlibpath_var=PATH
  13235. ;;
  13236. darwin* | rhapsody*)
  13237. dynamic_linker="$host_os dyld"
  13238. version_type=darwin
  13239. need_lib_prefix=no
  13240. need_version=no
  13241. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13242. soname_spec='${libname}${release}${major}$shared_ext'
  13243. shlibpath_overrides_runpath=yes
  13244. shlibpath_var=DYLD_LIBRARY_PATH
  13245. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13246. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13247. if test "$GCC" = yes; then
  13248. 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"`
  13249. else
  13250. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13251. fi
  13252. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13253. ;;
  13254. dgux*)
  13255. version_type=linux
  13256. need_lib_prefix=no
  13257. need_version=no
  13258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13259. soname_spec='${libname}${release}${shared_ext}$major'
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. ;;
  13262. freebsd1*)
  13263. dynamic_linker=no
  13264. ;;
  13265. kfreebsd*-gnu)
  13266. version_type=linux
  13267. need_lib_prefix=no
  13268. need_version=no
  13269. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13270. soname_spec='${libname}${release}${shared_ext}$major'
  13271. shlibpath_var=LD_LIBRARY_PATH
  13272. shlibpath_overrides_runpath=no
  13273. hardcode_into_libs=yes
  13274. dynamic_linker='GNU ld.so'
  13275. ;;
  13276. freebsd* | dragonfly*)
  13277. # DragonFly does not have aout. When/if they implement a new
  13278. # versioning mechanism, adjust this.
  13279. if test -x /usr/bin/objformat; then
  13280. objformat=`/usr/bin/objformat`
  13281. else
  13282. case $host_os in
  13283. freebsd[123]*) objformat=aout ;;
  13284. *) objformat=elf ;;
  13285. esac
  13286. fi
  13287. version_type=freebsd-$objformat
  13288. case $version_type in
  13289. freebsd-elf*)
  13290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13291. need_version=no
  13292. need_lib_prefix=no
  13293. ;;
  13294. freebsd-*)
  13295. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13296. need_version=yes
  13297. ;;
  13298. esac
  13299. shlibpath_var=LD_LIBRARY_PATH
  13300. case $host_os in
  13301. freebsd2*)
  13302. shlibpath_overrides_runpath=yes
  13303. ;;
  13304. freebsd3.[01]* | freebsdelf3.[01]*)
  13305. shlibpath_overrides_runpath=yes
  13306. hardcode_into_libs=yes
  13307. ;;
  13308. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13309. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13310. shlibpath_overrides_runpath=no
  13311. hardcode_into_libs=yes
  13312. ;;
  13313. freebsd*) # from 4.6 on
  13314. shlibpath_overrides_runpath=yes
  13315. hardcode_into_libs=yes
  13316. ;;
  13317. esac
  13318. ;;
  13319. gnu*)
  13320. version_type=linux
  13321. need_lib_prefix=no
  13322. need_version=no
  13323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13324. soname_spec='${libname}${release}${shared_ext}$major'
  13325. shlibpath_var=LD_LIBRARY_PATH
  13326. hardcode_into_libs=yes
  13327. ;;
  13328. hpux9* | hpux10* | hpux11*)
  13329. # Give a soname corresponding to the major version so that dld.sl refuses to
  13330. # link against other versions.
  13331. version_type=sunos
  13332. need_lib_prefix=no
  13333. need_version=no
  13334. case $host_cpu in
  13335. ia64*)
  13336. shrext_cmds='.so'
  13337. hardcode_into_libs=yes
  13338. dynamic_linker="$host_os dld.so"
  13339. shlibpath_var=LD_LIBRARY_PATH
  13340. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13342. soname_spec='${libname}${release}${shared_ext}$major'
  13343. if test "X$HPUX_IA64_MODE" = X32; then
  13344. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13345. else
  13346. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13347. fi
  13348. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13349. ;;
  13350. hppa*64*)
  13351. shrext_cmds='.sl'
  13352. hardcode_into_libs=yes
  13353. dynamic_linker="$host_os dld.sl"
  13354. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13355. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13357. soname_spec='${libname}${release}${shared_ext}$major'
  13358. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13359. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13360. ;;
  13361. *)
  13362. shrext_cmds='.sl'
  13363. dynamic_linker="$host_os dld.sl"
  13364. shlibpath_var=SHLIB_PATH
  13365. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13367. soname_spec='${libname}${release}${shared_ext}$major'
  13368. ;;
  13369. esac
  13370. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13371. postinstall_cmds='chmod 555 $lib'
  13372. ;;
  13373. interix3*)
  13374. version_type=linux
  13375. need_lib_prefix=no
  13376. need_version=no
  13377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13378. soname_spec='${libname}${release}${shared_ext}$major'
  13379. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13380. shlibpath_var=LD_LIBRARY_PATH
  13381. shlibpath_overrides_runpath=no
  13382. hardcode_into_libs=yes
  13383. ;;
  13384. irix5* | irix6* | nonstopux*)
  13385. case $host_os in
  13386. nonstopux*) version_type=nonstopux ;;
  13387. *)
  13388. if test "$lt_cv_prog_gnu_ld" = yes; then
  13389. version_type=linux
  13390. else
  13391. version_type=irix
  13392. fi ;;
  13393. esac
  13394. need_lib_prefix=no
  13395. need_version=no
  13396. soname_spec='${libname}${release}${shared_ext}$major'
  13397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13398. case $host_os in
  13399. irix5* | nonstopux*)
  13400. libsuff= shlibsuff=
  13401. ;;
  13402. *)
  13403. case $LD in # libtool.m4 will add one of these switches to LD
  13404. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13405. libsuff= shlibsuff= libmagic=32-bit;;
  13406. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13407. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13408. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13409. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13410. *) libsuff= shlibsuff= libmagic=never-match;;
  13411. esac
  13412. ;;
  13413. esac
  13414. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13415. shlibpath_overrides_runpath=no
  13416. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13417. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13418. hardcode_into_libs=yes
  13419. ;;
  13420. # No shared lib support for Linux oldld, aout, or coff.
  13421. linux*oldld* | linux*aout* | linux*coff*)
  13422. dynamic_linker=no
  13423. ;;
  13424. # This must be Linux ELF.
  13425. linux*)
  13426. version_type=linux
  13427. need_lib_prefix=no
  13428. need_version=no
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13432. shlibpath_var=LD_LIBRARY_PATH
  13433. shlibpath_overrides_runpath=no
  13434. # This implies no fast_install, which is unacceptable.
  13435. # Some rework will be needed to allow for fast_install
  13436. # before this can be enabled.
  13437. hardcode_into_libs=yes
  13438. # Append ld.so.conf contents to the search path
  13439. if test -f /etc/ld.so.conf; then
  13440. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13441. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13442. fi
  13443. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13444. # powerpc, because MkLinux only supported shared libraries with the
  13445. # GNU dynamic linker. Since this was broken with cross compilers,
  13446. # most powerpc-linux boxes support dynamic linking these days and
  13447. # people can always --disable-shared, the test was removed, and we
  13448. # assume the GNU/Linux dynamic linker is in use.
  13449. dynamic_linker='GNU/Linux ld.so'
  13450. ;;
  13451. knetbsd*-gnu)
  13452. version_type=linux
  13453. need_lib_prefix=no
  13454. need_version=no
  13455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13456. soname_spec='${libname}${release}${shared_ext}$major'
  13457. shlibpath_var=LD_LIBRARY_PATH
  13458. shlibpath_overrides_runpath=no
  13459. hardcode_into_libs=yes
  13460. dynamic_linker='GNU ld.so'
  13461. ;;
  13462. netbsd*)
  13463. version_type=sunos
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13468. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13469. dynamic_linker='NetBSD (a.out) ld.so'
  13470. else
  13471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13472. soname_spec='${libname}${release}${shared_ext}$major'
  13473. dynamic_linker='NetBSD ld.elf_so'
  13474. fi
  13475. shlibpath_var=LD_LIBRARY_PATH
  13476. shlibpath_overrides_runpath=yes
  13477. hardcode_into_libs=yes
  13478. ;;
  13479. newsos6)
  13480. version_type=linux
  13481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13482. shlibpath_var=LD_LIBRARY_PATH
  13483. shlibpath_overrides_runpath=yes
  13484. ;;
  13485. nto-qnx*)
  13486. version_type=linux
  13487. need_lib_prefix=no
  13488. need_version=no
  13489. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13490. soname_spec='${libname}${release}${shared_ext}$major'
  13491. shlibpath_var=LD_LIBRARY_PATH
  13492. shlibpath_overrides_runpath=yes
  13493. ;;
  13494. openbsd*)
  13495. version_type=sunos
  13496. sys_lib_dlsearch_path_spec="/usr/lib"
  13497. need_lib_prefix=no
  13498. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13499. case $host_os in
  13500. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13501. *) need_version=no ;;
  13502. esac
  13503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13504. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13505. shlibpath_var=LD_LIBRARY_PATH
  13506. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13507. case $host_os in
  13508. openbsd2.[89] | openbsd2.[89].*)
  13509. shlibpath_overrides_runpath=no
  13510. ;;
  13511. *)
  13512. shlibpath_overrides_runpath=yes
  13513. ;;
  13514. esac
  13515. else
  13516. shlibpath_overrides_runpath=yes
  13517. fi
  13518. ;;
  13519. os2*)
  13520. libname_spec='$name'
  13521. shrext_cmds=".dll"
  13522. need_lib_prefix=no
  13523. library_names_spec='$libname${shared_ext} $libname.a'
  13524. dynamic_linker='OS/2 ld.exe'
  13525. shlibpath_var=LIBPATH
  13526. ;;
  13527. osf3* | osf4* | osf5*)
  13528. version_type=osf
  13529. need_lib_prefix=no
  13530. need_version=no
  13531. soname_spec='${libname}${release}${shared_ext}$major'
  13532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13533. shlibpath_var=LD_LIBRARY_PATH
  13534. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13535. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13536. ;;
  13537. solaris*)
  13538. version_type=linux
  13539. need_lib_prefix=no
  13540. need_version=no
  13541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13542. soname_spec='${libname}${release}${shared_ext}$major'
  13543. shlibpath_var=LD_LIBRARY_PATH
  13544. shlibpath_overrides_runpath=yes
  13545. hardcode_into_libs=yes
  13546. # ldd complains unless libraries are executable
  13547. postinstall_cmds='chmod +x $lib'
  13548. ;;
  13549. sunos4*)
  13550. version_type=sunos
  13551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13552. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13553. shlibpath_var=LD_LIBRARY_PATH
  13554. shlibpath_overrides_runpath=yes
  13555. if test "$with_gnu_ld" = yes; then
  13556. need_lib_prefix=no
  13557. fi
  13558. need_version=yes
  13559. ;;
  13560. sysv4 | sysv4.3*)
  13561. version_type=linux
  13562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13563. soname_spec='${libname}${release}${shared_ext}$major'
  13564. shlibpath_var=LD_LIBRARY_PATH
  13565. case $host_vendor in
  13566. sni)
  13567. shlibpath_overrides_runpath=no
  13568. need_lib_prefix=no
  13569. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13570. runpath_var=LD_RUN_PATH
  13571. ;;
  13572. siemens)
  13573. need_lib_prefix=no
  13574. ;;
  13575. motorola)
  13576. need_lib_prefix=no
  13577. need_version=no
  13578. shlibpath_overrides_runpath=no
  13579. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13580. ;;
  13581. esac
  13582. ;;
  13583. sysv4*MP*)
  13584. if test -d /usr/nec ;then
  13585. version_type=linux
  13586. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13587. soname_spec='$libname${shared_ext}.$major'
  13588. shlibpath_var=LD_LIBRARY_PATH
  13589. fi
  13590. ;;
  13591. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13592. version_type=freebsd-elf
  13593. need_lib_prefix=no
  13594. need_version=no
  13595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13596. soname_spec='${libname}${release}${shared_ext}$major'
  13597. shlibpath_var=LD_LIBRARY_PATH
  13598. hardcode_into_libs=yes
  13599. if test "$with_gnu_ld" = yes; then
  13600. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13601. shlibpath_overrides_runpath=no
  13602. else
  13603. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13604. shlibpath_overrides_runpath=yes
  13605. case $host_os in
  13606. sco3.2v5*)
  13607. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13608. ;;
  13609. esac
  13610. fi
  13611. sys_lib_dlsearch_path_spec='/usr/lib'
  13612. ;;
  13613. uts4*)
  13614. version_type=linux
  13615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13616. soname_spec='${libname}${release}${shared_ext}$major'
  13617. shlibpath_var=LD_LIBRARY_PATH
  13618. ;;
  13619. *)
  13620. dynamic_linker=no
  13621. ;;
  13622. esac
  13623. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13624. echo "${ECHO_T}$dynamic_linker" >&6
  13625. test "$dynamic_linker" = no && can_build_shared=no
  13626. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13627. if test "$GCC" = yes; then
  13628. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13629. fi
  13630. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13631. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  13632. hardcode_action_F77=
  13633. if test -n "$hardcode_libdir_flag_spec_F77" || \
  13634. test -n "$runpath_var_F77" || \
  13635. test "X$hardcode_automatic_F77" = "Xyes" ; then
  13636. # We can hardcode non-existant directories.
  13637. if test "$hardcode_direct_F77" != no &&
  13638. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13639. # have to relink, otherwise we might link with an installed library
  13640. # when we should be linking with a yet-to-be-installed one
  13641. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  13642. test "$hardcode_minus_L_F77" != no; then
  13643. # Linking always hardcodes the temporary library directory.
  13644. hardcode_action_F77=relink
  13645. else
  13646. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13647. hardcode_action_F77=immediate
  13648. fi
  13649. else
  13650. # We cannot hardcode anything, or else we can only hardcode existing
  13651. # directories.
  13652. hardcode_action_F77=unsupported
  13653. fi
  13654. echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  13655. echo "${ECHO_T}$hardcode_action_F77" >&6
  13656. if test "$hardcode_action_F77" = relink; then
  13657. # Fast installation is not supported
  13658. enable_fast_install=no
  13659. elif test "$shlibpath_overrides_runpath" = yes ||
  13660. test "$enable_shared" = no; then
  13661. # Fast installation is not necessary
  13662. enable_fast_install=needless
  13663. fi
  13664. # The else clause should only fire when bootstrapping the
  13665. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13666. # with your package, and you will get complaints that there are
  13667. # no rules to generate ltmain.sh.
  13668. if test -f "$ltmain"; then
  13669. # See if we are running on zsh, and set the options which allow our commands through
  13670. # without removal of \ escapes.
  13671. if test -n "${ZSH_VERSION+set}" ; then
  13672. setopt NO_GLOB_SUBST
  13673. fi
  13674. # Now quote all the things that may contain metacharacters while being
  13675. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13676. # variables and quote the copies for generation of the libtool script.
  13677. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13678. SED SHELL STRIP \
  13679. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13680. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13681. deplibs_check_method reload_flag reload_cmds need_locks \
  13682. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13683. lt_cv_sys_global_symbol_to_c_name_address \
  13684. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13685. old_postinstall_cmds old_postuninstall_cmds \
  13686. compiler_F77 \
  13687. CC_F77 \
  13688. LD_F77 \
  13689. lt_prog_compiler_wl_F77 \
  13690. lt_prog_compiler_pic_F77 \
  13691. lt_prog_compiler_static_F77 \
  13692. lt_prog_compiler_no_builtin_flag_F77 \
  13693. export_dynamic_flag_spec_F77 \
  13694. thread_safe_flag_spec_F77 \
  13695. whole_archive_flag_spec_F77 \
  13696. enable_shared_with_static_runtimes_F77 \
  13697. old_archive_cmds_F77 \
  13698. old_archive_from_new_cmds_F77 \
  13699. predep_objects_F77 \
  13700. postdep_objects_F77 \
  13701. predeps_F77 \
  13702. postdeps_F77 \
  13703. compiler_lib_search_path_F77 \
  13704. archive_cmds_F77 \
  13705. archive_expsym_cmds_F77 \
  13706. postinstall_cmds_F77 \
  13707. postuninstall_cmds_F77 \
  13708. old_archive_from_expsyms_cmds_F77 \
  13709. allow_undefined_flag_F77 \
  13710. no_undefined_flag_F77 \
  13711. export_symbols_cmds_F77 \
  13712. hardcode_libdir_flag_spec_F77 \
  13713. hardcode_libdir_flag_spec_ld_F77 \
  13714. hardcode_libdir_separator_F77 \
  13715. hardcode_automatic_F77 \
  13716. module_cmds_F77 \
  13717. module_expsym_cmds_F77 \
  13718. lt_cv_prog_compiler_c_o_F77 \
  13719. exclude_expsyms_F77 \
  13720. include_expsyms_F77; do
  13721. case $var in
  13722. old_archive_cmds_F77 | \
  13723. old_archive_from_new_cmds_F77 | \
  13724. archive_cmds_F77 | \
  13725. archive_expsym_cmds_F77 | \
  13726. module_cmds_F77 | \
  13727. module_expsym_cmds_F77 | \
  13728. old_archive_from_expsyms_cmds_F77 | \
  13729. export_symbols_cmds_F77 | \
  13730. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13731. postinstall_cmds | postuninstall_cmds | \
  13732. old_postinstall_cmds | old_postuninstall_cmds | \
  13733. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13734. # Double-quote double-evaled strings.
  13735. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13736. ;;
  13737. *)
  13738. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13739. ;;
  13740. esac
  13741. done
  13742. case $lt_echo in
  13743. *'\$0 --fallback-echo"')
  13744. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13745. ;;
  13746. esac
  13747. cfgfile="$ofile"
  13748. cat <<__EOF__ >> "$cfgfile"
  13749. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13750. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13751. # Shell to use when invoking shell scripts.
  13752. SHELL=$lt_SHELL
  13753. # Whether or not to build shared libraries.
  13754. build_libtool_libs=$enable_shared
  13755. # Whether or not to build static libraries.
  13756. build_old_libs=$enable_static
  13757. # Whether or not to add -lc for building shared libraries.
  13758. build_libtool_need_lc=$archive_cmds_need_lc_F77
  13759. # Whether or not to disallow shared libs when runtime libs are static
  13760. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  13761. # Whether or not to optimize for fast installation.
  13762. fast_install=$enable_fast_install
  13763. # The host system.
  13764. host_alias=$host_alias
  13765. host=$host
  13766. host_os=$host_os
  13767. # The build system.
  13768. build_alias=$build_alias
  13769. build=$build
  13770. build_os=$build_os
  13771. # An echo program that does not interpret backslashes.
  13772. echo=$lt_echo
  13773. # The archiver.
  13774. AR=$lt_AR
  13775. AR_FLAGS=$lt_AR_FLAGS
  13776. # A C compiler.
  13777. LTCC=$lt_LTCC
  13778. # LTCC compiler flags.
  13779. LTCFLAGS=$lt_LTCFLAGS
  13780. # A language-specific compiler.
  13781. CC=$lt_compiler_F77
  13782. # Is the compiler the GNU C compiler?
  13783. with_gcc=$GCC_F77
  13784. # An ERE matcher.
  13785. EGREP=$lt_EGREP
  13786. # The linker used to build libraries.
  13787. LD=$lt_LD_F77
  13788. # Whether we need hard or soft links.
  13789. LN_S=$lt_LN_S
  13790. # A BSD-compatible nm program.
  13791. NM=$lt_NM
  13792. # A symbol stripping program
  13793. STRIP=$lt_STRIP
  13794. # Used to examine libraries when file_magic_cmd begins "file"
  13795. MAGIC_CMD=$MAGIC_CMD
  13796. # Used on cygwin: DLL creation program.
  13797. DLLTOOL="$DLLTOOL"
  13798. # Used on cygwin: object dumper.
  13799. OBJDUMP="$OBJDUMP"
  13800. # Used on cygwin: assembler.
  13801. AS="$AS"
  13802. # The name of the directory that contains temporary libtool files.
  13803. objdir=$objdir
  13804. # How to create reloadable object files.
  13805. reload_flag=$lt_reload_flag
  13806. reload_cmds=$lt_reload_cmds
  13807. # How to pass a linker flag through the compiler.
  13808. wl=$lt_lt_prog_compiler_wl_F77
  13809. # Object file suffix (normally "o").
  13810. objext="$ac_objext"
  13811. # Old archive suffix (normally "a").
  13812. libext="$libext"
  13813. # Shared library suffix (normally ".so").
  13814. shrext_cmds='$shrext_cmds'
  13815. # Executable file suffix (normally "").
  13816. exeext="$exeext"
  13817. # Additional compiler flags for building library objects.
  13818. pic_flag=$lt_lt_prog_compiler_pic_F77
  13819. pic_mode=$pic_mode
  13820. # What is the maximum length of a command?
  13821. max_cmd_len=$lt_cv_sys_max_cmd_len
  13822. # Does compiler simultaneously support -c and -o options?
  13823. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  13824. # Must we lock files when doing compilation?
  13825. need_locks=$lt_need_locks
  13826. # Do we need the lib prefix for modules?
  13827. need_lib_prefix=$need_lib_prefix
  13828. # Do we need a version for libraries?
  13829. need_version=$need_version
  13830. # Whether dlopen is supported.
  13831. dlopen_support=$enable_dlopen
  13832. # Whether dlopen of programs is supported.
  13833. dlopen_self=$enable_dlopen_self
  13834. # Whether dlopen of statically linked programs is supported.
  13835. dlopen_self_static=$enable_dlopen_self_static
  13836. # Compiler flag to prevent dynamic linking.
  13837. link_static_flag=$lt_lt_prog_compiler_static_F77
  13838. # Compiler flag to turn off builtin functions.
  13839. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  13840. # Compiler flag to allow reflexive dlopens.
  13841. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  13842. # Compiler flag to generate shared objects directly from archives.
  13843. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  13844. # Compiler flag to generate thread-safe objects.
  13845. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  13846. # Library versioning type.
  13847. version_type=$version_type
  13848. # Format of library name prefix.
  13849. libname_spec=$lt_libname_spec
  13850. # List of archive names. First name is the real one, the rest are links.
  13851. # The last name is the one that the linker finds with -lNAME.
  13852. library_names_spec=$lt_library_names_spec
  13853. # The coded name of the library, if different from the real name.
  13854. soname_spec=$lt_soname_spec
  13855. # Commands used to build and install an old-style archive.
  13856. RANLIB=$lt_RANLIB
  13857. old_archive_cmds=$lt_old_archive_cmds_F77
  13858. old_postinstall_cmds=$lt_old_postinstall_cmds
  13859. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13860. # Create an old-style archive from a shared archive.
  13861. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  13862. # Create a temporary old-style archive to link instead of a shared archive.
  13863. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  13864. # Commands used to build and install a shared archive.
  13865. archive_cmds=$lt_archive_cmds_F77
  13866. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  13867. postinstall_cmds=$lt_postinstall_cmds
  13868. postuninstall_cmds=$lt_postuninstall_cmds
  13869. # Commands used to build a loadable module (assumed same as above if empty)
  13870. module_cmds=$lt_module_cmds_F77
  13871. module_expsym_cmds=$lt_module_expsym_cmds_F77
  13872. # Commands to strip libraries.
  13873. old_striplib=$lt_old_striplib
  13874. striplib=$lt_striplib
  13875. # Dependencies to place before the objects being linked to create a
  13876. # shared library.
  13877. predep_objects=$lt_predep_objects_F77
  13878. # Dependencies to place after the objects being linked to create a
  13879. # shared library.
  13880. postdep_objects=$lt_postdep_objects_F77
  13881. # Dependencies to place before the objects being linked to create a
  13882. # shared library.
  13883. predeps=$lt_predeps_F77
  13884. # Dependencies to place after the objects being linked to create a
  13885. # shared library.
  13886. postdeps=$lt_postdeps_F77
  13887. # The library search path used internally by the compiler when linking
  13888. # a shared library.
  13889. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  13890. # Method to check whether dependent libraries are shared objects.
  13891. deplibs_check_method=$lt_deplibs_check_method
  13892. # Command to use when deplibs_check_method == file_magic.
  13893. file_magic_cmd=$lt_file_magic_cmd
  13894. # Flag that allows shared libraries with undefined symbols to be built.
  13895. allow_undefined_flag=$lt_allow_undefined_flag_F77
  13896. # Flag that forces no undefined symbols.
  13897. no_undefined_flag=$lt_no_undefined_flag_F77
  13898. # Commands used to finish a libtool library installation in a directory.
  13899. finish_cmds=$lt_finish_cmds
  13900. # Same as above, but a single script fragment to be evaled but not shown.
  13901. finish_eval=$lt_finish_eval
  13902. # Take the output of nm and produce a listing of raw symbols and C names.
  13903. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13904. # Transform the output of nm in a proper C declaration
  13905. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13906. # Transform the output of nm in a C name address pair
  13907. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13908. # This is the shared library runtime path variable.
  13909. runpath_var=$runpath_var
  13910. # This is the shared library path variable.
  13911. shlibpath_var=$shlibpath_var
  13912. # Is shlibpath searched before the hard-coded library search path?
  13913. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13914. # How to hardcode a shared library path into an executable.
  13915. hardcode_action=$hardcode_action_F77
  13916. # Whether we should hardcode library paths into libraries.
  13917. hardcode_into_libs=$hardcode_into_libs
  13918. # Flag to hardcode \$libdir into a binary during linking.
  13919. # This must work even if \$libdir does not exist.
  13920. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  13921. # If ld is used when linking, flag to hardcode \$libdir into
  13922. # a binary during linking. This must work even if \$libdir does
  13923. # not exist.
  13924. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  13925. # Whether we need a single -rpath flag with a separated argument.
  13926. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  13927. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13928. # resulting binary.
  13929. hardcode_direct=$hardcode_direct_F77
  13930. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13931. # resulting binary.
  13932. hardcode_minus_L=$hardcode_minus_L_F77
  13933. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13934. # the resulting binary.
  13935. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  13936. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13937. # and all subsequent libraries and executables linked against it.
  13938. hardcode_automatic=$hardcode_automatic_F77
  13939. # Variables whose values should be saved in libtool wrapper scripts and
  13940. # restored at relink time.
  13941. variables_saved_for_relink="$variables_saved_for_relink"
  13942. # Whether libtool must link a program against all its dependency libraries.
  13943. link_all_deplibs=$link_all_deplibs_F77
  13944. # Compile-time system search path for libraries
  13945. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13946. # Run-time system search path for libraries
  13947. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13948. # Fix the shell variable \$srcfile for the compiler.
  13949. fix_srcfile_path="$fix_srcfile_path_F77"
  13950. # Set to yes if exported symbols are required.
  13951. always_export_symbols=$always_export_symbols_F77
  13952. # The commands to list exported symbols.
  13953. export_symbols_cmds=$lt_export_symbols_cmds_F77
  13954. # The commands to extract the exported symbol list from a shared archive.
  13955. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13956. # Symbols that should not be listed in the preloaded symbols.
  13957. exclude_expsyms=$lt_exclude_expsyms_F77
  13958. # Symbols that must always be exported.
  13959. include_expsyms=$lt_include_expsyms_F77
  13960. # ### END LIBTOOL TAG CONFIG: $tagname
  13961. __EOF__
  13962. else
  13963. # If there is no Makefile yet, we rely on a make rule to execute
  13964. # `config.status --recheck' to rerun these tests and create the
  13965. # libtool script then.
  13966. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13967. if test -f "$ltmain_in"; then
  13968. test -f Makefile && make "$ltmain"
  13969. fi
  13970. fi
  13971. ac_ext=c
  13972. ac_cpp='$CPP $CPPFLAGS'
  13973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13976. CC="$lt_save_CC"
  13977. else
  13978. tagname=""
  13979. fi
  13980. ;;
  13981. GCJ)
  13982. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  13983. # Source file extension for Java test sources.
  13984. ac_ext=java
  13985. # Object file extension for compiled Java test sources.
  13986. objext=o
  13987. objext_GCJ=$objext
  13988. # Code to be used in simple compile tests
  13989. lt_simple_compile_test_code="class foo {}\n"
  13990. # Code to be used in simple link tests
  13991. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  13992. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13993. # If no C compiler was specified, use CC.
  13994. LTCC=${LTCC-"$CC"}
  13995. # If no C compiler flags were specified, use CFLAGS.
  13996. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13997. # Allow CC to be a program name with arguments.
  13998. compiler=$CC
  13999. # save warnings/boilerplate of simple test code
  14000. ac_outfile=conftest.$ac_objext
  14001. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14002. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14003. _lt_compiler_boilerplate=`cat conftest.err`
  14004. $rm conftest*
  14005. ac_outfile=conftest.$ac_objext
  14006. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14007. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14008. _lt_linker_boilerplate=`cat conftest.err`
  14009. $rm conftest*
  14010. # Allow CC to be a program name with arguments.
  14011. lt_save_CC="$CC"
  14012. CC=${GCJ-"gcj"}
  14013. compiler=$CC
  14014. compiler_GCJ=$CC
  14015. for cc_temp in $compiler""; do
  14016. case $cc_temp in
  14017. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14018. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14019. \-*) ;;
  14020. *) break;;
  14021. esac
  14022. done
  14023. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14024. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14025. archive_cmds_need_lc_GCJ=no
  14026. old_archive_cmds_GCJ=$old_archive_cmds
  14027. lt_prog_compiler_no_builtin_flag_GCJ=
  14028. if test "$GCC" = yes; then
  14029. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14030. echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14031. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14032. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14033. echo $ECHO_N "(cached) $ECHO_C" >&6
  14034. else
  14035. lt_cv_prog_compiler_rtti_exceptions=no
  14036. ac_outfile=conftest.$ac_objext
  14037. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14038. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14039. # Insert the option either (1) after the last *FLAGS variable, or
  14040. # (2) before a word containing "conftest.", or (3) at the end.
  14041. # Note that $ac_compile itself does not contain backslashes and begins
  14042. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14043. # The option is referenced via a variable to avoid confusing sed.
  14044. lt_compile=`echo "$ac_compile" | $SED \
  14045. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14046. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14047. -e 's:$: $lt_compiler_flag:'`
  14048. (eval echo "\"\$as_me:15649: $lt_compile\"" >&5)
  14049. (eval "$lt_compile" 2>conftest.err)
  14050. ac_status=$?
  14051. cat conftest.err >&5
  14052. echo "$as_me:15653: \$? = $ac_status" >&5
  14053. if (exit $ac_status) && test -s "$ac_outfile"; then
  14054. # The compiler can only warn and ignore the option if not recognized
  14055. # So say no if there are warnings other than the usual output.
  14056. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14057. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14058. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14059. lt_cv_prog_compiler_rtti_exceptions=yes
  14060. fi
  14061. fi
  14062. $rm conftest*
  14063. fi
  14064. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14065. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  14066. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14067. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14068. else
  14069. :
  14070. fi
  14071. fi
  14072. lt_prog_compiler_wl_GCJ=
  14073. lt_prog_compiler_pic_GCJ=
  14074. lt_prog_compiler_static_GCJ=
  14075. echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14076. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14077. if test "$GCC" = yes; then
  14078. lt_prog_compiler_wl_GCJ='-Wl,'
  14079. lt_prog_compiler_static_GCJ='-static'
  14080. case $host_os in
  14081. aix*)
  14082. # All AIX code is PIC.
  14083. if test "$host_cpu" = ia64; then
  14084. # AIX 5 now supports IA64 processor
  14085. lt_prog_compiler_static_GCJ='-Bstatic'
  14086. fi
  14087. ;;
  14088. amigaos*)
  14089. # FIXME: we need at least 68020 code to build shared libraries, but
  14090. # adding the `-m68020' flag to GCC prevents building anything better,
  14091. # like `-m68040'.
  14092. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14093. ;;
  14094. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14095. # PIC is the default for these OSes.
  14096. ;;
  14097. mingw* | pw32* | os2*)
  14098. # This hack is so that the source file can tell whether it is being
  14099. # built for inclusion in a dll (and should export symbols for example).
  14100. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14101. ;;
  14102. darwin* | rhapsody*)
  14103. # PIC is the default on this platform
  14104. # Common symbols not allowed in MH_DYLIB files
  14105. lt_prog_compiler_pic_GCJ='-fno-common'
  14106. ;;
  14107. interix3*)
  14108. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14109. # Instead, we relocate shared libraries at runtime.
  14110. ;;
  14111. msdosdjgpp*)
  14112. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14113. # on systems that don't support them.
  14114. lt_prog_compiler_can_build_shared_GCJ=no
  14115. enable_shared=no
  14116. ;;
  14117. sysv4*MP*)
  14118. if test -d /usr/nec; then
  14119. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14120. fi
  14121. ;;
  14122. hpux*)
  14123. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14124. # not for PA HP-UX.
  14125. case $host_cpu in
  14126. hppa*64*|ia64*)
  14127. # +Z the default
  14128. ;;
  14129. *)
  14130. lt_prog_compiler_pic_GCJ='-fPIC'
  14131. ;;
  14132. esac
  14133. ;;
  14134. *)
  14135. lt_prog_compiler_pic_GCJ='-fPIC'
  14136. ;;
  14137. esac
  14138. else
  14139. # PORTME Check for flag to pass linker flags through the system compiler.
  14140. case $host_os in
  14141. aix*)
  14142. lt_prog_compiler_wl_GCJ='-Wl,'
  14143. if test "$host_cpu" = ia64; then
  14144. # AIX 5 now supports IA64 processor
  14145. lt_prog_compiler_static_GCJ='-Bstatic'
  14146. else
  14147. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14148. fi
  14149. ;;
  14150. darwin*)
  14151. # PIC is the default on this platform
  14152. # Common symbols not allowed in MH_DYLIB files
  14153. case $cc_basename in
  14154. xlc*)
  14155. lt_prog_compiler_pic_GCJ='-qnocommon'
  14156. lt_prog_compiler_wl_GCJ='-Wl,'
  14157. ;;
  14158. esac
  14159. ;;
  14160. mingw* | pw32* | os2*)
  14161. # This hack is so that the source file can tell whether it is being
  14162. # built for inclusion in a dll (and should export symbols for example).
  14163. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14164. ;;
  14165. hpux9* | hpux10* | hpux11*)
  14166. lt_prog_compiler_wl_GCJ='-Wl,'
  14167. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14168. # not for PA HP-UX.
  14169. case $host_cpu in
  14170. hppa*64*|ia64*)
  14171. # +Z the default
  14172. ;;
  14173. *)
  14174. lt_prog_compiler_pic_GCJ='+Z'
  14175. ;;
  14176. esac
  14177. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14178. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  14179. ;;
  14180. irix5* | irix6* | nonstopux*)
  14181. lt_prog_compiler_wl_GCJ='-Wl,'
  14182. # PIC (with -KPIC) is the default.
  14183. lt_prog_compiler_static_GCJ='-non_shared'
  14184. ;;
  14185. newsos6)
  14186. lt_prog_compiler_pic_GCJ='-KPIC'
  14187. lt_prog_compiler_static_GCJ='-Bstatic'
  14188. ;;
  14189. linux*)
  14190. case $cc_basename in
  14191. icc* | ecc*)
  14192. lt_prog_compiler_wl_GCJ='-Wl,'
  14193. lt_prog_compiler_pic_GCJ='-KPIC'
  14194. lt_prog_compiler_static_GCJ='-static'
  14195. ;;
  14196. pgcc* | pgf77* | pgf90* | pgf95*)
  14197. # Portland Group compilers (*not* the Pentium gcc compiler,
  14198. # which looks to be a dead project)
  14199. lt_prog_compiler_wl_GCJ='-Wl,'
  14200. lt_prog_compiler_pic_GCJ='-fpic'
  14201. lt_prog_compiler_static_GCJ='-Bstatic'
  14202. ;;
  14203. ccc*)
  14204. lt_prog_compiler_wl_GCJ='-Wl,'
  14205. # All Alpha code is PIC.
  14206. lt_prog_compiler_static_GCJ='-non_shared'
  14207. ;;
  14208. esac
  14209. ;;
  14210. osf3* | osf4* | osf5*)
  14211. lt_prog_compiler_wl_GCJ='-Wl,'
  14212. # All OSF/1 code is PIC.
  14213. lt_prog_compiler_static_GCJ='-non_shared'
  14214. ;;
  14215. solaris*)
  14216. lt_prog_compiler_pic_GCJ='-KPIC'
  14217. lt_prog_compiler_static_GCJ='-Bstatic'
  14218. case $cc_basename in
  14219. f77* | f90* | f95*)
  14220. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  14221. *)
  14222. lt_prog_compiler_wl_GCJ='-Wl,';;
  14223. esac
  14224. ;;
  14225. sunos4*)
  14226. lt_prog_compiler_wl_GCJ='-Qoption ld '
  14227. lt_prog_compiler_pic_GCJ='-PIC'
  14228. lt_prog_compiler_static_GCJ='-Bstatic'
  14229. ;;
  14230. sysv4 | sysv4.2uw2* | sysv4.3*)
  14231. lt_prog_compiler_wl_GCJ='-Wl,'
  14232. lt_prog_compiler_pic_GCJ='-KPIC'
  14233. lt_prog_compiler_static_GCJ='-Bstatic'
  14234. ;;
  14235. sysv4*MP*)
  14236. if test -d /usr/nec ;then
  14237. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  14238. lt_prog_compiler_static_GCJ='-Bstatic'
  14239. fi
  14240. ;;
  14241. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14242. lt_prog_compiler_wl_GCJ='-Wl,'
  14243. lt_prog_compiler_pic_GCJ='-KPIC'
  14244. lt_prog_compiler_static_GCJ='-Bstatic'
  14245. ;;
  14246. unicos*)
  14247. lt_prog_compiler_wl_GCJ='-Wl,'
  14248. lt_prog_compiler_can_build_shared_GCJ=no
  14249. ;;
  14250. uts4*)
  14251. lt_prog_compiler_pic_GCJ='-pic'
  14252. lt_prog_compiler_static_GCJ='-Bstatic'
  14253. ;;
  14254. *)
  14255. lt_prog_compiler_can_build_shared_GCJ=no
  14256. ;;
  14257. esac
  14258. fi
  14259. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  14260. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  14261. #
  14262. # Check to make sure the PIC flag actually works.
  14263. #
  14264. if test -n "$lt_prog_compiler_pic_GCJ"; then
  14265. echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  14266. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  14267. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  14268. echo $ECHO_N "(cached) $ECHO_C" >&6
  14269. else
  14270. lt_prog_compiler_pic_works_GCJ=no
  14271. ac_outfile=conftest.$ac_objext
  14272. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14273. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  14274. # Insert the option either (1) after the last *FLAGS variable, or
  14275. # (2) before a word containing "conftest.", or (3) at the end.
  14276. # Note that $ac_compile itself does not contain backslashes and begins
  14277. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14278. # The option is referenced via a variable to avoid confusing sed.
  14279. lt_compile=`echo "$ac_compile" | $SED \
  14280. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14281. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14282. -e 's:$: $lt_compiler_flag:'`
  14283. (eval echo "\"\$as_me:15917: $lt_compile\"" >&5)
  14284. (eval "$lt_compile" 2>conftest.err)
  14285. ac_status=$?
  14286. cat conftest.err >&5
  14287. echo "$as_me:15921: \$? = $ac_status" >&5
  14288. if (exit $ac_status) && test -s "$ac_outfile"; then
  14289. # The compiler can only warn and ignore the option if not recognized
  14290. # So say no if there are warnings other than the usual output.
  14291. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14292. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14293. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14294. lt_prog_compiler_pic_works_GCJ=yes
  14295. fi
  14296. fi
  14297. $rm conftest*
  14298. fi
  14299. echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  14300. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  14301. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  14302. case $lt_prog_compiler_pic_GCJ in
  14303. "" | " "*) ;;
  14304. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  14305. esac
  14306. else
  14307. lt_prog_compiler_pic_GCJ=
  14308. lt_prog_compiler_can_build_shared_GCJ=no
  14309. fi
  14310. fi
  14311. case $host_os in
  14312. # For platforms which do not support PIC, -DPIC is meaningless:
  14313. *djgpp*)
  14314. lt_prog_compiler_pic_GCJ=
  14315. ;;
  14316. *)
  14317. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  14318. ;;
  14319. esac
  14320. #
  14321. # Check to make sure the static flag actually works.
  14322. #
  14323. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  14324. echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14325. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
  14326. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  14327. echo $ECHO_N "(cached) $ECHO_C" >&6
  14328. else
  14329. lt_prog_compiler_static_works_GCJ=no
  14330. save_LDFLAGS="$LDFLAGS"
  14331. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14332. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14333. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14334. # The linker can only warn and ignore the option if not recognized
  14335. # So say no if there are warnings
  14336. if test -s conftest.err; then
  14337. # Append any errors to the config.log.
  14338. cat conftest.err 1>&5
  14339. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14340. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14341. if diff conftest.exp conftest.er2 >/dev/null; then
  14342. lt_prog_compiler_static_works_GCJ=yes
  14343. fi
  14344. else
  14345. lt_prog_compiler_static_works_GCJ=yes
  14346. fi
  14347. fi
  14348. $rm conftest*
  14349. LDFLAGS="$save_LDFLAGS"
  14350. fi
  14351. echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  14352. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
  14353. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  14354. :
  14355. else
  14356. lt_prog_compiler_static_GCJ=
  14357. fi
  14358. echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14359. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14360. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  14361. echo $ECHO_N "(cached) $ECHO_C" >&6
  14362. else
  14363. lt_cv_prog_compiler_c_o_GCJ=no
  14364. $rm -r conftest 2>/dev/null
  14365. mkdir conftest
  14366. cd conftest
  14367. mkdir out
  14368. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14369. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14370. # Insert the option either (1) after the last *FLAGS variable, or
  14371. # (2) before a word containing "conftest.", or (3) at the end.
  14372. # Note that $ac_compile itself does not contain backslashes and begins
  14373. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14374. lt_compile=`echo "$ac_compile" | $SED \
  14375. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14376. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14377. -e 's:$: $lt_compiler_flag:'`
  14378. (eval echo "\"\$as_me:16021: $lt_compile\"" >&5)
  14379. (eval "$lt_compile" 2>out/conftest.err)
  14380. ac_status=$?
  14381. cat out/conftest.err >&5
  14382. echo "$as_me:16025: \$? = $ac_status" >&5
  14383. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14384. then
  14385. # The compiler can only warn and ignore the option if not recognized
  14386. # So say no if there are warnings
  14387. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14388. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14389. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14390. lt_cv_prog_compiler_c_o_GCJ=yes
  14391. fi
  14392. fi
  14393. chmod u+w . 2>&5
  14394. $rm conftest*
  14395. # SGI C++ compiler will create directory out/ii_files/ for
  14396. # template instantiation
  14397. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14398. $rm out/* && rmdir out
  14399. cd ..
  14400. rmdir conftest
  14401. $rm conftest*
  14402. fi
  14403. echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  14404. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  14405. hard_links="nottested"
  14406. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  14407. # do not overwrite the value of need_locks provided by the user
  14408. echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14409. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14410. hard_links=yes
  14411. $rm conftest*
  14412. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14413. touch conftest.a
  14414. ln conftest.a conftest.b 2>&5 || hard_links=no
  14415. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14416. echo "$as_me:$LINENO: result: $hard_links" >&5
  14417. echo "${ECHO_T}$hard_links" >&6
  14418. if test "$hard_links" = no; then
  14419. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14420. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14421. need_locks=warn
  14422. fi
  14423. else
  14424. need_locks=no
  14425. fi
  14426. echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14427. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  14428. runpath_var=
  14429. allow_undefined_flag_GCJ=
  14430. enable_shared_with_static_runtimes_GCJ=no
  14431. archive_cmds_GCJ=
  14432. archive_expsym_cmds_GCJ=
  14433. old_archive_From_new_cmds_GCJ=
  14434. old_archive_from_expsyms_cmds_GCJ=
  14435. export_dynamic_flag_spec_GCJ=
  14436. whole_archive_flag_spec_GCJ=
  14437. thread_safe_flag_spec_GCJ=
  14438. hardcode_libdir_flag_spec_GCJ=
  14439. hardcode_libdir_flag_spec_ld_GCJ=
  14440. hardcode_libdir_separator_GCJ=
  14441. hardcode_direct_GCJ=no
  14442. hardcode_minus_L_GCJ=no
  14443. hardcode_shlibpath_var_GCJ=unsupported
  14444. link_all_deplibs_GCJ=unknown
  14445. hardcode_automatic_GCJ=no
  14446. module_cmds_GCJ=
  14447. module_expsym_cmds_GCJ=
  14448. always_export_symbols_GCJ=no
  14449. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14450. # include_expsyms should be a list of space-separated symbols to be *always*
  14451. # included in the symbol list
  14452. include_expsyms_GCJ=
  14453. # exclude_expsyms can be an extended regexp of symbols to exclude
  14454. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14455. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14456. # as well as any symbol that contains `d'.
  14457. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  14458. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14459. # platforms (ab)use it in PIC code, but their linkers get confused if
  14460. # the symbol is explicitly referenced. Since portable code cannot
  14461. # rely on this symbol name, it's probably fine to never include it in
  14462. # preloaded symbol tables.
  14463. extract_expsyms_cmds=
  14464. # Just being paranoid about ensuring that cc_basename is set.
  14465. for cc_temp in $compiler""; do
  14466. case $cc_temp in
  14467. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14468. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14469. \-*) ;;
  14470. *) break;;
  14471. esac
  14472. done
  14473. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14474. case $host_os in
  14475. cygwin* | mingw* | pw32*)
  14476. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14477. # When not using gcc, we currently assume that we are using
  14478. # Microsoft Visual C++.
  14479. if test "$GCC" != yes; then
  14480. with_gnu_ld=no
  14481. fi
  14482. ;;
  14483. interix*)
  14484. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14485. with_gnu_ld=yes
  14486. ;;
  14487. openbsd*)
  14488. with_gnu_ld=no
  14489. ;;
  14490. esac
  14491. ld_shlibs_GCJ=yes
  14492. if test "$with_gnu_ld" = yes; then
  14493. # If archive_cmds runs LD, not CC, wlarc should be empty
  14494. wlarc='${wl}'
  14495. # Set some defaults for GNU ld with shared library support. These
  14496. # are reset later if shared libraries are not supported. Putting them
  14497. # here allows them to be overridden if necessary.
  14498. runpath_var=LD_RUN_PATH
  14499. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  14500. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  14501. # ancient GNU ld didn't support --whole-archive et. al.
  14502. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14503. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14504. else
  14505. whole_archive_flag_spec_GCJ=
  14506. fi
  14507. supports_anon_versioning=no
  14508. case `$LD -v 2>/dev/null` in
  14509. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14510. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  14511. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  14512. *\ 2.11.*) ;; # other 2.11 versions
  14513. *) supports_anon_versioning=yes ;;
  14514. esac
  14515. # See if GNU ld supports shared libraries.
  14516. case $host_os in
  14517. aix3* | aix4* | aix5*)
  14518. # On AIX/PPC, the GNU linker is very broken
  14519. if test "$host_cpu" != ia64; then
  14520. ld_shlibs_GCJ=no
  14521. cat <<EOF 1>&2
  14522. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14523. *** to be unable to reliably create shared libraries on AIX.
  14524. *** Therefore, libtool is disabling shared libraries support. If you
  14525. *** really care for shared libraries, you may want to modify your PATH
  14526. *** so that a non-GNU linker is found, and then restart.
  14527. EOF
  14528. fi
  14529. ;;
  14530. amigaos*)
  14531. 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)'
  14532. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14533. hardcode_minus_L_GCJ=yes
  14534. # Samuel A. Falvo II <[email protected]> reports
  14535. # that the semantics of dynamic libraries on AmigaOS, at least up
  14536. # to version 4, is to share data among multiple programs linked
  14537. # with the same dynamic library. Since this doesn't match the
  14538. # behavior of shared libraries on other platforms, we can't use
  14539. # them.
  14540. ld_shlibs_GCJ=no
  14541. ;;
  14542. beos*)
  14543. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14544. allow_undefined_flag_GCJ=unsupported
  14545. # Joseph Beckenbach <[email protected]> says some releases of gcc
  14546. # support --undefined. This deserves some investigation. FIXME
  14547. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14548. else
  14549. ld_shlibs_GCJ=no
  14550. fi
  14551. ;;
  14552. cygwin* | mingw* | pw32*)
  14553. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  14554. # as there is no search path for DLLs.
  14555. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14556. allow_undefined_flag_GCJ=unsupported
  14557. always_export_symbols_GCJ=no
  14558. enable_shared_with_static_runtimes_GCJ=yes
  14559. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14560. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  14561. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14562. # If the export-symbols file already is a .def file (1st line
  14563. # is EXPORTS), use it as is; otherwise, prepend...
  14564. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  14565. cp $export_symbols $output_objdir/$soname.def;
  14566. else
  14567. echo EXPORTS > $output_objdir/$soname.def;
  14568. cat $export_symbols >> $output_objdir/$soname.def;
  14569. fi~
  14570. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  14571. else
  14572. ld_shlibs_GCJ=no
  14573. fi
  14574. ;;
  14575. interix3*)
  14576. hardcode_direct_GCJ=no
  14577. hardcode_shlibpath_var_GCJ=no
  14578. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  14579. export_dynamic_flag_spec_GCJ='${wl}-E'
  14580. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  14581. # Instead, shared libraries are loaded at an image base (0x10000000 by
  14582. # default) and relocated if they conflict, which is a slow very memory
  14583. # consuming and fragmenting process. To avoid this, we pick a random,
  14584. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  14585. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  14586. 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'
  14587. 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'
  14588. ;;
  14589. linux*)
  14590. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14591. tmp_addflag=
  14592. case $cc_basename,$host_cpu in
  14593. pgcc*) # Portland Group C compiler
  14594. 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'
  14595. tmp_addflag=' $pic_flag'
  14596. ;;
  14597. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  14598. 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'
  14599. tmp_addflag=' $pic_flag -Mnomain' ;;
  14600. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  14601. tmp_addflag=' -i_dynamic' ;;
  14602. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  14603. tmp_addflag=' -i_dynamic -nofor_main' ;;
  14604. ifc* | ifort*) # Intel Fortran compiler
  14605. tmp_addflag=' -nofor_main' ;;
  14606. esac
  14607. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14608. if test $supports_anon_versioning = yes; then
  14609. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  14610. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  14611. $echo "local: *; };" >> $output_objdir/$libname.ver~
  14612. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  14613. fi
  14614. else
  14615. ld_shlibs_GCJ=no
  14616. fi
  14617. ;;
  14618. netbsd*)
  14619. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14620. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  14621. wlarc=
  14622. else
  14623. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14624. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14625. fi
  14626. ;;
  14627. solaris*)
  14628. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  14629. ld_shlibs_GCJ=no
  14630. cat <<EOF 1>&2
  14631. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  14632. *** create shared libraries on Solaris systems. Therefore, libtool
  14633. *** is disabling shared libraries support. We urge you to upgrade GNU
  14634. *** binutils to release 2.9.1 or newer. Another option is to modify
  14635. *** your PATH or compiler configuration so that the native linker is
  14636. *** used, and then restart.
  14637. EOF
  14638. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14639. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14640. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14641. else
  14642. ld_shlibs_GCJ=no
  14643. fi
  14644. ;;
  14645. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  14646. case `$LD -v 2>&1` in
  14647. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  14648. ld_shlibs_GCJ=no
  14649. cat <<_LT_EOF 1>&2
  14650. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  14651. *** reliably create shared libraries on SCO systems. Therefore, libtool
  14652. *** is disabling shared libraries support. We urge you to upgrade GNU
  14653. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  14654. *** your PATH or compiler configuration so that the native linker is
  14655. *** used, and then restart.
  14656. _LT_EOF
  14657. ;;
  14658. *)
  14659. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14660. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  14661. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  14662. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  14663. else
  14664. ld_shlibs_GCJ=no
  14665. fi
  14666. ;;
  14667. esac
  14668. ;;
  14669. sunos4*)
  14670. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14671. wlarc=
  14672. hardcode_direct_GCJ=yes
  14673. hardcode_shlibpath_var_GCJ=no
  14674. ;;
  14675. *)
  14676. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  14677. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  14678. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  14679. else
  14680. ld_shlibs_GCJ=no
  14681. fi
  14682. ;;
  14683. esac
  14684. if test "$ld_shlibs_GCJ" = no; then
  14685. runpath_var=
  14686. hardcode_libdir_flag_spec_GCJ=
  14687. export_dynamic_flag_spec_GCJ=
  14688. whole_archive_flag_spec_GCJ=
  14689. fi
  14690. else
  14691. # PORTME fill in a description of your system's linker (not GNU ld)
  14692. case $host_os in
  14693. aix3*)
  14694. allow_undefined_flag_GCJ=unsupported
  14695. always_export_symbols_GCJ=yes
  14696. 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'
  14697. # Note: this linker hardcodes the directories in LIBPATH if there
  14698. # are no directories specified by -L.
  14699. hardcode_minus_L_GCJ=yes
  14700. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  14701. # Neither direct hardcoding nor static linking is supported with a
  14702. # broken collect2.
  14703. hardcode_direct_GCJ=unsupported
  14704. fi
  14705. ;;
  14706. aix4* | aix5*)
  14707. if test "$host_cpu" = ia64; then
  14708. # On IA64, the linker does run time linking by default, so we don't
  14709. # have to do anything special.
  14710. aix_use_runtimelinking=no
  14711. exp_sym_flag='-Bexport'
  14712. no_entry_flag=""
  14713. else
  14714. # If we're using GNU nm, then we don't want the "-C" option.
  14715. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14716. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14717. 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'
  14718. else
  14719. 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'
  14720. fi
  14721. aix_use_runtimelinking=no
  14722. # Test if we are trying to use run time linking or normal
  14723. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  14724. # need to do runtime linking.
  14725. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  14726. for ld_flag in $LDFLAGS; do
  14727. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  14728. aix_use_runtimelinking=yes
  14729. break
  14730. fi
  14731. done
  14732. ;;
  14733. esac
  14734. exp_sym_flag='-bexport'
  14735. no_entry_flag='-bnoentry'
  14736. fi
  14737. # When large executables or shared objects are built, AIX ld can
  14738. # have problems creating the table of contents. If linking a library
  14739. # or program results in "error TOC overflow" add -mminimal-toc to
  14740. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  14741. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  14742. archive_cmds_GCJ=''
  14743. hardcode_direct_GCJ=yes
  14744. hardcode_libdir_separator_GCJ=':'
  14745. link_all_deplibs_GCJ=yes
  14746. if test "$GCC" = yes; then
  14747. case $host_os in aix4.[012]|aix4.[012].*)
  14748. # We only want to do this on AIX 4.2 and lower, the check
  14749. # below for broken collect2 doesn't work under 4.3+
  14750. collect2name=`${CC} -print-prog-name=collect2`
  14751. if test -f "$collect2name" && \
  14752. strings "$collect2name" | grep resolve_lib_name >/dev/null
  14753. then
  14754. # We have reworked collect2
  14755. hardcode_direct_GCJ=yes
  14756. else
  14757. # We have old collect2
  14758. hardcode_direct_GCJ=unsupported
  14759. # It fails to find uninstalled libraries when the uninstalled
  14760. # path is not listed in the libpath. Setting hardcode_minus_L
  14761. # to unsupported forces relinking
  14762. hardcode_minus_L_GCJ=yes
  14763. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14764. hardcode_libdir_separator_GCJ=
  14765. fi
  14766. ;;
  14767. esac
  14768. shared_flag='-shared'
  14769. if test "$aix_use_runtimelinking" = yes; then
  14770. shared_flag="$shared_flag "'${wl}-G'
  14771. fi
  14772. else
  14773. # not using gcc
  14774. if test "$host_cpu" = ia64; then
  14775. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  14776. # chokes on -Wl,-G. The following line is correct:
  14777. shared_flag='-G'
  14778. else
  14779. if test "$aix_use_runtimelinking" = yes; then
  14780. shared_flag='${wl}-G'
  14781. else
  14782. shared_flag='${wl}-bM:SRE'
  14783. fi
  14784. fi
  14785. fi
  14786. # It seems that -bexpall does not export symbols beginning with
  14787. # underscore (_), so it is better to generate a list of symbols to export.
  14788. always_export_symbols_GCJ=yes
  14789. if test "$aix_use_runtimelinking" = yes; then
  14790. # Warning - without using the other runtime loading flags (-brtl),
  14791. # -berok will link without error, but may produce a broken library.
  14792. allow_undefined_flag_GCJ='-berok'
  14793. # Determine the default libpath from the value encoded in an empty executable.
  14794. cat >conftest.$ac_ext <<_ACEOF
  14795. /* confdefs.h. */
  14796. _ACEOF
  14797. cat confdefs.h >>conftest.$ac_ext
  14798. cat >>conftest.$ac_ext <<_ACEOF
  14799. /* end confdefs.h. */
  14800. int
  14801. main ()
  14802. {
  14803. ;
  14804. return 0;
  14805. }
  14806. _ACEOF
  14807. rm -f conftest.$ac_objext conftest$ac_exeext
  14808. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14809. (eval $ac_link) 2>conftest.er1
  14810. ac_status=$?
  14811. grep -v '^ *+' conftest.er1 >conftest.err
  14812. rm -f conftest.er1
  14813. cat conftest.err >&5
  14814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14815. (exit $ac_status); } &&
  14816. { ac_try='test -z "$ac_c_werror_flag"
  14817. || test ! -s conftest.err'
  14818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14819. (eval $ac_try) 2>&5
  14820. ac_status=$?
  14821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14822. (exit $ac_status); }; } &&
  14823. { ac_try='test -s conftest$ac_exeext'
  14824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14825. (eval $ac_try) 2>&5
  14826. ac_status=$?
  14827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14828. (exit $ac_status); }; }; then
  14829. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14830. }'`
  14831. # Check for a 64-bit object if we didn't find anything.
  14832. 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; }
  14833. }'`; fi
  14834. else
  14835. echo "$as_me: failed program was:" >&5
  14836. sed 's/^/| /' conftest.$ac_ext >&5
  14837. fi
  14838. rm -f conftest.err conftest.$ac_objext \
  14839. conftest$ac_exeext conftest.$ac_ext
  14840. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14841. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14842. 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"
  14843. else
  14844. if test "$host_cpu" = ia64; then
  14845. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  14846. allow_undefined_flag_GCJ="-z nodefs"
  14847. 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"
  14848. else
  14849. # Determine the default libpath from the value encoded in an empty executable.
  14850. cat >conftest.$ac_ext <<_ACEOF
  14851. /* confdefs.h. */
  14852. _ACEOF
  14853. cat confdefs.h >>conftest.$ac_ext
  14854. cat >>conftest.$ac_ext <<_ACEOF
  14855. /* end confdefs.h. */
  14856. int
  14857. main ()
  14858. {
  14859. ;
  14860. return 0;
  14861. }
  14862. _ACEOF
  14863. rm -f conftest.$ac_objext conftest$ac_exeext
  14864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14865. (eval $ac_link) 2>conftest.er1
  14866. ac_status=$?
  14867. grep -v '^ *+' conftest.er1 >conftest.err
  14868. rm -f conftest.er1
  14869. cat conftest.err >&5
  14870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14871. (exit $ac_status); } &&
  14872. { ac_try='test -z "$ac_c_werror_flag"
  14873. || test ! -s conftest.err'
  14874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14875. (eval $ac_try) 2>&5
  14876. ac_status=$?
  14877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14878. (exit $ac_status); }; } &&
  14879. { ac_try='test -s conftest$ac_exeext'
  14880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14881. (eval $ac_try) 2>&5
  14882. ac_status=$?
  14883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14884. (exit $ac_status); }; }; then
  14885. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  14886. }'`
  14887. # Check for a 64-bit object if we didn't find anything.
  14888. 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; }
  14889. }'`; fi
  14890. else
  14891. echo "$as_me: failed program was:" >&5
  14892. sed 's/^/| /' conftest.$ac_ext >&5
  14893. fi
  14894. rm -f conftest.err conftest.$ac_objext \
  14895. conftest$ac_exeext conftest.$ac_ext
  14896. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14897. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  14898. # Warning - without using the other run time loading flags,
  14899. # -berok will link without error, but may produce a broken library.
  14900. no_undefined_flag_GCJ=' ${wl}-bernotok'
  14901. allow_undefined_flag_GCJ=' ${wl}-berok'
  14902. # Exported symbols can be pulled into shared objects from archives
  14903. whole_archive_flag_spec_GCJ='$convenience'
  14904. archive_cmds_need_lc_GCJ=yes
  14905. # This is similar to how AIX traditionally builds its shared libraries.
  14906. 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'
  14907. fi
  14908. fi
  14909. ;;
  14910. amigaos*)
  14911. 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)'
  14912. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14913. hardcode_minus_L_GCJ=yes
  14914. # see comment about different semantics on the GNU ld section
  14915. ld_shlibs_GCJ=no
  14916. ;;
  14917. bsdi[45]*)
  14918. export_dynamic_flag_spec_GCJ=-rdynamic
  14919. ;;
  14920. cygwin* | mingw* | pw32*)
  14921. # When not using gcc, we currently assume that we are using
  14922. # Microsoft Visual C++.
  14923. # hardcode_libdir_flag_spec is actually meaningless, as there is
  14924. # no search path for DLLs.
  14925. hardcode_libdir_flag_spec_GCJ=' '
  14926. allow_undefined_flag_GCJ=unsupported
  14927. # Tell ltmain to make .lib files, not .a files.
  14928. libext=lib
  14929. # Tell ltmain to make .dll files, not .so files.
  14930. shrext_cmds=".dll"
  14931. # FIXME: Setting linknames here is a bad hack.
  14932. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14933. # The linker will automatically build a .lib file if we build a DLL.
  14934. old_archive_From_new_cmds_GCJ='true'
  14935. # FIXME: Should let the user specify the lib program.
  14936. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  14937. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  14938. enable_shared_with_static_runtimes_GCJ=yes
  14939. ;;
  14940. darwin* | rhapsody*)
  14941. case $host_os in
  14942. rhapsody* | darwin1.[012])
  14943. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  14944. ;;
  14945. *) # Darwin 1.3 on
  14946. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14947. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14948. else
  14949. case ${MACOSX_DEPLOYMENT_TARGET} in
  14950. 10.[012])
  14951. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14952. ;;
  14953. 10.*)
  14954. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  14955. ;;
  14956. esac
  14957. fi
  14958. ;;
  14959. esac
  14960. archive_cmds_need_lc_GCJ=no
  14961. hardcode_direct_GCJ=no
  14962. hardcode_automatic_GCJ=yes
  14963. hardcode_shlibpath_var_GCJ=unsupported
  14964. whole_archive_flag_spec_GCJ=''
  14965. link_all_deplibs_GCJ=yes
  14966. if test "$GCC" = yes ; then
  14967. output_verbose_link_cmd='echo'
  14968. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  14969. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14970. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14971. 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}'
  14972. 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}'
  14973. else
  14974. case $cc_basename in
  14975. xlc*)
  14976. output_verbose_link_cmd='echo'
  14977. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  14978. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  14979. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  14980. 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}'
  14981. 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}'
  14982. ;;
  14983. *)
  14984. ld_shlibs_GCJ=no
  14985. ;;
  14986. esac
  14987. fi
  14988. ;;
  14989. dgux*)
  14990. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14991. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  14992. hardcode_shlibpath_var_GCJ=no
  14993. ;;
  14994. freebsd1*)
  14995. ld_shlibs_GCJ=no
  14996. ;;
  14997. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  14998. # support. Future versions do this automatically, but an explicit c++rt0.o
  14999. # does not break anything, and helps significantly (at the cost of a little
  15000. # extra space).
  15001. freebsd2.2*)
  15002. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15003. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15004. hardcode_direct_GCJ=yes
  15005. hardcode_shlibpath_var_GCJ=no
  15006. ;;
  15007. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15008. freebsd2*)
  15009. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15010. hardcode_direct_GCJ=yes
  15011. hardcode_minus_L_GCJ=yes
  15012. hardcode_shlibpath_var_GCJ=no
  15013. ;;
  15014. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15015. freebsd* | kfreebsd*-gnu | dragonfly*)
  15016. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15017. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15018. hardcode_direct_GCJ=yes
  15019. hardcode_shlibpath_var_GCJ=no
  15020. ;;
  15021. hpux9*)
  15022. if test "$GCC" = yes; then
  15023. 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'
  15024. else
  15025. 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'
  15026. fi
  15027. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15028. hardcode_libdir_separator_GCJ=:
  15029. hardcode_direct_GCJ=yes
  15030. # hardcode_minus_L: Not really in the search PATH,
  15031. # but as the default location of the library.
  15032. hardcode_minus_L_GCJ=yes
  15033. export_dynamic_flag_spec_GCJ='${wl}-E'
  15034. ;;
  15035. hpux10*)
  15036. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15037. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15038. else
  15039. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15040. fi
  15041. if test "$with_gnu_ld" = no; then
  15042. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15043. hardcode_libdir_separator_GCJ=:
  15044. hardcode_direct_GCJ=yes
  15045. export_dynamic_flag_spec_GCJ='${wl}-E'
  15046. # hardcode_minus_L: Not really in the search PATH,
  15047. # but as the default location of the library.
  15048. hardcode_minus_L_GCJ=yes
  15049. fi
  15050. ;;
  15051. hpux11*)
  15052. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15053. case $host_cpu in
  15054. hppa*64*)
  15055. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15056. ;;
  15057. ia64*)
  15058. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15059. ;;
  15060. *)
  15061. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15062. ;;
  15063. esac
  15064. else
  15065. case $host_cpu in
  15066. hppa*64*)
  15067. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15068. ;;
  15069. ia64*)
  15070. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15071. ;;
  15072. *)
  15073. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15074. ;;
  15075. esac
  15076. fi
  15077. if test "$with_gnu_ld" = no; then
  15078. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15079. hardcode_libdir_separator_GCJ=:
  15080. case $host_cpu in
  15081. hppa*64*|ia64*)
  15082. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15083. hardcode_direct_GCJ=no
  15084. hardcode_shlibpath_var_GCJ=no
  15085. ;;
  15086. *)
  15087. hardcode_direct_GCJ=yes
  15088. export_dynamic_flag_spec_GCJ='${wl}-E'
  15089. # hardcode_minus_L: Not really in the search PATH,
  15090. # but as the default location of the library.
  15091. hardcode_minus_L_GCJ=yes
  15092. ;;
  15093. esac
  15094. fi
  15095. ;;
  15096. irix5* | irix6* | nonstopux*)
  15097. if test "$GCC" = yes; then
  15098. 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'
  15099. else
  15100. 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'
  15101. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15102. fi
  15103. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15104. hardcode_libdir_separator_GCJ=:
  15105. link_all_deplibs_GCJ=yes
  15106. ;;
  15107. netbsd*)
  15108. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15109. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15110. else
  15111. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15112. fi
  15113. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15114. hardcode_direct_GCJ=yes
  15115. hardcode_shlibpath_var_GCJ=no
  15116. ;;
  15117. newsos6)
  15118. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15119. hardcode_direct_GCJ=yes
  15120. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15121. hardcode_libdir_separator_GCJ=:
  15122. hardcode_shlibpath_var_GCJ=no
  15123. ;;
  15124. openbsd*)
  15125. hardcode_direct_GCJ=yes
  15126. hardcode_shlibpath_var_GCJ=no
  15127. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15128. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15129. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  15130. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15131. export_dynamic_flag_spec_GCJ='${wl}-E'
  15132. else
  15133. case $host_os in
  15134. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15135. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15136. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15137. ;;
  15138. *)
  15139. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15140. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15141. ;;
  15142. esac
  15143. fi
  15144. ;;
  15145. os2*)
  15146. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15147. hardcode_minus_L_GCJ=yes
  15148. allow_undefined_flag_GCJ=unsupported
  15149. 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'
  15150. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15151. ;;
  15152. osf3*)
  15153. if test "$GCC" = yes; then
  15154. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15155. 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'
  15156. else
  15157. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15158. 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'
  15159. fi
  15160. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15161. hardcode_libdir_separator_GCJ=:
  15162. ;;
  15163. osf4* | osf5*) # as osf3* with the addition of -msym flag
  15164. if test "$GCC" = yes; then
  15165. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  15166. 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'
  15167. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15168. else
  15169. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  15170. 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'
  15171. 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~
  15172. $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'
  15173. # Both c and cxx compiler support -rpath directly
  15174. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  15175. fi
  15176. hardcode_libdir_separator_GCJ=:
  15177. ;;
  15178. solaris*)
  15179. no_undefined_flag_GCJ=' -z text'
  15180. if test "$GCC" = yes; then
  15181. wlarc='${wl}'
  15182. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15183. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15184. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  15185. else
  15186. wlarc=''
  15187. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15188. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15189. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15190. fi
  15191. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15192. hardcode_shlibpath_var_GCJ=no
  15193. case $host_os in
  15194. solaris2.[0-5] | solaris2.[0-5].*) ;;
  15195. *)
  15196. # The compiler driver will combine linker options so we
  15197. # cannot just pass the convience library names through
  15198. # without $wl, iff we do not link with $LD.
  15199. # Luckily, gcc supports the same syntax we need for Sun Studio.
  15200. # Supported since Solaris 2.6 (maybe 2.5.1?)
  15201. case $wlarc in
  15202. '')
  15203. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  15204. *)
  15205. 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' ;;
  15206. esac ;;
  15207. esac
  15208. link_all_deplibs_GCJ=yes
  15209. ;;
  15210. sunos4*)
  15211. if test "x$host_vendor" = xsequent; then
  15212. # Use $CC to link under sequent, because it throws in some extra .o
  15213. # files that make .init and .fini sections work.
  15214. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15215. else
  15216. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15217. fi
  15218. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15219. hardcode_direct_GCJ=yes
  15220. hardcode_minus_L_GCJ=yes
  15221. hardcode_shlibpath_var_GCJ=no
  15222. ;;
  15223. sysv4)
  15224. case $host_vendor in
  15225. sni)
  15226. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15227. hardcode_direct_GCJ=yes # is this really true???
  15228. ;;
  15229. siemens)
  15230. ## LD is ld it makes a PLAMLIB
  15231. ## CC just makes a GrossModule.
  15232. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15233. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  15234. hardcode_direct_GCJ=no
  15235. ;;
  15236. motorola)
  15237. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15238. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  15239. ;;
  15240. esac
  15241. runpath_var='LD_RUN_PATH'
  15242. hardcode_shlibpath_var_GCJ=no
  15243. ;;
  15244. sysv4.3*)
  15245. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15246. hardcode_shlibpath_var_GCJ=no
  15247. export_dynamic_flag_spec_GCJ='-Bexport'
  15248. ;;
  15249. sysv4*MP*)
  15250. if test -d /usr/nec; then
  15251. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15252. hardcode_shlibpath_var_GCJ=no
  15253. runpath_var=LD_RUN_PATH
  15254. hardcode_runpath_var=yes
  15255. ld_shlibs_GCJ=yes
  15256. fi
  15257. ;;
  15258. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  15259. no_undefined_flag_GCJ='${wl}-z,text'
  15260. archive_cmds_need_lc_GCJ=no
  15261. hardcode_shlibpath_var_GCJ=no
  15262. runpath_var='LD_RUN_PATH'
  15263. if test "$GCC" = yes; then
  15264. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15265. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15266. else
  15267. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15268. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  15269. fi
  15270. ;;
  15271. sysv5* | sco3.2v5* | sco5v6*)
  15272. # Note: We can NOT use -z defs as we might desire, because we do not
  15273. # link with -lc, and that would cause any symbols used from libc to
  15274. # always be unresolved, which means just about no library would
  15275. # ever link correctly. If we're not using GNU ld we use -z text
  15276. # though, which does catch some bad symbols but isn't as heavy-handed
  15277. # as -z defs.
  15278. no_undefined_flag_GCJ='${wl}-z,text'
  15279. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  15280. archive_cmds_need_lc_GCJ=no
  15281. hardcode_shlibpath_var_GCJ=no
  15282. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  15283. hardcode_libdir_separator_GCJ=':'
  15284. link_all_deplibs_GCJ=yes
  15285. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  15286. runpath_var='LD_RUN_PATH'
  15287. if test "$GCC" = yes; then
  15288. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15289. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15290. else
  15291. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15292. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15293. fi
  15294. ;;
  15295. uts4*)
  15296. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15297. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15298. hardcode_shlibpath_var_GCJ=no
  15299. ;;
  15300. *)
  15301. ld_shlibs_GCJ=no
  15302. ;;
  15303. esac
  15304. fi
  15305. echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  15306. echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  15307. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  15308. #
  15309. # Do we need to explicitly link libc?
  15310. #
  15311. case "x$archive_cmds_need_lc_GCJ" in
  15312. x|xyes)
  15313. # Assume -lc should be added
  15314. archive_cmds_need_lc_GCJ=yes
  15315. if test "$enable_shared" = yes && test "$GCC" = yes; then
  15316. case $archive_cmds_GCJ in
  15317. *'~'*)
  15318. # FIXME: we may have to deal with multi-command sequences.
  15319. ;;
  15320. '$CC '*)
  15321. # Test whether the compiler implicitly links with -lc since on some
  15322. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  15323. # to ld, don't add -lc before -lgcc.
  15324. echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  15325. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  15326. $rm conftest*
  15327. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  15328. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15329. (eval $ac_compile) 2>&5
  15330. ac_status=$?
  15331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15332. (exit $ac_status); } 2>conftest.err; then
  15333. soname=conftest
  15334. lib=conftest
  15335. libobjs=conftest.$ac_objext
  15336. deplibs=
  15337. wl=$lt_prog_compiler_wl_GCJ
  15338. pic_flag=$lt_prog_compiler_pic_GCJ
  15339. compiler_flags=-v
  15340. linker_flags=-v
  15341. verstring=
  15342. output_objdir=.
  15343. libname=conftest
  15344. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  15345. allow_undefined_flag_GCJ=
  15346. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  15347. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  15348. ac_status=$?
  15349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15350. (exit $ac_status); }
  15351. then
  15352. archive_cmds_need_lc_GCJ=no
  15353. else
  15354. archive_cmds_need_lc_GCJ=yes
  15355. fi
  15356. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  15357. else
  15358. cat conftest.err 1>&5
  15359. fi
  15360. $rm conftest*
  15361. echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  15362. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  15363. ;;
  15364. esac
  15365. fi
  15366. ;;
  15367. esac
  15368. echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15369. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15370. library_names_spec=
  15371. libname_spec='lib$name'
  15372. soname_spec=
  15373. shrext_cmds=".so"
  15374. postinstall_cmds=
  15375. postuninstall_cmds=
  15376. finish_cmds=
  15377. finish_eval=
  15378. shlibpath_var=
  15379. shlibpath_overrides_runpath=unknown
  15380. version_type=none
  15381. dynamic_linker="$host_os ld.so"
  15382. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15383. if test "$GCC" = yes; then
  15384. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15385. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  15386. # if the path contains ";" then we assume it to be the separator
  15387. # otherwise default to the standard path separator (i.e. ":") - it is
  15388. # assumed that no part of a normal pathname contains ";" but that should
  15389. # okay in the real world where ";" in dirpaths is itself problematic.
  15390. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15391. else
  15392. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15393. fi
  15394. else
  15395. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15396. fi
  15397. need_lib_prefix=unknown
  15398. hardcode_into_libs=no
  15399. # when you set need_version to no, make sure it does not cause -set_version
  15400. # flags to be left without arguments
  15401. need_version=unknown
  15402. case $host_os in
  15403. aix3*)
  15404. version_type=linux
  15405. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  15406. shlibpath_var=LIBPATH
  15407. # AIX 3 has no versioning support, so we append a major version to the name.
  15408. soname_spec='${libname}${release}${shared_ext}$major'
  15409. ;;
  15410. aix4* | aix5*)
  15411. version_type=linux
  15412. need_lib_prefix=no
  15413. need_version=no
  15414. hardcode_into_libs=yes
  15415. if test "$host_cpu" = ia64; then
  15416. # AIX 5 supports IA64
  15417. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  15418. shlibpath_var=LD_LIBRARY_PATH
  15419. else
  15420. # With GCC up to 2.95.x, collect2 would create an import file
  15421. # for dependence libraries. The import file would start with
  15422. # the line `#! .'. This would cause the generated library to
  15423. # depend on `.', always an invalid library. This was fixed in
  15424. # development snapshots of GCC prior to 3.0.
  15425. case $host_os in
  15426. aix4 | aix4.[01] | aix4.[01].*)
  15427. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15428. echo ' yes '
  15429. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15430. :
  15431. else
  15432. can_build_shared=no
  15433. fi
  15434. ;;
  15435. esac
  15436. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  15437. # soname into executable. Probably we can add versioning support to
  15438. # collect2, so additional links can be useful in future.
  15439. if test "$aix_use_runtimelinking" = yes; then
  15440. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15441. # instead of lib<name>.a to let people know that these are not
  15442. # typical AIX shared libraries.
  15443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15444. else
  15445. # We preserve .a as extension for shared libraries through AIX4.2
  15446. # and later when we are not doing run time linking.
  15447. library_names_spec='${libname}${release}.a $libname.a'
  15448. soname_spec='${libname}${release}${shared_ext}$major'
  15449. fi
  15450. shlibpath_var=LIBPATH
  15451. fi
  15452. ;;
  15453. amigaos*)
  15454. library_names_spec='$libname.ixlibrary $libname.a'
  15455. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15456. 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'
  15457. ;;
  15458. beos*)
  15459. library_names_spec='${libname}${shared_ext}'
  15460. dynamic_linker="$host_os ld.so"
  15461. shlibpath_var=LIBRARY_PATH
  15462. ;;
  15463. bsdi[45]*)
  15464. version_type=linux
  15465. need_version=no
  15466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15467. soname_spec='${libname}${release}${shared_ext}$major'
  15468. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15469. shlibpath_var=LD_LIBRARY_PATH
  15470. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15471. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15472. # the default ld.so.conf also contains /usr/contrib/lib and
  15473. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15474. # libtool to hard-code these into programs
  15475. ;;
  15476. cygwin* | mingw* | pw32*)
  15477. version_type=windows
  15478. shrext_cmds=".dll"
  15479. need_version=no
  15480. need_lib_prefix=no
  15481. case $GCC,$host_os in
  15482. yes,cygwin* | yes,mingw* | yes,pw32*)
  15483. library_names_spec='$libname.dll.a'
  15484. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  15485. postinstall_cmds='base_file=`basename \${file}`~
  15486. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  15487. dldir=$destdir/`dirname \$dlpath`~
  15488. test -d \$dldir || mkdir -p \$dldir~
  15489. $install_prog $dir/$dlname \$dldir/$dlname~
  15490. chmod a+x \$dldir/$dlname'
  15491. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15492. dlpath=$dir/\$dldll~
  15493. $rm \$dlpath'
  15494. shlibpath_overrides_runpath=yes
  15495. case $host_os in
  15496. cygwin*)
  15497. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  15498. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15499. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  15500. ;;
  15501. mingw*)
  15502. # MinGW DLLs use traditional 'lib' prefix
  15503. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15504. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  15505. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  15506. # It is most probably a Windows format PATH printed by
  15507. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  15508. # path with ; separators, and with drive letters. We can handle the
  15509. # drive letters (cygwin fileutils understands them), so leave them,
  15510. # especially as we might pass files found there to a mingw objdump,
  15511. # which wouldn't understand a cygwinified path. Ahh.
  15512. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  15513. else
  15514. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  15515. fi
  15516. ;;
  15517. pw32*)
  15518. # pw32 DLLs use 'pw' prefix rather than 'lib'
  15519. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  15520. ;;
  15521. esac
  15522. ;;
  15523. *)
  15524. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  15525. ;;
  15526. esac
  15527. dynamic_linker='Win32 ld.exe'
  15528. # FIXME: first we should search . and the directory the executable is in
  15529. shlibpath_var=PATH
  15530. ;;
  15531. darwin* | rhapsody*)
  15532. dynamic_linker="$host_os dyld"
  15533. version_type=darwin
  15534. need_lib_prefix=no
  15535. need_version=no
  15536. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  15537. soname_spec='${libname}${release}${major}$shared_ext'
  15538. shlibpath_overrides_runpath=yes
  15539. shlibpath_var=DYLD_LIBRARY_PATH
  15540. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  15541. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  15542. if test "$GCC" = yes; then
  15543. 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"`
  15544. else
  15545. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  15546. fi
  15547. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  15548. ;;
  15549. dgux*)
  15550. version_type=linux
  15551. need_lib_prefix=no
  15552. need_version=no
  15553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15554. soname_spec='${libname}${release}${shared_ext}$major'
  15555. shlibpath_var=LD_LIBRARY_PATH
  15556. ;;
  15557. freebsd1*)
  15558. dynamic_linker=no
  15559. ;;
  15560. kfreebsd*-gnu)
  15561. version_type=linux
  15562. need_lib_prefix=no
  15563. need_version=no
  15564. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15565. soname_spec='${libname}${release}${shared_ext}$major'
  15566. shlibpath_var=LD_LIBRARY_PATH
  15567. shlibpath_overrides_runpath=no
  15568. hardcode_into_libs=yes
  15569. dynamic_linker='GNU ld.so'
  15570. ;;
  15571. freebsd* | dragonfly*)
  15572. # DragonFly does not have aout. When/if they implement a new
  15573. # versioning mechanism, adjust this.
  15574. if test -x /usr/bin/objformat; then
  15575. objformat=`/usr/bin/objformat`
  15576. else
  15577. case $host_os in
  15578. freebsd[123]*) objformat=aout ;;
  15579. *) objformat=elf ;;
  15580. esac
  15581. fi
  15582. version_type=freebsd-$objformat
  15583. case $version_type in
  15584. freebsd-elf*)
  15585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15586. need_version=no
  15587. need_lib_prefix=no
  15588. ;;
  15589. freebsd-*)
  15590. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15591. need_version=yes
  15592. ;;
  15593. esac
  15594. shlibpath_var=LD_LIBRARY_PATH
  15595. case $host_os in
  15596. freebsd2*)
  15597. shlibpath_overrides_runpath=yes
  15598. ;;
  15599. freebsd3.[01]* | freebsdelf3.[01]*)
  15600. shlibpath_overrides_runpath=yes
  15601. hardcode_into_libs=yes
  15602. ;;
  15603. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  15604. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  15605. shlibpath_overrides_runpath=no
  15606. hardcode_into_libs=yes
  15607. ;;
  15608. freebsd*) # from 4.6 on
  15609. shlibpath_overrides_runpath=yes
  15610. hardcode_into_libs=yes
  15611. ;;
  15612. esac
  15613. ;;
  15614. gnu*)
  15615. version_type=linux
  15616. need_lib_prefix=no
  15617. need_version=no
  15618. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15619. soname_spec='${libname}${release}${shared_ext}$major'
  15620. shlibpath_var=LD_LIBRARY_PATH
  15621. hardcode_into_libs=yes
  15622. ;;
  15623. hpux9* | hpux10* | hpux11*)
  15624. # Give a soname corresponding to the major version so that dld.sl refuses to
  15625. # link against other versions.
  15626. version_type=sunos
  15627. need_lib_prefix=no
  15628. need_version=no
  15629. case $host_cpu in
  15630. ia64*)
  15631. shrext_cmds='.so'
  15632. hardcode_into_libs=yes
  15633. dynamic_linker="$host_os dld.so"
  15634. shlibpath_var=LD_LIBRARY_PATH
  15635. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15636. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15637. soname_spec='${libname}${release}${shared_ext}$major'
  15638. if test "X$HPUX_IA64_MODE" = X32; then
  15639. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15640. else
  15641. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15642. fi
  15643. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15644. ;;
  15645. hppa*64*)
  15646. shrext_cmds='.sl'
  15647. hardcode_into_libs=yes
  15648. dynamic_linker="$host_os dld.sl"
  15649. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15650. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15652. soname_spec='${libname}${release}${shared_ext}$major'
  15653. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15654. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15655. ;;
  15656. *)
  15657. shrext_cmds='.sl'
  15658. dynamic_linker="$host_os dld.sl"
  15659. shlibpath_var=SHLIB_PATH
  15660. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15662. soname_spec='${libname}${release}${shared_ext}$major'
  15663. ;;
  15664. esac
  15665. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15666. postinstall_cmds='chmod 555 $lib'
  15667. ;;
  15668. interix3*)
  15669. version_type=linux
  15670. need_lib_prefix=no
  15671. need_version=no
  15672. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15673. soname_spec='${libname}${release}${shared_ext}$major'
  15674. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15675. shlibpath_var=LD_LIBRARY_PATH
  15676. shlibpath_overrides_runpath=no
  15677. hardcode_into_libs=yes
  15678. ;;
  15679. irix5* | irix6* | nonstopux*)
  15680. case $host_os in
  15681. nonstopux*) version_type=nonstopux ;;
  15682. *)
  15683. if test "$lt_cv_prog_gnu_ld" = yes; then
  15684. version_type=linux
  15685. else
  15686. version_type=irix
  15687. fi ;;
  15688. esac
  15689. need_lib_prefix=no
  15690. need_version=no
  15691. soname_spec='${libname}${release}${shared_ext}$major'
  15692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15693. case $host_os in
  15694. irix5* | nonstopux*)
  15695. libsuff= shlibsuff=
  15696. ;;
  15697. *)
  15698. case $LD in # libtool.m4 will add one of these switches to LD
  15699. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15700. libsuff= shlibsuff= libmagic=32-bit;;
  15701. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15702. libsuff=32 shlibsuff=N32 libmagic=N32;;
  15703. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15704. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15705. *) libsuff= shlibsuff= libmagic=never-match;;
  15706. esac
  15707. ;;
  15708. esac
  15709. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15710. shlibpath_overrides_runpath=no
  15711. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15712. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15713. hardcode_into_libs=yes
  15714. ;;
  15715. # No shared lib support for Linux oldld, aout, or coff.
  15716. linux*oldld* | linux*aout* | linux*coff*)
  15717. dynamic_linker=no
  15718. ;;
  15719. # This must be Linux ELF.
  15720. linux*)
  15721. version_type=linux
  15722. need_lib_prefix=no
  15723. need_version=no
  15724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15725. soname_spec='${libname}${release}${shared_ext}$major'
  15726. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15727. shlibpath_var=LD_LIBRARY_PATH
  15728. shlibpath_overrides_runpath=no
  15729. # This implies no fast_install, which is unacceptable.
  15730. # Some rework will be needed to allow for fast_install
  15731. # before this can be enabled.
  15732. hardcode_into_libs=yes
  15733. # Append ld.so.conf contents to the search path
  15734. if test -f /etc/ld.so.conf; then
  15735. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15736. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15737. fi
  15738. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15739. # powerpc, because MkLinux only supported shared libraries with the
  15740. # GNU dynamic linker. Since this was broken with cross compilers,
  15741. # most powerpc-linux boxes support dynamic linking these days and
  15742. # people can always --disable-shared, the test was removed, and we
  15743. # assume the GNU/Linux dynamic linker is in use.
  15744. dynamic_linker='GNU/Linux ld.so'
  15745. ;;
  15746. knetbsd*-gnu)
  15747. version_type=linux
  15748. need_lib_prefix=no
  15749. need_version=no
  15750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15751. soname_spec='${libname}${release}${shared_ext}$major'
  15752. shlibpath_var=LD_LIBRARY_PATH
  15753. shlibpath_overrides_runpath=no
  15754. hardcode_into_libs=yes
  15755. dynamic_linker='GNU ld.so'
  15756. ;;
  15757. netbsd*)
  15758. version_type=sunos
  15759. need_lib_prefix=no
  15760. need_version=no
  15761. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15763. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15764. dynamic_linker='NetBSD (a.out) ld.so'
  15765. else
  15766. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15767. soname_spec='${libname}${release}${shared_ext}$major'
  15768. dynamic_linker='NetBSD ld.elf_so'
  15769. fi
  15770. shlibpath_var=LD_LIBRARY_PATH
  15771. shlibpath_overrides_runpath=yes
  15772. hardcode_into_libs=yes
  15773. ;;
  15774. newsos6)
  15775. version_type=linux
  15776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15777. shlibpath_var=LD_LIBRARY_PATH
  15778. shlibpath_overrides_runpath=yes
  15779. ;;
  15780. nto-qnx*)
  15781. version_type=linux
  15782. need_lib_prefix=no
  15783. need_version=no
  15784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15785. soname_spec='${libname}${release}${shared_ext}$major'
  15786. shlibpath_var=LD_LIBRARY_PATH
  15787. shlibpath_overrides_runpath=yes
  15788. ;;
  15789. openbsd*)
  15790. version_type=sunos
  15791. sys_lib_dlsearch_path_spec="/usr/lib"
  15792. need_lib_prefix=no
  15793. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15794. case $host_os in
  15795. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15796. *) need_version=no ;;
  15797. esac
  15798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15799. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15800. shlibpath_var=LD_LIBRARY_PATH
  15801. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15802. case $host_os in
  15803. openbsd2.[89] | openbsd2.[89].*)
  15804. shlibpath_overrides_runpath=no
  15805. ;;
  15806. *)
  15807. shlibpath_overrides_runpath=yes
  15808. ;;
  15809. esac
  15810. else
  15811. shlibpath_overrides_runpath=yes
  15812. fi
  15813. ;;
  15814. os2*)
  15815. libname_spec='$name'
  15816. shrext_cmds=".dll"
  15817. need_lib_prefix=no
  15818. library_names_spec='$libname${shared_ext} $libname.a'
  15819. dynamic_linker='OS/2 ld.exe'
  15820. shlibpath_var=LIBPATH
  15821. ;;
  15822. osf3* | osf4* | osf5*)
  15823. version_type=osf
  15824. need_lib_prefix=no
  15825. need_version=no
  15826. soname_spec='${libname}${release}${shared_ext}$major'
  15827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15828. shlibpath_var=LD_LIBRARY_PATH
  15829. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15830. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15831. ;;
  15832. solaris*)
  15833. version_type=linux
  15834. need_lib_prefix=no
  15835. need_version=no
  15836. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15837. soname_spec='${libname}${release}${shared_ext}$major'
  15838. shlibpath_var=LD_LIBRARY_PATH
  15839. shlibpath_overrides_runpath=yes
  15840. hardcode_into_libs=yes
  15841. # ldd complains unless libraries are executable
  15842. postinstall_cmds='chmod +x $lib'
  15843. ;;
  15844. sunos4*)
  15845. version_type=sunos
  15846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15847. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15848. shlibpath_var=LD_LIBRARY_PATH
  15849. shlibpath_overrides_runpath=yes
  15850. if test "$with_gnu_ld" = yes; then
  15851. need_lib_prefix=no
  15852. fi
  15853. need_version=yes
  15854. ;;
  15855. sysv4 | sysv4.3*)
  15856. version_type=linux
  15857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15858. soname_spec='${libname}${release}${shared_ext}$major'
  15859. shlibpath_var=LD_LIBRARY_PATH
  15860. case $host_vendor in
  15861. sni)
  15862. shlibpath_overrides_runpath=no
  15863. need_lib_prefix=no
  15864. export_dynamic_flag_spec='${wl}-Blargedynsym'
  15865. runpath_var=LD_RUN_PATH
  15866. ;;
  15867. siemens)
  15868. need_lib_prefix=no
  15869. ;;
  15870. motorola)
  15871. need_lib_prefix=no
  15872. need_version=no
  15873. shlibpath_overrides_runpath=no
  15874. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15875. ;;
  15876. esac
  15877. ;;
  15878. sysv4*MP*)
  15879. if test -d /usr/nec ;then
  15880. version_type=linux
  15881. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15882. soname_spec='$libname${shared_ext}.$major'
  15883. shlibpath_var=LD_LIBRARY_PATH
  15884. fi
  15885. ;;
  15886. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15887. version_type=freebsd-elf
  15888. need_lib_prefix=no
  15889. need_version=no
  15890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15891. soname_spec='${libname}${release}${shared_ext}$major'
  15892. shlibpath_var=LD_LIBRARY_PATH
  15893. hardcode_into_libs=yes
  15894. if test "$with_gnu_ld" = yes; then
  15895. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15896. shlibpath_overrides_runpath=no
  15897. else
  15898. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15899. shlibpath_overrides_runpath=yes
  15900. case $host_os in
  15901. sco3.2v5*)
  15902. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15903. ;;
  15904. esac
  15905. fi
  15906. sys_lib_dlsearch_path_spec='/usr/lib'
  15907. ;;
  15908. uts4*)
  15909. version_type=linux
  15910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15911. soname_spec='${libname}${release}${shared_ext}$major'
  15912. shlibpath_var=LD_LIBRARY_PATH
  15913. ;;
  15914. *)
  15915. dynamic_linker=no
  15916. ;;
  15917. esac
  15918. echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  15919. echo "${ECHO_T}$dynamic_linker" >&6
  15920. test "$dynamic_linker" = no && can_build_shared=no
  15921. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15922. if test "$GCC" = yes; then
  15923. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15924. fi
  15925. echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15926. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15927. hardcode_action_GCJ=
  15928. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  15929. test -n "$runpath_var_GCJ" || \
  15930. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  15931. # We can hardcode non-existant directories.
  15932. if test "$hardcode_direct_GCJ" != no &&
  15933. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15934. # have to relink, otherwise we might link with an installed library
  15935. # when we should be linking with a yet-to-be-installed one
  15936. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  15937. test "$hardcode_minus_L_GCJ" != no; then
  15938. # Linking always hardcodes the temporary library directory.
  15939. hardcode_action_GCJ=relink
  15940. else
  15941. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15942. hardcode_action_GCJ=immediate
  15943. fi
  15944. else
  15945. # We cannot hardcode anything, or else we can only hardcode existing
  15946. # directories.
  15947. hardcode_action_GCJ=unsupported
  15948. fi
  15949. echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  15950. echo "${ECHO_T}$hardcode_action_GCJ" >&6
  15951. if test "$hardcode_action_GCJ" = relink; then
  15952. # Fast installation is not supported
  15953. enable_fast_install=no
  15954. elif test "$shlibpath_overrides_runpath" = yes ||
  15955. test "$enable_shared" = no; then
  15956. # Fast installation is not necessary
  15957. enable_fast_install=needless
  15958. fi
  15959. # The else clause should only fire when bootstrapping the
  15960. # libtool distribution, otherwise you forgot to ship ltmain.sh
  15961. # with your package, and you will get complaints that there are
  15962. # no rules to generate ltmain.sh.
  15963. if test -f "$ltmain"; then
  15964. # See if we are running on zsh, and set the options which allow our commands through
  15965. # without removal of \ escapes.
  15966. if test -n "${ZSH_VERSION+set}" ; then
  15967. setopt NO_GLOB_SUBST
  15968. fi
  15969. # Now quote all the things that may contain metacharacters while being
  15970. # careful not to overquote the AC_SUBSTed values. We take copies of the
  15971. # variables and quote the copies for generation of the libtool script.
  15972. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  15973. SED SHELL STRIP \
  15974. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15975. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15976. deplibs_check_method reload_flag reload_cmds need_locks \
  15977. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15978. lt_cv_sys_global_symbol_to_c_name_address \
  15979. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15980. old_postinstall_cmds old_postuninstall_cmds \
  15981. compiler_GCJ \
  15982. CC_GCJ \
  15983. LD_GCJ \
  15984. lt_prog_compiler_wl_GCJ \
  15985. lt_prog_compiler_pic_GCJ \
  15986. lt_prog_compiler_static_GCJ \
  15987. lt_prog_compiler_no_builtin_flag_GCJ \
  15988. export_dynamic_flag_spec_GCJ \
  15989. thread_safe_flag_spec_GCJ \
  15990. whole_archive_flag_spec_GCJ \
  15991. enable_shared_with_static_runtimes_GCJ \
  15992. old_archive_cmds_GCJ \
  15993. old_archive_from_new_cmds_GCJ \
  15994. predep_objects_GCJ \
  15995. postdep_objects_GCJ \
  15996. predeps_GCJ \
  15997. postdeps_GCJ \
  15998. compiler_lib_search_path_GCJ \
  15999. archive_cmds_GCJ \
  16000. archive_expsym_cmds_GCJ \
  16001. postinstall_cmds_GCJ \
  16002. postuninstall_cmds_GCJ \
  16003. old_archive_from_expsyms_cmds_GCJ \
  16004. allow_undefined_flag_GCJ \
  16005. no_undefined_flag_GCJ \
  16006. export_symbols_cmds_GCJ \
  16007. hardcode_libdir_flag_spec_GCJ \
  16008. hardcode_libdir_flag_spec_ld_GCJ \
  16009. hardcode_libdir_separator_GCJ \
  16010. hardcode_automatic_GCJ \
  16011. module_cmds_GCJ \
  16012. module_expsym_cmds_GCJ \
  16013. lt_cv_prog_compiler_c_o_GCJ \
  16014. exclude_expsyms_GCJ \
  16015. include_expsyms_GCJ; do
  16016. case $var in
  16017. old_archive_cmds_GCJ | \
  16018. old_archive_from_new_cmds_GCJ | \
  16019. archive_cmds_GCJ | \
  16020. archive_expsym_cmds_GCJ | \
  16021. module_cmds_GCJ | \
  16022. module_expsym_cmds_GCJ | \
  16023. old_archive_from_expsyms_cmds_GCJ | \
  16024. export_symbols_cmds_GCJ | \
  16025. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16026. postinstall_cmds | postuninstall_cmds | \
  16027. old_postinstall_cmds | old_postuninstall_cmds | \
  16028. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16029. # Double-quote double-evaled strings.
  16030. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16031. ;;
  16032. *)
  16033. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16034. ;;
  16035. esac
  16036. done
  16037. case $lt_echo in
  16038. *'\$0 --fallback-echo"')
  16039. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16040. ;;
  16041. esac
  16042. cfgfile="$ofile"
  16043. cat <<__EOF__ >> "$cfgfile"
  16044. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16045. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16046. # Shell to use when invoking shell scripts.
  16047. SHELL=$lt_SHELL
  16048. # Whether or not to build shared libraries.
  16049. build_libtool_libs=$enable_shared
  16050. # Whether or not to build static libraries.
  16051. build_old_libs=$enable_static
  16052. # Whether or not to add -lc for building shared libraries.
  16053. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16054. # Whether or not to disallow shared libs when runtime libs are static
  16055. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16056. # Whether or not to optimize for fast installation.
  16057. fast_install=$enable_fast_install
  16058. # The host system.
  16059. host_alias=$host_alias
  16060. host=$host
  16061. host_os=$host_os
  16062. # The build system.
  16063. build_alias=$build_alias
  16064. build=$build
  16065. build_os=$build_os
  16066. # An echo program that does not interpret backslashes.
  16067. echo=$lt_echo
  16068. # The archiver.
  16069. AR=$lt_AR
  16070. AR_FLAGS=$lt_AR_FLAGS
  16071. # A C compiler.
  16072. LTCC=$lt_LTCC
  16073. # LTCC compiler flags.
  16074. LTCFLAGS=$lt_LTCFLAGS
  16075. # A language-specific compiler.
  16076. CC=$lt_compiler_GCJ
  16077. # Is the compiler the GNU C compiler?
  16078. with_gcc=$GCC_GCJ
  16079. # An ERE matcher.
  16080. EGREP=$lt_EGREP
  16081. # The linker used to build libraries.
  16082. LD=$lt_LD_GCJ
  16083. # Whether we need hard or soft links.
  16084. LN_S=$lt_LN_S
  16085. # A BSD-compatible nm program.
  16086. NM=$lt_NM
  16087. # A symbol stripping program
  16088. STRIP=$lt_STRIP
  16089. # Used to examine libraries when file_magic_cmd begins "file"
  16090. MAGIC_CMD=$MAGIC_CMD
  16091. # Used on cygwin: DLL creation program.
  16092. DLLTOOL="$DLLTOOL"
  16093. # Used on cygwin: object dumper.
  16094. OBJDUMP="$OBJDUMP"
  16095. # Used on cygwin: assembler.
  16096. AS="$AS"
  16097. # The name of the directory that contains temporary libtool files.
  16098. objdir=$objdir
  16099. # How to create reloadable object files.
  16100. reload_flag=$lt_reload_flag
  16101. reload_cmds=$lt_reload_cmds
  16102. # How to pass a linker flag through the compiler.
  16103. wl=$lt_lt_prog_compiler_wl_GCJ
  16104. # Object file suffix (normally "o").
  16105. objext="$ac_objext"
  16106. # Old archive suffix (normally "a").
  16107. libext="$libext"
  16108. # Shared library suffix (normally ".so").
  16109. shrext_cmds='$shrext_cmds'
  16110. # Executable file suffix (normally "").
  16111. exeext="$exeext"
  16112. # Additional compiler flags for building library objects.
  16113. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16114. pic_mode=$pic_mode
  16115. # What is the maximum length of a command?
  16116. max_cmd_len=$lt_cv_sys_max_cmd_len
  16117. # Does compiler simultaneously support -c and -o options?
  16118. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16119. # Must we lock files when doing compilation?
  16120. need_locks=$lt_need_locks
  16121. # Do we need the lib prefix for modules?
  16122. need_lib_prefix=$need_lib_prefix
  16123. # Do we need a version for libraries?
  16124. need_version=$need_version
  16125. # Whether dlopen is supported.
  16126. dlopen_support=$enable_dlopen
  16127. # Whether dlopen of programs is supported.
  16128. dlopen_self=$enable_dlopen_self
  16129. # Whether dlopen of statically linked programs is supported.
  16130. dlopen_self_static=$enable_dlopen_self_static
  16131. # Compiler flag to prevent dynamic linking.
  16132. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16133. # Compiler flag to turn off builtin functions.
  16134. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16135. # Compiler flag to allow reflexive dlopens.
  16136. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16137. # Compiler flag to generate shared objects directly from archives.
  16138. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16139. # Compiler flag to generate thread-safe objects.
  16140. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16141. # Library versioning type.
  16142. version_type=$version_type
  16143. # Format of library name prefix.
  16144. libname_spec=$lt_libname_spec
  16145. # List of archive names. First name is the real one, the rest are links.
  16146. # The last name is the one that the linker finds with -lNAME.
  16147. library_names_spec=$lt_library_names_spec
  16148. # The coded name of the library, if different from the real name.
  16149. soname_spec=$lt_soname_spec
  16150. # Commands used to build and install an old-style archive.
  16151. RANLIB=$lt_RANLIB
  16152. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16153. old_postinstall_cmds=$lt_old_postinstall_cmds
  16154. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16155. # Create an old-style archive from a shared archive.
  16156. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16157. # Create a temporary old-style archive to link instead of a shared archive.
  16158. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16159. # Commands used to build and install a shared archive.
  16160. archive_cmds=$lt_archive_cmds_GCJ
  16161. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  16162. postinstall_cmds=$lt_postinstall_cmds
  16163. postuninstall_cmds=$lt_postuninstall_cmds
  16164. # Commands used to build a loadable module (assumed same as above if empty)
  16165. module_cmds=$lt_module_cmds_GCJ
  16166. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  16167. # Commands to strip libraries.
  16168. old_striplib=$lt_old_striplib
  16169. striplib=$lt_striplib
  16170. # Dependencies to place before the objects being linked to create a
  16171. # shared library.
  16172. predep_objects=$lt_predep_objects_GCJ
  16173. # Dependencies to place after the objects being linked to create a
  16174. # shared library.
  16175. postdep_objects=$lt_postdep_objects_GCJ
  16176. # Dependencies to place before the objects being linked to create a
  16177. # shared library.
  16178. predeps=$lt_predeps_GCJ
  16179. # Dependencies to place after the objects being linked to create a
  16180. # shared library.
  16181. postdeps=$lt_postdeps_GCJ
  16182. # The library search path used internally by the compiler when linking
  16183. # a shared library.
  16184. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  16185. # Method to check whether dependent libraries are shared objects.
  16186. deplibs_check_method=$lt_deplibs_check_method
  16187. # Command to use when deplibs_check_method == file_magic.
  16188. file_magic_cmd=$lt_file_magic_cmd
  16189. # Flag that allows shared libraries with undefined symbols to be built.
  16190. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  16191. # Flag that forces no undefined symbols.
  16192. no_undefined_flag=$lt_no_undefined_flag_GCJ
  16193. # Commands used to finish a libtool library installation in a directory.
  16194. finish_cmds=$lt_finish_cmds
  16195. # Same as above, but a single script fragment to be evaled but not shown.
  16196. finish_eval=$lt_finish_eval
  16197. # Take the output of nm and produce a listing of raw symbols and C names.
  16198. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16199. # Transform the output of nm in a proper C declaration
  16200. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16201. # Transform the output of nm in a C name address pair
  16202. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16203. # This is the shared library runtime path variable.
  16204. runpath_var=$runpath_var
  16205. # This is the shared library path variable.
  16206. shlibpath_var=$shlibpath_var
  16207. # Is shlibpath searched before the hard-coded library search path?
  16208. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16209. # How to hardcode a shared library path into an executable.
  16210. hardcode_action=$hardcode_action_GCJ
  16211. # Whether we should hardcode library paths into libraries.
  16212. hardcode_into_libs=$hardcode_into_libs
  16213. # Flag to hardcode \$libdir into a binary during linking.
  16214. # This must work even if \$libdir does not exist.
  16215. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  16216. # If ld is used when linking, flag to hardcode \$libdir into
  16217. # a binary during linking. This must work even if \$libdir does
  16218. # not exist.
  16219. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  16220. # Whether we need a single -rpath flag with a separated argument.
  16221. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  16222. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16223. # resulting binary.
  16224. hardcode_direct=$hardcode_direct_GCJ
  16225. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16226. # resulting binary.
  16227. hardcode_minus_L=$hardcode_minus_L_GCJ
  16228. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16229. # the resulting binary.
  16230. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  16231. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16232. # and all subsequent libraries and executables linked against it.
  16233. hardcode_automatic=$hardcode_automatic_GCJ
  16234. # Variables whose values should be saved in libtool wrapper scripts and
  16235. # restored at relink time.
  16236. variables_saved_for_relink="$variables_saved_for_relink"
  16237. # Whether libtool must link a program against all its dependency libraries.
  16238. link_all_deplibs=$link_all_deplibs_GCJ
  16239. # Compile-time system search path for libraries
  16240. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16241. # Run-time system search path for libraries
  16242. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16243. # Fix the shell variable \$srcfile for the compiler.
  16244. fix_srcfile_path="$fix_srcfile_path_GCJ"
  16245. # Set to yes if exported symbols are required.
  16246. always_export_symbols=$always_export_symbols_GCJ
  16247. # The commands to list exported symbols.
  16248. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  16249. # The commands to extract the exported symbol list from a shared archive.
  16250. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16251. # Symbols that should not be listed in the preloaded symbols.
  16252. exclude_expsyms=$lt_exclude_expsyms_GCJ
  16253. # Symbols that must always be exported.
  16254. include_expsyms=$lt_include_expsyms_GCJ
  16255. # ### END LIBTOOL TAG CONFIG: $tagname
  16256. __EOF__
  16257. else
  16258. # If there is no Makefile yet, we rely on a make rule to execute
  16259. # `config.status --recheck' to rerun these tests and create the
  16260. # libtool script then.
  16261. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16262. if test -f "$ltmain_in"; then
  16263. test -f Makefile && make "$ltmain"
  16264. fi
  16265. fi
  16266. ac_ext=c
  16267. ac_cpp='$CPP $CPPFLAGS'
  16268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16271. CC="$lt_save_CC"
  16272. else
  16273. tagname=""
  16274. fi
  16275. ;;
  16276. RC)
  16277. # Source file extension for RC test sources.
  16278. ac_ext=rc
  16279. # Object file extension for compiled RC test sources.
  16280. objext=o
  16281. objext_RC=$objext
  16282. # Code to be used in simple compile tests
  16283. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  16284. # Code to be used in simple link tests
  16285. lt_simple_link_test_code="$lt_simple_compile_test_code"
  16286. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16287. # If no C compiler was specified, use CC.
  16288. LTCC=${LTCC-"$CC"}
  16289. # If no C compiler flags were specified, use CFLAGS.
  16290. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16291. # Allow CC to be a program name with arguments.
  16292. compiler=$CC
  16293. # save warnings/boilerplate of simple test code
  16294. ac_outfile=conftest.$ac_objext
  16295. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  16296. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16297. _lt_compiler_boilerplate=`cat conftest.err`
  16298. $rm conftest*
  16299. ac_outfile=conftest.$ac_objext
  16300. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  16301. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  16302. _lt_linker_boilerplate=`cat conftest.err`
  16303. $rm conftest*
  16304. # Allow CC to be a program name with arguments.
  16305. lt_save_CC="$CC"
  16306. CC=${RC-"windres"}
  16307. compiler=$CC
  16308. compiler_RC=$CC
  16309. for cc_temp in $compiler""; do
  16310. case $cc_temp in
  16311. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16312. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16313. \-*) ;;
  16314. *) break;;
  16315. esac
  16316. done
  16317. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  16318. lt_cv_prog_compiler_c_o_RC=yes
  16319. # The else clause should only fire when bootstrapping the
  16320. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16321. # with your package, and you will get complaints that there are
  16322. # no rules to generate ltmain.sh.
  16323. if test -f "$ltmain"; then
  16324. # See if we are running on zsh, and set the options which allow our commands through
  16325. # without removal of \ escapes.
  16326. if test -n "${ZSH_VERSION+set}" ; then
  16327. setopt NO_GLOB_SUBST
  16328. fi
  16329. # Now quote all the things that may contain metacharacters while being
  16330. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16331. # variables and quote the copies for generation of the libtool script.
  16332. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16333. SED SHELL STRIP \
  16334. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16335. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16336. deplibs_check_method reload_flag reload_cmds need_locks \
  16337. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16338. lt_cv_sys_global_symbol_to_c_name_address \
  16339. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16340. old_postinstall_cmds old_postuninstall_cmds \
  16341. compiler_RC \
  16342. CC_RC \
  16343. LD_RC \
  16344. lt_prog_compiler_wl_RC \
  16345. lt_prog_compiler_pic_RC \
  16346. lt_prog_compiler_static_RC \
  16347. lt_prog_compiler_no_builtin_flag_RC \
  16348. export_dynamic_flag_spec_RC \
  16349. thread_safe_flag_spec_RC \
  16350. whole_archive_flag_spec_RC \
  16351. enable_shared_with_static_runtimes_RC \
  16352. old_archive_cmds_RC \
  16353. old_archive_from_new_cmds_RC \
  16354. predep_objects_RC \
  16355. postdep_objects_RC \
  16356. predeps_RC \
  16357. postdeps_RC \
  16358. compiler_lib_search_path_RC \
  16359. archive_cmds_RC \
  16360. archive_expsym_cmds_RC \
  16361. postinstall_cmds_RC \
  16362. postuninstall_cmds_RC \
  16363. old_archive_from_expsyms_cmds_RC \
  16364. allow_undefined_flag_RC \
  16365. no_undefined_flag_RC \
  16366. export_symbols_cmds_RC \
  16367. hardcode_libdir_flag_spec_RC \
  16368. hardcode_libdir_flag_spec_ld_RC \
  16369. hardcode_libdir_separator_RC \
  16370. hardcode_automatic_RC \
  16371. module_cmds_RC \
  16372. module_expsym_cmds_RC \
  16373. lt_cv_prog_compiler_c_o_RC \
  16374. exclude_expsyms_RC \
  16375. include_expsyms_RC; do
  16376. case $var in
  16377. old_archive_cmds_RC | \
  16378. old_archive_from_new_cmds_RC | \
  16379. archive_cmds_RC | \
  16380. archive_expsym_cmds_RC | \
  16381. module_cmds_RC | \
  16382. module_expsym_cmds_RC | \
  16383. old_archive_from_expsyms_cmds_RC | \
  16384. export_symbols_cmds_RC | \
  16385. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16386. postinstall_cmds | postuninstall_cmds | \
  16387. old_postinstall_cmds | old_postuninstall_cmds | \
  16388. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16389. # Double-quote double-evaled strings.
  16390. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16391. ;;
  16392. *)
  16393. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16394. ;;
  16395. esac
  16396. done
  16397. case $lt_echo in
  16398. *'\$0 --fallback-echo"')
  16399. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16400. ;;
  16401. esac
  16402. cfgfile="$ofile"
  16403. cat <<__EOF__ >> "$cfgfile"
  16404. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16405. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16406. # Shell to use when invoking shell scripts.
  16407. SHELL=$lt_SHELL
  16408. # Whether or not to build shared libraries.
  16409. build_libtool_libs=$enable_shared
  16410. # Whether or not to build static libraries.
  16411. build_old_libs=$enable_static
  16412. # Whether or not to add -lc for building shared libraries.
  16413. build_libtool_need_lc=$archive_cmds_need_lc_RC
  16414. # Whether or not to disallow shared libs when runtime libs are static
  16415. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  16416. # Whether or not to optimize for fast installation.
  16417. fast_install=$enable_fast_install
  16418. # The host system.
  16419. host_alias=$host_alias
  16420. host=$host
  16421. host_os=$host_os
  16422. # The build system.
  16423. build_alias=$build_alias
  16424. build=$build
  16425. build_os=$build_os
  16426. # An echo program that does not interpret backslashes.
  16427. echo=$lt_echo
  16428. # The archiver.
  16429. AR=$lt_AR
  16430. AR_FLAGS=$lt_AR_FLAGS
  16431. # A C compiler.
  16432. LTCC=$lt_LTCC
  16433. # LTCC compiler flags.
  16434. LTCFLAGS=$lt_LTCFLAGS
  16435. # A language-specific compiler.
  16436. CC=$lt_compiler_RC
  16437. # Is the compiler the GNU C compiler?
  16438. with_gcc=$GCC_RC
  16439. # An ERE matcher.
  16440. EGREP=$lt_EGREP
  16441. # The linker used to build libraries.
  16442. LD=$lt_LD_RC
  16443. # Whether we need hard or soft links.
  16444. LN_S=$lt_LN_S
  16445. # A BSD-compatible nm program.
  16446. NM=$lt_NM
  16447. # A symbol stripping program
  16448. STRIP=$lt_STRIP
  16449. # Used to examine libraries when file_magic_cmd begins "file"
  16450. MAGIC_CMD=$MAGIC_CMD
  16451. # Used on cygwin: DLL creation program.
  16452. DLLTOOL="$DLLTOOL"
  16453. # Used on cygwin: object dumper.
  16454. OBJDUMP="$OBJDUMP"
  16455. # Used on cygwin: assembler.
  16456. AS="$AS"
  16457. # The name of the directory that contains temporary libtool files.
  16458. objdir=$objdir
  16459. # How to create reloadable object files.
  16460. reload_flag=$lt_reload_flag
  16461. reload_cmds=$lt_reload_cmds
  16462. # How to pass a linker flag through the compiler.
  16463. wl=$lt_lt_prog_compiler_wl_RC
  16464. # Object file suffix (normally "o").
  16465. objext="$ac_objext"
  16466. # Old archive suffix (normally "a").
  16467. libext="$libext"
  16468. # Shared library suffix (normally ".so").
  16469. shrext_cmds='$shrext_cmds'
  16470. # Executable file suffix (normally "").
  16471. exeext="$exeext"
  16472. # Additional compiler flags for building library objects.
  16473. pic_flag=$lt_lt_prog_compiler_pic_RC
  16474. pic_mode=$pic_mode
  16475. # What is the maximum length of a command?
  16476. max_cmd_len=$lt_cv_sys_max_cmd_len
  16477. # Does compiler simultaneously support -c and -o options?
  16478. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  16479. # Must we lock files when doing compilation?
  16480. need_locks=$lt_need_locks
  16481. # Do we need the lib prefix for modules?
  16482. need_lib_prefix=$need_lib_prefix
  16483. # Do we need a version for libraries?
  16484. need_version=$need_version
  16485. # Whether dlopen is supported.
  16486. dlopen_support=$enable_dlopen
  16487. # Whether dlopen of programs is supported.
  16488. dlopen_self=$enable_dlopen_self
  16489. # Whether dlopen of statically linked programs is supported.
  16490. dlopen_self_static=$enable_dlopen_self_static
  16491. # Compiler flag to prevent dynamic linking.
  16492. link_static_flag=$lt_lt_prog_compiler_static_RC
  16493. # Compiler flag to turn off builtin functions.
  16494. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  16495. # Compiler flag to allow reflexive dlopens.
  16496. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  16497. # Compiler flag to generate shared objects directly from archives.
  16498. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  16499. # Compiler flag to generate thread-safe objects.
  16500. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  16501. # Library versioning type.
  16502. version_type=$version_type
  16503. # Format of library name prefix.
  16504. libname_spec=$lt_libname_spec
  16505. # List of archive names. First name is the real one, the rest are links.
  16506. # The last name is the one that the linker finds with -lNAME.
  16507. library_names_spec=$lt_library_names_spec
  16508. # The coded name of the library, if different from the real name.
  16509. soname_spec=$lt_soname_spec
  16510. # Commands used to build and install an old-style archive.
  16511. RANLIB=$lt_RANLIB
  16512. old_archive_cmds=$lt_old_archive_cmds_RC
  16513. old_postinstall_cmds=$lt_old_postinstall_cmds
  16514. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16515. # Create an old-style archive from a shared archive.
  16516. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  16517. # Create a temporary old-style archive to link instead of a shared archive.
  16518. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  16519. # Commands used to build and install a shared archive.
  16520. archive_cmds=$lt_archive_cmds_RC
  16521. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  16522. postinstall_cmds=$lt_postinstall_cmds
  16523. postuninstall_cmds=$lt_postuninstall_cmds
  16524. # Commands used to build a loadable module (assumed same as above if empty)
  16525. module_cmds=$lt_module_cmds_RC
  16526. module_expsym_cmds=$lt_module_expsym_cmds_RC
  16527. # Commands to strip libraries.
  16528. old_striplib=$lt_old_striplib
  16529. striplib=$lt_striplib
  16530. # Dependencies to place before the objects being linked to create a
  16531. # shared library.
  16532. predep_objects=$lt_predep_objects_RC
  16533. # Dependencies to place after the objects being linked to create a
  16534. # shared library.
  16535. postdep_objects=$lt_postdep_objects_RC
  16536. # Dependencies to place before the objects being linked to create a
  16537. # shared library.
  16538. predeps=$lt_predeps_RC
  16539. # Dependencies to place after the objects being linked to create a
  16540. # shared library.
  16541. postdeps=$lt_postdeps_RC
  16542. # The library search path used internally by the compiler when linking
  16543. # a shared library.
  16544. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  16545. # Method to check whether dependent libraries are shared objects.
  16546. deplibs_check_method=$lt_deplibs_check_method
  16547. # Command to use when deplibs_check_method == file_magic.
  16548. file_magic_cmd=$lt_file_magic_cmd
  16549. # Flag that allows shared libraries with undefined symbols to be built.
  16550. allow_undefined_flag=$lt_allow_undefined_flag_RC
  16551. # Flag that forces no undefined symbols.
  16552. no_undefined_flag=$lt_no_undefined_flag_RC
  16553. # Commands used to finish a libtool library installation in a directory.
  16554. finish_cmds=$lt_finish_cmds
  16555. # Same as above, but a single script fragment to be evaled but not shown.
  16556. finish_eval=$lt_finish_eval
  16557. # Take the output of nm and produce a listing of raw symbols and C names.
  16558. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16559. # Transform the output of nm in a proper C declaration
  16560. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16561. # Transform the output of nm in a C name address pair
  16562. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16563. # This is the shared library runtime path variable.
  16564. runpath_var=$runpath_var
  16565. # This is the shared library path variable.
  16566. shlibpath_var=$shlibpath_var
  16567. # Is shlibpath searched before the hard-coded library search path?
  16568. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16569. # How to hardcode a shared library path into an executable.
  16570. hardcode_action=$hardcode_action_RC
  16571. # Whether we should hardcode library paths into libraries.
  16572. hardcode_into_libs=$hardcode_into_libs
  16573. # Flag to hardcode \$libdir into a binary during linking.
  16574. # This must work even if \$libdir does not exist.
  16575. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  16576. # If ld is used when linking, flag to hardcode \$libdir into
  16577. # a binary during linking. This must work even if \$libdir does
  16578. # not exist.
  16579. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  16580. # Whether we need a single -rpath flag with a separated argument.
  16581. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  16582. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  16583. # resulting binary.
  16584. hardcode_direct=$hardcode_direct_RC
  16585. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  16586. # resulting binary.
  16587. hardcode_minus_L=$hardcode_minus_L_RC
  16588. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  16589. # the resulting binary.
  16590. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  16591. # Set to yes if building a shared library automatically hardcodes DIR into the library
  16592. # and all subsequent libraries and executables linked against it.
  16593. hardcode_automatic=$hardcode_automatic_RC
  16594. # Variables whose values should be saved in libtool wrapper scripts and
  16595. # restored at relink time.
  16596. variables_saved_for_relink="$variables_saved_for_relink"
  16597. # Whether libtool must link a program against all its dependency libraries.
  16598. link_all_deplibs=$link_all_deplibs_RC
  16599. # Compile-time system search path for libraries
  16600. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16601. # Run-time system search path for libraries
  16602. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16603. # Fix the shell variable \$srcfile for the compiler.
  16604. fix_srcfile_path="$fix_srcfile_path_RC"
  16605. # Set to yes if exported symbols are required.
  16606. always_export_symbols=$always_export_symbols_RC
  16607. # The commands to list exported symbols.
  16608. export_symbols_cmds=$lt_export_symbols_cmds_RC
  16609. # The commands to extract the exported symbol list from a shared archive.
  16610. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16611. # Symbols that should not be listed in the preloaded symbols.
  16612. exclude_expsyms=$lt_exclude_expsyms_RC
  16613. # Symbols that must always be exported.
  16614. include_expsyms=$lt_include_expsyms_RC
  16615. # ### END LIBTOOL TAG CONFIG: $tagname
  16616. __EOF__
  16617. else
  16618. # If there is no Makefile yet, we rely on a make rule to execute
  16619. # `config.status --recheck' to rerun these tests and create the
  16620. # libtool script then.
  16621. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16622. if test -f "$ltmain_in"; then
  16623. test -f Makefile && make "$ltmain"
  16624. fi
  16625. fi
  16626. ac_ext=c
  16627. ac_cpp='$CPP $CPPFLAGS'
  16628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16631. CC="$lt_save_CC"
  16632. ;;
  16633. *)
  16634. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  16635. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  16636. { (exit 1); exit 1; }; }
  16637. ;;
  16638. esac
  16639. # Append the new tag name to the list of available tags.
  16640. if test -n "$tagname" ; then
  16641. available_tags="$available_tags $tagname"
  16642. fi
  16643. fi
  16644. done
  16645. IFS="$lt_save_ifs"
  16646. # Now substitute the updated list of available tags.
  16647. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  16648. mv "${ofile}T" "$ofile"
  16649. chmod +x "$ofile"
  16650. else
  16651. rm -f "${ofile}T"
  16652. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  16653. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  16654. { (exit 1); exit 1; }; }
  16655. fi
  16656. fi
  16657. # This can be used to rebuild libtool when needed
  16658. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  16659. # Always use our own libtool.
  16660. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  16661. # Prevent multiple expansion
  16662. # Checks for header files.
  16663. ac_header_dirent=no
  16664. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  16665. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  16666. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  16667. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  16668. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  16669. echo $ECHO_N "(cached) $ECHO_C" >&6
  16670. else
  16671. cat >conftest.$ac_ext <<_ACEOF
  16672. /* confdefs.h. */
  16673. _ACEOF
  16674. cat confdefs.h >>conftest.$ac_ext
  16675. cat >>conftest.$ac_ext <<_ACEOF
  16676. /* end confdefs.h. */
  16677. #include <sys/types.h>
  16678. #include <$ac_hdr>
  16679. int
  16680. main ()
  16681. {
  16682. if ((DIR *) 0)
  16683. return 0;
  16684. ;
  16685. return 0;
  16686. }
  16687. _ACEOF
  16688. rm -f conftest.$ac_objext
  16689. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16690. (eval $ac_compile) 2>conftest.er1
  16691. ac_status=$?
  16692. grep -v '^ *+' conftest.er1 >conftest.err
  16693. rm -f conftest.er1
  16694. cat conftest.err >&5
  16695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16696. (exit $ac_status); } &&
  16697. { ac_try='test -z "$ac_c_werror_flag"
  16698. || test ! -s conftest.err'
  16699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16700. (eval $ac_try) 2>&5
  16701. ac_status=$?
  16702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16703. (exit $ac_status); }; } &&
  16704. { ac_try='test -s conftest.$ac_objext'
  16705. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16706. (eval $ac_try) 2>&5
  16707. ac_status=$?
  16708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16709. (exit $ac_status); }; }; then
  16710. eval "$as_ac_Header=yes"
  16711. else
  16712. echo "$as_me: failed program was:" >&5
  16713. sed 's/^/| /' conftest.$ac_ext >&5
  16714. eval "$as_ac_Header=no"
  16715. fi
  16716. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  16717. fi
  16718. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  16719. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  16720. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16721. cat >>confdefs.h <<_ACEOF
  16722. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  16723. _ACEOF
  16724. ac_header_dirent=$ac_hdr; break
  16725. fi
  16726. done
  16727. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  16728. if test $ac_header_dirent = dirent.h; then
  16729. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16730. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16731. if test "${ac_cv_search_opendir+set}" = set; then
  16732. echo $ECHO_N "(cached) $ECHO_C" >&6
  16733. else
  16734. ac_func_search_save_LIBS=$LIBS
  16735. ac_cv_search_opendir=no
  16736. cat >conftest.$ac_ext <<_ACEOF
  16737. /* confdefs.h. */
  16738. _ACEOF
  16739. cat confdefs.h >>conftest.$ac_ext
  16740. cat >>conftest.$ac_ext <<_ACEOF
  16741. /* end confdefs.h. */
  16742. /* Override any gcc2 internal prototype to avoid an error. */
  16743. #ifdef __cplusplus
  16744. extern "C"
  16745. #endif
  16746. /* We use char because int might match the return type of a gcc2
  16747. builtin and then its argument prototype would still apply. */
  16748. char opendir ();
  16749. int
  16750. main ()
  16751. {
  16752. opendir ();
  16753. ;
  16754. return 0;
  16755. }
  16756. _ACEOF
  16757. rm -f conftest.$ac_objext conftest$ac_exeext
  16758. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16759. (eval $ac_link) 2>conftest.er1
  16760. ac_status=$?
  16761. grep -v '^ *+' conftest.er1 >conftest.err
  16762. rm -f conftest.er1
  16763. cat conftest.err >&5
  16764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16765. (exit $ac_status); } &&
  16766. { ac_try='test -z "$ac_c_werror_flag"
  16767. || test ! -s conftest.err'
  16768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16769. (eval $ac_try) 2>&5
  16770. ac_status=$?
  16771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16772. (exit $ac_status); }; } &&
  16773. { ac_try='test -s conftest$ac_exeext'
  16774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16775. (eval $ac_try) 2>&5
  16776. ac_status=$?
  16777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16778. (exit $ac_status); }; }; then
  16779. ac_cv_search_opendir="none required"
  16780. else
  16781. echo "$as_me: failed program was:" >&5
  16782. sed 's/^/| /' conftest.$ac_ext >&5
  16783. fi
  16784. rm -f conftest.err conftest.$ac_objext \
  16785. conftest$ac_exeext conftest.$ac_ext
  16786. if test "$ac_cv_search_opendir" = no; then
  16787. for ac_lib in dir; do
  16788. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16789. cat >conftest.$ac_ext <<_ACEOF
  16790. /* confdefs.h. */
  16791. _ACEOF
  16792. cat confdefs.h >>conftest.$ac_ext
  16793. cat >>conftest.$ac_ext <<_ACEOF
  16794. /* end confdefs.h. */
  16795. /* Override any gcc2 internal prototype to avoid an error. */
  16796. #ifdef __cplusplus
  16797. extern "C"
  16798. #endif
  16799. /* We use char because int might match the return type of a gcc2
  16800. builtin and then its argument prototype would still apply. */
  16801. char opendir ();
  16802. int
  16803. main ()
  16804. {
  16805. opendir ();
  16806. ;
  16807. return 0;
  16808. }
  16809. _ACEOF
  16810. rm -f conftest.$ac_objext conftest$ac_exeext
  16811. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16812. (eval $ac_link) 2>conftest.er1
  16813. ac_status=$?
  16814. grep -v '^ *+' conftest.er1 >conftest.err
  16815. rm -f conftest.er1
  16816. cat conftest.err >&5
  16817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16818. (exit $ac_status); } &&
  16819. { ac_try='test -z "$ac_c_werror_flag"
  16820. || test ! -s conftest.err'
  16821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16822. (eval $ac_try) 2>&5
  16823. ac_status=$?
  16824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16825. (exit $ac_status); }; } &&
  16826. { ac_try='test -s conftest$ac_exeext'
  16827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16828. (eval $ac_try) 2>&5
  16829. ac_status=$?
  16830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16831. (exit $ac_status); }; }; then
  16832. ac_cv_search_opendir="-l$ac_lib"
  16833. break
  16834. else
  16835. echo "$as_me: failed program was:" >&5
  16836. sed 's/^/| /' conftest.$ac_ext >&5
  16837. fi
  16838. rm -f conftest.err conftest.$ac_objext \
  16839. conftest$ac_exeext conftest.$ac_ext
  16840. done
  16841. fi
  16842. LIBS=$ac_func_search_save_LIBS
  16843. fi
  16844. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16845. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16846. if test "$ac_cv_search_opendir" != no; then
  16847. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16848. fi
  16849. else
  16850. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  16851. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  16852. if test "${ac_cv_search_opendir+set}" = set; then
  16853. echo $ECHO_N "(cached) $ECHO_C" >&6
  16854. else
  16855. ac_func_search_save_LIBS=$LIBS
  16856. ac_cv_search_opendir=no
  16857. cat >conftest.$ac_ext <<_ACEOF
  16858. /* confdefs.h. */
  16859. _ACEOF
  16860. cat confdefs.h >>conftest.$ac_ext
  16861. cat >>conftest.$ac_ext <<_ACEOF
  16862. /* end confdefs.h. */
  16863. /* Override any gcc2 internal prototype to avoid an error. */
  16864. #ifdef __cplusplus
  16865. extern "C"
  16866. #endif
  16867. /* We use char because int might match the return type of a gcc2
  16868. builtin and then its argument prototype would still apply. */
  16869. char opendir ();
  16870. int
  16871. main ()
  16872. {
  16873. opendir ();
  16874. ;
  16875. return 0;
  16876. }
  16877. _ACEOF
  16878. rm -f conftest.$ac_objext conftest$ac_exeext
  16879. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16880. (eval $ac_link) 2>conftest.er1
  16881. ac_status=$?
  16882. grep -v '^ *+' conftest.er1 >conftest.err
  16883. rm -f conftest.er1
  16884. cat conftest.err >&5
  16885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16886. (exit $ac_status); } &&
  16887. { ac_try='test -z "$ac_c_werror_flag"
  16888. || test ! -s conftest.err'
  16889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16890. (eval $ac_try) 2>&5
  16891. ac_status=$?
  16892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16893. (exit $ac_status); }; } &&
  16894. { ac_try='test -s conftest$ac_exeext'
  16895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16896. (eval $ac_try) 2>&5
  16897. ac_status=$?
  16898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16899. (exit $ac_status); }; }; then
  16900. ac_cv_search_opendir="none required"
  16901. else
  16902. echo "$as_me: failed program was:" >&5
  16903. sed 's/^/| /' conftest.$ac_ext >&5
  16904. fi
  16905. rm -f conftest.err conftest.$ac_objext \
  16906. conftest$ac_exeext conftest.$ac_ext
  16907. if test "$ac_cv_search_opendir" = no; then
  16908. for ac_lib in x; do
  16909. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16910. cat >conftest.$ac_ext <<_ACEOF
  16911. /* confdefs.h. */
  16912. _ACEOF
  16913. cat confdefs.h >>conftest.$ac_ext
  16914. cat >>conftest.$ac_ext <<_ACEOF
  16915. /* end confdefs.h. */
  16916. /* Override any gcc2 internal prototype to avoid an error. */
  16917. #ifdef __cplusplus
  16918. extern "C"
  16919. #endif
  16920. /* We use char because int might match the return type of a gcc2
  16921. builtin and then its argument prototype would still apply. */
  16922. char opendir ();
  16923. int
  16924. main ()
  16925. {
  16926. opendir ();
  16927. ;
  16928. return 0;
  16929. }
  16930. _ACEOF
  16931. rm -f conftest.$ac_objext conftest$ac_exeext
  16932. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16933. (eval $ac_link) 2>conftest.er1
  16934. ac_status=$?
  16935. grep -v '^ *+' conftest.er1 >conftest.err
  16936. rm -f conftest.er1
  16937. cat conftest.err >&5
  16938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16939. (exit $ac_status); } &&
  16940. { ac_try='test -z "$ac_c_werror_flag"
  16941. || test ! -s conftest.err'
  16942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16943. (eval $ac_try) 2>&5
  16944. ac_status=$?
  16945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16946. (exit $ac_status); }; } &&
  16947. { ac_try='test -s conftest$ac_exeext'
  16948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16949. (eval $ac_try) 2>&5
  16950. ac_status=$?
  16951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16952. (exit $ac_status); }; }; then
  16953. ac_cv_search_opendir="-l$ac_lib"
  16954. break
  16955. else
  16956. echo "$as_me: failed program was:" >&5
  16957. sed 's/^/| /' conftest.$ac_ext >&5
  16958. fi
  16959. rm -f conftest.err conftest.$ac_objext \
  16960. conftest$ac_exeext conftest.$ac_ext
  16961. done
  16962. fi
  16963. LIBS=$ac_func_search_save_LIBS
  16964. fi
  16965. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  16966. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  16967. if test "$ac_cv_search_opendir" != no; then
  16968. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  16969. fi
  16970. fi
  16971. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  16972. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  16973. if test "${ac_cv_header_stdc+set}" = set; then
  16974. echo $ECHO_N "(cached) $ECHO_C" >&6
  16975. else
  16976. cat >conftest.$ac_ext <<_ACEOF
  16977. /* confdefs.h. */
  16978. _ACEOF
  16979. cat confdefs.h >>conftest.$ac_ext
  16980. cat >>conftest.$ac_ext <<_ACEOF
  16981. /* end confdefs.h. */
  16982. #include <stdlib.h>
  16983. #include <stdarg.h>
  16984. #include <string.h>
  16985. #include <float.h>
  16986. int
  16987. main ()
  16988. {
  16989. ;
  16990. return 0;
  16991. }
  16992. _ACEOF
  16993. rm -f conftest.$ac_objext
  16994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16995. (eval $ac_compile) 2>conftest.er1
  16996. ac_status=$?
  16997. grep -v '^ *+' conftest.er1 >conftest.err
  16998. rm -f conftest.er1
  16999. cat conftest.err >&5
  17000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17001. (exit $ac_status); } &&
  17002. { ac_try='test -z "$ac_c_werror_flag"
  17003. || test ! -s conftest.err'
  17004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17005. (eval $ac_try) 2>&5
  17006. ac_status=$?
  17007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17008. (exit $ac_status); }; } &&
  17009. { ac_try='test -s conftest.$ac_objext'
  17010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17011. (eval $ac_try) 2>&5
  17012. ac_status=$?
  17013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17014. (exit $ac_status); }; }; then
  17015. ac_cv_header_stdc=yes
  17016. else
  17017. echo "$as_me: failed program was:" >&5
  17018. sed 's/^/| /' conftest.$ac_ext >&5
  17019. ac_cv_header_stdc=no
  17020. fi
  17021. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17022. if test $ac_cv_header_stdc = yes; then
  17023. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17024. cat >conftest.$ac_ext <<_ACEOF
  17025. /* confdefs.h. */
  17026. _ACEOF
  17027. cat confdefs.h >>conftest.$ac_ext
  17028. cat >>conftest.$ac_ext <<_ACEOF
  17029. /* end confdefs.h. */
  17030. #include <string.h>
  17031. _ACEOF
  17032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17033. $EGREP "memchr" >/dev/null 2>&1; then
  17034. :
  17035. else
  17036. ac_cv_header_stdc=no
  17037. fi
  17038. rm -f conftest*
  17039. fi
  17040. if test $ac_cv_header_stdc = yes; then
  17041. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17042. cat >conftest.$ac_ext <<_ACEOF
  17043. /* confdefs.h. */
  17044. _ACEOF
  17045. cat confdefs.h >>conftest.$ac_ext
  17046. cat >>conftest.$ac_ext <<_ACEOF
  17047. /* end confdefs.h. */
  17048. #include <stdlib.h>
  17049. _ACEOF
  17050. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17051. $EGREP "free" >/dev/null 2>&1; then
  17052. :
  17053. else
  17054. ac_cv_header_stdc=no
  17055. fi
  17056. rm -f conftest*
  17057. fi
  17058. if test $ac_cv_header_stdc = yes; then
  17059. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17060. if test "$cross_compiling" = yes; then
  17061. :
  17062. else
  17063. cat >conftest.$ac_ext <<_ACEOF
  17064. /* confdefs.h. */
  17065. _ACEOF
  17066. cat confdefs.h >>conftest.$ac_ext
  17067. cat >>conftest.$ac_ext <<_ACEOF
  17068. /* end confdefs.h. */
  17069. #include <ctype.h>
  17070. #if ((' ' & 0x0FF) == 0x020)
  17071. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17072. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17073. #else
  17074. # define ISLOWER(c) \
  17075. (('a' <= (c) && (c) <= 'i') \
  17076. || ('j' <= (c) && (c) <= 'r') \
  17077. || ('s' <= (c) && (c) <= 'z'))
  17078. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17079. #endif
  17080. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17081. int
  17082. main ()
  17083. {
  17084. int i;
  17085. for (i = 0; i < 256; i++)
  17086. if (XOR (islower (i), ISLOWER (i))
  17087. || toupper (i) != TOUPPER (i))
  17088. exit(2);
  17089. exit (0);
  17090. }
  17091. _ACEOF
  17092. rm -f conftest$ac_exeext
  17093. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17094. (eval $ac_link) 2>&5
  17095. ac_status=$?
  17096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17097. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17099. (eval $ac_try) 2>&5
  17100. ac_status=$?
  17101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17102. (exit $ac_status); }; }; then
  17103. :
  17104. else
  17105. echo "$as_me: program exited with status $ac_status" >&5
  17106. echo "$as_me: failed program was:" >&5
  17107. sed 's/^/| /' conftest.$ac_ext >&5
  17108. ( exit $ac_status )
  17109. ac_cv_header_stdc=no
  17110. fi
  17111. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17112. fi
  17113. fi
  17114. fi
  17115. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17116. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  17117. if test $ac_cv_header_stdc = yes; then
  17118. cat >>confdefs.h <<\_ACEOF
  17119. #define STDC_HEADERS 1
  17120. _ACEOF
  17121. fi
  17122. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  17123. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  17124. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  17125. echo $ECHO_N "(cached) $ECHO_C" >&6
  17126. else
  17127. cat >conftest.$ac_ext <<_ACEOF
  17128. /* confdefs.h. */
  17129. _ACEOF
  17130. cat confdefs.h >>conftest.$ac_ext
  17131. cat >>conftest.$ac_ext <<_ACEOF
  17132. /* end confdefs.h. */
  17133. #include <sys/types.h>
  17134. #include <sys/wait.h>
  17135. #ifndef WEXITSTATUS
  17136. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  17137. #endif
  17138. #ifndef WIFEXITED
  17139. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  17140. #endif
  17141. int
  17142. main ()
  17143. {
  17144. int s;
  17145. wait (&s);
  17146. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  17147. ;
  17148. return 0;
  17149. }
  17150. _ACEOF
  17151. rm -f conftest.$ac_objext
  17152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17153. (eval $ac_compile) 2>conftest.er1
  17154. ac_status=$?
  17155. grep -v '^ *+' conftest.er1 >conftest.err
  17156. rm -f conftest.er1
  17157. cat conftest.err >&5
  17158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17159. (exit $ac_status); } &&
  17160. { ac_try='test -z "$ac_c_werror_flag"
  17161. || test ! -s conftest.err'
  17162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17163. (eval $ac_try) 2>&5
  17164. ac_status=$?
  17165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17166. (exit $ac_status); }; } &&
  17167. { ac_try='test -s conftest.$ac_objext'
  17168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17169. (eval $ac_try) 2>&5
  17170. ac_status=$?
  17171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17172. (exit $ac_status); }; }; then
  17173. ac_cv_header_sys_wait_h=yes
  17174. else
  17175. echo "$as_me: failed program was:" >&5
  17176. sed 's/^/| /' conftest.$ac_ext >&5
  17177. ac_cv_header_sys_wait_h=no
  17178. fi
  17179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17180. fi
  17181. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  17182. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  17183. if test $ac_cv_header_sys_wait_h = yes; then
  17184. cat >>confdefs.h <<\_ACEOF
  17185. #define HAVE_SYS_WAIT_H 1
  17186. _ACEOF
  17187. fi
  17188. 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
  17189. do
  17190. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17191. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17192. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17193. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17194. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17195. echo $ECHO_N "(cached) $ECHO_C" >&6
  17196. fi
  17197. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17198. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17199. else
  17200. # Is the header compilable?
  17201. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17202. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17203. cat >conftest.$ac_ext <<_ACEOF
  17204. /* confdefs.h. */
  17205. _ACEOF
  17206. cat confdefs.h >>conftest.$ac_ext
  17207. cat >>conftest.$ac_ext <<_ACEOF
  17208. /* end confdefs.h. */
  17209. $ac_includes_default
  17210. #include <$ac_header>
  17211. _ACEOF
  17212. rm -f conftest.$ac_objext
  17213. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17214. (eval $ac_compile) 2>conftest.er1
  17215. ac_status=$?
  17216. grep -v '^ *+' conftest.er1 >conftest.err
  17217. rm -f conftest.er1
  17218. cat conftest.err >&5
  17219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17220. (exit $ac_status); } &&
  17221. { ac_try='test -z "$ac_c_werror_flag"
  17222. || test ! -s conftest.err'
  17223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17224. (eval $ac_try) 2>&5
  17225. ac_status=$?
  17226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17227. (exit $ac_status); }; } &&
  17228. { ac_try='test -s conftest.$ac_objext'
  17229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17230. (eval $ac_try) 2>&5
  17231. ac_status=$?
  17232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17233. (exit $ac_status); }; }; then
  17234. ac_header_compiler=yes
  17235. else
  17236. echo "$as_me: failed program was:" >&5
  17237. sed 's/^/| /' conftest.$ac_ext >&5
  17238. ac_header_compiler=no
  17239. fi
  17240. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17241. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17242. echo "${ECHO_T}$ac_header_compiler" >&6
  17243. # Is the header present?
  17244. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17245. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17246. cat >conftest.$ac_ext <<_ACEOF
  17247. /* confdefs.h. */
  17248. _ACEOF
  17249. cat confdefs.h >>conftest.$ac_ext
  17250. cat >>conftest.$ac_ext <<_ACEOF
  17251. /* end confdefs.h. */
  17252. #include <$ac_header>
  17253. _ACEOF
  17254. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17255. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17256. ac_status=$?
  17257. grep -v '^ *+' conftest.er1 >conftest.err
  17258. rm -f conftest.er1
  17259. cat conftest.err >&5
  17260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17261. (exit $ac_status); } >/dev/null; then
  17262. if test -s conftest.err; then
  17263. ac_cpp_err=$ac_c_preproc_warn_flag
  17264. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17265. else
  17266. ac_cpp_err=
  17267. fi
  17268. else
  17269. ac_cpp_err=yes
  17270. fi
  17271. if test -z "$ac_cpp_err"; then
  17272. ac_header_preproc=yes
  17273. else
  17274. echo "$as_me: failed program was:" >&5
  17275. sed 's/^/| /' conftest.$ac_ext >&5
  17276. ac_header_preproc=no
  17277. fi
  17278. rm -f conftest.err conftest.$ac_ext
  17279. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17280. echo "${ECHO_T}$ac_header_preproc" >&6
  17281. # So? What about this header?
  17282. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17283. yes:no: )
  17284. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17285. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17286. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17287. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17288. ac_header_preproc=yes
  17289. ;;
  17290. no:yes:* )
  17291. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17292. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17293. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17294. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17295. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17296. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17297. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17298. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17299. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17300. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17301. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17302. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17303. (
  17304. cat <<\_ASBOX
  17305. ## ------------------------------------------ ##
  17306. ## Report this to http://bugzilla.redhat.com/ ##
  17307. ## ------------------------------------------ ##
  17308. _ASBOX
  17309. ) |
  17310. sed "s/^/$as_me: WARNING: /" >&2
  17311. ;;
  17312. esac
  17313. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17314. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17315. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17316. echo $ECHO_N "(cached) $ECHO_C" >&6
  17317. else
  17318. eval "$as_ac_Header=\$ac_header_preproc"
  17319. fi
  17320. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17321. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17322. fi
  17323. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17324. cat >>confdefs.h <<_ACEOF
  17325. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17326. _ACEOF
  17327. fi
  17328. done
  17329. # Checks for typedefs, structures, and compiler characteristics.
  17330. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  17331. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  17332. if test "${ac_cv_header_stat_broken+set}" = set; then
  17333. echo $ECHO_N "(cached) $ECHO_C" >&6
  17334. else
  17335. cat >conftest.$ac_ext <<_ACEOF
  17336. /* confdefs.h. */
  17337. _ACEOF
  17338. cat confdefs.h >>conftest.$ac_ext
  17339. cat >>conftest.$ac_ext <<_ACEOF
  17340. /* end confdefs.h. */
  17341. #include <sys/types.h>
  17342. #include <sys/stat.h>
  17343. #if defined(S_ISBLK) && defined(S_IFDIR)
  17344. # if S_ISBLK (S_IFDIR)
  17345. You lose.
  17346. # endif
  17347. #endif
  17348. #if defined(S_ISBLK) && defined(S_IFCHR)
  17349. # if S_ISBLK (S_IFCHR)
  17350. You lose.
  17351. # endif
  17352. #endif
  17353. #if defined(S_ISLNK) && defined(S_IFREG)
  17354. # if S_ISLNK (S_IFREG)
  17355. You lose.
  17356. # endif
  17357. #endif
  17358. #if defined(S_ISSOCK) && defined(S_IFREG)
  17359. # if S_ISSOCK (S_IFREG)
  17360. You lose.
  17361. # endif
  17362. #endif
  17363. _ACEOF
  17364. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17365. $EGREP "You lose" >/dev/null 2>&1; then
  17366. ac_cv_header_stat_broken=yes
  17367. else
  17368. ac_cv_header_stat_broken=no
  17369. fi
  17370. rm -f conftest*
  17371. fi
  17372. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  17373. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  17374. if test $ac_cv_header_stat_broken = yes; then
  17375. cat >>confdefs.h <<\_ACEOF
  17376. #define STAT_MACROS_BROKEN 1
  17377. _ACEOF
  17378. fi
  17379. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  17380. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  17381. if test "${ac_cv_c_const+set}" = set; then
  17382. echo $ECHO_N "(cached) $ECHO_C" >&6
  17383. else
  17384. cat >conftest.$ac_ext <<_ACEOF
  17385. /* confdefs.h. */
  17386. _ACEOF
  17387. cat confdefs.h >>conftest.$ac_ext
  17388. cat >>conftest.$ac_ext <<_ACEOF
  17389. /* end confdefs.h. */
  17390. int
  17391. main ()
  17392. {
  17393. /* FIXME: Include the comments suggested by Paul. */
  17394. #ifndef __cplusplus
  17395. /* Ultrix mips cc rejects this. */
  17396. typedef int charset[2];
  17397. const charset x;
  17398. /* SunOS 4.1.1 cc rejects this. */
  17399. char const *const *ccp;
  17400. char **p;
  17401. /* NEC SVR4.0.2 mips cc rejects this. */
  17402. struct point {int x, y;};
  17403. static struct point const zero = {0,0};
  17404. /* AIX XL C 1.02.0.0 rejects this.
  17405. It does not let you subtract one const X* pointer from another in
  17406. an arm of an if-expression whose if-part is not a constant
  17407. expression */
  17408. const char *g = "string";
  17409. ccp = &g + (g ? g-g : 0);
  17410. /* HPUX 7.0 cc rejects these. */
  17411. ++ccp;
  17412. p = (char**) ccp;
  17413. ccp = (char const *const *) p;
  17414. { /* SCO 3.2v4 cc rejects this. */
  17415. char *t;
  17416. char const *s = 0 ? (char *) 0 : (char const *) 0;
  17417. *t++ = 0;
  17418. }
  17419. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  17420. int x[] = {25, 17};
  17421. const int *foo = &x[0];
  17422. ++foo;
  17423. }
  17424. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  17425. typedef const int *iptr;
  17426. iptr p = 0;
  17427. ++p;
  17428. }
  17429. { /* AIX XL C 1.02.0.0 rejects this saying
  17430. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  17431. struct s { int j; const int *ap[3]; };
  17432. struct s *b; b->j = 5;
  17433. }
  17434. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  17435. const int foo = 10;
  17436. }
  17437. #endif
  17438. ;
  17439. return 0;
  17440. }
  17441. _ACEOF
  17442. rm -f conftest.$ac_objext
  17443. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17444. (eval $ac_compile) 2>conftest.er1
  17445. ac_status=$?
  17446. grep -v '^ *+' conftest.er1 >conftest.err
  17447. rm -f conftest.er1
  17448. cat conftest.err >&5
  17449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17450. (exit $ac_status); } &&
  17451. { ac_try='test -z "$ac_c_werror_flag"
  17452. || test ! -s conftest.err'
  17453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17454. (eval $ac_try) 2>&5
  17455. ac_status=$?
  17456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17457. (exit $ac_status); }; } &&
  17458. { ac_try='test -s conftest.$ac_objext'
  17459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17460. (eval $ac_try) 2>&5
  17461. ac_status=$?
  17462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17463. (exit $ac_status); }; }; then
  17464. ac_cv_c_const=yes
  17465. else
  17466. echo "$as_me: failed program was:" >&5
  17467. sed 's/^/| /' conftest.$ac_ext >&5
  17468. ac_cv_c_const=no
  17469. fi
  17470. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17471. fi
  17472. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  17473. echo "${ECHO_T}$ac_cv_c_const" >&6
  17474. if test $ac_cv_c_const = no; then
  17475. cat >>confdefs.h <<\_ACEOF
  17476. #define const
  17477. _ACEOF
  17478. fi
  17479. echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  17480. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
  17481. if test "${ac_cv_header_stdbool_h+set}" = set; then
  17482. echo $ECHO_N "(cached) $ECHO_C" >&6
  17483. else
  17484. cat >conftest.$ac_ext <<_ACEOF
  17485. /* confdefs.h. */
  17486. _ACEOF
  17487. cat confdefs.h >>conftest.$ac_ext
  17488. cat >>conftest.$ac_ext <<_ACEOF
  17489. /* end confdefs.h. */
  17490. #include <stdbool.h>
  17491. #ifndef bool
  17492. # error bool is not defined
  17493. #endif
  17494. #ifndef false
  17495. # error false is not defined
  17496. #endif
  17497. #if false
  17498. # error false is not 0
  17499. #endif
  17500. #ifndef true
  17501. # error true is not defined
  17502. #endif
  17503. #if true != 1
  17504. # error true is not 1
  17505. #endif
  17506. #ifndef __bool_true_false_are_defined
  17507. # error __bool_true_false_are_defined is not defined
  17508. #endif
  17509. struct s { _Bool s: 1; _Bool t; } s;
  17510. char a[true == 1 ? 1 : -1];
  17511. char b[false == 0 ? 1 : -1];
  17512. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  17513. char d[(bool) -0.5 == true ? 1 : -1];
  17514. bool e = &s;
  17515. char f[(_Bool) -0.0 == false ? 1 : -1];
  17516. char g[true];
  17517. char h[sizeof (_Bool)];
  17518. char i[sizeof s.t];
  17519. int
  17520. main ()
  17521. {
  17522. return !a + !b + !c + !d + !e + !f + !g + !h + !i;
  17523. ;
  17524. return 0;
  17525. }
  17526. _ACEOF
  17527. rm -f conftest.$ac_objext
  17528. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17529. (eval $ac_compile) 2>conftest.er1
  17530. ac_status=$?
  17531. grep -v '^ *+' conftest.er1 >conftest.err
  17532. rm -f conftest.er1
  17533. cat conftest.err >&5
  17534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17535. (exit $ac_status); } &&
  17536. { ac_try='test -z "$ac_c_werror_flag"
  17537. || test ! -s conftest.err'
  17538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17539. (eval $ac_try) 2>&5
  17540. ac_status=$?
  17541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17542. (exit $ac_status); }; } &&
  17543. { ac_try='test -s conftest.$ac_objext'
  17544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17545. (eval $ac_try) 2>&5
  17546. ac_status=$?
  17547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17548. (exit $ac_status); }; }; then
  17549. ac_cv_header_stdbool_h=yes
  17550. else
  17551. echo "$as_me: failed program was:" >&5
  17552. sed 's/^/| /' conftest.$ac_ext >&5
  17553. ac_cv_header_stdbool_h=no
  17554. fi
  17555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17556. fi
  17557. echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  17558. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
  17559. echo "$as_me:$LINENO: checking for _Bool" >&5
  17560. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
  17561. if test "${ac_cv_type__Bool+set}" = set; then
  17562. echo $ECHO_N "(cached) $ECHO_C" >&6
  17563. else
  17564. cat >conftest.$ac_ext <<_ACEOF
  17565. /* confdefs.h. */
  17566. _ACEOF
  17567. cat confdefs.h >>conftest.$ac_ext
  17568. cat >>conftest.$ac_ext <<_ACEOF
  17569. /* end confdefs.h. */
  17570. $ac_includes_default
  17571. int
  17572. main ()
  17573. {
  17574. if ((_Bool *) 0)
  17575. return 0;
  17576. if (sizeof (_Bool))
  17577. return 0;
  17578. ;
  17579. return 0;
  17580. }
  17581. _ACEOF
  17582. rm -f conftest.$ac_objext
  17583. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17584. (eval $ac_compile) 2>conftest.er1
  17585. ac_status=$?
  17586. grep -v '^ *+' conftest.er1 >conftest.err
  17587. rm -f conftest.er1
  17588. cat conftest.err >&5
  17589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17590. (exit $ac_status); } &&
  17591. { ac_try='test -z "$ac_c_werror_flag"
  17592. || test ! -s conftest.err'
  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); }; } &&
  17598. { ac_try='test -s conftest.$ac_objext'
  17599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17600. (eval $ac_try) 2>&5
  17601. ac_status=$?
  17602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17603. (exit $ac_status); }; }; then
  17604. ac_cv_type__Bool=yes
  17605. else
  17606. echo "$as_me: failed program was:" >&5
  17607. sed 's/^/| /' conftest.$ac_ext >&5
  17608. ac_cv_type__Bool=no
  17609. fi
  17610. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17611. fi
  17612. echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  17613. echo "${ECHO_T}$ac_cv_type__Bool" >&6
  17614. if test $ac_cv_type__Bool = yes; then
  17615. cat >>confdefs.h <<_ACEOF
  17616. #define HAVE__BOOL 1
  17617. _ACEOF
  17618. fi
  17619. if test $ac_cv_header_stdbool_h = yes; then
  17620. cat >>confdefs.h <<\_ACEOF
  17621. #define HAVE_STDBOOL_H 1
  17622. _ACEOF
  17623. fi
  17624. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  17625. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  17626. if test "${ac_cv_type_uid_t+set}" = set; then
  17627. echo $ECHO_N "(cached) $ECHO_C" >&6
  17628. else
  17629. cat >conftest.$ac_ext <<_ACEOF
  17630. /* confdefs.h. */
  17631. _ACEOF
  17632. cat confdefs.h >>conftest.$ac_ext
  17633. cat >>conftest.$ac_ext <<_ACEOF
  17634. /* end confdefs.h. */
  17635. #include <sys/types.h>
  17636. _ACEOF
  17637. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17638. $EGREP "uid_t" >/dev/null 2>&1; then
  17639. ac_cv_type_uid_t=yes
  17640. else
  17641. ac_cv_type_uid_t=no
  17642. fi
  17643. rm -f conftest*
  17644. fi
  17645. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  17646. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  17647. if test $ac_cv_type_uid_t = no; then
  17648. cat >>confdefs.h <<\_ACEOF
  17649. #define uid_t int
  17650. _ACEOF
  17651. cat >>confdefs.h <<\_ACEOF
  17652. #define gid_t int
  17653. _ACEOF
  17654. fi
  17655. echo "$as_me:$LINENO: checking for pid_t" >&5
  17656. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  17657. if test "${ac_cv_type_pid_t+set}" = set; then
  17658. echo $ECHO_N "(cached) $ECHO_C" >&6
  17659. else
  17660. cat >conftest.$ac_ext <<_ACEOF
  17661. /* confdefs.h. */
  17662. _ACEOF
  17663. cat confdefs.h >>conftest.$ac_ext
  17664. cat >>conftest.$ac_ext <<_ACEOF
  17665. /* end confdefs.h. */
  17666. $ac_includes_default
  17667. int
  17668. main ()
  17669. {
  17670. if ((pid_t *) 0)
  17671. return 0;
  17672. if (sizeof (pid_t))
  17673. return 0;
  17674. ;
  17675. return 0;
  17676. }
  17677. _ACEOF
  17678. rm -f conftest.$ac_objext
  17679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17680. (eval $ac_compile) 2>conftest.er1
  17681. ac_status=$?
  17682. grep -v '^ *+' conftest.er1 >conftest.err
  17683. rm -f conftest.er1
  17684. cat conftest.err >&5
  17685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17686. (exit $ac_status); } &&
  17687. { ac_try='test -z "$ac_c_werror_flag"
  17688. || test ! -s conftest.err'
  17689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17690. (eval $ac_try) 2>&5
  17691. ac_status=$?
  17692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17693. (exit $ac_status); }; } &&
  17694. { ac_try='test -s conftest.$ac_objext'
  17695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17696. (eval $ac_try) 2>&5
  17697. ac_status=$?
  17698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17699. (exit $ac_status); }; }; then
  17700. ac_cv_type_pid_t=yes
  17701. else
  17702. echo "$as_me: failed program was:" >&5
  17703. sed 's/^/| /' conftest.$ac_ext >&5
  17704. ac_cv_type_pid_t=no
  17705. fi
  17706. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17707. fi
  17708. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  17709. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  17710. if test $ac_cv_type_pid_t = yes; then
  17711. :
  17712. else
  17713. cat >>confdefs.h <<_ACEOF
  17714. #define pid_t int
  17715. _ACEOF
  17716. fi
  17717. echo "$as_me:$LINENO: checking for size_t" >&5
  17718. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  17719. if test "${ac_cv_type_size_t+set}" = set; then
  17720. echo $ECHO_N "(cached) $ECHO_C" >&6
  17721. else
  17722. cat >conftest.$ac_ext <<_ACEOF
  17723. /* confdefs.h. */
  17724. _ACEOF
  17725. cat confdefs.h >>conftest.$ac_ext
  17726. cat >>conftest.$ac_ext <<_ACEOF
  17727. /* end confdefs.h. */
  17728. $ac_includes_default
  17729. int
  17730. main ()
  17731. {
  17732. if ((size_t *) 0)
  17733. return 0;
  17734. if (sizeof (size_t))
  17735. return 0;
  17736. ;
  17737. return 0;
  17738. }
  17739. _ACEOF
  17740. rm -f conftest.$ac_objext
  17741. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17742. (eval $ac_compile) 2>conftest.er1
  17743. ac_status=$?
  17744. grep -v '^ *+' conftest.er1 >conftest.err
  17745. rm -f conftest.er1
  17746. cat conftest.err >&5
  17747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17748. (exit $ac_status); } &&
  17749. { ac_try='test -z "$ac_c_werror_flag"
  17750. || test ! -s conftest.err'
  17751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17752. (eval $ac_try) 2>&5
  17753. ac_status=$?
  17754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17755. (exit $ac_status); }; } &&
  17756. { ac_try='test -s conftest.$ac_objext'
  17757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17758. (eval $ac_try) 2>&5
  17759. ac_status=$?
  17760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17761. (exit $ac_status); }; }; then
  17762. ac_cv_type_size_t=yes
  17763. else
  17764. echo "$as_me: failed program was:" >&5
  17765. sed 's/^/| /' conftest.$ac_ext >&5
  17766. ac_cv_type_size_t=no
  17767. fi
  17768. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17769. fi
  17770. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  17771. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  17772. if test $ac_cv_type_size_t = yes; then
  17773. :
  17774. else
  17775. cat >>confdefs.h <<_ACEOF
  17776. #define size_t unsigned
  17777. _ACEOF
  17778. fi
  17779. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  17780. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  17781. if test "${ac_cv_header_time+set}" = set; then
  17782. echo $ECHO_N "(cached) $ECHO_C" >&6
  17783. else
  17784. cat >conftest.$ac_ext <<_ACEOF
  17785. /* confdefs.h. */
  17786. _ACEOF
  17787. cat confdefs.h >>conftest.$ac_ext
  17788. cat >>conftest.$ac_ext <<_ACEOF
  17789. /* end confdefs.h. */
  17790. #include <sys/types.h>
  17791. #include <sys/time.h>
  17792. #include <time.h>
  17793. int
  17794. main ()
  17795. {
  17796. if ((struct tm *) 0)
  17797. return 0;
  17798. ;
  17799. return 0;
  17800. }
  17801. _ACEOF
  17802. rm -f conftest.$ac_objext
  17803. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17804. (eval $ac_compile) 2>conftest.er1
  17805. ac_status=$?
  17806. grep -v '^ *+' conftest.er1 >conftest.err
  17807. rm -f conftest.er1
  17808. cat conftest.err >&5
  17809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17810. (exit $ac_status); } &&
  17811. { ac_try='test -z "$ac_c_werror_flag"
  17812. || test ! -s conftest.err'
  17813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17814. (eval $ac_try) 2>&5
  17815. ac_status=$?
  17816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17817. (exit $ac_status); }; } &&
  17818. { ac_try='test -s conftest.$ac_objext'
  17819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17820. (eval $ac_try) 2>&5
  17821. ac_status=$?
  17822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17823. (exit $ac_status); }; }; then
  17824. ac_cv_header_time=yes
  17825. else
  17826. echo "$as_me: failed program was:" >&5
  17827. sed 's/^/| /' conftest.$ac_ext >&5
  17828. ac_cv_header_time=no
  17829. fi
  17830. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17831. fi
  17832. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  17833. echo "${ECHO_T}$ac_cv_header_time" >&6
  17834. if test $ac_cv_header_time = yes; then
  17835. cat >>confdefs.h <<\_ACEOF
  17836. #define TIME_WITH_SYS_TIME 1
  17837. _ACEOF
  17838. fi
  17839. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  17840. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  17841. if test "${ac_cv_struct_tm+set}" = set; then
  17842. echo $ECHO_N "(cached) $ECHO_C" >&6
  17843. else
  17844. cat >conftest.$ac_ext <<_ACEOF
  17845. /* confdefs.h. */
  17846. _ACEOF
  17847. cat confdefs.h >>conftest.$ac_ext
  17848. cat >>conftest.$ac_ext <<_ACEOF
  17849. /* end confdefs.h. */
  17850. #include <sys/types.h>
  17851. #include <time.h>
  17852. int
  17853. main ()
  17854. {
  17855. struct tm *tp; tp->tm_sec;
  17856. ;
  17857. return 0;
  17858. }
  17859. _ACEOF
  17860. rm -f conftest.$ac_objext
  17861. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17862. (eval $ac_compile) 2>conftest.er1
  17863. ac_status=$?
  17864. grep -v '^ *+' conftest.er1 >conftest.err
  17865. rm -f conftest.er1
  17866. cat conftest.err >&5
  17867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17868. (exit $ac_status); } &&
  17869. { ac_try='test -z "$ac_c_werror_flag"
  17870. || test ! -s conftest.err'
  17871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17872. (eval $ac_try) 2>&5
  17873. ac_status=$?
  17874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17875. (exit $ac_status); }; } &&
  17876. { ac_try='test -s conftest.$ac_objext'
  17877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17878. (eval $ac_try) 2>&5
  17879. ac_status=$?
  17880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17881. (exit $ac_status); }; }; then
  17882. ac_cv_struct_tm=time.h
  17883. else
  17884. echo "$as_me: failed program was:" >&5
  17885. sed 's/^/| /' conftest.$ac_ext >&5
  17886. ac_cv_struct_tm=sys/time.h
  17887. fi
  17888. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17889. fi
  17890. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  17891. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  17892. if test $ac_cv_struct_tm = sys/time.h; then
  17893. cat >>confdefs.h <<\_ACEOF
  17894. #define TM_IN_SYS_TIME 1
  17895. _ACEOF
  17896. fi
  17897. # Checks for library functions.
  17898. for ac_header in unistd.h
  17899. do
  17900. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17901. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17902. echo "$as_me:$LINENO: checking for $ac_header" >&5
  17903. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  17904. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  17905. echo $ECHO_N "(cached) $ECHO_C" >&6
  17906. fi
  17907. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  17908. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  17909. else
  17910. # Is the header compilable?
  17911. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17912. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  17913. cat >conftest.$ac_ext <<_ACEOF
  17914. /* confdefs.h. */
  17915. _ACEOF
  17916. cat confdefs.h >>conftest.$ac_ext
  17917. cat >>conftest.$ac_ext <<_ACEOF
  17918. /* end confdefs.h. */
  17919. $ac_includes_default
  17920. #include <$ac_header>
  17921. _ACEOF
  17922. rm -f conftest.$ac_objext
  17923. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17924. (eval $ac_compile) 2>conftest.er1
  17925. ac_status=$?
  17926. grep -v '^ *+' conftest.er1 >conftest.err
  17927. rm -f conftest.er1
  17928. cat conftest.err >&5
  17929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17930. (exit $ac_status); } &&
  17931. { ac_try='test -z "$ac_c_werror_flag"
  17932. || test ! -s conftest.err'
  17933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17934. (eval $ac_try) 2>&5
  17935. ac_status=$?
  17936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17937. (exit $ac_status); }; } &&
  17938. { ac_try='test -s conftest.$ac_objext'
  17939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17940. (eval $ac_try) 2>&5
  17941. ac_status=$?
  17942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17943. (exit $ac_status); }; }; then
  17944. ac_header_compiler=yes
  17945. else
  17946. echo "$as_me: failed program was:" >&5
  17947. sed 's/^/| /' conftest.$ac_ext >&5
  17948. ac_header_compiler=no
  17949. fi
  17950. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  17951. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17952. echo "${ECHO_T}$ac_header_compiler" >&6
  17953. # Is the header present?
  17954. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17955. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  17956. cat >conftest.$ac_ext <<_ACEOF
  17957. /* confdefs.h. */
  17958. _ACEOF
  17959. cat confdefs.h >>conftest.$ac_ext
  17960. cat >>conftest.$ac_ext <<_ACEOF
  17961. /* end confdefs.h. */
  17962. #include <$ac_header>
  17963. _ACEOF
  17964. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  17965. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  17966. ac_status=$?
  17967. grep -v '^ *+' conftest.er1 >conftest.err
  17968. rm -f conftest.er1
  17969. cat conftest.err >&5
  17970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17971. (exit $ac_status); } >/dev/null; then
  17972. if test -s conftest.err; then
  17973. ac_cpp_err=$ac_c_preproc_warn_flag
  17974. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  17975. else
  17976. ac_cpp_err=
  17977. fi
  17978. else
  17979. ac_cpp_err=yes
  17980. fi
  17981. if test -z "$ac_cpp_err"; then
  17982. ac_header_preproc=yes
  17983. else
  17984. echo "$as_me: failed program was:" >&5
  17985. sed 's/^/| /' conftest.$ac_ext >&5
  17986. ac_header_preproc=no
  17987. fi
  17988. rm -f conftest.err conftest.$ac_ext
  17989. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17990. echo "${ECHO_T}$ac_header_preproc" >&6
  17991. # So? What about this header?
  17992. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17993. yes:no: )
  17994. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17995. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17996. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17997. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17998. ac_header_preproc=yes
  17999. ;;
  18000. no:yes:* )
  18001. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18002. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18003. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18004. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18005. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18006. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18007. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18008. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18009. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18010. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18011. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18012. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18013. (
  18014. cat <<\_ASBOX
  18015. ## ------------------------------------------ ##
  18016. ## Report this to http://bugzilla.redhat.com/ ##
  18017. ## ------------------------------------------ ##
  18018. _ASBOX
  18019. ) |
  18020. sed "s/^/$as_me: WARNING: /" >&2
  18021. ;;
  18022. esac
  18023. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18024. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18025. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18026. echo $ECHO_N "(cached) $ECHO_C" >&6
  18027. else
  18028. eval "$as_ac_Header=\$ac_header_preproc"
  18029. fi
  18030. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18031. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18032. fi
  18033. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18034. cat >>confdefs.h <<_ACEOF
  18035. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18036. _ACEOF
  18037. fi
  18038. done
  18039. echo "$as_me:$LINENO: checking for working chown" >&5
  18040. echo $ECHO_N "checking for working chown... $ECHO_C" >&6
  18041. if test "${ac_cv_func_chown_works+set}" = set; then
  18042. echo $ECHO_N "(cached) $ECHO_C" >&6
  18043. else
  18044. if test "$cross_compiling" = yes; then
  18045. ac_cv_func_chown_works=no
  18046. else
  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 <fcntl.h>
  18055. int
  18056. main ()
  18057. {
  18058. char *f = "conftest.chown";
  18059. struct stat before, after;
  18060. if (creat (f, 0600) < 0)
  18061. exit (1);
  18062. if (stat (f, &before) < 0)
  18063. exit (1);
  18064. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  18065. exit (1);
  18066. if (stat (f, &after) < 0)
  18067. exit (1);
  18068. exit ((before.st_uid == after.st_uid
  18069. && before.st_gid == after.st_gid) ? 0 : 1);
  18070. ;
  18071. return 0;
  18072. }
  18073. _ACEOF
  18074. rm -f conftest$ac_exeext
  18075. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18076. (eval $ac_link) 2>&5
  18077. ac_status=$?
  18078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18079. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18081. (eval $ac_try) 2>&5
  18082. ac_status=$?
  18083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18084. (exit $ac_status); }; }; then
  18085. ac_cv_func_chown_works=yes
  18086. else
  18087. echo "$as_me: program exited with status $ac_status" >&5
  18088. echo "$as_me: failed program was:" >&5
  18089. sed 's/^/| /' conftest.$ac_ext >&5
  18090. ( exit $ac_status )
  18091. ac_cv_func_chown_works=no
  18092. fi
  18093. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18094. fi
  18095. rm -f conftest.chown
  18096. fi
  18097. echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  18098. echo "${ECHO_T}$ac_cv_func_chown_works" >&6
  18099. if test $ac_cv_func_chown_works = yes; then
  18100. cat >>confdefs.h <<\_ACEOF
  18101. #define HAVE_CHOWN 1
  18102. _ACEOF
  18103. fi
  18104. echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  18105. echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
  18106. if test "${ac_cv_func_closedir_void+set}" = set; then
  18107. echo $ECHO_N "(cached) $ECHO_C" >&6
  18108. else
  18109. if test "$cross_compiling" = yes; then
  18110. ac_cv_func_closedir_void=yes
  18111. else
  18112. cat >conftest.$ac_ext <<_ACEOF
  18113. /* confdefs.h. */
  18114. _ACEOF
  18115. cat confdefs.h >>conftest.$ac_ext
  18116. cat >>conftest.$ac_ext <<_ACEOF
  18117. /* end confdefs.h. */
  18118. $ac_includes_default
  18119. #include <$ac_header_dirent>
  18120. #ifndef __cplusplus
  18121. int closedir ();
  18122. #endif
  18123. int
  18124. main ()
  18125. {
  18126. exit (closedir (opendir (".")) != 0);
  18127. ;
  18128. return 0;
  18129. }
  18130. _ACEOF
  18131. rm -f conftest$ac_exeext
  18132. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18133. (eval $ac_link) 2>&5
  18134. ac_status=$?
  18135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18136. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18138. (eval $ac_try) 2>&5
  18139. ac_status=$?
  18140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18141. (exit $ac_status); }; }; then
  18142. ac_cv_func_closedir_void=no
  18143. else
  18144. echo "$as_me: program exited with status $ac_status" >&5
  18145. echo "$as_me: failed program was:" >&5
  18146. sed 's/^/| /' conftest.$ac_ext >&5
  18147. ( exit $ac_status )
  18148. ac_cv_func_closedir_void=yes
  18149. fi
  18150. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18151. fi
  18152. fi
  18153. echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  18154. echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
  18155. if test $ac_cv_func_closedir_void = yes; then
  18156. cat >>confdefs.h <<\_ACEOF
  18157. #define CLOSEDIR_VOID 1
  18158. _ACEOF
  18159. fi
  18160. echo "$as_me:$LINENO: checking for error_at_line" >&5
  18161. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
  18162. if test "${ac_cv_lib_error_at_line+set}" = set; then
  18163. echo $ECHO_N "(cached) $ECHO_C" >&6
  18164. else
  18165. cat >conftest.$ac_ext <<_ACEOF
  18166. /* confdefs.h. */
  18167. _ACEOF
  18168. cat confdefs.h >>conftest.$ac_ext
  18169. cat >>conftest.$ac_ext <<_ACEOF
  18170. /* end confdefs.h. */
  18171. $ac_includes_default
  18172. int
  18173. main ()
  18174. {
  18175. error_at_line (0, 0, "", 0, "");
  18176. ;
  18177. return 0;
  18178. }
  18179. _ACEOF
  18180. rm -f conftest.$ac_objext conftest$ac_exeext
  18181. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18182. (eval $ac_link) 2>conftest.er1
  18183. ac_status=$?
  18184. grep -v '^ *+' conftest.er1 >conftest.err
  18185. rm -f conftest.er1
  18186. cat conftest.err >&5
  18187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18188. (exit $ac_status); } &&
  18189. { ac_try='test -z "$ac_c_werror_flag"
  18190. || test ! -s conftest.err'
  18191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18192. (eval $ac_try) 2>&5
  18193. ac_status=$?
  18194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18195. (exit $ac_status); }; } &&
  18196. { ac_try='test -s conftest$ac_exeext'
  18197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18198. (eval $ac_try) 2>&5
  18199. ac_status=$?
  18200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18201. (exit $ac_status); }; }; then
  18202. ac_cv_lib_error_at_line=yes
  18203. else
  18204. echo "$as_me: failed program was:" >&5
  18205. sed 's/^/| /' conftest.$ac_ext >&5
  18206. ac_cv_lib_error_at_line=no
  18207. fi
  18208. rm -f conftest.err conftest.$ac_objext \
  18209. conftest$ac_exeext conftest.$ac_ext
  18210. fi
  18211. echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  18212. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
  18213. if test $ac_cv_lib_error_at_line = no; then
  18214. case $LIBOBJS in
  18215. "error.$ac_objext" | \
  18216. *" error.$ac_objext" | \
  18217. "error.$ac_objext "* | \
  18218. *" error.$ac_objext "* ) ;;
  18219. *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
  18220. esac
  18221. fi
  18222. for ac_header in unistd.h vfork.h
  18223. do
  18224. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18225. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18226. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18227. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18228. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18229. echo $ECHO_N "(cached) $ECHO_C" >&6
  18230. fi
  18231. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18232. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18233. else
  18234. # Is the header compilable?
  18235. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18236. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18237. cat >conftest.$ac_ext <<_ACEOF
  18238. /* confdefs.h. */
  18239. _ACEOF
  18240. cat confdefs.h >>conftest.$ac_ext
  18241. cat >>conftest.$ac_ext <<_ACEOF
  18242. /* end confdefs.h. */
  18243. $ac_includes_default
  18244. #include <$ac_header>
  18245. _ACEOF
  18246. rm -f conftest.$ac_objext
  18247. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18248. (eval $ac_compile) 2>conftest.er1
  18249. ac_status=$?
  18250. grep -v '^ *+' conftest.er1 >conftest.err
  18251. rm -f conftest.er1
  18252. cat conftest.err >&5
  18253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18254. (exit $ac_status); } &&
  18255. { ac_try='test -z "$ac_c_werror_flag"
  18256. || test ! -s conftest.err'
  18257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18258. (eval $ac_try) 2>&5
  18259. ac_status=$?
  18260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18261. (exit $ac_status); }; } &&
  18262. { ac_try='test -s conftest.$ac_objext'
  18263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18264. (eval $ac_try) 2>&5
  18265. ac_status=$?
  18266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18267. (exit $ac_status); }; }; then
  18268. ac_header_compiler=yes
  18269. else
  18270. echo "$as_me: failed program was:" >&5
  18271. sed 's/^/| /' conftest.$ac_ext >&5
  18272. ac_header_compiler=no
  18273. fi
  18274. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18275. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18276. echo "${ECHO_T}$ac_header_compiler" >&6
  18277. # Is the header present?
  18278. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18279. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18280. cat >conftest.$ac_ext <<_ACEOF
  18281. /* confdefs.h. */
  18282. _ACEOF
  18283. cat confdefs.h >>conftest.$ac_ext
  18284. cat >>conftest.$ac_ext <<_ACEOF
  18285. /* end confdefs.h. */
  18286. #include <$ac_header>
  18287. _ACEOF
  18288. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18289. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18290. ac_status=$?
  18291. grep -v '^ *+' conftest.er1 >conftest.err
  18292. rm -f conftest.er1
  18293. cat conftest.err >&5
  18294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18295. (exit $ac_status); } >/dev/null; then
  18296. if test -s conftest.err; then
  18297. ac_cpp_err=$ac_c_preproc_warn_flag
  18298. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18299. else
  18300. ac_cpp_err=
  18301. fi
  18302. else
  18303. ac_cpp_err=yes
  18304. fi
  18305. if test -z "$ac_cpp_err"; then
  18306. ac_header_preproc=yes
  18307. else
  18308. echo "$as_me: failed program was:" >&5
  18309. sed 's/^/| /' conftest.$ac_ext >&5
  18310. ac_header_preproc=no
  18311. fi
  18312. rm -f conftest.err conftest.$ac_ext
  18313. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18314. echo "${ECHO_T}$ac_header_preproc" >&6
  18315. # So? What about this header?
  18316. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18317. yes:no: )
  18318. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18319. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18320. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18321. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18322. ac_header_preproc=yes
  18323. ;;
  18324. no:yes:* )
  18325. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18326. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18327. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18328. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18329. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18330. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18331. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18332. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18333. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18334. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18335. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18336. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18337. (
  18338. cat <<\_ASBOX
  18339. ## ------------------------------------------ ##
  18340. ## Report this to http://bugzilla.redhat.com/ ##
  18341. ## ------------------------------------------ ##
  18342. _ASBOX
  18343. ) |
  18344. sed "s/^/$as_me: WARNING: /" >&2
  18345. ;;
  18346. esac
  18347. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18348. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18349. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18350. echo $ECHO_N "(cached) $ECHO_C" >&6
  18351. else
  18352. eval "$as_ac_Header=\$ac_header_preproc"
  18353. fi
  18354. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18355. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18356. fi
  18357. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18358. cat >>confdefs.h <<_ACEOF
  18359. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18360. _ACEOF
  18361. fi
  18362. done
  18363. for ac_func in fork vfork
  18364. do
  18365. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18366. echo "$as_me:$LINENO: checking for $ac_func" >&5
  18367. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  18368. if eval "test \"\${$as_ac_var+set}\" = set"; then
  18369. echo $ECHO_N "(cached) $ECHO_C" >&6
  18370. else
  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. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18378. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18379. #define $ac_func innocuous_$ac_func
  18380. /* System header to define __stub macros and hopefully few prototypes,
  18381. which can conflict with char $ac_func (); below.
  18382. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18383. <limits.h> exists even on freestanding compilers. */
  18384. #ifdef __STDC__
  18385. # include <limits.h>
  18386. #else
  18387. # include <assert.h>
  18388. #endif
  18389. #undef $ac_func
  18390. /* Override any gcc2 internal prototype to avoid an error. */
  18391. #ifdef __cplusplus
  18392. extern "C"
  18393. {
  18394. #endif
  18395. /* We use char because int might match the return type of a gcc2
  18396. builtin and then its argument prototype would still apply. */
  18397. char $ac_func ();
  18398. /* The GNU C library defines this for functions which it implements
  18399. to always fail with ENOSYS. Some functions are actually named
  18400. something starting with __ and the normal name is an alias. */
  18401. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18402. choke me
  18403. #else
  18404. char (*f) () = $ac_func;
  18405. #endif
  18406. #ifdef __cplusplus
  18407. }
  18408. #endif
  18409. int
  18410. main ()
  18411. {
  18412. return f != $ac_func;
  18413. ;
  18414. return 0;
  18415. }
  18416. _ACEOF
  18417. rm -f conftest.$ac_objext conftest$ac_exeext
  18418. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18419. (eval $ac_link) 2>conftest.er1
  18420. ac_status=$?
  18421. grep -v '^ *+' conftest.er1 >conftest.err
  18422. rm -f conftest.er1
  18423. cat conftest.err >&5
  18424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18425. (exit $ac_status); } &&
  18426. { ac_try='test -z "$ac_c_werror_flag"
  18427. || test ! -s conftest.err'
  18428. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18429. (eval $ac_try) 2>&5
  18430. ac_status=$?
  18431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18432. (exit $ac_status); }; } &&
  18433. { ac_try='test -s conftest$ac_exeext'
  18434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18435. (eval $ac_try) 2>&5
  18436. ac_status=$?
  18437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18438. (exit $ac_status); }; }; then
  18439. eval "$as_ac_var=yes"
  18440. else
  18441. echo "$as_me: failed program was:" >&5
  18442. sed 's/^/| /' conftest.$ac_ext >&5
  18443. eval "$as_ac_var=no"
  18444. fi
  18445. rm -f conftest.err conftest.$ac_objext \
  18446. conftest$ac_exeext conftest.$ac_ext
  18447. fi
  18448. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  18449. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  18450. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18451. cat >>confdefs.h <<_ACEOF
  18452. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18453. _ACEOF
  18454. fi
  18455. done
  18456. if test "x$ac_cv_func_fork" = xyes; then
  18457. echo "$as_me:$LINENO: checking for working fork" >&5
  18458. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  18459. if test "${ac_cv_func_fork_works+set}" = set; then
  18460. echo $ECHO_N "(cached) $ECHO_C" >&6
  18461. else
  18462. if test "$cross_compiling" = yes; then
  18463. ac_cv_func_fork_works=cross
  18464. else
  18465. cat >conftest.$ac_ext <<_ACEOF
  18466. /* By Ruediger Kuhlmann. */
  18467. #include <sys/types.h>
  18468. #if HAVE_UNISTD_H
  18469. # include <unistd.h>
  18470. #endif
  18471. /* Some systems only have a dummy stub for fork() */
  18472. int main ()
  18473. {
  18474. if (fork() < 0)
  18475. exit (1);
  18476. exit (0);
  18477. }
  18478. _ACEOF
  18479. rm -f conftest$ac_exeext
  18480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18481. (eval $ac_link) 2>&5
  18482. ac_status=$?
  18483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18486. (eval $ac_try) 2>&5
  18487. ac_status=$?
  18488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18489. (exit $ac_status); }; }; then
  18490. ac_cv_func_fork_works=yes
  18491. else
  18492. echo "$as_me: program exited with status $ac_status" >&5
  18493. echo "$as_me: failed program was:" >&5
  18494. sed 's/^/| /' conftest.$ac_ext >&5
  18495. ( exit $ac_status )
  18496. ac_cv_func_fork_works=no
  18497. fi
  18498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18499. fi
  18500. fi
  18501. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  18502. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  18503. else
  18504. ac_cv_func_fork_works=$ac_cv_func_fork
  18505. fi
  18506. if test "x$ac_cv_func_fork_works" = xcross; then
  18507. case $host in
  18508. *-*-amigaos* | *-*-msdosdjgpp*)
  18509. # Override, as these systems have only a dummy fork() stub
  18510. ac_cv_func_fork_works=no
  18511. ;;
  18512. *)
  18513. ac_cv_func_fork_works=yes
  18514. ;;
  18515. esac
  18516. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  18517. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  18518. fi
  18519. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18520. if test "x$ac_cv_func_vfork" = xyes; then
  18521. echo "$as_me:$LINENO: checking for working vfork" >&5
  18522. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  18523. if test "${ac_cv_func_vfork_works+set}" = set; then
  18524. echo $ECHO_N "(cached) $ECHO_C" >&6
  18525. else
  18526. if test "$cross_compiling" = yes; then
  18527. ac_cv_func_vfork_works=cross
  18528. else
  18529. cat >conftest.$ac_ext <<_ACEOF
  18530. /* confdefs.h. */
  18531. _ACEOF
  18532. cat confdefs.h >>conftest.$ac_ext
  18533. cat >>conftest.$ac_ext <<_ACEOF
  18534. /* end confdefs.h. */
  18535. /* Thanks to Paul Eggert for this test. */
  18536. #include <stdio.h>
  18537. #include <stdlib.h>
  18538. #include <sys/types.h>
  18539. #include <sys/stat.h>
  18540. #include <sys/wait.h>
  18541. #if HAVE_UNISTD_H
  18542. # include <unistd.h>
  18543. #endif
  18544. #if HAVE_VFORK_H
  18545. # include <vfork.h>
  18546. #endif
  18547. /* On some sparc systems, changes by the child to local and incoming
  18548. argument registers are propagated back to the parent. The compiler
  18549. is told about this with #include <vfork.h>, but some compilers
  18550. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  18551. static variable whose address is put into a register that is
  18552. clobbered by the vfork. */
  18553. static void
  18554. #ifdef __cplusplus
  18555. sparc_address_test (int arg)
  18556. # else
  18557. sparc_address_test (arg) int arg;
  18558. #endif
  18559. {
  18560. static pid_t child;
  18561. if (!child) {
  18562. child = vfork ();
  18563. if (child < 0) {
  18564. perror ("vfork");
  18565. _exit(2);
  18566. }
  18567. if (!child) {
  18568. arg = getpid();
  18569. write(-1, "", 0);
  18570. _exit (arg);
  18571. }
  18572. }
  18573. }
  18574. int
  18575. main ()
  18576. {
  18577. pid_t parent = getpid ();
  18578. pid_t child;
  18579. sparc_address_test (0);
  18580. child = vfork ();
  18581. if (child == 0) {
  18582. /* Here is another test for sparc vfork register problems. This
  18583. test uses lots of local variables, at least as many local
  18584. variables as main has allocated so far including compiler
  18585. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  18586. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  18587. reuse the register of parent for one of the local variables,
  18588. since it will think that parent can't possibly be used any more
  18589. in this routine. Assigning to the local variable will thus
  18590. munge parent in the parent process. */
  18591. pid_t
  18592. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  18593. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  18594. /* Convince the compiler that p..p7 are live; otherwise, it might
  18595. use the same hardware register for all 8 local variables. */
  18596. if (p != p1 || p != p2 || p != p3 || p != p4
  18597. || p != p5 || p != p6 || p != p7)
  18598. _exit(1);
  18599. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  18600. from child file descriptors. If the child closes a descriptor
  18601. before it execs or exits, this munges the parent's descriptor
  18602. as well. Test for this by closing stdout in the child. */
  18603. _exit(close(fileno(stdout)) != 0);
  18604. } else {
  18605. int status;
  18606. struct stat st;
  18607. while (wait(&status) != child)
  18608. ;
  18609. exit(
  18610. /* Was there some problem with vforking? */
  18611. child < 0
  18612. /* Did the child fail? (This shouldn't happen.) */
  18613. || status
  18614. /* Did the vfork/compiler bug occur? */
  18615. || parent != getpid()
  18616. /* Did the file descriptor bug occur? */
  18617. || fstat(fileno(stdout), &st) != 0
  18618. );
  18619. }
  18620. }
  18621. _ACEOF
  18622. rm -f conftest$ac_exeext
  18623. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18624. (eval $ac_link) 2>&5
  18625. ac_status=$?
  18626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18627. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18629. (eval $ac_try) 2>&5
  18630. ac_status=$?
  18631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18632. (exit $ac_status); }; }; then
  18633. ac_cv_func_vfork_works=yes
  18634. else
  18635. echo "$as_me: program exited with status $ac_status" >&5
  18636. echo "$as_me: failed program was:" >&5
  18637. sed 's/^/| /' conftest.$ac_ext >&5
  18638. ( exit $ac_status )
  18639. ac_cv_func_vfork_works=no
  18640. fi
  18641. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18642. fi
  18643. fi
  18644. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  18645. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  18646. fi;
  18647. if test "x$ac_cv_func_fork_works" = xcross; then
  18648. ac_cv_func_vfork_works=$ac_cv_func_vfork
  18649. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  18650. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  18651. fi
  18652. if test "x$ac_cv_func_vfork_works" = xyes; then
  18653. cat >>confdefs.h <<\_ACEOF
  18654. #define HAVE_WORKING_VFORK 1
  18655. _ACEOF
  18656. else
  18657. cat >>confdefs.h <<\_ACEOF
  18658. #define vfork fork
  18659. _ACEOF
  18660. fi
  18661. if test "x$ac_cv_func_fork_works" = xyes; then
  18662. cat >>confdefs.h <<\_ACEOF
  18663. #define HAVE_WORKING_FORK 1
  18664. _ACEOF
  18665. fi
  18666. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18667. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18668. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18669. echo $ECHO_N "(cached) $ECHO_C" >&6
  18670. else
  18671. rm -f conftest.sym conftest.file
  18672. echo >conftest.file
  18673. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18674. if test "$cross_compiling" = yes; then
  18675. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18676. else
  18677. cat >conftest.$ac_ext <<_ACEOF
  18678. /* confdefs.h. */
  18679. _ACEOF
  18680. cat confdefs.h >>conftest.$ac_ext
  18681. cat >>conftest.$ac_ext <<_ACEOF
  18682. /* end confdefs.h. */
  18683. $ac_includes_default
  18684. int
  18685. main ()
  18686. {
  18687. struct stat sbuf;
  18688. /* Linux will dereference the symlink and fail.
  18689. That is better in the sense that it means we will not
  18690. have to compile and use the lstat wrapper. */
  18691. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18692. ;
  18693. return 0;
  18694. }
  18695. _ACEOF
  18696. rm -f conftest$ac_exeext
  18697. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18698. (eval $ac_link) 2>&5
  18699. ac_status=$?
  18700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18701. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18703. (eval $ac_try) 2>&5
  18704. ac_status=$?
  18705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18706. (exit $ac_status); }; }; then
  18707. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18708. else
  18709. echo "$as_me: program exited with status $ac_status" >&5
  18710. echo "$as_me: failed program was:" >&5
  18711. sed 's/^/| /' conftest.$ac_ext >&5
  18712. ( exit $ac_status )
  18713. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18714. fi
  18715. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18716. fi
  18717. else
  18718. # If the `ln -s' command failed, then we probably don't even
  18719. # have an lstat function.
  18720. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18721. fi
  18722. rm -f conftest.sym conftest.file
  18723. fi
  18724. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18725. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18726. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18727. cat >>confdefs.h <<_ACEOF
  18728. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18729. _ACEOF
  18730. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18731. case $LIBOBJS in
  18732. "lstat.$ac_objext" | \
  18733. *" lstat.$ac_objext" | \
  18734. "lstat.$ac_objext "* | \
  18735. *" lstat.$ac_objext "* ) ;;
  18736. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18737. esac
  18738. fi
  18739. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  18740. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  18741. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  18742. echo $ECHO_N "(cached) $ECHO_C" >&6
  18743. else
  18744. if test "$cross_compiling" = yes; then
  18745. ac_cv_func_lstat_empty_string_bug=yes
  18746. else
  18747. cat >conftest.$ac_ext <<_ACEOF
  18748. /* confdefs.h. */
  18749. _ACEOF
  18750. cat confdefs.h >>conftest.$ac_ext
  18751. cat >>conftest.$ac_ext <<_ACEOF
  18752. /* end confdefs.h. */
  18753. $ac_includes_default
  18754. int
  18755. main ()
  18756. {
  18757. struct stat sbuf;
  18758. exit (lstat ("", &sbuf) ? 1 : 0);
  18759. ;
  18760. return 0;
  18761. }
  18762. _ACEOF
  18763. rm -f conftest$ac_exeext
  18764. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18765. (eval $ac_link) 2>&5
  18766. ac_status=$?
  18767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18768. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18770. (eval $ac_try) 2>&5
  18771. ac_status=$?
  18772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18773. (exit $ac_status); }; }; then
  18774. ac_cv_func_lstat_empty_string_bug=yes
  18775. else
  18776. echo "$as_me: program exited with status $ac_status" >&5
  18777. echo "$as_me: failed program was:" >&5
  18778. sed 's/^/| /' conftest.$ac_ext >&5
  18779. ( exit $ac_status )
  18780. ac_cv_func_lstat_empty_string_bug=no
  18781. fi
  18782. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18783. fi
  18784. fi
  18785. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  18786. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  18787. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  18788. case $LIBOBJS in
  18789. "lstat.$ac_objext" | \
  18790. *" lstat.$ac_objext" | \
  18791. "lstat.$ac_objext "* | \
  18792. *" lstat.$ac_objext "* ) ;;
  18793. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18794. esac
  18795. cat >>confdefs.h <<_ACEOF
  18796. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  18797. _ACEOF
  18798. fi
  18799. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18800. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  18801. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18802. echo $ECHO_N "(cached) $ECHO_C" >&6
  18803. else
  18804. rm -f conftest.sym conftest.file
  18805. echo >conftest.file
  18806. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18807. if test "$cross_compiling" = yes; then
  18808. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18809. else
  18810. cat >conftest.$ac_ext <<_ACEOF
  18811. /* confdefs.h. */
  18812. _ACEOF
  18813. cat confdefs.h >>conftest.$ac_ext
  18814. cat >>conftest.$ac_ext <<_ACEOF
  18815. /* end confdefs.h. */
  18816. $ac_includes_default
  18817. int
  18818. main ()
  18819. {
  18820. struct stat sbuf;
  18821. /* Linux will dereference the symlink and fail.
  18822. That is better in the sense that it means we will not
  18823. have to compile and use the lstat wrapper. */
  18824. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  18825. ;
  18826. return 0;
  18827. }
  18828. _ACEOF
  18829. rm -f conftest$ac_exeext
  18830. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18831. (eval $ac_link) 2>&5
  18832. ac_status=$?
  18833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18834. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18836. (eval $ac_try) 2>&5
  18837. ac_status=$?
  18838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18839. (exit $ac_status); }; }; then
  18840. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18841. else
  18842. echo "$as_me: program exited with status $ac_status" >&5
  18843. echo "$as_me: failed program was:" >&5
  18844. sed 's/^/| /' conftest.$ac_ext >&5
  18845. ( exit $ac_status )
  18846. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18847. fi
  18848. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18849. fi
  18850. else
  18851. # If the `ln -s' command failed, then we probably don't even
  18852. # have an lstat function.
  18853. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18854. fi
  18855. rm -f conftest.sym conftest.file
  18856. fi
  18857. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18858. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  18859. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18860. cat >>confdefs.h <<_ACEOF
  18861. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18862. _ACEOF
  18863. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18864. case $LIBOBJS in
  18865. "lstat.$ac_objext" | \
  18866. *" lstat.$ac_objext" | \
  18867. "lstat.$ac_objext "* | \
  18868. *" lstat.$ac_objext "* ) ;;
  18869. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  18870. esac
  18871. fi
  18872. for ac_header in stdlib.h
  18873. do
  18874. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18875. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18876. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18877. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18878. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18879. echo $ECHO_N "(cached) $ECHO_C" >&6
  18880. fi
  18881. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18882. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18883. else
  18884. # Is the header compilable?
  18885. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18886. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18887. cat >conftest.$ac_ext <<_ACEOF
  18888. /* confdefs.h. */
  18889. _ACEOF
  18890. cat confdefs.h >>conftest.$ac_ext
  18891. cat >>conftest.$ac_ext <<_ACEOF
  18892. /* end confdefs.h. */
  18893. $ac_includes_default
  18894. #include <$ac_header>
  18895. _ACEOF
  18896. rm -f conftest.$ac_objext
  18897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18898. (eval $ac_compile) 2>conftest.er1
  18899. ac_status=$?
  18900. grep -v '^ *+' conftest.er1 >conftest.err
  18901. rm -f conftest.er1
  18902. cat conftest.err >&5
  18903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18904. (exit $ac_status); } &&
  18905. { ac_try='test -z "$ac_c_werror_flag"
  18906. || test ! -s conftest.err'
  18907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18908. (eval $ac_try) 2>&5
  18909. ac_status=$?
  18910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18911. (exit $ac_status); }; } &&
  18912. { ac_try='test -s conftest.$ac_objext'
  18913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18914. (eval $ac_try) 2>&5
  18915. ac_status=$?
  18916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18917. (exit $ac_status); }; }; then
  18918. ac_header_compiler=yes
  18919. else
  18920. echo "$as_me: failed program was:" >&5
  18921. sed 's/^/| /' conftest.$ac_ext >&5
  18922. ac_header_compiler=no
  18923. fi
  18924. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18925. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18926. echo "${ECHO_T}$ac_header_compiler" >&6
  18927. # Is the header present?
  18928. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18929. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18930. cat >conftest.$ac_ext <<_ACEOF
  18931. /* confdefs.h. */
  18932. _ACEOF
  18933. cat confdefs.h >>conftest.$ac_ext
  18934. cat >>conftest.$ac_ext <<_ACEOF
  18935. /* end confdefs.h. */
  18936. #include <$ac_header>
  18937. _ACEOF
  18938. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18939. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18940. ac_status=$?
  18941. grep -v '^ *+' conftest.er1 >conftest.err
  18942. rm -f conftest.er1
  18943. cat conftest.err >&5
  18944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18945. (exit $ac_status); } >/dev/null; then
  18946. if test -s conftest.err; then
  18947. ac_cpp_err=$ac_c_preproc_warn_flag
  18948. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18949. else
  18950. ac_cpp_err=
  18951. fi
  18952. else
  18953. ac_cpp_err=yes
  18954. fi
  18955. if test -z "$ac_cpp_err"; then
  18956. ac_header_preproc=yes
  18957. else
  18958. echo "$as_me: failed program was:" >&5
  18959. sed 's/^/| /' conftest.$ac_ext >&5
  18960. ac_header_preproc=no
  18961. fi
  18962. rm -f conftest.err conftest.$ac_ext
  18963. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18964. echo "${ECHO_T}$ac_header_preproc" >&6
  18965. # So? What about this header?
  18966. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18967. yes:no: )
  18968. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18969. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18970. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18971. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18972. ac_header_preproc=yes
  18973. ;;
  18974. no:yes:* )
  18975. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18976. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18977. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18978. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18979. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18980. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18981. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18982. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18983. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18984. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18985. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18986. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18987. (
  18988. cat <<\_ASBOX
  18989. ## ------------------------------------------ ##
  18990. ## Report this to http://bugzilla.redhat.com/ ##
  18991. ## ------------------------------------------ ##
  18992. _ASBOX
  18993. ) |
  18994. sed "s/^/$as_me: WARNING: /" >&2
  18995. ;;
  18996. esac
  18997. echo "$as_me:$LINENO: checking for $ac_header" >&5
  18998. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18999. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19000. echo $ECHO_N "(cached) $ECHO_C" >&6
  19001. else
  19002. eval "$as_ac_Header=\$ac_header_preproc"
  19003. fi
  19004. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19005. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19006. fi
  19007. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19008. cat >>confdefs.h <<_ACEOF
  19009. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19010. _ACEOF
  19011. fi
  19012. done
  19013. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  19014. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  19015. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  19016. echo $ECHO_N "(cached) $ECHO_C" >&6
  19017. else
  19018. if test "$cross_compiling" = yes; then
  19019. ac_cv_func_malloc_0_nonnull=no
  19020. else
  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. #if STDC_HEADERS || HAVE_STDLIB_H
  19028. # include <stdlib.h>
  19029. #else
  19030. char *malloc ();
  19031. #endif
  19032. int
  19033. main ()
  19034. {
  19035. exit (malloc (0) ? 0 : 1);
  19036. ;
  19037. return 0;
  19038. }
  19039. _ACEOF
  19040. rm -f conftest$ac_exeext
  19041. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19042. (eval $ac_link) 2>&5
  19043. ac_status=$?
  19044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19047. (eval $ac_try) 2>&5
  19048. ac_status=$?
  19049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19050. (exit $ac_status); }; }; then
  19051. ac_cv_func_malloc_0_nonnull=yes
  19052. else
  19053. echo "$as_me: program exited with status $ac_status" >&5
  19054. echo "$as_me: failed program was:" >&5
  19055. sed 's/^/| /' conftest.$ac_ext >&5
  19056. ( exit $ac_status )
  19057. ac_cv_func_malloc_0_nonnull=no
  19058. fi
  19059. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19060. fi
  19061. fi
  19062. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  19063. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  19064. if test $ac_cv_func_malloc_0_nonnull = yes; then
  19065. cat >>confdefs.h <<\_ACEOF
  19066. #define HAVE_MALLOC 1
  19067. _ACEOF
  19068. else
  19069. cat >>confdefs.h <<\_ACEOF
  19070. #define HAVE_MALLOC 0
  19071. _ACEOF
  19072. case $LIBOBJS in
  19073. "malloc.$ac_objext" | \
  19074. *" malloc.$ac_objext" | \
  19075. "malloc.$ac_objext "* | \
  19076. *" malloc.$ac_objext "* ) ;;
  19077. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  19078. esac
  19079. cat >>confdefs.h <<\_ACEOF
  19080. #define malloc rpl_malloc
  19081. _ACEOF
  19082. fi
  19083. echo "$as_me:$LINENO: checking for working memcmp" >&5
  19084. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  19085. if test "${ac_cv_func_memcmp_working+set}" = set; then
  19086. echo $ECHO_N "(cached) $ECHO_C" >&6
  19087. else
  19088. if test "$cross_compiling" = yes; then
  19089. ac_cv_func_memcmp_working=no
  19090. else
  19091. cat >conftest.$ac_ext <<_ACEOF
  19092. /* confdefs.h. */
  19093. _ACEOF
  19094. cat confdefs.h >>conftest.$ac_ext
  19095. cat >>conftest.$ac_ext <<_ACEOF
  19096. /* end confdefs.h. */
  19097. $ac_includes_default
  19098. int
  19099. main ()
  19100. {
  19101. /* Some versions of memcmp are not 8-bit clean. */
  19102. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  19103. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  19104. exit (1);
  19105. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  19106. or more and with at least one buffer not starting on a 4-byte boundary.
  19107. William Lewis provided this test program. */
  19108. {
  19109. char foo[21];
  19110. char bar[21];
  19111. int i;
  19112. for (i = 0; i < 4; i++)
  19113. {
  19114. char *a = foo + i;
  19115. char *b = bar + i;
  19116. strcpy (a, "--------01111111");
  19117. strcpy (b, "--------10000000");
  19118. if (memcmp (a, b, 16) >= 0)
  19119. exit (1);
  19120. }
  19121. exit (0);
  19122. }
  19123. ;
  19124. return 0;
  19125. }
  19126. _ACEOF
  19127. rm -f conftest$ac_exeext
  19128. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19129. (eval $ac_link) 2>&5
  19130. ac_status=$?
  19131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19132. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19134. (eval $ac_try) 2>&5
  19135. ac_status=$?
  19136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19137. (exit $ac_status); }; }; then
  19138. ac_cv_func_memcmp_working=yes
  19139. else
  19140. echo "$as_me: program exited with status $ac_status" >&5
  19141. echo "$as_me: failed program was:" >&5
  19142. sed 's/^/| /' conftest.$ac_ext >&5
  19143. ( exit $ac_status )
  19144. ac_cv_func_memcmp_working=no
  19145. fi
  19146. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19147. fi
  19148. fi
  19149. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  19150. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  19151. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  19152. "memcmp.$ac_objext" | \
  19153. *" memcmp.$ac_objext" | \
  19154. "memcmp.$ac_objext "* | \
  19155. *" memcmp.$ac_objext "* ) ;;
  19156. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  19157. esac
  19158. for ac_header in stdlib.h unistd.h
  19159. do
  19160. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19161. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19162. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19163. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19164. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19165. echo $ECHO_N "(cached) $ECHO_C" >&6
  19166. fi
  19167. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19168. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19169. else
  19170. # Is the header compilable?
  19171. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19172. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19173. cat >conftest.$ac_ext <<_ACEOF
  19174. /* confdefs.h. */
  19175. _ACEOF
  19176. cat confdefs.h >>conftest.$ac_ext
  19177. cat >>conftest.$ac_ext <<_ACEOF
  19178. /* end confdefs.h. */
  19179. $ac_includes_default
  19180. #include <$ac_header>
  19181. _ACEOF
  19182. rm -f conftest.$ac_objext
  19183. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19184. (eval $ac_compile) 2>conftest.er1
  19185. ac_status=$?
  19186. grep -v '^ *+' conftest.er1 >conftest.err
  19187. rm -f conftest.er1
  19188. cat conftest.err >&5
  19189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19190. (exit $ac_status); } &&
  19191. { ac_try='test -z "$ac_c_werror_flag"
  19192. || test ! -s conftest.err'
  19193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19194. (eval $ac_try) 2>&5
  19195. ac_status=$?
  19196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19197. (exit $ac_status); }; } &&
  19198. { ac_try='test -s conftest.$ac_objext'
  19199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19200. (eval $ac_try) 2>&5
  19201. ac_status=$?
  19202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19203. (exit $ac_status); }; }; then
  19204. ac_header_compiler=yes
  19205. else
  19206. echo "$as_me: failed program was:" >&5
  19207. sed 's/^/| /' conftest.$ac_ext >&5
  19208. ac_header_compiler=no
  19209. fi
  19210. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19211. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19212. echo "${ECHO_T}$ac_header_compiler" >&6
  19213. # Is the header present?
  19214. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19215. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19216. cat >conftest.$ac_ext <<_ACEOF
  19217. /* confdefs.h. */
  19218. _ACEOF
  19219. cat confdefs.h >>conftest.$ac_ext
  19220. cat >>conftest.$ac_ext <<_ACEOF
  19221. /* end confdefs.h. */
  19222. #include <$ac_header>
  19223. _ACEOF
  19224. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19225. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19226. ac_status=$?
  19227. grep -v '^ *+' conftest.er1 >conftest.err
  19228. rm -f conftest.er1
  19229. cat conftest.err >&5
  19230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19231. (exit $ac_status); } >/dev/null; then
  19232. if test -s conftest.err; then
  19233. ac_cpp_err=$ac_c_preproc_warn_flag
  19234. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19235. else
  19236. ac_cpp_err=
  19237. fi
  19238. else
  19239. ac_cpp_err=yes
  19240. fi
  19241. if test -z "$ac_cpp_err"; then
  19242. ac_header_preproc=yes
  19243. else
  19244. echo "$as_me: failed program was:" >&5
  19245. sed 's/^/| /' conftest.$ac_ext >&5
  19246. ac_header_preproc=no
  19247. fi
  19248. rm -f conftest.err conftest.$ac_ext
  19249. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19250. echo "${ECHO_T}$ac_header_preproc" >&6
  19251. # So? What about this header?
  19252. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19253. yes:no: )
  19254. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19255. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19256. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19257. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19258. ac_header_preproc=yes
  19259. ;;
  19260. no:yes:* )
  19261. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19262. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19263. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19264. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19265. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19266. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19267. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19268. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19269. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19270. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19271. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19272. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19273. (
  19274. cat <<\_ASBOX
  19275. ## ------------------------------------------ ##
  19276. ## Report this to http://bugzilla.redhat.com/ ##
  19277. ## ------------------------------------------ ##
  19278. _ASBOX
  19279. ) |
  19280. sed "s/^/$as_me: WARNING: /" >&2
  19281. ;;
  19282. esac
  19283. echo "$as_me:$LINENO: checking for $ac_header" >&5
  19284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19285. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19286. echo $ECHO_N "(cached) $ECHO_C" >&6
  19287. else
  19288. eval "$as_ac_Header=\$ac_header_preproc"
  19289. fi
  19290. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19291. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19292. fi
  19293. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19294. cat >>confdefs.h <<_ACEOF
  19295. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19296. _ACEOF
  19297. fi
  19298. done
  19299. for ac_func in getpagesize
  19300. do
  19301. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19302. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19303. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19304. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19305. echo $ECHO_N "(cached) $ECHO_C" >&6
  19306. else
  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. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19314. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19315. #define $ac_func innocuous_$ac_func
  19316. /* System header to define __stub macros and hopefully few prototypes,
  19317. which can conflict with char $ac_func (); below.
  19318. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19319. <limits.h> exists even on freestanding compilers. */
  19320. #ifdef __STDC__
  19321. # include <limits.h>
  19322. #else
  19323. # include <assert.h>
  19324. #endif
  19325. #undef $ac_func
  19326. /* Override any gcc2 internal prototype to avoid an error. */
  19327. #ifdef __cplusplus
  19328. extern "C"
  19329. {
  19330. #endif
  19331. /* We use char because int might match the return type of a gcc2
  19332. builtin and then its argument prototype would still apply. */
  19333. char $ac_func ();
  19334. /* The GNU C library defines this for functions which it implements
  19335. to always fail with ENOSYS. Some functions are actually named
  19336. something starting with __ and the normal name is an alias. */
  19337. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19338. choke me
  19339. #else
  19340. char (*f) () = $ac_func;
  19341. #endif
  19342. #ifdef __cplusplus
  19343. }
  19344. #endif
  19345. int
  19346. main ()
  19347. {
  19348. return f != $ac_func;
  19349. ;
  19350. return 0;
  19351. }
  19352. _ACEOF
  19353. rm -f conftest.$ac_objext conftest$ac_exeext
  19354. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19355. (eval $ac_link) 2>conftest.er1
  19356. ac_status=$?
  19357. grep -v '^ *+' conftest.er1 >conftest.err
  19358. rm -f conftest.er1
  19359. cat conftest.err >&5
  19360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19361. (exit $ac_status); } &&
  19362. { ac_try='test -z "$ac_c_werror_flag"
  19363. || test ! -s conftest.err'
  19364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19365. (eval $ac_try) 2>&5
  19366. ac_status=$?
  19367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19368. (exit $ac_status); }; } &&
  19369. { ac_try='test -s conftest$ac_exeext'
  19370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19371. (eval $ac_try) 2>&5
  19372. ac_status=$?
  19373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19374. (exit $ac_status); }; }; then
  19375. eval "$as_ac_var=yes"
  19376. else
  19377. echo "$as_me: failed program was:" >&5
  19378. sed 's/^/| /' conftest.$ac_ext >&5
  19379. eval "$as_ac_var=no"
  19380. fi
  19381. rm -f conftest.err conftest.$ac_objext \
  19382. conftest$ac_exeext conftest.$ac_ext
  19383. fi
  19384. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19385. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19386. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19387. cat >>confdefs.h <<_ACEOF
  19388. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19389. _ACEOF
  19390. fi
  19391. done
  19392. echo "$as_me:$LINENO: checking for working mmap" >&5
  19393. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  19394. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  19395. echo $ECHO_N "(cached) $ECHO_C" >&6
  19396. else
  19397. if test "$cross_compiling" = yes; then
  19398. ac_cv_func_mmap_fixed_mapped=no
  19399. else
  19400. cat >conftest.$ac_ext <<_ACEOF
  19401. /* confdefs.h. */
  19402. _ACEOF
  19403. cat confdefs.h >>conftest.$ac_ext
  19404. cat >>conftest.$ac_ext <<_ACEOF
  19405. /* end confdefs.h. */
  19406. $ac_includes_default
  19407. /* malloc might have been renamed as rpl_malloc. */
  19408. #undef malloc
  19409. /* Thanks to Mike Haertel and Jim Avera for this test.
  19410. Here is a matrix of mmap possibilities:
  19411. mmap private not fixed
  19412. mmap private fixed at somewhere currently unmapped
  19413. mmap private fixed at somewhere already mapped
  19414. mmap shared not fixed
  19415. mmap shared fixed at somewhere currently unmapped
  19416. mmap shared fixed at somewhere already mapped
  19417. For private mappings, we should verify that changes cannot be read()
  19418. back from the file, nor mmap's back from the file at a different
  19419. address. (There have been systems where private was not correctly
  19420. implemented like the infamous i386 svr4.0, and systems where the
  19421. VM page cache was not coherent with the file system buffer cache
  19422. like early versions of FreeBSD and possibly contemporary NetBSD.)
  19423. For shared mappings, we should conversely verify that changes get
  19424. propagated back to all the places they're supposed to be.
  19425. Grep wants private fixed already mapped.
  19426. The main things grep needs to know about mmap are:
  19427. * does it exist and is it safe to write into the mmap'd area
  19428. * how to use it (BSD variants) */
  19429. #include <fcntl.h>
  19430. #include <sys/mman.h>
  19431. #if !STDC_HEADERS && !HAVE_STDLIB_H
  19432. char *malloc ();
  19433. #endif
  19434. /* This mess was copied from the GNU getpagesize.h. */
  19435. #if !HAVE_GETPAGESIZE
  19436. /* Assume that all systems that can run configure have sys/param.h. */
  19437. # if !HAVE_SYS_PARAM_H
  19438. # define HAVE_SYS_PARAM_H 1
  19439. # endif
  19440. # ifdef _SC_PAGESIZE
  19441. # define getpagesize() sysconf(_SC_PAGESIZE)
  19442. # else /* no _SC_PAGESIZE */
  19443. # if HAVE_SYS_PARAM_H
  19444. # include <sys/param.h>
  19445. # ifdef EXEC_PAGESIZE
  19446. # define getpagesize() EXEC_PAGESIZE
  19447. # else /* no EXEC_PAGESIZE */
  19448. # ifdef NBPG
  19449. # define getpagesize() NBPG * CLSIZE
  19450. # ifndef CLSIZE
  19451. # define CLSIZE 1
  19452. # endif /* no CLSIZE */
  19453. # else /* no NBPG */
  19454. # ifdef NBPC
  19455. # define getpagesize() NBPC
  19456. # else /* no NBPC */
  19457. # ifdef PAGESIZE
  19458. # define getpagesize() PAGESIZE
  19459. # endif /* PAGESIZE */
  19460. # endif /* no NBPC */
  19461. # endif /* no NBPG */
  19462. # endif /* no EXEC_PAGESIZE */
  19463. # else /* no HAVE_SYS_PARAM_H */
  19464. # define getpagesize() 8192 /* punt totally */
  19465. # endif /* no HAVE_SYS_PARAM_H */
  19466. # endif /* no _SC_PAGESIZE */
  19467. #endif /* no HAVE_GETPAGESIZE */
  19468. int
  19469. main ()
  19470. {
  19471. char *data, *data2, *data3;
  19472. int i, pagesize;
  19473. int fd;
  19474. pagesize = getpagesize ();
  19475. /* First, make a file with some known garbage in it. */
  19476. data = (char *) malloc (pagesize);
  19477. if (!data)
  19478. exit (1);
  19479. for (i = 0; i < pagesize; ++i)
  19480. *(data + i) = rand ();
  19481. umask (0);
  19482. fd = creat ("conftest.mmap", 0600);
  19483. if (fd < 0)
  19484. exit (1);
  19485. if (write (fd, data, pagesize) != pagesize)
  19486. exit (1);
  19487. close (fd);
  19488. /* Next, try to mmap the file at a fixed address which already has
  19489. something else allocated at it. If we can, also make sure that
  19490. we see the same garbage. */
  19491. fd = open ("conftest.mmap", O_RDWR);
  19492. if (fd < 0)
  19493. exit (1);
  19494. data2 = (char *) malloc (2 * pagesize);
  19495. if (!data2)
  19496. exit (1);
  19497. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  19498. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  19499. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  19500. exit (1);
  19501. for (i = 0; i < pagesize; ++i)
  19502. if (*(data + i) != *(data2 + i))
  19503. exit (1);
  19504. /* Finally, make sure that changes to the mapped area do not
  19505. percolate back to the file as seen by read(). (This is a bug on
  19506. some variants of i386 svr4.0.) */
  19507. for (i = 0; i < pagesize; ++i)
  19508. *(data2 + i) = *(data2 + i) + 1;
  19509. data3 = (char *) malloc (pagesize);
  19510. if (!data3)
  19511. exit (1);
  19512. if (read (fd, data3, pagesize) != pagesize)
  19513. exit (1);
  19514. for (i = 0; i < pagesize; ++i)
  19515. if (*(data + i) != *(data3 + i))
  19516. exit (1);
  19517. close (fd);
  19518. exit (0);
  19519. }
  19520. _ACEOF
  19521. rm -f conftest$ac_exeext
  19522. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19523. (eval $ac_link) 2>&5
  19524. ac_status=$?
  19525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19526. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19528. (eval $ac_try) 2>&5
  19529. ac_status=$?
  19530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19531. (exit $ac_status); }; }; then
  19532. ac_cv_func_mmap_fixed_mapped=yes
  19533. else
  19534. echo "$as_me: program exited with status $ac_status" >&5
  19535. echo "$as_me: failed program was:" >&5
  19536. sed 's/^/| /' conftest.$ac_ext >&5
  19537. ( exit $ac_status )
  19538. ac_cv_func_mmap_fixed_mapped=no
  19539. fi
  19540. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19541. fi
  19542. fi
  19543. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  19544. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  19545. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  19546. cat >>confdefs.h <<\_ACEOF
  19547. #define HAVE_MMAP 1
  19548. _ACEOF
  19549. fi
  19550. rm -f conftest.mmap
  19551. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  19552. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  19553. if test "${ac_cv_type_signal+set}" = set; then
  19554. echo $ECHO_N "(cached) $ECHO_C" >&6
  19555. else
  19556. cat >conftest.$ac_ext <<_ACEOF
  19557. /* confdefs.h. */
  19558. _ACEOF
  19559. cat confdefs.h >>conftest.$ac_ext
  19560. cat >>conftest.$ac_ext <<_ACEOF
  19561. /* end confdefs.h. */
  19562. #include <sys/types.h>
  19563. #include <signal.h>
  19564. #ifdef signal
  19565. # undef signal
  19566. #endif
  19567. #ifdef __cplusplus
  19568. extern "C" void (*signal (int, void (*)(int)))(int);
  19569. #else
  19570. void (*signal ()) ();
  19571. #endif
  19572. int
  19573. main ()
  19574. {
  19575. int i;
  19576. ;
  19577. return 0;
  19578. }
  19579. _ACEOF
  19580. rm -f conftest.$ac_objext
  19581. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19582. (eval $ac_compile) 2>conftest.er1
  19583. ac_status=$?
  19584. grep -v '^ *+' conftest.er1 >conftest.err
  19585. rm -f conftest.er1
  19586. cat conftest.err >&5
  19587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19588. (exit $ac_status); } &&
  19589. { ac_try='test -z "$ac_c_werror_flag"
  19590. || test ! -s conftest.err'
  19591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19592. (eval $ac_try) 2>&5
  19593. ac_status=$?
  19594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19595. (exit $ac_status); }; } &&
  19596. { ac_try='test -s conftest.$ac_objext'
  19597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19598. (eval $ac_try) 2>&5
  19599. ac_status=$?
  19600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19601. (exit $ac_status); }; }; then
  19602. ac_cv_type_signal=void
  19603. else
  19604. echo "$as_me: failed program was:" >&5
  19605. sed 's/^/| /' conftest.$ac_ext >&5
  19606. ac_cv_type_signal=int
  19607. fi
  19608. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19609. fi
  19610. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  19611. echo "${ECHO_T}$ac_cv_type_signal" >&6
  19612. cat >>confdefs.h <<_ACEOF
  19613. #define RETSIGTYPE $ac_cv_type_signal
  19614. _ACEOF
  19615. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  19616. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  19617. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  19618. echo $ECHO_N "(cached) $ECHO_C" >&6
  19619. else
  19620. if test "$cross_compiling" = yes; then
  19621. ac_cv_func_stat_empty_string_bug=yes
  19622. else
  19623. cat >conftest.$ac_ext <<_ACEOF
  19624. /* confdefs.h. */
  19625. _ACEOF
  19626. cat confdefs.h >>conftest.$ac_ext
  19627. cat >>conftest.$ac_ext <<_ACEOF
  19628. /* end confdefs.h. */
  19629. $ac_includes_default
  19630. int
  19631. main ()
  19632. {
  19633. struct stat sbuf;
  19634. exit (stat ("", &sbuf) ? 1 : 0);
  19635. ;
  19636. return 0;
  19637. }
  19638. _ACEOF
  19639. rm -f conftest$ac_exeext
  19640. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19641. (eval $ac_link) 2>&5
  19642. ac_status=$?
  19643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19644. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19646. (eval $ac_try) 2>&5
  19647. ac_status=$?
  19648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19649. (exit $ac_status); }; }; then
  19650. ac_cv_func_stat_empty_string_bug=yes
  19651. else
  19652. echo "$as_me: program exited with status $ac_status" >&5
  19653. echo "$as_me: failed program was:" >&5
  19654. sed 's/^/| /' conftest.$ac_ext >&5
  19655. ( exit $ac_status )
  19656. ac_cv_func_stat_empty_string_bug=no
  19657. fi
  19658. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19659. fi
  19660. fi
  19661. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  19662. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  19663. if test $ac_cv_func_stat_empty_string_bug = yes; then
  19664. case $LIBOBJS in
  19665. "stat.$ac_objext" | \
  19666. *" stat.$ac_objext" | \
  19667. "stat.$ac_objext "* | \
  19668. *" stat.$ac_objext "* ) ;;
  19669. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  19670. esac
  19671. cat >>confdefs.h <<_ACEOF
  19672. #define HAVE_STAT_EMPTY_STRING_BUG 1
  19673. _ACEOF
  19674. fi
  19675. echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  19676. echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
  19677. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  19678. echo $ECHO_N "(cached) $ECHO_C" >&6
  19679. else
  19680. cat >conftest.$ac_ext <<_ACEOF
  19681. /* confdefs.h. */
  19682. _ACEOF
  19683. cat confdefs.h >>conftest.$ac_ext
  19684. cat >>conftest.$ac_ext <<_ACEOF
  19685. /* end confdefs.h. */
  19686. $ac_includes_default
  19687. int
  19688. main ()
  19689. {
  19690. #ifndef strerror_r
  19691. char *p = (char *) strerror_r;
  19692. #endif
  19693. ;
  19694. return 0;
  19695. }
  19696. _ACEOF
  19697. rm -f conftest.$ac_objext
  19698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19699. (eval $ac_compile) 2>conftest.er1
  19700. ac_status=$?
  19701. grep -v '^ *+' conftest.er1 >conftest.err
  19702. rm -f conftest.er1
  19703. cat conftest.err >&5
  19704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19705. (exit $ac_status); } &&
  19706. { ac_try='test -z "$ac_c_werror_flag"
  19707. || test ! -s conftest.err'
  19708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19709. (eval $ac_try) 2>&5
  19710. ac_status=$?
  19711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19712. (exit $ac_status); }; } &&
  19713. { ac_try='test -s conftest.$ac_objext'
  19714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19715. (eval $ac_try) 2>&5
  19716. ac_status=$?
  19717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19718. (exit $ac_status); }; }; then
  19719. ac_cv_have_decl_strerror_r=yes
  19720. else
  19721. echo "$as_me: failed program was:" >&5
  19722. sed 's/^/| /' conftest.$ac_ext >&5
  19723. ac_cv_have_decl_strerror_r=no
  19724. fi
  19725. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19726. fi
  19727. echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  19728. echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
  19729. if test $ac_cv_have_decl_strerror_r = yes; then
  19730. cat >>confdefs.h <<_ACEOF
  19731. #define HAVE_DECL_STRERROR_R 1
  19732. _ACEOF
  19733. else
  19734. cat >>confdefs.h <<_ACEOF
  19735. #define HAVE_DECL_STRERROR_R 0
  19736. _ACEOF
  19737. fi
  19738. for ac_func in strerror_r
  19739. do
  19740. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19741. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19742. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19743. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19744. echo $ECHO_N "(cached) $ECHO_C" >&6
  19745. else
  19746. cat >conftest.$ac_ext <<_ACEOF
  19747. /* confdefs.h. */
  19748. _ACEOF
  19749. cat confdefs.h >>conftest.$ac_ext
  19750. cat >>conftest.$ac_ext <<_ACEOF
  19751. /* end confdefs.h. */
  19752. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19753. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19754. #define $ac_func innocuous_$ac_func
  19755. /* System header to define __stub macros and hopefully few prototypes,
  19756. which can conflict with char $ac_func (); below.
  19757. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19758. <limits.h> exists even on freestanding compilers. */
  19759. #ifdef __STDC__
  19760. # include <limits.h>
  19761. #else
  19762. # include <assert.h>
  19763. #endif
  19764. #undef $ac_func
  19765. /* Override any gcc2 internal prototype to avoid an error. */
  19766. #ifdef __cplusplus
  19767. extern "C"
  19768. {
  19769. #endif
  19770. /* We use char because int might match the return type of a gcc2
  19771. builtin and then its argument prototype would still apply. */
  19772. char $ac_func ();
  19773. /* The GNU C library defines this for functions which it implements
  19774. to always fail with ENOSYS. Some functions are actually named
  19775. something starting with __ and the normal name is an alias. */
  19776. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19777. choke me
  19778. #else
  19779. char (*f) () = $ac_func;
  19780. #endif
  19781. #ifdef __cplusplus
  19782. }
  19783. #endif
  19784. int
  19785. main ()
  19786. {
  19787. return f != $ac_func;
  19788. ;
  19789. return 0;
  19790. }
  19791. _ACEOF
  19792. rm -f conftest.$ac_objext conftest$ac_exeext
  19793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19794. (eval $ac_link) 2>conftest.er1
  19795. ac_status=$?
  19796. grep -v '^ *+' conftest.er1 >conftest.err
  19797. rm -f conftest.er1
  19798. cat conftest.err >&5
  19799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19800. (exit $ac_status); } &&
  19801. { ac_try='test -z "$ac_c_werror_flag"
  19802. || test ! -s conftest.err'
  19803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19804. (eval $ac_try) 2>&5
  19805. ac_status=$?
  19806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19807. (exit $ac_status); }; } &&
  19808. { ac_try='test -s conftest$ac_exeext'
  19809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19810. (eval $ac_try) 2>&5
  19811. ac_status=$?
  19812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19813. (exit $ac_status); }; }; then
  19814. eval "$as_ac_var=yes"
  19815. else
  19816. echo "$as_me: failed program was:" >&5
  19817. sed 's/^/| /' conftest.$ac_ext >&5
  19818. eval "$as_ac_var=no"
  19819. fi
  19820. rm -f conftest.err conftest.$ac_objext \
  19821. conftest$ac_exeext conftest.$ac_ext
  19822. fi
  19823. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  19824. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  19825. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19826. cat >>confdefs.h <<_ACEOF
  19827. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19828. _ACEOF
  19829. fi
  19830. done
  19831. echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  19832. echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
  19833. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  19834. echo $ECHO_N "(cached) $ECHO_C" >&6
  19835. else
  19836. ac_cv_func_strerror_r_char_p=no
  19837. if test $ac_cv_have_decl_strerror_r = yes; then
  19838. cat >conftest.$ac_ext <<_ACEOF
  19839. /* confdefs.h. */
  19840. _ACEOF
  19841. cat confdefs.h >>conftest.$ac_ext
  19842. cat >>conftest.$ac_ext <<_ACEOF
  19843. /* end confdefs.h. */
  19844. $ac_includes_default
  19845. int
  19846. main ()
  19847. {
  19848. char buf[100];
  19849. char x = *strerror_r (0, buf, sizeof buf);
  19850. char *p = strerror_r (0, buf, sizeof buf);
  19851. ;
  19852. return 0;
  19853. }
  19854. _ACEOF
  19855. rm -f conftest.$ac_objext
  19856. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19857. (eval $ac_compile) 2>conftest.er1
  19858. ac_status=$?
  19859. grep -v '^ *+' conftest.er1 >conftest.err
  19860. rm -f conftest.er1
  19861. cat conftest.err >&5
  19862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19863. (exit $ac_status); } &&
  19864. { ac_try='test -z "$ac_c_werror_flag"
  19865. || test ! -s conftest.err'
  19866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19867. (eval $ac_try) 2>&5
  19868. ac_status=$?
  19869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19870. (exit $ac_status); }; } &&
  19871. { ac_try='test -s conftest.$ac_objext'
  19872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19873. (eval $ac_try) 2>&5
  19874. ac_status=$?
  19875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19876. (exit $ac_status); }; }; then
  19877. ac_cv_func_strerror_r_char_p=yes
  19878. else
  19879. echo "$as_me: failed program was:" >&5
  19880. sed 's/^/| /' conftest.$ac_ext >&5
  19881. fi
  19882. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19883. else
  19884. # strerror_r is not declared. Choose between
  19885. # systems that have relatively inaccessible declarations for the
  19886. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  19887. # former has a strerror_r that returns char*, while the latter
  19888. # has a strerror_r that returns `int'.
  19889. # This test should segfault on the DEC system.
  19890. if test "$cross_compiling" = yes; then
  19891. :
  19892. else
  19893. cat >conftest.$ac_ext <<_ACEOF
  19894. /* confdefs.h. */
  19895. _ACEOF
  19896. cat confdefs.h >>conftest.$ac_ext
  19897. cat >>conftest.$ac_ext <<_ACEOF
  19898. /* end confdefs.h. */
  19899. $ac_includes_default
  19900. extern char *strerror_r ();
  19901. int
  19902. main ()
  19903. {
  19904. char buf[100];
  19905. char x = *strerror_r (0, buf, sizeof buf);
  19906. exit (!isalpha (x));
  19907. ;
  19908. return 0;
  19909. }
  19910. _ACEOF
  19911. rm -f conftest$ac_exeext
  19912. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19913. (eval $ac_link) 2>&5
  19914. ac_status=$?
  19915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19916. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19918. (eval $ac_try) 2>&5
  19919. ac_status=$?
  19920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19921. (exit $ac_status); }; }; then
  19922. ac_cv_func_strerror_r_char_p=yes
  19923. else
  19924. echo "$as_me: program exited with status $ac_status" >&5
  19925. echo "$as_me: failed program was:" >&5
  19926. sed 's/^/| /' conftest.$ac_ext >&5
  19927. fi
  19928. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19929. fi
  19930. fi
  19931. fi
  19932. echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  19933. echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
  19934. if test $ac_cv_func_strerror_r_char_p = yes; then
  19935. cat >>confdefs.h <<\_ACEOF
  19936. #define STRERROR_R_CHAR_P 1
  19937. _ACEOF
  19938. fi
  19939. for ac_func in strftime
  19940. do
  19941. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19942. echo "$as_me:$LINENO: checking for $ac_func" >&5
  19943. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  19944. if eval "test \"\${$as_ac_var+set}\" = set"; then
  19945. echo $ECHO_N "(cached) $ECHO_C" >&6
  19946. else
  19947. cat >conftest.$ac_ext <<_ACEOF
  19948. /* confdefs.h. */
  19949. _ACEOF
  19950. cat confdefs.h >>conftest.$ac_ext
  19951. cat >>conftest.$ac_ext <<_ACEOF
  19952. /* end confdefs.h. */
  19953. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19954. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19955. #define $ac_func innocuous_$ac_func
  19956. /* System header to define __stub macros and hopefully few prototypes,
  19957. which can conflict with char $ac_func (); below.
  19958. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19959. <limits.h> exists even on freestanding compilers. */
  19960. #ifdef __STDC__
  19961. # include <limits.h>
  19962. #else
  19963. # include <assert.h>
  19964. #endif
  19965. #undef $ac_func
  19966. /* Override any gcc2 internal prototype to avoid an error. */
  19967. #ifdef __cplusplus
  19968. extern "C"
  19969. {
  19970. #endif
  19971. /* We use char because int might match the return type of a gcc2
  19972. builtin and then its argument prototype would still apply. */
  19973. char $ac_func ();
  19974. /* The GNU C library defines this for functions which it implements
  19975. to always fail with ENOSYS. Some functions are actually named
  19976. something starting with __ and the normal name is an alias. */
  19977. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19978. choke me
  19979. #else
  19980. char (*f) () = $ac_func;
  19981. #endif
  19982. #ifdef __cplusplus
  19983. }
  19984. #endif
  19985. int
  19986. main ()
  19987. {
  19988. return f != $ac_func;
  19989. ;
  19990. return 0;
  19991. }
  19992. _ACEOF
  19993. rm -f conftest.$ac_objext conftest$ac_exeext
  19994. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19995. (eval $ac_link) 2>conftest.er1
  19996. ac_status=$?
  19997. grep -v '^ *+' conftest.er1 >conftest.err
  19998. rm -f conftest.er1
  19999. cat conftest.err >&5
  20000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20001. (exit $ac_status); } &&
  20002. { ac_try='test -z "$ac_c_werror_flag"
  20003. || test ! -s conftest.err'
  20004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20005. (eval $ac_try) 2>&5
  20006. ac_status=$?
  20007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20008. (exit $ac_status); }; } &&
  20009. { ac_try='test -s conftest$ac_exeext'
  20010. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20011. (eval $ac_try) 2>&5
  20012. ac_status=$?
  20013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20014. (exit $ac_status); }; }; then
  20015. eval "$as_ac_var=yes"
  20016. else
  20017. echo "$as_me: failed program was:" >&5
  20018. sed 's/^/| /' conftest.$ac_ext >&5
  20019. eval "$as_ac_var=no"
  20020. fi
  20021. rm -f conftest.err conftest.$ac_objext \
  20022. conftest$ac_exeext conftest.$ac_ext
  20023. fi
  20024. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20025. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20026. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20027. cat >>confdefs.h <<_ACEOF
  20028. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20029. _ACEOF
  20030. else
  20031. # strftime is in -lintl on SCO UNIX.
  20032. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  20033. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  20034. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  20035. echo $ECHO_N "(cached) $ECHO_C" >&6
  20036. else
  20037. ac_check_lib_save_LIBS=$LIBS
  20038. LIBS="-lintl $LIBS"
  20039. cat >conftest.$ac_ext <<_ACEOF
  20040. /* confdefs.h. */
  20041. _ACEOF
  20042. cat confdefs.h >>conftest.$ac_ext
  20043. cat >>conftest.$ac_ext <<_ACEOF
  20044. /* end confdefs.h. */
  20045. /* Override any gcc2 internal prototype to avoid an error. */
  20046. #ifdef __cplusplus
  20047. extern "C"
  20048. #endif
  20049. /* We use char because int might match the return type of a gcc2
  20050. builtin and then its argument prototype would still apply. */
  20051. char strftime ();
  20052. int
  20053. main ()
  20054. {
  20055. strftime ();
  20056. ;
  20057. return 0;
  20058. }
  20059. _ACEOF
  20060. rm -f conftest.$ac_objext conftest$ac_exeext
  20061. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20062. (eval $ac_link) 2>conftest.er1
  20063. ac_status=$?
  20064. grep -v '^ *+' conftest.er1 >conftest.err
  20065. rm -f conftest.er1
  20066. cat conftest.err >&5
  20067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20068. (exit $ac_status); } &&
  20069. { ac_try='test -z "$ac_c_werror_flag"
  20070. || test ! -s conftest.err'
  20071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20072. (eval $ac_try) 2>&5
  20073. ac_status=$?
  20074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20075. (exit $ac_status); }; } &&
  20076. { ac_try='test -s conftest$ac_exeext'
  20077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20078. (eval $ac_try) 2>&5
  20079. ac_status=$?
  20080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20081. (exit $ac_status); }; }; then
  20082. ac_cv_lib_intl_strftime=yes
  20083. else
  20084. echo "$as_me: failed program was:" >&5
  20085. sed 's/^/| /' conftest.$ac_ext >&5
  20086. ac_cv_lib_intl_strftime=no
  20087. fi
  20088. rm -f conftest.err conftest.$ac_objext \
  20089. conftest$ac_exeext conftest.$ac_ext
  20090. LIBS=$ac_check_lib_save_LIBS
  20091. fi
  20092. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  20093. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  20094. if test $ac_cv_lib_intl_strftime = yes; then
  20095. cat >>confdefs.h <<\_ACEOF
  20096. #define HAVE_STRFTIME 1
  20097. _ACEOF
  20098. LIBS="-lintl $LIBS"
  20099. fi
  20100. fi
  20101. done
  20102. for ac_func in vprintf
  20103. do
  20104. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20105. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20106. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20107. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20108. echo $ECHO_N "(cached) $ECHO_C" >&6
  20109. else
  20110. cat >conftest.$ac_ext <<_ACEOF
  20111. /* confdefs.h. */
  20112. _ACEOF
  20113. cat confdefs.h >>conftest.$ac_ext
  20114. cat >>conftest.$ac_ext <<_ACEOF
  20115. /* end confdefs.h. */
  20116. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20117. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20118. #define $ac_func innocuous_$ac_func
  20119. /* System header to define __stub macros and hopefully few prototypes,
  20120. which can conflict with char $ac_func (); below.
  20121. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20122. <limits.h> exists even on freestanding compilers. */
  20123. #ifdef __STDC__
  20124. # include <limits.h>
  20125. #else
  20126. # include <assert.h>
  20127. #endif
  20128. #undef $ac_func
  20129. /* Override any gcc2 internal prototype to avoid an error. */
  20130. #ifdef __cplusplus
  20131. extern "C"
  20132. {
  20133. #endif
  20134. /* We use char because int might match the return type of a gcc2
  20135. builtin and then its argument prototype would still apply. */
  20136. char $ac_func ();
  20137. /* The GNU C library defines this for functions which it implements
  20138. to always fail with ENOSYS. Some functions are actually named
  20139. something starting with __ and the normal name is an alias. */
  20140. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20141. choke me
  20142. #else
  20143. char (*f) () = $ac_func;
  20144. #endif
  20145. #ifdef __cplusplus
  20146. }
  20147. #endif
  20148. int
  20149. main ()
  20150. {
  20151. return f != $ac_func;
  20152. ;
  20153. return 0;
  20154. }
  20155. _ACEOF
  20156. rm -f conftest.$ac_objext conftest$ac_exeext
  20157. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20158. (eval $ac_link) 2>conftest.er1
  20159. ac_status=$?
  20160. grep -v '^ *+' conftest.er1 >conftest.err
  20161. rm -f conftest.er1
  20162. cat conftest.err >&5
  20163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20164. (exit $ac_status); } &&
  20165. { ac_try='test -z "$ac_c_werror_flag"
  20166. || test ! -s conftest.err'
  20167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20168. (eval $ac_try) 2>&5
  20169. ac_status=$?
  20170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20171. (exit $ac_status); }; } &&
  20172. { ac_try='test -s conftest$ac_exeext'
  20173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20174. (eval $ac_try) 2>&5
  20175. ac_status=$?
  20176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20177. (exit $ac_status); }; }; then
  20178. eval "$as_ac_var=yes"
  20179. else
  20180. echo "$as_me: failed program was:" >&5
  20181. sed 's/^/| /' conftest.$ac_ext >&5
  20182. eval "$as_ac_var=no"
  20183. fi
  20184. rm -f conftest.err conftest.$ac_objext \
  20185. conftest$ac_exeext conftest.$ac_ext
  20186. fi
  20187. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20188. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20189. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20190. cat >>confdefs.h <<_ACEOF
  20191. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20192. _ACEOF
  20193. echo "$as_me:$LINENO: checking for _doprnt" >&5
  20194. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  20195. if test "${ac_cv_func__doprnt+set}" = set; then
  20196. echo $ECHO_N "(cached) $ECHO_C" >&6
  20197. else
  20198. cat >conftest.$ac_ext <<_ACEOF
  20199. /* confdefs.h. */
  20200. _ACEOF
  20201. cat confdefs.h >>conftest.$ac_ext
  20202. cat >>conftest.$ac_ext <<_ACEOF
  20203. /* end confdefs.h. */
  20204. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  20205. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20206. #define _doprnt innocuous__doprnt
  20207. /* System header to define __stub macros and hopefully few prototypes,
  20208. which can conflict with char _doprnt (); below.
  20209. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20210. <limits.h> exists even on freestanding compilers. */
  20211. #ifdef __STDC__
  20212. # include <limits.h>
  20213. #else
  20214. # include <assert.h>
  20215. #endif
  20216. #undef _doprnt
  20217. /* Override any gcc2 internal prototype to avoid an error. */
  20218. #ifdef __cplusplus
  20219. extern "C"
  20220. {
  20221. #endif
  20222. /* We use char because int might match the return type of a gcc2
  20223. builtin and then its argument prototype would still apply. */
  20224. char _doprnt ();
  20225. /* The GNU C library defines this for functions which it implements
  20226. to always fail with ENOSYS. Some functions are actually named
  20227. something starting with __ and the normal name is an alias. */
  20228. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  20229. choke me
  20230. #else
  20231. char (*f) () = _doprnt;
  20232. #endif
  20233. #ifdef __cplusplus
  20234. }
  20235. #endif
  20236. int
  20237. main ()
  20238. {
  20239. return f != _doprnt;
  20240. ;
  20241. return 0;
  20242. }
  20243. _ACEOF
  20244. rm -f conftest.$ac_objext conftest$ac_exeext
  20245. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20246. (eval $ac_link) 2>conftest.er1
  20247. ac_status=$?
  20248. grep -v '^ *+' conftest.er1 >conftest.err
  20249. rm -f conftest.er1
  20250. cat conftest.err >&5
  20251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20252. (exit $ac_status); } &&
  20253. { ac_try='test -z "$ac_c_werror_flag"
  20254. || test ! -s conftest.err'
  20255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20256. (eval $ac_try) 2>&5
  20257. ac_status=$?
  20258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20259. (exit $ac_status); }; } &&
  20260. { ac_try='test -s conftest$ac_exeext'
  20261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20262. (eval $ac_try) 2>&5
  20263. ac_status=$?
  20264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20265. (exit $ac_status); }; }; then
  20266. ac_cv_func__doprnt=yes
  20267. else
  20268. echo "$as_me: failed program was:" >&5
  20269. sed 's/^/| /' conftest.$ac_ext >&5
  20270. ac_cv_func__doprnt=no
  20271. fi
  20272. rm -f conftest.err conftest.$ac_objext \
  20273. conftest$ac_exeext conftest.$ac_ext
  20274. fi
  20275. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  20276. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  20277. if test $ac_cv_func__doprnt = yes; then
  20278. cat >>confdefs.h <<\_ACEOF
  20279. #define HAVE_DOPRNT 1
  20280. _ACEOF
  20281. fi
  20282. fi
  20283. done
  20284. 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
  20285. do
  20286. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20287. echo "$as_me:$LINENO: checking for $ac_func" >&5
  20288. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  20289. if eval "test \"\${$as_ac_var+set}\" = set"; then
  20290. echo $ECHO_N "(cached) $ECHO_C" >&6
  20291. else
  20292. cat >conftest.$ac_ext <<_ACEOF
  20293. /* confdefs.h. */
  20294. _ACEOF
  20295. cat confdefs.h >>conftest.$ac_ext
  20296. cat >>conftest.$ac_ext <<_ACEOF
  20297. /* end confdefs.h. */
  20298. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20299. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20300. #define $ac_func innocuous_$ac_func
  20301. /* System header to define __stub macros and hopefully few prototypes,
  20302. which can conflict with char $ac_func (); below.
  20303. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20304. <limits.h> exists even on freestanding compilers. */
  20305. #ifdef __STDC__
  20306. # include <limits.h>
  20307. #else
  20308. # include <assert.h>
  20309. #endif
  20310. #undef $ac_func
  20311. /* Override any gcc2 internal prototype to avoid an error. */
  20312. #ifdef __cplusplus
  20313. extern "C"
  20314. {
  20315. #endif
  20316. /* We use char because int might match the return type of a gcc2
  20317. builtin and then its argument prototype would still apply. */
  20318. char $ac_func ();
  20319. /* The GNU C library defines this for functions which it implements
  20320. to always fail with ENOSYS. Some functions are actually named
  20321. something starting with __ and the normal name is an alias. */
  20322. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20323. choke me
  20324. #else
  20325. char (*f) () = $ac_func;
  20326. #endif
  20327. #ifdef __cplusplus
  20328. }
  20329. #endif
  20330. int
  20331. main ()
  20332. {
  20333. return f != $ac_func;
  20334. ;
  20335. return 0;
  20336. }
  20337. _ACEOF
  20338. rm -f conftest.$ac_objext conftest$ac_exeext
  20339. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20340. (eval $ac_link) 2>conftest.er1
  20341. ac_status=$?
  20342. grep -v '^ *+' conftest.er1 >conftest.err
  20343. rm -f conftest.er1
  20344. cat conftest.err >&5
  20345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20346. (exit $ac_status); } &&
  20347. { ac_try='test -z "$ac_c_werror_flag"
  20348. || test ! -s conftest.err'
  20349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20350. (eval $ac_try) 2>&5
  20351. ac_status=$?
  20352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20353. (exit $ac_status); }; } &&
  20354. { ac_try='test -s conftest$ac_exeext'
  20355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20356. (eval $ac_try) 2>&5
  20357. ac_status=$?
  20358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20359. (exit $ac_status); }; }; then
  20360. eval "$as_ac_var=yes"
  20361. else
  20362. echo "$as_me: failed program was:" >&5
  20363. sed 's/^/| /' conftest.$ac_ext >&5
  20364. eval "$as_ac_var=no"
  20365. fi
  20366. rm -f conftest.err conftest.$ac_objext \
  20367. conftest$ac_exeext conftest.$ac_ext
  20368. fi
  20369. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  20370. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  20371. if test `eval echo '${'$as_ac_var'}'` = yes; then
  20372. cat >>confdefs.h <<_ACEOF
  20373. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20374. _ACEOF
  20375. fi
  20376. done
  20377. echo "$as_me:$LINENO: checking for --enable-debug" >&5
  20378. echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6
  20379. # Check whether --enable-debug or --disable-debug was given.
  20380. if test "${enable_debug+set}" = set; then
  20381. enableval="$enable_debug"
  20382. echo "$as_me:$LINENO: result: yes" >&5
  20383. echo "${ECHO_T}yes" >&6
  20384. debug_defs="-DDEBUG -DMCC_DEBUG"
  20385. else
  20386. echo "$as_me:$LINENO: result: no" >&5
  20387. echo "${ECHO_T}no" >&6
  20388. debug_defs=""
  20389. fi;
  20390. # Used for legacy style packaging where we bundle all of the dependencies.
  20391. echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  20392. echo $ECHO_N "checking for --enable-bundle... $ECHO_C" >&6
  20393. # Check whether --enable-bundle or --disable-bundle was given.
  20394. if test "${enable_bundle+set}" = set; then
  20395. enableval="$enable_bundle"
  20396. echo "$as_me:$LINENO: result: yes" >&5
  20397. echo "${ECHO_T}yes" >&6
  20398. bundle="1";
  20399. else
  20400. echo "$as_me:$LINENO: result: no" >&5
  20401. echo "${ECHO_T}no" >&6
  20402. bundle="";
  20403. fi;
  20404. if test "$bundle" = "1"; then
  20405. BUNDLE_TRUE=
  20406. BUNDLE_FALSE='#'
  20407. else
  20408. BUNDLE_TRUE='#'
  20409. BUNDLE_FALSE=
  20410. fi
  20411. # these enables are for optional or experimental features
  20412. if test -z "$enable_pam_passthru" ; then
  20413. enable_pam_passthru=yes # if not set on cmdline, set default
  20414. fi
  20415. echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  20416. echo $ECHO_N "checking for --enable-pam-passthru... $ECHO_C" >&6
  20417. # Check whether --enable-pam-passthru or --disable-pam-passthru was given.
  20418. if test "${enable_pam_passthru+set}" = set; then
  20419. enableval="$enable_pam_passthru"
  20420. fi;
  20421. if test "$enable_pam_passthru" = yes ; then
  20422. echo "$as_me:$LINENO: result: yes" >&5
  20423. echo "${ECHO_T}yes" >&6
  20424. cat >>confdefs.h <<\_ACEOF
  20425. #define ENABLE_PAM_PASSTHRU 1
  20426. _ACEOF
  20427. else
  20428. echo "$as_me:$LINENO: result: no" >&5
  20429. echo "${ECHO_T}no" >&6
  20430. fi
  20431. if test "$enable_pam_passthru" = "yes"; then
  20432. enable_pam_passthru_TRUE=
  20433. enable_pam_passthru_FALSE='#'
  20434. else
  20435. enable_pam_passthru_TRUE='#'
  20436. enable_pam_passthru_FALSE=
  20437. fi
  20438. if test -z "$enable_dna" ; then
  20439. enable_dna=yes # if not set on cmdline, set default
  20440. fi
  20441. echo "$as_me:$LINENO: checking for --enable-dna" >&5
  20442. echo $ECHO_N "checking for --enable-dna... $ECHO_C" >&6
  20443. # Check whether --enable-dna or --disable-dna was given.
  20444. if test "${enable_dna+set}" = set; then
  20445. enableval="$enable_dna"
  20446. fi;
  20447. if test "$enable_dna" = yes ; then
  20448. echo "$as_me:$LINENO: result: yes" >&5
  20449. echo "${ECHO_T}yes" >&6
  20450. cat >>confdefs.h <<\_ACEOF
  20451. #define ENABLE_DNA 1
  20452. _ACEOF
  20453. else
  20454. echo "$as_me:$LINENO: result: no" >&5
  20455. echo "${ECHO_T}no" >&6
  20456. fi
  20457. if test "$enable_dna" = "yes"; then
  20458. enable_dna_TRUE=
  20459. enable_dna_FALSE='#'
  20460. else
  20461. enable_dna_TRUE='#'
  20462. enable_dna_FALSE=
  20463. fi
  20464. if test -z "$enable_ldapi" ; then
  20465. enable_ldapi=yes # if not set on cmdline, set default
  20466. fi
  20467. echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  20468. echo $ECHO_N "checking for --enable-ldapi... $ECHO_C" >&6
  20469. # Check whether --enable-ldapi or --disable-ldapi was given.
  20470. if test "${enable_ldapi+set}" = set; then
  20471. enableval="$enable_ldapi"
  20472. fi;
  20473. if test "$enable_ldapi" = yes ; then
  20474. echo "$as_me:$LINENO: result: yes" >&5
  20475. echo "${ECHO_T}yes" >&6
  20476. cat >>confdefs.h <<\_ACEOF
  20477. #define ENABLE_LDAPI 1
  20478. _ACEOF
  20479. else
  20480. echo "$as_me:$LINENO: result: no" >&5
  20481. echo "${ECHO_T}no" >&6
  20482. fi
  20483. if test "$enable_ldapi" = "yes"; then
  20484. enable_ldapi_TRUE=
  20485. enable_ldapi_FALSE='#'
  20486. else
  20487. enable_ldapi_TRUE='#'
  20488. enable_ldapi_FALSE=
  20489. fi
  20490. if test -z "$enable_bitwise" ; then
  20491. enable_bitwise=yes # if not set on cmdline, set default
  20492. fi
  20493. echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  20494. echo $ECHO_N "checking for --enable-bitwise... $ECHO_C" >&6
  20495. # Check whether --enable-bitwise or --disable-bitwise was given.
  20496. if test "${enable_bitwise+set}" = set; then
  20497. enableval="$enable_bitwise"
  20498. fi;
  20499. if test "$enable_bitwise" = yes ; then
  20500. echo "$as_me:$LINENO: result: yes" >&5
  20501. echo "${ECHO_T}yes" >&6
  20502. cat >>confdefs.h <<\_ACEOF
  20503. #define ENABLE_BITWISE 1
  20504. _ACEOF
  20505. else
  20506. echo "$as_me:$LINENO: result: no" >&5
  20507. echo "${ECHO_T}no" >&6
  20508. fi
  20509. if test "$enable_bitwise" = "yes"; then
  20510. enable_bitwise_TRUE=
  20511. enable_bitwise_FALSE='#'
  20512. else
  20513. enable_bitwise_TRUE='#'
  20514. enable_bitwise_FALSE=
  20515. fi
  20516. # the default prefix - override with --prefix or --with-fhs
  20517. brand=fedora
  20518. capbrand=Fedora
  20519. vendor="Fedora Project"
  20520. # BEGIN COPYRIGHT BLOCK
  20521. # Copyright (C) 2006 Red Hat, Inc.
  20522. # All rights reserved.
  20523. #
  20524. # This program is free software; you can redistribute it and/or
  20525. # modify it under the terms of the GNU General Public License
  20526. # as published by the Free Software Foundation; either version 2
  20527. # of the License, or (at your option) any later version.
  20528. #
  20529. # This program is distributed in the hope that it will be useful,
  20530. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20531. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20532. # GNU General Public License for more details.
  20533. #
  20534. # You should have received a copy of the GNU General Public License
  20535. # along with this program; if not, write to the Free Software
  20536. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20537. #
  20538. # END COPYRIGHT BLOCK
  20539. { echo "$as_me:$LINENO: checking for FHS..." >&5
  20540. echo "$as_me: checking for FHS..." >&6;}
  20541. # check for --with-fhs
  20542. echo "$as_me:$LINENO: checking for --with-fhs" >&5
  20543. echo $ECHO_N "checking for --with-fhs... $ECHO_C" >&6
  20544. # Check whether --with-fhs or --without-fhs was given.
  20545. if test "${with_fhs+set}" = set; then
  20546. withval="$with_fhs"
  20547. with_fhs=yes
  20548. echo "$as_me:$LINENO: result: yes" >&5
  20549. echo "${ECHO_T}yes" >&6
  20550. else
  20551. echo "$as_me:$LINENO: result: no" >&5
  20552. echo "${ECHO_T}no" >&6
  20553. fi;
  20554. if test "$with_fhs" = "yes"; then
  20555. cat >>confdefs.h <<\_ACEOF
  20556. #define IS_FHS 1
  20557. _ACEOF
  20558. fi
  20559. # check for --with-fhs-opt
  20560. echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  20561. echo $ECHO_N "checking for --with-fhs-opt... $ECHO_C" >&6
  20562. # Check whether --with-fhs-opt or --without-fhs-opt was given.
  20563. if test "${with_fhs_opt+set}" = set; then
  20564. withval="$with_fhs_opt"
  20565. with_fhs_opt=yes
  20566. echo "$as_me:$LINENO: result: yes" >&5
  20567. echo "${ECHO_T}yes" >&6
  20568. else
  20569. echo "$as_me:$LINENO: result: no" >&5
  20570. echo "${ECHO_T}no" >&6
  20571. fi;
  20572. if test "$with_fhs_opt" = "yes"; then
  20573. cat >>confdefs.h <<\_ACEOF
  20574. #define IS_FHS_OPT 1
  20575. _ACEOF
  20576. fi
  20577. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  20578. { { echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  20579. echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  20580. { (exit 1); exit 1; }; }
  20581. fi
  20582. # installation paths - by default, we store everything
  20583. # under the prefix. The with-fhs option will use /usr,
  20584. # /etc, and /var. The with-fhs-opt option will use the
  20585. # prefix, but it's sysconfdir and localstatedir will be
  20586. # /etc/opt, and /var/opt.
  20587. if test "$with_fhs_opt" = "yes"; then
  20588. # Override sysconfdir and localstatedir if FHS optional
  20589. # package was requested.
  20590. sysconfdir='/etc/opt'
  20591. localstatedir='/var/opt'
  20592. # relative to datadir
  20593. sampledatadir=/data
  20594. # relative to datadir
  20595. scripttemplatedir=/script-templates
  20596. # relative to libdir
  20597. serverdir=
  20598. # relative to libdir
  20599. serverplugindir=/plugins
  20600. # relative to datadir
  20601. infdir=/inf
  20602. # relative to datadir
  20603. mibdir=/mibs
  20604. # location of property/resource files, relative to datadir
  20605. propertydir=/properties
  20606. # relative to libdir
  20607. perldir=/perl
  20608. else
  20609. if test "$with_fhs" = "yes"; then
  20610. ac_default_prefix=/usr
  20611. prefix=$ac_default_prefix
  20612. exec_prefix=$prefix
  20613. sysconfdir='/etc'
  20614. localstatedir='/var'
  20615. fi
  20616. # relative to datadir
  20617. sampledatadir=/$PACKAGE_NAME/data
  20618. # relative to datadir
  20619. scripttemplatedir=/$PACKAGE_NAME/script-templates
  20620. # relative to libdir
  20621. serverdir=/$PACKAGE_NAME
  20622. # relative to libdir
  20623. serverplugindir=/$PACKAGE_NAME/plugins
  20624. # relative to datadir
  20625. infdir=/$PACKAGE_NAME/inf
  20626. # relative to datadir
  20627. mibdir=/$PACKAGE_NAME/mibs
  20628. # location of property/resource files, relative to datadir
  20629. propertydir=/$PACKAGE_NAME/properties
  20630. # relative to libdir
  20631. perldir=/$PACKAGE_NAME/perl
  20632. fi
  20633. # Shared paths for all layouts
  20634. # relative to sysconfdir
  20635. configdir=/$PACKAGE_NAME/config
  20636. # relative to sysconfdir
  20637. schemadir=/$PACKAGE_NAME/schema
  20638. # default user, group
  20639. defaultuser=nobody
  20640. defaultgroup=nobody
  20641. # check for --with-instconfigdir
  20642. echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  20643. echo $ECHO_N "checking for --with-instconfigdir... $ECHO_C" >&6
  20644. # Check whether --with-instconfigdir or --without-instconfigdir was given.
  20645. if test "${with_instconfigdir+set}" = set; then
  20646. withval="$with_instconfigdir"
  20647. if test $withval = yes ; then
  20648. { { echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  20649. echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  20650. { (exit 1); exit 1; }; }
  20651. fi
  20652. instconfigdir="$withval"
  20653. else
  20654. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  20655. fi;
  20656. # WINNT should be true if building on Windows system not using
  20657. # cygnus, mingw, or the like and using cmd.exe as the shell
  20658. if false; then
  20659. WINNT_TRUE=
  20660. WINNT_FALSE='#'
  20661. else
  20662. WINNT_TRUE='#'
  20663. WINNT_FALSE=
  20664. fi
  20665. # Deal with platform dependent defines
  20666. # relative to sysconfdir
  20667. initdir=/rc.d
  20668. # on most platforms, we will just use perl from PATH
  20669. # On some platforms, we cannot. Why not just use any old
  20670. # perl? Because of perldap. We use a perldap that is
  20671. # compiled to either 32bit or 64bit, so we must use a native
  20672. # perl binary compiled with the same bitsize. On Solaris
  20673. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  20674. # those with our 64 bit compiled product.
  20675. perlexec='/usr/bin/env perl'
  20676. case $host in
  20677. *-*-linux*)
  20678. cat >>confdefs.h <<\_ACEOF
  20679. #define XP_UNIX 1
  20680. _ACEOF
  20681. cat >>confdefs.h <<\_ACEOF
  20682. #define Linux 1
  20683. _ACEOF
  20684. cat >>confdefs.h <<\_ACEOF
  20685. #define LINUX 1
  20686. _ACEOF
  20687. cat >>confdefs.h <<\_ACEOF
  20688. #define LINUX2_0 1
  20689. _ACEOF
  20690. cat >>confdefs.h <<\_ACEOF
  20691. #define LINUX2_2 1
  20692. _ACEOF
  20693. cat >>confdefs.h <<\_ACEOF
  20694. #define LINUX2_4 1
  20695. _ACEOF
  20696. platform="linux"
  20697. # relative to sysconfdir
  20698. initdir=/rc.d/init.d
  20699. ;;
  20700. ia64-hp-hpux*)
  20701. cat >>confdefs.h <<\_ACEOF
  20702. #define XP_UNIX 1
  20703. _ACEOF
  20704. cat >>confdefs.h <<\_ACEOF
  20705. #define hpux 1
  20706. _ACEOF
  20707. cat >>confdefs.h <<\_ACEOF
  20708. #define HPUX 1
  20709. _ACEOF
  20710. cat >>confdefs.h <<\_ACEOF
  20711. #define HPUX11 1
  20712. _ACEOF
  20713. cat >>confdefs.h <<\_ACEOF
  20714. #define HPUX11_23 1
  20715. _ACEOF
  20716. cat >>confdefs.h <<\_ACEOF
  20717. #define CPU_ia64
  20718. _ACEOF
  20719. cat >>confdefs.h <<\_ACEOF
  20720. #define OS_hpux 1
  20721. _ACEOF
  20722. cat >>confdefs.h <<\_ACEOF
  20723. #define _POSIX_C_SOURCE 199506L
  20724. _ACEOF
  20725. cat >>confdefs.h <<\_ACEOF
  20726. #define _HPUX_SOURCE 1
  20727. _ACEOF
  20728. cat >>confdefs.h <<\_ACEOF
  20729. #define _XOPEN_SOURCE_EXTENDED 1
  20730. _ACEOF
  20731. # assume 64 bit
  20732. perlexec='/opt/perl_64/bin/perl'
  20733. platform="hpux"
  20734. initconfigdir="/$PACKAGE_NAME/config"
  20735. ;;
  20736. hppa*-hp-hpux*)
  20737. cat >>confdefs.h <<\_ACEOF
  20738. #define XP_UNIX 1
  20739. _ACEOF
  20740. cat >>confdefs.h <<\_ACEOF
  20741. #define hpux 1
  20742. _ACEOF
  20743. cat >>confdefs.h <<\_ACEOF
  20744. #define HPUX 1
  20745. _ACEOF
  20746. cat >>confdefs.h <<\_ACEOF
  20747. #define HPUX11 1
  20748. _ACEOF
  20749. cat >>confdefs.h <<\_ACEOF
  20750. #define HPUX11_11 1
  20751. _ACEOF
  20752. cat >>confdefs.h <<\_ACEOF
  20753. #define CPU_hppa
  20754. _ACEOF
  20755. cat >>confdefs.h <<\_ACEOF
  20756. #define OS_hpux 1
  20757. _ACEOF
  20758. cat >>confdefs.h <<\_ACEOF
  20759. #define _POSIX_C_SOURCE 199506L
  20760. _ACEOF
  20761. cat >>confdefs.h <<\_ACEOF
  20762. #define _HPUX_SOURCE 1
  20763. _ACEOF
  20764. # assume 64 bit
  20765. initconfigdir="/$PACKAGE_NAME/config"
  20766. perlexec='/opt/perl_64/bin/perl'
  20767. platform="hpux"
  20768. ;;
  20769. sparc-sun-solaris*)
  20770. cat >>confdefs.h <<\_ACEOF
  20771. #define XP_UNIX 1
  20772. _ACEOF
  20773. cat >>confdefs.h <<\_ACEOF
  20774. #define SVR4 1
  20775. _ACEOF
  20776. cat >>confdefs.h <<\_ACEOF
  20777. #define __svr4 1
  20778. _ACEOF
  20779. cat >>confdefs.h <<\_ACEOF
  20780. #define __svr4__ 1
  20781. _ACEOF
  20782. cat >>confdefs.h <<\_ACEOF
  20783. #define _SVID_GETTOD 1
  20784. _ACEOF
  20785. cat >>confdefs.h <<\_ACEOF
  20786. #define SOLARIS 1
  20787. _ACEOF
  20788. cat >>confdefs.h <<\_ACEOF
  20789. #define CPU_sparc
  20790. _ACEOF
  20791. cat >>confdefs.h <<\_ACEOF
  20792. #define OS_solaris 1
  20793. _ACEOF
  20794. cat >>confdefs.h <<\_ACEOF
  20795. #define sunos5 1
  20796. _ACEOF
  20797. cat >>confdefs.h <<\_ACEOF
  20798. #define OSVERSION 509
  20799. _ACEOF
  20800. cat >>confdefs.h <<\_ACEOF
  20801. #define _REENTRANT 1
  20802. _ACEOF
  20803. LIBSOCKET=-lsocket
  20804. LIBSOCKET=$LIBSOCKET
  20805. LIBNSL=-lnsl
  20806. LIBNSL=$LIBNSL
  20807. LIBDL=-ldl
  20808. LIBDL=$LIBDL
  20809. LIBCSTD=-lCstd
  20810. LIBCSTD=$LIBCSTD
  20811. LIBCRUN=-lCrun
  20812. LIBCRUN=$LIBCRUN
  20813. platform="solaris"
  20814. # assume 64 bit
  20815. perlexec='/opt/perl5x/bin/perl'
  20816. # relative to sysconfdir
  20817. initdir=/init.d
  20818. ;;
  20819. *)
  20820. platform=""
  20821. ;;
  20822. esac
  20823. # set default initconfigdir if not already set
  20824. # value will be set so as to be relative to $(sysconfdir)
  20825. if test -z "$initconfigdir" ; then
  20826. if test -d /etc/sysconfig ; then
  20827. initconfigdir=/sysconfig
  20828. elif test -d /etc/default ; then
  20829. initconfigdir=/default
  20830. else
  20831. initconfigdir="/$PACKAGE_NAME/config"
  20832. fi
  20833. fi
  20834. if test "$platform" = "hpux"; then
  20835. HPUX_TRUE=
  20836. HPUX_FALSE='#'
  20837. else
  20838. HPUX_TRUE='#'
  20839. HPUX_FALSE=
  20840. fi
  20841. if test "$platform" = "solaris"; then
  20842. SOLARIS_TRUE=
  20843. SOLARIS_FALSE='#'
  20844. else
  20845. SOLARIS_TRUE='#'
  20846. SOLARIS_FALSE=
  20847. fi
  20848. # Check for library dependencies
  20849. # BEGIN COPYRIGHT BLOCK
  20850. # Copyright (C) 2007 Red Hat, Inc.
  20851. # All rights reserved.
  20852. #
  20853. # This program is free software; you can redistribute it and/or
  20854. # modify it under the terms of the GNU General Public License
  20855. # as published by the Free Software Foundation; either version 2
  20856. # of the License, or (at your option) any later version.
  20857. #
  20858. # This program is distributed in the hope that it will be useful,
  20859. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20860. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20861. # GNU General Public License for more details.
  20862. #
  20863. # You should have received a copy of the GNU General Public License
  20864. # along with this program; if not, write to the Free Software
  20865. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20866. #
  20867. # END COPYRIGHT BLOCK
  20868. { echo "$as_me:$LINENO: checking for NSPR..." >&5
  20869. echo "$as_me: checking for NSPR..." >&6;}
  20870. # check for --with-nspr
  20871. echo "$as_me:$LINENO: checking for --with-nspr" >&5
  20872. echo $ECHO_N "checking for --with-nspr... $ECHO_C" >&6
  20873. # Check whether --with-nspr or --without-nspr was given.
  20874. if test "${with_nspr+set}" = set; then
  20875. withval="$with_nspr"
  20876. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  20877. then
  20878. echo "$as_me:$LINENO: result: using $withval" >&5
  20879. echo "${ECHO_T}using $withval" >&6
  20880. NSPRDIR=$withval
  20881. nspr_inc="-I$NSPRDIR/include"
  20882. nspr_lib="-L$NSPRDIR/lib"
  20883. nspr_libdir="$NSPRDIR/lib"
  20884. else
  20885. echo
  20886. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20887. echo "$as_me: error: $withval not found" >&2;}
  20888. { (exit 1); exit 1; }; }
  20889. fi
  20890. else
  20891. echo "$as_me:$LINENO: result: no" >&5
  20892. echo "${ECHO_T}no" >&6
  20893. fi;
  20894. # check for --with-nspr-inc
  20895. echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  20896. echo $ECHO_N "checking for --with-nspr-inc... $ECHO_C" >&6
  20897. # Check whether --with-nspr-inc or --without-nspr-inc was given.
  20898. if test "${with_nspr_inc+set}" = set; then
  20899. withval="$with_nspr_inc"
  20900. if test -e "$withval"/nspr.h
  20901. then
  20902. echo "$as_me:$LINENO: result: using $withval" >&5
  20903. echo "${ECHO_T}using $withval" >&6
  20904. nspr_inc="-I$withval"
  20905. else
  20906. echo
  20907. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20908. echo "$as_me: error: $withval not found" >&2;}
  20909. { (exit 1); exit 1; }; }
  20910. fi
  20911. else
  20912. echo "$as_me:$LINENO: result: no" >&5
  20913. echo "${ECHO_T}no" >&6
  20914. fi;
  20915. # check for --with-nspr-lib
  20916. echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  20917. echo $ECHO_N "checking for --with-nspr-lib... $ECHO_C" >&6
  20918. # Check whether --with-nspr-lib or --without-nspr-lib was given.
  20919. if test "${with_nspr_lib+set}" = set; then
  20920. withval="$with_nspr_lib"
  20921. if test -d "$withval"
  20922. then
  20923. echo "$as_me:$LINENO: result: using $withval" >&5
  20924. echo "${ECHO_T}using $withval" >&6
  20925. nspr_lib="-L$withval"
  20926. nspr_libdir="$withval"
  20927. else
  20928. echo
  20929. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  20930. echo "$as_me: error: $withval not found" >&2;}
  20931. { (exit 1); exit 1; }; }
  20932. fi
  20933. else
  20934. echo "$as_me:$LINENO: result: no" >&5
  20935. echo "${ECHO_T}no" >&6
  20936. fi;
  20937. # if NSPR is not found yet, try pkg-config
  20938. # last resort
  20939. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  20940. # Extract the first word of "pkg-config", so it can be a program name with args.
  20941. set dummy pkg-config; ac_word=$2
  20942. echo "$as_me:$LINENO: checking for $ac_word" >&5
  20943. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20944. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  20945. echo $ECHO_N "(cached) $ECHO_C" >&6
  20946. else
  20947. case $PKG_CONFIG in
  20948. [\\/]* | ?:[\\/]*)
  20949. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20950. ;;
  20951. *)
  20952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20953. for as_dir in $PATH
  20954. do
  20955. IFS=$as_save_IFS
  20956. test -z "$as_dir" && as_dir=.
  20957. for ac_exec_ext in '' $ac_executable_extensions; do
  20958. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20959. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20960. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20961. break 2
  20962. fi
  20963. done
  20964. done
  20965. ;;
  20966. esac
  20967. fi
  20968. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20969. if test -n "$PKG_CONFIG"; then
  20970. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  20971. echo "${ECHO_T}$PKG_CONFIG" >&6
  20972. else
  20973. echo "$as_me:$LINENO: result: no" >&5
  20974. echo "${ECHO_T}no" >&6
  20975. fi
  20976. echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  20977. echo $ECHO_N "checking for nspr with pkg-config... $ECHO_C" >&6
  20978. if test -n "$PKG_CONFIG"; then
  20979. if $PKG_CONFIG --exists nspr; then
  20980. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  20981. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  20982. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  20983. echo "$as_me:$LINENO: result: using system NSPR" >&5
  20984. echo "${ECHO_T}using system NSPR" >&6
  20985. elif $PKG_CONFIG --exists dirsec-nspr; then
  20986. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  20987. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  20988. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  20989. echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  20990. echo "${ECHO_T}using system dirsec NSPR" >&6
  20991. else
  20992. { { echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  20993. echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  20994. { (exit 1); exit 1; }; }
  20995. fi
  20996. fi
  20997. fi
  20998. # BEGIN COPYRIGHT BLOCK
  20999. # Copyright (C) 2007 Red Hat, Inc.
  21000. # All rights reserved.
  21001. #
  21002. # This program is free software; you can redistribute it and/or
  21003. # modify it under the terms of the GNU General Public License
  21004. # as published by the Free Software Foundation; either version 2
  21005. # of the License, or (at your option) any later version.
  21006. #
  21007. # This program is distributed in the hope that it will be useful,
  21008. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21009. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21010. # GNU General Public License for more details.
  21011. #
  21012. # You should have received a copy of the GNU General Public License
  21013. # along with this program; if not, write to the Free Software
  21014. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21015. #
  21016. # END COPYRIGHT BLOCK
  21017. { echo "$as_me:$LINENO: checking for NSS..." >&5
  21018. echo "$as_me: checking for NSS..." >&6;}
  21019. # check for --with-nss
  21020. echo "$as_me:$LINENO: checking for --with-nss" >&5
  21021. echo $ECHO_N "checking for --with-nss... $ECHO_C" >&6
  21022. # Check whether --with-nss or --without-nss was given.
  21023. if test "${with_nss+set}" = set; then
  21024. withval="$with_nss"
  21025. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  21026. then
  21027. echo "$as_me:$LINENO: result: using $withval" >&5
  21028. echo "${ECHO_T}using $withval" >&6
  21029. NSSDIR=$withval
  21030. nss_inc="-I$NSSDIR/include"
  21031. nss_lib="-L$NSSDIR/lib"
  21032. nss_libdir="$NSSDIR/lib"
  21033. else
  21034. echo
  21035. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21036. echo "$as_me: error: $withval not found" >&2;}
  21037. { (exit 1); exit 1; }; }
  21038. fi
  21039. else
  21040. echo "$as_me:$LINENO: result: no" >&5
  21041. echo "${ECHO_T}no" >&6
  21042. fi;
  21043. # check for --with-nss-inc
  21044. echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  21045. echo $ECHO_N "checking for --with-nss-inc... $ECHO_C" >&6
  21046. # Check whether --with-nss-inc or --without-nss-inc was given.
  21047. if test "${with_nss_inc+set}" = set; then
  21048. withval="$with_nss_inc"
  21049. if test -e "$withval"/nss.h
  21050. then
  21051. echo "$as_me:$LINENO: result: using $withval" >&5
  21052. echo "${ECHO_T}using $withval" >&6
  21053. nss_inc="-I$withval"
  21054. else
  21055. echo
  21056. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21057. echo "$as_me: error: $withval not found" >&2;}
  21058. { (exit 1); exit 1; }; }
  21059. fi
  21060. else
  21061. echo "$as_me:$LINENO: result: no" >&5
  21062. echo "${ECHO_T}no" >&6
  21063. fi;
  21064. # check for --with-nss-lib
  21065. echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  21066. echo $ECHO_N "checking for --with-nss-lib... $ECHO_C" >&6
  21067. # Check whether --with-nss-lib or --without-nss-lib was given.
  21068. if test "${with_nss_lib+set}" = set; then
  21069. withval="$with_nss_lib"
  21070. if test -d "$withval"
  21071. then
  21072. echo "$as_me:$LINENO: result: using $withval" >&5
  21073. echo "${ECHO_T}using $withval" >&6
  21074. nss_lib="-L$withval"
  21075. nss_libdir="$withval"
  21076. else
  21077. echo
  21078. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21079. echo "$as_me: error: $withval not found" >&2;}
  21080. { (exit 1); exit 1; }; }
  21081. fi
  21082. else
  21083. echo "$as_me:$LINENO: result: no" >&5
  21084. echo "${ECHO_T}no" >&6
  21085. fi;
  21086. # if NSS is not found yet, try pkg-config
  21087. # last resort
  21088. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  21089. # Extract the first word of "pkg-config", so it can be a program name with args.
  21090. set dummy pkg-config; ac_word=$2
  21091. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21093. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21094. echo $ECHO_N "(cached) $ECHO_C" >&6
  21095. else
  21096. case $PKG_CONFIG in
  21097. [\\/]* | ?:[\\/]*)
  21098. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21099. ;;
  21100. *)
  21101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21102. for as_dir in $PATH
  21103. do
  21104. IFS=$as_save_IFS
  21105. test -z "$as_dir" && as_dir=.
  21106. for ac_exec_ext in '' $ac_executable_extensions; do
  21107. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21108. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21109. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21110. break 2
  21111. fi
  21112. done
  21113. done
  21114. ;;
  21115. esac
  21116. fi
  21117. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21118. if test -n "$PKG_CONFIG"; then
  21119. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21120. echo "${ECHO_T}$PKG_CONFIG" >&6
  21121. else
  21122. echo "$as_me:$LINENO: result: no" >&5
  21123. echo "${ECHO_T}no" >&6
  21124. fi
  21125. echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  21126. echo $ECHO_N "checking for nss with pkg-config... $ECHO_C" >&6
  21127. if test -n "$PKG_CONFIG"; then
  21128. if $PKG_CONFIG --exists nss; then
  21129. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  21130. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  21131. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  21132. echo "$as_me:$LINENO: result: using system NSS" >&5
  21133. echo "${ECHO_T}using system NSS" >&6
  21134. elif $PKG_CONFIG --exists dirsec-nss; then
  21135. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  21136. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  21137. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  21138. echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  21139. echo "${ECHO_T}using system dirsec NSS" >&6
  21140. else
  21141. { { echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  21142. echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  21143. { (exit 1); exit 1; }; }
  21144. fi
  21145. fi
  21146. fi
  21147. # BEGIN COPYRIGHT BLOCK
  21148. # Copyright (C) 2007 Red Hat, Inc.
  21149. # All rights reserved.
  21150. #
  21151. # This program is free software; you can redistribute it and/or
  21152. # modify it under the terms of the GNU General Public License
  21153. # as published by the Free Software Foundation; either version 2
  21154. # of the License, or (at your option) any later version.
  21155. #
  21156. # This program is distributed in the hope that it will be useful,
  21157. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21158. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21159. # GNU General Public License for more details.
  21160. #
  21161. # You should have received a copy of the GNU General Public License
  21162. # along with this program; if not, write to the Free Software
  21163. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21164. #
  21165. # END COPYRIGHT BLOCK
  21166. { echo "$as_me:$LINENO: checking for LDAPSDK..." >&5
  21167. echo "$as_me: checking for LDAPSDK..." >&6;}
  21168. # check for --with-ldapsdk
  21169. echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  21170. echo $ECHO_N "checking for --with-ldapsdk... $ECHO_C" >&6
  21171. # Check whether --with-ldapsdk or --without-ldapsdk was given.
  21172. if test "${with_ldapsdk+set}" = set; then
  21173. withval="$with_ldapsdk"
  21174. if test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  21175. then
  21176. echo "$as_me:$LINENO: result: using $withval" >&5
  21177. echo "${ECHO_T}using $withval" >&6
  21178. LDAPSDKDIR=$withval
  21179. ldapsdk_inc="-I$LDAPSDKDIR/include"
  21180. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  21181. ldapsdk_libdir="$LDAPSDKDIR/lib"
  21182. ldapsdk_bindir="$LDAPSDKDIR/bin"
  21183. else
  21184. echo
  21185. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21186. echo "$as_me: error: $withval not found" >&2;}
  21187. { (exit 1); exit 1; }; }
  21188. fi
  21189. else
  21190. echo "$as_me:$LINENO: result: no" >&5
  21191. echo "${ECHO_T}no" >&6
  21192. fi;
  21193. # check for --with-ldapsdk-inc
  21194. echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  21195. echo $ECHO_N "checking for --with-ldapsdk-inc... $ECHO_C" >&6
  21196. # Check whether --with-ldapsdk-inc or --without-ldapsdk-inc was given.
  21197. if test "${with_ldapsdk_inc+set}" = set; then
  21198. withval="$with_ldapsdk_inc"
  21199. if test -e "$withval"/ldap.h
  21200. then
  21201. echo "$as_me:$LINENO: result: using $withval" >&5
  21202. echo "${ECHO_T}using $withval" >&6
  21203. ldapsdk_inc="-I$withval"
  21204. else
  21205. echo
  21206. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21207. echo "$as_me: error: $withval not found" >&2;}
  21208. { (exit 1); exit 1; }; }
  21209. fi
  21210. else
  21211. echo "$as_me:$LINENO: result: no" >&5
  21212. echo "${ECHO_T}no" >&6
  21213. fi;
  21214. # check for --with-ldapsdk-lib
  21215. echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  21216. echo $ECHO_N "checking for --with-ldapsdk-lib... $ECHO_C" >&6
  21217. # Check whether --with-ldapsdk-lib or --without-ldapsdk-lib was given.
  21218. if test "${with_ldapsdk_lib+set}" = set; then
  21219. withval="$with_ldapsdk_lib"
  21220. if test -d "$withval"
  21221. then
  21222. echo "$as_me:$LINENO: result: using $withval" >&5
  21223. echo "${ECHO_T}using $withval" >&6
  21224. ldapsdk_lib="-L$withval"
  21225. ldapsdk_libdir="$withval"
  21226. else
  21227. echo
  21228. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21229. echo "$as_me: error: $withval not found" >&2;}
  21230. { (exit 1); exit 1; }; }
  21231. fi
  21232. else
  21233. echo "$as_me:$LINENO: result: no" >&5
  21234. echo "${ECHO_T}no" >&6
  21235. fi;
  21236. # check for --with-ldapsdk-bin
  21237. echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  21238. echo $ECHO_N "checking for --with-ldapsdk-bin... $ECHO_C" >&6
  21239. # Check whether --with-ldapsdk-bin or --without-ldapsdk-bin was given.
  21240. if test "${with_ldapsdk_bin+set}" = set; then
  21241. withval="$with_ldapsdk_bin"
  21242. if test -d "$withval"
  21243. then
  21244. echo "$as_me:$LINENO: result: using $withval" >&5
  21245. echo "${ECHO_T}using $withval" >&6
  21246. ldapsdk_bindir="$withval"
  21247. else
  21248. echo
  21249. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21250. echo "$as_me: error: $withval not found" >&2;}
  21251. { (exit 1); exit 1; }; }
  21252. fi
  21253. else
  21254. echo "$as_me:$LINENO: result: no" >&5
  21255. echo "${ECHO_T}no" >&6
  21256. fi;
  21257. # if LDAPSDK is not found yet, try pkg-config
  21258. # last resort
  21259. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  21260. # Extract the first word of "pkg-config", so it can be a program name with args.
  21261. set dummy pkg-config; ac_word=$2
  21262. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21263. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21264. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21265. echo $ECHO_N "(cached) $ECHO_C" >&6
  21266. else
  21267. case $PKG_CONFIG in
  21268. [\\/]* | ?:[\\/]*)
  21269. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21270. ;;
  21271. *)
  21272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21273. for as_dir in $PATH
  21274. do
  21275. IFS=$as_save_IFS
  21276. test -z "$as_dir" && as_dir=.
  21277. for ac_exec_ext in '' $ac_executable_extensions; do
  21278. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21279. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21280. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21281. break 2
  21282. fi
  21283. done
  21284. done
  21285. ;;
  21286. esac
  21287. fi
  21288. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21289. if test -n "$PKG_CONFIG"; then
  21290. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21291. echo "${ECHO_T}$PKG_CONFIG" >&6
  21292. else
  21293. echo "$as_me:$LINENO: result: no" >&5
  21294. echo "${ECHO_T}no" >&6
  21295. fi
  21296. echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  21297. echo $ECHO_N "checking for mozldap with pkg-config... $ECHO_C" >&6
  21298. if test -n "$PKG_CONFIG"; then
  21299. if $PKG_CONFIG --exists mozldap6; then
  21300. mozldappkg=mozldap6
  21301. elif $PKG_CONFIG --exists mozldap; then
  21302. mozldappkg=mozldap
  21303. else
  21304. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21305. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21306. { (exit 1); exit 1; }; }
  21307. fi
  21308. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  21309. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  21310. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  21311. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  21312. echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  21313. echo "${ECHO_T}using system $mozldappkg" >&6
  21314. fi
  21315. fi
  21316. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  21317. { { echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  21318. echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  21319. { (exit 1); exit 1; }; }
  21320. fi
  21321. if test -z "$ldapsdk_bindir" ; then
  21322. if -d $libdir/mozldap6 ; then
  21323. ldapsdk_bindir=$libdir/mozldap6
  21324. else
  21325. ldapsdk_bindir=$libdir/mozldap
  21326. fi
  21327. fi
  21328. save_cppflags="$CPPFLAGS"
  21329. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  21330. echo "$as_me:$LINENO: checking for ldap.h" >&5
  21331. echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
  21332. if test "${ac_cv_header_ldap_h+set}" = set; then
  21333. echo $ECHO_N "(cached) $ECHO_C" >&6
  21334. else
  21335. cat >conftest.$ac_ext <<_ACEOF
  21336. /* confdefs.h. */
  21337. _ACEOF
  21338. cat confdefs.h >>conftest.$ac_ext
  21339. cat >>conftest.$ac_ext <<_ACEOF
  21340. /* end confdefs.h. */
  21341. #include <ldap-standard.h>
  21342. #if LDAP_VENDOR_VERSION < 600
  21343. #error The LDAP C SDK version is not supported
  21344. #endif
  21345. #include <ldap.h>
  21346. _ACEOF
  21347. rm -f conftest.$ac_objext
  21348. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21349. (eval $ac_compile) 2>conftest.er1
  21350. ac_status=$?
  21351. grep -v '^ *+' conftest.er1 >conftest.err
  21352. rm -f conftest.er1
  21353. cat conftest.err >&5
  21354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21355. (exit $ac_status); } &&
  21356. { ac_try='test -z "$ac_c_werror_flag"
  21357. || test ! -s conftest.err'
  21358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21359. (eval $ac_try) 2>&5
  21360. ac_status=$?
  21361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21362. (exit $ac_status); }; } &&
  21363. { ac_try='test -s conftest.$ac_objext'
  21364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21365. (eval $ac_try) 2>&5
  21366. ac_status=$?
  21367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21368. (exit $ac_status); }; }; then
  21369. ac_cv_header_ldap_h=yes
  21370. else
  21371. echo "$as_me: failed program was:" >&5
  21372. sed 's/^/| /' conftest.$ac_ext >&5
  21373. ac_cv_header_ldap_h=no
  21374. fi
  21375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21376. fi
  21377. echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  21378. echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
  21379. if test $ac_cv_header_ldap_h = yes; then
  21380. isversion6=1
  21381. else
  21382. isversion6=
  21383. fi
  21384. CPPFLAGS="$save_cppflags"
  21385. if test -z "$isversion6" ; then
  21386. { { echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  21387. echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  21388. { (exit 1); exit 1; }; }
  21389. fi
  21390. # BEGIN COPYRIGHT BLOCK
  21391. # Copyright (C) 2007 Red Hat, Inc.
  21392. # All rights reserved.
  21393. #
  21394. # This program is free software; you can redistribute it and/or
  21395. # modify it under the terms of the GNU General Public License
  21396. # as published by the Free Software Foundation; either version 2
  21397. # of the License, or (at your option) any later version.
  21398. #
  21399. # This program is distributed in the hope that it will be useful,
  21400. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21401. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21402. # GNU General Public License for more details.
  21403. #
  21404. # You should have received a copy of the GNU General Public License
  21405. # along with this program; if not, write to the Free Software
  21406. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21407. #
  21408. # END COPYRIGHT BLOCK
  21409. { echo "$as_me:$LINENO: checking for db..." >&5
  21410. echo "$as_me: checking for db..." >&6;}
  21411. echo "$as_me:$LINENO: checking for --with-db" >&5
  21412. echo $ECHO_N "checking for --with-db... $ECHO_C" >&6
  21413. # Check whether --with-db or --without-db was given.
  21414. if test "${with_db+set}" = set; then
  21415. withval="$with_db"
  21416. if test "$withval" = "yes"; then
  21417. echo "$as_me:$LINENO: result: yes" >&5
  21418. echo "${ECHO_T}yes" >&6
  21419. if test -f "/usr/include/db.h"; then
  21420. db_incdir="/usr/include"
  21421. db_inc="-I/usr/include"
  21422. else
  21423. { { echo "$as_me:$LINENO: error: db.h not found" >&5
  21424. echo "$as_me: error: db.h not found" >&2;}
  21425. { (exit 1); exit 1; }; }
  21426. fi
  21427. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21428. echo "$as_me:$LINENO: result: using $withval" >&5
  21429. echo "${ECHO_T}using $withval" >&6
  21430. DBDIR=$withval
  21431. db_lib="-L$DBDIR/lib"
  21432. db_libdir="$DBDIR/lib"
  21433. db_incdir="$DBDIR/include"
  21434. if ! test -e "$db_incdir/db.h" ; then
  21435. { { echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21436. echo "$as_me: error: $withval include dir not found" >&2;}
  21437. { (exit 1); exit 1; }; }
  21438. fi
  21439. db_inc="-I$db_incdir"
  21440. else
  21441. echo
  21442. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21443. echo "$as_me: error: $withval not found" >&2;}
  21444. { (exit 1); exit 1; }; }
  21445. fi
  21446. else
  21447. echo "$as_me:$LINENO: result: no" >&5
  21448. echo "${ECHO_T}no" >&6
  21449. fi;
  21450. if test -z "$db_inc"; then
  21451. echo "$as_me:$LINENO: checking for db.h" >&5
  21452. echo $ECHO_N "checking for db.h... $ECHO_C" >&6
  21453. if test -f "/usr/include/db.h"; then
  21454. echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  21455. echo "${ECHO_T}using /usr/include/db.h" >&6
  21456. db_incdir="/usr/include"
  21457. db_inc="-I/usr/include"
  21458. else
  21459. echo "$as_me:$LINENO: result: no" >&5
  21460. echo "${ECHO_T}no" >&6
  21461. { { echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  21462. echo "$as_me: error: db not found, specify with --with-db." >&2;}
  21463. { (exit 1); exit 1; }; }
  21464. fi
  21465. fi
  21466. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  21467. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  21468. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  21469. db_libver=${db_ver_maj}.${db_ver_min}
  21470. save_ldflags="$LDFLAGS"
  21471. LDFLAGS="$db_lib $LDFLAGS"
  21472. as_ac_Lib=`echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  21473. echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  21474. echo $ECHO_N "checking for db_create in -ldb-$db_libver... $ECHO_C" >&6
  21475. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  21476. echo $ECHO_N "(cached) $ECHO_C" >&6
  21477. else
  21478. ac_check_lib_save_LIBS=$LIBS
  21479. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  21480. cat >conftest.$ac_ext <<_ACEOF
  21481. /* confdefs.h. */
  21482. _ACEOF
  21483. cat confdefs.h >>conftest.$ac_ext
  21484. cat >>conftest.$ac_ext <<_ACEOF
  21485. /* end confdefs.h. */
  21486. /* Override any gcc2 internal prototype to avoid an error. */
  21487. #ifdef __cplusplus
  21488. extern "C"
  21489. #endif
  21490. /* We use char because int might match the return type of a gcc2
  21491. builtin and then its argument prototype would still apply. */
  21492. char db_create ();
  21493. int
  21494. main ()
  21495. {
  21496. db_create ();
  21497. ;
  21498. return 0;
  21499. }
  21500. _ACEOF
  21501. rm -f conftest.$ac_objext conftest$ac_exeext
  21502. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21503. (eval $ac_link) 2>conftest.er1
  21504. ac_status=$?
  21505. grep -v '^ *+' conftest.er1 >conftest.err
  21506. rm -f conftest.er1
  21507. cat conftest.err >&5
  21508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21509. (exit $ac_status); } &&
  21510. { ac_try='test -z "$ac_c_werror_flag"
  21511. || test ! -s conftest.err'
  21512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21513. (eval $ac_try) 2>&5
  21514. ac_status=$?
  21515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21516. (exit $ac_status); }; } &&
  21517. { ac_try='test -s conftest$ac_exeext'
  21518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21519. (eval $ac_try) 2>&5
  21520. ac_status=$?
  21521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21522. (exit $ac_status); }; }; then
  21523. eval "$as_ac_Lib=yes"
  21524. else
  21525. echo "$as_me: failed program was:" >&5
  21526. sed 's/^/| /' conftest.$ac_ext >&5
  21527. eval "$as_ac_Lib=no"
  21528. fi
  21529. rm -f conftest.err conftest.$ac_objext \
  21530. conftest$ac_exeext conftest.$ac_ext
  21531. LIBS=$ac_check_lib_save_LIBS
  21532. fi
  21533. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  21534. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  21535. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  21536. true
  21537. else
  21538. { { echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  21539. echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  21540. { (exit 1); exit 1; }; }
  21541. fi
  21542. LDFLAGS="$save_ldflags"
  21543. # if DB is not found yet, try pkg-config
  21544. # last resort
  21545. # Although the other db_* variables are correctly assigned at this point,
  21546. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  21547. if test -n "$PKG_CONFIG"; then
  21548. if $PKG_CONFIG --exists db; then
  21549. db_bindir=`$PKG_CONFIG --variable=bindir db`
  21550. else
  21551. db_bindir=/usr/bin
  21552. fi
  21553. else
  21554. db_bindir=/usr/bin
  21555. fi
  21556. # BEGIN COPYRIGHT BLOCK
  21557. # Copyright (C) 2007 Red Hat, Inc.
  21558. # All rights reserved.
  21559. #
  21560. # This program is free software; you can redistribute it and/or
  21561. # modify it under the terms of the GNU General Public License
  21562. # as published by the Free Software Foundation; either version 2
  21563. # of the License, or (at your option) any later version.
  21564. #
  21565. # This program is distributed in the hope that it will be useful,
  21566. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21567. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21568. # GNU General Public License for more details.
  21569. #
  21570. # You should have received a copy of the GNU General Public License
  21571. # along with this program; if not, write to the Free Software
  21572. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21573. #
  21574. # END COPYRIGHT BLOCK
  21575. # -*- tab-width: 4; -*-
  21576. # Configure paths for SASL
  21577. { echo "$as_me:$LINENO: checking for sasl..." >&5
  21578. echo "$as_me: checking for sasl..." >&6;}
  21579. echo "$as_me:$LINENO: checking for --with-sasl" >&5
  21580. echo $ECHO_N "checking for --with-sasl... $ECHO_C" >&6
  21581. # Check whether --with-sasl or --without-sasl was given.
  21582. if test "${with_sasl+set}" = set; then
  21583. withval="$with_sasl"
  21584. if test "$withval" = "yes"; then
  21585. echo "$as_me:$LINENO: result: yes" >&5
  21586. echo "${ECHO_T}yes" >&6
  21587. if test -f /usr/include/sasl/sasl.h; then
  21588. sasl_inc="-I/usr/include/sasl"
  21589. elif test -f /usr/include/sasl.h; then
  21590. sasl_inc="-I/usr/include"
  21591. else
  21592. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21593. echo "$as_me: error: sasl.h not found" >&2;}
  21594. { (exit 1); exit 1; }; }
  21595. fi
  21596. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21597. echo "$as_me:$LINENO: result: using $withval" >&5
  21598. echo "${ECHO_T}using $withval" >&6
  21599. if test -f "$withval/include/sasl/sasl.h"; then
  21600. sasl_inc="-I$withval/include/sasl"
  21601. elif test -f "$withval/include/sasl.h"; then
  21602. sasl_inc="-I$withval/include"
  21603. else
  21604. { { echo "$as_me:$LINENO: error: sasl.h not found" >&5
  21605. echo "$as_me: error: sasl.h not found" >&2;}
  21606. { (exit 1); exit 1; }; }
  21607. fi
  21608. sasl_lib="-L$withval/lib"
  21609. sasl_libdir="$withval/lib"
  21610. else
  21611. echo "$as_me:$LINENO: result: yes" >&5
  21612. echo "${ECHO_T}yes" >&6
  21613. { { echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  21614. echo "$as_me: error: sasl not found in $withval" >&2;}
  21615. { (exit 1); exit 1; }; }
  21616. fi
  21617. else
  21618. echo "$as_me:$LINENO: result: no" >&5
  21619. echo "${ECHO_T}no" >&6
  21620. fi;
  21621. echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  21622. echo $ECHO_N "checking for --with-sasl-inc... $ECHO_C" >&6
  21623. # Check whether --with-sasl-inc or --without-sasl-inc was given.
  21624. if test "${with_sasl_inc+set}" = set; then
  21625. withval="$with_sasl_inc"
  21626. if test -f "$withval"/sasl.h; then
  21627. echo "$as_me:$LINENO: result: using $withval" >&5
  21628. echo "${ECHO_T}using $withval" >&6
  21629. sasl_inc="-I$withval"
  21630. else
  21631. echo
  21632. { { echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  21633. echo "$as_me: error: $withval/sasl.h not found" >&2;}
  21634. { (exit 1); exit 1; }; }
  21635. fi
  21636. else
  21637. echo "$as_me:$LINENO: result: no" >&5
  21638. echo "${ECHO_T}no" >&6
  21639. fi;
  21640. echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  21641. echo $ECHO_N "checking for --with-sasl-lib... $ECHO_C" >&6
  21642. # Check whether --with-sasl-lib or --without-sasl-lib was given.
  21643. if test "${with_sasl_lib+set}" = set; then
  21644. withval="$with_sasl_lib"
  21645. if test -d "$withval"; then
  21646. echo "$as_me:$LINENO: result: using $withval" >&5
  21647. echo "${ECHO_T}using $withval" >&6
  21648. sasl_lib="-L$withval"
  21649. sasl_libdir="$withval"
  21650. else
  21651. echo
  21652. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21653. echo "$as_me: error: $withval not found" >&2;}
  21654. { (exit 1); exit 1; }; }
  21655. fi
  21656. else
  21657. echo "$as_me:$LINENO: result: no" >&5
  21658. echo "${ECHO_T}no" >&6
  21659. fi;
  21660. if test -z "$sasl_inc"; then
  21661. echo "$as_me:$LINENO: checking for sasl.h" >&5
  21662. echo $ECHO_N "checking for sasl.h... $ECHO_C" >&6
  21663. if test -f /usr/include/sasl/sasl.h; then
  21664. echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  21665. echo "${ECHO_T}using /usr/include/sasl/sasl.h" >&6
  21666. sasl_inc="-I/usr/include/sasl"
  21667. elif test -f /usr/include/sasl.h; then
  21668. echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  21669. echo "${ECHO_T}using /usr/include/sasl.h" >&6
  21670. sasl_inc="-I/usr/include"
  21671. else
  21672. echo "$as_me:$LINENO: result: no" >&5
  21673. echo "${ECHO_T}no" >&6
  21674. { { echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  21675. echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  21676. { (exit 1); exit 1; }; }
  21677. fi
  21678. fi
  21679. # BEGIN COPYRIGHT BLOCK
  21680. # Copyright (C) 2007 Red Hat, Inc.
  21681. # All rights reserved.
  21682. #
  21683. # This program is free software; you can redistribute it and/or
  21684. # modify it under the terms of the GNU General Public License
  21685. # as published by the Free Software Foundation; either version 2
  21686. # of the License, or (at your option) any later version.
  21687. #
  21688. # This program is distributed in the hope that it will be useful,
  21689. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21690. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21691. # GNU General Public License for more details.
  21692. #
  21693. # You should have received a copy of the GNU General Public License
  21694. # along with this program; if not, write to the Free Software
  21695. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21696. #
  21697. # END COPYRIGHT BLOCK
  21698. #
  21699. # Configure paths for SVRCORE
  21700. { echo "$as_me:$LINENO: checking for svrcore..." >&5
  21701. echo "$as_me: checking for svrcore..." >&6;}
  21702. echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  21703. echo $ECHO_N "checking for --with-svrcore... $ECHO_C" >&6
  21704. # Check whether --with-svrcore or --without-svrcore was given.
  21705. if test "${with_svrcore+set}" = set; then
  21706. withval="$with_svrcore"
  21707. if test "$withval" = "yes"; then
  21708. echo "$as_me:$LINENO: result: yes" >&5
  21709. echo "${ECHO_T}yes" >&6
  21710. if test -f /usr/include/svrcore.h; then
  21711. svrcore_inc="-I/usr/include"
  21712. else
  21713. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21714. echo "$as_me: error: svrcore.h not found" >&2;}
  21715. { (exit 1); exit 1; }; }
  21716. fi
  21717. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  21718. echo "$as_me:$LINENO: result: using $withval" >&5
  21719. echo "${ECHO_T}using $withval" >&6
  21720. if test -f "$withval/include/svrcore.h"; then
  21721. svrcore_inc="-I$withval/include"
  21722. else
  21723. { { echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  21724. echo "$as_me: error: svrcore.h not found" >&2;}
  21725. { (exit 1); exit 1; }; }
  21726. fi
  21727. svrcore_lib="-L$withval/lib"
  21728. else
  21729. echo "$as_me:$LINENO: result: yes" >&5
  21730. echo "${ECHO_T}yes" >&6
  21731. { { echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  21732. echo "$as_me: error: svrcore not found in $withval" >&2;}
  21733. { (exit 1); exit 1; }; }
  21734. fi
  21735. else
  21736. echo "$as_me:$LINENO: result: no" >&5
  21737. echo "${ECHO_T}no" >&6
  21738. fi;
  21739. echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  21740. echo $ECHO_N "checking for --with-svrcore-inc... $ECHO_C" >&6
  21741. # Check whether --with-svrcore-inc or --without-svrcore-inc was given.
  21742. if test "${with_svrcore_inc+set}" = set; then
  21743. withval="$with_svrcore_inc"
  21744. if test -f "$withval"/svrcore.h; then
  21745. echo "$as_me:$LINENO: result: using $withval" >&5
  21746. echo "${ECHO_T}using $withval" >&6
  21747. svrcore_inc="-I$withval"
  21748. else
  21749. echo
  21750. { { echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  21751. echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  21752. { (exit 1); exit 1; }; }
  21753. fi
  21754. else
  21755. echo "$as_me:$LINENO: result: no" >&5
  21756. echo "${ECHO_T}no" >&6
  21757. fi;
  21758. echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  21759. echo $ECHO_N "checking for --with-svrcore-lib... $ECHO_C" >&6
  21760. # Check whether --with-svrcore-lib or --without-svrcore-lib was given.
  21761. if test "${with_svrcore_lib+set}" = set; then
  21762. withval="$with_svrcore_lib"
  21763. if test -d "$withval"; then
  21764. echo "$as_me:$LINENO: result: using $withval" >&5
  21765. echo "${ECHO_T}using $withval" >&6
  21766. svrcore_lib="-L$withval"
  21767. else
  21768. echo
  21769. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  21770. echo "$as_me: error: $withval not found" >&2;}
  21771. { (exit 1); exit 1; }; }
  21772. fi
  21773. else
  21774. echo "$as_me:$LINENO: result: no" >&5
  21775. echo "${ECHO_T}no" >&6
  21776. fi;
  21777. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21778. # Extract the first word of "pkg-config", so it can be a program name with args.
  21779. set dummy pkg-config; ac_word=$2
  21780. echo "$as_me:$LINENO: checking for $ac_word" >&5
  21781. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21782. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21783. echo $ECHO_N "(cached) $ECHO_C" >&6
  21784. else
  21785. case $PKG_CONFIG in
  21786. [\\/]* | ?:[\\/]*)
  21787. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21788. ;;
  21789. *)
  21790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21791. for as_dir in $PATH
  21792. do
  21793. IFS=$as_save_IFS
  21794. test -z "$as_dir" && as_dir=.
  21795. for ac_exec_ext in '' $ac_executable_extensions; do
  21796. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21797. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21798. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21799. break 2
  21800. fi
  21801. done
  21802. done
  21803. ;;
  21804. esac
  21805. fi
  21806. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21807. if test -n "$PKG_CONFIG"; then
  21808. echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21809. echo "${ECHO_T}$PKG_CONFIG" >&6
  21810. else
  21811. echo "$as_me:$LINENO: result: no" >&5
  21812. echo "${ECHO_T}no" >&6
  21813. fi
  21814. echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  21815. echo $ECHO_N "checking for svrcore with pkg-config... $ECHO_C" >&6
  21816. if test -n "$PKG_CONFIG"; then
  21817. if $PKG_CONFIG --exists svrcore; then
  21818. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  21819. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  21820. echo "$as_me:$LINENO: result: using system svrcore" >&5
  21821. echo "${ECHO_T}using system svrcore" >&6
  21822. fi
  21823. fi
  21824. fi
  21825. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  21826. echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  21827. echo $ECHO_N "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... $ECHO_C" >&6
  21828. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  21829. echo $ECHO_N "(cached) $ECHO_C" >&6
  21830. else
  21831. ac_check_lib_save_LIBS=$LIBS
  21832. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  21833. cat >conftest.$ac_ext <<_ACEOF
  21834. /* confdefs.h. */
  21835. _ACEOF
  21836. cat confdefs.h >>conftest.$ac_ext
  21837. cat >>conftest.$ac_ext <<_ACEOF
  21838. /* end confdefs.h. */
  21839. /* Override any gcc2 internal prototype to avoid an error. */
  21840. #ifdef __cplusplus
  21841. extern "C"
  21842. #endif
  21843. /* We use char because int might match the return type of a gcc2
  21844. builtin and then its argument prototype would still apply. */
  21845. char SVRCORE_GetRegisteredPinObj ();
  21846. int
  21847. main ()
  21848. {
  21849. SVRCORE_GetRegisteredPinObj ();
  21850. ;
  21851. return 0;
  21852. }
  21853. _ACEOF
  21854. rm -f conftest.$ac_objext conftest$ac_exeext
  21855. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21856. (eval $ac_link) 2>conftest.er1
  21857. ac_status=$?
  21858. grep -v '^ *+' conftest.er1 >conftest.err
  21859. rm -f conftest.er1
  21860. cat conftest.err >&5
  21861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21862. (exit $ac_status); } &&
  21863. { ac_try='test -z "$ac_c_werror_flag"
  21864. || test ! -s conftest.err'
  21865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21866. (eval $ac_try) 2>&5
  21867. ac_status=$?
  21868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21869. (exit $ac_status); }; } &&
  21870. { ac_try='test -s conftest$ac_exeext'
  21871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21872. (eval $ac_try) 2>&5
  21873. ac_status=$?
  21874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21875. (exit $ac_status); }; }; then
  21876. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  21877. else
  21878. echo "$as_me: failed program was:" >&5
  21879. sed 's/^/| /' conftest.$ac_ext >&5
  21880. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  21881. fi
  21882. rm -f conftest.err conftest.$ac_objext \
  21883. conftest$ac_exeext conftest.$ac_ext
  21884. LIBS=$ac_check_lib_save_LIBS
  21885. fi
  21886. echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  21887. echo "${ECHO_T}$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6
  21888. if test $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj = yes; then
  21889. havesvrcore=1
  21890. fi
  21891. if test -n "$havesvrcore" ; then
  21892. save_cppflags="$CPPFLAGS"
  21893. CPPFLAGS="$nss_inc $nspr_inc"
  21894. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21895. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  21896. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  21897. if test "${ac_cv_header_svrcore_h+set}" = set; then
  21898. echo $ECHO_N "(cached) $ECHO_C" >&6
  21899. fi
  21900. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  21901. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  21902. else
  21903. # Is the header compilable?
  21904. echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  21905. echo $ECHO_N "checking svrcore.h usability... $ECHO_C" >&6
  21906. cat >conftest.$ac_ext <<_ACEOF
  21907. /* confdefs.h. */
  21908. _ACEOF
  21909. cat confdefs.h >>conftest.$ac_ext
  21910. cat >>conftest.$ac_ext <<_ACEOF
  21911. /* end confdefs.h. */
  21912. $ac_includes_default
  21913. #include <svrcore.h>
  21914. _ACEOF
  21915. rm -f conftest.$ac_objext
  21916. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21917. (eval $ac_compile) 2>conftest.er1
  21918. ac_status=$?
  21919. grep -v '^ *+' conftest.er1 >conftest.err
  21920. rm -f conftest.er1
  21921. cat conftest.err >&5
  21922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21923. (exit $ac_status); } &&
  21924. { ac_try='test -z "$ac_c_werror_flag"
  21925. || test ! -s conftest.err'
  21926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21927. (eval $ac_try) 2>&5
  21928. ac_status=$?
  21929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21930. (exit $ac_status); }; } &&
  21931. { ac_try='test -s conftest.$ac_objext'
  21932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21933. (eval $ac_try) 2>&5
  21934. ac_status=$?
  21935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21936. (exit $ac_status); }; }; then
  21937. ac_header_compiler=yes
  21938. else
  21939. echo "$as_me: failed program was:" >&5
  21940. sed 's/^/| /' conftest.$ac_ext >&5
  21941. ac_header_compiler=no
  21942. fi
  21943. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21944. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21945. echo "${ECHO_T}$ac_header_compiler" >&6
  21946. # Is the header present?
  21947. echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  21948. echo $ECHO_N "checking svrcore.h presence... $ECHO_C" >&6
  21949. cat >conftest.$ac_ext <<_ACEOF
  21950. /* confdefs.h. */
  21951. _ACEOF
  21952. cat confdefs.h >>conftest.$ac_ext
  21953. cat >>conftest.$ac_ext <<_ACEOF
  21954. /* end confdefs.h. */
  21955. #include <svrcore.h>
  21956. _ACEOF
  21957. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21958. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21959. ac_status=$?
  21960. grep -v '^ *+' conftest.er1 >conftest.err
  21961. rm -f conftest.er1
  21962. cat conftest.err >&5
  21963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21964. (exit $ac_status); } >/dev/null; then
  21965. if test -s conftest.err; then
  21966. ac_cpp_err=$ac_c_preproc_warn_flag
  21967. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  21968. else
  21969. ac_cpp_err=
  21970. fi
  21971. else
  21972. ac_cpp_err=yes
  21973. fi
  21974. if test -z "$ac_cpp_err"; then
  21975. ac_header_preproc=yes
  21976. else
  21977. echo "$as_me: failed program was:" >&5
  21978. sed 's/^/| /' conftest.$ac_ext >&5
  21979. ac_header_preproc=no
  21980. fi
  21981. rm -f conftest.err conftest.$ac_ext
  21982. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21983. echo "${ECHO_T}$ac_header_preproc" >&6
  21984. # So? What about this header?
  21985. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21986. yes:no: )
  21987. { echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  21988. echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21989. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  21990. echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  21991. ac_header_preproc=yes
  21992. ;;
  21993. no:yes:* )
  21994. { echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  21995. echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  21996. { echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  21997. echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  21998. { echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  21999. echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  22000. { echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  22001. echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22002. { echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  22003. echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  22004. { echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  22005. echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  22006. (
  22007. cat <<\_ASBOX
  22008. ## ------------------------------------------ ##
  22009. ## Report this to http://bugzilla.redhat.com/ ##
  22010. ## ------------------------------------------ ##
  22011. _ASBOX
  22012. ) |
  22013. sed "s/^/$as_me: WARNING: /" >&2
  22014. ;;
  22015. esac
  22016. echo "$as_me:$LINENO: checking for svrcore.h" >&5
  22017. echo $ECHO_N "checking for svrcore.h... $ECHO_C" >&6
  22018. if test "${ac_cv_header_svrcore_h+set}" = set; then
  22019. echo $ECHO_N "(cached) $ECHO_C" >&6
  22020. else
  22021. ac_cv_header_svrcore_h=$ac_header_preproc
  22022. fi
  22023. echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  22024. echo "${ECHO_T}$ac_cv_header_svrcore_h" >&6
  22025. fi
  22026. if test $ac_cv_header_svrcore_h = yes; then
  22027. havesvrcore=1
  22028. else
  22029. havesvrcore=
  22030. fi
  22031. CPPFLAGS="$save_cppflags"
  22032. fi
  22033. if test -z "$havesvrcore" ; then
  22034. { { echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  22035. echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  22036. { (exit 1); exit 1; }; }
  22037. fi
  22038. fi
  22039. # BEGIN COPYRIGHT BLOCK
  22040. # Copyright (C) 2006 Red Hat, Inc.
  22041. # All rights reserved.
  22042. #
  22043. # This program is free software; you can redistribute it and/or
  22044. # modify it under the terms of the GNU General Public License
  22045. # as published by the Free Software Foundation; either version 2
  22046. # of the License, or (at your option) any later version.
  22047. #
  22048. # This program is distributed in the hope that it will be useful,
  22049. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22050. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22051. # GNU General Public License for more details.
  22052. #
  22053. # You should have received a copy of the GNU General Public License
  22054. # along with this program; if not, write to the Free Software
  22055. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22056. #
  22057. # END COPYRIGHT BLOCK
  22058. { echo "$as_me:$LINENO: checking for LIBICU..." >&5
  22059. echo "$as_me: checking for LIBICU..." >&6;}
  22060. # check for --with-icu
  22061. echo "$as_me:$LINENO: checking for --with-icu" >&5
  22062. echo $ECHO_N "checking for --with-icu... $ECHO_C" >&6
  22063. # Check whether --with-icu or --without-icu was given.
  22064. if test "${with_icu+set}" = set; then
  22065. withval="$with_icu"
  22066. if test -d "$withval"/lib
  22067. then
  22068. echo "$as_me:$LINENO: result: using $withval" >&5
  22069. echo "${ECHO_T}using $withval" >&6
  22070. ICUDIR=$withval
  22071. icu_lib="-L$ICUDIR/lib"
  22072. else
  22073. echo
  22074. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22075. echo "$as_me: error: $withval not found" >&2;}
  22076. { (exit 1); exit 1; }; }
  22077. fi
  22078. icu_inc="-I$withval/include"
  22079. icu_bin="$withval/bin"
  22080. else
  22081. echo "$as_me:$LINENO: result: no" >&5
  22082. echo "${ECHO_T}no" >&6
  22083. fi;
  22084. # check for --with-icu-inc
  22085. echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  22086. echo $ECHO_N "checking for --with-icu-inc... $ECHO_C" >&6
  22087. # Check whether --with-icu-inc or --without-icu-inc was given.
  22088. if test "${with_icu_inc+set}" = set; then
  22089. withval="$with_icu_inc"
  22090. if test -d "$withval"
  22091. then
  22092. echo "$as_me:$LINENO: result: using $withval" >&5
  22093. echo "${ECHO_T}using $withval" >&6
  22094. icu_inc="-I$withval"
  22095. else
  22096. echo
  22097. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22098. echo "$as_me: error: $withval not found" >&2;}
  22099. { (exit 1); exit 1; }; }
  22100. fi
  22101. else
  22102. echo "$as_me:$LINENO: result: no" >&5
  22103. echo "${ECHO_T}no" >&6
  22104. fi;
  22105. # check for --with-icu-lib
  22106. echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  22107. echo $ECHO_N "checking for --with-icu-lib... $ECHO_C" >&6
  22108. # Check whether --with-icu-lib or --without-icu-lib was given.
  22109. if test "${with_icu_lib+set}" = set; then
  22110. withval="$with_icu_lib"
  22111. if test -d "$withval"
  22112. then
  22113. echo "$as_me:$LINENO: result: using $withval" >&5
  22114. echo "${ECHO_T}using $withval" >&6
  22115. icu_lib="-L$withval"
  22116. else
  22117. echo
  22118. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22119. echo "$as_me: error: $withval not found" >&2;}
  22120. { (exit 1); exit 1; }; }
  22121. fi
  22122. else
  22123. echo "$as_me:$LINENO: result: no" >&5
  22124. echo "${ECHO_T}no" >&6
  22125. fi;
  22126. # check for --with-icu-bin
  22127. echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  22128. echo $ECHO_N "checking for --with-icu-bin... $ECHO_C" >&6
  22129. # Check whether --with-icu-bin or --without-icu-bin was given.
  22130. if test "${with_icu_bin+set}" = set; then
  22131. withval="$with_icu_bin"
  22132. if test -d "$withval"
  22133. then
  22134. echo "$as_me:$LINENO: result: using $withval" >&5
  22135. echo "${ECHO_T}using $withval" >&6
  22136. icu_bin="$withval"
  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. # if ICU is not found yet, try pkg-config
  22148. # last resort
  22149. if test -z "$icu_lib"; then
  22150. echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  22151. echo $ECHO_N "checking for icu with icu-config... $ECHO_C" >&6
  22152. # Extract the first word of "icu-config", so it can be a program name with args.
  22153. set dummy icu-config; ac_word=$2
  22154. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22155. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22156. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  22157. echo $ECHO_N "(cached) $ECHO_C" >&6
  22158. else
  22159. case $ICU_CONFIG in
  22160. [\\/]* | ?:[\\/]*)
  22161. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  22162. ;;
  22163. *)
  22164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22165. for as_dir in $PATH
  22166. do
  22167. IFS=$as_save_IFS
  22168. test -z "$as_dir" && as_dir=.
  22169. for ac_exec_ext in '' $ac_executable_extensions; do
  22170. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22171. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22172. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22173. break 2
  22174. fi
  22175. done
  22176. done
  22177. ;;
  22178. esac
  22179. fi
  22180. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  22181. if test -n "$ICU_CONFIG"; then
  22182. echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  22183. echo "${ECHO_T}$ICU_CONFIG" >&6
  22184. else
  22185. echo "$as_me:$LINENO: result: no" >&5
  22186. echo "${ECHO_T}no" >&6
  22187. fi
  22188. if test -n "$ICU_CONFIG"; then
  22189. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  22190. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  22191. icu_bin=`$ICU_CONFIG --bindir`
  22192. echo "$as_me:$LINENO: result: using system ICU" >&5
  22193. echo "${ECHO_T}using system ICU" >&6
  22194. else
  22195. { { echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  22196. echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  22197. { (exit 1); exit 1; }; }
  22198. fi
  22199. fi
  22200. # BEGIN COPYRIGHT BLOCK
  22201. # Copyright (C) 2006 Red Hat, Inc.
  22202. # All rights reserved.
  22203. #
  22204. # This program is free software; you can redistribute it and/or
  22205. # modify it under the terms of the GNU General Public License
  22206. # as published by the Free Software Foundation; either version 2
  22207. # of the License, or (at your option) any later version.
  22208. #
  22209. # This program is distributed in the hope that it will be useful,
  22210. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22211. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22212. # GNU General Public License for more details.
  22213. #
  22214. # You should have received a copy of the GNU General Public License
  22215. # along with this program; if not, write to the Free Software
  22216. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22217. #
  22218. # END COPYRIGHT BLOCK
  22219. { echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  22220. echo "$as_me: checking for Net-SNMP..." >&6;}
  22221. echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  22222. echo $ECHO_N "checking for --with-netsnmp... $ECHO_C" >&6
  22223. # Check whether --with-netsnmp or --without-netsnmp was given.
  22224. if test "${with_netsnmp+set}" = set; then
  22225. withval="$with_netsnmp"
  22226. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  22227. echo "$as_me:$LINENO: result: using $withval" >&5
  22228. echo "${ECHO_T}using $withval" >&6
  22229. NETSNMPDIR=$withval
  22230. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  22231. netsnmp_inc="-I$withval/include"
  22232. else
  22233. { { echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  22234. echo "$as_me: error: net-snmp-config.h not found" >&2;}
  22235. { (exit 1); exit 1; }; }
  22236. fi
  22237. netsnmp_lib="-L$withval/lib"
  22238. netsnmp_libdir="$withval/lib"
  22239. else
  22240. echo "$as_me:$LINENO: result: yes" >&5
  22241. echo "${ECHO_T}yes" >&6
  22242. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22243. echo "$as_me: error: $withval not found" >&2;}
  22244. { (exit 1); exit 1; }; }
  22245. fi
  22246. else
  22247. echo "$as_me:$LINENO: result: no" >&5
  22248. echo "${ECHO_T}no" >&6
  22249. fi;
  22250. echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  22251. echo $ECHO_N "checking for --with-netsnmp-inc... $ECHO_C" >&6
  22252. # Check whether --with-netsnmp-inc or --without-netsnmp-inc was given.
  22253. if test "${with_netsnmp_inc+set}" = set; then
  22254. withval="$with_netsnmp_inc"
  22255. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  22256. echo "$as_me:$LINENO: result: using $withval" >&5
  22257. echo "${ECHO_T}using $withval" >&6
  22258. netsnmp_inc="-I$withval"
  22259. else
  22260. echo
  22261. { { echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  22262. echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  22263. { (exit 1); exit 1; }; }
  22264. fi
  22265. else
  22266. echo "$as_me:$LINENO: result: no" >&5
  22267. echo "${ECHO_T}no" >&6
  22268. fi;
  22269. echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  22270. echo $ECHO_N "checking for --with-netsnmp-lib... $ECHO_C" >&6
  22271. # Check whether --with-netsnmp-lib or --without-netsnmp-lib was given.
  22272. if test "${with_netsnmp_lib+set}" = set; then
  22273. withval="$with_netsnmp_lib"
  22274. if test -d "$withval"
  22275. then
  22276. echo "$as_me:$LINENO: result: using $withval" >&5
  22277. echo "${ECHO_T}using $withval" >&6
  22278. netsnmp_lib="-L$withval"
  22279. netsnmp_libdir="$withval"
  22280. else
  22281. echo
  22282. { { echo "$as_me:$LINENO: error: $withval not found" >&5
  22283. echo "$as_me: error: $withval not found" >&2;}
  22284. { (exit 1); exit 1; }; }
  22285. fi
  22286. else
  22287. echo "$as_me:$LINENO: result: no" >&5
  22288. echo "${ECHO_T}no" >&6
  22289. fi;
  22290. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  22291. echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  22292. echo $ECHO_N "checking for net-snmp-includes.h... $ECHO_C" >&6
  22293. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  22294. echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  22295. echo "${ECHO_T}using /usr/include/net-snmp/net-snmp-includes.h" >&6
  22296. netsnmp_inc="-I/usr/include"
  22297. else
  22298. echo "$as_me:$LINENO: result: no" >&5
  22299. echo "${ECHO_T}no" >&6
  22300. { { echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  22301. echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  22302. { (exit 1); exit 1; }; }
  22303. fi
  22304. fi
  22305. if test -n "$netsnmp_inc"; then
  22306. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  22307. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  22308. else
  22309. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  22310. set dummy net-snmp-config; ac_word=$2
  22311. echo "$as_me:$LINENO: checking for $ac_word" >&5
  22312. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22313. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  22314. echo $ECHO_N "(cached) $ECHO_C" >&6
  22315. else
  22316. case $NETSNMP_CONFIG in
  22317. [\\/]* | ?:[\\/]*)
  22318. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  22319. ;;
  22320. *)
  22321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22322. for as_dir in $PATH
  22323. do
  22324. IFS=$as_save_IFS
  22325. test -z "$as_dir" && as_dir=.
  22326. for ac_exec_ext in '' $ac_executable_extensions; do
  22327. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22328. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22329. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22330. break 2
  22331. fi
  22332. done
  22333. done
  22334. ;;
  22335. esac
  22336. fi
  22337. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  22338. if test -n "$NETSNMP_CONFIG"; then
  22339. echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  22340. echo "${ECHO_T}$NETSNMP_CONFIG" >&6
  22341. else
  22342. echo "$as_me:$LINENO: result: no" >&5
  22343. echo "${ECHO_T}no" >&6
  22344. fi
  22345. fi
  22346. if test -n "$NETSNMP_CONFIG"; then
  22347. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  22348. else
  22349. { { echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  22350. echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  22351. { (exit 1); exit 1; }; }
  22352. fi
  22353. else
  22354. { { echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  22355. echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  22356. { (exit 1); exit 1; }; }
  22357. fi
  22358. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  22359. # set sasl_path for wrapper scripts
  22360. if test -z "$sasl_libdir" ; then
  22361. sasl_path="$libdir/sasl2"
  22362. else
  22363. sasl_path="$sasl_libdir/sasl2"
  22364. fi
  22365. # write out paths for binary components
  22366. cat >>confdefs.h <<\_ACEOF
  22367. #define LDAP_DEBUG 1
  22368. _ACEOF
  22369. cat >>confdefs.h <<\_ACEOF
  22370. #define LDAP_DONT_USE_SMARTHEAP 1
  22371. _ACEOF
  22372. # libtool on fedora/rhel contains some gcc-isms which cause problems
  22373. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  22374. # we remove them here
  22375. if test "$GCC" != yes ; then
  22376. { echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  22377. echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  22378. cp -p libtool libtool.orig
  22379. cp -p libtool libtool.tmp
  22380. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  22381. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  22382. # perl produced write-only code . . .
  22383. sed -e '/^gcc_dir/ d' \
  22384. -e '/^gcc_ver/ d' \
  22385. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  22386. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  22387. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  22388. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  22389. libtool > libtool.tmp
  22390. cp -p libtool.tmp libtool
  22391. rm -f libtool.tmp
  22392. fi
  22393. ac_config_files="$ac_config_files Makefile"
  22394. cat >confcache <<\_ACEOF
  22395. # This file is a shell script that caches the results of configure
  22396. # tests run on this system so they can be shared between configure
  22397. # scripts and configure runs, see configure's option --config-cache.
  22398. # It is not useful on other systems. If it contains results you don't
  22399. # want to keep, you may remove or edit it.
  22400. #
  22401. # config.status only pays attention to the cache file if you give it
  22402. # the --recheck option to rerun configure.
  22403. #
  22404. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22405. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22406. # following values.
  22407. _ACEOF
  22408. # The following way of writing the cache mishandles newlines in values,
  22409. # but we know of no workaround that is simple, portable, and efficient.
  22410. # So, don't put newlines in cache variables' values.
  22411. # Ultrix sh set writes to stderr and can't be redirected directly,
  22412. # and sets the high bit in the cache file unless we assign to the vars.
  22413. {
  22414. (set) 2>&1 |
  22415. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22416. *ac_space=\ *)
  22417. # `set' does not quote correctly, so add quotes (double-quote
  22418. # substitution turns \\\\ into \\, and sed turns \\ into \).
  22419. sed -n \
  22420. "s/'/'\\\\''/g;
  22421. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22422. ;;
  22423. *)
  22424. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22425. sed -n \
  22426. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  22427. ;;
  22428. esac;
  22429. } |
  22430. sed '
  22431. t clear
  22432. : clear
  22433. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22434. t end
  22435. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22436. : end' >>confcache
  22437. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  22438. if test -w $cache_file; then
  22439. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  22440. cat confcache >$cache_file
  22441. else
  22442. echo "not updating unwritable cache $cache_file"
  22443. fi
  22444. fi
  22445. rm -f confcache
  22446. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22447. # Let make expand exec_prefix.
  22448. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22449. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22450. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22451. # trailing colons and then remove the whole line if VPATH becomes empty
  22452. # (actually we leave an empty line to preserve line numbers).
  22453. if test "x$srcdir" = x.; then
  22454. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22455. s/:*\$(srcdir):*/:/;
  22456. s/:*\${srcdir}:*/:/;
  22457. s/:*@srcdir@:*/:/;
  22458. s/^\([^=]*=[ ]*\):*/\1/;
  22459. s/:*$//;
  22460. s/^[^=]*=[ ]*$//;
  22461. }'
  22462. fi
  22463. DEFS=-DHAVE_CONFIG_H
  22464. ac_libobjs=
  22465. ac_ltlibobjs=
  22466. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22467. # 1. Remove the extension, and $U if already installed.
  22468. ac_i=`echo "$ac_i" |
  22469. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  22470. # 2. Add them.
  22471. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  22472. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  22473. done
  22474. LIBOBJS=$ac_libobjs
  22475. LTLIBOBJS=$ac_ltlibobjs
  22476. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  22477. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  22478. Usually this means the macro was only invoked conditionally." >&5
  22479. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  22480. Usually this means the macro was only invoked conditionally." >&2;}
  22481. { (exit 1); exit 1; }; }
  22482. fi
  22483. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22484. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  22485. Usually this means the macro was only invoked conditionally." >&5
  22486. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  22487. Usually this means the macro was only invoked conditionally." >&2;}
  22488. { (exit 1); exit 1; }; }
  22489. fi
  22490. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  22491. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  22492. Usually this means the macro was only invoked conditionally." >&5
  22493. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  22494. Usually this means the macro was only invoked conditionally." >&2;}
  22495. { (exit 1); exit 1; }; }
  22496. fi
  22497. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22498. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  22499. Usually this means the macro was only invoked conditionally." >&5
  22500. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  22501. Usually this means the macro was only invoked conditionally." >&2;}
  22502. { (exit 1); exit 1; }; }
  22503. fi
  22504. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  22505. { { echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  22506. Usually this means the macro was only invoked conditionally." >&5
  22507. echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  22508. Usually this means the macro was only invoked conditionally." >&2;}
  22509. { (exit 1); exit 1; }; }
  22510. fi
  22511. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  22512. { { echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  22513. Usually this means the macro was only invoked conditionally." >&5
  22514. echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  22515. Usually this means the macro was only invoked conditionally." >&2;}
  22516. { (exit 1); exit 1; }; }
  22517. fi
  22518. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  22519. { { echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  22520. Usually this means the macro was only invoked conditionally." >&5
  22521. echo "$as_me: error: conditional \"enable_dna\" was never defined.
  22522. Usually this means the macro was only invoked conditionally." >&2;}
  22523. { (exit 1); exit 1; }; }
  22524. fi
  22525. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  22526. { { echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  22527. Usually this means the macro was only invoked conditionally." >&5
  22528. echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  22529. Usually this means the macro was only invoked conditionally." >&2;}
  22530. { (exit 1); exit 1; }; }
  22531. fi
  22532. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  22533. { { echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  22534. Usually this means the macro was only invoked conditionally." >&5
  22535. echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  22536. Usually this means the macro was only invoked conditionally." >&2;}
  22537. { (exit 1); exit 1; }; }
  22538. fi
  22539. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  22540. { { echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  22541. Usually this means the macro was only invoked conditionally." >&5
  22542. echo "$as_me: error: conditional \"WINNT\" was never defined.
  22543. Usually this means the macro was only invoked conditionally." >&2;}
  22544. { (exit 1); exit 1; }; }
  22545. fi
  22546. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  22547. { { echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  22548. Usually this means the macro was only invoked conditionally." >&5
  22549. echo "$as_me: error: conditional \"HPUX\" was never defined.
  22550. Usually this means the macro was only invoked conditionally." >&2;}
  22551. { (exit 1); exit 1; }; }
  22552. fi
  22553. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  22554. { { echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  22555. Usually this means the macro was only invoked conditionally." >&5
  22556. echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  22557. Usually this means the macro was only invoked conditionally." >&2;}
  22558. { (exit 1); exit 1; }; }
  22559. fi
  22560. : ${CONFIG_STATUS=./config.status}
  22561. ac_clean_files_save=$ac_clean_files
  22562. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22563. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  22564. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22565. cat >$CONFIG_STATUS <<_ACEOF
  22566. #! $SHELL
  22567. # Generated by $as_me.
  22568. # Run this file to recreate the current configuration.
  22569. # Compiler output produced by configure, useful for debugging
  22570. # configure, is in config.log if it exists.
  22571. debug=false
  22572. ac_cs_recheck=false
  22573. ac_cs_silent=false
  22574. SHELL=\${CONFIG_SHELL-$SHELL}
  22575. _ACEOF
  22576. cat >>$CONFIG_STATUS <<\_ACEOF
  22577. ## --------------------- ##
  22578. ## M4sh Initialization. ##
  22579. ## --------------------- ##
  22580. # Be Bourne compatible
  22581. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  22582. emulate sh
  22583. NULLCMD=:
  22584. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  22585. # is contrary to our usage. Disable this feature.
  22586. alias -g '${1+"$@"}'='"$@"'
  22587. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22588. set -o posix
  22589. fi
  22590. DUALCASE=1; export DUALCASE # for MKS sh
  22591. # Support unset when possible.
  22592. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22593. as_unset=unset
  22594. else
  22595. as_unset=false
  22596. fi
  22597. # Work around bugs in pre-3.0 UWIN ksh.
  22598. $as_unset ENV MAIL MAILPATH
  22599. PS1='$ '
  22600. PS2='> '
  22601. PS4='+ '
  22602. # NLS nuisances.
  22603. for as_var in \
  22604. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  22605. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  22606. LC_TELEPHONE LC_TIME
  22607. do
  22608. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  22609. eval $as_var=C; export $as_var
  22610. else
  22611. $as_unset $as_var
  22612. fi
  22613. done
  22614. # Required to use basename.
  22615. if expr a : '\(a\)' >/dev/null 2>&1; then
  22616. as_expr=expr
  22617. else
  22618. as_expr=false
  22619. fi
  22620. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  22621. as_basename=basename
  22622. else
  22623. as_basename=false
  22624. fi
  22625. # Name of the executable.
  22626. as_me=`$as_basename "$0" ||
  22627. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22628. X"$0" : 'X\(//\)$' \| \
  22629. X"$0" : 'X\(/\)$' \| \
  22630. . : '\(.\)' 2>/dev/null ||
  22631. echo X/"$0" |
  22632. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  22633. /^X\/\(\/\/\)$/{ s//\1/; q; }
  22634. /^X\/\(\/\).*/{ s//\1/; q; }
  22635. s/.*/./; q'`
  22636. # PATH needs CR, and LINENO needs CR and PATH.
  22637. # Avoid depending upon Character Ranges.
  22638. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22639. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22640. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22641. as_cr_digits='0123456789'
  22642. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22643. # The user is always right.
  22644. if test "${PATH_SEPARATOR+set}" != set; then
  22645. echo "#! /bin/sh" >conf$$.sh
  22646. echo "exit 0" >>conf$$.sh
  22647. chmod +x conf$$.sh
  22648. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  22649. PATH_SEPARATOR=';'
  22650. else
  22651. PATH_SEPARATOR=:
  22652. fi
  22653. rm -f conf$$.sh
  22654. fi
  22655. as_lineno_1=$LINENO
  22656. as_lineno_2=$LINENO
  22657. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22658. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22659. test "x$as_lineno_3" = "x$as_lineno_2" || {
  22660. # Find who we are. Look in the path if we contain no path at all
  22661. # relative or not.
  22662. case $0 in
  22663. *[\\/]* ) as_myself=$0 ;;
  22664. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22665. for as_dir in $PATH
  22666. do
  22667. IFS=$as_save_IFS
  22668. test -z "$as_dir" && as_dir=.
  22669. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22670. done
  22671. ;;
  22672. esac
  22673. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22674. # in which case we are not to be found in the path.
  22675. if test "x$as_myself" = x; then
  22676. as_myself=$0
  22677. fi
  22678. if test ! -f "$as_myself"; then
  22679. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  22680. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  22681. { (exit 1); exit 1; }; }
  22682. fi
  22683. case $CONFIG_SHELL in
  22684. '')
  22685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22686. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  22687. do
  22688. IFS=$as_save_IFS
  22689. test -z "$as_dir" && as_dir=.
  22690. for as_base in sh bash ksh sh5; do
  22691. case $as_dir in
  22692. /*)
  22693. if ("$as_dir/$as_base" -c '
  22694. as_lineno_1=$LINENO
  22695. as_lineno_2=$LINENO
  22696. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  22697. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22698. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  22699. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  22700. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  22701. CONFIG_SHELL=$as_dir/$as_base
  22702. export CONFIG_SHELL
  22703. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  22704. fi;;
  22705. esac
  22706. done
  22707. done
  22708. ;;
  22709. esac
  22710. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22711. # uniformly replaced by the line number. The first 'sed' inserts a
  22712. # line-number line before each line; the second 'sed' does the real
  22713. # work. The second script uses 'N' to pair each line-number line
  22714. # with the numbered line, and appends trailing '-' during
  22715. # substitution so that $LINENO is not a special case at line end.
  22716. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22717. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  22718. sed '=' <$as_myself |
  22719. sed '
  22720. N
  22721. s,$,-,
  22722. : loop
  22723. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  22724. t loop
  22725. s,-$,,
  22726. s,^['$as_cr_digits']*\n,,
  22727. ' >$as_me.lineno &&
  22728. chmod +x $as_me.lineno ||
  22729. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  22730. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  22731. { (exit 1); exit 1; }; }
  22732. # Don't try to exec as it changes $[0], causing all sort of problems
  22733. # (the dirname of $[0] is not the place where we might find the
  22734. # original and so on. Autoconf is especially sensible to this).
  22735. . ./$as_me.lineno
  22736. # Exit status is that of the last command.
  22737. exit
  22738. }
  22739. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  22740. *c*,-n*) ECHO_N= ECHO_C='
  22741. ' ECHO_T=' ' ;;
  22742. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  22743. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  22744. esac
  22745. if expr a : '\(a\)' >/dev/null 2>&1; then
  22746. as_expr=expr
  22747. else
  22748. as_expr=false
  22749. fi
  22750. rm -f conf$$ conf$$.exe conf$$.file
  22751. echo >conf$$.file
  22752. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22753. # We could just check for DJGPP; but this test a) works b) is more generic
  22754. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  22755. if test -f conf$$.exe; then
  22756. # Don't use ln at all; we don't have any links
  22757. as_ln_s='cp -p'
  22758. else
  22759. as_ln_s='ln -s'
  22760. fi
  22761. elif ln conf$$.file conf$$ 2>/dev/null; then
  22762. as_ln_s=ln
  22763. else
  22764. as_ln_s='cp -p'
  22765. fi
  22766. rm -f conf$$ conf$$.exe conf$$.file
  22767. if mkdir -p . 2>/dev/null; then
  22768. as_mkdir_p=:
  22769. else
  22770. test -d ./-p && rmdir ./-p
  22771. as_mkdir_p=false
  22772. fi
  22773. as_executable_p="test -f"
  22774. # Sed expression to map a string onto a valid CPP name.
  22775. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22776. # Sed expression to map a string onto a valid variable name.
  22777. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22778. # IFS
  22779. # We need space, tab and new line, in precisely that order.
  22780. as_nl='
  22781. '
  22782. IFS=" $as_nl"
  22783. # CDPATH.
  22784. $as_unset CDPATH
  22785. exec 6>&1
  22786. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  22787. # report actual input values of CONFIG_FILES etc. instead of their
  22788. # values after options handling. Logging --version etc. is OK.
  22789. exec 5>>config.log
  22790. {
  22791. echo
  22792. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22793. ## Running $as_me. ##
  22794. _ASBOX
  22795. } >&5
  22796. cat >&5 <<_CSEOF
  22797. This file was extended by dirsrv $as_me 1.1.0b1, which was
  22798. generated by GNU Autoconf 2.59. Invocation command line was
  22799. CONFIG_FILES = $CONFIG_FILES
  22800. CONFIG_HEADERS = $CONFIG_HEADERS
  22801. CONFIG_LINKS = $CONFIG_LINKS
  22802. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22803. $ $0 $@
  22804. _CSEOF
  22805. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  22806. echo >&5
  22807. _ACEOF
  22808. # Files that config.status was made for.
  22809. if test -n "$ac_config_files"; then
  22810. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  22811. fi
  22812. if test -n "$ac_config_headers"; then
  22813. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  22814. fi
  22815. if test -n "$ac_config_links"; then
  22816. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  22817. fi
  22818. if test -n "$ac_config_commands"; then
  22819. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  22820. fi
  22821. cat >>$CONFIG_STATUS <<\_ACEOF
  22822. ac_cs_usage="\
  22823. \`$as_me' instantiates files from templates according to the
  22824. current configuration.
  22825. Usage: $0 [OPTIONS] [FILE]...
  22826. -h, --help print this help, then exit
  22827. -V, --version print version number, then exit
  22828. -q, --quiet do not print progress messages
  22829. -d, --debug don't remove temporary files
  22830. --recheck update $as_me by reconfiguring in the same conditions
  22831. --file=FILE[:TEMPLATE]
  22832. instantiate the configuration file FILE
  22833. --header=FILE[:TEMPLATE]
  22834. instantiate the configuration header FILE
  22835. Configuration files:
  22836. $config_files
  22837. Configuration headers:
  22838. $config_headers
  22839. Configuration commands:
  22840. $config_commands
  22841. Report bugs to <[email protected]>."
  22842. _ACEOF
  22843. cat >>$CONFIG_STATUS <<_ACEOF
  22844. ac_cs_version="\\
  22845. dirsrv config.status 1.1.0b1
  22846. configured by $0, generated by GNU Autoconf 2.59,
  22847. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  22848. Copyright (C) 2003 Free Software Foundation, Inc.
  22849. This config.status script is free software; the Free Software Foundation
  22850. gives unlimited permission to copy, distribute and modify it."
  22851. srcdir=$srcdir
  22852. INSTALL="$INSTALL"
  22853. _ACEOF
  22854. cat >>$CONFIG_STATUS <<\_ACEOF
  22855. # If no file are specified by the user, then we need to provide default
  22856. # value. By we need to know if files were specified by the user.
  22857. ac_need_defaults=:
  22858. while test $# != 0
  22859. do
  22860. case $1 in
  22861. --*=*)
  22862. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  22863. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  22864. ac_shift=:
  22865. ;;
  22866. -*)
  22867. ac_option=$1
  22868. ac_optarg=$2
  22869. ac_shift=shift
  22870. ;;
  22871. *) # This is not an option, so the user has probably given explicit
  22872. # arguments.
  22873. ac_option=$1
  22874. ac_need_defaults=false;;
  22875. esac
  22876. case $ac_option in
  22877. # Handling of the options.
  22878. _ACEOF
  22879. cat >>$CONFIG_STATUS <<\_ACEOF
  22880. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22881. ac_cs_recheck=: ;;
  22882. --version | --vers* | -V )
  22883. echo "$ac_cs_version"; exit 0 ;;
  22884. --he | --h)
  22885. # Conflict between --help and --header
  22886. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  22887. Try \`$0 --help' for more information." >&5
  22888. echo "$as_me: error: ambiguous option: $1
  22889. Try \`$0 --help' for more information." >&2;}
  22890. { (exit 1); exit 1; }; };;
  22891. --help | --hel | -h )
  22892. echo "$ac_cs_usage"; exit 0 ;;
  22893. --debug | --d* | -d )
  22894. debug=: ;;
  22895. --file | --fil | --fi | --f )
  22896. $ac_shift
  22897. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  22898. ac_need_defaults=false;;
  22899. --header | --heade | --head | --hea )
  22900. $ac_shift
  22901. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  22902. ac_need_defaults=false;;
  22903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22904. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22905. ac_cs_silent=: ;;
  22906. # This is an error.
  22907. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  22908. Try \`$0 --help' for more information." >&5
  22909. echo "$as_me: error: unrecognized option: $1
  22910. Try \`$0 --help' for more information." >&2;}
  22911. { (exit 1); exit 1; }; } ;;
  22912. *) ac_config_targets="$ac_config_targets $1" ;;
  22913. esac
  22914. shift
  22915. done
  22916. ac_configure_extra_args=
  22917. if $ac_cs_silent; then
  22918. exec 6>/dev/null
  22919. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22920. fi
  22921. _ACEOF
  22922. cat >>$CONFIG_STATUS <<_ACEOF
  22923. if \$ac_cs_recheck; then
  22924. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  22925. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22926. fi
  22927. _ACEOF
  22928. cat >>$CONFIG_STATUS <<_ACEOF
  22929. #
  22930. # INIT-COMMANDS section.
  22931. #
  22932. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22933. _ACEOF
  22934. cat >>$CONFIG_STATUS <<\_ACEOF
  22935. for ac_config_target in $ac_config_targets
  22936. do
  22937. case "$ac_config_target" in
  22938. # Handling of arguments.
  22939. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22940. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22941. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22942. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22943. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22944. { (exit 1); exit 1; }; };;
  22945. esac
  22946. done
  22947. # If the user did not use the arguments to specify the items to instantiate,
  22948. # then the envvar interface is used. Set only those that are not.
  22949. # We use the long form for the default assignment because of an extremely
  22950. # bizarre bug on SunOS 4.1.3.
  22951. if $ac_need_defaults; then
  22952. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22953. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22954. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22955. fi
  22956. # Have a temporary directory for convenience. Make it in the build tree
  22957. # simply because there is no reason to put it here, and in addition,
  22958. # creating and moving files from /tmp can sometimes cause problems.
  22959. # Create a temporary directory, and hook for its removal unless debugging.
  22960. $debug ||
  22961. {
  22962. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  22963. trap '{ (exit 1); exit 1; }' 1 2 13 15
  22964. }
  22965. # Create a (secure) tmp directory for tmp files.
  22966. {
  22967. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  22968. test -n "$tmp" && test -d "$tmp"
  22969. } ||
  22970. {
  22971. tmp=./confstat$$-$RANDOM
  22972. (umask 077 && mkdir $tmp)
  22973. } ||
  22974. {
  22975. echo "$me: cannot create a temporary directory in ." >&2
  22976. { (exit 1); exit 1; }
  22977. }
  22978. _ACEOF
  22979. cat >>$CONFIG_STATUS <<_ACEOF
  22980. #
  22981. # CONFIG_FILES section.
  22982. #
  22983. # No need to generate the scripts if there are no CONFIG_FILES.
  22984. # This happens for instance when ./config.status config.h
  22985. if test -n "\$CONFIG_FILES"; then
  22986. # Protect against being on the right side of a sed subst in config.status.
  22987. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  22988. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  22989. s,@SHELL@,$SHELL,;t t
  22990. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  22991. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  22992. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  22993. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  22994. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  22995. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  22996. s,@exec_prefix@,$exec_prefix,;t t
  22997. s,@prefix@,$prefix,;t t
  22998. s,@program_transform_name@,$program_transform_name,;t t
  22999. s,@bindir@,$bindir,;t t
  23000. s,@sbindir@,$sbindir,;t t
  23001. s,@libexecdir@,$libexecdir,;t t
  23002. s,@datadir@,$datadir,;t t
  23003. s,@sysconfdir@,$sysconfdir,;t t
  23004. s,@sharedstatedir@,$sharedstatedir,;t t
  23005. s,@localstatedir@,$localstatedir,;t t
  23006. s,@libdir@,$libdir,;t t
  23007. s,@includedir@,$includedir,;t t
  23008. s,@oldincludedir@,$oldincludedir,;t t
  23009. s,@infodir@,$infodir,;t t
  23010. s,@mandir@,$mandir,;t t
  23011. s,@build_alias@,$build_alias,;t t
  23012. s,@host_alias@,$host_alias,;t t
  23013. s,@target_alias@,$target_alias,;t t
  23014. s,@DEFS@,$DEFS,;t t
  23015. s,@ECHO_C@,$ECHO_C,;t t
  23016. s,@ECHO_N@,$ECHO_N,;t t
  23017. s,@ECHO_T@,$ECHO_T,;t t
  23018. s,@LIBS@,$LIBS,;t t
  23019. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  23020. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  23021. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  23022. s,@CYGPATH_W@,$CYGPATH_W,;t t
  23023. s,@PACKAGE@,$PACKAGE,;t t
  23024. s,@VERSION@,$VERSION,;t t
  23025. s,@ACLOCAL@,$ACLOCAL,;t t
  23026. s,@AUTOCONF@,$AUTOCONF,;t t
  23027. s,@AUTOMAKE@,$AUTOMAKE,;t t
  23028. s,@AUTOHEADER@,$AUTOHEADER,;t t
  23029. s,@MAKEINFO@,$MAKEINFO,;t t
  23030. s,@install_sh@,$install_sh,;t t
  23031. s,@STRIP@,$STRIP,;t t
  23032. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  23033. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  23034. s,@mkdir_p@,$mkdir_p,;t t
  23035. s,@AWK@,$AWK,;t t
  23036. s,@SET_MAKE@,$SET_MAKE,;t t
  23037. s,@am__leading_dot@,$am__leading_dot,;t t
  23038. s,@AMTAR@,$AMTAR,;t t
  23039. s,@am__tar@,$am__tar,;t t
  23040. s,@am__untar@,$am__untar,;t t
  23041. s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  23042. s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  23043. s,@MAINT@,$MAINT,;t t
  23044. s,@build@,$build,;t t
  23045. s,@build_cpu@,$build_cpu,;t t
  23046. s,@build_vendor@,$build_vendor,;t t
  23047. s,@build_os@,$build_os,;t t
  23048. s,@host@,$host,;t t
  23049. s,@host_cpu@,$host_cpu,;t t
  23050. s,@host_vendor@,$host_vendor,;t t
  23051. s,@host_os@,$host_os,;t t
  23052. s,@CXX@,$CXX,;t t
  23053. s,@CXXFLAGS@,$CXXFLAGS,;t t
  23054. s,@LDFLAGS@,$LDFLAGS,;t t
  23055. s,@CPPFLAGS@,$CPPFLAGS,;t t
  23056. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  23057. s,@EXEEXT@,$EXEEXT,;t t
  23058. s,@OBJEXT@,$OBJEXT,;t t
  23059. s,@DEPDIR@,$DEPDIR,;t t
  23060. s,@am__include@,$am__include,;t t
  23061. s,@am__quote@,$am__quote,;t t
  23062. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  23063. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  23064. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  23065. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  23066. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  23067. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  23068. s,@CC@,$CC,;t t
  23069. s,@CFLAGS@,$CFLAGS,;t t
  23070. s,@ac_ct_CC@,$ac_ct_CC,;t t
  23071. s,@CCDEPMODE@,$CCDEPMODE,;t t
  23072. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  23073. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  23074. s,@EGREP@,$EGREP,;t t
  23075. s,@LN_S@,$LN_S,;t t
  23076. s,@ECHO@,$ECHO,;t t
  23077. s,@AR@,$AR,;t t
  23078. s,@ac_ct_AR@,$ac_ct_AR,;t t
  23079. s,@RANLIB@,$RANLIB,;t t
  23080. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  23081. s,@CPP@,$CPP,;t t
  23082. s,@CXXCPP@,$CXXCPP,;t t
  23083. s,@F77@,$F77,;t t
  23084. s,@FFLAGS@,$FFLAGS,;t t
  23085. s,@ac_ct_F77@,$ac_ct_F77,;t t
  23086. s,@LIBTOOL@,$LIBTOOL,;t t
  23087. s,@LIBOBJS@,$LIBOBJS,;t t
  23088. s,@debug_defs@,$debug_defs,;t t
  23089. s,@BUNDLE_TRUE@,$BUNDLE_TRUE,;t t
  23090. s,@BUNDLE_FALSE@,$BUNDLE_FALSE,;t t
  23091. s,@enable_pam_passthru_TRUE@,$enable_pam_passthru_TRUE,;t t
  23092. s,@enable_pam_passthru_FALSE@,$enable_pam_passthru_FALSE,;t t
  23093. s,@enable_dna_TRUE@,$enable_dna_TRUE,;t t
  23094. s,@enable_dna_FALSE@,$enable_dna_FALSE,;t t
  23095. s,@enable_ldapi_TRUE@,$enable_ldapi_TRUE,;t t
  23096. s,@enable_ldapi_FALSE@,$enable_ldapi_FALSE,;t t
  23097. s,@enable_bitwise_TRUE@,$enable_bitwise_TRUE,;t t
  23098. s,@enable_bitwise_FALSE@,$enable_bitwise_FALSE,;t t
  23099. s,@with_fhs_opt@,$with_fhs_opt,;t t
  23100. s,@configdir@,$configdir,;t t
  23101. s,@sampledatadir@,$sampledatadir,;t t
  23102. s,@propertydir@,$propertydir,;t t
  23103. s,@schemadir@,$schemadir,;t t
  23104. s,@serverdir@,$serverdir,;t t
  23105. s,@serverplugindir@,$serverplugindir,;t t
  23106. s,@scripttemplatedir@,$scripttemplatedir,;t t
  23107. s,@perldir@,$perldir,;t t
  23108. s,@infdir@,$infdir,;t t
  23109. s,@mibdir@,$mibdir,;t t
  23110. s,@defaultuser@,$defaultuser,;t t
  23111. s,@defaultgroup@,$defaultgroup,;t t
  23112. s,@instconfigdir@,$instconfigdir,;t t
  23113. s,@WINNT_TRUE@,$WINNT_TRUE,;t t
  23114. s,@WINNT_FALSE@,$WINNT_FALSE,;t t
  23115. s,@LIBSOCKET@,$LIBSOCKET,;t t
  23116. s,@LIBNSL@,$LIBNSL,;t t
  23117. s,@LIBDL@,$LIBDL,;t t
  23118. s,@LIBCSTD@,$LIBCSTD,;t t
  23119. s,@LIBCRUN@,$LIBCRUN,;t t
  23120. s,@initdir@,$initdir,;t t
  23121. s,@perlexec@,$perlexec,;t t
  23122. s,@initconfigdir@,$initconfigdir,;t t
  23123. s,@HPUX_TRUE@,$HPUX_TRUE,;t t
  23124. s,@HPUX_FALSE@,$HPUX_FALSE,;t t
  23125. s,@SOLARIS_TRUE@,$SOLARIS_TRUE,;t t
  23126. s,@SOLARIS_FALSE@,$SOLARIS_FALSE,;t t
  23127. s,@PKG_CONFIG@,$PKG_CONFIG,;t t
  23128. s,@ICU_CONFIG@,$ICU_CONFIG,;t t
  23129. s,@NETSNMP_CONFIG@,$NETSNMP_CONFIG,;t t
  23130. s,@PACKAGE_BASE_VERSION@,$PACKAGE_BASE_VERSION,;t t
  23131. s,@nspr_inc@,$nspr_inc,;t t
  23132. s,@nspr_lib@,$nspr_lib,;t t
  23133. s,@nspr_libdir@,$nspr_libdir,;t t
  23134. s,@nss_inc@,$nss_inc,;t t
  23135. s,@nss_lib@,$nss_lib,;t t
  23136. s,@nss_libdir@,$nss_libdir,;t t
  23137. s,@ldapsdk_inc@,$ldapsdk_inc,;t t
  23138. s,@ldapsdk_lib@,$ldapsdk_lib,;t t
  23139. s,@ldapsdk_libdir@,$ldapsdk_libdir,;t t
  23140. s,@ldapsdk_bindir@,$ldapsdk_bindir,;t t
  23141. s,@db_inc@,$db_inc,;t t
  23142. s,@db_incdir@,$db_incdir,;t t
  23143. s,@db_lib@,$db_lib,;t t
  23144. s,@db_libdir@,$db_libdir,;t t
  23145. s,@db_bindir@,$db_bindir,;t t
  23146. s,@db_libver@,$db_libver,;t t
  23147. s,@sasl_inc@,$sasl_inc,;t t
  23148. s,@sasl_lib@,$sasl_lib,;t t
  23149. s,@sasl_libdir@,$sasl_libdir,;t t
  23150. s,@sasl_path@,$sasl_path,;t t
  23151. s,@svrcore_inc@,$svrcore_inc,;t t
  23152. s,@svrcore_lib@,$svrcore_lib,;t t
  23153. s,@icu_lib@,$icu_lib,;t t
  23154. s,@icu_inc@,$icu_inc,;t t
  23155. s,@icu_bin@,$icu_bin,;t t
  23156. s,@netsnmp_inc@,$netsnmp_inc,;t t
  23157. s,@netsnmp_lib@,$netsnmp_lib,;t t
  23158. s,@netsnmp_libdir@,$netsnmp_libdir,;t t
  23159. s,@netsnmp_link@,$netsnmp_link,;t t
  23160. s,@brand@,$brand,;t t
  23161. s,@capbrand@,$capbrand,;t t
  23162. s,@vendor@,$vendor,;t t
  23163. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  23164. CEOF
  23165. _ACEOF
  23166. cat >>$CONFIG_STATUS <<\_ACEOF
  23167. # Split the substitutions into bite-sized pieces for seds with
  23168. # small command number limits, like on Digital OSF/1 and HP-UX.
  23169. ac_max_sed_lines=48
  23170. ac_sed_frag=1 # Number of current file.
  23171. ac_beg=1 # First line for current file.
  23172. ac_end=$ac_max_sed_lines # Line after last line for current file.
  23173. ac_more_lines=:
  23174. ac_sed_cmds=
  23175. while $ac_more_lines; do
  23176. if test $ac_beg -gt 1; then
  23177. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23178. else
  23179. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  23180. fi
  23181. if test ! -s $tmp/subs.frag; then
  23182. ac_more_lines=false
  23183. else
  23184. # The purpose of the label and of the branching condition is to
  23185. # speed up the sed processing (if there are no `@' at all, there
  23186. # is no need to browse any of the substitutions).
  23187. # These are the two extra sed commands mentioned above.
  23188. (echo ':t
  23189. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  23190. if test -z "$ac_sed_cmds"; then
  23191. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  23192. else
  23193. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  23194. fi
  23195. ac_sed_frag=`expr $ac_sed_frag + 1`
  23196. ac_beg=$ac_end
  23197. ac_end=`expr $ac_end + $ac_max_sed_lines`
  23198. fi
  23199. done
  23200. if test -z "$ac_sed_cmds"; then
  23201. ac_sed_cmds=cat
  23202. fi
  23203. fi # test -n "$CONFIG_FILES"
  23204. _ACEOF
  23205. cat >>$CONFIG_STATUS <<\_ACEOF
  23206. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  23207. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23208. case $ac_file in
  23209. - | *:- | *:-:* ) # input from stdin
  23210. cat >$tmp/stdin
  23211. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23212. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23213. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23214. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23215. * ) ac_file_in=$ac_file.in ;;
  23216. esac
  23217. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  23218. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23219. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23220. X"$ac_file" : 'X\(//\)[^/]' \| \
  23221. X"$ac_file" : 'X\(//\)$' \| \
  23222. X"$ac_file" : 'X\(/\)' \| \
  23223. . : '\(.\)' 2>/dev/null ||
  23224. echo X"$ac_file" |
  23225. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23226. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23227. /^X\(\/\/\)$/{ s//\1/; q; }
  23228. /^X\(\/\).*/{ s//\1/; q; }
  23229. s/.*/./; q'`
  23230. { if $as_mkdir_p; then
  23231. mkdir -p "$ac_dir"
  23232. else
  23233. as_dir="$ac_dir"
  23234. as_dirs=
  23235. while test ! -d "$as_dir"; do
  23236. as_dirs="$as_dir $as_dirs"
  23237. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23238. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23239. X"$as_dir" : 'X\(//\)[^/]' \| \
  23240. X"$as_dir" : 'X\(//\)$' \| \
  23241. X"$as_dir" : 'X\(/\)' \| \
  23242. . : '\(.\)' 2>/dev/null ||
  23243. echo X"$as_dir" |
  23244. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23245. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23246. /^X\(\/\/\)$/{ s//\1/; q; }
  23247. /^X\(\/\).*/{ s//\1/; q; }
  23248. s/.*/./; q'`
  23249. done
  23250. test ! -n "$as_dirs" || mkdir $as_dirs
  23251. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23252. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23253. { (exit 1); exit 1; }; }; }
  23254. ac_builddir=.
  23255. if test "$ac_dir" != .; then
  23256. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23257. # A "../" for each directory in $ac_dir_suffix.
  23258. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23259. else
  23260. ac_dir_suffix= ac_top_builddir=
  23261. fi
  23262. case $srcdir in
  23263. .) # No --srcdir option. We are building in place.
  23264. ac_srcdir=.
  23265. if test -z "$ac_top_builddir"; then
  23266. ac_top_srcdir=.
  23267. else
  23268. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23269. fi ;;
  23270. [\\/]* | ?:[\\/]* ) # Absolute path.
  23271. ac_srcdir=$srcdir$ac_dir_suffix;
  23272. ac_top_srcdir=$srcdir ;;
  23273. *) # Relative path.
  23274. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23275. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23276. esac
  23277. # Do not use `cd foo && pwd` to compute absolute paths, because
  23278. # the directories may not exist.
  23279. case `pwd` in
  23280. .) ac_abs_builddir="$ac_dir";;
  23281. *)
  23282. case "$ac_dir" in
  23283. .) ac_abs_builddir=`pwd`;;
  23284. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23285. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23286. esac;;
  23287. esac
  23288. case $ac_abs_builddir in
  23289. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23290. *)
  23291. case ${ac_top_builddir}. in
  23292. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23293. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23294. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23295. esac;;
  23296. esac
  23297. case $ac_abs_builddir in
  23298. .) ac_abs_srcdir=$ac_srcdir;;
  23299. *)
  23300. case $ac_srcdir in
  23301. .) ac_abs_srcdir=$ac_abs_builddir;;
  23302. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23303. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23304. esac;;
  23305. esac
  23306. case $ac_abs_builddir in
  23307. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23308. *)
  23309. case $ac_top_srcdir in
  23310. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23311. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23312. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23313. esac;;
  23314. esac
  23315. case $INSTALL in
  23316. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23317. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  23318. esac
  23319. if test x"$ac_file" != x-; then
  23320. { echo "$as_me:$LINENO: creating $ac_file" >&5
  23321. echo "$as_me: creating $ac_file" >&6;}
  23322. rm -f "$ac_file"
  23323. fi
  23324. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23325. # use $as_me), people would be surprised to read:
  23326. # /* config.h. Generated by config.status. */
  23327. if test x"$ac_file" = x-; then
  23328. configure_input=
  23329. else
  23330. configure_input="$ac_file. "
  23331. fi
  23332. configure_input=$configure_input"Generated from `echo $ac_file_in |
  23333. sed 's,.*/,,'` by configure."
  23334. # First look for the input files in the build tree, otherwise in the
  23335. # src tree.
  23336. ac_file_inputs=`IFS=:
  23337. for f in $ac_file_in; do
  23338. case $f in
  23339. -) echo $tmp/stdin ;;
  23340. [\\/$]*)
  23341. # Absolute (can't be DOS-style, as IFS=:)
  23342. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23343. echo "$as_me: error: cannot find input file: $f" >&2;}
  23344. { (exit 1); exit 1; }; }
  23345. echo "$f";;
  23346. *) # Relative
  23347. if test -f "$f"; then
  23348. # Build tree
  23349. echo "$f"
  23350. elif test -f "$srcdir/$f"; then
  23351. # Source tree
  23352. echo "$srcdir/$f"
  23353. else
  23354. # /dev/null tree
  23355. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23356. echo "$as_me: error: cannot find input file: $f" >&2;}
  23357. { (exit 1); exit 1; }; }
  23358. fi;;
  23359. esac
  23360. done` || { (exit 1); exit 1; }
  23361. _ACEOF
  23362. cat >>$CONFIG_STATUS <<_ACEOF
  23363. sed "$ac_vpsub
  23364. $extrasub
  23365. _ACEOF
  23366. cat >>$CONFIG_STATUS <<\_ACEOF
  23367. :t
  23368. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23369. s,@configure_input@,$configure_input,;t t
  23370. s,@srcdir@,$ac_srcdir,;t t
  23371. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  23372. s,@top_srcdir@,$ac_top_srcdir,;t t
  23373. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  23374. s,@builddir@,$ac_builddir,;t t
  23375. s,@abs_builddir@,$ac_abs_builddir,;t t
  23376. s,@top_builddir@,$ac_top_builddir,;t t
  23377. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  23378. s,@INSTALL@,$ac_INSTALL,;t t
  23379. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  23380. rm -f $tmp/stdin
  23381. if test x"$ac_file" != x-; then
  23382. mv $tmp/out $ac_file
  23383. else
  23384. cat $tmp/out
  23385. rm -f $tmp/out
  23386. fi
  23387. done
  23388. _ACEOF
  23389. cat >>$CONFIG_STATUS <<\_ACEOF
  23390. #
  23391. # CONFIG_HEADER section.
  23392. #
  23393. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  23394. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  23395. #
  23396. # ac_d sets the value in "#define NAME VALUE" lines.
  23397. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  23398. ac_dB='[ ].*$,\1#\2'
  23399. ac_dC=' '
  23400. ac_dD=',;t'
  23401. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  23402. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  23403. ac_uB='$,\1#\2define\3'
  23404. ac_uC=' '
  23405. ac_uD=',;t'
  23406. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  23407. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23408. case $ac_file in
  23409. - | *:- | *:-:* ) # input from stdin
  23410. cat >$tmp/stdin
  23411. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23412. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23413. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23414. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  23415. * ) ac_file_in=$ac_file.in ;;
  23416. esac
  23417. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  23418. echo "$as_me: creating $ac_file" >&6;}
  23419. # First look for the input files in the build tree, otherwise in the
  23420. # src tree.
  23421. ac_file_inputs=`IFS=:
  23422. for f in $ac_file_in; do
  23423. case $f in
  23424. -) echo $tmp/stdin ;;
  23425. [\\/$]*)
  23426. # Absolute (can't be DOS-style, as IFS=:)
  23427. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23428. echo "$as_me: error: cannot find input file: $f" >&2;}
  23429. { (exit 1); exit 1; }; }
  23430. # Do quote $f, to prevent DOS paths from being IFS'd.
  23431. echo "$f";;
  23432. *) # Relative
  23433. if test -f "$f"; then
  23434. # Build tree
  23435. echo "$f"
  23436. elif test -f "$srcdir/$f"; then
  23437. # Source tree
  23438. echo "$srcdir/$f"
  23439. else
  23440. # /dev/null tree
  23441. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  23442. echo "$as_me: error: cannot find input file: $f" >&2;}
  23443. { (exit 1); exit 1; }; }
  23444. fi;;
  23445. esac
  23446. done` || { (exit 1); exit 1; }
  23447. # Remove the trailing spaces.
  23448. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  23449. _ACEOF
  23450. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  23451. # `conftest.undefs', that substitutes the proper values into
  23452. # config.h.in to produce config.h. The first handles `#define'
  23453. # templates, and the second `#undef' templates.
  23454. # And first: Protect against being on the right side of a sed subst in
  23455. # config.status. Protect against being in an unquoted here document
  23456. # in config.status.
  23457. rm -f conftest.defines conftest.undefs
  23458. # Using a here document instead of a string reduces the quoting nightmare.
  23459. # Putting comments in sed scripts is not portable.
  23460. #
  23461. # `end' is used to avoid that the second main sed command (meant for
  23462. # 0-ary CPP macros) applies to n-ary macro definitions.
  23463. # See the Autoconf documentation for `clear'.
  23464. cat >confdef2sed.sed <<\_ACEOF
  23465. s/[\\&,]/\\&/g
  23466. s,[\\$`],\\&,g
  23467. t clear
  23468. : clear
  23469. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  23470. t end
  23471. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  23472. : end
  23473. _ACEOF
  23474. # If some macros were called several times there might be several times
  23475. # the same #defines, which is useless. Nevertheless, we may not want to
  23476. # sort them, since we want the *last* AC-DEFINE to be honored.
  23477. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  23478. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  23479. rm -f confdef2sed.sed
  23480. # This sed command replaces #undef with comments. This is necessary, for
  23481. # example, in the case of _POSIX_SOURCE, which is predefined and required
  23482. # on some systems where configure will not decide to define it.
  23483. cat >>conftest.undefs <<\_ACEOF
  23484. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  23485. _ACEOF
  23486. # Break up conftest.defines because some shells have a limit on the size
  23487. # of here documents, and old seds have small limits too (100 cmds).
  23488. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  23489. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  23490. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  23491. echo ' :' >>$CONFIG_STATUS
  23492. rm -f conftest.tail
  23493. while grep . conftest.defines >/dev/null
  23494. do
  23495. # Write a limited-size here document to $tmp/defines.sed.
  23496. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  23497. # Speed up: don't consider the non `#define' lines.
  23498. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  23499. # Work around the forget-to-reset-the-flag bug.
  23500. echo 't clr' >>$CONFIG_STATUS
  23501. echo ': clr' >>$CONFIG_STATUS
  23502. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  23503. echo 'CEOF
  23504. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  23505. rm -f $tmp/in
  23506. mv $tmp/out $tmp/in
  23507. ' >>$CONFIG_STATUS
  23508. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  23509. rm -f conftest.defines
  23510. mv conftest.tail conftest.defines
  23511. done
  23512. rm -f conftest.defines
  23513. echo ' fi # grep' >>$CONFIG_STATUS
  23514. echo >>$CONFIG_STATUS
  23515. # Break up conftest.undefs because some shells have a limit on the size
  23516. # of here documents, and old seds have small limits too (100 cmds).
  23517. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  23518. rm -f conftest.tail
  23519. while grep . conftest.undefs >/dev/null
  23520. do
  23521. # Write a limited-size here document to $tmp/undefs.sed.
  23522. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  23523. # Speed up: don't consider the non `#undef'
  23524. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  23525. # Work around the forget-to-reset-the-flag bug.
  23526. echo 't clr' >>$CONFIG_STATUS
  23527. echo ': clr' >>$CONFIG_STATUS
  23528. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  23529. echo 'CEOF
  23530. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  23531. rm -f $tmp/in
  23532. mv $tmp/out $tmp/in
  23533. ' >>$CONFIG_STATUS
  23534. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  23535. rm -f conftest.undefs
  23536. mv conftest.tail conftest.undefs
  23537. done
  23538. rm -f conftest.undefs
  23539. cat >>$CONFIG_STATUS <<\_ACEOF
  23540. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23541. # use $as_me), people would be surprised to read:
  23542. # /* config.h. Generated by config.status. */
  23543. if test x"$ac_file" = x-; then
  23544. echo "/* Generated by configure. */" >$tmp/config.h
  23545. else
  23546. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  23547. fi
  23548. cat $tmp/in >>$tmp/config.h
  23549. rm -f $tmp/in
  23550. if test x"$ac_file" != x-; then
  23551. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  23552. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23553. echo "$as_me: $ac_file is unchanged" >&6;}
  23554. else
  23555. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  23556. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23557. X"$ac_file" : 'X\(//\)[^/]' \| \
  23558. X"$ac_file" : 'X\(//\)$' \| \
  23559. X"$ac_file" : 'X\(/\)' \| \
  23560. . : '\(.\)' 2>/dev/null ||
  23561. echo X"$ac_file" |
  23562. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23563. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23564. /^X\(\/\/\)$/{ s//\1/; q; }
  23565. /^X\(\/\).*/{ s//\1/; q; }
  23566. s/.*/./; q'`
  23567. { if $as_mkdir_p; then
  23568. mkdir -p "$ac_dir"
  23569. else
  23570. as_dir="$ac_dir"
  23571. as_dirs=
  23572. while test ! -d "$as_dir"; do
  23573. as_dirs="$as_dir $as_dirs"
  23574. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23575. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23576. X"$as_dir" : 'X\(//\)[^/]' \| \
  23577. X"$as_dir" : 'X\(//\)$' \| \
  23578. X"$as_dir" : 'X\(/\)' \| \
  23579. . : '\(.\)' 2>/dev/null ||
  23580. echo X"$as_dir" |
  23581. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23582. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23583. /^X\(\/\/\)$/{ s//\1/; q; }
  23584. /^X\(\/\).*/{ s//\1/; q; }
  23585. s/.*/./; q'`
  23586. done
  23587. test ! -n "$as_dirs" || mkdir $as_dirs
  23588. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23589. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23590. { (exit 1); exit 1; }; }; }
  23591. rm -f $ac_file
  23592. mv $tmp/config.h $ac_file
  23593. fi
  23594. else
  23595. cat $tmp/config.h
  23596. rm -f $tmp/config.h
  23597. fi
  23598. # Compute $ac_file's index in $config_headers.
  23599. _am_stamp_count=1
  23600. for _am_header in $config_headers :; do
  23601. case $_am_header in
  23602. $ac_file | $ac_file:* )
  23603. break ;;
  23604. * )
  23605. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23606. esac
  23607. done
  23608. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  23609. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23610. X$ac_file : 'X\(//\)[^/]' \| \
  23611. X$ac_file : 'X\(//\)$' \| \
  23612. X$ac_file : 'X\(/\)' \| \
  23613. . : '\(.\)' 2>/dev/null ||
  23614. echo X$ac_file |
  23615. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23616. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23617. /^X\(\/\/\)$/{ s//\1/; q; }
  23618. /^X\(\/\).*/{ s//\1/; q; }
  23619. s/.*/./; q'`/stamp-h$_am_stamp_count
  23620. done
  23621. _ACEOF
  23622. cat >>$CONFIG_STATUS <<\_ACEOF
  23623. #
  23624. # CONFIG_COMMANDS section.
  23625. #
  23626. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  23627. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  23628. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  23629. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  23630. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23631. X"$ac_dest" : 'X\(//\)[^/]' \| \
  23632. X"$ac_dest" : 'X\(//\)$' \| \
  23633. X"$ac_dest" : 'X\(/\)' \| \
  23634. . : '\(.\)' 2>/dev/null ||
  23635. echo X"$ac_dest" |
  23636. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23637. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23638. /^X\(\/\/\)$/{ s//\1/; q; }
  23639. /^X\(\/\).*/{ s//\1/; q; }
  23640. s/.*/./; q'`
  23641. { if $as_mkdir_p; then
  23642. mkdir -p "$ac_dir"
  23643. else
  23644. as_dir="$ac_dir"
  23645. as_dirs=
  23646. while test ! -d "$as_dir"; do
  23647. as_dirs="$as_dir $as_dirs"
  23648. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23649. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23650. X"$as_dir" : 'X\(//\)[^/]' \| \
  23651. X"$as_dir" : 'X\(//\)$' \| \
  23652. X"$as_dir" : 'X\(/\)' \| \
  23653. . : '\(.\)' 2>/dev/null ||
  23654. echo X"$as_dir" |
  23655. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23656. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23657. /^X\(\/\/\)$/{ s//\1/; q; }
  23658. /^X\(\/\).*/{ s//\1/; q; }
  23659. s/.*/./; q'`
  23660. done
  23661. test ! -n "$as_dirs" || mkdir $as_dirs
  23662. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  23663. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  23664. { (exit 1); exit 1; }; }; }
  23665. ac_builddir=.
  23666. if test "$ac_dir" != .; then
  23667. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  23668. # A "../" for each directory in $ac_dir_suffix.
  23669. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  23670. else
  23671. ac_dir_suffix= ac_top_builddir=
  23672. fi
  23673. case $srcdir in
  23674. .) # No --srcdir option. We are building in place.
  23675. ac_srcdir=.
  23676. if test -z "$ac_top_builddir"; then
  23677. ac_top_srcdir=.
  23678. else
  23679. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  23680. fi ;;
  23681. [\\/]* | ?:[\\/]* ) # Absolute path.
  23682. ac_srcdir=$srcdir$ac_dir_suffix;
  23683. ac_top_srcdir=$srcdir ;;
  23684. *) # Relative path.
  23685. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  23686. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  23687. esac
  23688. # Do not use `cd foo && pwd` to compute absolute paths, because
  23689. # the directories may not exist.
  23690. case `pwd` in
  23691. .) ac_abs_builddir="$ac_dir";;
  23692. *)
  23693. case "$ac_dir" in
  23694. .) ac_abs_builddir=`pwd`;;
  23695. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  23696. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  23697. esac;;
  23698. esac
  23699. case $ac_abs_builddir in
  23700. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  23701. *)
  23702. case ${ac_top_builddir}. in
  23703. .) ac_abs_top_builddir=$ac_abs_builddir;;
  23704. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  23705. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  23706. esac;;
  23707. esac
  23708. case $ac_abs_builddir in
  23709. .) ac_abs_srcdir=$ac_srcdir;;
  23710. *)
  23711. case $ac_srcdir in
  23712. .) ac_abs_srcdir=$ac_abs_builddir;;
  23713. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  23714. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  23715. esac;;
  23716. esac
  23717. case $ac_abs_builddir in
  23718. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  23719. *)
  23720. case $ac_top_srcdir in
  23721. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  23722. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  23723. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  23724. esac;;
  23725. esac
  23726. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  23727. echo "$as_me: executing $ac_dest commands" >&6;}
  23728. case $ac_dest in
  23729. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  23730. # Strip MF so we end up with the name of the file.
  23731. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23732. # Check whether this is an Automake generated Makefile or not.
  23733. # We used to match only the files named `Makefile.in', but
  23734. # some people rename them; so instead we look at the file content.
  23735. # Grep'ing the first line is not enough: some people post-process
  23736. # each Makefile.in and add a new line on top of each file to say so.
  23737. # So let's grep whole file.
  23738. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  23739. dirpart=`(dirname "$mf") 2>/dev/null ||
  23740. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23741. X"$mf" : 'X\(//\)[^/]' \| \
  23742. X"$mf" : 'X\(//\)$' \| \
  23743. X"$mf" : 'X\(/\)' \| \
  23744. . : '\(.\)' 2>/dev/null ||
  23745. echo X"$mf" |
  23746. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23747. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23748. /^X\(\/\/\)$/{ s//\1/; q; }
  23749. /^X\(\/\).*/{ s//\1/; q; }
  23750. s/.*/./; q'`
  23751. else
  23752. continue
  23753. fi
  23754. # Extract the definition of DEPDIR, am__include, and am__quote
  23755. # from the Makefile without running `make'.
  23756. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23757. test -z "$DEPDIR" && continue
  23758. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23759. test -z "am__include" && continue
  23760. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23761. # When using ansi2knr, U may be empty or an underscore; expand it
  23762. U=`sed -n 's/^U = //p' < "$mf"`
  23763. # Find all dependency output files, they are included files with
  23764. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23765. # simplest approach to changing $(DEPDIR) to its actual value in the
  23766. # expansion.
  23767. for file in `sed -n "
  23768. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23769. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23770. # Make sure the directory exists.
  23771. test -f "$dirpart/$file" && continue
  23772. fdir=`(dirname "$file") 2>/dev/null ||
  23773. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23774. X"$file" : 'X\(//\)[^/]' \| \
  23775. X"$file" : 'X\(//\)$' \| \
  23776. X"$file" : 'X\(/\)' \| \
  23777. . : '\(.\)' 2>/dev/null ||
  23778. echo X"$file" |
  23779. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23780. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23781. /^X\(\/\/\)$/{ s//\1/; q; }
  23782. /^X\(\/\).*/{ s//\1/; q; }
  23783. s/.*/./; q'`
  23784. { if $as_mkdir_p; then
  23785. mkdir -p $dirpart/$fdir
  23786. else
  23787. as_dir=$dirpart/$fdir
  23788. as_dirs=
  23789. while test ! -d "$as_dir"; do
  23790. as_dirs="$as_dir $as_dirs"
  23791. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  23792. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23793. X"$as_dir" : 'X\(//\)[^/]' \| \
  23794. X"$as_dir" : 'X\(//\)$' \| \
  23795. X"$as_dir" : 'X\(/\)' \| \
  23796. . : '\(.\)' 2>/dev/null ||
  23797. echo X"$as_dir" |
  23798. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  23799. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  23800. /^X\(\/\/\)$/{ s//\1/; q; }
  23801. /^X\(\/\).*/{ s//\1/; q; }
  23802. s/.*/./; q'`
  23803. done
  23804. test ! -n "$as_dirs" || mkdir $as_dirs
  23805. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  23806. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  23807. { (exit 1); exit 1; }; }; }
  23808. # echo "creating $dirpart/$file"
  23809. echo '# dummy' > "$dirpart/$file"
  23810. done
  23811. done
  23812. ;;
  23813. esac
  23814. done
  23815. _ACEOF
  23816. cat >>$CONFIG_STATUS <<\_ACEOF
  23817. { (exit 0); exit 0; }
  23818. _ACEOF
  23819. chmod +x $CONFIG_STATUS
  23820. ac_clean_files=$ac_clean_files_save
  23821. # configure is writing to config.log, and then calls config.status.
  23822. # config.status does its own redirection, appending to config.log.
  23823. # Unfortunately, on DOS this fails, as config.log is still kept open
  23824. # by configure, so config.status won't be able to write to it; its
  23825. # output is simply discarded. So we exec the FD to /dev/null,
  23826. # effectively closing config.log, so it can be properly (re)opened and
  23827. # appended to by config.status. When coming back to configure, we
  23828. # need to make the FD available again.
  23829. if test "$no_create" != yes; then
  23830. ac_cs_success=:
  23831. ac_config_status_args=
  23832. test "$silent" = yes &&
  23833. ac_config_status_args="$ac_config_status_args --quiet"
  23834. exec 5>/dev/null
  23835. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23836. exec 5>>config.log
  23837. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23838. # would make configure fail if this is the last instruction.
  23839. $ac_cs_success || { (exit 1); exit 1; }
  23840. fi