configure 919 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for dirsrv 1.2.1.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell [email protected] about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. # Check that we are running under the correct shell.
  498. SHELL=${CONFIG_SHELL-/bin/sh}
  499. case X$ECHO in
  500. X*--fallback-echo)
  501. # Remove one level of quotation (which was required for Make).
  502. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  503. ;;
  504. esac
  505. echo=${ECHO-echo}
  506. if test "X$1" = X--no-reexec; then
  507. # Discard the --no-reexec flag, and continue.
  508. shift
  509. elif test "X$1" = X--fallback-echo; then
  510. # Avoid inline document here, it may be left over
  511. :
  512. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  513. # Yippee, $echo works!
  514. :
  515. else
  516. # Restart under the correct shell.
  517. exec $SHELL "$0" --no-reexec ${1+"$@"}
  518. fi
  519. if test "X$1" = X--fallback-echo; then
  520. # used as fallback echo
  521. shift
  522. cat <<EOF
  523. $*
  524. EOF
  525. exit 0
  526. fi
  527. # The HP-UX ksh and POSIX shell print the target directory to stdout
  528. # if CDPATH is set.
  529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  530. if test -z "$ECHO"; then
  531. if test "X${echo_test_string+set}" != Xset; then
  532. # find a string as large as possible, as long as the shell can cope with it
  533. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  534. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  535. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  536. echo_test_string=`eval $cmd` &&
  537. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  538. then
  539. break
  540. fi
  541. done
  542. fi
  543. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. :
  547. else
  548. # The Solaris, AIX, and Digital Unix default echo programs unquote
  549. # backslashes. This makes it impossible to quote backslashes using
  550. # echo "$something" | sed 's/\\/\\\\/g'
  551. #
  552. # So, first we look for a working echo in the user's PATH.
  553. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  554. for dir in $PATH /usr/ucb; do
  555. IFS="$lt_save_ifs"
  556. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  557. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. echo="$dir/echo"
  561. break
  562. fi
  563. done
  564. IFS="$lt_save_ifs"
  565. if test "X$echo" = Xecho; then
  566. # We didn't find a better echo, so look for alternatives.
  567. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  568. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. # This shell has a builtin print -r that does the trick.
  571. echo='print -r'
  572. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  573. test "X$CONFIG_SHELL" != X/bin/ksh; then
  574. # If we have ksh, try running configure again with it.
  575. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  576. export ORIGINAL_CONFIG_SHELL
  577. CONFIG_SHELL=/bin/ksh
  578. export CONFIG_SHELL
  579. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  580. else
  581. # Try using printf.
  582. echo='printf %s\n'
  583. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  584. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  585. test "X$echo_testing_string" = "X$echo_test_string"; then
  586. # Cool, printf works
  587. :
  588. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  589. test "X$echo_testing_string" = 'X\t' &&
  590. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  591. test "X$echo_testing_string" = "X$echo_test_string"; then
  592. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  593. export CONFIG_SHELL
  594. SHELL="$CONFIG_SHELL"
  595. export SHELL
  596. echo="$CONFIG_SHELL $0 --fallback-echo"
  597. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  598. test "X$echo_testing_string" = 'X\t' &&
  599. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  600. test "X$echo_testing_string" = "X$echo_test_string"; then
  601. echo="$CONFIG_SHELL $0 --fallback-echo"
  602. else
  603. # maybe with a smaller string...
  604. prev=:
  605. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  606. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  607. then
  608. break
  609. fi
  610. prev="$cmd"
  611. done
  612. if test "$prev" != 'sed 50q "$0"'; then
  613. echo_test_string=`eval $prev`
  614. export echo_test_string
  615. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  616. else
  617. # Oops. We lost completely, so just stick with echo.
  618. echo=echo
  619. fi
  620. fi
  621. fi
  622. fi
  623. fi
  624. fi
  625. # Copy echo and quote the copy suitably for passing to libtool from
  626. # the Makefile, instead of quoting the original, which is used later.
  627. ECHO=$echo
  628. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  629. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  630. fi
  631. tagnames=${tagnames+${tagnames},}CXX
  632. tagnames=${tagnames+${tagnames},}F77
  633. exec 7<&0 </dev/null 6>&1
  634. # Name of the host.
  635. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  636. # so uname gets run too.
  637. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  638. #
  639. # Initializations.
  640. #
  641. ac_default_prefix=/usr/local
  642. ac_clean_files=
  643. ac_config_libobj_dir=.
  644. LIBOBJS=
  645. cross_compiling=no
  646. subdirs=
  647. MFLAGS=
  648. MAKEFLAGS=
  649. SHELL=${CONFIG_SHELL-/bin/sh}
  650. # Identity of this package.
  651. PACKAGE_NAME='dirsrv'
  652. PACKAGE_TARNAME='dirsrv'
  653. PACKAGE_VERSION='1.2.1'
  654. PACKAGE_STRING='dirsrv 1.2.1'
  655. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  656. # Factoring default headers for most tests.
  657. ac_includes_default="\
  658. #include <stdio.h>
  659. #ifdef HAVE_SYS_TYPES_H
  660. # include <sys/types.h>
  661. #endif
  662. #ifdef HAVE_SYS_STAT_H
  663. # include <sys/stat.h>
  664. #endif
  665. #ifdef STDC_HEADERS
  666. # include <stdlib.h>
  667. # include <stddef.h>
  668. #else
  669. # ifdef HAVE_STDLIB_H
  670. # include <stdlib.h>
  671. # endif
  672. #endif
  673. #ifdef HAVE_STRING_H
  674. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  675. # include <memory.h>
  676. # endif
  677. # include <string.h>
  678. #endif
  679. #ifdef HAVE_STRINGS_H
  680. # include <strings.h>
  681. #endif
  682. #ifdef HAVE_INTTYPES_H
  683. # include <inttypes.h>
  684. #endif
  685. #ifdef HAVE_STDINT_H
  686. # include <stdint.h>
  687. #endif
  688. #ifdef HAVE_UNISTD_H
  689. # include <unistd.h>
  690. #endif"
  691. ac_default_prefix=/opt/$PACKAGE_NAME
  692. ac_subst_vars='LTLIBOBJS
  693. vendor
  694. capbrand
  695. brand
  696. pcre_libdir
  697. pcre_lib
  698. pcre_inc
  699. netsnmp_link
  700. netsnmp_libdir
  701. netsnmp_lib
  702. netsnmp_inc
  703. icu_bin
  704. icu_inc
  705. icu_lib
  706. svrcore_lib
  707. svrcore_inc
  708. sasl_path
  709. sasl_libdir
  710. sasl_lib
  711. sasl_inc
  712. db_libver
  713. db_bindir
  714. db_libdir
  715. db_lib
  716. db_incdir
  717. db_inc
  718. ol_libver
  719. openldap_bindir
  720. openldap_libdir
  721. openldap_lib
  722. openldap_inc
  723. ldapsdk_bindir
  724. ldapsdk_libdir
  725. ldapsdk_lib
  726. ldapsdk_inc
  727. nss_libdir
  728. nss_lib
  729. nss_inc
  730. nspr_libdir
  731. nspr_lib
  732. nspr_inc
  733. OPENLDAP_FALSE
  734. OPENLDAP_TRUE
  735. PACKAGE_BASE_VERSION
  736. kerberos_libdir
  737. kerberos_lib
  738. kerberos_inc
  739. KRB5_CONFIG_BIN
  740. NETSNMP_CONFIG
  741. ICU_CONFIG
  742. PKG_CONFIG
  743. SOLARIS_FALSE
  744. SOLARIS_TRUE
  745. HPUX_FALSE
  746. HPUX_TRUE
  747. initconfigdir
  748. perlexec
  749. initdir
  750. LIBCRUN
  751. LIBCSTD
  752. LIBDL
  753. LIBNSL
  754. LIBSOCKET
  755. WINNT_FALSE
  756. WINNT_TRUE
  757. instconfigdir
  758. defaultgroup
  759. defaultuser
  760. mibdir
  761. infdir
  762. perldir
  763. scripttemplatedir
  764. serverplugindir
  765. serverdir
  766. schemadir
  767. propertydir
  768. sampledatadir
  769. configdir
  770. with_fhs_opt
  771. enable_presence_FALSE
  772. enable_presence_TRUE
  773. enable_bitwise_FALSE
  774. enable_bitwise_TRUE
  775. enable_auto_dn_suffix_FALSE
  776. enable_auto_dn_suffix_TRUE
  777. enable_autobind_FALSE
  778. enable_autobind_TRUE
  779. enable_ldapi_FALSE
  780. enable_ldapi_TRUE
  781. enable_dna_FALSE
  782. enable_dna_TRUE
  783. enable_pam_passthru_FALSE
  784. enable_pam_passthru_TRUE
  785. BUNDLE_FALSE
  786. BUNDLE_TRUE
  787. debug_defs
  788. LIBOBJS
  789. LIBTOOL
  790. ac_ct_F77
  791. FFLAGS
  792. F77
  793. CXXCPP
  794. CPP
  795. RANLIB
  796. AR
  797. ECHO
  798. LN_S
  799. EGREP
  800. GREP
  801. SED
  802. am__fastdepCCAS_FALSE
  803. am__fastdepCCAS_TRUE
  804. CCASDEPMODE
  805. CCASFLAGS
  806. CCAS
  807. am__fastdepCC_FALSE
  808. am__fastdepCC_TRUE
  809. CCDEPMODE
  810. ac_ct_CC
  811. CFLAGS
  812. CC
  813. am__fastdepCXX_FALSE
  814. am__fastdepCXX_TRUE
  815. CXXDEPMODE
  816. AMDEPBACKSLASH
  817. AMDEP_FALSE
  818. AMDEP_TRUE
  819. am__quote
  820. am__include
  821. DEPDIR
  822. OBJEXT
  823. EXEEXT
  824. ac_ct_CXX
  825. CPPFLAGS
  826. LDFLAGS
  827. CXXFLAGS
  828. CXX
  829. host_os
  830. host_vendor
  831. host_cpu
  832. host
  833. build_os
  834. build_vendor
  835. build_cpu
  836. build
  837. MAINT
  838. MAINTAINER_MODE_FALSE
  839. MAINTAINER_MODE_TRUE
  840. am__untar
  841. am__tar
  842. AMTAR
  843. am__leading_dot
  844. SET_MAKE
  845. AWK
  846. mkdir_p
  847. MKDIR_P
  848. INSTALL_STRIP_PROGRAM
  849. STRIP
  850. install_sh
  851. MAKEINFO
  852. AUTOHEADER
  853. AUTOMAKE
  854. AUTOCONF
  855. ACLOCAL
  856. VERSION
  857. PACKAGE
  858. CYGPATH_W
  859. am__isrc
  860. INSTALL_DATA
  861. INSTALL_SCRIPT
  862. INSTALL_PROGRAM
  863. target_alias
  864. host_alias
  865. build_alias
  866. LIBS
  867. ECHO_T
  868. ECHO_N
  869. ECHO_C
  870. DEFS
  871. mandir
  872. localedir
  873. libdir
  874. psdir
  875. pdfdir
  876. dvidir
  877. htmldir
  878. infodir
  879. docdir
  880. oldincludedir
  881. includedir
  882. localstatedir
  883. sharedstatedir
  884. sysconfdir
  885. datadir
  886. datarootdir
  887. libexecdir
  888. sbindir
  889. bindir
  890. program_transform_name
  891. prefix
  892. exec_prefix
  893. PACKAGE_BUGREPORT
  894. PACKAGE_STRING
  895. PACKAGE_VERSION
  896. PACKAGE_TARNAME
  897. PACKAGE_NAME
  898. PATH_SEPARATOR
  899. SHELL'
  900. ac_subst_files=''
  901. ac_user_opts='
  902. enable_option_checking
  903. enable_maintainer_mode
  904. enable_dependency_tracking
  905. enable_static
  906. enable_shared
  907. enable_fast_install
  908. with_gnu_ld
  909. enable_libtool_lock
  910. with_pic
  911. with_tags
  912. enable_debug
  913. enable_bundle
  914. enable_pam_passthru
  915. enable_dna
  916. enable_ldapi
  917. enable_autobind
  918. enable_bitwise
  919. enable_presence
  920. with_fhs
  921. with_fhs_opt
  922. with_instconfigdir
  923. with_nspr
  924. with_nspr_inc
  925. with_nspr_lib
  926. with_nss
  927. with_nss_inc
  928. with_nss_lib
  929. with_openldap
  930. with_openldap_inc
  931. with_openldap_lib
  932. with_openldap_bin
  933. with_ldapsdk
  934. with_ldapsdk_inc
  935. with_ldapsdk_lib
  936. with_ldapsdk_bin
  937. with_db
  938. with_sasl
  939. with_sasl_inc
  940. with_sasl_lib
  941. with_svrcore
  942. with_svrcore_inc
  943. with_svrcore_lib
  944. with_icu
  945. with_icu_inc
  946. with_icu_lib
  947. with_icu_bin
  948. with_netsnmp
  949. with_netsnmp_inc
  950. with_netsnmp_lib
  951. with_kerberos
  952. with_kerberos_inc
  953. with_kerberos_lib
  954. with_pcre
  955. '
  956. ac_precious_vars='build_alias
  957. host_alias
  958. target_alias
  959. CXX
  960. CXXFLAGS
  961. LDFLAGS
  962. LIBS
  963. CPPFLAGS
  964. CCC
  965. CC
  966. CFLAGS
  967. CCAS
  968. CCASFLAGS
  969. CPP
  970. CXXCPP
  971. F77
  972. FFLAGS'
  973. # Initialize some variables set by options.
  974. ac_init_help=
  975. ac_init_version=false
  976. ac_unrecognized_opts=
  977. ac_unrecognized_sep=
  978. # The variables have the same names as the options, with
  979. # dashes changed to underlines.
  980. cache_file=/dev/null
  981. exec_prefix=NONE
  982. no_create=
  983. no_recursion=
  984. prefix=NONE
  985. program_prefix=NONE
  986. program_suffix=NONE
  987. program_transform_name=s,x,x,
  988. silent=
  989. site=
  990. srcdir=
  991. verbose=
  992. x_includes=NONE
  993. x_libraries=NONE
  994. # Installation directory options.
  995. # These are left unexpanded so users can "make install exec_prefix=/foo"
  996. # and all the variables that are supposed to be based on exec_prefix
  997. # by default will actually change.
  998. # Use braces instead of parens because sh, perl, etc. also accept them.
  999. # (The list follows the same order as the GNU Coding Standards.)
  1000. bindir='${exec_prefix}/bin'
  1001. sbindir='${exec_prefix}/sbin'
  1002. libexecdir='${exec_prefix}/libexec'
  1003. datarootdir='${prefix}/share'
  1004. datadir='${datarootdir}'
  1005. sysconfdir='${prefix}/etc'
  1006. sharedstatedir='${prefix}/com'
  1007. localstatedir='${prefix}/var'
  1008. includedir='${prefix}/include'
  1009. oldincludedir='/usr/include'
  1010. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1011. infodir='${datarootdir}/info'
  1012. htmldir='${docdir}'
  1013. dvidir='${docdir}'
  1014. pdfdir='${docdir}'
  1015. psdir='${docdir}'
  1016. libdir='${exec_prefix}/lib'
  1017. localedir='${datarootdir}/locale'
  1018. mandir='${datarootdir}/man'
  1019. ac_prev=
  1020. ac_dashdash=
  1021. for ac_option
  1022. do
  1023. # If the previous option needs an argument, assign it.
  1024. if test -n "$ac_prev"; then
  1025. eval $ac_prev=\$ac_option
  1026. ac_prev=
  1027. continue
  1028. fi
  1029. case $ac_option in
  1030. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1031. *) ac_optarg=yes ;;
  1032. esac
  1033. # Accept the important Cygnus configure options, so we can diagnose typos.
  1034. case $ac_dashdash$ac_option in
  1035. --)
  1036. ac_dashdash=yes ;;
  1037. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1038. ac_prev=bindir ;;
  1039. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1040. bindir=$ac_optarg ;;
  1041. -build | --build | --buil | --bui | --bu)
  1042. ac_prev=build_alias ;;
  1043. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1044. build_alias=$ac_optarg ;;
  1045. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1046. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1047. ac_prev=cache_file ;;
  1048. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1049. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1050. cache_file=$ac_optarg ;;
  1051. --config-cache | -C)
  1052. cache_file=config.cache ;;
  1053. -datadir | --datadir | --datadi | --datad)
  1054. ac_prev=datadir ;;
  1055. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1056. datadir=$ac_optarg ;;
  1057. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1058. | --dataroo | --dataro | --datar)
  1059. ac_prev=datarootdir ;;
  1060. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1061. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1062. datarootdir=$ac_optarg ;;
  1063. -disable-* | --disable-*)
  1064. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1067. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1068. { (exit 1); exit 1; }; }
  1069. ac_useropt_orig=$ac_useropt
  1070. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1071. case $ac_user_opts in
  1072. *"
  1073. "enable_$ac_useropt"
  1074. "*) ;;
  1075. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1076. ac_unrecognized_sep=', ';;
  1077. esac
  1078. eval enable_$ac_useropt=no ;;
  1079. -docdir | --docdir | --docdi | --doc | --do)
  1080. ac_prev=docdir ;;
  1081. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1082. docdir=$ac_optarg ;;
  1083. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1084. ac_prev=dvidir ;;
  1085. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1086. dvidir=$ac_optarg ;;
  1087. -enable-* | --enable-*)
  1088. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1089. # Reject names that are not valid shell variable names.
  1090. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1091. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1092. { (exit 1); exit 1; }; }
  1093. ac_useropt_orig=$ac_useropt
  1094. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1095. case $ac_user_opts in
  1096. *"
  1097. "enable_$ac_useropt"
  1098. "*) ;;
  1099. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1100. ac_unrecognized_sep=', ';;
  1101. esac
  1102. eval enable_$ac_useropt=\$ac_optarg ;;
  1103. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1104. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1105. | --exec | --exe | --ex)
  1106. ac_prev=exec_prefix ;;
  1107. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1108. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1109. | --exec=* | --exe=* | --ex=*)
  1110. exec_prefix=$ac_optarg ;;
  1111. -gas | --gas | --ga | --g)
  1112. # Obsolete; use --with-gas.
  1113. with_gas=yes ;;
  1114. -help | --help | --hel | --he | -h)
  1115. ac_init_help=long ;;
  1116. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1117. ac_init_help=recursive ;;
  1118. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1119. ac_init_help=short ;;
  1120. -host | --host | --hos | --ho)
  1121. ac_prev=host_alias ;;
  1122. -host=* | --host=* | --hos=* | --ho=*)
  1123. host_alias=$ac_optarg ;;
  1124. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1125. ac_prev=htmldir ;;
  1126. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1127. | --ht=*)
  1128. htmldir=$ac_optarg ;;
  1129. -includedir | --includedir | --includedi | --included | --include \
  1130. | --includ | --inclu | --incl | --inc)
  1131. ac_prev=includedir ;;
  1132. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1133. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1134. includedir=$ac_optarg ;;
  1135. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1136. ac_prev=infodir ;;
  1137. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1138. infodir=$ac_optarg ;;
  1139. -libdir | --libdir | --libdi | --libd)
  1140. ac_prev=libdir ;;
  1141. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1142. libdir=$ac_optarg ;;
  1143. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1144. | --libexe | --libex | --libe)
  1145. ac_prev=libexecdir ;;
  1146. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1147. | --libexe=* | --libex=* | --libe=*)
  1148. libexecdir=$ac_optarg ;;
  1149. -localedir | --localedir | --localedi | --localed | --locale)
  1150. ac_prev=localedir ;;
  1151. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1152. localedir=$ac_optarg ;;
  1153. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1154. | --localstate | --localstat | --localsta | --localst | --locals)
  1155. ac_prev=localstatedir ;;
  1156. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1157. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1158. localstatedir=$ac_optarg ;;
  1159. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1160. ac_prev=mandir ;;
  1161. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1162. mandir=$ac_optarg ;;
  1163. -nfp | --nfp | --nf)
  1164. # Obsolete; use --without-fp.
  1165. with_fp=no ;;
  1166. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1167. | --no-cr | --no-c | -n)
  1168. no_create=yes ;;
  1169. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1170. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1171. no_recursion=yes ;;
  1172. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1173. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1174. | --oldin | --oldi | --old | --ol | --o)
  1175. ac_prev=oldincludedir ;;
  1176. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1177. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1178. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1179. oldincludedir=$ac_optarg ;;
  1180. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1181. ac_prev=prefix ;;
  1182. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1183. prefix=$ac_optarg ;;
  1184. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1185. | --program-pre | --program-pr | --program-p)
  1186. ac_prev=program_prefix ;;
  1187. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1188. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1189. program_prefix=$ac_optarg ;;
  1190. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1191. | --program-suf | --program-su | --program-s)
  1192. ac_prev=program_suffix ;;
  1193. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1194. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1195. program_suffix=$ac_optarg ;;
  1196. -program-transform-name | --program-transform-name \
  1197. | --program-transform-nam | --program-transform-na \
  1198. | --program-transform-n | --program-transform- \
  1199. | --program-transform | --program-transfor \
  1200. | --program-transfo | --program-transf \
  1201. | --program-trans | --program-tran \
  1202. | --progr-tra | --program-tr | --program-t)
  1203. ac_prev=program_transform_name ;;
  1204. -program-transform-name=* | --program-transform-name=* \
  1205. | --program-transform-nam=* | --program-transform-na=* \
  1206. | --program-transform-n=* | --program-transform-=* \
  1207. | --program-transform=* | --program-transfor=* \
  1208. | --program-transfo=* | --program-transf=* \
  1209. | --program-trans=* | --program-tran=* \
  1210. | --progr-tra=* | --program-tr=* | --program-t=*)
  1211. program_transform_name=$ac_optarg ;;
  1212. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1213. ac_prev=pdfdir ;;
  1214. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1215. pdfdir=$ac_optarg ;;
  1216. -psdir | --psdir | --psdi | --psd | --ps)
  1217. ac_prev=psdir ;;
  1218. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1219. psdir=$ac_optarg ;;
  1220. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1221. | -silent | --silent | --silen | --sile | --sil)
  1222. silent=yes ;;
  1223. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1224. ac_prev=sbindir ;;
  1225. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1226. | --sbi=* | --sb=*)
  1227. sbindir=$ac_optarg ;;
  1228. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1229. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1230. | --sharedst | --shareds | --shared | --share | --shar \
  1231. | --sha | --sh)
  1232. ac_prev=sharedstatedir ;;
  1233. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1234. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1235. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1236. | --sha=* | --sh=*)
  1237. sharedstatedir=$ac_optarg ;;
  1238. -site | --site | --sit)
  1239. ac_prev=site ;;
  1240. -site=* | --site=* | --sit=*)
  1241. site=$ac_optarg ;;
  1242. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1243. ac_prev=srcdir ;;
  1244. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1245. srcdir=$ac_optarg ;;
  1246. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1247. | --syscon | --sysco | --sysc | --sys | --sy)
  1248. ac_prev=sysconfdir ;;
  1249. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1250. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1251. sysconfdir=$ac_optarg ;;
  1252. -target | --target | --targe | --targ | --tar | --ta | --t)
  1253. ac_prev=target_alias ;;
  1254. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1255. target_alias=$ac_optarg ;;
  1256. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1257. verbose=yes ;;
  1258. -version | --version | --versio | --versi | --vers | -V)
  1259. ac_init_version=: ;;
  1260. -with-* | --with-*)
  1261. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1262. # Reject names that are not valid shell variable names.
  1263. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1264. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1265. { (exit 1); exit 1; }; }
  1266. ac_useropt_orig=$ac_useropt
  1267. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1268. case $ac_user_opts in
  1269. *"
  1270. "with_$ac_useropt"
  1271. "*) ;;
  1272. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1273. ac_unrecognized_sep=', ';;
  1274. esac
  1275. eval with_$ac_useropt=\$ac_optarg ;;
  1276. -without-* | --without-*)
  1277. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1278. # Reject names that are not valid shell variable names.
  1279. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1280. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1281. { (exit 1); exit 1; }; }
  1282. ac_useropt_orig=$ac_useropt
  1283. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1284. case $ac_user_opts in
  1285. *"
  1286. "with_$ac_useropt"
  1287. "*) ;;
  1288. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1289. ac_unrecognized_sep=', ';;
  1290. esac
  1291. eval with_$ac_useropt=no ;;
  1292. --x)
  1293. # Obsolete; use --with-x.
  1294. with_x=yes ;;
  1295. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1296. | --x-incl | --x-inc | --x-in | --x-i)
  1297. ac_prev=x_includes ;;
  1298. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1299. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1300. x_includes=$ac_optarg ;;
  1301. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1302. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1303. ac_prev=x_libraries ;;
  1304. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1305. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1306. x_libraries=$ac_optarg ;;
  1307. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1308. Try \`$0 --help' for more information." >&2
  1309. { (exit 1); exit 1; }; }
  1310. ;;
  1311. *=*)
  1312. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1313. # Reject names that are not valid shell variable names.
  1314. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1315. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1316. { (exit 1); exit 1; }; }
  1317. eval $ac_envvar=\$ac_optarg
  1318. export $ac_envvar ;;
  1319. *)
  1320. # FIXME: should be removed in autoconf 3.0.
  1321. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1322. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1323. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1324. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1325. ;;
  1326. esac
  1327. done
  1328. if test -n "$ac_prev"; then
  1329. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1330. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1331. { (exit 1); exit 1; }; }
  1332. fi
  1333. if test -n "$ac_unrecognized_opts"; then
  1334. case $enable_option_checking in
  1335. no) ;;
  1336. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1337. { (exit 1); exit 1; }; } ;;
  1338. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1339. esac
  1340. fi
  1341. # Check all directory arguments for consistency.
  1342. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1343. datadir sysconfdir sharedstatedir localstatedir includedir \
  1344. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1345. libdir localedir mandir
  1346. do
  1347. eval ac_val=\$$ac_var
  1348. # Remove trailing slashes.
  1349. case $ac_val in
  1350. */ )
  1351. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1352. eval $ac_var=\$ac_val;;
  1353. esac
  1354. # Be sure to have absolute directory names.
  1355. case $ac_val in
  1356. [\\/$]* | ?:[\\/]* ) continue;;
  1357. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1358. esac
  1359. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1360. { (exit 1); exit 1; }; }
  1361. done
  1362. # There might be people who depend on the old broken behavior: `$host'
  1363. # used to hold the argument of --host etc.
  1364. # FIXME: To remove some day.
  1365. build=$build_alias
  1366. host=$host_alias
  1367. target=$target_alias
  1368. # FIXME: To remove some day.
  1369. if test "x$host_alias" != x; then
  1370. if test "x$build_alias" = x; then
  1371. cross_compiling=maybe
  1372. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1373. If a cross compiler is detected then cross compile mode will be used." >&2
  1374. elif test "x$build_alias" != "x$host_alias"; then
  1375. cross_compiling=yes
  1376. fi
  1377. fi
  1378. ac_tool_prefix=
  1379. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1380. test "$silent" = yes && exec 6>/dev/null
  1381. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1382. ac_ls_di=`ls -di .` &&
  1383. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1384. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1385. { (exit 1); exit 1; }; }
  1386. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1387. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1388. { (exit 1); exit 1; }; }
  1389. # Find the source files, if location was not specified.
  1390. if test -z "$srcdir"; then
  1391. ac_srcdir_defaulted=yes
  1392. # Try the directory containing this script, then the parent directory.
  1393. ac_confdir=`$as_dirname -- "$as_myself" ||
  1394. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1395. X"$as_myself" : 'X\(//\)[^/]' \| \
  1396. X"$as_myself" : 'X\(//\)$' \| \
  1397. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1398. $as_echo X"$as_myself" |
  1399. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1400. s//\1/
  1401. q
  1402. }
  1403. /^X\(\/\/\)[^/].*/{
  1404. s//\1/
  1405. q
  1406. }
  1407. /^X\(\/\/\)$/{
  1408. s//\1/
  1409. q
  1410. }
  1411. /^X\(\/\).*/{
  1412. s//\1/
  1413. q
  1414. }
  1415. s/.*/./; q'`
  1416. srcdir=$ac_confdir
  1417. if test ! -r "$srcdir/$ac_unique_file"; then
  1418. srcdir=..
  1419. fi
  1420. else
  1421. ac_srcdir_defaulted=no
  1422. fi
  1423. if test ! -r "$srcdir/$ac_unique_file"; then
  1424. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1425. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1426. { (exit 1); exit 1; }; }
  1427. fi
  1428. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1429. ac_abs_confdir=`(
  1430. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1431. { (exit 1); exit 1; }; }
  1432. pwd)`
  1433. # When building in place, set srcdir=.
  1434. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1435. srcdir=.
  1436. fi
  1437. # Remove unnecessary trailing slashes from srcdir.
  1438. # Double slashes in file names in object file debugging info
  1439. # mess up M-x gdb in Emacs.
  1440. case $srcdir in
  1441. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1442. esac
  1443. for ac_var in $ac_precious_vars; do
  1444. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1445. eval ac_env_${ac_var}_value=\$${ac_var}
  1446. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1447. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1448. done
  1449. #
  1450. # Report the --help message.
  1451. #
  1452. if test "$ac_init_help" = "long"; then
  1453. # Omit some internal or obsolete options to make the list less imposing.
  1454. # This message is too long to be a string in the A/UX 3.1 sh.
  1455. cat <<_ACEOF
  1456. \`configure' configures dirsrv 1.2.1 to adapt to many kinds of systems.
  1457. Usage: $0 [OPTION]... [VAR=VALUE]...
  1458. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1459. VAR=VALUE. See below for descriptions of some of the useful variables.
  1460. Defaults for the options are specified in brackets.
  1461. Configuration:
  1462. -h, --help display this help and exit
  1463. --help=short display options specific to this package
  1464. --help=recursive display the short help of all the included packages
  1465. -V, --version display version information and exit
  1466. -q, --quiet, --silent do not print \`checking...' messages
  1467. --cache-file=FILE cache test results in FILE [disabled]
  1468. -C, --config-cache alias for \`--cache-file=config.cache'
  1469. -n, --no-create do not create output files
  1470. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1471. Installation directories:
  1472. --prefix=PREFIX install architecture-independent files in PREFIX
  1473. [$ac_default_prefix]
  1474. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1475. [PREFIX]
  1476. By default, \`make install' will install all the files in
  1477. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1478. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1479. for instance \`--prefix=\$HOME'.
  1480. For better control, use the options below.
  1481. Fine tuning of the installation directories:
  1482. --bindir=DIR user executables [EPREFIX/bin]
  1483. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1484. --libexecdir=DIR program executables [EPREFIX/libexec]
  1485. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1486. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1487. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1488. --libdir=DIR object code libraries [EPREFIX/lib]
  1489. --includedir=DIR C header files [PREFIX/include]
  1490. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1491. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1492. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1493. --infodir=DIR info documentation [DATAROOTDIR/info]
  1494. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1495. --mandir=DIR man documentation [DATAROOTDIR/man]
  1496. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1497. --htmldir=DIR html documentation [DOCDIR]
  1498. --dvidir=DIR dvi documentation [DOCDIR]
  1499. --pdfdir=DIR pdf documentation [DOCDIR]
  1500. --psdir=DIR ps documentation [DOCDIR]
  1501. _ACEOF
  1502. cat <<\_ACEOF
  1503. Program names:
  1504. --program-prefix=PREFIX prepend PREFIX to installed program names
  1505. --program-suffix=SUFFIX append SUFFIX to installed program names
  1506. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1507. System types:
  1508. --build=BUILD configure for building on BUILD [guessed]
  1509. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1510. _ACEOF
  1511. fi
  1512. if test -n "$ac_init_help"; then
  1513. case $ac_init_help in
  1514. short | recursive ) echo "Configuration of dirsrv 1.2.1:";;
  1515. esac
  1516. cat <<\_ACEOF
  1517. Optional Features:
  1518. --disable-option-checking ignore unrecognized --enable/--with options
  1519. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1520. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1521. --enable-maintainer-mode enable make rules and dependencies not useful
  1522. (and sometimes confusing) to the casual installer
  1523. --disable-dependency-tracking speeds up one-time build
  1524. --enable-dependency-tracking do not reject slow dependency extractors
  1525. --enable-static[=PKGS] build static libraries [default=no]
  1526. --enable-shared[=PKGS] build shared libraries [default=yes]
  1527. --enable-fast-install[=PKGS]
  1528. optimize for fast installation [default=yes]
  1529. --disable-libtool-lock avoid locking (might break parallel builds)
  1530. --enable-debug Enable debug features (default: no)
  1531. --enable-bundle Enable bundled dependencies (default: no)
  1532. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1533. yes)
  1534. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1535. plugin (default: yes)
  1536. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1537. (default: yes)
  1538. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1539. support (default: no)
  1540. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1541. domain socket (LDAPI) support (default: no)
  1542. --enable-bitwise enable the bitwise matching rule plugin (default:
  1543. yes)
  1544. --enable-presence enable the presence plugin (default: no)
  1545. Optional Packages:
  1546. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1547. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1548. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1549. --with-pic try to use only PIC/non-PIC objects [default=use
  1550. both]
  1551. --with-tags[=TAGS] include additional configurations [automatic]
  1552. --with-fhs Use FHS layout
  1553. --with-fhs-opt Use FHS optional layout
  1554. --with-instconfigdir=/path
  1555. Base directory for instance specific writable
  1556. configuration directories (default
  1557. $sysconfdir/$PACKAGE_NAME)
  1558. --with-nspr=PATH Netscape Portable Runtime (NSPR) directory
  1559. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory
  1560. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1561. --with-nss=PATH Network Security Services (NSS) directory
  1562. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1563. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1564. --with-openldap=PATH Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1565. --with-openldap-inc=PATH OpenLDAP SDK include directory
  1566. --with-openldap-lib=PATH OpenLDAP SDK library directory
  1567. --with-openldap-bin=PATH OpenLDAP SDK binary directory
  1568. --with-ldapsdk=PATH Mozilla LDAP SDK directory
  1569. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1570. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1571. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1572. --with-db=PATH Berkeley DB directory
  1573. --with-sasl=PATH Use sasl from supplied path
  1574. --with-sasl-inc=PATH SASL include file directory
  1575. --with-sasl-lib=PATH SASL library directory
  1576. --with-svrcore[=PATH] Use system installed svrcore - optional path for svrcore
  1577. --with-svrcore-inc=PATH SVRCORE include file directory
  1578. --with-svrcore-lib=PATH SVRCORE library directory
  1579. --with-icu=PATH ICU directory
  1580. --with-icu-inc=PATH ICU include directory
  1581. --with-icu-lib=PATH ICU library directory
  1582. --with-icu-bin=PATH ICU binary directory
  1583. --with-netsnmp=PATH Net-SNMP directory
  1584. --with-netsnmp-inc=PATH Net-SNMP include directory
  1585. --with-netsnmp-lib=PATH Net-SNMP library directory
  1586. --with-kerberos=PATH Use the kerberos API in the server directly - allows
  1587. the server to authenticate directly with a keytab -
  1588. otherwise, SASL/GSSAPI auth depends on underlying
  1589. SASL libraries and external kinit with a keytab - if
  1590. PATH is not specified, look for kerberos in the
  1591. system locations. This will attempt to use
  1592. krb5-config from the PATH to find the libs and
  1593. include dirs - you can specify KRB5_CONFIG_BIN to
  1594. specify a different filename or absolute path. If
  1595. krb5-config does not work, this will attempt to look
  1596. in various system directories
  1597. --with-kerberos-inc=PATH
  1598. Allows you to explicitly set the directory
  1599. containing the kerberos include files - implies use
  1600. of kerberos
  1601. --with-kerberos-lib=PATH
  1602. Allows you to explicitly set the directory
  1603. containing the kerberos libraries - implies use of
  1604. kerberos
  1605. --with-pcre=PATH Perl Compatible Regular Expression directory
  1606. Some influential environment variables:
  1607. CXX C++ compiler command
  1608. CXXFLAGS C++ compiler flags
  1609. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1610. nonstandard directory <lib dir>
  1611. LIBS libraries to pass to the linker, e.g. -l<library>
  1612. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1613. you have headers in a nonstandard directory <include dir>
  1614. CC C compiler command
  1615. CFLAGS C compiler flags
  1616. CCAS assembler compiler command (defaults to CC)
  1617. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1618. CPP C preprocessor
  1619. CXXCPP C++ preprocessor
  1620. F77 Fortran 77 compiler command
  1621. FFLAGS Fortran 77 compiler flags
  1622. Use these variables to override the choices made by `configure' or to help
  1623. it to find libraries and programs with nonstandard names/locations.
  1624. Report bugs to <http://bugzilla.redhat.com/>.
  1625. _ACEOF
  1626. ac_status=$?
  1627. fi
  1628. if test "$ac_init_help" = "recursive"; then
  1629. # If there are subdirs, report their specific --help.
  1630. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1631. test -d "$ac_dir" ||
  1632. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1633. continue
  1634. ac_builddir=.
  1635. case "$ac_dir" in
  1636. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1637. *)
  1638. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1639. # A ".." for each directory in $ac_dir_suffix.
  1640. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1641. case $ac_top_builddir_sub in
  1642. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1643. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1644. esac ;;
  1645. esac
  1646. ac_abs_top_builddir=$ac_pwd
  1647. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1648. # for backward compatibility:
  1649. ac_top_builddir=$ac_top_build_prefix
  1650. case $srcdir in
  1651. .) # We are building in place.
  1652. ac_srcdir=.
  1653. ac_top_srcdir=$ac_top_builddir_sub
  1654. ac_abs_top_srcdir=$ac_pwd ;;
  1655. [\\/]* | ?:[\\/]* ) # Absolute name.
  1656. ac_srcdir=$srcdir$ac_dir_suffix;
  1657. ac_top_srcdir=$srcdir
  1658. ac_abs_top_srcdir=$srcdir ;;
  1659. *) # Relative name.
  1660. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1661. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1662. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1663. esac
  1664. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1665. cd "$ac_dir" || { ac_status=$?; continue; }
  1666. # Check for guested configure.
  1667. if test -f "$ac_srcdir/configure.gnu"; then
  1668. echo &&
  1669. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1670. elif test -f "$ac_srcdir/configure"; then
  1671. echo &&
  1672. $SHELL "$ac_srcdir/configure" --help=recursive
  1673. else
  1674. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1675. fi || ac_status=$?
  1676. cd "$ac_pwd" || { ac_status=$?; break; }
  1677. done
  1678. fi
  1679. test -n "$ac_init_help" && exit $ac_status
  1680. if $ac_init_version; then
  1681. cat <<\_ACEOF
  1682. dirsrv configure 1.2.1
  1683. generated by GNU Autoconf 2.63
  1684. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1685. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1686. This configure script is free software; the Free Software Foundation
  1687. gives unlimited permission to copy, distribute and modify it.
  1688. _ACEOF
  1689. exit
  1690. fi
  1691. cat >config.log <<_ACEOF
  1692. This file contains any messages produced by compilers while
  1693. running configure, to aid debugging if configure makes a mistake.
  1694. It was created by dirsrv $as_me 1.2.1, which was
  1695. generated by GNU Autoconf 2.63. Invocation command line was
  1696. $ $0 $@
  1697. _ACEOF
  1698. exec 5>>config.log
  1699. {
  1700. cat <<_ASUNAME
  1701. ## --------- ##
  1702. ## Platform. ##
  1703. ## --------- ##
  1704. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1705. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1706. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1707. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1708. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1709. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1710. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1711. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1712. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1713. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1714. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1715. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1716. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1717. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1718. _ASUNAME
  1719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1720. for as_dir in $PATH
  1721. do
  1722. IFS=$as_save_IFS
  1723. test -z "$as_dir" && as_dir=.
  1724. $as_echo "PATH: $as_dir"
  1725. done
  1726. IFS=$as_save_IFS
  1727. } >&5
  1728. cat >&5 <<_ACEOF
  1729. ## ----------- ##
  1730. ## Core tests. ##
  1731. ## ----------- ##
  1732. _ACEOF
  1733. # Keep a trace of the command line.
  1734. # Strip out --no-create and --no-recursion so they do not pile up.
  1735. # Strip out --silent because we don't want to record it for future runs.
  1736. # Also quote any args containing shell meta-characters.
  1737. # Make two passes to allow for proper duplicate-argument suppression.
  1738. ac_configure_args=
  1739. ac_configure_args0=
  1740. ac_configure_args1=
  1741. ac_must_keep_next=false
  1742. for ac_pass in 1 2
  1743. do
  1744. for ac_arg
  1745. do
  1746. case $ac_arg in
  1747. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1748. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1749. | -silent | --silent | --silen | --sile | --sil)
  1750. continue ;;
  1751. *\'*)
  1752. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1753. esac
  1754. case $ac_pass in
  1755. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1756. 2)
  1757. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1758. if test $ac_must_keep_next = true; then
  1759. ac_must_keep_next=false # Got value, back to normal.
  1760. else
  1761. case $ac_arg in
  1762. *=* | --config-cache | -C | -disable-* | --disable-* \
  1763. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1764. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1765. | -with-* | --with-* | -without-* | --without-* | --x)
  1766. case "$ac_configure_args0 " in
  1767. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1768. esac
  1769. ;;
  1770. -* ) ac_must_keep_next=true ;;
  1771. esac
  1772. fi
  1773. ac_configure_args="$ac_configure_args '$ac_arg'"
  1774. ;;
  1775. esac
  1776. done
  1777. done
  1778. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1779. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1780. # When interrupted or exit'd, cleanup temporary files, and complete
  1781. # config.log. We remove comments because anyway the quotes in there
  1782. # would cause problems or look ugly.
  1783. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1784. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1785. trap 'exit_status=$?
  1786. # Save into config.log some information that might help in debugging.
  1787. {
  1788. echo
  1789. cat <<\_ASBOX
  1790. ## ---------------- ##
  1791. ## Cache variables. ##
  1792. ## ---------------- ##
  1793. _ASBOX
  1794. echo
  1795. # The following way of writing the cache mishandles newlines in values,
  1796. (
  1797. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1798. eval ac_val=\$$ac_var
  1799. case $ac_val in #(
  1800. *${as_nl}*)
  1801. case $ac_var in #(
  1802. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1803. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1804. esac
  1805. case $ac_var in #(
  1806. _ | IFS | as_nl) ;; #(
  1807. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1808. *) $as_unset $ac_var ;;
  1809. esac ;;
  1810. esac
  1811. done
  1812. (set) 2>&1 |
  1813. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1814. *${as_nl}ac_space=\ *)
  1815. sed -n \
  1816. "s/'\''/'\''\\\\'\'''\''/g;
  1817. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1818. ;; #(
  1819. *)
  1820. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1821. ;;
  1822. esac |
  1823. sort
  1824. )
  1825. echo
  1826. cat <<\_ASBOX
  1827. ## ----------------- ##
  1828. ## Output variables. ##
  1829. ## ----------------- ##
  1830. _ASBOX
  1831. echo
  1832. for ac_var in $ac_subst_vars
  1833. do
  1834. eval ac_val=\$$ac_var
  1835. case $ac_val in
  1836. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1837. esac
  1838. $as_echo "$ac_var='\''$ac_val'\''"
  1839. done | sort
  1840. echo
  1841. if test -n "$ac_subst_files"; then
  1842. cat <<\_ASBOX
  1843. ## ------------------- ##
  1844. ## File substitutions. ##
  1845. ## ------------------- ##
  1846. _ASBOX
  1847. echo
  1848. for ac_var in $ac_subst_files
  1849. do
  1850. eval ac_val=\$$ac_var
  1851. case $ac_val in
  1852. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1853. esac
  1854. $as_echo "$ac_var='\''$ac_val'\''"
  1855. done | sort
  1856. echo
  1857. fi
  1858. if test -s confdefs.h; then
  1859. cat <<\_ASBOX
  1860. ## ----------- ##
  1861. ## confdefs.h. ##
  1862. ## ----------- ##
  1863. _ASBOX
  1864. echo
  1865. cat confdefs.h
  1866. echo
  1867. fi
  1868. test "$ac_signal" != 0 &&
  1869. $as_echo "$as_me: caught signal $ac_signal"
  1870. $as_echo "$as_me: exit $exit_status"
  1871. } >&5
  1872. rm -f core *.core core.conftest.* &&
  1873. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1874. exit $exit_status
  1875. ' 0
  1876. for ac_signal in 1 2 13 15; do
  1877. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1878. done
  1879. ac_signal=0
  1880. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1881. rm -f -r conftest* confdefs.h
  1882. # Predefined preprocessor variables.
  1883. cat >>confdefs.h <<_ACEOF
  1884. #define PACKAGE_NAME "$PACKAGE_NAME"
  1885. _ACEOF
  1886. cat >>confdefs.h <<_ACEOF
  1887. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1888. _ACEOF
  1889. cat >>confdefs.h <<_ACEOF
  1890. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1891. _ACEOF
  1892. cat >>confdefs.h <<_ACEOF
  1893. #define PACKAGE_STRING "$PACKAGE_STRING"
  1894. _ACEOF
  1895. cat >>confdefs.h <<_ACEOF
  1896. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1897. _ACEOF
  1898. # Let the site file select an alternate cache file if it wants to.
  1899. # Prefer an explicitly selected file to automatically selected ones.
  1900. ac_site_file1=NONE
  1901. ac_site_file2=NONE
  1902. if test -n "$CONFIG_SITE"; then
  1903. ac_site_file1=$CONFIG_SITE
  1904. elif test "x$prefix" != xNONE; then
  1905. ac_site_file1=$prefix/share/config.site
  1906. ac_site_file2=$prefix/etc/config.site
  1907. else
  1908. ac_site_file1=$ac_default_prefix/share/config.site
  1909. ac_site_file2=$ac_default_prefix/etc/config.site
  1910. fi
  1911. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1912. do
  1913. test "x$ac_site_file" = xNONE && continue
  1914. if test -r "$ac_site_file"; then
  1915. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1916. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1917. sed 's/^/| /' "$ac_site_file" >&5
  1918. . "$ac_site_file"
  1919. fi
  1920. done
  1921. if test -r "$cache_file"; then
  1922. # Some versions of bash will fail to source /dev/null (special
  1923. # files actually), so we avoid doing that.
  1924. if test -f "$cache_file"; then
  1925. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1926. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1927. case $cache_file in
  1928. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1929. *) . "./$cache_file";;
  1930. esac
  1931. fi
  1932. else
  1933. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1934. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1935. >$cache_file
  1936. fi
  1937. # Check that the precious variables saved in the cache have kept the same
  1938. # value.
  1939. ac_cache_corrupted=false
  1940. for ac_var in $ac_precious_vars; do
  1941. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1942. eval ac_new_set=\$ac_env_${ac_var}_set
  1943. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1944. eval ac_new_val=\$ac_env_${ac_var}_value
  1945. case $ac_old_set,$ac_new_set in
  1946. set,)
  1947. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1948. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1949. ac_cache_corrupted=: ;;
  1950. ,set)
  1951. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1952. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1953. ac_cache_corrupted=: ;;
  1954. ,);;
  1955. *)
  1956. if test "x$ac_old_val" != "x$ac_new_val"; then
  1957. # differences in whitespace do not lead to failure.
  1958. ac_old_val_w=`echo x $ac_old_val`
  1959. ac_new_val_w=`echo x $ac_new_val`
  1960. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1961. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1962. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1963. ac_cache_corrupted=:
  1964. else
  1965. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1966. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1967. eval $ac_var=\$ac_old_val
  1968. fi
  1969. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1970. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1971. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1972. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1973. fi;;
  1974. esac
  1975. # Pass precious variables to config.status.
  1976. if test "$ac_new_set" = set; then
  1977. case $ac_new_val in
  1978. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1979. *) ac_arg=$ac_var=$ac_new_val ;;
  1980. esac
  1981. case " $ac_configure_args " in
  1982. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1983. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1984. esac
  1985. fi
  1986. done
  1987. if $ac_cache_corrupted; then
  1988. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1989. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1990. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1991. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1992. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1993. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1994. { (exit 1); exit 1; }; }
  1995. fi
  1996. ac_ext=c
  1997. ac_cpp='$CPP $CPPFLAGS'
  1998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2001. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2002. ac_config_headers="$ac_config_headers config.h"
  2003. am__api_version='1.10'
  2004. ac_aux_dir=
  2005. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2006. if test -f "$ac_dir/install-sh"; then
  2007. ac_aux_dir=$ac_dir
  2008. ac_install_sh="$ac_aux_dir/install-sh -c"
  2009. break
  2010. elif test -f "$ac_dir/install.sh"; then
  2011. ac_aux_dir=$ac_dir
  2012. ac_install_sh="$ac_aux_dir/install.sh -c"
  2013. break
  2014. elif test -f "$ac_dir/shtool"; then
  2015. ac_aux_dir=$ac_dir
  2016. ac_install_sh="$ac_aux_dir/shtool install -c"
  2017. break
  2018. fi
  2019. done
  2020. if test -z "$ac_aux_dir"; then
  2021. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2022. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2023. { (exit 1); exit 1; }; }
  2024. fi
  2025. # These three variables are undocumented and unsupported,
  2026. # and are intended to be withdrawn in a future Autoconf release.
  2027. # They can cause serious problems if a builder's source tree is in a directory
  2028. # whose full name contains unusual characters.
  2029. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2030. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2031. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2032. # Find a good install program. We prefer a C program (faster),
  2033. # so one script is as good as another. But avoid the broken or
  2034. # incompatible versions:
  2035. # SysV /etc/install, /usr/sbin/install
  2036. # SunOS /usr/etc/install
  2037. # IRIX /sbin/install
  2038. # AIX /bin/install
  2039. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2040. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2041. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2042. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2043. # OS/2's system install, which has a completely different semantic
  2044. # ./install, which can be erroneously created by make from ./install.sh.
  2045. # Reject install programs that cannot install multiple files.
  2046. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2047. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2048. if test -z "$INSTALL"; then
  2049. if test "${ac_cv_path_install+set}" = set; then
  2050. $as_echo_n "(cached) " >&6
  2051. else
  2052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2053. for as_dir in $PATH
  2054. do
  2055. IFS=$as_save_IFS
  2056. test -z "$as_dir" && as_dir=.
  2057. # Account for people who put trailing slashes in PATH elements.
  2058. case $as_dir/ in
  2059. ./ | .// | /cC/* | \
  2060. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2061. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2062. /usr/ucb/* ) ;;
  2063. *)
  2064. # OSF1 and SCO ODT 3.0 have their own names for install.
  2065. # Don't use installbsd from OSF since it installs stuff as root
  2066. # by default.
  2067. for ac_prog in ginstall scoinst install; do
  2068. for ac_exec_ext in '' $ac_executable_extensions; do
  2069. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2070. if test $ac_prog = install &&
  2071. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2072. # AIX install. It has an incompatible calling convention.
  2073. :
  2074. elif test $ac_prog = install &&
  2075. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2076. # program-specific install script used by HP pwplus--don't use.
  2077. :
  2078. else
  2079. rm -rf conftest.one conftest.two conftest.dir
  2080. echo one > conftest.one
  2081. echo two > conftest.two
  2082. mkdir conftest.dir
  2083. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2084. test -s conftest.one && test -s conftest.two &&
  2085. test -s conftest.dir/conftest.one &&
  2086. test -s conftest.dir/conftest.two
  2087. then
  2088. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2089. break 3
  2090. fi
  2091. fi
  2092. fi
  2093. done
  2094. done
  2095. ;;
  2096. esac
  2097. done
  2098. IFS=$as_save_IFS
  2099. rm -rf conftest.one conftest.two conftest.dir
  2100. fi
  2101. if test "${ac_cv_path_install+set}" = set; then
  2102. INSTALL=$ac_cv_path_install
  2103. else
  2104. # As a last resort, use the slow shell script. Don't cache a
  2105. # value for INSTALL within a source directory, because that will
  2106. # break other packages using the cache if that directory is
  2107. # removed, or if the value is a relative name.
  2108. INSTALL=$ac_install_sh
  2109. fi
  2110. fi
  2111. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2112. $as_echo "$INSTALL" >&6; }
  2113. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2114. # It thinks the first close brace ends the variable substitution.
  2115. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2116. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2117. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2118. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2119. $as_echo_n "checking whether build environment is sane... " >&6; }
  2120. # Just in case
  2121. sleep 1
  2122. echo timestamp > conftest.file
  2123. # Do `set' in a subshell so we don't clobber the current shell's
  2124. # arguments. Must try -L first in case configure is actually a
  2125. # symlink; some systems play weird games with the mod time of symlinks
  2126. # (eg FreeBSD returns the mod time of the symlink's containing
  2127. # directory).
  2128. if (
  2129. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2130. if test "$*" = "X"; then
  2131. # -L didn't work.
  2132. set X `ls -t $srcdir/configure conftest.file`
  2133. fi
  2134. rm -f conftest.file
  2135. if test "$*" != "X $srcdir/configure conftest.file" \
  2136. && test "$*" != "X conftest.file $srcdir/configure"; then
  2137. # If neither matched, then we have a broken ls. This can happen
  2138. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2139. # broken ls alias from the environment. This has actually
  2140. # happened. Such a system could not be considered "sane".
  2141. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2142. alias in your environment" >&5
  2143. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2144. alias in your environment" >&2;}
  2145. { (exit 1); exit 1; }; }
  2146. fi
  2147. test "$2" = conftest.file
  2148. )
  2149. then
  2150. # Ok.
  2151. :
  2152. else
  2153. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2154. Check your system clock" >&5
  2155. $as_echo "$as_me: error: newly created file is older than distributed files!
  2156. Check your system clock" >&2;}
  2157. { (exit 1); exit 1; }; }
  2158. fi
  2159. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2160. $as_echo "yes" >&6; }
  2161. test "$program_prefix" != NONE &&
  2162. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2163. # Use a double $ so make ignores it.
  2164. test "$program_suffix" != NONE &&
  2165. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2166. # Double any \ or $.
  2167. # By default was `s,x,x', remove it if useless.
  2168. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2169. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2170. # expand $ac_aux_dir to an absolute path
  2171. am_aux_dir=`cd $ac_aux_dir && pwd`
  2172. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2173. # Use eval to expand $SHELL
  2174. if eval "$MISSING --run true"; then
  2175. am_missing_run="$MISSING --run "
  2176. else
  2177. am_missing_run=
  2178. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2179. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2180. fi
  2181. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2182. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2183. if test -z "$MKDIR_P"; then
  2184. if test "${ac_cv_path_mkdir+set}" = set; then
  2185. $as_echo_n "(cached) " >&6
  2186. else
  2187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2188. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2189. do
  2190. IFS=$as_save_IFS
  2191. test -z "$as_dir" && as_dir=.
  2192. for ac_prog in mkdir gmkdir; do
  2193. for ac_exec_ext in '' $ac_executable_extensions; do
  2194. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2195. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2196. 'mkdir (GNU coreutils) '* | \
  2197. 'mkdir (coreutils) '* | \
  2198. 'mkdir (fileutils) '4.1*)
  2199. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2200. break 3;;
  2201. esac
  2202. done
  2203. done
  2204. done
  2205. IFS=$as_save_IFS
  2206. fi
  2207. if test "${ac_cv_path_mkdir+set}" = set; then
  2208. MKDIR_P="$ac_cv_path_mkdir -p"
  2209. else
  2210. # As a last resort, use the slow shell script. Don't cache a
  2211. # value for MKDIR_P within a source directory, because that will
  2212. # break other packages using the cache if that directory is
  2213. # removed, or if the value is a relative name.
  2214. test -d ./--version && rmdir ./--version
  2215. MKDIR_P="$ac_install_sh -d"
  2216. fi
  2217. fi
  2218. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2219. $as_echo "$MKDIR_P" >&6; }
  2220. mkdir_p="$MKDIR_P"
  2221. case $mkdir_p in
  2222. [\\/$]* | ?:[\\/]*) ;;
  2223. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2224. esac
  2225. for ac_prog in gawk mawk nawk awk
  2226. do
  2227. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2228. set dummy $ac_prog; ac_word=$2
  2229. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2230. $as_echo_n "checking for $ac_word... " >&6; }
  2231. if test "${ac_cv_prog_AWK+set}" = set; then
  2232. $as_echo_n "(cached) " >&6
  2233. else
  2234. if test -n "$AWK"; then
  2235. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2236. else
  2237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2238. for as_dir in $PATH
  2239. do
  2240. IFS=$as_save_IFS
  2241. test -z "$as_dir" && as_dir=.
  2242. for ac_exec_ext in '' $ac_executable_extensions; do
  2243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2244. ac_cv_prog_AWK="$ac_prog"
  2245. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2246. break 2
  2247. fi
  2248. done
  2249. done
  2250. IFS=$as_save_IFS
  2251. fi
  2252. fi
  2253. AWK=$ac_cv_prog_AWK
  2254. if test -n "$AWK"; then
  2255. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2256. $as_echo "$AWK" >&6; }
  2257. else
  2258. { $as_echo "$as_me:$LINENO: result: no" >&5
  2259. $as_echo "no" >&6; }
  2260. fi
  2261. test -n "$AWK" && break
  2262. done
  2263. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2264. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2265. set x ${MAKE-make}
  2266. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2267. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2268. $as_echo_n "(cached) " >&6
  2269. else
  2270. cat >conftest.make <<\_ACEOF
  2271. SHELL = /bin/sh
  2272. all:
  2273. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2274. _ACEOF
  2275. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2276. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2277. *@@@%%%=?*=@@@%%%*)
  2278. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2279. *)
  2280. eval ac_cv_prog_make_${ac_make}_set=no;;
  2281. esac
  2282. rm -f conftest.make
  2283. fi
  2284. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2285. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2286. $as_echo "yes" >&6; }
  2287. SET_MAKE=
  2288. else
  2289. { $as_echo "$as_me:$LINENO: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. SET_MAKE="MAKE=${MAKE-make}"
  2292. fi
  2293. rm -rf .tst 2>/dev/null
  2294. mkdir .tst 2>/dev/null
  2295. if test -d .tst; then
  2296. am__leading_dot=.
  2297. else
  2298. am__leading_dot=_
  2299. fi
  2300. rmdir .tst 2>/dev/null
  2301. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2302. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2303. # is not polluted with repeated "-I."
  2304. am__isrc=' -I$(srcdir)'
  2305. # test to see if srcdir already configured
  2306. if test -f $srcdir/config.status; then
  2307. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2308. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2309. { (exit 1); exit 1; }; }
  2310. fi
  2311. fi
  2312. # test whether we have cygpath
  2313. if test -z "$CYGPATH_W"; then
  2314. if (cygpath --version) >/dev/null 2>/dev/null; then
  2315. CYGPATH_W='cygpath -w'
  2316. else
  2317. CYGPATH_W=echo
  2318. fi
  2319. fi
  2320. # Define the identity of the package.
  2321. PACKAGE='dirsrv'
  2322. VERSION='1.2.1'
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE "$PACKAGE"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define VERSION "$VERSION"
  2328. _ACEOF
  2329. # Some tools Automake needs.
  2330. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2331. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2332. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2333. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2334. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2335. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2336. # Installed binaries are usually stripped using `strip' when the user
  2337. # run `make install-strip'. However `strip' might not be the right
  2338. # tool to use in cross-compilation environments, therefore Automake
  2339. # will honor the `STRIP' environment variable to overrule this program.
  2340. if test "$cross_compiling" != no; then
  2341. if test -n "$ac_tool_prefix"; then
  2342. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2343. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2344. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2345. $as_echo_n "checking for $ac_word... " >&6; }
  2346. if test "${ac_cv_prog_STRIP+set}" = set; then
  2347. $as_echo_n "(cached) " >&6
  2348. else
  2349. if test -n "$STRIP"; then
  2350. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2351. else
  2352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2353. for as_dir in $PATH
  2354. do
  2355. IFS=$as_save_IFS
  2356. test -z "$as_dir" && as_dir=.
  2357. for ac_exec_ext in '' $ac_executable_extensions; do
  2358. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2359. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2360. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2361. break 2
  2362. fi
  2363. done
  2364. done
  2365. IFS=$as_save_IFS
  2366. fi
  2367. fi
  2368. STRIP=$ac_cv_prog_STRIP
  2369. if test -n "$STRIP"; then
  2370. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2371. $as_echo "$STRIP" >&6; }
  2372. else
  2373. { $as_echo "$as_me:$LINENO: result: no" >&5
  2374. $as_echo "no" >&6; }
  2375. fi
  2376. fi
  2377. if test -z "$ac_cv_prog_STRIP"; then
  2378. ac_ct_STRIP=$STRIP
  2379. # Extract the first word of "strip", so it can be a program name with args.
  2380. set dummy strip; ac_word=$2
  2381. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2382. $as_echo_n "checking for $ac_word... " >&6; }
  2383. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2384. $as_echo_n "(cached) " >&6
  2385. else
  2386. if test -n "$ac_ct_STRIP"; then
  2387. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2388. else
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_exec_ext in '' $ac_executable_extensions; do
  2395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2396. ac_cv_prog_ac_ct_STRIP="strip"
  2397. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2398. break 2
  2399. fi
  2400. done
  2401. done
  2402. IFS=$as_save_IFS
  2403. fi
  2404. fi
  2405. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2406. if test -n "$ac_ct_STRIP"; then
  2407. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2408. $as_echo "$ac_ct_STRIP" >&6; }
  2409. else
  2410. { $as_echo "$as_me:$LINENO: result: no" >&5
  2411. $as_echo "no" >&6; }
  2412. fi
  2413. if test "x$ac_ct_STRIP" = x; then
  2414. STRIP=":"
  2415. else
  2416. case $cross_compiling:$ac_tool_warned in
  2417. yes:)
  2418. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2419. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2420. ac_tool_warned=yes ;;
  2421. esac
  2422. STRIP=$ac_ct_STRIP
  2423. fi
  2424. else
  2425. STRIP="$ac_cv_prog_STRIP"
  2426. fi
  2427. fi
  2428. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2429. # We need awk for the "check" target. The system "awk" is bad on
  2430. # some platforms.
  2431. # Always define AMTAR for backward compatibility.
  2432. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2433. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2434. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2435. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2436. # Check whether --enable-maintainer-mode was given.
  2437. if test "${enable_maintainer_mode+set}" = set; then
  2438. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2439. else
  2440. USE_MAINTAINER_MODE=no
  2441. fi
  2442. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2443. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2444. if test $USE_MAINTAINER_MODE = yes; then
  2445. MAINTAINER_MODE_TRUE=
  2446. MAINTAINER_MODE_FALSE='#'
  2447. else
  2448. MAINTAINER_MODE_TRUE='#'
  2449. MAINTAINER_MODE_FALSE=
  2450. fi
  2451. MAINT=$MAINTAINER_MODE_TRUE
  2452. # Make sure we can run config.sub.
  2453. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2454. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2455. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2456. { (exit 1); exit 1; }; }
  2457. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2458. $as_echo_n "checking build system type... " >&6; }
  2459. if test "${ac_cv_build+set}" = set; then
  2460. $as_echo_n "(cached) " >&6
  2461. else
  2462. ac_build_alias=$build_alias
  2463. test "x$ac_build_alias" = x &&
  2464. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2465. test "x$ac_build_alias" = x &&
  2466. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2467. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2468. { (exit 1); exit 1; }; }
  2469. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2470. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2471. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2472. { (exit 1); exit 1; }; }
  2473. fi
  2474. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2475. $as_echo "$ac_cv_build" >&6; }
  2476. case $ac_cv_build in
  2477. *-*-*) ;;
  2478. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2479. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2480. { (exit 1); exit 1; }; };;
  2481. esac
  2482. build=$ac_cv_build
  2483. ac_save_IFS=$IFS; IFS='-'
  2484. set x $ac_cv_build
  2485. shift
  2486. build_cpu=$1
  2487. build_vendor=$2
  2488. shift; shift
  2489. # Remember, the first character of IFS is used to create $*,
  2490. # except with old shells:
  2491. build_os=$*
  2492. IFS=$ac_save_IFS
  2493. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2494. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2495. $as_echo_n "checking host system type... " >&6; }
  2496. if test "${ac_cv_host+set}" = set; then
  2497. $as_echo_n "(cached) " >&6
  2498. else
  2499. if test "x$host_alias" = x; then
  2500. ac_cv_host=$ac_cv_build
  2501. else
  2502. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2503. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2504. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2505. { (exit 1); exit 1; }; }
  2506. fi
  2507. fi
  2508. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2509. $as_echo "$ac_cv_host" >&6; }
  2510. case $ac_cv_host in
  2511. *-*-*) ;;
  2512. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2513. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2514. { (exit 1); exit 1; }; };;
  2515. esac
  2516. host=$ac_cv_host
  2517. ac_save_IFS=$IFS; IFS='-'
  2518. set x $ac_cv_host
  2519. shift
  2520. host_cpu=$1
  2521. host_vendor=$2
  2522. shift; shift
  2523. # Remember, the first character of IFS is used to create $*,
  2524. # except with old shells:
  2525. host_os=$*
  2526. IFS=$ac_save_IFS
  2527. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2528. # Checks for programs.
  2529. ac_ext=cpp
  2530. ac_cpp='$CXXCPP $CPPFLAGS'
  2531. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2532. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2533. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2534. if test -z "$CXX"; then
  2535. if test -n "$CCC"; then
  2536. CXX=$CCC
  2537. else
  2538. if test -n "$ac_tool_prefix"; then
  2539. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2540. do
  2541. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2542. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2543. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2544. $as_echo_n "checking for $ac_word... " >&6; }
  2545. if test "${ac_cv_prog_CXX+set}" = set; then
  2546. $as_echo_n "(cached) " >&6
  2547. else
  2548. if test -n "$CXX"; then
  2549. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2550. else
  2551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2552. for as_dir in $PATH
  2553. do
  2554. IFS=$as_save_IFS
  2555. test -z "$as_dir" && as_dir=.
  2556. for ac_exec_ext in '' $ac_executable_extensions; do
  2557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2558. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2559. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2560. break 2
  2561. fi
  2562. done
  2563. done
  2564. IFS=$as_save_IFS
  2565. fi
  2566. fi
  2567. CXX=$ac_cv_prog_CXX
  2568. if test -n "$CXX"; then
  2569. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2570. $as_echo "$CXX" >&6; }
  2571. else
  2572. { $as_echo "$as_me:$LINENO: result: no" >&5
  2573. $as_echo "no" >&6; }
  2574. fi
  2575. test -n "$CXX" && break
  2576. done
  2577. fi
  2578. if test -z "$CXX"; then
  2579. ac_ct_CXX=$CXX
  2580. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2581. do
  2582. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2583. set dummy $ac_prog; ac_word=$2
  2584. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2585. $as_echo_n "checking for $ac_word... " >&6; }
  2586. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2587. $as_echo_n "(cached) " >&6
  2588. else
  2589. if test -n "$ac_ct_CXX"; then
  2590. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2591. else
  2592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2593. for as_dir in $PATH
  2594. do
  2595. IFS=$as_save_IFS
  2596. test -z "$as_dir" && as_dir=.
  2597. for ac_exec_ext in '' $ac_executable_extensions; do
  2598. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2599. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2600. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2601. break 2
  2602. fi
  2603. done
  2604. done
  2605. IFS=$as_save_IFS
  2606. fi
  2607. fi
  2608. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2609. if test -n "$ac_ct_CXX"; then
  2610. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2611. $as_echo "$ac_ct_CXX" >&6; }
  2612. else
  2613. { $as_echo "$as_me:$LINENO: result: no" >&5
  2614. $as_echo "no" >&6; }
  2615. fi
  2616. test -n "$ac_ct_CXX" && break
  2617. done
  2618. if test "x$ac_ct_CXX" = x; then
  2619. CXX="g++"
  2620. else
  2621. case $cross_compiling:$ac_tool_warned in
  2622. yes:)
  2623. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2625. ac_tool_warned=yes ;;
  2626. esac
  2627. CXX=$ac_ct_CXX
  2628. fi
  2629. fi
  2630. fi
  2631. fi
  2632. # Provide some information about the compiler.
  2633. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2634. set X $ac_compile
  2635. ac_compiler=$2
  2636. { (ac_try="$ac_compiler --version >&5"
  2637. case "(($ac_try" in
  2638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2639. *) ac_try_echo=$ac_try;;
  2640. esac
  2641. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2642. $as_echo "$ac_try_echo") >&5
  2643. (eval "$ac_compiler --version >&5") 2>&5
  2644. ac_status=$?
  2645. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2646. (exit $ac_status); }
  2647. { (ac_try="$ac_compiler -v >&5"
  2648. case "(($ac_try" in
  2649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2650. *) ac_try_echo=$ac_try;;
  2651. esac
  2652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2653. $as_echo "$ac_try_echo") >&5
  2654. (eval "$ac_compiler -v >&5") 2>&5
  2655. ac_status=$?
  2656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2657. (exit $ac_status); }
  2658. { (ac_try="$ac_compiler -V >&5"
  2659. case "(($ac_try" in
  2660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2661. *) ac_try_echo=$ac_try;;
  2662. esac
  2663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2664. $as_echo "$ac_try_echo") >&5
  2665. (eval "$ac_compiler -V >&5") 2>&5
  2666. ac_status=$?
  2667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668. (exit $ac_status); }
  2669. cat >conftest.$ac_ext <<_ACEOF
  2670. /* confdefs.h. */
  2671. _ACEOF
  2672. cat confdefs.h >>conftest.$ac_ext
  2673. cat >>conftest.$ac_ext <<_ACEOF
  2674. /* end confdefs.h. */
  2675. int
  2676. main ()
  2677. {
  2678. ;
  2679. return 0;
  2680. }
  2681. _ACEOF
  2682. ac_clean_files_save=$ac_clean_files
  2683. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2684. # Try to create an executable without -o first, disregard a.out.
  2685. # It will help us diagnose broken compilers, and finding out an intuition
  2686. # of exeext.
  2687. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2688. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2689. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2690. # The possible output files:
  2691. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2692. ac_rmfiles=
  2693. for ac_file in $ac_files
  2694. do
  2695. case $ac_file in
  2696. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2697. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2698. esac
  2699. done
  2700. rm -f $ac_rmfiles
  2701. if { (ac_try="$ac_link_default"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2707. $as_echo "$ac_try_echo") >&5
  2708. (eval "$ac_link_default") 2>&5
  2709. ac_status=$?
  2710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2711. (exit $ac_status); }; then
  2712. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2713. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2714. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2715. # so that the user can short-circuit this test for compilers unknown to
  2716. # Autoconf.
  2717. for ac_file in $ac_files ''
  2718. do
  2719. test -f "$ac_file" || continue
  2720. case $ac_file in
  2721. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2722. ;;
  2723. [ab].out )
  2724. # We found the default executable, but exeext='' is most
  2725. # certainly right.
  2726. break;;
  2727. *.* )
  2728. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2729. then :; else
  2730. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2731. fi
  2732. # We set ac_cv_exeext here because the later test for it is not
  2733. # safe: cross compilers may not add the suffix if given an `-o'
  2734. # argument, so we may need to know it at that point already.
  2735. # Even if this section looks crufty: it has the advantage of
  2736. # actually working.
  2737. break;;
  2738. * )
  2739. break;;
  2740. esac
  2741. done
  2742. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2743. else
  2744. ac_file=''
  2745. fi
  2746. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2747. $as_echo "$ac_file" >&6; }
  2748. if test -z "$ac_file"; then
  2749. $as_echo "$as_me: failed program was:" >&5
  2750. sed 's/^/| /' conftest.$ac_ext >&5
  2751. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2752. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2753. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2754. See \`config.log' for more details." >&5
  2755. $as_echo "$as_me: error: C++ compiler cannot create executables
  2756. See \`config.log' for more details." >&2;}
  2757. { (exit 77); exit 77; }; }; }
  2758. fi
  2759. ac_exeext=$ac_cv_exeext
  2760. # Check that the compiler produces executables we can run. If not, either
  2761. # the compiler is broken, or we cross compile.
  2762. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2763. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2764. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2765. # If not cross compiling, check that we can run a simple program.
  2766. if test "$cross_compiling" != yes; then
  2767. if { ac_try='./$ac_file'
  2768. { (case "(($ac_try" in
  2769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2770. *) ac_try_echo=$ac_try;;
  2771. esac
  2772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2773. $as_echo "$ac_try_echo") >&5
  2774. (eval "$ac_try") 2>&5
  2775. ac_status=$?
  2776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2777. (exit $ac_status); }; }; then
  2778. cross_compiling=no
  2779. else
  2780. if test "$cross_compiling" = maybe; then
  2781. cross_compiling=yes
  2782. else
  2783. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2784. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2785. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2786. If you meant to cross compile, use \`--host'.
  2787. See \`config.log' for more details." >&5
  2788. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2789. If you meant to cross compile, use \`--host'.
  2790. See \`config.log' for more details." >&2;}
  2791. { (exit 1); exit 1; }; }; }
  2792. fi
  2793. fi
  2794. fi
  2795. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2796. $as_echo "yes" >&6; }
  2797. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2798. ac_clean_files=$ac_clean_files_save
  2799. # Check that the compiler produces executables we can run. If not, either
  2800. # the compiler is broken, or we cross compile.
  2801. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2802. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2803. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2804. $as_echo "$cross_compiling" >&6; }
  2805. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2806. $as_echo_n "checking for suffix of executables... " >&6; }
  2807. if { (ac_try="$ac_link"
  2808. case "(($ac_try" in
  2809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2810. *) ac_try_echo=$ac_try;;
  2811. esac
  2812. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2813. $as_echo "$ac_try_echo") >&5
  2814. (eval "$ac_link") 2>&5
  2815. ac_status=$?
  2816. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2817. (exit $ac_status); }; then
  2818. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2819. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2820. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2821. # `rm'.
  2822. for ac_file in conftest.exe conftest conftest.*; do
  2823. test -f "$ac_file" || continue
  2824. case $ac_file in
  2825. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2826. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2827. break;;
  2828. * ) break;;
  2829. esac
  2830. done
  2831. else
  2832. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2833. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2834. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2835. See \`config.log' for more details." >&5
  2836. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2837. See \`config.log' for more details." >&2;}
  2838. { (exit 1); exit 1; }; }; }
  2839. fi
  2840. rm -f conftest$ac_cv_exeext
  2841. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2842. $as_echo "$ac_cv_exeext" >&6; }
  2843. rm -f conftest.$ac_ext
  2844. EXEEXT=$ac_cv_exeext
  2845. ac_exeext=$EXEEXT
  2846. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2847. $as_echo_n "checking for suffix of object files... " >&6; }
  2848. if test "${ac_cv_objext+set}" = set; then
  2849. $as_echo_n "(cached) " >&6
  2850. else
  2851. cat >conftest.$ac_ext <<_ACEOF
  2852. /* confdefs.h. */
  2853. _ACEOF
  2854. cat confdefs.h >>conftest.$ac_ext
  2855. cat >>conftest.$ac_ext <<_ACEOF
  2856. /* end confdefs.h. */
  2857. int
  2858. main ()
  2859. {
  2860. ;
  2861. return 0;
  2862. }
  2863. _ACEOF
  2864. rm -f conftest.o conftest.obj
  2865. if { (ac_try="$ac_compile"
  2866. case "(($ac_try" in
  2867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. *) ac_try_echo=$ac_try;;
  2869. esac
  2870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2871. $as_echo "$ac_try_echo") >&5
  2872. (eval "$ac_compile") 2>&5
  2873. ac_status=$?
  2874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); }; then
  2876. for ac_file in conftest.o conftest.obj conftest.*; do
  2877. test -f "$ac_file" || continue;
  2878. case $ac_file in
  2879. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2880. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2881. break;;
  2882. esac
  2883. done
  2884. else
  2885. $as_echo "$as_me: failed program was:" >&5
  2886. sed 's/^/| /' conftest.$ac_ext >&5
  2887. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2888. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2889. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2890. See \`config.log' for more details." >&5
  2891. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2892. See \`config.log' for more details." >&2;}
  2893. { (exit 1); exit 1; }; }; }
  2894. fi
  2895. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2896. fi
  2897. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2898. $as_echo "$ac_cv_objext" >&6; }
  2899. OBJEXT=$ac_cv_objext
  2900. ac_objext=$OBJEXT
  2901. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2902. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2903. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. cat >conftest.$ac_ext <<_ACEOF
  2907. /* confdefs.h. */
  2908. _ACEOF
  2909. cat confdefs.h >>conftest.$ac_ext
  2910. cat >>conftest.$ac_ext <<_ACEOF
  2911. /* end confdefs.h. */
  2912. int
  2913. main ()
  2914. {
  2915. #ifndef __GNUC__
  2916. choke me
  2917. #endif
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. rm -f conftest.$ac_objext
  2923. if { (ac_try="$ac_compile"
  2924. case "(($ac_try" in
  2925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926. *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2929. $as_echo "$ac_try_echo") >&5
  2930. (eval "$ac_compile") 2>conftest.er1
  2931. ac_status=$?
  2932. grep -v '^ *+' conftest.er1 >conftest.err
  2933. rm -f conftest.er1
  2934. cat conftest.err >&5
  2935. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2936. (exit $ac_status); } && {
  2937. test -z "$ac_cxx_werror_flag" ||
  2938. test ! -s conftest.err
  2939. } && test -s conftest.$ac_objext; then
  2940. ac_compiler_gnu=yes
  2941. else
  2942. $as_echo "$as_me: failed program was:" >&5
  2943. sed 's/^/| /' conftest.$ac_ext >&5
  2944. ac_compiler_gnu=no
  2945. fi
  2946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2947. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2948. fi
  2949. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2950. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2951. if test $ac_compiler_gnu = yes; then
  2952. GXX=yes
  2953. else
  2954. GXX=
  2955. fi
  2956. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2957. ac_save_CXXFLAGS=$CXXFLAGS
  2958. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2959. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2960. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2961. $as_echo_n "(cached) " >&6
  2962. else
  2963. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2964. ac_cxx_werror_flag=yes
  2965. ac_cv_prog_cxx_g=no
  2966. CXXFLAGS="-g"
  2967. cat >conftest.$ac_ext <<_ACEOF
  2968. /* confdefs.h. */
  2969. _ACEOF
  2970. cat confdefs.h >>conftest.$ac_ext
  2971. cat >>conftest.$ac_ext <<_ACEOF
  2972. /* end confdefs.h. */
  2973. int
  2974. main ()
  2975. {
  2976. ;
  2977. return 0;
  2978. }
  2979. _ACEOF
  2980. rm -f conftest.$ac_objext
  2981. if { (ac_try="$ac_compile"
  2982. case "(($ac_try" in
  2983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2984. *) ac_try_echo=$ac_try;;
  2985. esac
  2986. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2987. $as_echo "$ac_try_echo") >&5
  2988. (eval "$ac_compile") 2>conftest.er1
  2989. ac_status=$?
  2990. grep -v '^ *+' conftest.er1 >conftest.err
  2991. rm -f conftest.er1
  2992. cat conftest.err >&5
  2993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2994. (exit $ac_status); } && {
  2995. test -z "$ac_cxx_werror_flag" ||
  2996. test ! -s conftest.err
  2997. } && test -s conftest.$ac_objext; then
  2998. ac_cv_prog_cxx_g=yes
  2999. else
  3000. $as_echo "$as_me: failed program was:" >&5
  3001. sed 's/^/| /' conftest.$ac_ext >&5
  3002. CXXFLAGS=""
  3003. cat >conftest.$ac_ext <<_ACEOF
  3004. /* confdefs.h. */
  3005. _ACEOF
  3006. cat confdefs.h >>conftest.$ac_ext
  3007. cat >>conftest.$ac_ext <<_ACEOF
  3008. /* end confdefs.h. */
  3009. int
  3010. main ()
  3011. {
  3012. ;
  3013. return 0;
  3014. }
  3015. _ACEOF
  3016. rm -f conftest.$ac_objext
  3017. if { (ac_try="$ac_compile"
  3018. case "(($ac_try" in
  3019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3020. *) ac_try_echo=$ac_try;;
  3021. esac
  3022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3023. $as_echo "$ac_try_echo") >&5
  3024. (eval "$ac_compile") 2>conftest.er1
  3025. ac_status=$?
  3026. grep -v '^ *+' conftest.er1 >conftest.err
  3027. rm -f conftest.er1
  3028. cat conftest.err >&5
  3029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3030. (exit $ac_status); } && {
  3031. test -z "$ac_cxx_werror_flag" ||
  3032. test ! -s conftest.err
  3033. } && test -s conftest.$ac_objext; then
  3034. :
  3035. else
  3036. $as_echo "$as_me: failed program was:" >&5
  3037. sed 's/^/| /' conftest.$ac_ext >&5
  3038. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3039. CXXFLAGS="-g"
  3040. cat >conftest.$ac_ext <<_ACEOF
  3041. /* confdefs.h. */
  3042. _ACEOF
  3043. cat confdefs.h >>conftest.$ac_ext
  3044. cat >>conftest.$ac_ext <<_ACEOF
  3045. /* end confdefs.h. */
  3046. int
  3047. main ()
  3048. {
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. rm -f conftest.$ac_objext
  3054. if { (ac_try="$ac_compile"
  3055. case "(($ac_try" in
  3056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3057. *) ac_try_echo=$ac_try;;
  3058. esac
  3059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3060. $as_echo "$ac_try_echo") >&5
  3061. (eval "$ac_compile") 2>conftest.er1
  3062. ac_status=$?
  3063. grep -v '^ *+' conftest.er1 >conftest.err
  3064. rm -f conftest.er1
  3065. cat conftest.err >&5
  3066. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3067. (exit $ac_status); } && {
  3068. test -z "$ac_cxx_werror_flag" ||
  3069. test ! -s conftest.err
  3070. } && test -s conftest.$ac_objext; then
  3071. ac_cv_prog_cxx_g=yes
  3072. else
  3073. $as_echo "$as_me: failed program was:" >&5
  3074. sed 's/^/| /' conftest.$ac_ext >&5
  3075. fi
  3076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3077. fi
  3078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3079. fi
  3080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3081. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3082. fi
  3083. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3084. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3085. if test "$ac_test_CXXFLAGS" = set; then
  3086. CXXFLAGS=$ac_save_CXXFLAGS
  3087. elif test $ac_cv_prog_cxx_g = yes; then
  3088. if test "$GXX" = yes; then
  3089. CXXFLAGS="-g -O2"
  3090. else
  3091. CXXFLAGS="-g"
  3092. fi
  3093. else
  3094. if test "$GXX" = yes; then
  3095. CXXFLAGS="-O2"
  3096. else
  3097. CXXFLAGS=
  3098. fi
  3099. fi
  3100. ac_ext=c
  3101. ac_cpp='$CPP $CPPFLAGS'
  3102. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3103. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3104. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3105. DEPDIR="${am__leading_dot}deps"
  3106. ac_config_commands="$ac_config_commands depfiles"
  3107. am_make=${MAKE-make}
  3108. cat > confinc << 'END'
  3109. am__doit:
  3110. @echo done
  3111. .PHONY: am__doit
  3112. END
  3113. # If we don't find an include directive, just comment out the code.
  3114. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3115. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3116. am__include="#"
  3117. am__quote=
  3118. _am_result=none
  3119. # First try GNU make style include.
  3120. echo "include confinc" > confmf
  3121. # We grep out `Entering directory' and `Leaving directory'
  3122. # messages which can occur if `w' ends up in MAKEFLAGS.
  3123. # In particular we don't look at `^make:' because GNU make might
  3124. # be invoked under some other name (usually "gmake"), in which
  3125. # case it prints its new name instead of `make'.
  3126. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3127. am__include=include
  3128. am__quote=
  3129. _am_result=GNU
  3130. fi
  3131. # Now try BSD make style include.
  3132. if test "$am__include" = "#"; then
  3133. echo '.include "confinc"' > confmf
  3134. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3135. am__include=.include
  3136. am__quote="\""
  3137. _am_result=BSD
  3138. fi
  3139. fi
  3140. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3141. $as_echo "$_am_result" >&6; }
  3142. rm -f confinc confmf
  3143. # Check whether --enable-dependency-tracking was given.
  3144. if test "${enable_dependency_tracking+set}" = set; then
  3145. enableval=$enable_dependency_tracking;
  3146. fi
  3147. if test "x$enable_dependency_tracking" != xno; then
  3148. am_depcomp="$ac_aux_dir/depcomp"
  3149. AMDEPBACKSLASH='\'
  3150. fi
  3151. if test "x$enable_dependency_tracking" != xno; then
  3152. AMDEP_TRUE=
  3153. AMDEP_FALSE='#'
  3154. else
  3155. AMDEP_TRUE='#'
  3156. AMDEP_FALSE=
  3157. fi
  3158. depcc="$CXX" am_compiler_list=
  3159. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3160. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3161. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3165. # We make a subdir and do the tests there. Otherwise we can end up
  3166. # making bogus files that we don't know about and never remove. For
  3167. # instance it was reported that on HP-UX the gcc test will end up
  3168. # making a dummy file named `D' -- because `-MD' means `put the output
  3169. # in D'.
  3170. mkdir conftest.dir
  3171. # Copy depcomp to subdir because otherwise we won't find it if we're
  3172. # using a relative directory.
  3173. cp "$am_depcomp" conftest.dir
  3174. cd conftest.dir
  3175. # We will build objects and dependencies in a subdirectory because
  3176. # it helps to detect inapplicable dependency modes. For instance
  3177. # both Tru64's cc and ICC support -MD to output dependencies as a
  3178. # side effect of compilation, but ICC will put the dependencies in
  3179. # the current directory while Tru64 will put them in the object
  3180. # directory.
  3181. mkdir sub
  3182. am_cv_CXX_dependencies_compiler_type=none
  3183. if test "$am_compiler_list" = ""; then
  3184. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3185. fi
  3186. for depmode in $am_compiler_list; do
  3187. # Setup a source with many dependencies, because some compilers
  3188. # like to wrap large dependency lists on column 80 (with \), and
  3189. # we should not choose a depcomp mode which is confused by this.
  3190. #
  3191. # We need to recreate these files for each test, as the compiler may
  3192. # overwrite some of them when testing with obscure command lines.
  3193. # This happens at least with the AIX C compiler.
  3194. : > sub/conftest.c
  3195. for i in 1 2 3 4 5 6; do
  3196. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3197. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3198. # Solaris 8's {/usr,}/bin/sh.
  3199. touch sub/conftst$i.h
  3200. done
  3201. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3202. case $depmode in
  3203. nosideeffect)
  3204. # after this tag, mechanisms are not by side-effect, so they'll
  3205. # only be used when explicitly requested
  3206. if test "x$enable_dependency_tracking" = xyes; then
  3207. continue
  3208. else
  3209. break
  3210. fi
  3211. ;;
  3212. none) break ;;
  3213. esac
  3214. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3215. # mode. It turns out that the SunPro C++ compiler does not properly
  3216. # handle `-M -o', and we need to detect this.
  3217. if depmode=$depmode \
  3218. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3219. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3220. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3221. >/dev/null 2>conftest.err &&
  3222. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3223. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3224. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3225. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3226. # icc doesn't choke on unknown options, it will just issue warnings
  3227. # or remarks (even with -Werror). So we grep stderr for any message
  3228. # that says an option was ignored or not supported.
  3229. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3230. # icc: Command line warning: ignoring option '-M'; no argument required
  3231. # The diagnosis changed in icc 8.0:
  3232. # icc: Command line remark: option '-MP' not supported
  3233. if (grep 'ignoring option' conftest.err ||
  3234. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3235. am_cv_CXX_dependencies_compiler_type=$depmode
  3236. break
  3237. fi
  3238. fi
  3239. done
  3240. cd ..
  3241. rm -rf conftest.dir
  3242. else
  3243. am_cv_CXX_dependencies_compiler_type=none
  3244. fi
  3245. fi
  3246. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3247. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3248. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3249. if
  3250. test "x$enable_dependency_tracking" != xno \
  3251. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3252. am__fastdepCXX_TRUE=
  3253. am__fastdepCXX_FALSE='#'
  3254. else
  3255. am__fastdepCXX_TRUE='#'
  3256. am__fastdepCXX_FALSE=
  3257. fi
  3258. ac_ext=c
  3259. ac_cpp='$CPP $CPPFLAGS'
  3260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3263. if test -n "$ac_tool_prefix"; then
  3264. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3265. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3266. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3267. $as_echo_n "checking for $ac_word... " >&6; }
  3268. if test "${ac_cv_prog_CC+set}" = set; then
  3269. $as_echo_n "(cached) " >&6
  3270. else
  3271. if test -n "$CC"; then
  3272. ac_cv_prog_CC="$CC" # Let the user override the test.
  3273. else
  3274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3275. for as_dir in $PATH
  3276. do
  3277. IFS=$as_save_IFS
  3278. test -z "$as_dir" && as_dir=.
  3279. for ac_exec_ext in '' $ac_executable_extensions; do
  3280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3281. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3282. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3283. break 2
  3284. fi
  3285. done
  3286. done
  3287. IFS=$as_save_IFS
  3288. fi
  3289. fi
  3290. CC=$ac_cv_prog_CC
  3291. if test -n "$CC"; then
  3292. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3293. $as_echo "$CC" >&6; }
  3294. else
  3295. { $as_echo "$as_me:$LINENO: result: no" >&5
  3296. $as_echo "no" >&6; }
  3297. fi
  3298. fi
  3299. if test -z "$ac_cv_prog_CC"; then
  3300. ac_ct_CC=$CC
  3301. # Extract the first word of "gcc", so it can be a program name with args.
  3302. set dummy gcc; ac_word=$2
  3303. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3304. $as_echo_n "checking for $ac_word... " >&6; }
  3305. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3306. $as_echo_n "(cached) " >&6
  3307. else
  3308. if test -n "$ac_ct_CC"; then
  3309. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3310. else
  3311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3312. for as_dir in $PATH
  3313. do
  3314. IFS=$as_save_IFS
  3315. test -z "$as_dir" && as_dir=.
  3316. for ac_exec_ext in '' $ac_executable_extensions; do
  3317. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3318. ac_cv_prog_ac_ct_CC="gcc"
  3319. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3320. break 2
  3321. fi
  3322. done
  3323. done
  3324. IFS=$as_save_IFS
  3325. fi
  3326. fi
  3327. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3328. if test -n "$ac_ct_CC"; then
  3329. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3330. $as_echo "$ac_ct_CC" >&6; }
  3331. else
  3332. { $as_echo "$as_me:$LINENO: result: no" >&5
  3333. $as_echo "no" >&6; }
  3334. fi
  3335. if test "x$ac_ct_CC" = x; then
  3336. CC=""
  3337. else
  3338. case $cross_compiling:$ac_tool_warned in
  3339. yes:)
  3340. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3342. ac_tool_warned=yes ;;
  3343. esac
  3344. CC=$ac_ct_CC
  3345. fi
  3346. else
  3347. CC="$ac_cv_prog_CC"
  3348. fi
  3349. if test -z "$CC"; then
  3350. if test -n "$ac_tool_prefix"; then
  3351. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3352. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3353. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3354. $as_echo_n "checking for $ac_word... " >&6; }
  3355. if test "${ac_cv_prog_CC+set}" = set; then
  3356. $as_echo_n "(cached) " >&6
  3357. else
  3358. if test -n "$CC"; then
  3359. ac_cv_prog_CC="$CC" # Let the user override the test.
  3360. else
  3361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3362. for as_dir in $PATH
  3363. do
  3364. IFS=$as_save_IFS
  3365. test -z "$as_dir" && as_dir=.
  3366. for ac_exec_ext in '' $ac_executable_extensions; do
  3367. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3368. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3369. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3370. break 2
  3371. fi
  3372. done
  3373. done
  3374. IFS=$as_save_IFS
  3375. fi
  3376. fi
  3377. CC=$ac_cv_prog_CC
  3378. if test -n "$CC"; then
  3379. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3380. $as_echo "$CC" >&6; }
  3381. else
  3382. { $as_echo "$as_me:$LINENO: result: no" >&5
  3383. $as_echo "no" >&6; }
  3384. fi
  3385. fi
  3386. fi
  3387. if test -z "$CC"; then
  3388. # Extract the first word of "cc", so it can be a program name with args.
  3389. set dummy cc; ac_word=$2
  3390. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3391. $as_echo_n "checking for $ac_word... " >&6; }
  3392. if test "${ac_cv_prog_CC+set}" = set; then
  3393. $as_echo_n "(cached) " >&6
  3394. else
  3395. if test -n "$CC"; then
  3396. ac_cv_prog_CC="$CC" # Let the user override the test.
  3397. else
  3398. ac_prog_rejected=no
  3399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3400. for as_dir in $PATH
  3401. do
  3402. IFS=$as_save_IFS
  3403. test -z "$as_dir" && as_dir=.
  3404. for ac_exec_ext in '' $ac_executable_extensions; do
  3405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3406. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3407. ac_prog_rejected=yes
  3408. continue
  3409. fi
  3410. ac_cv_prog_CC="cc"
  3411. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3412. break 2
  3413. fi
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. if test $ac_prog_rejected = yes; then
  3418. # We found a bogon in the path, so make sure we never use it.
  3419. set dummy $ac_cv_prog_CC
  3420. shift
  3421. if test $# != 0; then
  3422. # We chose a different compiler from the bogus one.
  3423. # However, it has the same basename, so the bogon will be chosen
  3424. # first if we set CC to just the basename; use the full file name.
  3425. shift
  3426. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3427. fi
  3428. fi
  3429. fi
  3430. fi
  3431. CC=$ac_cv_prog_CC
  3432. if test -n "$CC"; then
  3433. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3434. $as_echo "$CC" >&6; }
  3435. else
  3436. { $as_echo "$as_me:$LINENO: result: no" >&5
  3437. $as_echo "no" >&6; }
  3438. fi
  3439. fi
  3440. if test -z "$CC"; then
  3441. if test -n "$ac_tool_prefix"; then
  3442. for ac_prog in cl.exe
  3443. do
  3444. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3445. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3446. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3447. $as_echo_n "checking for $ac_word... " >&6; }
  3448. if test "${ac_cv_prog_CC+set}" = set; then
  3449. $as_echo_n "(cached) " >&6
  3450. else
  3451. if test -n "$CC"; then
  3452. ac_cv_prog_CC="$CC" # Let the user override the test.
  3453. else
  3454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3455. for as_dir in $PATH
  3456. do
  3457. IFS=$as_save_IFS
  3458. test -z "$as_dir" && as_dir=.
  3459. for ac_exec_ext in '' $ac_executable_extensions; do
  3460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3461. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3462. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3463. break 2
  3464. fi
  3465. done
  3466. done
  3467. IFS=$as_save_IFS
  3468. fi
  3469. fi
  3470. CC=$ac_cv_prog_CC
  3471. if test -n "$CC"; then
  3472. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3473. $as_echo "$CC" >&6; }
  3474. else
  3475. { $as_echo "$as_me:$LINENO: result: no" >&5
  3476. $as_echo "no" >&6; }
  3477. fi
  3478. test -n "$CC" && break
  3479. done
  3480. fi
  3481. if test -z "$CC"; then
  3482. ac_ct_CC=$CC
  3483. for ac_prog in cl.exe
  3484. do
  3485. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3486. set dummy $ac_prog; ac_word=$2
  3487. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3488. $as_echo_n "checking for $ac_word... " >&6; }
  3489. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3490. $as_echo_n "(cached) " >&6
  3491. else
  3492. if test -n "$ac_ct_CC"; then
  3493. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3494. else
  3495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3496. for as_dir in $PATH
  3497. do
  3498. IFS=$as_save_IFS
  3499. test -z "$as_dir" && as_dir=.
  3500. for ac_exec_ext in '' $ac_executable_extensions; do
  3501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3502. ac_cv_prog_ac_ct_CC="$ac_prog"
  3503. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3504. break 2
  3505. fi
  3506. done
  3507. done
  3508. IFS=$as_save_IFS
  3509. fi
  3510. fi
  3511. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3512. if test -n "$ac_ct_CC"; then
  3513. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3514. $as_echo "$ac_ct_CC" >&6; }
  3515. else
  3516. { $as_echo "$as_me:$LINENO: result: no" >&5
  3517. $as_echo "no" >&6; }
  3518. fi
  3519. test -n "$ac_ct_CC" && break
  3520. done
  3521. if test "x$ac_ct_CC" = x; then
  3522. CC=""
  3523. else
  3524. case $cross_compiling:$ac_tool_warned in
  3525. yes:)
  3526. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3528. ac_tool_warned=yes ;;
  3529. esac
  3530. CC=$ac_ct_CC
  3531. fi
  3532. fi
  3533. fi
  3534. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3536. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3537. See \`config.log' for more details." >&5
  3538. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3539. See \`config.log' for more details." >&2;}
  3540. { (exit 1); exit 1; }; }; }
  3541. # Provide some information about the compiler.
  3542. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3543. set X $ac_compile
  3544. ac_compiler=$2
  3545. { (ac_try="$ac_compiler --version >&5"
  3546. case "(($ac_try" in
  3547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3548. *) ac_try_echo=$ac_try;;
  3549. esac
  3550. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3551. $as_echo "$ac_try_echo") >&5
  3552. (eval "$ac_compiler --version >&5") 2>&5
  3553. ac_status=$?
  3554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3555. (exit $ac_status); }
  3556. { (ac_try="$ac_compiler -v >&5"
  3557. case "(($ac_try" in
  3558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3559. *) ac_try_echo=$ac_try;;
  3560. esac
  3561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3562. $as_echo "$ac_try_echo") >&5
  3563. (eval "$ac_compiler -v >&5") 2>&5
  3564. ac_status=$?
  3565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); }
  3567. { (ac_try="$ac_compiler -V >&5"
  3568. case "(($ac_try" in
  3569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3570. *) ac_try_echo=$ac_try;;
  3571. esac
  3572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3573. $as_echo "$ac_try_echo") >&5
  3574. (eval "$ac_compiler -V >&5") 2>&5
  3575. ac_status=$?
  3576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3577. (exit $ac_status); }
  3578. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3579. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3580. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3581. $as_echo_n "(cached) " >&6
  3582. else
  3583. cat >conftest.$ac_ext <<_ACEOF
  3584. /* confdefs.h. */
  3585. _ACEOF
  3586. cat confdefs.h >>conftest.$ac_ext
  3587. cat >>conftest.$ac_ext <<_ACEOF
  3588. /* end confdefs.h. */
  3589. int
  3590. main ()
  3591. {
  3592. #ifndef __GNUC__
  3593. choke me
  3594. #endif
  3595. ;
  3596. return 0;
  3597. }
  3598. _ACEOF
  3599. rm -f conftest.$ac_objext
  3600. if { (ac_try="$ac_compile"
  3601. case "(($ac_try" in
  3602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3603. *) ac_try_echo=$ac_try;;
  3604. esac
  3605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3606. $as_echo "$ac_try_echo") >&5
  3607. (eval "$ac_compile") 2>conftest.er1
  3608. ac_status=$?
  3609. grep -v '^ *+' conftest.er1 >conftest.err
  3610. rm -f conftest.er1
  3611. cat conftest.err >&5
  3612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3613. (exit $ac_status); } && {
  3614. test -z "$ac_c_werror_flag" ||
  3615. test ! -s conftest.err
  3616. } && test -s conftest.$ac_objext; then
  3617. ac_compiler_gnu=yes
  3618. else
  3619. $as_echo "$as_me: failed program was:" >&5
  3620. sed 's/^/| /' conftest.$ac_ext >&5
  3621. ac_compiler_gnu=no
  3622. fi
  3623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3625. fi
  3626. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3627. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3628. if test $ac_compiler_gnu = yes; then
  3629. GCC=yes
  3630. else
  3631. GCC=
  3632. fi
  3633. ac_test_CFLAGS=${CFLAGS+set}
  3634. ac_save_CFLAGS=$CFLAGS
  3635. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3636. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3637. if test "${ac_cv_prog_cc_g+set}" = set; then
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. ac_save_c_werror_flag=$ac_c_werror_flag
  3641. ac_c_werror_flag=yes
  3642. ac_cv_prog_cc_g=no
  3643. CFLAGS="-g"
  3644. cat >conftest.$ac_ext <<_ACEOF
  3645. /* confdefs.h. */
  3646. _ACEOF
  3647. cat confdefs.h >>conftest.$ac_ext
  3648. cat >>conftest.$ac_ext <<_ACEOF
  3649. /* end confdefs.h. */
  3650. int
  3651. main ()
  3652. {
  3653. ;
  3654. return 0;
  3655. }
  3656. _ACEOF
  3657. rm -f conftest.$ac_objext
  3658. if { (ac_try="$ac_compile"
  3659. case "(($ac_try" in
  3660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3661. *) ac_try_echo=$ac_try;;
  3662. esac
  3663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3664. $as_echo "$ac_try_echo") >&5
  3665. (eval "$ac_compile") 2>conftest.er1
  3666. ac_status=$?
  3667. grep -v '^ *+' conftest.er1 >conftest.err
  3668. rm -f conftest.er1
  3669. cat conftest.err >&5
  3670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); } && {
  3672. test -z "$ac_c_werror_flag" ||
  3673. test ! -s conftest.err
  3674. } && test -s conftest.$ac_objext; then
  3675. ac_cv_prog_cc_g=yes
  3676. else
  3677. $as_echo "$as_me: failed program was:" >&5
  3678. sed 's/^/| /' conftest.$ac_ext >&5
  3679. CFLAGS=""
  3680. cat >conftest.$ac_ext <<_ACEOF
  3681. /* confdefs.h. */
  3682. _ACEOF
  3683. cat confdefs.h >>conftest.$ac_ext
  3684. cat >>conftest.$ac_ext <<_ACEOF
  3685. /* end confdefs.h. */
  3686. int
  3687. main ()
  3688. {
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. rm -f conftest.$ac_objext
  3694. if { (ac_try="$ac_compile"
  3695. case "(($ac_try" in
  3696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3697. *) ac_try_echo=$ac_try;;
  3698. esac
  3699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3700. $as_echo "$ac_try_echo") >&5
  3701. (eval "$ac_compile") 2>conftest.er1
  3702. ac_status=$?
  3703. grep -v '^ *+' conftest.er1 >conftest.err
  3704. rm -f conftest.er1
  3705. cat conftest.err >&5
  3706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3707. (exit $ac_status); } && {
  3708. test -z "$ac_c_werror_flag" ||
  3709. test ! -s conftest.err
  3710. } && test -s conftest.$ac_objext; then
  3711. :
  3712. else
  3713. $as_echo "$as_me: failed program was:" >&5
  3714. sed 's/^/| /' conftest.$ac_ext >&5
  3715. ac_c_werror_flag=$ac_save_c_werror_flag
  3716. CFLAGS="-g"
  3717. cat >conftest.$ac_ext <<_ACEOF
  3718. /* confdefs.h. */
  3719. _ACEOF
  3720. cat confdefs.h >>conftest.$ac_ext
  3721. cat >>conftest.$ac_ext <<_ACEOF
  3722. /* end confdefs.h. */
  3723. int
  3724. main ()
  3725. {
  3726. ;
  3727. return 0;
  3728. }
  3729. _ACEOF
  3730. rm -f conftest.$ac_objext
  3731. if { (ac_try="$ac_compile"
  3732. case "(($ac_try" in
  3733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3734. *) ac_try_echo=$ac_try;;
  3735. esac
  3736. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3737. $as_echo "$ac_try_echo") >&5
  3738. (eval "$ac_compile") 2>conftest.er1
  3739. ac_status=$?
  3740. grep -v '^ *+' conftest.er1 >conftest.err
  3741. rm -f conftest.er1
  3742. cat conftest.err >&5
  3743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); } && {
  3745. test -z "$ac_c_werror_flag" ||
  3746. test ! -s conftest.err
  3747. } && test -s conftest.$ac_objext; then
  3748. ac_cv_prog_cc_g=yes
  3749. else
  3750. $as_echo "$as_me: failed program was:" >&5
  3751. sed 's/^/| /' conftest.$ac_ext >&5
  3752. fi
  3753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3754. fi
  3755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3756. fi
  3757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3758. ac_c_werror_flag=$ac_save_c_werror_flag
  3759. fi
  3760. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3761. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3762. if test "$ac_test_CFLAGS" = set; then
  3763. CFLAGS=$ac_save_CFLAGS
  3764. elif test $ac_cv_prog_cc_g = yes; then
  3765. if test "$GCC" = yes; then
  3766. CFLAGS="-g -O2"
  3767. else
  3768. CFLAGS="-g"
  3769. fi
  3770. else
  3771. if test "$GCC" = yes; then
  3772. CFLAGS="-O2"
  3773. else
  3774. CFLAGS=
  3775. fi
  3776. fi
  3777. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3778. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3779. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. ac_cv_prog_cc_c89=no
  3783. ac_save_CC=$CC
  3784. cat >conftest.$ac_ext <<_ACEOF
  3785. /* confdefs.h. */
  3786. _ACEOF
  3787. cat confdefs.h >>conftest.$ac_ext
  3788. cat >>conftest.$ac_ext <<_ACEOF
  3789. /* end confdefs.h. */
  3790. #include <stdarg.h>
  3791. #include <stdio.h>
  3792. #include <sys/types.h>
  3793. #include <sys/stat.h>
  3794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3795. struct buf { int x; };
  3796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3797. static char *e (p, i)
  3798. char **p;
  3799. int i;
  3800. {
  3801. return p[i];
  3802. }
  3803. static char *f (char * (*g) (char **, int), char **p, ...)
  3804. {
  3805. char *s;
  3806. va_list v;
  3807. va_start (v,p);
  3808. s = g (p, va_arg (v,int));
  3809. va_end (v);
  3810. return s;
  3811. }
  3812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3813. function prototypes and stuff, but not '\xHH' hex character constants.
  3814. These don't provoke an error unfortunately, instead are silently treated
  3815. as 'x'. The following induces an error, until -std is added to get
  3816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3817. array size at least. It's necessary to write '\x00'==0 to get something
  3818. that's true only with -std. */
  3819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3820. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3821. inside strings and character constants. */
  3822. #define FOO(x) 'x'
  3823. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3824. int test (int i, double x);
  3825. struct s1 {int (*f) (int a);};
  3826. struct s2 {int (*f) (double a);};
  3827. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3828. int argc;
  3829. char **argv;
  3830. int
  3831. main ()
  3832. {
  3833. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3834. ;
  3835. return 0;
  3836. }
  3837. _ACEOF
  3838. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3839. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3840. do
  3841. CC="$ac_save_CC $ac_arg"
  3842. rm -f conftest.$ac_objext
  3843. if { (ac_try="$ac_compile"
  3844. case "(($ac_try" in
  3845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3846. *) ac_try_echo=$ac_try;;
  3847. esac
  3848. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3849. $as_echo "$ac_try_echo") >&5
  3850. (eval "$ac_compile") 2>conftest.er1
  3851. ac_status=$?
  3852. grep -v '^ *+' conftest.er1 >conftest.err
  3853. rm -f conftest.er1
  3854. cat conftest.err >&5
  3855. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3856. (exit $ac_status); } && {
  3857. test -z "$ac_c_werror_flag" ||
  3858. test ! -s conftest.err
  3859. } && test -s conftest.$ac_objext; then
  3860. ac_cv_prog_cc_c89=$ac_arg
  3861. else
  3862. $as_echo "$as_me: failed program was:" >&5
  3863. sed 's/^/| /' conftest.$ac_ext >&5
  3864. fi
  3865. rm -f core conftest.err conftest.$ac_objext
  3866. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3867. done
  3868. rm -f conftest.$ac_ext
  3869. CC=$ac_save_CC
  3870. fi
  3871. # AC_CACHE_VAL
  3872. case "x$ac_cv_prog_cc_c89" in
  3873. x)
  3874. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3875. $as_echo "none needed" >&6; } ;;
  3876. xno)
  3877. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3878. $as_echo "unsupported" >&6; } ;;
  3879. *)
  3880. CC="$CC $ac_cv_prog_cc_c89"
  3881. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3882. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3883. esac
  3884. ac_ext=c
  3885. ac_cpp='$CPP $CPPFLAGS'
  3886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3889. depcc="$CC" am_compiler_list=
  3890. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3891. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3892. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3896. # We make a subdir and do the tests there. Otherwise we can end up
  3897. # making bogus files that we don't know about and never remove. For
  3898. # instance it was reported that on HP-UX the gcc test will end up
  3899. # making a dummy file named `D' -- because `-MD' means `put the output
  3900. # in D'.
  3901. mkdir conftest.dir
  3902. # Copy depcomp to subdir because otherwise we won't find it if we're
  3903. # using a relative directory.
  3904. cp "$am_depcomp" conftest.dir
  3905. cd conftest.dir
  3906. # We will build objects and dependencies in a subdirectory because
  3907. # it helps to detect inapplicable dependency modes. For instance
  3908. # both Tru64's cc and ICC support -MD to output dependencies as a
  3909. # side effect of compilation, but ICC will put the dependencies in
  3910. # the current directory while Tru64 will put them in the object
  3911. # directory.
  3912. mkdir sub
  3913. am_cv_CC_dependencies_compiler_type=none
  3914. if test "$am_compiler_list" = ""; then
  3915. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3916. fi
  3917. for depmode in $am_compiler_list; do
  3918. # Setup a source with many dependencies, because some compilers
  3919. # like to wrap large dependency lists on column 80 (with \), and
  3920. # we should not choose a depcomp mode which is confused by this.
  3921. #
  3922. # We need to recreate these files for each test, as the compiler may
  3923. # overwrite some of them when testing with obscure command lines.
  3924. # This happens at least with the AIX C compiler.
  3925. : > sub/conftest.c
  3926. for i in 1 2 3 4 5 6; do
  3927. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3928. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3929. # Solaris 8's {/usr,}/bin/sh.
  3930. touch sub/conftst$i.h
  3931. done
  3932. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3933. case $depmode in
  3934. nosideeffect)
  3935. # after this tag, mechanisms are not by side-effect, so they'll
  3936. # only be used when explicitly requested
  3937. if test "x$enable_dependency_tracking" = xyes; then
  3938. continue
  3939. else
  3940. break
  3941. fi
  3942. ;;
  3943. none) break ;;
  3944. esac
  3945. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3946. # mode. It turns out that the SunPro C++ compiler does not properly
  3947. # handle `-M -o', and we need to detect this.
  3948. if depmode=$depmode \
  3949. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3950. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3951. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3952. >/dev/null 2>conftest.err &&
  3953. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3954. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3955. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3956. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3957. # icc doesn't choke on unknown options, it will just issue warnings
  3958. # or remarks (even with -Werror). So we grep stderr for any message
  3959. # that says an option was ignored or not supported.
  3960. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3961. # icc: Command line warning: ignoring option '-M'; no argument required
  3962. # The diagnosis changed in icc 8.0:
  3963. # icc: Command line remark: option '-MP' not supported
  3964. if (grep 'ignoring option' conftest.err ||
  3965. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3966. am_cv_CC_dependencies_compiler_type=$depmode
  3967. break
  3968. fi
  3969. fi
  3970. done
  3971. cd ..
  3972. rm -rf conftest.dir
  3973. else
  3974. am_cv_CC_dependencies_compiler_type=none
  3975. fi
  3976. fi
  3977. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3978. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3979. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3980. if
  3981. test "x$enable_dependency_tracking" != xno \
  3982. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3983. am__fastdepCC_TRUE=
  3984. am__fastdepCC_FALSE='#'
  3985. else
  3986. am__fastdepCC_TRUE='#'
  3987. am__fastdepCC_FALSE=
  3988. fi
  3989. if test "x$CC" != xcc; then
  3990. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3991. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3992. else
  3993. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3994. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3995. fi
  3996. set dummy $CC; ac_cc=`$as_echo "$2" |
  3997. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3998. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. cat >conftest.$ac_ext <<_ACEOF
  4002. /* confdefs.h. */
  4003. _ACEOF
  4004. cat confdefs.h >>conftest.$ac_ext
  4005. cat >>conftest.$ac_ext <<_ACEOF
  4006. /* end confdefs.h. */
  4007. int
  4008. main ()
  4009. {
  4010. ;
  4011. return 0;
  4012. }
  4013. _ACEOF
  4014. # Make sure it works both with $CC and with simple cc.
  4015. # We do the test twice because some compilers refuse to overwrite an
  4016. # existing .o file with -o, though they will create one.
  4017. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4018. rm -f conftest2.*
  4019. if { (case "(($ac_try" in
  4020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4021. *) ac_try_echo=$ac_try;;
  4022. esac
  4023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4024. $as_echo "$ac_try_echo") >&5
  4025. (eval "$ac_try") 2>&5
  4026. ac_status=$?
  4027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4028. (exit $ac_status); } &&
  4029. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4031. *) ac_try_echo=$ac_try;;
  4032. esac
  4033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4034. $as_echo "$ac_try_echo") >&5
  4035. (eval "$ac_try") 2>&5
  4036. ac_status=$?
  4037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. (exit $ac_status); };
  4039. then
  4040. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4041. if test "x$CC" != xcc; then
  4042. # Test first that cc exists at all.
  4043. if { ac_try='cc -c conftest.$ac_ext >&5'
  4044. { (case "(($ac_try" in
  4045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4046. *) ac_try_echo=$ac_try;;
  4047. esac
  4048. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4049. $as_echo "$ac_try_echo") >&5
  4050. (eval "$ac_try") 2>&5
  4051. ac_status=$?
  4052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4053. (exit $ac_status); }; }; then
  4054. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4055. rm -f conftest2.*
  4056. if { (case "(($ac_try" in
  4057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4058. *) ac_try_echo=$ac_try;;
  4059. esac
  4060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4061. $as_echo "$ac_try_echo") >&5
  4062. (eval "$ac_try") 2>&5
  4063. ac_status=$?
  4064. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4065. (exit $ac_status); } &&
  4066. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4068. *) ac_try_echo=$ac_try;;
  4069. esac
  4070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4071. $as_echo "$ac_try_echo") >&5
  4072. (eval "$ac_try") 2>&5
  4073. ac_status=$?
  4074. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4075. (exit $ac_status); };
  4076. then
  4077. # cc works too.
  4078. :
  4079. else
  4080. # cc exists but doesn't like -o.
  4081. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4082. fi
  4083. fi
  4084. fi
  4085. else
  4086. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4087. fi
  4088. rm -f core conftest*
  4089. fi
  4090. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4091. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4092. $as_echo "yes" >&6; }
  4093. else
  4094. { $as_echo "$as_me:$LINENO: result: no" >&5
  4095. $as_echo "no" >&6; }
  4096. cat >>confdefs.h <<\_ACEOF
  4097. #define NO_MINUS_C_MINUS_O 1
  4098. _ACEOF
  4099. fi
  4100. # FIXME: we rely on the cache variable name because
  4101. # there is no other way.
  4102. set dummy $CC
  4103. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4104. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  4105. # Losing compiler, so override with the script.
  4106. # FIXME: It is wrong to rewrite CC.
  4107. # But if we don't then we get into trouble of one sort or another.
  4108. # A longer-term fix would be to have automake use am__CC in this case,
  4109. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4110. CC="$am_aux_dir/compile $CC"
  4111. fi
  4112. # By default we simply use the C compiler to build assembly code.
  4113. test "${CCAS+set}" = set || CCAS=$CC
  4114. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4115. depcc="$CCAS" am_compiler_list=
  4116. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4117. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4118. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4122. # We make a subdir and do the tests there. Otherwise we can end up
  4123. # making bogus files that we don't know about and never remove. For
  4124. # instance it was reported that on HP-UX the gcc test will end up
  4125. # making a dummy file named `D' -- because `-MD' means `put the output
  4126. # in D'.
  4127. mkdir conftest.dir
  4128. # Copy depcomp to subdir because otherwise we won't find it if we're
  4129. # using a relative directory.
  4130. cp "$am_depcomp" conftest.dir
  4131. cd conftest.dir
  4132. # We will build objects and dependencies in a subdirectory because
  4133. # it helps to detect inapplicable dependency modes. For instance
  4134. # both Tru64's cc and ICC support -MD to output dependencies as a
  4135. # side effect of compilation, but ICC will put the dependencies in
  4136. # the current directory while Tru64 will put them in the object
  4137. # directory.
  4138. mkdir sub
  4139. am_cv_CCAS_dependencies_compiler_type=none
  4140. if test "$am_compiler_list" = ""; then
  4141. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4142. fi
  4143. for depmode in $am_compiler_list; do
  4144. # Setup a source with many dependencies, because some compilers
  4145. # like to wrap large dependency lists on column 80 (with \), and
  4146. # we should not choose a depcomp mode which is confused by this.
  4147. #
  4148. # We need to recreate these files for each test, as the compiler may
  4149. # overwrite some of them when testing with obscure command lines.
  4150. # This happens at least with the AIX C compiler.
  4151. : > sub/conftest.c
  4152. for i in 1 2 3 4 5 6; do
  4153. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4154. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4155. # Solaris 8's {/usr,}/bin/sh.
  4156. touch sub/conftst$i.h
  4157. done
  4158. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4159. case $depmode in
  4160. nosideeffect)
  4161. # after this tag, mechanisms are not by side-effect, so they'll
  4162. # only be used when explicitly requested
  4163. if test "x$enable_dependency_tracking" = xyes; then
  4164. continue
  4165. else
  4166. break
  4167. fi
  4168. ;;
  4169. none) break ;;
  4170. esac
  4171. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4172. # mode. It turns out that the SunPro C++ compiler does not properly
  4173. # handle `-M -o', and we need to detect this.
  4174. if depmode=$depmode \
  4175. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4176. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4177. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4178. >/dev/null 2>conftest.err &&
  4179. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4180. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4181. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4182. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4183. # icc doesn't choke on unknown options, it will just issue warnings
  4184. # or remarks (even with -Werror). So we grep stderr for any message
  4185. # that says an option was ignored or not supported.
  4186. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4187. # icc: Command line warning: ignoring option '-M'; no argument required
  4188. # The diagnosis changed in icc 8.0:
  4189. # icc: Command line remark: option '-MP' not supported
  4190. if (grep 'ignoring option' conftest.err ||
  4191. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4192. am_cv_CCAS_dependencies_compiler_type=$depmode
  4193. break
  4194. fi
  4195. fi
  4196. done
  4197. cd ..
  4198. rm -rf conftest.dir
  4199. else
  4200. am_cv_CCAS_dependencies_compiler_type=none
  4201. fi
  4202. fi
  4203. { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4204. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4205. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4206. if
  4207. test "x$enable_dependency_tracking" != xno \
  4208. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4209. am__fastdepCCAS_TRUE=
  4210. am__fastdepCCAS_FALSE='#'
  4211. else
  4212. am__fastdepCCAS_TRUE='#'
  4213. am__fastdepCCAS_FALSE=
  4214. fi
  4215. # disable static libs by default - we only use a couple
  4216. # Check whether --enable-static was given.
  4217. if test "${enable_static+set}" = set; then
  4218. enableval=$enable_static; p=${PACKAGE-default}
  4219. case $enableval in
  4220. yes) enable_static=yes ;;
  4221. no) enable_static=no ;;
  4222. *)
  4223. enable_static=no
  4224. # Look at the argument we got. We use all the common list separators.
  4225. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4226. for pkg in $enableval; do
  4227. IFS="$lt_save_ifs"
  4228. if test "X$pkg" = "X$p"; then
  4229. enable_static=yes
  4230. fi
  4231. done
  4232. IFS="$lt_save_ifs"
  4233. ;;
  4234. esac
  4235. else
  4236. enable_static=no
  4237. fi
  4238. # Check whether --enable-shared was given.
  4239. if test "${enable_shared+set}" = set; then
  4240. enableval=$enable_shared; p=${PACKAGE-default}
  4241. case $enableval in
  4242. yes) enable_shared=yes ;;
  4243. no) enable_shared=no ;;
  4244. *)
  4245. enable_shared=no
  4246. # Look at the argument we got. We use all the common list separators.
  4247. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4248. for pkg in $enableval; do
  4249. IFS="$lt_save_ifs"
  4250. if test "X$pkg" = "X$p"; then
  4251. enable_shared=yes
  4252. fi
  4253. done
  4254. IFS="$lt_save_ifs"
  4255. ;;
  4256. esac
  4257. else
  4258. enable_shared=yes
  4259. fi
  4260. # Check whether --enable-fast-install was given.
  4261. if test "${enable_fast_install+set}" = set; then
  4262. enableval=$enable_fast_install; p=${PACKAGE-default}
  4263. case $enableval in
  4264. yes) enable_fast_install=yes ;;
  4265. no) enable_fast_install=no ;;
  4266. *)
  4267. enable_fast_install=no
  4268. # Look at the argument we got. We use all the common list separators.
  4269. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4270. for pkg in $enableval; do
  4271. IFS="$lt_save_ifs"
  4272. if test "X$pkg" = "X$p"; then
  4273. enable_fast_install=yes
  4274. fi
  4275. done
  4276. IFS="$lt_save_ifs"
  4277. ;;
  4278. esac
  4279. else
  4280. enable_fast_install=yes
  4281. fi
  4282. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4283. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4284. if test "${lt_cv_path_SED+set}" = set; then
  4285. $as_echo_n "(cached) " >&6
  4286. else
  4287. # Loop through the user's path and test for sed and gsed.
  4288. # Then use that list of sed's as ones to test for truncation.
  4289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4290. for as_dir in $PATH
  4291. do
  4292. IFS=$as_save_IFS
  4293. test -z "$as_dir" && as_dir=.
  4294. for lt_ac_prog in sed gsed; do
  4295. for ac_exec_ext in '' $ac_executable_extensions; do
  4296. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  4297. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  4298. fi
  4299. done
  4300. done
  4301. done
  4302. IFS=$as_save_IFS
  4303. lt_ac_max=0
  4304. lt_ac_count=0
  4305. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4306. # along with /bin/sed that truncates output.
  4307. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  4308. test ! -f $lt_ac_sed && continue
  4309. cat /dev/null > conftest.in
  4310. lt_ac_count=0
  4311. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  4312. # Check for GNU sed and select it if it is found.
  4313. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  4314. lt_cv_path_SED=$lt_ac_sed
  4315. break
  4316. fi
  4317. while true; do
  4318. cat conftest.in conftest.in >conftest.tmp
  4319. mv conftest.tmp conftest.in
  4320. cp conftest.in conftest.nl
  4321. echo >>conftest.nl
  4322. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  4323. cmp -s conftest.out conftest.nl || break
  4324. # 10000 chars as input seems more than enough
  4325. test $lt_ac_count -gt 10 && break
  4326. lt_ac_count=`expr $lt_ac_count + 1`
  4327. if test $lt_ac_count -gt $lt_ac_max; then
  4328. lt_ac_max=$lt_ac_count
  4329. lt_cv_path_SED=$lt_ac_sed
  4330. fi
  4331. done
  4332. done
  4333. fi
  4334. SED=$lt_cv_path_SED
  4335. { $as_echo "$as_me:$LINENO: result: $SED" >&5
  4336. $as_echo "$SED" >&6; }
  4337. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4338. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4339. if test "${ac_cv_path_GREP+set}" = set; then
  4340. $as_echo_n "(cached) " >&6
  4341. else
  4342. if test -z "$GREP"; then
  4343. ac_path_GREP_found=false
  4344. # Loop through the user's path and test for each of PROGNAME-LIST
  4345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4346. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4347. do
  4348. IFS=$as_save_IFS
  4349. test -z "$as_dir" && as_dir=.
  4350. for ac_prog in grep ggrep; do
  4351. for ac_exec_ext in '' $ac_executable_extensions; do
  4352. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4353. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4354. # Check for GNU ac_path_GREP and select it if it is found.
  4355. # Check for GNU $ac_path_GREP
  4356. case `"$ac_path_GREP" --version 2>&1` in
  4357. *GNU*)
  4358. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4359. *)
  4360. ac_count=0
  4361. $as_echo_n 0123456789 >"conftest.in"
  4362. while :
  4363. do
  4364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4365. mv "conftest.tmp" "conftest.in"
  4366. cp "conftest.in" "conftest.nl"
  4367. $as_echo 'GREP' >> "conftest.nl"
  4368. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4370. ac_count=`expr $ac_count + 1`
  4371. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4372. # Best one so far, save it but keep looking for a better one
  4373. ac_cv_path_GREP="$ac_path_GREP"
  4374. ac_path_GREP_max=$ac_count
  4375. fi
  4376. # 10*(2^10) chars as input seems more than enough
  4377. test $ac_count -gt 10 && break
  4378. done
  4379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4380. esac
  4381. $ac_path_GREP_found && break 3
  4382. done
  4383. done
  4384. done
  4385. IFS=$as_save_IFS
  4386. if test -z "$ac_cv_path_GREP"; then
  4387. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4388. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4389. { (exit 1); exit 1; }; }
  4390. fi
  4391. else
  4392. ac_cv_path_GREP=$GREP
  4393. fi
  4394. fi
  4395. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4396. $as_echo "$ac_cv_path_GREP" >&6; }
  4397. GREP="$ac_cv_path_GREP"
  4398. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4399. $as_echo_n "checking for egrep... " >&6; }
  4400. if test "${ac_cv_path_EGREP+set}" = set; then
  4401. $as_echo_n "(cached) " >&6
  4402. else
  4403. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4404. then ac_cv_path_EGREP="$GREP -E"
  4405. else
  4406. if test -z "$EGREP"; then
  4407. ac_path_EGREP_found=false
  4408. # Loop through the user's path and test for each of PROGNAME-LIST
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4411. do
  4412. IFS=$as_save_IFS
  4413. test -z "$as_dir" && as_dir=.
  4414. for ac_prog in egrep; do
  4415. for ac_exec_ext in '' $ac_executable_extensions; do
  4416. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4417. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4418. # Check for GNU ac_path_EGREP and select it if it is found.
  4419. # Check for GNU $ac_path_EGREP
  4420. case `"$ac_path_EGREP" --version 2>&1` in
  4421. *GNU*)
  4422. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4423. *)
  4424. ac_count=0
  4425. $as_echo_n 0123456789 >"conftest.in"
  4426. while :
  4427. do
  4428. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4429. mv "conftest.tmp" "conftest.in"
  4430. cp "conftest.in" "conftest.nl"
  4431. $as_echo 'EGREP' >> "conftest.nl"
  4432. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4433. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4434. ac_count=`expr $ac_count + 1`
  4435. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4436. # Best one so far, save it but keep looking for a better one
  4437. ac_cv_path_EGREP="$ac_path_EGREP"
  4438. ac_path_EGREP_max=$ac_count
  4439. fi
  4440. # 10*(2^10) chars as input seems more than enough
  4441. test $ac_count -gt 10 && break
  4442. done
  4443. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4444. esac
  4445. $ac_path_EGREP_found && break 3
  4446. done
  4447. done
  4448. done
  4449. IFS=$as_save_IFS
  4450. if test -z "$ac_cv_path_EGREP"; then
  4451. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4452. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4453. { (exit 1); exit 1; }; }
  4454. fi
  4455. else
  4456. ac_cv_path_EGREP=$EGREP
  4457. fi
  4458. fi
  4459. fi
  4460. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4461. $as_echo "$ac_cv_path_EGREP" >&6; }
  4462. EGREP="$ac_cv_path_EGREP"
  4463. # Check whether --with-gnu-ld was given.
  4464. if test "${with_gnu_ld+set}" = set; then
  4465. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4466. else
  4467. with_gnu_ld=no
  4468. fi
  4469. ac_prog=ld
  4470. if test "$GCC" = yes; then
  4471. # Check if gcc -print-prog-name=ld gives a path.
  4472. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4473. $as_echo_n "checking for ld used by $CC... " >&6; }
  4474. case $host in
  4475. *-*-mingw*)
  4476. # gcc leaves a trailing carriage return which upsets mingw
  4477. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4478. *)
  4479. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4480. esac
  4481. case $ac_prog in
  4482. # Accept absolute paths.
  4483. [\\/]* | ?:[\\/]*)
  4484. re_direlt='/[^/][^/]*/\.\./'
  4485. # Canonicalize the pathname of ld
  4486. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4487. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4488. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4489. done
  4490. test -z "$LD" && LD="$ac_prog"
  4491. ;;
  4492. "")
  4493. # If it fails, then pretend we aren't using GCC.
  4494. ac_prog=ld
  4495. ;;
  4496. *)
  4497. # If it is relative, then search for the first ld in PATH.
  4498. with_gnu_ld=unknown
  4499. ;;
  4500. esac
  4501. elif test "$with_gnu_ld" = yes; then
  4502. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4503. $as_echo_n "checking for GNU ld... " >&6; }
  4504. else
  4505. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4506. $as_echo_n "checking for non-GNU ld... " >&6; }
  4507. fi
  4508. if test "${lt_cv_path_LD+set}" = set; then
  4509. $as_echo_n "(cached) " >&6
  4510. else
  4511. if test -z "$LD"; then
  4512. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4513. for ac_dir in $PATH; do
  4514. IFS="$lt_save_ifs"
  4515. test -z "$ac_dir" && ac_dir=.
  4516. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4517. lt_cv_path_LD="$ac_dir/$ac_prog"
  4518. # Check to see if the program is GNU ld. I'd rather use --version,
  4519. # but apparently some variants of GNU ld only accept -v.
  4520. # Break only if it was the GNU/non-GNU ld that we prefer.
  4521. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4522. *GNU* | *'with BFD'*)
  4523. test "$with_gnu_ld" != no && break
  4524. ;;
  4525. *)
  4526. test "$with_gnu_ld" != yes && break
  4527. ;;
  4528. esac
  4529. fi
  4530. done
  4531. IFS="$lt_save_ifs"
  4532. else
  4533. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4534. fi
  4535. fi
  4536. LD="$lt_cv_path_LD"
  4537. if test -n "$LD"; then
  4538. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4539. $as_echo "$LD" >&6; }
  4540. else
  4541. { $as_echo "$as_me:$LINENO: result: no" >&5
  4542. $as_echo "no" >&6; }
  4543. fi
  4544. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4545. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4546. { (exit 1); exit 1; }; }
  4547. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4548. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4549. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4553. case `$LD -v 2>&1 </dev/null` in
  4554. *GNU* | *'with BFD'*)
  4555. lt_cv_prog_gnu_ld=yes
  4556. ;;
  4557. *)
  4558. lt_cv_prog_gnu_ld=no
  4559. ;;
  4560. esac
  4561. fi
  4562. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4563. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4564. with_gnu_ld=$lt_cv_prog_gnu_ld
  4565. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4566. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4567. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. lt_cv_ld_reload_flag='-r'
  4571. fi
  4572. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4573. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4574. reload_flag=$lt_cv_ld_reload_flag
  4575. case $reload_flag in
  4576. "" | " "*) ;;
  4577. *) reload_flag=" $reload_flag" ;;
  4578. esac
  4579. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4580. case $host_os in
  4581. darwin*)
  4582. if test "$GCC" = yes; then
  4583. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4584. else
  4585. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4586. fi
  4587. ;;
  4588. esac
  4589. { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4590. $as_echo_n "checking for BSD-compatible nm... " >&6; }
  4591. if test "${lt_cv_path_NM+set}" = set; then
  4592. $as_echo_n "(cached) " >&6
  4593. else
  4594. if test -n "$NM"; then
  4595. # Let the user override the test.
  4596. lt_cv_path_NM="$NM"
  4597. else
  4598. lt_nm_to_check="${ac_tool_prefix}nm"
  4599. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4600. lt_nm_to_check="$lt_nm_to_check nm"
  4601. fi
  4602. for lt_tmp_nm in $lt_nm_to_check; do
  4603. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4604. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4605. IFS="$lt_save_ifs"
  4606. test -z "$ac_dir" && ac_dir=.
  4607. tmp_nm="$ac_dir/$lt_tmp_nm"
  4608. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4609. # Check to see if the nm accepts a BSD-compat flag.
  4610. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4611. # nm: unknown option "B" ignored
  4612. # Tru64's nm complains that /dev/null is an invalid object file
  4613. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4614. */dev/null* | *'Invalid file or object type'*)
  4615. lt_cv_path_NM="$tmp_nm -B"
  4616. break
  4617. ;;
  4618. *)
  4619. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4620. */dev/null*)
  4621. lt_cv_path_NM="$tmp_nm -p"
  4622. break
  4623. ;;
  4624. *)
  4625. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4626. continue # so that we can try to find one that supports BSD flags
  4627. ;;
  4628. esac
  4629. ;;
  4630. esac
  4631. fi
  4632. done
  4633. IFS="$lt_save_ifs"
  4634. done
  4635. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4636. fi
  4637. fi
  4638. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4639. $as_echo "$lt_cv_path_NM" >&6; }
  4640. NM="$lt_cv_path_NM"
  4641. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4642. $as_echo_n "checking whether ln -s works... " >&6; }
  4643. LN_S=$as_ln_s
  4644. if test "$LN_S" = "ln -s"; then
  4645. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4646. $as_echo "yes" >&6; }
  4647. else
  4648. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4649. $as_echo "no, using $LN_S" >&6; }
  4650. fi
  4651. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4652. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4653. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4657. lt_cv_file_magic_test_file=
  4658. lt_cv_deplibs_check_method='unknown'
  4659. # Need to set the preceding variable on all platforms that support
  4660. # interlibrary dependencies.
  4661. # 'none' -- dependencies not supported.
  4662. # `unknown' -- same as none, but documents that we really don't know.
  4663. # 'pass_all' -- all dependencies passed with no checks.
  4664. # 'test_compile' -- check by making test program.
  4665. # 'file_magic [[regex]]' -- check by looking for files in library path
  4666. # which responds to the $file_magic_cmd with a given extended regex.
  4667. # If you have `file' or equivalent on your system and you're not sure
  4668. # whether `pass_all' will *always* work, you probably want this one.
  4669. case $host_os in
  4670. aix4* | aix5*)
  4671. lt_cv_deplibs_check_method=pass_all
  4672. ;;
  4673. beos*)
  4674. lt_cv_deplibs_check_method=pass_all
  4675. ;;
  4676. bsdi[45]*)
  4677. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4678. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4679. lt_cv_file_magic_test_file=/shlib/libc.so
  4680. ;;
  4681. cygwin*)
  4682. # func_win32_libid is a shell function defined in ltmain.sh
  4683. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4684. lt_cv_file_magic_cmd='func_win32_libid'
  4685. ;;
  4686. mingw* | pw32*)
  4687. # Base MSYS/MinGW do not provide the 'file' command needed by
  4688. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4689. # unless we find 'file', for example because we are cross-compiling.
  4690. if ( file / ) >/dev/null 2>&1; then
  4691. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4692. lt_cv_file_magic_cmd='func_win32_libid'
  4693. else
  4694. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4695. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4696. fi
  4697. ;;
  4698. darwin* | rhapsody*)
  4699. lt_cv_deplibs_check_method=pass_all
  4700. ;;
  4701. freebsd* | dragonfly*)
  4702. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4703. case $host_cpu in
  4704. i*86 )
  4705. # Not sure whether the presence of OpenBSD here was a mistake.
  4706. # Let's accept both of them until this is cleared up.
  4707. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4708. lt_cv_file_magic_cmd=/usr/bin/file
  4709. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4710. ;;
  4711. esac
  4712. else
  4713. lt_cv_deplibs_check_method=pass_all
  4714. fi
  4715. ;;
  4716. gnu*)
  4717. lt_cv_deplibs_check_method=pass_all
  4718. ;;
  4719. hpux10.20* | hpux11*)
  4720. lt_cv_file_magic_cmd=/usr/bin/file
  4721. case $host_cpu in
  4722. ia64*)
  4723. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4724. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4725. ;;
  4726. hppa*64*)
  4727. 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]'
  4728. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4729. ;;
  4730. *)
  4731. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4732. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4733. ;;
  4734. esac
  4735. ;;
  4736. interix[3-9]*)
  4737. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4738. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4739. ;;
  4740. irix5* | irix6* | nonstopux*)
  4741. case $LD in
  4742. *-32|*"-32 ") libmagic=32-bit;;
  4743. *-n32|*"-n32 ") libmagic=N32;;
  4744. *-64|*"-64 ") libmagic=64-bit;;
  4745. *) libmagic=never-match;;
  4746. esac
  4747. lt_cv_deplibs_check_method=pass_all
  4748. ;;
  4749. # This must be Linux ELF.
  4750. linux* | k*bsd*-gnu)
  4751. lt_cv_deplibs_check_method=pass_all
  4752. ;;
  4753. netbsd*)
  4754. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4755. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4756. else
  4757. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4758. fi
  4759. ;;
  4760. newos6*)
  4761. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4762. lt_cv_file_magic_cmd=/usr/bin/file
  4763. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4764. ;;
  4765. nto-qnx*)
  4766. lt_cv_deplibs_check_method=unknown
  4767. ;;
  4768. openbsd*)
  4769. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4770. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4771. else
  4772. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4773. fi
  4774. ;;
  4775. osf3* | osf4* | osf5*)
  4776. lt_cv_deplibs_check_method=pass_all
  4777. ;;
  4778. rdos*)
  4779. lt_cv_deplibs_check_method=pass_all
  4780. ;;
  4781. solaris*)
  4782. lt_cv_deplibs_check_method=pass_all
  4783. ;;
  4784. sysv4 | sysv4.3*)
  4785. case $host_vendor in
  4786. motorola)
  4787. 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]'
  4788. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4789. ;;
  4790. ncr)
  4791. lt_cv_deplibs_check_method=pass_all
  4792. ;;
  4793. sequent)
  4794. lt_cv_file_magic_cmd='/bin/file'
  4795. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4796. ;;
  4797. sni)
  4798. lt_cv_file_magic_cmd='/bin/file'
  4799. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4800. lt_cv_file_magic_test_file=/lib/libc.so
  4801. ;;
  4802. siemens)
  4803. lt_cv_deplibs_check_method=pass_all
  4804. ;;
  4805. pc)
  4806. lt_cv_deplibs_check_method=pass_all
  4807. ;;
  4808. esac
  4809. ;;
  4810. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4811. lt_cv_deplibs_check_method=pass_all
  4812. ;;
  4813. esac
  4814. fi
  4815. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4816. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4817. file_magic_cmd=$lt_cv_file_magic_cmd
  4818. deplibs_check_method=$lt_cv_deplibs_check_method
  4819. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4820. # If no C compiler was specified, use CC.
  4821. LTCC=${LTCC-"$CC"}
  4822. # If no C compiler flags were specified, use CFLAGS.
  4823. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4824. # Allow CC to be a program name with arguments.
  4825. compiler=$CC
  4826. # Check whether --enable-libtool-lock was given.
  4827. if test "${enable_libtool_lock+set}" = set; then
  4828. enableval=$enable_libtool_lock;
  4829. fi
  4830. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4831. # Some flags need to be propagated to the compiler or linker for good
  4832. # libtool support.
  4833. case $host in
  4834. ia64-*-hpux*)
  4835. # Find out which ABI we are using.
  4836. echo 'int i;' > conftest.$ac_ext
  4837. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4838. (eval $ac_compile) 2>&5
  4839. ac_status=$?
  4840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4841. (exit $ac_status); }; then
  4842. case `/usr/bin/file conftest.$ac_objext` in
  4843. *ELF-32*)
  4844. HPUX_IA64_MODE="32"
  4845. ;;
  4846. *ELF-64*)
  4847. HPUX_IA64_MODE="64"
  4848. ;;
  4849. esac
  4850. fi
  4851. rm -rf conftest*
  4852. ;;
  4853. *-*-irix6*)
  4854. # Find out which ABI we are using.
  4855. echo '#line 5385 "configure"' > conftest.$ac_ext
  4856. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4857. (eval $ac_compile) 2>&5
  4858. ac_status=$?
  4859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4860. (exit $ac_status); }; then
  4861. if test "$lt_cv_prog_gnu_ld" = yes; then
  4862. case `/usr/bin/file conftest.$ac_objext` in
  4863. *32-bit*)
  4864. LD="${LD-ld} -melf32bsmip"
  4865. ;;
  4866. *N32*)
  4867. LD="${LD-ld} -melf32bmipn32"
  4868. ;;
  4869. *64-bit*)
  4870. LD="${LD-ld} -melf64bmip"
  4871. ;;
  4872. esac
  4873. else
  4874. case `/usr/bin/file conftest.$ac_objext` in
  4875. *32-bit*)
  4876. LD="${LD-ld} -32"
  4877. ;;
  4878. *N32*)
  4879. LD="${LD-ld} -n32"
  4880. ;;
  4881. *64-bit*)
  4882. LD="${LD-ld} -64"
  4883. ;;
  4884. esac
  4885. fi
  4886. fi
  4887. rm -rf conftest*
  4888. ;;
  4889. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4890. s390*-*linux*|sparc*-*linux*)
  4891. # Find out which ABI we are using.
  4892. echo 'int i;' > conftest.$ac_ext
  4893. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4894. (eval $ac_compile) 2>&5
  4895. ac_status=$?
  4896. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4897. (exit $ac_status); }; then
  4898. case `/usr/bin/file conftest.o` in
  4899. *32-bit*)
  4900. case $host in
  4901. x86_64-*kfreebsd*-gnu)
  4902. LD="${LD-ld} -m elf_i386_fbsd"
  4903. ;;
  4904. x86_64-*linux*)
  4905. LD="${LD-ld} -m elf_i386"
  4906. ;;
  4907. ppc64-*linux*|powerpc64-*linux*)
  4908. LD="${LD-ld} -m elf32ppclinux"
  4909. ;;
  4910. s390x-*linux*)
  4911. LD="${LD-ld} -m elf_s390"
  4912. ;;
  4913. sparc64-*linux*)
  4914. LD="${LD-ld} -m elf32_sparc"
  4915. ;;
  4916. esac
  4917. ;;
  4918. *64-bit*)
  4919. libsuff=64
  4920. case $host in
  4921. x86_64-*kfreebsd*-gnu)
  4922. LD="${LD-ld} -m elf_x86_64_fbsd"
  4923. ;;
  4924. x86_64-*linux*)
  4925. LD="${LD-ld} -m elf_x86_64"
  4926. ;;
  4927. ppc*-*linux*|powerpc*-*linux*)
  4928. LD="${LD-ld} -m elf64ppc"
  4929. ;;
  4930. s390*-*linux*)
  4931. LD="${LD-ld} -m elf64_s390"
  4932. ;;
  4933. sparc*-*linux*)
  4934. LD="${LD-ld} -m elf64_sparc"
  4935. ;;
  4936. esac
  4937. ;;
  4938. esac
  4939. fi
  4940. rm -rf conftest*
  4941. ;;
  4942. *-*-sco3.2v5*)
  4943. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4944. SAVE_CFLAGS="$CFLAGS"
  4945. CFLAGS="$CFLAGS -belf"
  4946. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4947. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4948. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. ac_ext=c
  4952. ac_cpp='$CPP $CPPFLAGS'
  4953. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4954. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4955. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4956. cat >conftest.$ac_ext <<_ACEOF
  4957. /* confdefs.h. */
  4958. _ACEOF
  4959. cat confdefs.h >>conftest.$ac_ext
  4960. cat >>conftest.$ac_ext <<_ACEOF
  4961. /* end confdefs.h. */
  4962. int
  4963. main ()
  4964. {
  4965. ;
  4966. return 0;
  4967. }
  4968. _ACEOF
  4969. rm -f conftest.$ac_objext conftest$ac_exeext
  4970. if { (ac_try="$ac_link"
  4971. case "(($ac_try" in
  4972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4973. *) ac_try_echo=$ac_try;;
  4974. esac
  4975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4976. $as_echo "$ac_try_echo") >&5
  4977. (eval "$ac_link") 2>conftest.er1
  4978. ac_status=$?
  4979. grep -v '^ *+' conftest.er1 >conftest.err
  4980. rm -f conftest.er1
  4981. cat conftest.err >&5
  4982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4983. (exit $ac_status); } && {
  4984. test -z "$ac_c_werror_flag" ||
  4985. test ! -s conftest.err
  4986. } && test -s conftest$ac_exeext && {
  4987. test "$cross_compiling" = yes ||
  4988. $as_test_x conftest$ac_exeext
  4989. }; then
  4990. lt_cv_cc_needs_belf=yes
  4991. else
  4992. $as_echo "$as_me: failed program was:" >&5
  4993. sed 's/^/| /' conftest.$ac_ext >&5
  4994. lt_cv_cc_needs_belf=no
  4995. fi
  4996. rm -rf conftest.dSYM
  4997. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4998. conftest$ac_exeext conftest.$ac_ext
  4999. ac_ext=c
  5000. ac_cpp='$CPP $CPPFLAGS'
  5001. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5002. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5003. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5004. fi
  5005. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5006. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5007. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5008. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5009. CFLAGS="$SAVE_CFLAGS"
  5010. fi
  5011. ;;
  5012. sparc*-*solaris*)
  5013. # Find out which ABI we are using.
  5014. echo 'int i;' > conftest.$ac_ext
  5015. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5016. (eval $ac_compile) 2>&5
  5017. ac_status=$?
  5018. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); }; then
  5020. case `/usr/bin/file conftest.o` in
  5021. *64-bit*)
  5022. case $lt_cv_prog_gnu_ld in
  5023. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5024. *) LD="${LD-ld} -64" ;;
  5025. esac
  5026. ;;
  5027. esac
  5028. fi
  5029. rm -rf conftest*
  5030. ;;
  5031. esac
  5032. need_locks="$enable_libtool_lock"
  5033. ac_ext=c
  5034. ac_cpp='$CPP $CPPFLAGS'
  5035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5038. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5039. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5040. # On Suns, sometimes $CPP names a directory.
  5041. if test -n "$CPP" && test -d "$CPP"; then
  5042. CPP=
  5043. fi
  5044. if test -z "$CPP"; then
  5045. if test "${ac_cv_prog_CPP+set}" = set; then
  5046. $as_echo_n "(cached) " >&6
  5047. else
  5048. # Double quotes because CPP needs to be expanded
  5049. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5050. do
  5051. ac_preproc_ok=false
  5052. for ac_c_preproc_warn_flag in '' yes
  5053. do
  5054. # Use a header file that comes with gcc, so configuring glibc
  5055. # with a fresh cross-compiler works.
  5056. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5057. # <limits.h> exists even on freestanding compilers.
  5058. # On the NeXT, cc -E runs the code through the compiler's parser,
  5059. # not just through cpp. "Syntax error" is here to catch this case.
  5060. cat >conftest.$ac_ext <<_ACEOF
  5061. /* confdefs.h. */
  5062. _ACEOF
  5063. cat confdefs.h >>conftest.$ac_ext
  5064. cat >>conftest.$ac_ext <<_ACEOF
  5065. /* end confdefs.h. */
  5066. #ifdef __STDC__
  5067. # include <limits.h>
  5068. #else
  5069. # include <assert.h>
  5070. #endif
  5071. Syntax error
  5072. _ACEOF
  5073. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5074. case "(($ac_try" in
  5075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5076. *) ac_try_echo=$ac_try;;
  5077. esac
  5078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5079. $as_echo "$ac_try_echo") >&5
  5080. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5081. ac_status=$?
  5082. grep -v '^ *+' conftest.er1 >conftest.err
  5083. rm -f conftest.er1
  5084. cat conftest.err >&5
  5085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5086. (exit $ac_status); } >/dev/null && {
  5087. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5088. test ! -s conftest.err
  5089. }; then
  5090. :
  5091. else
  5092. $as_echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. # Broken: fails on valid input.
  5095. continue
  5096. fi
  5097. rm -f conftest.err conftest.$ac_ext
  5098. # OK, works on sane cases. Now check whether nonexistent headers
  5099. # can be detected and how.
  5100. cat >conftest.$ac_ext <<_ACEOF
  5101. /* confdefs.h. */
  5102. _ACEOF
  5103. cat confdefs.h >>conftest.$ac_ext
  5104. cat >>conftest.$ac_ext <<_ACEOF
  5105. /* end confdefs.h. */
  5106. #include <ac_nonexistent.h>
  5107. _ACEOF
  5108. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5109. case "(($ac_try" in
  5110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5111. *) ac_try_echo=$ac_try;;
  5112. esac
  5113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5114. $as_echo "$ac_try_echo") >&5
  5115. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5116. ac_status=$?
  5117. grep -v '^ *+' conftest.er1 >conftest.err
  5118. rm -f conftest.er1
  5119. cat conftest.err >&5
  5120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5121. (exit $ac_status); } >/dev/null && {
  5122. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5123. test ! -s conftest.err
  5124. }; then
  5125. # Broken: success on invalid input.
  5126. continue
  5127. else
  5128. $as_echo "$as_me: failed program was:" >&5
  5129. sed 's/^/| /' conftest.$ac_ext >&5
  5130. # Passes both tests.
  5131. ac_preproc_ok=:
  5132. break
  5133. fi
  5134. rm -f conftest.err conftest.$ac_ext
  5135. done
  5136. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5137. rm -f conftest.err conftest.$ac_ext
  5138. if $ac_preproc_ok; then
  5139. break
  5140. fi
  5141. done
  5142. ac_cv_prog_CPP=$CPP
  5143. fi
  5144. CPP=$ac_cv_prog_CPP
  5145. else
  5146. ac_cv_prog_CPP=$CPP
  5147. fi
  5148. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  5149. $as_echo "$CPP" >&6; }
  5150. ac_preproc_ok=false
  5151. for ac_c_preproc_warn_flag in '' yes
  5152. do
  5153. # Use a header file that comes with gcc, so configuring glibc
  5154. # with a fresh cross-compiler works.
  5155. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5156. # <limits.h> exists even on freestanding compilers.
  5157. # On the NeXT, cc -E runs the code through the compiler's parser,
  5158. # not just through cpp. "Syntax error" is here to catch this case.
  5159. cat >conftest.$ac_ext <<_ACEOF
  5160. /* confdefs.h. */
  5161. _ACEOF
  5162. cat confdefs.h >>conftest.$ac_ext
  5163. cat >>conftest.$ac_ext <<_ACEOF
  5164. /* end confdefs.h. */
  5165. #ifdef __STDC__
  5166. # include <limits.h>
  5167. #else
  5168. # include <assert.h>
  5169. #endif
  5170. Syntax error
  5171. _ACEOF
  5172. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5173. case "(($ac_try" in
  5174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5175. *) ac_try_echo=$ac_try;;
  5176. esac
  5177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5178. $as_echo "$ac_try_echo") >&5
  5179. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5180. ac_status=$?
  5181. grep -v '^ *+' conftest.er1 >conftest.err
  5182. rm -f conftest.er1
  5183. cat conftest.err >&5
  5184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5185. (exit $ac_status); } >/dev/null && {
  5186. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5187. test ! -s conftest.err
  5188. }; then
  5189. :
  5190. else
  5191. $as_echo "$as_me: failed program was:" >&5
  5192. sed 's/^/| /' conftest.$ac_ext >&5
  5193. # Broken: fails on valid input.
  5194. continue
  5195. fi
  5196. rm -f conftest.err conftest.$ac_ext
  5197. # OK, works on sane cases. Now check whether nonexistent headers
  5198. # can be detected and how.
  5199. cat >conftest.$ac_ext <<_ACEOF
  5200. /* confdefs.h. */
  5201. _ACEOF
  5202. cat confdefs.h >>conftest.$ac_ext
  5203. cat >>conftest.$ac_ext <<_ACEOF
  5204. /* end confdefs.h. */
  5205. #include <ac_nonexistent.h>
  5206. _ACEOF
  5207. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5208. case "(($ac_try" in
  5209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5210. *) ac_try_echo=$ac_try;;
  5211. esac
  5212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5213. $as_echo "$ac_try_echo") >&5
  5214. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5215. ac_status=$?
  5216. grep -v '^ *+' conftest.er1 >conftest.err
  5217. rm -f conftest.er1
  5218. cat conftest.err >&5
  5219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5220. (exit $ac_status); } >/dev/null && {
  5221. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5222. test ! -s conftest.err
  5223. }; then
  5224. # Broken: success on invalid input.
  5225. continue
  5226. else
  5227. $as_echo "$as_me: failed program was:" >&5
  5228. sed 's/^/| /' conftest.$ac_ext >&5
  5229. # Passes both tests.
  5230. ac_preproc_ok=:
  5231. break
  5232. fi
  5233. rm -f conftest.err conftest.$ac_ext
  5234. done
  5235. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5236. rm -f conftest.err conftest.$ac_ext
  5237. if $ac_preproc_ok; then
  5238. :
  5239. else
  5240. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5241. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5242. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5243. See \`config.log' for more details." >&5
  5244. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5245. See \`config.log' for more details." >&2;}
  5246. { (exit 1); exit 1; }; }; }
  5247. fi
  5248. ac_ext=c
  5249. ac_cpp='$CPP $CPPFLAGS'
  5250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5253. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5254. $as_echo_n "checking for ANSI C header files... " >&6; }
  5255. if test "${ac_cv_header_stdc+set}" = set; then
  5256. $as_echo_n "(cached) " >&6
  5257. else
  5258. cat >conftest.$ac_ext <<_ACEOF
  5259. /* confdefs.h. */
  5260. _ACEOF
  5261. cat confdefs.h >>conftest.$ac_ext
  5262. cat >>conftest.$ac_ext <<_ACEOF
  5263. /* end confdefs.h. */
  5264. #include <stdlib.h>
  5265. #include <stdarg.h>
  5266. #include <string.h>
  5267. #include <float.h>
  5268. int
  5269. main ()
  5270. {
  5271. ;
  5272. return 0;
  5273. }
  5274. _ACEOF
  5275. rm -f conftest.$ac_objext
  5276. if { (ac_try="$ac_compile"
  5277. case "(($ac_try" in
  5278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5279. *) ac_try_echo=$ac_try;;
  5280. esac
  5281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5282. $as_echo "$ac_try_echo") >&5
  5283. (eval "$ac_compile") 2>conftest.er1
  5284. ac_status=$?
  5285. grep -v '^ *+' conftest.er1 >conftest.err
  5286. rm -f conftest.er1
  5287. cat conftest.err >&5
  5288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5289. (exit $ac_status); } && {
  5290. test -z "$ac_c_werror_flag" ||
  5291. test ! -s conftest.err
  5292. } && test -s conftest.$ac_objext; then
  5293. ac_cv_header_stdc=yes
  5294. else
  5295. $as_echo "$as_me: failed program was:" >&5
  5296. sed 's/^/| /' conftest.$ac_ext >&5
  5297. ac_cv_header_stdc=no
  5298. fi
  5299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5300. if test $ac_cv_header_stdc = yes; then
  5301. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5302. cat >conftest.$ac_ext <<_ACEOF
  5303. /* confdefs.h. */
  5304. _ACEOF
  5305. cat confdefs.h >>conftest.$ac_ext
  5306. cat >>conftest.$ac_ext <<_ACEOF
  5307. /* end confdefs.h. */
  5308. #include <string.h>
  5309. _ACEOF
  5310. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5311. $EGREP "memchr" >/dev/null 2>&1; then
  5312. :
  5313. else
  5314. ac_cv_header_stdc=no
  5315. fi
  5316. rm -f conftest*
  5317. fi
  5318. if test $ac_cv_header_stdc = yes; then
  5319. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5320. cat >conftest.$ac_ext <<_ACEOF
  5321. /* confdefs.h. */
  5322. _ACEOF
  5323. cat confdefs.h >>conftest.$ac_ext
  5324. cat >>conftest.$ac_ext <<_ACEOF
  5325. /* end confdefs.h. */
  5326. #include <stdlib.h>
  5327. _ACEOF
  5328. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5329. $EGREP "free" >/dev/null 2>&1; then
  5330. :
  5331. else
  5332. ac_cv_header_stdc=no
  5333. fi
  5334. rm -f conftest*
  5335. fi
  5336. if test $ac_cv_header_stdc = yes; then
  5337. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5338. if test "$cross_compiling" = yes; then
  5339. :
  5340. else
  5341. cat >conftest.$ac_ext <<_ACEOF
  5342. /* confdefs.h. */
  5343. _ACEOF
  5344. cat confdefs.h >>conftest.$ac_ext
  5345. cat >>conftest.$ac_ext <<_ACEOF
  5346. /* end confdefs.h. */
  5347. #include <ctype.h>
  5348. #include <stdlib.h>
  5349. #if ((' ' & 0x0FF) == 0x020)
  5350. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5351. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5352. #else
  5353. # define ISLOWER(c) \
  5354. (('a' <= (c) && (c) <= 'i') \
  5355. || ('j' <= (c) && (c) <= 'r') \
  5356. || ('s' <= (c) && (c) <= 'z'))
  5357. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5358. #endif
  5359. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5360. int
  5361. main ()
  5362. {
  5363. int i;
  5364. for (i = 0; i < 256; i++)
  5365. if (XOR (islower (i), ISLOWER (i))
  5366. || toupper (i) != TOUPPER (i))
  5367. return 2;
  5368. return 0;
  5369. }
  5370. _ACEOF
  5371. rm -f conftest$ac_exeext
  5372. if { (ac_try="$ac_link"
  5373. case "(($ac_try" in
  5374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5375. *) ac_try_echo=$ac_try;;
  5376. esac
  5377. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5378. $as_echo "$ac_try_echo") >&5
  5379. (eval "$ac_link") 2>&5
  5380. ac_status=$?
  5381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5382. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5383. { (case "(($ac_try" in
  5384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5385. *) ac_try_echo=$ac_try;;
  5386. esac
  5387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5388. $as_echo "$ac_try_echo") >&5
  5389. (eval "$ac_try") 2>&5
  5390. ac_status=$?
  5391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5392. (exit $ac_status); }; }; then
  5393. :
  5394. else
  5395. $as_echo "$as_me: program exited with status $ac_status" >&5
  5396. $as_echo "$as_me: failed program was:" >&5
  5397. sed 's/^/| /' conftest.$ac_ext >&5
  5398. ( exit $ac_status )
  5399. ac_cv_header_stdc=no
  5400. fi
  5401. rm -rf conftest.dSYM
  5402. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5403. fi
  5404. fi
  5405. fi
  5406. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5407. $as_echo "$ac_cv_header_stdc" >&6; }
  5408. if test $ac_cv_header_stdc = yes; then
  5409. cat >>confdefs.h <<\_ACEOF
  5410. #define STDC_HEADERS 1
  5411. _ACEOF
  5412. fi
  5413. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5414. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5415. inttypes.h stdint.h unistd.h
  5416. do
  5417. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5418. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5419. $as_echo_n "checking for $ac_header... " >&6; }
  5420. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5421. $as_echo_n "(cached) " >&6
  5422. else
  5423. cat >conftest.$ac_ext <<_ACEOF
  5424. /* confdefs.h. */
  5425. _ACEOF
  5426. cat confdefs.h >>conftest.$ac_ext
  5427. cat >>conftest.$ac_ext <<_ACEOF
  5428. /* end confdefs.h. */
  5429. $ac_includes_default
  5430. #include <$ac_header>
  5431. _ACEOF
  5432. rm -f conftest.$ac_objext
  5433. if { (ac_try="$ac_compile"
  5434. case "(($ac_try" in
  5435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5436. *) ac_try_echo=$ac_try;;
  5437. esac
  5438. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5439. $as_echo "$ac_try_echo") >&5
  5440. (eval "$ac_compile") 2>conftest.er1
  5441. ac_status=$?
  5442. grep -v '^ *+' conftest.er1 >conftest.err
  5443. rm -f conftest.er1
  5444. cat conftest.err >&5
  5445. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5446. (exit $ac_status); } && {
  5447. test -z "$ac_c_werror_flag" ||
  5448. test ! -s conftest.err
  5449. } && test -s conftest.$ac_objext; then
  5450. eval "$as_ac_Header=yes"
  5451. else
  5452. $as_echo "$as_me: failed program was:" >&5
  5453. sed 's/^/| /' conftest.$ac_ext >&5
  5454. eval "$as_ac_Header=no"
  5455. fi
  5456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5457. fi
  5458. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5459. $as_echo "$as_val"'`
  5460. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5461. $as_echo "$ac_res" >&6; }
  5462. as_val=`eval 'as_val=${'$as_ac_Header'}
  5463. $as_echo "$as_val"'`
  5464. if test "x$as_val" = x""yes; then
  5465. cat >>confdefs.h <<_ACEOF
  5466. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5467. _ACEOF
  5468. fi
  5469. done
  5470. for ac_header in dlfcn.h
  5471. do
  5472. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5473. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5474. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5475. $as_echo_n "checking for $ac_header... " >&6; }
  5476. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5477. $as_echo_n "(cached) " >&6
  5478. fi
  5479. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5480. $as_echo "$as_val"'`
  5481. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5482. $as_echo "$ac_res" >&6; }
  5483. else
  5484. # Is the header compilable?
  5485. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5486. $as_echo_n "checking $ac_header usability... " >&6; }
  5487. cat >conftest.$ac_ext <<_ACEOF
  5488. /* confdefs.h. */
  5489. _ACEOF
  5490. cat confdefs.h >>conftest.$ac_ext
  5491. cat >>conftest.$ac_ext <<_ACEOF
  5492. /* end confdefs.h. */
  5493. $ac_includes_default
  5494. #include <$ac_header>
  5495. _ACEOF
  5496. rm -f conftest.$ac_objext
  5497. if { (ac_try="$ac_compile"
  5498. case "(($ac_try" in
  5499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5500. *) ac_try_echo=$ac_try;;
  5501. esac
  5502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5503. $as_echo "$ac_try_echo") >&5
  5504. (eval "$ac_compile") 2>conftest.er1
  5505. ac_status=$?
  5506. grep -v '^ *+' conftest.er1 >conftest.err
  5507. rm -f conftest.er1
  5508. cat conftest.err >&5
  5509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5510. (exit $ac_status); } && {
  5511. test -z "$ac_c_werror_flag" ||
  5512. test ! -s conftest.err
  5513. } && test -s conftest.$ac_objext; then
  5514. ac_header_compiler=yes
  5515. else
  5516. $as_echo "$as_me: failed program was:" >&5
  5517. sed 's/^/| /' conftest.$ac_ext >&5
  5518. ac_header_compiler=no
  5519. fi
  5520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5521. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5522. $as_echo "$ac_header_compiler" >&6; }
  5523. # Is the header present?
  5524. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5525. $as_echo_n "checking $ac_header presence... " >&6; }
  5526. cat >conftest.$ac_ext <<_ACEOF
  5527. /* confdefs.h. */
  5528. _ACEOF
  5529. cat confdefs.h >>conftest.$ac_ext
  5530. cat >>conftest.$ac_ext <<_ACEOF
  5531. /* end confdefs.h. */
  5532. #include <$ac_header>
  5533. _ACEOF
  5534. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5535. case "(($ac_try" in
  5536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5537. *) ac_try_echo=$ac_try;;
  5538. esac
  5539. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5540. $as_echo "$ac_try_echo") >&5
  5541. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5542. ac_status=$?
  5543. grep -v '^ *+' conftest.er1 >conftest.err
  5544. rm -f conftest.er1
  5545. cat conftest.err >&5
  5546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5547. (exit $ac_status); } >/dev/null && {
  5548. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5549. test ! -s conftest.err
  5550. }; then
  5551. ac_header_preproc=yes
  5552. else
  5553. $as_echo "$as_me: failed program was:" >&5
  5554. sed 's/^/| /' conftest.$ac_ext >&5
  5555. ac_header_preproc=no
  5556. fi
  5557. rm -f conftest.err conftest.$ac_ext
  5558. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5559. $as_echo "$ac_header_preproc" >&6; }
  5560. # So? What about this header?
  5561. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5562. yes:no: )
  5563. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5564. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5565. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5566. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5567. ac_header_preproc=yes
  5568. ;;
  5569. no:yes:* )
  5570. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5571. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5572. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5573. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5574. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5575. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5576. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5577. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5578. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5579. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5580. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5581. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5582. ( cat <<\_ASBOX
  5583. ## ------------------------------------------ ##
  5584. ## Report this to http://bugzilla.redhat.com/ ##
  5585. ## ------------------------------------------ ##
  5586. _ASBOX
  5587. ) | sed "s/^/$as_me: WARNING: /" >&2
  5588. ;;
  5589. esac
  5590. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  5591. $as_echo_n "checking for $ac_header... " >&6; }
  5592. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. eval "$as_ac_Header=\$ac_header_preproc"
  5596. fi
  5597. ac_res=`eval 'as_val=${'$as_ac_Header'}
  5598. $as_echo "$as_val"'`
  5599. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5600. $as_echo "$ac_res" >&6; }
  5601. fi
  5602. as_val=`eval 'as_val=${'$as_ac_Header'}
  5603. $as_echo "$as_val"'`
  5604. if test "x$as_val" = x""yes; then
  5605. cat >>confdefs.h <<_ACEOF
  5606. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5607. _ACEOF
  5608. fi
  5609. done
  5610. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5611. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5612. (test "X$CXX" != "Xg++"))) ; then
  5613. ac_ext=cpp
  5614. ac_cpp='$CXXCPP $CPPFLAGS'
  5615. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5616. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5617. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5618. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5619. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5620. if test -z "$CXXCPP"; then
  5621. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. # Double quotes because CXXCPP needs to be expanded
  5625. for CXXCPP in "$CXX -E" "/lib/cpp"
  5626. do
  5627. ac_preproc_ok=false
  5628. for ac_cxx_preproc_warn_flag in '' yes
  5629. do
  5630. # Use a header file that comes with gcc, so configuring glibc
  5631. # with a fresh cross-compiler works.
  5632. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5633. # <limits.h> exists even on freestanding compilers.
  5634. # On the NeXT, cc -E runs the code through the compiler's parser,
  5635. # not just through cpp. "Syntax error" is here to catch this case.
  5636. cat >conftest.$ac_ext <<_ACEOF
  5637. /* confdefs.h. */
  5638. _ACEOF
  5639. cat confdefs.h >>conftest.$ac_ext
  5640. cat >>conftest.$ac_ext <<_ACEOF
  5641. /* end confdefs.h. */
  5642. #ifdef __STDC__
  5643. # include <limits.h>
  5644. #else
  5645. # include <assert.h>
  5646. #endif
  5647. Syntax error
  5648. _ACEOF
  5649. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5650. case "(($ac_try" in
  5651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5652. *) ac_try_echo=$ac_try;;
  5653. esac
  5654. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5655. $as_echo "$ac_try_echo") >&5
  5656. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5657. ac_status=$?
  5658. grep -v '^ *+' conftest.er1 >conftest.err
  5659. rm -f conftest.er1
  5660. cat conftest.err >&5
  5661. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662. (exit $ac_status); } >/dev/null && {
  5663. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5664. test ! -s conftest.err
  5665. }; then
  5666. :
  5667. else
  5668. $as_echo "$as_me: failed program was:" >&5
  5669. sed 's/^/| /' conftest.$ac_ext >&5
  5670. # Broken: fails on valid input.
  5671. continue
  5672. fi
  5673. rm -f conftest.err conftest.$ac_ext
  5674. # OK, works on sane cases. Now check whether nonexistent headers
  5675. # can be detected and how.
  5676. cat >conftest.$ac_ext <<_ACEOF
  5677. /* confdefs.h. */
  5678. _ACEOF
  5679. cat confdefs.h >>conftest.$ac_ext
  5680. cat >>conftest.$ac_ext <<_ACEOF
  5681. /* end confdefs.h. */
  5682. #include <ac_nonexistent.h>
  5683. _ACEOF
  5684. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5685. case "(($ac_try" in
  5686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5687. *) ac_try_echo=$ac_try;;
  5688. esac
  5689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5690. $as_echo "$ac_try_echo") >&5
  5691. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5692. ac_status=$?
  5693. grep -v '^ *+' conftest.er1 >conftest.err
  5694. rm -f conftest.er1
  5695. cat conftest.err >&5
  5696. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5697. (exit $ac_status); } >/dev/null && {
  5698. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5699. test ! -s conftest.err
  5700. }; then
  5701. # Broken: success on invalid input.
  5702. continue
  5703. else
  5704. $as_echo "$as_me: failed program was:" >&5
  5705. sed 's/^/| /' conftest.$ac_ext >&5
  5706. # Passes both tests.
  5707. ac_preproc_ok=:
  5708. break
  5709. fi
  5710. rm -f conftest.err conftest.$ac_ext
  5711. done
  5712. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5713. rm -f conftest.err conftest.$ac_ext
  5714. if $ac_preproc_ok; then
  5715. break
  5716. fi
  5717. done
  5718. ac_cv_prog_CXXCPP=$CXXCPP
  5719. fi
  5720. CXXCPP=$ac_cv_prog_CXXCPP
  5721. else
  5722. ac_cv_prog_CXXCPP=$CXXCPP
  5723. fi
  5724. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5725. $as_echo "$CXXCPP" >&6; }
  5726. ac_preproc_ok=false
  5727. for ac_cxx_preproc_warn_flag in '' yes
  5728. do
  5729. # Use a header file that comes with gcc, so configuring glibc
  5730. # with a fresh cross-compiler works.
  5731. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5732. # <limits.h> exists even on freestanding compilers.
  5733. # On the NeXT, cc -E runs the code through the compiler's parser,
  5734. # not just through cpp. "Syntax error" is here to catch this case.
  5735. cat >conftest.$ac_ext <<_ACEOF
  5736. /* confdefs.h. */
  5737. _ACEOF
  5738. cat confdefs.h >>conftest.$ac_ext
  5739. cat >>conftest.$ac_ext <<_ACEOF
  5740. /* end confdefs.h. */
  5741. #ifdef __STDC__
  5742. # include <limits.h>
  5743. #else
  5744. # include <assert.h>
  5745. #endif
  5746. Syntax error
  5747. _ACEOF
  5748. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5749. case "(($ac_try" in
  5750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5751. *) ac_try_echo=$ac_try;;
  5752. esac
  5753. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5754. $as_echo "$ac_try_echo") >&5
  5755. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5756. ac_status=$?
  5757. grep -v '^ *+' conftest.er1 >conftest.err
  5758. rm -f conftest.er1
  5759. cat conftest.err >&5
  5760. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5761. (exit $ac_status); } >/dev/null && {
  5762. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5763. test ! -s conftest.err
  5764. }; then
  5765. :
  5766. else
  5767. $as_echo "$as_me: failed program was:" >&5
  5768. sed 's/^/| /' conftest.$ac_ext >&5
  5769. # Broken: fails on valid input.
  5770. continue
  5771. fi
  5772. rm -f conftest.err conftest.$ac_ext
  5773. # OK, works on sane cases. Now check whether nonexistent headers
  5774. # can be detected and how.
  5775. cat >conftest.$ac_ext <<_ACEOF
  5776. /* confdefs.h. */
  5777. _ACEOF
  5778. cat confdefs.h >>conftest.$ac_ext
  5779. cat >>conftest.$ac_ext <<_ACEOF
  5780. /* end confdefs.h. */
  5781. #include <ac_nonexistent.h>
  5782. _ACEOF
  5783. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5784. case "(($ac_try" in
  5785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5786. *) ac_try_echo=$ac_try;;
  5787. esac
  5788. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5789. $as_echo "$ac_try_echo") >&5
  5790. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5791. ac_status=$?
  5792. grep -v '^ *+' conftest.er1 >conftest.err
  5793. rm -f conftest.er1
  5794. cat conftest.err >&5
  5795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5796. (exit $ac_status); } >/dev/null && {
  5797. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5798. test ! -s conftest.err
  5799. }; then
  5800. # Broken: success on invalid input.
  5801. continue
  5802. else
  5803. $as_echo "$as_me: failed program was:" >&5
  5804. sed 's/^/| /' conftest.$ac_ext >&5
  5805. # Passes both tests.
  5806. ac_preproc_ok=:
  5807. break
  5808. fi
  5809. rm -f conftest.err conftest.$ac_ext
  5810. done
  5811. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5812. rm -f conftest.err conftest.$ac_ext
  5813. if $ac_preproc_ok; then
  5814. :
  5815. else
  5816. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  5817. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5818. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5819. See \`config.log' for more details." >&5
  5820. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5821. See \`config.log' for more details." >&2;}
  5822. { (exit 1); exit 1; }; }; }
  5823. fi
  5824. ac_ext=cpp
  5825. ac_cpp='$CXXCPP $CPPFLAGS'
  5826. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5827. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5828. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5829. fi
  5830. ac_ext=f
  5831. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5832. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5833. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5834. if test -n "$ac_tool_prefix"; then
  5835. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5836. do
  5837. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5838. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5839. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5840. $as_echo_n "checking for $ac_word... " >&6; }
  5841. if test "${ac_cv_prog_F77+set}" = set; then
  5842. $as_echo_n "(cached) " >&6
  5843. else
  5844. if test -n "$F77"; then
  5845. ac_cv_prog_F77="$F77" # Let the user override the test.
  5846. else
  5847. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5848. for as_dir in $PATH
  5849. do
  5850. IFS=$as_save_IFS
  5851. test -z "$as_dir" && as_dir=.
  5852. for ac_exec_ext in '' $ac_executable_extensions; do
  5853. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5854. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5855. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5856. break 2
  5857. fi
  5858. done
  5859. done
  5860. IFS=$as_save_IFS
  5861. fi
  5862. fi
  5863. F77=$ac_cv_prog_F77
  5864. if test -n "$F77"; then
  5865. { $as_echo "$as_me:$LINENO: result: $F77" >&5
  5866. $as_echo "$F77" >&6; }
  5867. else
  5868. { $as_echo "$as_me:$LINENO: result: no" >&5
  5869. $as_echo "no" >&6; }
  5870. fi
  5871. test -n "$F77" && break
  5872. done
  5873. fi
  5874. if test -z "$F77"; then
  5875. ac_ct_F77=$F77
  5876. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5877. do
  5878. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5879. set dummy $ac_prog; ac_word=$2
  5880. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5881. $as_echo_n "checking for $ac_word... " >&6; }
  5882. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5883. $as_echo_n "(cached) " >&6
  5884. else
  5885. if test -n "$ac_ct_F77"; then
  5886. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5887. else
  5888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5889. for as_dir in $PATH
  5890. do
  5891. IFS=$as_save_IFS
  5892. test -z "$as_dir" && as_dir=.
  5893. for ac_exec_ext in '' $ac_executable_extensions; do
  5894. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5895. ac_cv_prog_ac_ct_F77="$ac_prog"
  5896. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5897. break 2
  5898. fi
  5899. done
  5900. done
  5901. IFS=$as_save_IFS
  5902. fi
  5903. fi
  5904. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5905. if test -n "$ac_ct_F77"; then
  5906. { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5907. $as_echo "$ac_ct_F77" >&6; }
  5908. else
  5909. { $as_echo "$as_me:$LINENO: result: no" >&5
  5910. $as_echo "no" >&6; }
  5911. fi
  5912. test -n "$ac_ct_F77" && break
  5913. done
  5914. if test "x$ac_ct_F77" = x; then
  5915. F77=""
  5916. else
  5917. case $cross_compiling:$ac_tool_warned in
  5918. yes:)
  5919. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5920. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5921. ac_tool_warned=yes ;;
  5922. esac
  5923. F77=$ac_ct_F77
  5924. fi
  5925. fi
  5926. # Provide some information about the compiler.
  5927. $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5928. set X $ac_compile
  5929. ac_compiler=$2
  5930. { (ac_try="$ac_compiler --version >&5"
  5931. case "(($ac_try" in
  5932. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5933. *) ac_try_echo=$ac_try;;
  5934. esac
  5935. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5936. $as_echo "$ac_try_echo") >&5
  5937. (eval "$ac_compiler --version >&5") 2>&5
  5938. ac_status=$?
  5939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5940. (exit $ac_status); }
  5941. { (ac_try="$ac_compiler -v >&5"
  5942. case "(($ac_try" in
  5943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5944. *) ac_try_echo=$ac_try;;
  5945. esac
  5946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5947. $as_echo "$ac_try_echo") >&5
  5948. (eval "$ac_compiler -v >&5") 2>&5
  5949. ac_status=$?
  5950. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5951. (exit $ac_status); }
  5952. { (ac_try="$ac_compiler -V >&5"
  5953. case "(($ac_try" in
  5954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5955. *) ac_try_echo=$ac_try;;
  5956. esac
  5957. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5958. $as_echo "$ac_try_echo") >&5
  5959. (eval "$ac_compiler -V >&5") 2>&5
  5960. ac_status=$?
  5961. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5962. (exit $ac_status); }
  5963. rm -f a.out
  5964. # If we don't use `.F' as extension, the preprocessor is not run on the
  5965. # input file. (Note that this only needs to work for GNU compilers.)
  5966. ac_save_ext=$ac_ext
  5967. ac_ext=F
  5968. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5969. $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  5970. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. cat >conftest.$ac_ext <<_ACEOF
  5974. program main
  5975. #ifndef __GNUC__
  5976. choke me
  5977. #endif
  5978. end
  5979. _ACEOF
  5980. rm -f conftest.$ac_objext
  5981. if { (ac_try="$ac_compile"
  5982. case "(($ac_try" in
  5983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5984. *) ac_try_echo=$ac_try;;
  5985. esac
  5986. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5987. $as_echo "$ac_try_echo") >&5
  5988. (eval "$ac_compile") 2>conftest.er1
  5989. ac_status=$?
  5990. grep -v '^ *+' conftest.er1 >conftest.err
  5991. rm -f conftest.er1
  5992. cat conftest.err >&5
  5993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5994. (exit $ac_status); } && {
  5995. test -z "$ac_f77_werror_flag" ||
  5996. test ! -s conftest.err
  5997. } && test -s conftest.$ac_objext; then
  5998. ac_compiler_gnu=yes
  5999. else
  6000. $as_echo "$as_me: failed program was:" >&5
  6001. sed 's/^/| /' conftest.$ac_ext >&5
  6002. ac_compiler_gnu=no
  6003. fi
  6004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6005. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  6006. fi
  6007. { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  6008. $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  6009. ac_ext=$ac_save_ext
  6010. ac_test_FFLAGS=${FFLAGS+set}
  6011. ac_save_FFLAGS=$FFLAGS
  6012. FFLAGS=
  6013. { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  6014. $as_echo_n "checking whether $F77 accepts -g... " >&6; }
  6015. if test "${ac_cv_prog_f77_g+set}" = set; then
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. FFLAGS=-g
  6019. cat >conftest.$ac_ext <<_ACEOF
  6020. program main
  6021. end
  6022. _ACEOF
  6023. rm -f conftest.$ac_objext
  6024. if { (ac_try="$ac_compile"
  6025. case "(($ac_try" in
  6026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6027. *) ac_try_echo=$ac_try;;
  6028. esac
  6029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6030. $as_echo "$ac_try_echo") >&5
  6031. (eval "$ac_compile") 2>conftest.er1
  6032. ac_status=$?
  6033. grep -v '^ *+' conftest.er1 >conftest.err
  6034. rm -f conftest.er1
  6035. cat conftest.err >&5
  6036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6037. (exit $ac_status); } && {
  6038. test -z "$ac_f77_werror_flag" ||
  6039. test ! -s conftest.err
  6040. } && test -s conftest.$ac_objext; then
  6041. ac_cv_prog_f77_g=yes
  6042. else
  6043. $as_echo "$as_me: failed program was:" >&5
  6044. sed 's/^/| /' conftest.$ac_ext >&5
  6045. ac_cv_prog_f77_g=no
  6046. fi
  6047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6048. fi
  6049. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  6050. $as_echo "$ac_cv_prog_f77_g" >&6; }
  6051. if test "$ac_test_FFLAGS" = set; then
  6052. FFLAGS=$ac_save_FFLAGS
  6053. elif test $ac_cv_prog_f77_g = yes; then
  6054. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6055. FFLAGS="-g -O2"
  6056. else
  6057. FFLAGS="-g"
  6058. fi
  6059. else
  6060. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6061. FFLAGS="-O2"
  6062. else
  6063. FFLAGS=
  6064. fi
  6065. fi
  6066. if test $ac_compiler_gnu = yes; then
  6067. G77=yes
  6068. else
  6069. G77=
  6070. fi
  6071. ac_ext=c
  6072. ac_cpp='$CPP $CPPFLAGS'
  6073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6076. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6077. # find the maximum length of command line arguments
  6078. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  6079. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6080. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. i=0
  6084. teststring="ABCD"
  6085. case $build_os in
  6086. msdosdjgpp*)
  6087. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6088. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6089. # during glob expansion). Even if it were fixed, the result of this
  6090. # check would be larger than it should be.
  6091. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6092. ;;
  6093. gnu*)
  6094. # Under GNU Hurd, this test is not required because there is
  6095. # no limit to the length of command line arguments.
  6096. # Libtool will interpret -1 as no limit whatsoever
  6097. lt_cv_sys_max_cmd_len=-1;
  6098. ;;
  6099. cygwin* | mingw*)
  6100. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6101. # about 5 minutes as the teststring grows exponentially.
  6102. # Worse, since 9x/ME are not pre-emptively multitasking,
  6103. # you end up with a "frozen" computer, even though with patience
  6104. # the test eventually succeeds (with a max line length of 256k).
  6105. # Instead, let's just punt: use the minimum linelength reported by
  6106. # all of the supported platforms: 8192 (on NT/2K/XP).
  6107. lt_cv_sys_max_cmd_len=8192;
  6108. ;;
  6109. amigaos*)
  6110. # On AmigaOS with pdksh, this test takes hours, literally.
  6111. # So we just punt and use a minimum line length of 8192.
  6112. lt_cv_sys_max_cmd_len=8192;
  6113. ;;
  6114. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6115. # This has been around since 386BSD, at least. Likely further.
  6116. if test -x /sbin/sysctl; then
  6117. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6118. elif test -x /usr/sbin/sysctl; then
  6119. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6120. else
  6121. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6122. fi
  6123. # And add a safety zone
  6124. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6126. ;;
  6127. interix*)
  6128. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6129. lt_cv_sys_max_cmd_len=196608
  6130. ;;
  6131. osf*)
  6132. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6133. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6134. # nice to cause kernel panics so lets avoid the loop below.
  6135. # First set a reasonable default.
  6136. lt_cv_sys_max_cmd_len=16384
  6137. #
  6138. if test -x /sbin/sysconfig; then
  6139. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6140. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6141. esac
  6142. fi
  6143. ;;
  6144. sco3.2v5*)
  6145. lt_cv_sys_max_cmd_len=102400
  6146. ;;
  6147. sysv5* | sco5v6* | sysv4.2uw2*)
  6148. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6149. if test -n "$kargmax"; then
  6150. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6151. else
  6152. lt_cv_sys_max_cmd_len=32768
  6153. fi
  6154. ;;
  6155. *)
  6156. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6157. if test -n "$lt_cv_sys_max_cmd_len"; then
  6158. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6159. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6160. else
  6161. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6162. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  6163. = "XX$teststring") >/dev/null 2>&1 &&
  6164. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  6165. lt_cv_sys_max_cmd_len=$new_result &&
  6166. test $i != 17 # 1/2 MB should be enough
  6167. do
  6168. i=`expr $i + 1`
  6169. teststring=$teststring$teststring
  6170. done
  6171. teststring=
  6172. # Add a significant safety factor because C++ compilers can tack on massive
  6173. # amounts of additional arguments before passing them to the linker.
  6174. # It appears as though 1/2 is a usable value.
  6175. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6176. fi
  6177. ;;
  6178. esac
  6179. fi
  6180. if test -n $lt_cv_sys_max_cmd_len ; then
  6181. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6182. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6183. else
  6184. { $as_echo "$as_me:$LINENO: result: none" >&5
  6185. $as_echo "none" >&6; }
  6186. fi
  6187. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6188. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6189. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6190. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. # These are sane defaults that work on at least a few old systems.
  6194. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6195. # Character class describing NM global symbol codes.
  6196. symcode='[BCDEGRST]'
  6197. # Regexp to match symbols that can be accessed directly from C.
  6198. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6199. # Transform an extracted symbol line into a proper C declaration
  6200. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6201. # Transform an extracted symbol line into symbol name and symbol address
  6202. 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'"
  6203. # Define system-specific variables.
  6204. case $host_os in
  6205. aix*)
  6206. symcode='[BCDT]'
  6207. ;;
  6208. cygwin* | mingw* | pw32*)
  6209. symcode='[ABCDGISTW]'
  6210. ;;
  6211. hpux*) # Its linker distinguishes data from code symbols
  6212. if test "$host_cpu" = ia64; then
  6213. symcode='[ABCDEGRST]'
  6214. fi
  6215. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6216. 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'"
  6217. ;;
  6218. linux* | k*bsd*-gnu)
  6219. if test "$host_cpu" = ia64; then
  6220. symcode='[ABCDGIRSTW]'
  6221. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6222. 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'"
  6223. fi
  6224. ;;
  6225. irix* | nonstopux*)
  6226. symcode='[BCDEGRST]'
  6227. ;;
  6228. osf*)
  6229. symcode='[BCDEGQRST]'
  6230. ;;
  6231. solaris*)
  6232. symcode='[BDRT]'
  6233. ;;
  6234. sco3.2v5*)
  6235. symcode='[DT]'
  6236. ;;
  6237. sysv4.2uw2*)
  6238. symcode='[DT]'
  6239. ;;
  6240. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6241. symcode='[ABDT]'
  6242. ;;
  6243. sysv4)
  6244. symcode='[DFNSTU]'
  6245. ;;
  6246. esac
  6247. # Handle CRLF in mingw tool chain
  6248. opt_cr=
  6249. case $build_os in
  6250. mingw*)
  6251. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6252. ;;
  6253. esac
  6254. # If we're using GNU nm, then use its standard symbol codes.
  6255. case `$NM -V 2>&1` in
  6256. *GNU* | *'with BFD'*)
  6257. symcode='[ABCDGIRSTW]' ;;
  6258. esac
  6259. # Try without a prefix undercore, then with it.
  6260. for ac_symprfx in "" "_"; do
  6261. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6262. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6263. # Write the raw and C identifiers.
  6264. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6265. # Check to see that the pipe works correctly.
  6266. pipe_works=no
  6267. rm -f conftest*
  6268. cat > conftest.$ac_ext <<EOF
  6269. #ifdef __cplusplus
  6270. extern "C" {
  6271. #endif
  6272. char nm_test_var;
  6273. void nm_test_func(){}
  6274. #ifdef __cplusplus
  6275. }
  6276. #endif
  6277. int main(){nm_test_var='a';nm_test_func();return(0);}
  6278. EOF
  6279. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6280. (eval $ac_compile) 2>&5
  6281. ac_status=$?
  6282. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283. (exit $ac_status); }; then
  6284. # Now try to grab the symbols.
  6285. nlist=conftest.nm
  6286. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6287. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6288. ac_status=$?
  6289. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6290. (exit $ac_status); } && test -s "$nlist"; then
  6291. # Try sorting and uniquifying the output.
  6292. if sort "$nlist" | uniq > "$nlist"T; then
  6293. mv -f "$nlist"T "$nlist"
  6294. else
  6295. rm -f "$nlist"T
  6296. fi
  6297. # Make sure that we snagged all the symbols we need.
  6298. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6299. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6300. cat <<EOF > conftest.$ac_ext
  6301. #ifdef __cplusplus
  6302. extern "C" {
  6303. #endif
  6304. EOF
  6305. # Now generate the symbol file.
  6306. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6307. cat <<EOF >> conftest.$ac_ext
  6308. #if defined (__STDC__) && __STDC__
  6309. # define lt_ptr_t void *
  6310. #else
  6311. # define lt_ptr_t char *
  6312. # define const
  6313. #endif
  6314. /* The mapping between symbol names and symbols. */
  6315. const struct {
  6316. const char *name;
  6317. lt_ptr_t address;
  6318. }
  6319. lt_preloaded_symbols[] =
  6320. {
  6321. EOF
  6322. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6323. cat <<\EOF >> conftest.$ac_ext
  6324. {0, (lt_ptr_t) 0}
  6325. };
  6326. #ifdef __cplusplus
  6327. }
  6328. #endif
  6329. EOF
  6330. # Now try linking the two files.
  6331. mv conftest.$ac_objext conftstm.$ac_objext
  6332. lt_save_LIBS="$LIBS"
  6333. lt_save_CFLAGS="$CFLAGS"
  6334. LIBS="conftstm.$ac_objext"
  6335. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6336. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6337. (eval $ac_link) 2>&5
  6338. ac_status=$?
  6339. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6340. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6341. pipe_works=yes
  6342. fi
  6343. LIBS="$lt_save_LIBS"
  6344. CFLAGS="$lt_save_CFLAGS"
  6345. else
  6346. echo "cannot find nm_test_func in $nlist" >&5
  6347. fi
  6348. else
  6349. echo "cannot find nm_test_var in $nlist" >&5
  6350. fi
  6351. else
  6352. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6353. fi
  6354. else
  6355. echo "$progname: failed program was:" >&5
  6356. cat conftest.$ac_ext >&5
  6357. fi
  6358. rm -f conftest* conftst*
  6359. # Do not use the global_symbol_pipe unless it works.
  6360. if test "$pipe_works" = yes; then
  6361. break
  6362. else
  6363. lt_cv_sys_global_symbol_pipe=
  6364. fi
  6365. done
  6366. fi
  6367. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6368. lt_cv_sys_global_symbol_to_cdecl=
  6369. fi
  6370. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6371. { $as_echo "$as_me:$LINENO: result: failed" >&5
  6372. $as_echo "failed" >&6; }
  6373. else
  6374. { $as_echo "$as_me:$LINENO: result: ok" >&5
  6375. $as_echo "ok" >&6; }
  6376. fi
  6377. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  6378. $as_echo_n "checking for objdir... " >&6; }
  6379. if test "${lt_cv_objdir+set}" = set; then
  6380. $as_echo_n "(cached) " >&6
  6381. else
  6382. rm -f .libs 2>/dev/null
  6383. mkdir .libs 2>/dev/null
  6384. if test -d .libs; then
  6385. lt_cv_objdir=.libs
  6386. else
  6387. # MS-DOS does not allow filenames that begin with a dot.
  6388. lt_cv_objdir=_libs
  6389. fi
  6390. rmdir .libs 2>/dev/null
  6391. fi
  6392. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6393. $as_echo "$lt_cv_objdir" >&6; }
  6394. objdir=$lt_cv_objdir
  6395. case $host_os in
  6396. aix3*)
  6397. # AIX sometimes has problems with the GCC collect2 program. For some
  6398. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6399. # vanish in a puff of smoke.
  6400. if test "X${COLLECT_NAMES+set}" != Xset; then
  6401. COLLECT_NAMES=
  6402. export COLLECT_NAMES
  6403. fi
  6404. ;;
  6405. esac
  6406. # Sed substitution that helps us do robust quoting. It backslashifies
  6407. # metacharacters that are still active within double-quoted strings.
  6408. Xsed='sed -e 1s/^X//'
  6409. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6410. # Same as above, but do not quote variable references.
  6411. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6412. # Sed substitution to delay expansion of an escaped shell variable in a
  6413. # double_quote_subst'ed string.
  6414. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6415. # Sed substitution to avoid accidental globbing in evaled expressions
  6416. no_glob_subst='s/\*/\\\*/g'
  6417. # Constants:
  6418. rm="rm -f"
  6419. # Global variables:
  6420. default_ofile=libtool
  6421. can_build_shared=yes
  6422. # All known linkers require a `.a' archive for static linking (except MSVC,
  6423. # which needs '.lib').
  6424. libext=a
  6425. ltmain="$ac_aux_dir/ltmain.sh"
  6426. ofile="$default_ofile"
  6427. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6428. if test -n "$ac_tool_prefix"; then
  6429. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6430. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6431. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6432. $as_echo_n "checking for $ac_word... " >&6; }
  6433. if test "${ac_cv_prog_AR+set}" = set; then
  6434. $as_echo_n "(cached) " >&6
  6435. else
  6436. if test -n "$AR"; then
  6437. ac_cv_prog_AR="$AR" # Let the user override the test.
  6438. else
  6439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6440. for as_dir in $PATH
  6441. do
  6442. IFS=$as_save_IFS
  6443. test -z "$as_dir" && as_dir=.
  6444. for ac_exec_ext in '' $ac_executable_extensions; do
  6445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6446. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6447. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6448. break 2
  6449. fi
  6450. done
  6451. done
  6452. IFS=$as_save_IFS
  6453. fi
  6454. fi
  6455. AR=$ac_cv_prog_AR
  6456. if test -n "$AR"; then
  6457. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  6458. $as_echo "$AR" >&6; }
  6459. else
  6460. { $as_echo "$as_me:$LINENO: result: no" >&5
  6461. $as_echo "no" >&6; }
  6462. fi
  6463. fi
  6464. if test -z "$ac_cv_prog_AR"; then
  6465. ac_ct_AR=$AR
  6466. # Extract the first word of "ar", so it can be a program name with args.
  6467. set dummy ar; ac_word=$2
  6468. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6469. $as_echo_n "checking for $ac_word... " >&6; }
  6470. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6471. $as_echo_n "(cached) " >&6
  6472. else
  6473. if test -n "$ac_ct_AR"; then
  6474. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6475. else
  6476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6477. for as_dir in $PATH
  6478. do
  6479. IFS=$as_save_IFS
  6480. test -z "$as_dir" && as_dir=.
  6481. for ac_exec_ext in '' $ac_executable_extensions; do
  6482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6483. ac_cv_prog_ac_ct_AR="ar"
  6484. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6485. break 2
  6486. fi
  6487. done
  6488. done
  6489. IFS=$as_save_IFS
  6490. fi
  6491. fi
  6492. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6493. if test -n "$ac_ct_AR"; then
  6494. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6495. $as_echo "$ac_ct_AR" >&6; }
  6496. else
  6497. { $as_echo "$as_me:$LINENO: result: no" >&5
  6498. $as_echo "no" >&6; }
  6499. fi
  6500. if test "x$ac_ct_AR" = x; then
  6501. AR="false"
  6502. else
  6503. case $cross_compiling:$ac_tool_warned in
  6504. yes:)
  6505. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6506. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6507. ac_tool_warned=yes ;;
  6508. esac
  6509. AR=$ac_ct_AR
  6510. fi
  6511. else
  6512. AR="$ac_cv_prog_AR"
  6513. fi
  6514. if test -n "$ac_tool_prefix"; then
  6515. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6516. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6517. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6518. $as_echo_n "checking for $ac_word... " >&6; }
  6519. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6520. $as_echo_n "(cached) " >&6
  6521. else
  6522. if test -n "$RANLIB"; then
  6523. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6524. else
  6525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6526. for as_dir in $PATH
  6527. do
  6528. IFS=$as_save_IFS
  6529. test -z "$as_dir" && as_dir=.
  6530. for ac_exec_ext in '' $ac_executable_extensions; do
  6531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6532. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6533. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6534. break 2
  6535. fi
  6536. done
  6537. done
  6538. IFS=$as_save_IFS
  6539. fi
  6540. fi
  6541. RANLIB=$ac_cv_prog_RANLIB
  6542. if test -n "$RANLIB"; then
  6543. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  6544. $as_echo "$RANLIB" >&6; }
  6545. else
  6546. { $as_echo "$as_me:$LINENO: result: no" >&5
  6547. $as_echo "no" >&6; }
  6548. fi
  6549. fi
  6550. if test -z "$ac_cv_prog_RANLIB"; then
  6551. ac_ct_RANLIB=$RANLIB
  6552. # Extract the first word of "ranlib", so it can be a program name with args.
  6553. set dummy ranlib; ac_word=$2
  6554. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6555. $as_echo_n "checking for $ac_word... " >&6; }
  6556. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6557. $as_echo_n "(cached) " >&6
  6558. else
  6559. if test -n "$ac_ct_RANLIB"; then
  6560. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6561. else
  6562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6563. for as_dir in $PATH
  6564. do
  6565. IFS=$as_save_IFS
  6566. test -z "$as_dir" && as_dir=.
  6567. for ac_exec_ext in '' $ac_executable_extensions; do
  6568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6569. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6570. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6571. break 2
  6572. fi
  6573. done
  6574. done
  6575. IFS=$as_save_IFS
  6576. fi
  6577. fi
  6578. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6579. if test -n "$ac_ct_RANLIB"; then
  6580. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6581. $as_echo "$ac_ct_RANLIB" >&6; }
  6582. else
  6583. { $as_echo "$as_me:$LINENO: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. if test "x$ac_ct_RANLIB" = x; then
  6587. RANLIB=":"
  6588. else
  6589. case $cross_compiling:$ac_tool_warned in
  6590. yes:)
  6591. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6593. ac_tool_warned=yes ;;
  6594. esac
  6595. RANLIB=$ac_ct_RANLIB
  6596. fi
  6597. else
  6598. RANLIB="$ac_cv_prog_RANLIB"
  6599. fi
  6600. if test -n "$ac_tool_prefix"; then
  6601. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6602. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6603. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6604. $as_echo_n "checking for $ac_word... " >&6; }
  6605. if test "${ac_cv_prog_STRIP+set}" = set; then
  6606. $as_echo_n "(cached) " >&6
  6607. else
  6608. if test -n "$STRIP"; then
  6609. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6610. else
  6611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6612. for as_dir in $PATH
  6613. do
  6614. IFS=$as_save_IFS
  6615. test -z "$as_dir" && as_dir=.
  6616. for ac_exec_ext in '' $ac_executable_extensions; do
  6617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6618. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6619. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6620. break 2
  6621. fi
  6622. done
  6623. done
  6624. IFS=$as_save_IFS
  6625. fi
  6626. fi
  6627. STRIP=$ac_cv_prog_STRIP
  6628. if test -n "$STRIP"; then
  6629. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  6630. $as_echo "$STRIP" >&6; }
  6631. else
  6632. { $as_echo "$as_me:$LINENO: result: no" >&5
  6633. $as_echo "no" >&6; }
  6634. fi
  6635. fi
  6636. if test -z "$ac_cv_prog_STRIP"; then
  6637. ac_ct_STRIP=$STRIP
  6638. # Extract the first word of "strip", so it can be a program name with args.
  6639. set dummy strip; ac_word=$2
  6640. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6641. $as_echo_n "checking for $ac_word... " >&6; }
  6642. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. if test -n "$ac_ct_STRIP"; then
  6646. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6647. else
  6648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6649. for as_dir in $PATH
  6650. do
  6651. IFS=$as_save_IFS
  6652. test -z "$as_dir" && as_dir=.
  6653. for ac_exec_ext in '' $ac_executable_extensions; do
  6654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6655. ac_cv_prog_ac_ct_STRIP="strip"
  6656. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6657. break 2
  6658. fi
  6659. done
  6660. done
  6661. IFS=$as_save_IFS
  6662. fi
  6663. fi
  6664. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6665. if test -n "$ac_ct_STRIP"; then
  6666. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6667. $as_echo "$ac_ct_STRIP" >&6; }
  6668. else
  6669. { $as_echo "$as_me:$LINENO: result: no" >&5
  6670. $as_echo "no" >&6; }
  6671. fi
  6672. if test "x$ac_ct_STRIP" = x; then
  6673. STRIP=":"
  6674. else
  6675. case $cross_compiling:$ac_tool_warned in
  6676. yes:)
  6677. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6679. ac_tool_warned=yes ;;
  6680. esac
  6681. STRIP=$ac_ct_STRIP
  6682. fi
  6683. else
  6684. STRIP="$ac_cv_prog_STRIP"
  6685. fi
  6686. old_CC="$CC"
  6687. old_CFLAGS="$CFLAGS"
  6688. # Set sane defaults for various variables
  6689. test -z "$AR" && AR=ar
  6690. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6691. test -z "$AS" && AS=as
  6692. test -z "$CC" && CC=cc
  6693. test -z "$LTCC" && LTCC=$CC
  6694. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6695. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6696. test -z "$LD" && LD=ld
  6697. test -z "$LN_S" && LN_S="ln -s"
  6698. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6699. test -z "$NM" && NM=nm
  6700. test -z "$SED" && SED=sed
  6701. test -z "$OBJDUMP" && OBJDUMP=objdump
  6702. test -z "$RANLIB" && RANLIB=:
  6703. test -z "$STRIP" && STRIP=:
  6704. test -z "$ac_objext" && ac_objext=o
  6705. # Determine commands to create old-style static archives.
  6706. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6707. old_postinstall_cmds='chmod 644 $oldlib'
  6708. old_postuninstall_cmds=
  6709. if test -n "$RANLIB"; then
  6710. case $host_os in
  6711. openbsd*)
  6712. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6713. ;;
  6714. *)
  6715. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6716. ;;
  6717. esac
  6718. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6719. fi
  6720. for cc_temp in $compiler""; do
  6721. case $cc_temp in
  6722. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6723. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6724. \-*) ;;
  6725. *) break;;
  6726. esac
  6727. done
  6728. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6729. # Only perform the check for file, if the check method requires it
  6730. case $deplibs_check_method in
  6731. file_magic*)
  6732. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6733. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6734. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6735. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. case $MAGIC_CMD in
  6739. [\\/*] | ?:[\\/]*)
  6740. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6741. ;;
  6742. *)
  6743. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6744. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6745. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6746. for ac_dir in $ac_dummy; do
  6747. IFS="$lt_save_ifs"
  6748. test -z "$ac_dir" && ac_dir=.
  6749. if test -f $ac_dir/${ac_tool_prefix}file; then
  6750. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6751. if test -n "$file_magic_test_file"; then
  6752. case $deplibs_check_method in
  6753. "file_magic "*)
  6754. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6755. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6756. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6757. $EGREP "$file_magic_regex" > /dev/null; then
  6758. :
  6759. else
  6760. cat <<EOF 1>&2
  6761. *** Warning: the command libtool uses to detect shared libraries,
  6762. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6763. *** The result is that libtool may fail to recognize shared libraries
  6764. *** as such. This will affect the creation of libtool libraries that
  6765. *** depend on shared libraries, but programs linked with such libtool
  6766. *** libraries will work regardless of this problem. Nevertheless, you
  6767. *** may want to report the problem to your system manager and/or to
  6768. *** [email protected]
  6769. EOF
  6770. fi ;;
  6771. esac
  6772. fi
  6773. break
  6774. fi
  6775. done
  6776. IFS="$lt_save_ifs"
  6777. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6778. ;;
  6779. esac
  6780. fi
  6781. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6782. if test -n "$MAGIC_CMD"; then
  6783. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6784. $as_echo "$MAGIC_CMD" >&6; }
  6785. else
  6786. { $as_echo "$as_me:$LINENO: result: no" >&5
  6787. $as_echo "no" >&6; }
  6788. fi
  6789. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6790. if test -n "$ac_tool_prefix"; then
  6791. { $as_echo "$as_me:$LINENO: checking for file" >&5
  6792. $as_echo_n "checking for file... " >&6; }
  6793. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6794. $as_echo_n "(cached) " >&6
  6795. else
  6796. case $MAGIC_CMD in
  6797. [\\/*] | ?:[\\/]*)
  6798. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6799. ;;
  6800. *)
  6801. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6802. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6803. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6804. for ac_dir in $ac_dummy; do
  6805. IFS="$lt_save_ifs"
  6806. test -z "$ac_dir" && ac_dir=.
  6807. if test -f $ac_dir/file; then
  6808. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6809. if test -n "$file_magic_test_file"; then
  6810. case $deplibs_check_method in
  6811. "file_magic "*)
  6812. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6813. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6814. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6815. $EGREP "$file_magic_regex" > /dev/null; then
  6816. :
  6817. else
  6818. cat <<EOF 1>&2
  6819. *** Warning: the command libtool uses to detect shared libraries,
  6820. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6821. *** The result is that libtool may fail to recognize shared libraries
  6822. *** as such. This will affect the creation of libtool libraries that
  6823. *** depend on shared libraries, but programs linked with such libtool
  6824. *** libraries will work regardless of this problem. Nevertheless, you
  6825. *** may want to report the problem to your system manager and/or to
  6826. *** [email protected]
  6827. EOF
  6828. fi ;;
  6829. esac
  6830. fi
  6831. break
  6832. fi
  6833. done
  6834. IFS="$lt_save_ifs"
  6835. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6836. ;;
  6837. esac
  6838. fi
  6839. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6840. if test -n "$MAGIC_CMD"; then
  6841. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6842. $as_echo "$MAGIC_CMD" >&6; }
  6843. else
  6844. { $as_echo "$as_me:$LINENO: result: no" >&5
  6845. $as_echo "no" >&6; }
  6846. fi
  6847. else
  6848. MAGIC_CMD=:
  6849. fi
  6850. fi
  6851. fi
  6852. ;;
  6853. esac
  6854. enable_dlopen=no
  6855. enable_win32_dll=no
  6856. # Check whether --enable-libtool-lock was given.
  6857. if test "${enable_libtool_lock+set}" = set; then
  6858. enableval=$enable_libtool_lock;
  6859. fi
  6860. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6861. # Check whether --with-pic was given.
  6862. if test "${with_pic+set}" = set; then
  6863. withval=$with_pic; pic_mode="$withval"
  6864. else
  6865. pic_mode=default
  6866. fi
  6867. test -z "$pic_mode" && pic_mode=default
  6868. # Use C for the default configuration in the libtool script
  6869. tagname=
  6870. lt_save_CC="$CC"
  6871. ac_ext=c
  6872. ac_cpp='$CPP $CPPFLAGS'
  6873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6876. # Source file extension for C test sources.
  6877. ac_ext=c
  6878. # Object file extension for compiled C test sources.
  6879. objext=o
  6880. objext=$objext
  6881. # Code to be used in simple compile tests
  6882. lt_simple_compile_test_code="int some_variable = 0;"
  6883. # Code to be used in simple link tests
  6884. lt_simple_link_test_code='int main(){return(0);}'
  6885. # If no C compiler was specified, use CC.
  6886. LTCC=${LTCC-"$CC"}
  6887. # If no C compiler flags were specified, use CFLAGS.
  6888. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6889. # Allow CC to be a program name with arguments.
  6890. compiler=$CC
  6891. # save warnings/boilerplate of simple test code
  6892. ac_outfile=conftest.$ac_objext
  6893. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6894. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6895. _lt_compiler_boilerplate=`cat conftest.err`
  6896. $rm conftest*
  6897. ac_outfile=conftest.$ac_objext
  6898. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6899. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6900. _lt_linker_boilerplate=`cat conftest.err`
  6901. $rm conftest*
  6902. lt_prog_compiler_no_builtin_flag=
  6903. if test "$GCC" = yes; then
  6904. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6905. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6906. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6907. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6908. $as_echo_n "(cached) " >&6
  6909. else
  6910. lt_cv_prog_compiler_rtti_exceptions=no
  6911. ac_outfile=conftest.$ac_objext
  6912. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6913. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6914. # Insert the option either (1) after the last *FLAGS variable, or
  6915. # (2) before a word containing "conftest.", or (3) at the end.
  6916. # Note that $ac_compile itself does not contain backslashes and begins
  6917. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6918. # The option is referenced via a variable to avoid confusing sed.
  6919. lt_compile=`echo "$ac_compile" | $SED \
  6920. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6921. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6922. -e 's:$: $lt_compiler_flag:'`
  6923. (eval echo "\"\$as_me:7680: $lt_compile\"" >&5)
  6924. (eval "$lt_compile" 2>conftest.err)
  6925. ac_status=$?
  6926. cat conftest.err >&5
  6927. echo "$as_me:7684: \$? = $ac_status" >&5
  6928. if (exit $ac_status) && test -s "$ac_outfile"; then
  6929. # The compiler can only warn and ignore the option if not recognized
  6930. # So say no if there are warnings other than the usual output.
  6931. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6932. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6933. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6934. lt_cv_prog_compiler_rtti_exceptions=yes
  6935. fi
  6936. fi
  6937. $rm conftest*
  6938. fi
  6939. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6940. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6941. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6942. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6943. else
  6944. :
  6945. fi
  6946. fi
  6947. lt_prog_compiler_wl=
  6948. lt_prog_compiler_pic=
  6949. lt_prog_compiler_static=
  6950. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6951. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6952. if test "$GCC" = yes; then
  6953. lt_prog_compiler_wl='-Wl,'
  6954. lt_prog_compiler_static='-static'
  6955. case $host_os in
  6956. aix*)
  6957. # All AIX code is PIC.
  6958. if test "$host_cpu" = ia64; then
  6959. # AIX 5 now supports IA64 processor
  6960. lt_prog_compiler_static='-Bstatic'
  6961. fi
  6962. ;;
  6963. amigaos*)
  6964. # FIXME: we need at least 68020 code to build shared libraries, but
  6965. # adding the `-m68020' flag to GCC prevents building anything better,
  6966. # like `-m68040'.
  6967. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6968. ;;
  6969. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6970. # PIC is the default for these OSes.
  6971. ;;
  6972. mingw* | cygwin* | pw32* | os2*)
  6973. # This hack is so that the source file can tell whether it is being
  6974. # built for inclusion in a dll (and should export symbols for example).
  6975. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6976. # (--disable-auto-import) libraries
  6977. lt_prog_compiler_pic='-DDLL_EXPORT'
  6978. ;;
  6979. darwin* | rhapsody*)
  6980. # PIC is the default on this platform
  6981. # Common symbols not allowed in MH_DYLIB files
  6982. lt_prog_compiler_pic='-fno-common'
  6983. ;;
  6984. interix[3-9]*)
  6985. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6986. # Instead, we relocate shared libraries at runtime.
  6987. ;;
  6988. msdosdjgpp*)
  6989. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6990. # on systems that don't support them.
  6991. lt_prog_compiler_can_build_shared=no
  6992. enable_shared=no
  6993. ;;
  6994. sysv4*MP*)
  6995. if test -d /usr/nec; then
  6996. lt_prog_compiler_pic=-Kconform_pic
  6997. fi
  6998. ;;
  6999. hpux*)
  7000. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7001. # not for PA HP-UX.
  7002. case $host_cpu in
  7003. hppa*64*|ia64*)
  7004. # +Z the default
  7005. ;;
  7006. *)
  7007. lt_prog_compiler_pic='-fPIC'
  7008. ;;
  7009. esac
  7010. ;;
  7011. *)
  7012. lt_prog_compiler_pic='-fPIC'
  7013. ;;
  7014. esac
  7015. else
  7016. # PORTME Check for flag to pass linker flags through the system compiler.
  7017. case $host_os in
  7018. aix*)
  7019. lt_prog_compiler_wl='-Wl,'
  7020. if test "$host_cpu" = ia64; then
  7021. # AIX 5 now supports IA64 processor
  7022. lt_prog_compiler_static='-Bstatic'
  7023. else
  7024. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7025. fi
  7026. ;;
  7027. darwin*)
  7028. # PIC is the default on this platform
  7029. # Common symbols not allowed in MH_DYLIB files
  7030. case $cc_basename in
  7031. xlc*)
  7032. lt_prog_compiler_pic='-qnocommon'
  7033. lt_prog_compiler_wl='-Wl,'
  7034. ;;
  7035. esac
  7036. ;;
  7037. mingw* | cygwin* | pw32* | os2*)
  7038. # This hack is so that the source file can tell whether it is being
  7039. # built for inclusion in a dll (and should export symbols for example).
  7040. lt_prog_compiler_pic='-DDLL_EXPORT'
  7041. ;;
  7042. hpux9* | hpux10* | hpux11*)
  7043. lt_prog_compiler_wl='-Wl,'
  7044. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7045. # not for PA HP-UX.
  7046. case $host_cpu in
  7047. hppa*64*|ia64*)
  7048. # +Z the default
  7049. ;;
  7050. *)
  7051. lt_prog_compiler_pic='+Z'
  7052. ;;
  7053. esac
  7054. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7055. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7056. ;;
  7057. irix5* | irix6* | nonstopux*)
  7058. lt_prog_compiler_wl='-Wl,'
  7059. # PIC (with -KPIC) is the default.
  7060. lt_prog_compiler_static='-non_shared'
  7061. ;;
  7062. newsos6)
  7063. lt_prog_compiler_pic='-KPIC'
  7064. lt_prog_compiler_static='-Bstatic'
  7065. ;;
  7066. linux* | k*bsd*-gnu)
  7067. case $cc_basename in
  7068. icc* | ecc*)
  7069. lt_prog_compiler_wl='-Wl,'
  7070. lt_prog_compiler_pic='-KPIC'
  7071. lt_prog_compiler_static='-static'
  7072. ;;
  7073. pgcc* | pgf77* | pgf90* | pgf95*)
  7074. # Portland Group compilers (*not* the Pentium gcc compiler,
  7075. # which looks to be a dead project)
  7076. lt_prog_compiler_wl='-Wl,'
  7077. lt_prog_compiler_pic='-fpic'
  7078. lt_prog_compiler_static='-Bstatic'
  7079. ;;
  7080. ccc*)
  7081. lt_prog_compiler_wl='-Wl,'
  7082. # All Alpha code is PIC.
  7083. lt_prog_compiler_static='-non_shared'
  7084. ;;
  7085. *)
  7086. case `$CC -V 2>&1 | sed 5q` in
  7087. *Sun\ C*)
  7088. # Sun C 5.9
  7089. lt_prog_compiler_pic='-KPIC'
  7090. lt_prog_compiler_static='-Bstatic'
  7091. lt_prog_compiler_wl='-Wl,'
  7092. ;;
  7093. *Sun\ F*)
  7094. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7095. lt_prog_compiler_pic='-KPIC'
  7096. lt_prog_compiler_static='-Bstatic'
  7097. lt_prog_compiler_wl=''
  7098. ;;
  7099. esac
  7100. ;;
  7101. esac
  7102. ;;
  7103. osf3* | osf4* | osf5*)
  7104. lt_prog_compiler_wl='-Wl,'
  7105. # All OSF/1 code is PIC.
  7106. lt_prog_compiler_static='-non_shared'
  7107. ;;
  7108. rdos*)
  7109. lt_prog_compiler_static='-non_shared'
  7110. ;;
  7111. solaris*)
  7112. lt_prog_compiler_pic='-KPIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. case $cc_basename in
  7115. f77* | f90* | f95*)
  7116. lt_prog_compiler_wl='-Qoption ld ';;
  7117. *)
  7118. lt_prog_compiler_wl='-Wl,';;
  7119. esac
  7120. ;;
  7121. sunos4*)
  7122. lt_prog_compiler_wl='-Qoption ld '
  7123. lt_prog_compiler_pic='-PIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. ;;
  7126. sysv4 | sysv4.2uw2* | sysv4.3*)
  7127. lt_prog_compiler_wl='-Wl,'
  7128. lt_prog_compiler_pic='-KPIC'
  7129. lt_prog_compiler_static='-Bstatic'
  7130. ;;
  7131. sysv4*MP*)
  7132. if test -d /usr/nec ;then
  7133. lt_prog_compiler_pic='-Kconform_pic'
  7134. lt_prog_compiler_static='-Bstatic'
  7135. fi
  7136. ;;
  7137. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7138. lt_prog_compiler_wl='-Wl,'
  7139. lt_prog_compiler_pic='-KPIC'
  7140. lt_prog_compiler_static='-Bstatic'
  7141. ;;
  7142. unicos*)
  7143. lt_prog_compiler_wl='-Wl,'
  7144. lt_prog_compiler_can_build_shared=no
  7145. ;;
  7146. uts4*)
  7147. lt_prog_compiler_pic='-pic'
  7148. lt_prog_compiler_static='-Bstatic'
  7149. ;;
  7150. *)
  7151. lt_prog_compiler_can_build_shared=no
  7152. ;;
  7153. esac
  7154. fi
  7155. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7156. $as_echo "$lt_prog_compiler_pic" >&6; }
  7157. #
  7158. # Check to make sure the PIC flag actually works.
  7159. #
  7160. if test -n "$lt_prog_compiler_pic"; then
  7161. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7162. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7163. if test "${lt_prog_compiler_pic_works+set}" = set; then
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. lt_prog_compiler_pic_works=no
  7167. ac_outfile=conftest.$ac_objext
  7168. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7169. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7170. # Insert the option either (1) after the last *FLAGS variable, or
  7171. # (2) before a word containing "conftest.", or (3) at the end.
  7172. # Note that $ac_compile itself does not contain backslashes and begins
  7173. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7174. # The option is referenced via a variable to avoid confusing sed.
  7175. lt_compile=`echo "$ac_compile" | $SED \
  7176. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7177. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7178. -e 's:$: $lt_compiler_flag:'`
  7179. (eval echo "\"\$as_me:7970: $lt_compile\"" >&5)
  7180. (eval "$lt_compile" 2>conftest.err)
  7181. ac_status=$?
  7182. cat conftest.err >&5
  7183. echo "$as_me:7974: \$? = $ac_status" >&5
  7184. if (exit $ac_status) && test -s "$ac_outfile"; then
  7185. # The compiler can only warn and ignore the option if not recognized
  7186. # So say no if there are warnings other than the usual output.
  7187. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7188. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7189. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7190. lt_prog_compiler_pic_works=yes
  7191. fi
  7192. fi
  7193. $rm conftest*
  7194. fi
  7195. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  7196. $as_echo "$lt_prog_compiler_pic_works" >&6; }
  7197. if test x"$lt_prog_compiler_pic_works" = xyes; then
  7198. case $lt_prog_compiler_pic in
  7199. "" | " "*) ;;
  7200. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7201. esac
  7202. else
  7203. lt_prog_compiler_pic=
  7204. lt_prog_compiler_can_build_shared=no
  7205. fi
  7206. fi
  7207. case $host_os in
  7208. # For platforms which do not support PIC, -DPIC is meaningless:
  7209. *djgpp*)
  7210. lt_prog_compiler_pic=
  7211. ;;
  7212. *)
  7213. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7214. ;;
  7215. esac
  7216. #
  7217. # Check to make sure the static flag actually works.
  7218. #
  7219. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7220. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7221. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7222. if test "${lt_prog_compiler_static_works+set}" = set; then
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. lt_prog_compiler_static_works=no
  7226. save_LDFLAGS="$LDFLAGS"
  7227. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7228. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7229. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7230. # The linker can only warn and ignore the option if not recognized
  7231. # So say no if there are warnings
  7232. if test -s conftest.err; then
  7233. # Append any errors to the config.log.
  7234. cat conftest.err 1>&5
  7235. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7236. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7237. if diff conftest.exp conftest.er2 >/dev/null; then
  7238. lt_prog_compiler_static_works=yes
  7239. fi
  7240. else
  7241. lt_prog_compiler_static_works=yes
  7242. fi
  7243. fi
  7244. $rm conftest*
  7245. LDFLAGS="$save_LDFLAGS"
  7246. fi
  7247. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  7248. $as_echo "$lt_prog_compiler_static_works" >&6; }
  7249. if test x"$lt_prog_compiler_static_works" = xyes; then
  7250. :
  7251. else
  7252. lt_prog_compiler_static=
  7253. fi
  7254. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7255. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7256. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7257. $as_echo_n "(cached) " >&6
  7258. else
  7259. lt_cv_prog_compiler_c_o=no
  7260. $rm -r conftest 2>/dev/null
  7261. mkdir conftest
  7262. cd conftest
  7263. mkdir out
  7264. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7265. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7266. # Insert the option either (1) after the last *FLAGS variable, or
  7267. # (2) before a word containing "conftest.", or (3) at the end.
  7268. # Note that $ac_compile itself does not contain backslashes and begins
  7269. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7270. lt_compile=`echo "$ac_compile" | $SED \
  7271. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7272. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7273. -e 's:$: $lt_compiler_flag:'`
  7274. (eval echo "\"\$as_me:8074: $lt_compile\"" >&5)
  7275. (eval "$lt_compile" 2>out/conftest.err)
  7276. ac_status=$?
  7277. cat out/conftest.err >&5
  7278. echo "$as_me:8078: \$? = $ac_status" >&5
  7279. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7280. then
  7281. # The compiler can only warn and ignore the option if not recognized
  7282. # So say no if there are warnings
  7283. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7284. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7285. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7286. lt_cv_prog_compiler_c_o=yes
  7287. fi
  7288. fi
  7289. chmod u+w . 2>&5
  7290. $rm conftest*
  7291. # SGI C++ compiler will create directory out/ii_files/ for
  7292. # template instantiation
  7293. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7294. $rm out/* && rmdir out
  7295. cd ..
  7296. rmdir conftest
  7297. $rm conftest*
  7298. fi
  7299. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7300. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7301. hard_links="nottested"
  7302. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7303. # do not overwrite the value of need_locks provided by the user
  7304. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7305. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7306. hard_links=yes
  7307. $rm conftest*
  7308. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7309. touch conftest.a
  7310. ln conftest.a conftest.b 2>&5 || hard_links=no
  7311. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7312. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  7313. $as_echo "$hard_links" >&6; }
  7314. if test "$hard_links" = no; then
  7315. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7316. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7317. need_locks=warn
  7318. fi
  7319. else
  7320. need_locks=no
  7321. fi
  7322. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7323. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7324. runpath_var=
  7325. allow_undefined_flag=
  7326. enable_shared_with_static_runtimes=no
  7327. archive_cmds=
  7328. archive_expsym_cmds=
  7329. old_archive_From_new_cmds=
  7330. old_archive_from_expsyms_cmds=
  7331. export_dynamic_flag_spec=
  7332. whole_archive_flag_spec=
  7333. thread_safe_flag_spec=
  7334. hardcode_libdir_flag_spec=
  7335. hardcode_libdir_flag_spec_ld=
  7336. hardcode_libdir_separator=
  7337. hardcode_direct=no
  7338. hardcode_minus_L=no
  7339. hardcode_shlibpath_var=unsupported
  7340. link_all_deplibs=unknown
  7341. hardcode_automatic=no
  7342. module_cmds=
  7343. module_expsym_cmds=
  7344. always_export_symbols=no
  7345. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7346. # include_expsyms should be a list of space-separated symbols to be *always*
  7347. # included in the symbol list
  7348. include_expsyms=
  7349. # exclude_expsyms can be an extended regexp of symbols to exclude
  7350. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7351. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7352. # as well as any symbol that contains `d'.
  7353. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7354. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7355. # platforms (ab)use it in PIC code, but their linkers get confused if
  7356. # the symbol is explicitly referenced. Since portable code cannot
  7357. # rely on this symbol name, it's probably fine to never include it in
  7358. # preloaded symbol tables.
  7359. extract_expsyms_cmds=
  7360. # Just being paranoid about ensuring that cc_basename is set.
  7361. for cc_temp in $compiler""; do
  7362. case $cc_temp in
  7363. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7364. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7365. \-*) ;;
  7366. *) break;;
  7367. esac
  7368. done
  7369. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7370. case $host_os in
  7371. cygwin* | mingw* | pw32*)
  7372. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7373. # When not using gcc, we currently assume that we are using
  7374. # Microsoft Visual C++.
  7375. if test "$GCC" != yes; then
  7376. with_gnu_ld=no
  7377. fi
  7378. ;;
  7379. interix*)
  7380. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7381. with_gnu_ld=yes
  7382. ;;
  7383. openbsd*)
  7384. with_gnu_ld=no
  7385. ;;
  7386. esac
  7387. ld_shlibs=yes
  7388. if test "$with_gnu_ld" = yes; then
  7389. # If archive_cmds runs LD, not CC, wlarc should be empty
  7390. wlarc='${wl}'
  7391. # Set some defaults for GNU ld with shared library support. These
  7392. # are reset later if shared libraries are not supported. Putting them
  7393. # here allows them to be overridden if necessary.
  7394. runpath_var=LD_RUN_PATH
  7395. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7396. export_dynamic_flag_spec='${wl}--export-dynamic'
  7397. # ancient GNU ld didn't support --whole-archive et. al.
  7398. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7399. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7400. else
  7401. whole_archive_flag_spec=
  7402. fi
  7403. supports_anon_versioning=no
  7404. case `$LD -v 2>/dev/null` in
  7405. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7406. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7407. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7408. *\ 2.11.*) ;; # other 2.11 versions
  7409. *) supports_anon_versioning=yes ;;
  7410. esac
  7411. # See if GNU ld supports shared libraries.
  7412. case $host_os in
  7413. aix3* | aix4* | aix5*)
  7414. # On AIX/PPC, the GNU linker is very broken
  7415. if test "$host_cpu" != ia64; then
  7416. ld_shlibs=no
  7417. cat <<EOF 1>&2
  7418. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7419. *** to be unable to reliably create shared libraries on AIX.
  7420. *** Therefore, libtool is disabling shared libraries support. If you
  7421. *** really care for shared libraries, you may want to modify your PATH
  7422. *** so that a non-GNU linker is found, and then restart.
  7423. EOF
  7424. fi
  7425. ;;
  7426. amigaos*)
  7427. 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)'
  7428. hardcode_libdir_flag_spec='-L$libdir'
  7429. hardcode_minus_L=yes
  7430. # Samuel A. Falvo II <[email protected]> reports
  7431. # that the semantics of dynamic libraries on AmigaOS, at least up
  7432. # to version 4, is to share data among multiple programs linked
  7433. # with the same dynamic library. Since this doesn't match the
  7434. # behavior of shared libraries on other platforms, we can't use
  7435. # them.
  7436. ld_shlibs=no
  7437. ;;
  7438. beos*)
  7439. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7440. allow_undefined_flag=unsupported
  7441. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7442. # support --undefined. This deserves some investigation. FIXME
  7443. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7444. else
  7445. ld_shlibs=no
  7446. fi
  7447. ;;
  7448. cygwin* | mingw* | pw32*)
  7449. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7450. # as there is no search path for DLLs.
  7451. hardcode_libdir_flag_spec='-L$libdir'
  7452. allow_undefined_flag=unsupported
  7453. always_export_symbols=no
  7454. enable_shared_with_static_runtimes=yes
  7455. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7456. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7457. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7458. # If the export-symbols file already is a .def file (1st line
  7459. # is EXPORTS), use it as is; otherwise, prepend...
  7460. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7461. cp $export_symbols $output_objdir/$soname.def;
  7462. else
  7463. echo EXPORTS > $output_objdir/$soname.def;
  7464. cat $export_symbols >> $output_objdir/$soname.def;
  7465. fi~
  7466. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7467. else
  7468. ld_shlibs=no
  7469. fi
  7470. ;;
  7471. interix[3-9]*)
  7472. hardcode_direct=no
  7473. hardcode_shlibpath_var=no
  7474. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7475. export_dynamic_flag_spec='${wl}-E'
  7476. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7477. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7478. # default) and relocated if they conflict, which is a slow very memory
  7479. # consuming and fragmenting process. To avoid this, we pick a random,
  7480. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7481. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7482. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7483. 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'
  7484. ;;
  7485. gnu* | linux* | k*bsd*-gnu)
  7486. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7487. tmp_addflag=
  7488. case $cc_basename,$host_cpu in
  7489. pgcc*) # Portland Group C compiler
  7490. 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'
  7491. tmp_addflag=' $pic_flag'
  7492. ;;
  7493. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7494. 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'
  7495. tmp_addflag=' $pic_flag -Mnomain' ;;
  7496. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7497. tmp_addflag=' -i_dynamic' ;;
  7498. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7499. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7500. ifc* | ifort*) # Intel Fortran compiler
  7501. tmp_addflag=' -nofor_main' ;;
  7502. esac
  7503. case `$CC -V 2>&1 | sed 5q` in
  7504. *Sun\ C*) # Sun C 5.9
  7505. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7506. tmp_sharedflag='-G' ;;
  7507. *Sun\ F*) # Sun Fortran 8.3
  7508. tmp_sharedflag='-G' ;;
  7509. *)
  7510. tmp_sharedflag='-shared' ;;
  7511. esac
  7512. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7513. if test $supports_anon_versioning = yes; then
  7514. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7515. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7516. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7517. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7518. fi
  7519. else
  7520. ld_shlibs=no
  7521. fi
  7522. ;;
  7523. netbsd*)
  7524. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7525. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7526. wlarc=
  7527. else
  7528. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7529. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7530. fi
  7531. ;;
  7532. solaris*)
  7533. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7534. ld_shlibs=no
  7535. cat <<EOF 1>&2
  7536. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7537. *** create shared libraries on Solaris systems. Therefore, libtool
  7538. *** is disabling shared libraries support. We urge you to upgrade GNU
  7539. *** binutils to release 2.9.1 or newer. Another option is to modify
  7540. *** your PATH or compiler configuration so that the native linker is
  7541. *** used, and then restart.
  7542. EOF
  7543. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7544. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7545. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7546. else
  7547. ld_shlibs=no
  7548. fi
  7549. ;;
  7550. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7551. case `$LD -v 2>&1` in
  7552. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7553. ld_shlibs=no
  7554. cat <<_LT_EOF 1>&2
  7555. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7556. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7557. *** is disabling shared libraries support. We urge you to upgrade GNU
  7558. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7559. *** your PATH or compiler configuration so that the native linker is
  7560. *** used, and then restart.
  7561. _LT_EOF
  7562. ;;
  7563. *)
  7564. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7565. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7566. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7567. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7568. else
  7569. ld_shlibs=no
  7570. fi
  7571. ;;
  7572. esac
  7573. ;;
  7574. sunos4*)
  7575. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7576. wlarc=
  7577. hardcode_direct=yes
  7578. hardcode_shlibpath_var=no
  7579. ;;
  7580. *)
  7581. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7582. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7583. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7584. else
  7585. ld_shlibs=no
  7586. fi
  7587. ;;
  7588. esac
  7589. if test "$ld_shlibs" = no; then
  7590. runpath_var=
  7591. hardcode_libdir_flag_spec=
  7592. export_dynamic_flag_spec=
  7593. whole_archive_flag_spec=
  7594. fi
  7595. else
  7596. # PORTME fill in a description of your system's linker (not GNU ld)
  7597. case $host_os in
  7598. aix3*)
  7599. allow_undefined_flag=unsupported
  7600. always_export_symbols=yes
  7601. 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'
  7602. # Note: this linker hardcodes the directories in LIBPATH if there
  7603. # are no directories specified by -L.
  7604. hardcode_minus_L=yes
  7605. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7606. # Neither direct hardcoding nor static linking is supported with a
  7607. # broken collect2.
  7608. hardcode_direct=unsupported
  7609. fi
  7610. ;;
  7611. aix4* | aix5*)
  7612. if test "$host_cpu" = ia64; then
  7613. # On IA64, the linker does run time linking by default, so we don't
  7614. # have to do anything special.
  7615. aix_use_runtimelinking=no
  7616. exp_sym_flag='-Bexport'
  7617. no_entry_flag=""
  7618. else
  7619. # If we're using GNU nm, then we don't want the "-C" option.
  7620. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7621. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7622. 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'
  7623. else
  7624. 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'
  7625. fi
  7626. aix_use_runtimelinking=no
  7627. # Test if we are trying to use run time linking or normal
  7628. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7629. # need to do runtime linking.
  7630. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7631. for ld_flag in $LDFLAGS; do
  7632. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7633. aix_use_runtimelinking=yes
  7634. break
  7635. fi
  7636. done
  7637. ;;
  7638. esac
  7639. exp_sym_flag='-bexport'
  7640. no_entry_flag='-bnoentry'
  7641. fi
  7642. # When large executables or shared objects are built, AIX ld can
  7643. # have problems creating the table of contents. If linking a library
  7644. # or program results in "error TOC overflow" add -mminimal-toc to
  7645. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7646. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7647. archive_cmds=''
  7648. hardcode_direct=yes
  7649. hardcode_libdir_separator=':'
  7650. link_all_deplibs=yes
  7651. if test "$GCC" = yes; then
  7652. case $host_os in aix4.[012]|aix4.[012].*)
  7653. # We only want to do this on AIX 4.2 and lower, the check
  7654. # below for broken collect2 doesn't work under 4.3+
  7655. collect2name=`${CC} -print-prog-name=collect2`
  7656. if test -f "$collect2name" && \
  7657. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7658. then
  7659. # We have reworked collect2
  7660. :
  7661. else
  7662. # We have old collect2
  7663. hardcode_direct=unsupported
  7664. # It fails to find uninstalled libraries when the uninstalled
  7665. # path is not listed in the libpath. Setting hardcode_minus_L
  7666. # to unsupported forces relinking
  7667. hardcode_minus_L=yes
  7668. hardcode_libdir_flag_spec='-L$libdir'
  7669. hardcode_libdir_separator=
  7670. fi
  7671. ;;
  7672. esac
  7673. shared_flag='-shared'
  7674. if test "$aix_use_runtimelinking" = yes; then
  7675. shared_flag="$shared_flag "'${wl}-G'
  7676. fi
  7677. else
  7678. # not using gcc
  7679. if test "$host_cpu" = ia64; then
  7680. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7681. # chokes on -Wl,-G. The following line is correct:
  7682. shared_flag='-G'
  7683. else
  7684. if test "$aix_use_runtimelinking" = yes; then
  7685. shared_flag='${wl}-G'
  7686. else
  7687. shared_flag='${wl}-bM:SRE'
  7688. fi
  7689. fi
  7690. fi
  7691. # It seems that -bexpall does not export symbols beginning with
  7692. # underscore (_), so it is better to generate a list of symbols to export.
  7693. always_export_symbols=yes
  7694. if test "$aix_use_runtimelinking" = yes; then
  7695. # Warning - without using the other runtime loading flags (-brtl),
  7696. # -berok will link without error, but may produce a broken library.
  7697. allow_undefined_flag='-berok'
  7698. # Determine the default libpath from the value encoded in an empty executable.
  7699. cat >conftest.$ac_ext <<_ACEOF
  7700. /* confdefs.h. */
  7701. _ACEOF
  7702. cat confdefs.h >>conftest.$ac_ext
  7703. cat >>conftest.$ac_ext <<_ACEOF
  7704. /* end confdefs.h. */
  7705. int
  7706. main ()
  7707. {
  7708. ;
  7709. return 0;
  7710. }
  7711. _ACEOF
  7712. rm -f conftest.$ac_objext conftest$ac_exeext
  7713. if { (ac_try="$ac_link"
  7714. case "(($ac_try" in
  7715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7716. *) ac_try_echo=$ac_try;;
  7717. esac
  7718. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7719. $as_echo "$ac_try_echo") >&5
  7720. (eval "$ac_link") 2>conftest.er1
  7721. ac_status=$?
  7722. grep -v '^ *+' conftest.er1 >conftest.err
  7723. rm -f conftest.er1
  7724. cat conftest.err >&5
  7725. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7726. (exit $ac_status); } && {
  7727. test -z "$ac_c_werror_flag" ||
  7728. test ! -s conftest.err
  7729. } && test -s conftest$ac_exeext && {
  7730. test "$cross_compiling" = yes ||
  7731. $as_test_x conftest$ac_exeext
  7732. }; then
  7733. lt_aix_libpath_sed='
  7734. /Import File Strings/,/^$/ {
  7735. /^0/ {
  7736. s/^0 *\(.*\)$/\1/
  7737. p
  7738. }
  7739. }'
  7740. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7741. # Check for a 64-bit object if we didn't find anything.
  7742. if test -z "$aix_libpath"; then
  7743. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7744. fi
  7745. else
  7746. $as_echo "$as_me: failed program was:" >&5
  7747. sed 's/^/| /' conftest.$ac_ext >&5
  7748. fi
  7749. rm -rf conftest.dSYM
  7750. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7751. conftest$ac_exeext conftest.$ac_ext
  7752. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7753. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7754. 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"
  7755. else
  7756. if test "$host_cpu" = ia64; then
  7757. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7758. allow_undefined_flag="-z nodefs"
  7759. 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"
  7760. else
  7761. # Determine the default libpath from the value encoded in an empty executable.
  7762. cat >conftest.$ac_ext <<_ACEOF
  7763. /* confdefs.h. */
  7764. _ACEOF
  7765. cat confdefs.h >>conftest.$ac_ext
  7766. cat >>conftest.$ac_ext <<_ACEOF
  7767. /* end confdefs.h. */
  7768. int
  7769. main ()
  7770. {
  7771. ;
  7772. return 0;
  7773. }
  7774. _ACEOF
  7775. rm -f conftest.$ac_objext conftest$ac_exeext
  7776. if { (ac_try="$ac_link"
  7777. case "(($ac_try" in
  7778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7779. *) ac_try_echo=$ac_try;;
  7780. esac
  7781. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7782. $as_echo "$ac_try_echo") >&5
  7783. (eval "$ac_link") 2>conftest.er1
  7784. ac_status=$?
  7785. grep -v '^ *+' conftest.er1 >conftest.err
  7786. rm -f conftest.er1
  7787. cat conftest.err >&5
  7788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7789. (exit $ac_status); } && {
  7790. test -z "$ac_c_werror_flag" ||
  7791. test ! -s conftest.err
  7792. } && test -s conftest$ac_exeext && {
  7793. test "$cross_compiling" = yes ||
  7794. $as_test_x conftest$ac_exeext
  7795. }; then
  7796. lt_aix_libpath_sed='
  7797. /Import File Strings/,/^$/ {
  7798. /^0/ {
  7799. s/^0 *\(.*\)$/\1/
  7800. p
  7801. }
  7802. }'
  7803. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7804. # Check for a 64-bit object if we didn't find anything.
  7805. if test -z "$aix_libpath"; then
  7806. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7807. fi
  7808. else
  7809. $as_echo "$as_me: failed program was:" >&5
  7810. sed 's/^/| /' conftest.$ac_ext >&5
  7811. fi
  7812. rm -rf conftest.dSYM
  7813. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7814. conftest$ac_exeext conftest.$ac_ext
  7815. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7816. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7817. # Warning - without using the other run time loading flags,
  7818. # -berok will link without error, but may produce a broken library.
  7819. no_undefined_flag=' ${wl}-bernotok'
  7820. allow_undefined_flag=' ${wl}-berok'
  7821. # Exported symbols can be pulled into shared objects from archives
  7822. whole_archive_flag_spec='$convenience'
  7823. archive_cmds_need_lc=yes
  7824. # This is similar to how AIX traditionally builds its shared libraries.
  7825. 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'
  7826. fi
  7827. fi
  7828. ;;
  7829. amigaos*)
  7830. 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)'
  7831. hardcode_libdir_flag_spec='-L$libdir'
  7832. hardcode_minus_L=yes
  7833. # see comment about different semantics on the GNU ld section
  7834. ld_shlibs=no
  7835. ;;
  7836. bsdi[45]*)
  7837. export_dynamic_flag_spec=-rdynamic
  7838. ;;
  7839. cygwin* | mingw* | pw32*)
  7840. # When not using gcc, we currently assume that we are using
  7841. # Microsoft Visual C++.
  7842. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7843. # no search path for DLLs.
  7844. hardcode_libdir_flag_spec=' '
  7845. allow_undefined_flag=unsupported
  7846. # Tell ltmain to make .lib files, not .a files.
  7847. libext=lib
  7848. # Tell ltmain to make .dll files, not .so files.
  7849. shrext_cmds=".dll"
  7850. # FIXME: Setting linknames here is a bad hack.
  7851. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7852. # The linker will automatically build a .lib file if we build a DLL.
  7853. old_archive_From_new_cmds='true'
  7854. # FIXME: Should let the user specify the lib program.
  7855. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7856. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7857. enable_shared_with_static_runtimes=yes
  7858. ;;
  7859. darwin* | rhapsody*)
  7860. case $host_os in
  7861. rhapsody* | darwin1.[012])
  7862. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7863. ;;
  7864. *) # Darwin 1.3 on
  7865. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7866. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7867. else
  7868. case ${MACOSX_DEPLOYMENT_TARGET} in
  7869. 10.[012])
  7870. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7871. ;;
  7872. 10.*)
  7873. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7874. ;;
  7875. esac
  7876. fi
  7877. ;;
  7878. esac
  7879. archive_cmds_need_lc=no
  7880. hardcode_direct=no
  7881. hardcode_automatic=yes
  7882. hardcode_shlibpath_var=unsupported
  7883. whole_archive_flag_spec=''
  7884. link_all_deplibs=yes
  7885. if test "$GCC" = yes ; then
  7886. output_verbose_link_cmd='echo'
  7887. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7888. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7889. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7890. 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}'
  7891. 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}'
  7892. else
  7893. case $cc_basename in
  7894. xlc*)
  7895. output_verbose_link_cmd='echo'
  7896. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7897. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7898. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7899. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7900. 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}'
  7901. ;;
  7902. *)
  7903. ld_shlibs=no
  7904. ;;
  7905. esac
  7906. fi
  7907. ;;
  7908. dgux*)
  7909. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7910. hardcode_libdir_flag_spec='-L$libdir'
  7911. hardcode_shlibpath_var=no
  7912. ;;
  7913. freebsd1*)
  7914. ld_shlibs=no
  7915. ;;
  7916. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7917. # support. Future versions do this automatically, but an explicit c++rt0.o
  7918. # does not break anything, and helps significantly (at the cost of a little
  7919. # extra space).
  7920. freebsd2.2*)
  7921. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7922. hardcode_libdir_flag_spec='-R$libdir'
  7923. hardcode_direct=yes
  7924. hardcode_shlibpath_var=no
  7925. ;;
  7926. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7927. freebsd2*)
  7928. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7929. hardcode_direct=yes
  7930. hardcode_minus_L=yes
  7931. hardcode_shlibpath_var=no
  7932. ;;
  7933. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7934. freebsd* | dragonfly*)
  7935. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7936. hardcode_libdir_flag_spec='-R$libdir'
  7937. hardcode_direct=yes
  7938. hardcode_shlibpath_var=no
  7939. ;;
  7940. hpux9*)
  7941. if test "$GCC" = yes; then
  7942. 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'
  7943. else
  7944. 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'
  7945. fi
  7946. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7947. hardcode_libdir_separator=:
  7948. hardcode_direct=yes
  7949. # hardcode_minus_L: Not really in the search PATH,
  7950. # but as the default location of the library.
  7951. hardcode_minus_L=yes
  7952. export_dynamic_flag_spec='${wl}-E'
  7953. ;;
  7954. hpux10*)
  7955. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7956. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7957. else
  7958. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7959. fi
  7960. if test "$with_gnu_ld" = no; then
  7961. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7962. hardcode_libdir_separator=:
  7963. hardcode_direct=yes
  7964. export_dynamic_flag_spec='${wl}-E'
  7965. # hardcode_minus_L: Not really in the search PATH,
  7966. # but as the default location of the library.
  7967. hardcode_minus_L=yes
  7968. fi
  7969. ;;
  7970. hpux11*)
  7971. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7972. case $host_cpu in
  7973. hppa*64*)
  7974. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7975. ;;
  7976. ia64*)
  7977. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7978. ;;
  7979. *)
  7980. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7981. ;;
  7982. esac
  7983. else
  7984. case $host_cpu in
  7985. hppa*64*)
  7986. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7987. ;;
  7988. ia64*)
  7989. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7990. ;;
  7991. *)
  7992. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7993. ;;
  7994. esac
  7995. fi
  7996. if test "$with_gnu_ld" = no; then
  7997. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7998. hardcode_libdir_separator=:
  7999. case $host_cpu in
  8000. hppa*64*|ia64*)
  8001. hardcode_libdir_flag_spec_ld='+b $libdir'
  8002. hardcode_direct=no
  8003. hardcode_shlibpath_var=no
  8004. ;;
  8005. *)
  8006. hardcode_direct=yes
  8007. export_dynamic_flag_spec='${wl}-E'
  8008. # hardcode_minus_L: Not really in the search PATH,
  8009. # but as the default location of the library.
  8010. hardcode_minus_L=yes
  8011. ;;
  8012. esac
  8013. fi
  8014. ;;
  8015. irix5* | irix6* | nonstopux*)
  8016. if test "$GCC" = yes; then
  8017. 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'
  8018. else
  8019. 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'
  8020. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8021. fi
  8022. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8023. hardcode_libdir_separator=:
  8024. link_all_deplibs=yes
  8025. ;;
  8026. netbsd*)
  8027. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8028. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8029. else
  8030. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8031. fi
  8032. hardcode_libdir_flag_spec='-R$libdir'
  8033. hardcode_direct=yes
  8034. hardcode_shlibpath_var=no
  8035. ;;
  8036. newsos6)
  8037. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8038. hardcode_direct=yes
  8039. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8040. hardcode_libdir_separator=:
  8041. hardcode_shlibpath_var=no
  8042. ;;
  8043. openbsd*)
  8044. if test -f /usr/libexec/ld.so; then
  8045. hardcode_direct=yes
  8046. hardcode_shlibpath_var=no
  8047. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8048. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8049. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8050. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8051. export_dynamic_flag_spec='${wl}-E'
  8052. else
  8053. case $host_os in
  8054. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8055. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8056. hardcode_libdir_flag_spec='-R$libdir'
  8057. ;;
  8058. *)
  8059. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8060. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8061. ;;
  8062. esac
  8063. fi
  8064. else
  8065. ld_shlibs=no
  8066. fi
  8067. ;;
  8068. os2*)
  8069. hardcode_libdir_flag_spec='-L$libdir'
  8070. hardcode_minus_L=yes
  8071. allow_undefined_flag=unsupported
  8072. 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'
  8073. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8074. ;;
  8075. osf3*)
  8076. if test "$GCC" = yes; then
  8077. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8078. 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'
  8079. else
  8080. allow_undefined_flag=' -expect_unresolved \*'
  8081. 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'
  8082. fi
  8083. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8084. hardcode_libdir_separator=:
  8085. ;;
  8086. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8087. if test "$GCC" = yes; then
  8088. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8089. 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'
  8090. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8091. else
  8092. allow_undefined_flag=' -expect_unresolved \*'
  8093. 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'
  8094. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8095. $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'
  8096. # Both c and cxx compiler support -rpath directly
  8097. hardcode_libdir_flag_spec='-rpath $libdir'
  8098. fi
  8099. hardcode_libdir_separator=:
  8100. ;;
  8101. solaris*)
  8102. no_undefined_flag=' -z text'
  8103. if test "$GCC" = yes; then
  8104. wlarc='${wl}'
  8105. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8106. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8107. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8108. else
  8109. wlarc=''
  8110. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8111. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8112. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8113. fi
  8114. hardcode_libdir_flag_spec='-R$libdir'
  8115. hardcode_shlibpath_var=no
  8116. case $host_os in
  8117. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8118. *)
  8119. # The compiler driver will combine and reorder linker options,
  8120. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8121. # but is careful enough not to reorder.
  8122. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8123. if test "$GCC" = yes; then
  8124. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8125. else
  8126. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8127. fi
  8128. ;;
  8129. esac
  8130. link_all_deplibs=yes
  8131. ;;
  8132. sunos4*)
  8133. if test "x$host_vendor" = xsequent; then
  8134. # Use $CC to link under sequent, because it throws in some extra .o
  8135. # files that make .init and .fini sections work.
  8136. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8137. else
  8138. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8139. fi
  8140. hardcode_libdir_flag_spec='-L$libdir'
  8141. hardcode_direct=yes
  8142. hardcode_minus_L=yes
  8143. hardcode_shlibpath_var=no
  8144. ;;
  8145. sysv4)
  8146. case $host_vendor in
  8147. sni)
  8148. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8149. hardcode_direct=yes # is this really true???
  8150. ;;
  8151. siemens)
  8152. ## LD is ld it makes a PLAMLIB
  8153. ## CC just makes a GrossModule.
  8154. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8155. reload_cmds='$CC -r -o $output$reload_objs'
  8156. hardcode_direct=no
  8157. ;;
  8158. motorola)
  8159. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8160. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8161. ;;
  8162. esac
  8163. runpath_var='LD_RUN_PATH'
  8164. hardcode_shlibpath_var=no
  8165. ;;
  8166. sysv4.3*)
  8167. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8168. hardcode_shlibpath_var=no
  8169. export_dynamic_flag_spec='-Bexport'
  8170. ;;
  8171. sysv4*MP*)
  8172. if test -d /usr/nec; then
  8173. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8174. hardcode_shlibpath_var=no
  8175. runpath_var=LD_RUN_PATH
  8176. hardcode_runpath_var=yes
  8177. ld_shlibs=yes
  8178. fi
  8179. ;;
  8180. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8181. no_undefined_flag='${wl}-z,text'
  8182. archive_cmds_need_lc=no
  8183. hardcode_shlibpath_var=no
  8184. runpath_var='LD_RUN_PATH'
  8185. if test "$GCC" = yes; then
  8186. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8187. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8188. else
  8189. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8190. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8191. fi
  8192. ;;
  8193. sysv5* | sco3.2v5* | sco5v6*)
  8194. # Note: We can NOT use -z defs as we might desire, because we do not
  8195. # link with -lc, and that would cause any symbols used from libc to
  8196. # always be unresolved, which means just about no library would
  8197. # ever link correctly. If we're not using GNU ld we use -z text
  8198. # though, which does catch some bad symbols but isn't as heavy-handed
  8199. # as -z defs.
  8200. no_undefined_flag='${wl}-z,text'
  8201. allow_undefined_flag='${wl}-z,nodefs'
  8202. archive_cmds_need_lc=no
  8203. hardcode_shlibpath_var=no
  8204. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  8205. hardcode_libdir_separator=':'
  8206. link_all_deplibs=yes
  8207. export_dynamic_flag_spec='${wl}-Bexport'
  8208. runpath_var='LD_RUN_PATH'
  8209. if test "$GCC" = yes; then
  8210. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8211. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8212. else
  8213. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8214. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8215. fi
  8216. ;;
  8217. uts4*)
  8218. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8219. hardcode_libdir_flag_spec='-L$libdir'
  8220. hardcode_shlibpath_var=no
  8221. ;;
  8222. *)
  8223. ld_shlibs=no
  8224. ;;
  8225. esac
  8226. fi
  8227. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8228. $as_echo "$ld_shlibs" >&6; }
  8229. test "$ld_shlibs" = no && can_build_shared=no
  8230. #
  8231. # Do we need to explicitly link libc?
  8232. #
  8233. case "x$archive_cmds_need_lc" in
  8234. x|xyes)
  8235. # Assume -lc should be added
  8236. archive_cmds_need_lc=yes
  8237. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8238. case $archive_cmds in
  8239. *'~'*)
  8240. # FIXME: we may have to deal with multi-command sequences.
  8241. ;;
  8242. '$CC '*)
  8243. # Test whether the compiler implicitly links with -lc since on some
  8244. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8245. # to ld, don't add -lc before -lgcc.
  8246. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8247. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8248. $rm conftest*
  8249. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8250. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8251. (eval $ac_compile) 2>&5
  8252. ac_status=$?
  8253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8254. (exit $ac_status); } 2>conftest.err; then
  8255. soname=conftest
  8256. lib=conftest
  8257. libobjs=conftest.$ac_objext
  8258. deplibs=
  8259. wl=$lt_prog_compiler_wl
  8260. pic_flag=$lt_prog_compiler_pic
  8261. compiler_flags=-v
  8262. linker_flags=-v
  8263. verstring=
  8264. output_objdir=.
  8265. libname=conftest
  8266. lt_save_allow_undefined_flag=$allow_undefined_flag
  8267. allow_undefined_flag=
  8268. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8269. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8270. ac_status=$?
  8271. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8272. (exit $ac_status); }
  8273. then
  8274. archive_cmds_need_lc=no
  8275. else
  8276. archive_cmds_need_lc=yes
  8277. fi
  8278. allow_undefined_flag=$lt_save_allow_undefined_flag
  8279. else
  8280. cat conftest.err 1>&5
  8281. fi
  8282. $rm conftest*
  8283. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8284. $as_echo "$archive_cmds_need_lc" >&6; }
  8285. ;;
  8286. esac
  8287. fi
  8288. ;;
  8289. esac
  8290. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8291. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8292. library_names_spec=
  8293. libname_spec='lib$name'
  8294. soname_spec=
  8295. shrext_cmds=".so"
  8296. postinstall_cmds=
  8297. postuninstall_cmds=
  8298. finish_cmds=
  8299. finish_eval=
  8300. shlibpath_var=
  8301. shlibpath_overrides_runpath=unknown
  8302. version_type=none
  8303. dynamic_linker="$host_os ld.so"
  8304. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8305. if test "$GCC" = yes; then
  8306. case $host_os in
  8307. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8308. *) lt_awk_arg="/^libraries:/" ;;
  8309. esac
  8310. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8311. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8312. # if the path contains ";" then we assume it to be the separator
  8313. # otherwise default to the standard path separator (i.e. ":") - it is
  8314. # assumed that no part of a normal pathname contains ";" but that should
  8315. # okay in the real world where ";" in dirpaths is itself problematic.
  8316. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8317. else
  8318. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8319. fi
  8320. # Ok, now we have the path, separated by spaces, we can step through it
  8321. # and add multilib dir if necessary.
  8322. lt_tmp_lt_search_path_spec=
  8323. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8324. for lt_sys_path in $lt_search_path_spec; do
  8325. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8326. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8327. else
  8328. test -d "$lt_sys_path" && \
  8329. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8330. fi
  8331. done
  8332. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8333. BEGIN {RS=" "; FS="/|\n";} {
  8334. lt_foo="";
  8335. lt_count=0;
  8336. for (lt_i = NF; lt_i > 0; lt_i--) {
  8337. if ($lt_i != "" && $lt_i != ".") {
  8338. if ($lt_i == "..") {
  8339. lt_count++;
  8340. } else {
  8341. if (lt_count == 0) {
  8342. lt_foo="/" $lt_i lt_foo;
  8343. } else {
  8344. lt_count--;
  8345. }
  8346. }
  8347. }
  8348. }
  8349. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8350. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8351. }'`
  8352. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8353. else
  8354. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8355. fi
  8356. need_lib_prefix=unknown
  8357. hardcode_into_libs=no
  8358. # when you set need_version to no, make sure it does not cause -set_version
  8359. # flags to be left without arguments
  8360. need_version=unknown
  8361. case $host_os in
  8362. aix3*)
  8363. version_type=linux
  8364. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8365. shlibpath_var=LIBPATH
  8366. # AIX 3 has no versioning support, so we append a major version to the name.
  8367. soname_spec='${libname}${release}${shared_ext}$major'
  8368. ;;
  8369. aix4* | aix5*)
  8370. version_type=linux
  8371. need_lib_prefix=no
  8372. need_version=no
  8373. hardcode_into_libs=yes
  8374. if test "$host_cpu" = ia64; then
  8375. # AIX 5 supports IA64
  8376. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8377. shlibpath_var=LD_LIBRARY_PATH
  8378. else
  8379. # With GCC up to 2.95.x, collect2 would create an import file
  8380. # for dependence libraries. The import file would start with
  8381. # the line `#! .'. This would cause the generated library to
  8382. # depend on `.', always an invalid library. This was fixed in
  8383. # development snapshots of GCC prior to 3.0.
  8384. case $host_os in
  8385. aix4 | aix4.[01] | aix4.[01].*)
  8386. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8387. echo ' yes '
  8388. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8389. :
  8390. else
  8391. can_build_shared=no
  8392. fi
  8393. ;;
  8394. esac
  8395. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8396. # soname into executable. Probably we can add versioning support to
  8397. # collect2, so additional links can be useful in future.
  8398. if test "$aix_use_runtimelinking" = yes; then
  8399. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8400. # instead of lib<name>.a to let people know that these are not
  8401. # typical AIX shared libraries.
  8402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8403. else
  8404. # We preserve .a as extension for shared libraries through AIX4.2
  8405. # and later when we are not doing run time linking.
  8406. library_names_spec='${libname}${release}.a $libname.a'
  8407. soname_spec='${libname}${release}${shared_ext}$major'
  8408. fi
  8409. shlibpath_var=LIBPATH
  8410. fi
  8411. ;;
  8412. amigaos*)
  8413. library_names_spec='$libname.ixlibrary $libname.a'
  8414. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8415. 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'
  8416. ;;
  8417. beos*)
  8418. library_names_spec='${libname}${shared_ext}'
  8419. dynamic_linker="$host_os ld.so"
  8420. shlibpath_var=LIBRARY_PATH
  8421. ;;
  8422. bsdi[45]*)
  8423. version_type=linux
  8424. need_version=no
  8425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8426. soname_spec='${libname}${release}${shared_ext}$major'
  8427. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8428. shlibpath_var=LD_LIBRARY_PATH
  8429. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8430. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8431. # the default ld.so.conf also contains /usr/contrib/lib and
  8432. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8433. # libtool to hard-code these into programs
  8434. ;;
  8435. cygwin* | mingw* | pw32*)
  8436. version_type=windows
  8437. shrext_cmds=".dll"
  8438. need_version=no
  8439. need_lib_prefix=no
  8440. case $GCC,$host_os in
  8441. yes,cygwin* | yes,mingw* | yes,pw32*)
  8442. library_names_spec='$libname.dll.a'
  8443. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8444. postinstall_cmds='base_file=`basename \${file}`~
  8445. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8446. dldir=$destdir/`dirname \$dlpath`~
  8447. test -d \$dldir || mkdir -p \$dldir~
  8448. $install_prog $dir/$dlname \$dldir/$dlname~
  8449. chmod a+x \$dldir/$dlname'
  8450. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8451. dlpath=$dir/\$dldll~
  8452. $rm \$dlpath'
  8453. shlibpath_overrides_runpath=yes
  8454. case $host_os in
  8455. cygwin*)
  8456. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8457. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8458. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8459. ;;
  8460. mingw*)
  8461. # MinGW DLLs use traditional 'lib' prefix
  8462. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8463. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8464. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8465. # It is most probably a Windows format PATH printed by
  8466. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8467. # path with ; separators, and with drive letters. We can handle the
  8468. # drive letters (cygwin fileutils understands them), so leave them,
  8469. # especially as we might pass files found there to a mingw objdump,
  8470. # which wouldn't understand a cygwinified path. Ahh.
  8471. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8472. else
  8473. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8474. fi
  8475. ;;
  8476. pw32*)
  8477. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8478. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8479. ;;
  8480. esac
  8481. ;;
  8482. *)
  8483. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8484. ;;
  8485. esac
  8486. dynamic_linker='Win32 ld.exe'
  8487. # FIXME: first we should search . and the directory the executable is in
  8488. shlibpath_var=PATH
  8489. ;;
  8490. darwin* | rhapsody*)
  8491. dynamic_linker="$host_os dyld"
  8492. version_type=darwin
  8493. need_lib_prefix=no
  8494. need_version=no
  8495. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8496. soname_spec='${libname}${release}${major}$shared_ext'
  8497. shlibpath_overrides_runpath=yes
  8498. shlibpath_var=DYLD_LIBRARY_PATH
  8499. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8500. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8501. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8502. ;;
  8503. dgux*)
  8504. version_type=linux
  8505. need_lib_prefix=no
  8506. need_version=no
  8507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8508. soname_spec='${libname}${release}${shared_ext}$major'
  8509. shlibpath_var=LD_LIBRARY_PATH
  8510. ;;
  8511. freebsd1*)
  8512. dynamic_linker=no
  8513. ;;
  8514. freebsd* | dragonfly*)
  8515. # DragonFly does not have aout. When/if they implement a new
  8516. # versioning mechanism, adjust this.
  8517. if test -x /usr/bin/objformat; then
  8518. objformat=`/usr/bin/objformat`
  8519. else
  8520. case $host_os in
  8521. freebsd[123]*) objformat=aout ;;
  8522. *) objformat=elf ;;
  8523. esac
  8524. fi
  8525. version_type=freebsd-$objformat
  8526. case $version_type in
  8527. freebsd-elf*)
  8528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8529. need_version=no
  8530. need_lib_prefix=no
  8531. ;;
  8532. freebsd-*)
  8533. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8534. need_version=yes
  8535. ;;
  8536. esac
  8537. shlibpath_var=LD_LIBRARY_PATH
  8538. case $host_os in
  8539. freebsd2*)
  8540. shlibpath_overrides_runpath=yes
  8541. ;;
  8542. freebsd3.[01]* | freebsdelf3.[01]*)
  8543. shlibpath_overrides_runpath=yes
  8544. hardcode_into_libs=yes
  8545. ;;
  8546. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8547. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8548. shlibpath_overrides_runpath=no
  8549. hardcode_into_libs=yes
  8550. ;;
  8551. *) # from 4.6 on, and DragonFly
  8552. shlibpath_overrides_runpath=yes
  8553. hardcode_into_libs=yes
  8554. ;;
  8555. esac
  8556. ;;
  8557. gnu*)
  8558. version_type=linux
  8559. need_lib_prefix=no
  8560. need_version=no
  8561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8562. soname_spec='${libname}${release}${shared_ext}$major'
  8563. shlibpath_var=LD_LIBRARY_PATH
  8564. hardcode_into_libs=yes
  8565. ;;
  8566. hpux9* | hpux10* | hpux11*)
  8567. # Give a soname corresponding to the major version so that dld.sl refuses to
  8568. # link against other versions.
  8569. version_type=sunos
  8570. need_lib_prefix=no
  8571. need_version=no
  8572. case $host_cpu in
  8573. ia64*)
  8574. shrext_cmds='.so'
  8575. hardcode_into_libs=yes
  8576. dynamic_linker="$host_os dld.so"
  8577. shlibpath_var=LD_LIBRARY_PATH
  8578. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8580. soname_spec='${libname}${release}${shared_ext}$major'
  8581. if test "X$HPUX_IA64_MODE" = X32; then
  8582. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8583. else
  8584. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8585. fi
  8586. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8587. ;;
  8588. hppa*64*)
  8589. shrext_cmds='.sl'
  8590. hardcode_into_libs=yes
  8591. dynamic_linker="$host_os dld.sl"
  8592. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8593. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8595. soname_spec='${libname}${release}${shared_ext}$major'
  8596. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8597. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8598. ;;
  8599. *)
  8600. shrext_cmds='.sl'
  8601. dynamic_linker="$host_os dld.sl"
  8602. shlibpath_var=SHLIB_PATH
  8603. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8605. soname_spec='${libname}${release}${shared_ext}$major'
  8606. ;;
  8607. esac
  8608. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8609. postinstall_cmds='chmod 555 $lib'
  8610. ;;
  8611. interix[3-9]*)
  8612. version_type=linux
  8613. need_lib_prefix=no
  8614. need_version=no
  8615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8616. soname_spec='${libname}${release}${shared_ext}$major'
  8617. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8618. shlibpath_var=LD_LIBRARY_PATH
  8619. shlibpath_overrides_runpath=no
  8620. hardcode_into_libs=yes
  8621. ;;
  8622. irix5* | irix6* | nonstopux*)
  8623. case $host_os in
  8624. nonstopux*) version_type=nonstopux ;;
  8625. *)
  8626. if test "$lt_cv_prog_gnu_ld" = yes; then
  8627. version_type=linux
  8628. else
  8629. version_type=irix
  8630. fi ;;
  8631. esac
  8632. need_lib_prefix=no
  8633. need_version=no
  8634. soname_spec='${libname}${release}${shared_ext}$major'
  8635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8636. case $host_os in
  8637. irix5* | nonstopux*)
  8638. libsuff= shlibsuff=
  8639. ;;
  8640. *)
  8641. case $LD in # libtool.m4 will add one of these switches to LD
  8642. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8643. libsuff= shlibsuff= libmagic=32-bit;;
  8644. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8645. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8646. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8647. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8648. *) libsuff= shlibsuff= libmagic=never-match;;
  8649. esac
  8650. ;;
  8651. esac
  8652. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8653. shlibpath_overrides_runpath=no
  8654. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8655. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8656. hardcode_into_libs=yes
  8657. ;;
  8658. # No shared lib support for Linux oldld, aout, or coff.
  8659. linux*oldld* | linux*aout* | linux*coff*)
  8660. dynamic_linker=no
  8661. ;;
  8662. # This must be Linux ELF.
  8663. linux* | k*bsd*-gnu)
  8664. version_type=linux
  8665. need_lib_prefix=no
  8666. need_version=no
  8667. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8668. soname_spec='${libname}${release}${shared_ext}$major'
  8669. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8670. shlibpath_var=LD_LIBRARY_PATH
  8671. shlibpath_overrides_runpath=no
  8672. # This implies no fast_install, which is unacceptable.
  8673. # Some rework will be needed to allow for fast_install
  8674. # before this can be enabled.
  8675. hardcode_into_libs=yes
  8676. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8677. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8678. # Append ld.so.conf contents to the search path
  8679. if test -f /etc/ld.so.conf; then
  8680. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8681. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8682. fi
  8683. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8684. # powerpc, because MkLinux only supported shared libraries with the
  8685. # GNU dynamic linker. Since this was broken with cross compilers,
  8686. # most powerpc-linux boxes support dynamic linking these days and
  8687. # people can always --disable-shared, the test was removed, and we
  8688. # assume the GNU/Linux dynamic linker is in use.
  8689. dynamic_linker='GNU/Linux ld.so'
  8690. ;;
  8691. netbsd*)
  8692. version_type=sunos
  8693. need_lib_prefix=no
  8694. need_version=no
  8695. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8697. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8698. dynamic_linker='NetBSD (a.out) ld.so'
  8699. else
  8700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8701. soname_spec='${libname}${release}${shared_ext}$major'
  8702. dynamic_linker='NetBSD ld.elf_so'
  8703. fi
  8704. shlibpath_var=LD_LIBRARY_PATH
  8705. shlibpath_overrides_runpath=yes
  8706. hardcode_into_libs=yes
  8707. ;;
  8708. newsos6)
  8709. version_type=linux
  8710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8711. shlibpath_var=LD_LIBRARY_PATH
  8712. shlibpath_overrides_runpath=yes
  8713. ;;
  8714. nto-qnx*)
  8715. version_type=linux
  8716. need_lib_prefix=no
  8717. need_version=no
  8718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8719. soname_spec='${libname}${release}${shared_ext}$major'
  8720. shlibpath_var=LD_LIBRARY_PATH
  8721. shlibpath_overrides_runpath=yes
  8722. ;;
  8723. openbsd*)
  8724. version_type=sunos
  8725. sys_lib_dlsearch_path_spec="/usr/lib"
  8726. need_lib_prefix=no
  8727. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8728. case $host_os in
  8729. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8730. *) need_version=no ;;
  8731. esac
  8732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8733. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8734. shlibpath_var=LD_LIBRARY_PATH
  8735. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8736. case $host_os in
  8737. openbsd2.[89] | openbsd2.[89].*)
  8738. shlibpath_overrides_runpath=no
  8739. ;;
  8740. *)
  8741. shlibpath_overrides_runpath=yes
  8742. ;;
  8743. esac
  8744. else
  8745. shlibpath_overrides_runpath=yes
  8746. fi
  8747. ;;
  8748. os2*)
  8749. libname_spec='$name'
  8750. shrext_cmds=".dll"
  8751. need_lib_prefix=no
  8752. library_names_spec='$libname${shared_ext} $libname.a'
  8753. dynamic_linker='OS/2 ld.exe'
  8754. shlibpath_var=LIBPATH
  8755. ;;
  8756. osf3* | osf4* | osf5*)
  8757. version_type=osf
  8758. need_lib_prefix=no
  8759. need_version=no
  8760. soname_spec='${libname}${release}${shared_ext}$major'
  8761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8762. shlibpath_var=LD_LIBRARY_PATH
  8763. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8764. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8765. ;;
  8766. rdos*)
  8767. dynamic_linker=no
  8768. ;;
  8769. solaris*)
  8770. version_type=linux
  8771. need_lib_prefix=no
  8772. need_version=no
  8773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8774. soname_spec='${libname}${release}${shared_ext}$major'
  8775. shlibpath_var=LD_LIBRARY_PATH
  8776. shlibpath_overrides_runpath=yes
  8777. hardcode_into_libs=yes
  8778. # ldd complains unless libraries are executable
  8779. postinstall_cmds='chmod +x $lib'
  8780. ;;
  8781. sunos4*)
  8782. version_type=sunos
  8783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8784. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8785. shlibpath_var=LD_LIBRARY_PATH
  8786. shlibpath_overrides_runpath=yes
  8787. if test "$with_gnu_ld" = yes; then
  8788. need_lib_prefix=no
  8789. fi
  8790. need_version=yes
  8791. ;;
  8792. sysv4 | sysv4.3*)
  8793. version_type=linux
  8794. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8795. soname_spec='${libname}${release}${shared_ext}$major'
  8796. shlibpath_var=LD_LIBRARY_PATH
  8797. case $host_vendor in
  8798. sni)
  8799. shlibpath_overrides_runpath=no
  8800. need_lib_prefix=no
  8801. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8802. runpath_var=LD_RUN_PATH
  8803. ;;
  8804. siemens)
  8805. need_lib_prefix=no
  8806. ;;
  8807. motorola)
  8808. need_lib_prefix=no
  8809. need_version=no
  8810. shlibpath_overrides_runpath=no
  8811. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8812. ;;
  8813. esac
  8814. ;;
  8815. sysv4*MP*)
  8816. if test -d /usr/nec ;then
  8817. version_type=linux
  8818. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8819. soname_spec='$libname${shared_ext}.$major'
  8820. shlibpath_var=LD_LIBRARY_PATH
  8821. fi
  8822. ;;
  8823. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8824. version_type=freebsd-elf
  8825. need_lib_prefix=no
  8826. need_version=no
  8827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8828. soname_spec='${libname}${release}${shared_ext}$major'
  8829. shlibpath_var=LD_LIBRARY_PATH
  8830. hardcode_into_libs=yes
  8831. if test "$with_gnu_ld" = yes; then
  8832. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8833. shlibpath_overrides_runpath=no
  8834. else
  8835. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8836. shlibpath_overrides_runpath=yes
  8837. case $host_os in
  8838. sco3.2v5*)
  8839. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8840. ;;
  8841. esac
  8842. fi
  8843. sys_lib_dlsearch_path_spec='/usr/lib'
  8844. ;;
  8845. uts4*)
  8846. version_type=linux
  8847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8848. soname_spec='${libname}${release}${shared_ext}$major'
  8849. shlibpath_var=LD_LIBRARY_PATH
  8850. ;;
  8851. *)
  8852. dynamic_linker=no
  8853. ;;
  8854. esac
  8855. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8856. $as_echo "$dynamic_linker" >&6; }
  8857. test "$dynamic_linker" = no && can_build_shared=no
  8858. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8859. if test "$GCC" = yes; then
  8860. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8861. fi
  8862. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8863. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8864. hardcode_action=
  8865. if test -n "$hardcode_libdir_flag_spec" || \
  8866. test -n "$runpath_var" || \
  8867. test "X$hardcode_automatic" = "Xyes" ; then
  8868. # We can hardcode non-existant directories.
  8869. if test "$hardcode_direct" != no &&
  8870. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8871. # have to relink, otherwise we might link with an installed library
  8872. # when we should be linking with a yet-to-be-installed one
  8873. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8874. test "$hardcode_minus_L" != no; then
  8875. # Linking always hardcodes the temporary library directory.
  8876. hardcode_action=relink
  8877. else
  8878. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8879. hardcode_action=immediate
  8880. fi
  8881. else
  8882. # We cannot hardcode anything, or else we can only hardcode existing
  8883. # directories.
  8884. hardcode_action=unsupported
  8885. fi
  8886. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8887. $as_echo "$hardcode_action" >&6; }
  8888. if test "$hardcode_action" = relink; then
  8889. # Fast installation is not supported
  8890. enable_fast_install=no
  8891. elif test "$shlibpath_overrides_runpath" = yes ||
  8892. test "$enable_shared" = no; then
  8893. # Fast installation is not necessary
  8894. enable_fast_install=needless
  8895. fi
  8896. striplib=
  8897. old_striplib=
  8898. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8899. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  8900. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8901. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8902. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8903. { $as_echo "$as_me:$LINENO: result: yes" >&5
  8904. $as_echo "yes" >&6; }
  8905. else
  8906. # FIXME - insert some real tests, host_os isn't really good enough
  8907. case $host_os in
  8908. darwin*)
  8909. if test -n "$STRIP" ; then
  8910. striplib="$STRIP -x"
  8911. old_striplib="$STRIP -S"
  8912. { $as_echo "$as_me:$LINENO: result: yes" >&5
  8913. $as_echo "yes" >&6; }
  8914. else
  8915. { $as_echo "$as_me:$LINENO: result: no" >&5
  8916. $as_echo "no" >&6; }
  8917. fi
  8918. ;;
  8919. *)
  8920. { $as_echo "$as_me:$LINENO: result: no" >&5
  8921. $as_echo "no" >&6; }
  8922. ;;
  8923. esac
  8924. fi
  8925. if test "x$enable_dlopen" != xyes; then
  8926. enable_dlopen=unknown
  8927. enable_dlopen_self=unknown
  8928. enable_dlopen_self_static=unknown
  8929. else
  8930. lt_cv_dlopen=no
  8931. lt_cv_dlopen_libs=
  8932. case $host_os in
  8933. beos*)
  8934. lt_cv_dlopen="load_add_on"
  8935. lt_cv_dlopen_libs=
  8936. lt_cv_dlopen_self=yes
  8937. ;;
  8938. mingw* | pw32*)
  8939. lt_cv_dlopen="LoadLibrary"
  8940. lt_cv_dlopen_libs=
  8941. ;;
  8942. cygwin*)
  8943. lt_cv_dlopen="dlopen"
  8944. lt_cv_dlopen_libs=
  8945. ;;
  8946. darwin*)
  8947. # if libdl is installed we need to link against it
  8948. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8949. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8950. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8951. $as_echo_n "(cached) " >&6
  8952. else
  8953. ac_check_lib_save_LIBS=$LIBS
  8954. LIBS="-ldl $LIBS"
  8955. cat >conftest.$ac_ext <<_ACEOF
  8956. /* confdefs.h. */
  8957. _ACEOF
  8958. cat confdefs.h >>conftest.$ac_ext
  8959. cat >>conftest.$ac_ext <<_ACEOF
  8960. /* end confdefs.h. */
  8961. /* Override any GCC internal prototype to avoid an error.
  8962. Use char because int might match the return type of a GCC
  8963. builtin and then its argument prototype would still apply. */
  8964. #ifdef __cplusplus
  8965. extern "C"
  8966. #endif
  8967. char dlopen ();
  8968. int
  8969. main ()
  8970. {
  8971. return dlopen ();
  8972. ;
  8973. return 0;
  8974. }
  8975. _ACEOF
  8976. rm -f conftest.$ac_objext conftest$ac_exeext
  8977. if { (ac_try="$ac_link"
  8978. case "(($ac_try" in
  8979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8980. *) ac_try_echo=$ac_try;;
  8981. esac
  8982. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8983. $as_echo "$ac_try_echo") >&5
  8984. (eval "$ac_link") 2>conftest.er1
  8985. ac_status=$?
  8986. grep -v '^ *+' conftest.er1 >conftest.err
  8987. rm -f conftest.er1
  8988. cat conftest.err >&5
  8989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8990. (exit $ac_status); } && {
  8991. test -z "$ac_c_werror_flag" ||
  8992. test ! -s conftest.err
  8993. } && test -s conftest$ac_exeext && {
  8994. test "$cross_compiling" = yes ||
  8995. $as_test_x conftest$ac_exeext
  8996. }; then
  8997. ac_cv_lib_dl_dlopen=yes
  8998. else
  8999. $as_echo "$as_me: failed program was:" >&5
  9000. sed 's/^/| /' conftest.$ac_ext >&5
  9001. ac_cv_lib_dl_dlopen=no
  9002. fi
  9003. rm -rf conftest.dSYM
  9004. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9005. conftest$ac_exeext conftest.$ac_ext
  9006. LIBS=$ac_check_lib_save_LIBS
  9007. fi
  9008. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9009. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9010. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9011. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9012. else
  9013. lt_cv_dlopen="dyld"
  9014. lt_cv_dlopen_libs=
  9015. lt_cv_dlopen_self=yes
  9016. fi
  9017. ;;
  9018. *)
  9019. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  9020. $as_echo_n "checking for shl_load... " >&6; }
  9021. if test "${ac_cv_func_shl_load+set}" = set; then
  9022. $as_echo_n "(cached) " >&6
  9023. else
  9024. cat >conftest.$ac_ext <<_ACEOF
  9025. /* confdefs.h. */
  9026. _ACEOF
  9027. cat confdefs.h >>conftest.$ac_ext
  9028. cat >>conftest.$ac_ext <<_ACEOF
  9029. /* end confdefs.h. */
  9030. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9031. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9032. #define shl_load innocuous_shl_load
  9033. /* System header to define __stub macros and hopefully few prototypes,
  9034. which can conflict with char shl_load (); below.
  9035. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9036. <limits.h> exists even on freestanding compilers. */
  9037. #ifdef __STDC__
  9038. # include <limits.h>
  9039. #else
  9040. # include <assert.h>
  9041. #endif
  9042. #undef shl_load
  9043. /* Override any GCC internal prototype to avoid an error.
  9044. Use char because int might match the return type of a GCC
  9045. builtin and then its argument prototype would still apply. */
  9046. #ifdef __cplusplus
  9047. extern "C"
  9048. #endif
  9049. char shl_load ();
  9050. /* The GNU C library defines this for functions which it implements
  9051. to always fail with ENOSYS. Some functions are actually named
  9052. something starting with __ and the normal name is an alias. */
  9053. #if defined __stub_shl_load || defined __stub___shl_load
  9054. choke me
  9055. #endif
  9056. int
  9057. main ()
  9058. {
  9059. return shl_load ();
  9060. ;
  9061. return 0;
  9062. }
  9063. _ACEOF
  9064. rm -f conftest.$ac_objext conftest$ac_exeext
  9065. if { (ac_try="$ac_link"
  9066. case "(($ac_try" in
  9067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9068. *) ac_try_echo=$ac_try;;
  9069. esac
  9070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9071. $as_echo "$ac_try_echo") >&5
  9072. (eval "$ac_link") 2>conftest.er1
  9073. ac_status=$?
  9074. grep -v '^ *+' conftest.er1 >conftest.err
  9075. rm -f conftest.er1
  9076. cat conftest.err >&5
  9077. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9078. (exit $ac_status); } && {
  9079. test -z "$ac_c_werror_flag" ||
  9080. test ! -s conftest.err
  9081. } && test -s conftest$ac_exeext && {
  9082. test "$cross_compiling" = yes ||
  9083. $as_test_x conftest$ac_exeext
  9084. }; then
  9085. ac_cv_func_shl_load=yes
  9086. else
  9087. $as_echo "$as_me: failed program was:" >&5
  9088. sed 's/^/| /' conftest.$ac_ext >&5
  9089. ac_cv_func_shl_load=no
  9090. fi
  9091. rm -rf conftest.dSYM
  9092. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9093. conftest$ac_exeext conftest.$ac_ext
  9094. fi
  9095. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9096. $as_echo "$ac_cv_func_shl_load" >&6; }
  9097. if test "x$ac_cv_func_shl_load" = x""yes; then
  9098. lt_cv_dlopen="shl_load"
  9099. else
  9100. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9101. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9102. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9103. $as_echo_n "(cached) " >&6
  9104. else
  9105. ac_check_lib_save_LIBS=$LIBS
  9106. LIBS="-ldld $LIBS"
  9107. cat >conftest.$ac_ext <<_ACEOF
  9108. /* confdefs.h. */
  9109. _ACEOF
  9110. cat confdefs.h >>conftest.$ac_ext
  9111. cat >>conftest.$ac_ext <<_ACEOF
  9112. /* end confdefs.h. */
  9113. /* Override any GCC internal prototype to avoid an error.
  9114. Use char because int might match the return type of a GCC
  9115. builtin and then its argument prototype would still apply. */
  9116. #ifdef __cplusplus
  9117. extern "C"
  9118. #endif
  9119. char shl_load ();
  9120. int
  9121. main ()
  9122. {
  9123. return shl_load ();
  9124. ;
  9125. return 0;
  9126. }
  9127. _ACEOF
  9128. rm -f conftest.$ac_objext conftest$ac_exeext
  9129. if { (ac_try="$ac_link"
  9130. case "(($ac_try" in
  9131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9132. *) ac_try_echo=$ac_try;;
  9133. esac
  9134. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9135. $as_echo "$ac_try_echo") >&5
  9136. (eval "$ac_link") 2>conftest.er1
  9137. ac_status=$?
  9138. grep -v '^ *+' conftest.er1 >conftest.err
  9139. rm -f conftest.er1
  9140. cat conftest.err >&5
  9141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9142. (exit $ac_status); } && {
  9143. test -z "$ac_c_werror_flag" ||
  9144. test ! -s conftest.err
  9145. } && test -s conftest$ac_exeext && {
  9146. test "$cross_compiling" = yes ||
  9147. $as_test_x conftest$ac_exeext
  9148. }; then
  9149. ac_cv_lib_dld_shl_load=yes
  9150. else
  9151. $as_echo "$as_me: failed program was:" >&5
  9152. sed 's/^/| /' conftest.$ac_ext >&5
  9153. ac_cv_lib_dld_shl_load=no
  9154. fi
  9155. rm -rf conftest.dSYM
  9156. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9157. conftest$ac_exeext conftest.$ac_ext
  9158. LIBS=$ac_check_lib_save_LIBS
  9159. fi
  9160. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9161. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9162. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  9163. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  9164. else
  9165. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  9166. $as_echo_n "checking for dlopen... " >&6; }
  9167. if test "${ac_cv_func_dlopen+set}" = set; then
  9168. $as_echo_n "(cached) " >&6
  9169. else
  9170. cat >conftest.$ac_ext <<_ACEOF
  9171. /* confdefs.h. */
  9172. _ACEOF
  9173. cat confdefs.h >>conftest.$ac_ext
  9174. cat >>conftest.$ac_ext <<_ACEOF
  9175. /* end confdefs.h. */
  9176. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9177. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9178. #define dlopen innocuous_dlopen
  9179. /* System header to define __stub macros and hopefully few prototypes,
  9180. which can conflict with char dlopen (); below.
  9181. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9182. <limits.h> exists even on freestanding compilers. */
  9183. #ifdef __STDC__
  9184. # include <limits.h>
  9185. #else
  9186. # include <assert.h>
  9187. #endif
  9188. #undef dlopen
  9189. /* Override any GCC internal prototype to avoid an error.
  9190. Use char because int might match the return type of a GCC
  9191. builtin and then its argument prototype would still apply. */
  9192. #ifdef __cplusplus
  9193. extern "C"
  9194. #endif
  9195. char dlopen ();
  9196. /* The GNU C library defines this for functions which it implements
  9197. to always fail with ENOSYS. Some functions are actually named
  9198. something starting with __ and the normal name is an alias. */
  9199. #if defined __stub_dlopen || defined __stub___dlopen
  9200. choke me
  9201. #endif
  9202. int
  9203. main ()
  9204. {
  9205. return dlopen ();
  9206. ;
  9207. return 0;
  9208. }
  9209. _ACEOF
  9210. rm -f conftest.$ac_objext conftest$ac_exeext
  9211. if { (ac_try="$ac_link"
  9212. case "(($ac_try" in
  9213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9214. *) ac_try_echo=$ac_try;;
  9215. esac
  9216. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9217. $as_echo "$ac_try_echo") >&5
  9218. (eval "$ac_link") 2>conftest.er1
  9219. ac_status=$?
  9220. grep -v '^ *+' conftest.er1 >conftest.err
  9221. rm -f conftest.er1
  9222. cat conftest.err >&5
  9223. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9224. (exit $ac_status); } && {
  9225. test -z "$ac_c_werror_flag" ||
  9226. test ! -s conftest.err
  9227. } && test -s conftest$ac_exeext && {
  9228. test "$cross_compiling" = yes ||
  9229. $as_test_x conftest$ac_exeext
  9230. }; then
  9231. ac_cv_func_dlopen=yes
  9232. else
  9233. $as_echo "$as_me: failed program was:" >&5
  9234. sed 's/^/| /' conftest.$ac_ext >&5
  9235. ac_cv_func_dlopen=no
  9236. fi
  9237. rm -rf conftest.dSYM
  9238. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9239. conftest$ac_exeext conftest.$ac_ext
  9240. fi
  9241. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9242. $as_echo "$ac_cv_func_dlopen" >&6; }
  9243. if test "x$ac_cv_func_dlopen" = x""yes; then
  9244. lt_cv_dlopen="dlopen"
  9245. else
  9246. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9247. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9248. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9249. $as_echo_n "(cached) " >&6
  9250. else
  9251. ac_check_lib_save_LIBS=$LIBS
  9252. LIBS="-ldl $LIBS"
  9253. cat >conftest.$ac_ext <<_ACEOF
  9254. /* confdefs.h. */
  9255. _ACEOF
  9256. cat confdefs.h >>conftest.$ac_ext
  9257. cat >>conftest.$ac_ext <<_ACEOF
  9258. /* end confdefs.h. */
  9259. /* Override any GCC internal prototype to avoid an error.
  9260. Use char because int might match the return type of a GCC
  9261. builtin and then its argument prototype would still apply. */
  9262. #ifdef __cplusplus
  9263. extern "C"
  9264. #endif
  9265. char dlopen ();
  9266. int
  9267. main ()
  9268. {
  9269. return dlopen ();
  9270. ;
  9271. return 0;
  9272. }
  9273. _ACEOF
  9274. rm -f conftest.$ac_objext conftest$ac_exeext
  9275. if { (ac_try="$ac_link"
  9276. case "(($ac_try" in
  9277. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9278. *) ac_try_echo=$ac_try;;
  9279. esac
  9280. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9281. $as_echo "$ac_try_echo") >&5
  9282. (eval "$ac_link") 2>conftest.er1
  9283. ac_status=$?
  9284. grep -v '^ *+' conftest.er1 >conftest.err
  9285. rm -f conftest.er1
  9286. cat conftest.err >&5
  9287. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9288. (exit $ac_status); } && {
  9289. test -z "$ac_c_werror_flag" ||
  9290. test ! -s conftest.err
  9291. } && test -s conftest$ac_exeext && {
  9292. test "$cross_compiling" = yes ||
  9293. $as_test_x conftest$ac_exeext
  9294. }; then
  9295. ac_cv_lib_dl_dlopen=yes
  9296. else
  9297. $as_echo "$as_me: failed program was:" >&5
  9298. sed 's/^/| /' conftest.$ac_ext >&5
  9299. ac_cv_lib_dl_dlopen=no
  9300. fi
  9301. rm -rf conftest.dSYM
  9302. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9303. conftest$ac_exeext conftest.$ac_ext
  9304. LIBS=$ac_check_lib_save_LIBS
  9305. fi
  9306. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9307. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9308. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  9309. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9310. else
  9311. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9312. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9313. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9314. $as_echo_n "(cached) " >&6
  9315. else
  9316. ac_check_lib_save_LIBS=$LIBS
  9317. LIBS="-lsvld $LIBS"
  9318. cat >conftest.$ac_ext <<_ACEOF
  9319. /* confdefs.h. */
  9320. _ACEOF
  9321. cat confdefs.h >>conftest.$ac_ext
  9322. cat >>conftest.$ac_ext <<_ACEOF
  9323. /* end confdefs.h. */
  9324. /* Override any GCC internal prototype to avoid an error.
  9325. Use char because int might match the return type of a GCC
  9326. builtin and then its argument prototype would still apply. */
  9327. #ifdef __cplusplus
  9328. extern "C"
  9329. #endif
  9330. char dlopen ();
  9331. int
  9332. main ()
  9333. {
  9334. return dlopen ();
  9335. ;
  9336. return 0;
  9337. }
  9338. _ACEOF
  9339. rm -f conftest.$ac_objext conftest$ac_exeext
  9340. if { (ac_try="$ac_link"
  9341. case "(($ac_try" in
  9342. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9343. *) ac_try_echo=$ac_try;;
  9344. esac
  9345. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9346. $as_echo "$ac_try_echo") >&5
  9347. (eval "$ac_link") 2>conftest.er1
  9348. ac_status=$?
  9349. grep -v '^ *+' conftest.er1 >conftest.err
  9350. rm -f conftest.er1
  9351. cat conftest.err >&5
  9352. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9353. (exit $ac_status); } && {
  9354. test -z "$ac_c_werror_flag" ||
  9355. test ! -s conftest.err
  9356. } && test -s conftest$ac_exeext && {
  9357. test "$cross_compiling" = yes ||
  9358. $as_test_x conftest$ac_exeext
  9359. }; then
  9360. ac_cv_lib_svld_dlopen=yes
  9361. else
  9362. $as_echo "$as_me: failed program was:" >&5
  9363. sed 's/^/| /' conftest.$ac_ext >&5
  9364. ac_cv_lib_svld_dlopen=no
  9365. fi
  9366. rm -rf conftest.dSYM
  9367. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9368. conftest$ac_exeext conftest.$ac_ext
  9369. LIBS=$ac_check_lib_save_LIBS
  9370. fi
  9371. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9372. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9373. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  9374. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9375. else
  9376. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9377. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9378. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9379. $as_echo_n "(cached) " >&6
  9380. else
  9381. ac_check_lib_save_LIBS=$LIBS
  9382. LIBS="-ldld $LIBS"
  9383. cat >conftest.$ac_ext <<_ACEOF
  9384. /* confdefs.h. */
  9385. _ACEOF
  9386. cat confdefs.h >>conftest.$ac_ext
  9387. cat >>conftest.$ac_ext <<_ACEOF
  9388. /* end confdefs.h. */
  9389. /* Override any GCC internal prototype to avoid an error.
  9390. Use char because int might match the return type of a GCC
  9391. builtin and then its argument prototype would still apply. */
  9392. #ifdef __cplusplus
  9393. extern "C"
  9394. #endif
  9395. char dld_link ();
  9396. int
  9397. main ()
  9398. {
  9399. return dld_link ();
  9400. ;
  9401. return 0;
  9402. }
  9403. _ACEOF
  9404. rm -f conftest.$ac_objext conftest$ac_exeext
  9405. if { (ac_try="$ac_link"
  9406. case "(($ac_try" in
  9407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9408. *) ac_try_echo=$ac_try;;
  9409. esac
  9410. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9411. $as_echo "$ac_try_echo") >&5
  9412. (eval "$ac_link") 2>conftest.er1
  9413. ac_status=$?
  9414. grep -v '^ *+' conftest.er1 >conftest.err
  9415. rm -f conftest.er1
  9416. cat conftest.err >&5
  9417. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9418. (exit $ac_status); } && {
  9419. test -z "$ac_c_werror_flag" ||
  9420. test ! -s conftest.err
  9421. } && test -s conftest$ac_exeext && {
  9422. test "$cross_compiling" = yes ||
  9423. $as_test_x conftest$ac_exeext
  9424. }; then
  9425. ac_cv_lib_dld_dld_link=yes
  9426. else
  9427. $as_echo "$as_me: failed program was:" >&5
  9428. sed 's/^/| /' conftest.$ac_ext >&5
  9429. ac_cv_lib_dld_dld_link=no
  9430. fi
  9431. rm -rf conftest.dSYM
  9432. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9433. conftest$ac_exeext conftest.$ac_ext
  9434. LIBS=$ac_check_lib_save_LIBS
  9435. fi
  9436. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9437. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9438. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  9439. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9440. fi
  9441. fi
  9442. fi
  9443. fi
  9444. fi
  9445. fi
  9446. ;;
  9447. esac
  9448. if test "x$lt_cv_dlopen" != xno; then
  9449. enable_dlopen=yes
  9450. else
  9451. enable_dlopen=no
  9452. fi
  9453. case $lt_cv_dlopen in
  9454. dlopen)
  9455. save_CPPFLAGS="$CPPFLAGS"
  9456. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9457. save_LDFLAGS="$LDFLAGS"
  9458. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9459. save_LIBS="$LIBS"
  9460. LIBS="$lt_cv_dlopen_libs $LIBS"
  9461. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9462. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9463. if test "${lt_cv_dlopen_self+set}" = set; then
  9464. $as_echo_n "(cached) " >&6
  9465. else
  9466. if test "$cross_compiling" = yes; then :
  9467. lt_cv_dlopen_self=cross
  9468. else
  9469. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9470. lt_status=$lt_dlunknown
  9471. cat > conftest.$ac_ext <<EOF
  9472. #line 10461 "configure"
  9473. #include "confdefs.h"
  9474. #if HAVE_DLFCN_H
  9475. #include <dlfcn.h>
  9476. #endif
  9477. #include <stdio.h>
  9478. #ifdef RTLD_GLOBAL
  9479. # define LT_DLGLOBAL RTLD_GLOBAL
  9480. #else
  9481. # ifdef DL_GLOBAL
  9482. # define LT_DLGLOBAL DL_GLOBAL
  9483. # else
  9484. # define LT_DLGLOBAL 0
  9485. # endif
  9486. #endif
  9487. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9488. find out it does not work in some platform. */
  9489. #ifndef LT_DLLAZY_OR_NOW
  9490. # ifdef RTLD_LAZY
  9491. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9492. # else
  9493. # ifdef DL_LAZY
  9494. # define LT_DLLAZY_OR_NOW DL_LAZY
  9495. # else
  9496. # ifdef RTLD_NOW
  9497. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9498. # else
  9499. # ifdef DL_NOW
  9500. # define LT_DLLAZY_OR_NOW DL_NOW
  9501. # else
  9502. # define LT_DLLAZY_OR_NOW 0
  9503. # endif
  9504. # endif
  9505. # endif
  9506. # endif
  9507. #endif
  9508. #ifdef __cplusplus
  9509. extern "C" void exit (int);
  9510. #endif
  9511. void fnord() { int i=42;}
  9512. int main ()
  9513. {
  9514. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9515. int status = $lt_dlunknown;
  9516. if (self)
  9517. {
  9518. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9519. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9520. /* dlclose (self); */
  9521. }
  9522. else
  9523. puts (dlerror ());
  9524. exit (status);
  9525. }
  9526. EOF
  9527. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9528. (eval $ac_link) 2>&5
  9529. ac_status=$?
  9530. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9531. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9532. (./conftest; exit; ) >&5 2>/dev/null
  9533. lt_status=$?
  9534. case x$lt_status in
  9535. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9536. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9537. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9538. esac
  9539. else :
  9540. # compilation failed
  9541. lt_cv_dlopen_self=no
  9542. fi
  9543. fi
  9544. rm -fr conftest*
  9545. fi
  9546. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9547. $as_echo "$lt_cv_dlopen_self" >&6; }
  9548. if test "x$lt_cv_dlopen_self" = xyes; then
  9549. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9550. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9551. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9552. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9553. $as_echo_n "(cached) " >&6
  9554. else
  9555. if test "$cross_compiling" = yes; then :
  9556. lt_cv_dlopen_self_static=cross
  9557. else
  9558. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9559. lt_status=$lt_dlunknown
  9560. cat > conftest.$ac_ext <<EOF
  9561. #line 10561 "configure"
  9562. #include "confdefs.h"
  9563. #if HAVE_DLFCN_H
  9564. #include <dlfcn.h>
  9565. #endif
  9566. #include <stdio.h>
  9567. #ifdef RTLD_GLOBAL
  9568. # define LT_DLGLOBAL RTLD_GLOBAL
  9569. #else
  9570. # ifdef DL_GLOBAL
  9571. # define LT_DLGLOBAL DL_GLOBAL
  9572. # else
  9573. # define LT_DLGLOBAL 0
  9574. # endif
  9575. #endif
  9576. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9577. find out it does not work in some platform. */
  9578. #ifndef LT_DLLAZY_OR_NOW
  9579. # ifdef RTLD_LAZY
  9580. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9581. # else
  9582. # ifdef DL_LAZY
  9583. # define LT_DLLAZY_OR_NOW DL_LAZY
  9584. # else
  9585. # ifdef RTLD_NOW
  9586. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9587. # else
  9588. # ifdef DL_NOW
  9589. # define LT_DLLAZY_OR_NOW DL_NOW
  9590. # else
  9591. # define LT_DLLAZY_OR_NOW 0
  9592. # endif
  9593. # endif
  9594. # endif
  9595. # endif
  9596. #endif
  9597. #ifdef __cplusplus
  9598. extern "C" void exit (int);
  9599. #endif
  9600. void fnord() { int i=42;}
  9601. int main ()
  9602. {
  9603. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9604. int status = $lt_dlunknown;
  9605. if (self)
  9606. {
  9607. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9608. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9609. /* dlclose (self); */
  9610. }
  9611. else
  9612. puts (dlerror ());
  9613. exit (status);
  9614. }
  9615. EOF
  9616. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9617. (eval $ac_link) 2>&5
  9618. ac_status=$?
  9619. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9620. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9621. (./conftest; exit; ) >&5 2>/dev/null
  9622. lt_status=$?
  9623. case x$lt_status in
  9624. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9625. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9626. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9627. esac
  9628. else :
  9629. # compilation failed
  9630. lt_cv_dlopen_self_static=no
  9631. fi
  9632. fi
  9633. rm -fr conftest*
  9634. fi
  9635. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9636. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9637. fi
  9638. CPPFLAGS="$save_CPPFLAGS"
  9639. LDFLAGS="$save_LDFLAGS"
  9640. LIBS="$save_LIBS"
  9641. ;;
  9642. esac
  9643. case $lt_cv_dlopen_self in
  9644. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9645. *) enable_dlopen_self=unknown ;;
  9646. esac
  9647. case $lt_cv_dlopen_self_static in
  9648. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9649. *) enable_dlopen_self_static=unknown ;;
  9650. esac
  9651. fi
  9652. # Report which library types will actually be built
  9653. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9654. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9655. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9656. $as_echo "$can_build_shared" >&6; }
  9657. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9658. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9659. test "$can_build_shared" = "no" && enable_shared=no
  9660. # On AIX, shared libraries and static libraries use the same namespace, and
  9661. # are all built from PIC.
  9662. case $host_os in
  9663. aix3*)
  9664. test "$enable_shared" = yes && enable_static=no
  9665. if test -n "$RANLIB"; then
  9666. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9667. postinstall_cmds='$RANLIB $lib'
  9668. fi
  9669. ;;
  9670. aix4* | aix5*)
  9671. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9672. test "$enable_shared" = yes && enable_static=no
  9673. fi
  9674. ;;
  9675. esac
  9676. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  9677. $as_echo "$enable_shared" >&6; }
  9678. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9679. $as_echo_n "checking whether to build static libraries... " >&6; }
  9680. # Make sure either enable_shared or enable_static is yes.
  9681. test "$enable_shared" = yes || enable_static=yes
  9682. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  9683. $as_echo "$enable_static" >&6; }
  9684. # The else clause should only fire when bootstrapping the
  9685. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9686. # with your package, and you will get complaints that there are
  9687. # no rules to generate ltmain.sh.
  9688. if test -f "$ltmain"; then
  9689. # See if we are running on zsh, and set the options which allow our commands through
  9690. # without removal of \ escapes.
  9691. if test -n "${ZSH_VERSION+set}" ; then
  9692. setopt NO_GLOB_SUBST
  9693. fi
  9694. # Now quote all the things that may contain metacharacters while being
  9695. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9696. # variables and quote the copies for generation of the libtool script.
  9697. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9698. SED SHELL STRIP \
  9699. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9700. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9701. deplibs_check_method reload_flag reload_cmds need_locks \
  9702. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9703. lt_cv_sys_global_symbol_to_c_name_address \
  9704. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9705. old_postinstall_cmds old_postuninstall_cmds \
  9706. compiler \
  9707. CC \
  9708. LD \
  9709. lt_prog_compiler_wl \
  9710. lt_prog_compiler_pic \
  9711. lt_prog_compiler_static \
  9712. lt_prog_compiler_no_builtin_flag \
  9713. export_dynamic_flag_spec \
  9714. thread_safe_flag_spec \
  9715. whole_archive_flag_spec \
  9716. enable_shared_with_static_runtimes \
  9717. old_archive_cmds \
  9718. old_archive_from_new_cmds \
  9719. predep_objects \
  9720. postdep_objects \
  9721. predeps \
  9722. postdeps \
  9723. compiler_lib_search_path \
  9724. archive_cmds \
  9725. archive_expsym_cmds \
  9726. postinstall_cmds \
  9727. postuninstall_cmds \
  9728. old_archive_from_expsyms_cmds \
  9729. allow_undefined_flag \
  9730. no_undefined_flag \
  9731. export_symbols_cmds \
  9732. hardcode_libdir_flag_spec \
  9733. hardcode_libdir_flag_spec_ld \
  9734. hardcode_libdir_separator \
  9735. hardcode_automatic \
  9736. module_cmds \
  9737. module_expsym_cmds \
  9738. lt_cv_prog_compiler_c_o \
  9739. fix_srcfile_path \
  9740. exclude_expsyms \
  9741. include_expsyms; do
  9742. case $var in
  9743. old_archive_cmds | \
  9744. old_archive_from_new_cmds | \
  9745. archive_cmds | \
  9746. archive_expsym_cmds | \
  9747. module_cmds | \
  9748. module_expsym_cmds | \
  9749. old_archive_from_expsyms_cmds | \
  9750. export_symbols_cmds | \
  9751. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9752. postinstall_cmds | postuninstall_cmds | \
  9753. old_postinstall_cmds | old_postuninstall_cmds | \
  9754. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9755. # Double-quote double-evaled strings.
  9756. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9757. ;;
  9758. *)
  9759. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9760. ;;
  9761. esac
  9762. done
  9763. case $lt_echo in
  9764. *'\$0 --fallback-echo"')
  9765. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9766. ;;
  9767. esac
  9768. cfgfile="${ofile}T"
  9769. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9770. $rm -f "$cfgfile"
  9771. { $as_echo "$as_me:$LINENO: creating $ofile" >&5
  9772. $as_echo "$as_me: creating $ofile" >&6;}
  9773. cat <<__EOF__ >> "$cfgfile"
  9774. #! $SHELL
  9775. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9776. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9777. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9778. #
  9779. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9780. # Free Software Foundation, Inc.
  9781. #
  9782. # This file is part of GNU Libtool:
  9783. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  9784. #
  9785. # This program is free software; you can redistribute it and/or modify
  9786. # it under the terms of the GNU General Public License as published by
  9787. # the Free Software Foundation; either version 2 of the License, or
  9788. # (at your option) any later version.
  9789. #
  9790. # This program is distributed in the hope that it will be useful, but
  9791. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9792. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9793. # General Public License for more details.
  9794. #
  9795. # You should have received a copy of the GNU General Public License
  9796. # along with this program; if not, write to the Free Software
  9797. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9798. #
  9799. # As a special exception to the GNU General Public License, if you
  9800. # distribute this file as part of a program that contains a
  9801. # configuration script generated by Autoconf, you may include it under
  9802. # the same distribution terms that you use for the rest of that program.
  9803. # A sed program that does not truncate output.
  9804. SED=$lt_SED
  9805. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9806. Xsed="$SED -e 1s/^X//"
  9807. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9808. # if CDPATH is set.
  9809. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9810. # The names of the tagged configurations supported by this script.
  9811. available_tags=
  9812. # ### BEGIN LIBTOOL CONFIG
  9813. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9814. # Shell to use when invoking shell scripts.
  9815. SHELL=$lt_SHELL
  9816. # Whether or not to build shared libraries.
  9817. build_libtool_libs=$enable_shared
  9818. # Whether or not to build static libraries.
  9819. build_old_libs=$enable_static
  9820. # Whether or not to add -lc for building shared libraries.
  9821. build_libtool_need_lc=$archive_cmds_need_lc
  9822. # Whether or not to disallow shared libs when runtime libs are static
  9823. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9824. # Whether or not to optimize for fast installation.
  9825. fast_install=$enable_fast_install
  9826. # The host system.
  9827. host_alias=$host_alias
  9828. host=$host
  9829. host_os=$host_os
  9830. # The build system.
  9831. build_alias=$build_alias
  9832. build=$build
  9833. build_os=$build_os
  9834. # An echo program that does not interpret backslashes.
  9835. echo=$lt_echo
  9836. # The archiver.
  9837. AR=$lt_AR
  9838. AR_FLAGS=$lt_AR_FLAGS
  9839. # A C compiler.
  9840. LTCC=$lt_LTCC
  9841. # LTCC compiler flags.
  9842. LTCFLAGS=$lt_LTCFLAGS
  9843. # A language-specific compiler.
  9844. CC=$lt_compiler
  9845. # Is the compiler the GNU C compiler?
  9846. with_gcc=$GCC
  9847. # An ERE matcher.
  9848. EGREP=$lt_EGREP
  9849. # The linker used to build libraries.
  9850. LD=$lt_LD
  9851. # Whether we need hard or soft links.
  9852. LN_S=$lt_LN_S
  9853. # A BSD-compatible nm program.
  9854. NM=$lt_NM
  9855. # A symbol stripping program
  9856. STRIP=$lt_STRIP
  9857. # Used to examine libraries when file_magic_cmd begins "file"
  9858. MAGIC_CMD=$MAGIC_CMD
  9859. # Used on cygwin: DLL creation program.
  9860. DLLTOOL="$DLLTOOL"
  9861. # Used on cygwin: object dumper.
  9862. OBJDUMP="$OBJDUMP"
  9863. # Used on cygwin: assembler.
  9864. AS="$AS"
  9865. # The name of the directory that contains temporary libtool files.
  9866. objdir=$objdir
  9867. # How to create reloadable object files.
  9868. reload_flag=$lt_reload_flag
  9869. reload_cmds=$lt_reload_cmds
  9870. # How to pass a linker flag through the compiler.
  9871. wl=$lt_lt_prog_compiler_wl
  9872. # Object file suffix (normally "o").
  9873. objext="$ac_objext"
  9874. # Old archive suffix (normally "a").
  9875. libext="$libext"
  9876. # Shared library suffix (normally ".so").
  9877. shrext_cmds='$shrext_cmds'
  9878. # Executable file suffix (normally "").
  9879. exeext="$exeext"
  9880. # Additional compiler flags for building library objects.
  9881. pic_flag=$lt_lt_prog_compiler_pic
  9882. pic_mode=$pic_mode
  9883. # What is the maximum length of a command?
  9884. max_cmd_len=$lt_cv_sys_max_cmd_len
  9885. # Does compiler simultaneously support -c and -o options?
  9886. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9887. # Must we lock files when doing compilation?
  9888. need_locks=$lt_need_locks
  9889. # Do we need the lib prefix for modules?
  9890. need_lib_prefix=$need_lib_prefix
  9891. # Do we need a version for libraries?
  9892. need_version=$need_version
  9893. # Whether dlopen is supported.
  9894. dlopen_support=$enable_dlopen
  9895. # Whether dlopen of programs is supported.
  9896. dlopen_self=$enable_dlopen_self
  9897. # Whether dlopen of statically linked programs is supported.
  9898. dlopen_self_static=$enable_dlopen_self_static
  9899. # Compiler flag to prevent dynamic linking.
  9900. link_static_flag=$lt_lt_prog_compiler_static
  9901. # Compiler flag to turn off builtin functions.
  9902. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9903. # Compiler flag to allow reflexive dlopens.
  9904. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9905. # Compiler flag to generate shared objects directly from archives.
  9906. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9907. # Compiler flag to generate thread-safe objects.
  9908. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9909. # Library versioning type.
  9910. version_type=$version_type
  9911. # Format of library name prefix.
  9912. libname_spec=$lt_libname_spec
  9913. # List of archive names. First name is the real one, the rest are links.
  9914. # The last name is the one that the linker finds with -lNAME.
  9915. library_names_spec=$lt_library_names_spec
  9916. # The coded name of the library, if different from the real name.
  9917. soname_spec=$lt_soname_spec
  9918. # Commands used to build and install an old-style archive.
  9919. RANLIB=$lt_RANLIB
  9920. old_archive_cmds=$lt_old_archive_cmds
  9921. old_postinstall_cmds=$lt_old_postinstall_cmds
  9922. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9923. # Create an old-style archive from a shared archive.
  9924. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9925. # Create a temporary old-style archive to link instead of a shared archive.
  9926. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9927. # Commands used to build and install a shared archive.
  9928. archive_cmds=$lt_archive_cmds
  9929. archive_expsym_cmds=$lt_archive_expsym_cmds
  9930. postinstall_cmds=$lt_postinstall_cmds
  9931. postuninstall_cmds=$lt_postuninstall_cmds
  9932. # Commands used to build a loadable module (assumed same as above if empty)
  9933. module_cmds=$lt_module_cmds
  9934. module_expsym_cmds=$lt_module_expsym_cmds
  9935. # Commands to strip libraries.
  9936. old_striplib=$lt_old_striplib
  9937. striplib=$lt_striplib
  9938. # Dependencies to place before the objects being linked to create a
  9939. # shared library.
  9940. predep_objects=$lt_predep_objects
  9941. # Dependencies to place after the objects being linked to create a
  9942. # shared library.
  9943. postdep_objects=$lt_postdep_objects
  9944. # Dependencies to place before the objects being linked to create a
  9945. # shared library.
  9946. predeps=$lt_predeps
  9947. # Dependencies to place after the objects being linked to create a
  9948. # shared library.
  9949. postdeps=$lt_postdeps
  9950. # The library search path used internally by the compiler when linking
  9951. # a shared library.
  9952. compiler_lib_search_path=$lt_compiler_lib_search_path
  9953. # Method to check whether dependent libraries are shared objects.
  9954. deplibs_check_method=$lt_deplibs_check_method
  9955. # Command to use when deplibs_check_method == file_magic.
  9956. file_magic_cmd=$lt_file_magic_cmd
  9957. # Flag that allows shared libraries with undefined symbols to be built.
  9958. allow_undefined_flag=$lt_allow_undefined_flag
  9959. # Flag that forces no undefined symbols.
  9960. no_undefined_flag=$lt_no_undefined_flag
  9961. # Commands used to finish a libtool library installation in a directory.
  9962. finish_cmds=$lt_finish_cmds
  9963. # Same as above, but a single script fragment to be evaled but not shown.
  9964. finish_eval=$lt_finish_eval
  9965. # Take the output of nm and produce a listing of raw symbols and C names.
  9966. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9967. # Transform the output of nm in a proper C declaration
  9968. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9969. # Transform the output of nm in a C name address pair
  9970. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9971. # This is the shared library runtime path variable.
  9972. runpath_var=$runpath_var
  9973. # This is the shared library path variable.
  9974. shlibpath_var=$shlibpath_var
  9975. # Is shlibpath searched before the hard-coded library search path?
  9976. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9977. # How to hardcode a shared library path into an executable.
  9978. hardcode_action=$hardcode_action
  9979. # Whether we should hardcode library paths into libraries.
  9980. hardcode_into_libs=$hardcode_into_libs
  9981. # Flag to hardcode \$libdir into a binary during linking.
  9982. # This must work even if \$libdir does not exist.
  9983. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9984. # If ld is used when linking, flag to hardcode \$libdir into
  9985. # a binary during linking. This must work even if \$libdir does
  9986. # not exist.
  9987. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9988. # Whether we need a single -rpath flag with a separated argument.
  9989. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9990. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9991. # resulting binary.
  9992. hardcode_direct=$hardcode_direct
  9993. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9994. # resulting binary.
  9995. hardcode_minus_L=$hardcode_minus_L
  9996. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9997. # the resulting binary.
  9998. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9999. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10000. # and all subsequent libraries and executables linked against it.
  10001. hardcode_automatic=$hardcode_automatic
  10002. # Variables whose values should be saved in libtool wrapper scripts and
  10003. # restored at relink time.
  10004. variables_saved_for_relink="$variables_saved_for_relink"
  10005. # Whether libtool must link a program against all its dependency libraries.
  10006. link_all_deplibs=$link_all_deplibs
  10007. # Compile-time system search path for libraries
  10008. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10009. # Run-time system search path for libraries
  10010. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10011. # Fix the shell variable \$srcfile for the compiler.
  10012. fix_srcfile_path=$lt_fix_srcfile_path
  10013. # Set to yes if exported symbols are required.
  10014. always_export_symbols=$always_export_symbols
  10015. # The commands to list exported symbols.
  10016. export_symbols_cmds=$lt_export_symbols_cmds
  10017. # The commands to extract the exported symbol list from a shared archive.
  10018. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10019. # Symbols that should not be listed in the preloaded symbols.
  10020. exclude_expsyms=$lt_exclude_expsyms
  10021. # Symbols that must always be exported.
  10022. include_expsyms=$lt_include_expsyms
  10023. # ### END LIBTOOL CONFIG
  10024. __EOF__
  10025. case $host_os in
  10026. aix3*)
  10027. cat <<\EOF >> "$cfgfile"
  10028. # AIX sometimes has problems with the GCC collect2 program. For some
  10029. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10030. # vanish in a puff of smoke.
  10031. if test "X${COLLECT_NAMES+set}" != Xset; then
  10032. COLLECT_NAMES=
  10033. export COLLECT_NAMES
  10034. fi
  10035. EOF
  10036. ;;
  10037. esac
  10038. # We use sed instead of cat because bash on DJGPP gets confused if
  10039. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  10040. # text mode, it properly converts lines to CR/LF. This bash problem
  10041. # is reportedly fixed, but why not run on old versions too?
  10042. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  10043. mv -f "$cfgfile" "$ofile" || \
  10044. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  10045. chmod +x "$ofile"
  10046. else
  10047. # If there is no Makefile yet, we rely on a make rule to execute
  10048. # `config.status --recheck' to rerun these tests and create the
  10049. # libtool script then.
  10050. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10051. if test -f "$ltmain_in"; then
  10052. test -f Makefile && make "$ltmain"
  10053. fi
  10054. fi
  10055. ac_ext=c
  10056. ac_cpp='$CPP $CPPFLAGS'
  10057. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10058. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10059. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10060. CC="$lt_save_CC"
  10061. # Check whether --with-tags was given.
  10062. if test "${with_tags+set}" = set; then
  10063. withval=$with_tags; tagnames="$withval"
  10064. fi
  10065. if test -f "$ltmain" && test -n "$tagnames"; then
  10066. if test ! -f "${ofile}"; then
  10067. { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  10068. $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  10069. fi
  10070. if test -z "$LTCC"; then
  10071. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  10072. if test -z "$LTCC"; then
  10073. { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  10074. $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  10075. else
  10076. { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  10077. $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  10078. fi
  10079. fi
  10080. if test -z "$LTCFLAGS"; then
  10081. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  10082. fi
  10083. # Extract list of available tagged configurations in $ofile.
  10084. # Note that this assumes the entire list is on one line.
  10085. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  10086. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10087. for tagname in $tagnames; do
  10088. IFS="$lt_save_ifs"
  10089. # Check whether tagname contains only valid characters
  10090. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  10091. "") ;;
  10092. *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  10093. $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
  10094. { (exit 1); exit 1; }; }
  10095. ;;
  10096. esac
  10097. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  10098. then
  10099. { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  10100. $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  10101. { (exit 1); exit 1; }; }
  10102. fi
  10103. # Update the list of available tags.
  10104. if test -n "$tagname"; then
  10105. echo appending configuration tag \"$tagname\" to $ofile
  10106. case $tagname in
  10107. CXX)
  10108. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10109. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10110. (test "X$CXX" != "Xg++"))) ; then
  10111. ac_ext=cpp
  10112. ac_cpp='$CXXCPP $CPPFLAGS'
  10113. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10114. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10115. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10116. archive_cmds_need_lc_CXX=no
  10117. allow_undefined_flag_CXX=
  10118. always_export_symbols_CXX=no
  10119. archive_expsym_cmds_CXX=
  10120. export_dynamic_flag_spec_CXX=
  10121. hardcode_direct_CXX=no
  10122. hardcode_libdir_flag_spec_CXX=
  10123. hardcode_libdir_flag_spec_ld_CXX=
  10124. hardcode_libdir_separator_CXX=
  10125. hardcode_minus_L_CXX=no
  10126. hardcode_shlibpath_var_CXX=unsupported
  10127. hardcode_automatic_CXX=no
  10128. module_cmds_CXX=
  10129. module_expsym_cmds_CXX=
  10130. link_all_deplibs_CXX=unknown
  10131. old_archive_cmds_CXX=$old_archive_cmds
  10132. no_undefined_flag_CXX=
  10133. whole_archive_flag_spec_CXX=
  10134. enable_shared_with_static_runtimes_CXX=no
  10135. # Dependencies to place before and after the object being linked:
  10136. predep_objects_CXX=
  10137. postdep_objects_CXX=
  10138. predeps_CXX=
  10139. postdeps_CXX=
  10140. compiler_lib_search_path_CXX=
  10141. # Source file extension for C++ test sources.
  10142. ac_ext=cpp
  10143. # Object file extension for compiled C++ test sources.
  10144. objext=o
  10145. objext_CXX=$objext
  10146. # Code to be used in simple compile tests
  10147. lt_simple_compile_test_code="int some_variable = 0;"
  10148. # Code to be used in simple link tests
  10149. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10150. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10151. # If no C compiler was specified, use CC.
  10152. LTCC=${LTCC-"$CC"}
  10153. # If no C compiler flags were specified, use CFLAGS.
  10154. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10155. # Allow CC to be a program name with arguments.
  10156. compiler=$CC
  10157. # save warnings/boilerplate of simple test code
  10158. ac_outfile=conftest.$ac_objext
  10159. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10160. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10161. _lt_compiler_boilerplate=`cat conftest.err`
  10162. $rm conftest*
  10163. ac_outfile=conftest.$ac_objext
  10164. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10165. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10166. _lt_linker_boilerplate=`cat conftest.err`
  10167. $rm conftest*
  10168. # Allow CC to be a program name with arguments.
  10169. lt_save_CC=$CC
  10170. lt_save_LD=$LD
  10171. lt_save_GCC=$GCC
  10172. GCC=$GXX
  10173. lt_save_with_gnu_ld=$with_gnu_ld
  10174. lt_save_path_LD=$lt_cv_path_LD
  10175. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10176. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10177. else
  10178. $as_unset lt_cv_prog_gnu_ld
  10179. fi
  10180. if test -n "${lt_cv_path_LDCXX+set}"; then
  10181. lt_cv_path_LD=$lt_cv_path_LDCXX
  10182. else
  10183. $as_unset lt_cv_path_LD
  10184. fi
  10185. test -z "${LDCXX+set}" || LD=$LDCXX
  10186. CC=${CXX-"c++"}
  10187. compiler=$CC
  10188. compiler_CXX=$CC
  10189. for cc_temp in $compiler""; do
  10190. case $cc_temp in
  10191. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10192. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10193. \-*) ;;
  10194. *) break;;
  10195. esac
  10196. done
  10197. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10198. # We don't want -fno-exception wen compiling C++ code, so set the
  10199. # no_builtin_flag separately
  10200. if test "$GXX" = yes; then
  10201. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10202. else
  10203. lt_prog_compiler_no_builtin_flag_CXX=
  10204. fi
  10205. if test "$GXX" = yes; then
  10206. # Set up default GNU C++ configuration
  10207. # Check whether --with-gnu-ld was given.
  10208. if test "${with_gnu_ld+set}" = set; then
  10209. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10210. else
  10211. with_gnu_ld=no
  10212. fi
  10213. ac_prog=ld
  10214. if test "$GCC" = yes; then
  10215. # Check if gcc -print-prog-name=ld gives a path.
  10216. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10217. $as_echo_n "checking for ld used by $CC... " >&6; }
  10218. case $host in
  10219. *-*-mingw*)
  10220. # gcc leaves a trailing carriage return which upsets mingw
  10221. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10222. *)
  10223. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10224. esac
  10225. case $ac_prog in
  10226. # Accept absolute paths.
  10227. [\\/]* | ?:[\\/]*)
  10228. re_direlt='/[^/][^/]*/\.\./'
  10229. # Canonicalize the pathname of ld
  10230. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10231. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10232. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10233. done
  10234. test -z "$LD" && LD="$ac_prog"
  10235. ;;
  10236. "")
  10237. # If it fails, then pretend we aren't using GCC.
  10238. ac_prog=ld
  10239. ;;
  10240. *)
  10241. # If it is relative, then search for the first ld in PATH.
  10242. with_gnu_ld=unknown
  10243. ;;
  10244. esac
  10245. elif test "$with_gnu_ld" = yes; then
  10246. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  10247. $as_echo_n "checking for GNU ld... " >&6; }
  10248. else
  10249. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10250. $as_echo_n "checking for non-GNU ld... " >&6; }
  10251. fi
  10252. if test "${lt_cv_path_LD+set}" = set; then
  10253. $as_echo_n "(cached) " >&6
  10254. else
  10255. if test -z "$LD"; then
  10256. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10257. for ac_dir in $PATH; do
  10258. IFS="$lt_save_ifs"
  10259. test -z "$ac_dir" && ac_dir=.
  10260. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10261. lt_cv_path_LD="$ac_dir/$ac_prog"
  10262. # Check to see if the program is GNU ld. I'd rather use --version,
  10263. # but apparently some variants of GNU ld only accept -v.
  10264. # Break only if it was the GNU/non-GNU ld that we prefer.
  10265. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10266. *GNU* | *'with BFD'*)
  10267. test "$with_gnu_ld" != no && break
  10268. ;;
  10269. *)
  10270. test "$with_gnu_ld" != yes && break
  10271. ;;
  10272. esac
  10273. fi
  10274. done
  10275. IFS="$lt_save_ifs"
  10276. else
  10277. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10278. fi
  10279. fi
  10280. LD="$lt_cv_path_LD"
  10281. if test -n "$LD"; then
  10282. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  10283. $as_echo "$LD" >&6; }
  10284. else
  10285. { $as_echo "$as_me:$LINENO: result: no" >&5
  10286. $as_echo "no" >&6; }
  10287. fi
  10288. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10289. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10290. { (exit 1); exit 1; }; }
  10291. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10292. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10293. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10297. case `$LD -v 2>&1 </dev/null` in
  10298. *GNU* | *'with BFD'*)
  10299. lt_cv_prog_gnu_ld=yes
  10300. ;;
  10301. *)
  10302. lt_cv_prog_gnu_ld=no
  10303. ;;
  10304. esac
  10305. fi
  10306. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10307. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10308. with_gnu_ld=$lt_cv_prog_gnu_ld
  10309. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10310. # archiving commands below assume that GNU ld is being used.
  10311. if test "$with_gnu_ld" = yes; then
  10312. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10313. 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'
  10314. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10315. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10316. # If archive_cmds runs LD, not CC, wlarc should be empty
  10317. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10318. # investigate it a little bit more. (MM)
  10319. wlarc='${wl}'
  10320. # ancient GNU ld didn't support --whole-archive et. al.
  10321. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10322. grep 'no-whole-archive' > /dev/null; then
  10323. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10324. else
  10325. whole_archive_flag_spec_CXX=
  10326. fi
  10327. else
  10328. with_gnu_ld=no
  10329. wlarc=
  10330. # A generic and very simple default shared library creation
  10331. # command for GNU C++ for the case where it uses the native
  10332. # linker, instead of GNU ld. If possible, this setting should
  10333. # overridden to take advantage of the native linker features on
  10334. # the platform it is being used on.
  10335. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10336. fi
  10337. # Commands to make compiler produce verbose output that lists
  10338. # what "hidden" libraries, object files and flags are used when
  10339. # linking a shared library.
  10340. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10341. else
  10342. GXX=no
  10343. with_gnu_ld=no
  10344. wlarc=
  10345. fi
  10346. # PORTME: fill in a description of your system's C++ link characteristics
  10347. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10348. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10349. ld_shlibs_CXX=yes
  10350. case $host_os in
  10351. aix3*)
  10352. # FIXME: insert proper C++ library support
  10353. ld_shlibs_CXX=no
  10354. ;;
  10355. aix4* | aix5*)
  10356. if test "$host_cpu" = ia64; then
  10357. # On IA64, the linker does run time linking by default, so we don't
  10358. # have to do anything special.
  10359. aix_use_runtimelinking=no
  10360. exp_sym_flag='-Bexport'
  10361. no_entry_flag=""
  10362. else
  10363. aix_use_runtimelinking=no
  10364. # Test if we are trying to use run time linking or normal
  10365. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10366. # need to do runtime linking.
  10367. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10368. for ld_flag in $LDFLAGS; do
  10369. case $ld_flag in
  10370. *-brtl*)
  10371. aix_use_runtimelinking=yes
  10372. break
  10373. ;;
  10374. esac
  10375. done
  10376. ;;
  10377. esac
  10378. exp_sym_flag='-bexport'
  10379. no_entry_flag='-bnoentry'
  10380. fi
  10381. # When large executables or shared objects are built, AIX ld can
  10382. # have problems creating the table of contents. If linking a library
  10383. # or program results in "error TOC overflow" add -mminimal-toc to
  10384. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10385. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10386. archive_cmds_CXX=''
  10387. hardcode_direct_CXX=yes
  10388. hardcode_libdir_separator_CXX=':'
  10389. link_all_deplibs_CXX=yes
  10390. if test "$GXX" = yes; then
  10391. case $host_os in aix4.[012]|aix4.[012].*)
  10392. # We only want to do this on AIX 4.2 and lower, the check
  10393. # below for broken collect2 doesn't work under 4.3+
  10394. collect2name=`${CC} -print-prog-name=collect2`
  10395. if test -f "$collect2name" && \
  10396. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10397. then
  10398. # We have reworked collect2
  10399. :
  10400. else
  10401. # We have old collect2
  10402. hardcode_direct_CXX=unsupported
  10403. # It fails to find uninstalled libraries when the uninstalled
  10404. # path is not listed in the libpath. Setting hardcode_minus_L
  10405. # to unsupported forces relinking
  10406. hardcode_minus_L_CXX=yes
  10407. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10408. hardcode_libdir_separator_CXX=
  10409. fi
  10410. ;;
  10411. esac
  10412. shared_flag='-shared'
  10413. if test "$aix_use_runtimelinking" = yes; then
  10414. shared_flag="$shared_flag "'${wl}-G'
  10415. fi
  10416. else
  10417. # not using gcc
  10418. if test "$host_cpu" = ia64; then
  10419. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10420. # chokes on -Wl,-G. The following line is correct:
  10421. shared_flag='-G'
  10422. else
  10423. if test "$aix_use_runtimelinking" = yes; then
  10424. shared_flag='${wl}-G'
  10425. else
  10426. shared_flag='${wl}-bM:SRE'
  10427. fi
  10428. fi
  10429. fi
  10430. # It seems that -bexpall does not export symbols beginning with
  10431. # underscore (_), so it is better to generate a list of symbols to export.
  10432. always_export_symbols_CXX=yes
  10433. if test "$aix_use_runtimelinking" = yes; then
  10434. # Warning - without using the other runtime loading flags (-brtl),
  10435. # -berok will link without error, but may produce a broken library.
  10436. allow_undefined_flag_CXX='-berok'
  10437. # Determine the default libpath from the value encoded in an empty executable.
  10438. cat >conftest.$ac_ext <<_ACEOF
  10439. /* confdefs.h. */
  10440. _ACEOF
  10441. cat confdefs.h >>conftest.$ac_ext
  10442. cat >>conftest.$ac_ext <<_ACEOF
  10443. /* end confdefs.h. */
  10444. int
  10445. main ()
  10446. {
  10447. ;
  10448. return 0;
  10449. }
  10450. _ACEOF
  10451. rm -f conftest.$ac_objext conftest$ac_exeext
  10452. if { (ac_try="$ac_link"
  10453. case "(($ac_try" in
  10454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10455. *) ac_try_echo=$ac_try;;
  10456. esac
  10457. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10458. $as_echo "$ac_try_echo") >&5
  10459. (eval "$ac_link") 2>conftest.er1
  10460. ac_status=$?
  10461. grep -v '^ *+' conftest.er1 >conftest.err
  10462. rm -f conftest.er1
  10463. cat conftest.err >&5
  10464. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10465. (exit $ac_status); } && {
  10466. test -z "$ac_cxx_werror_flag" ||
  10467. test ! -s conftest.err
  10468. } && test -s conftest$ac_exeext && {
  10469. test "$cross_compiling" = yes ||
  10470. $as_test_x conftest$ac_exeext
  10471. }; then
  10472. lt_aix_libpath_sed='
  10473. /Import File Strings/,/^$/ {
  10474. /^0/ {
  10475. s/^0 *\(.*\)$/\1/
  10476. p
  10477. }
  10478. }'
  10479. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10480. # Check for a 64-bit object if we didn't find anything.
  10481. if test -z "$aix_libpath"; then
  10482. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10483. fi
  10484. else
  10485. $as_echo "$as_me: failed program was:" >&5
  10486. sed 's/^/| /' conftest.$ac_ext >&5
  10487. fi
  10488. rm -rf conftest.dSYM
  10489. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10490. conftest$ac_exeext conftest.$ac_ext
  10491. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10492. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10493. 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"
  10494. else
  10495. if test "$host_cpu" = ia64; then
  10496. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10497. allow_undefined_flag_CXX="-z nodefs"
  10498. 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"
  10499. else
  10500. # Determine the default libpath from the value encoded in an empty executable.
  10501. cat >conftest.$ac_ext <<_ACEOF
  10502. /* confdefs.h. */
  10503. _ACEOF
  10504. cat confdefs.h >>conftest.$ac_ext
  10505. cat >>conftest.$ac_ext <<_ACEOF
  10506. /* end confdefs.h. */
  10507. int
  10508. main ()
  10509. {
  10510. ;
  10511. return 0;
  10512. }
  10513. _ACEOF
  10514. rm -f conftest.$ac_objext conftest$ac_exeext
  10515. if { (ac_try="$ac_link"
  10516. case "(($ac_try" in
  10517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10518. *) ac_try_echo=$ac_try;;
  10519. esac
  10520. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10521. $as_echo "$ac_try_echo") >&5
  10522. (eval "$ac_link") 2>conftest.er1
  10523. ac_status=$?
  10524. grep -v '^ *+' conftest.er1 >conftest.err
  10525. rm -f conftest.er1
  10526. cat conftest.err >&5
  10527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10528. (exit $ac_status); } && {
  10529. test -z "$ac_cxx_werror_flag" ||
  10530. test ! -s conftest.err
  10531. } && test -s conftest$ac_exeext && {
  10532. test "$cross_compiling" = yes ||
  10533. $as_test_x conftest$ac_exeext
  10534. }; then
  10535. lt_aix_libpath_sed='
  10536. /Import File Strings/,/^$/ {
  10537. /^0/ {
  10538. s/^0 *\(.*\)$/\1/
  10539. p
  10540. }
  10541. }'
  10542. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10543. # Check for a 64-bit object if we didn't find anything.
  10544. if test -z "$aix_libpath"; then
  10545. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10546. fi
  10547. else
  10548. $as_echo "$as_me: failed program was:" >&5
  10549. sed 's/^/| /' conftest.$ac_ext >&5
  10550. fi
  10551. rm -rf conftest.dSYM
  10552. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10553. conftest$ac_exeext conftest.$ac_ext
  10554. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10555. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10556. # Warning - without using the other run time loading flags,
  10557. # -berok will link without error, but may produce a broken library.
  10558. no_undefined_flag_CXX=' ${wl}-bernotok'
  10559. allow_undefined_flag_CXX=' ${wl}-berok'
  10560. # Exported symbols can be pulled into shared objects from archives
  10561. whole_archive_flag_spec_CXX='$convenience'
  10562. archive_cmds_need_lc_CXX=yes
  10563. # This is similar to how AIX traditionally builds its shared libraries.
  10564. 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'
  10565. fi
  10566. fi
  10567. ;;
  10568. beos*)
  10569. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10570. allow_undefined_flag_CXX=unsupported
  10571. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10572. # support --undefined. This deserves some investigation. FIXME
  10573. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10574. else
  10575. ld_shlibs_CXX=no
  10576. fi
  10577. ;;
  10578. chorus*)
  10579. case $cc_basename in
  10580. *)
  10581. # FIXME: insert proper C++ library support
  10582. ld_shlibs_CXX=no
  10583. ;;
  10584. esac
  10585. ;;
  10586. cygwin* | mingw* | pw32*)
  10587. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10588. # as there is no search path for DLLs.
  10589. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10590. allow_undefined_flag_CXX=unsupported
  10591. always_export_symbols_CXX=no
  10592. enable_shared_with_static_runtimes_CXX=yes
  10593. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10594. 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'
  10595. # If the export-symbols file already is a .def file (1st line
  10596. # is EXPORTS), use it as is; otherwise, prepend...
  10597. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10598. cp $export_symbols $output_objdir/$soname.def;
  10599. else
  10600. echo EXPORTS > $output_objdir/$soname.def;
  10601. cat $export_symbols >> $output_objdir/$soname.def;
  10602. fi~
  10603. $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'
  10604. else
  10605. ld_shlibs_CXX=no
  10606. fi
  10607. ;;
  10608. darwin* | rhapsody*)
  10609. case $host_os in
  10610. rhapsody* | darwin1.[012])
  10611. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10612. ;;
  10613. *) # Darwin 1.3 on
  10614. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10615. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10616. else
  10617. case ${MACOSX_DEPLOYMENT_TARGET} in
  10618. 10.[012])
  10619. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10620. ;;
  10621. 10.*)
  10622. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10623. ;;
  10624. esac
  10625. fi
  10626. ;;
  10627. esac
  10628. archive_cmds_need_lc_CXX=no
  10629. hardcode_direct_CXX=no
  10630. hardcode_automatic_CXX=yes
  10631. hardcode_shlibpath_var_CXX=unsupported
  10632. whole_archive_flag_spec_CXX=''
  10633. link_all_deplibs_CXX=yes
  10634. if test "$GXX" = yes ; then
  10635. lt_int_apple_cc_single_mod=no
  10636. output_verbose_link_cmd='echo'
  10637. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10638. lt_int_apple_cc_single_mod=yes
  10639. fi
  10640. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10641. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10642. else
  10643. 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'
  10644. fi
  10645. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10646. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10647. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10648. 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}'
  10649. else
  10650. 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}'
  10651. fi
  10652. 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}'
  10653. else
  10654. case $cc_basename in
  10655. xlc*)
  10656. output_verbose_link_cmd='echo'
  10657. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10658. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10659. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10660. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10661. 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}'
  10662. ;;
  10663. *)
  10664. ld_shlibs_CXX=no
  10665. ;;
  10666. esac
  10667. fi
  10668. ;;
  10669. dgux*)
  10670. case $cc_basename in
  10671. ec++*)
  10672. # FIXME: insert proper C++ library support
  10673. ld_shlibs_CXX=no
  10674. ;;
  10675. ghcx*)
  10676. # Green Hills C++ Compiler
  10677. # FIXME: insert proper C++ library support
  10678. ld_shlibs_CXX=no
  10679. ;;
  10680. *)
  10681. # FIXME: insert proper C++ library support
  10682. ld_shlibs_CXX=no
  10683. ;;
  10684. esac
  10685. ;;
  10686. freebsd[12]*)
  10687. # C++ shared libraries reported to be fairly broken before switch to ELF
  10688. ld_shlibs_CXX=no
  10689. ;;
  10690. freebsd-elf*)
  10691. archive_cmds_need_lc_CXX=no
  10692. ;;
  10693. freebsd* | dragonfly*)
  10694. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10695. # conventions
  10696. ld_shlibs_CXX=yes
  10697. ;;
  10698. gnu*)
  10699. ;;
  10700. hpux9*)
  10701. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10702. hardcode_libdir_separator_CXX=:
  10703. export_dynamic_flag_spec_CXX='${wl}-E'
  10704. hardcode_direct_CXX=yes
  10705. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10706. # but as the default
  10707. # location of the library.
  10708. case $cc_basename in
  10709. CC*)
  10710. # FIXME: insert proper C++ library support
  10711. ld_shlibs_CXX=no
  10712. ;;
  10713. aCC*)
  10714. 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'
  10715. # Commands to make compiler produce verbose output that lists
  10716. # what "hidden" libraries, object files and flags are used when
  10717. # linking a shared library.
  10718. #
  10719. # There doesn't appear to be a way to prevent this compiler from
  10720. # explicitly linking system object files so we need to strip them
  10721. # from the output so that they don't get included in the library
  10722. # dependencies.
  10723. 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'
  10724. ;;
  10725. *)
  10726. if test "$GXX" = yes; then
  10727. 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'
  10728. else
  10729. # FIXME: insert proper C++ library support
  10730. ld_shlibs_CXX=no
  10731. fi
  10732. ;;
  10733. esac
  10734. ;;
  10735. hpux10*|hpux11*)
  10736. if test $with_gnu_ld = no; then
  10737. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10738. hardcode_libdir_separator_CXX=:
  10739. case $host_cpu in
  10740. hppa*64*|ia64*) ;;
  10741. *)
  10742. export_dynamic_flag_spec_CXX='${wl}-E'
  10743. ;;
  10744. esac
  10745. fi
  10746. case $host_cpu in
  10747. hppa*64*|ia64*)
  10748. hardcode_direct_CXX=no
  10749. hardcode_shlibpath_var_CXX=no
  10750. ;;
  10751. *)
  10752. hardcode_direct_CXX=yes
  10753. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10754. # but as the default
  10755. # location of the library.
  10756. ;;
  10757. esac
  10758. case $cc_basename in
  10759. CC*)
  10760. # FIXME: insert proper C++ library support
  10761. ld_shlibs_CXX=no
  10762. ;;
  10763. aCC*)
  10764. case $host_cpu in
  10765. hppa*64*)
  10766. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10767. ;;
  10768. ia64*)
  10769. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10770. ;;
  10771. *)
  10772. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10773. ;;
  10774. esac
  10775. # Commands to make compiler produce verbose output that lists
  10776. # what "hidden" libraries, object files and flags are used when
  10777. # linking a shared library.
  10778. #
  10779. # There doesn't appear to be a way to prevent this compiler from
  10780. # explicitly linking system object files so we need to strip them
  10781. # from the output so that they don't get included in the library
  10782. # dependencies.
  10783. 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'
  10784. ;;
  10785. *)
  10786. if test "$GXX" = yes; then
  10787. if test $with_gnu_ld = no; then
  10788. case $host_cpu in
  10789. hppa*64*)
  10790. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10791. ;;
  10792. ia64*)
  10793. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10794. ;;
  10795. *)
  10796. 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'
  10797. ;;
  10798. esac
  10799. fi
  10800. else
  10801. # FIXME: insert proper C++ library support
  10802. ld_shlibs_CXX=no
  10803. fi
  10804. ;;
  10805. esac
  10806. ;;
  10807. interix[3-9]*)
  10808. hardcode_direct_CXX=no
  10809. hardcode_shlibpath_var_CXX=no
  10810. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10811. export_dynamic_flag_spec_CXX='${wl}-E'
  10812. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10813. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10814. # default) and relocated if they conflict, which is a slow very memory
  10815. # consuming and fragmenting process. To avoid this, we pick a random,
  10816. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10817. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10818. 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'
  10819. 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'
  10820. ;;
  10821. irix5* | irix6*)
  10822. case $cc_basename in
  10823. CC*)
  10824. # SGI C++
  10825. 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'
  10826. # Archives containing C++ object files must be created using
  10827. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10828. # necessary to make sure instantiated templates are included
  10829. # in the archive.
  10830. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10831. ;;
  10832. *)
  10833. if test "$GXX" = yes; then
  10834. if test "$with_gnu_ld" = no; then
  10835. 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'
  10836. else
  10837. 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'
  10838. fi
  10839. fi
  10840. link_all_deplibs_CXX=yes
  10841. ;;
  10842. esac
  10843. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10844. hardcode_libdir_separator_CXX=:
  10845. ;;
  10846. linux* | k*bsd*-gnu)
  10847. case $cc_basename in
  10848. KCC*)
  10849. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10850. # KCC will only create a shared library if the output file
  10851. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10852. # to its proper name (with version) after linking.
  10853. 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'
  10854. 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'
  10855. # Commands to make compiler produce verbose output that lists
  10856. # what "hidden" libraries, object files and flags are used when
  10857. # linking a shared library.
  10858. #
  10859. # There doesn't appear to be a way to prevent this compiler from
  10860. # explicitly linking system object files so we need to strip them
  10861. # from the output so that they don't get included in the library
  10862. # dependencies.
  10863. 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'
  10864. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10865. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10866. # Archives containing C++ object files must be created using
  10867. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10868. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10869. ;;
  10870. icpc*)
  10871. # Intel C++
  10872. with_gnu_ld=yes
  10873. # version 8.0 and above of icpc choke on multiply defined symbols
  10874. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10875. # earlier do not add the objects themselves.
  10876. case `$CC -V 2>&1` in
  10877. *"Version 7."*)
  10878. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10879. 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'
  10880. ;;
  10881. *) # Version 8.0 or newer
  10882. tmp_idyn=
  10883. case $host_cpu in
  10884. ia64*) tmp_idyn=' -i_dynamic';;
  10885. esac
  10886. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10887. 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'
  10888. ;;
  10889. esac
  10890. archive_cmds_need_lc_CXX=no
  10891. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10892. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10893. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10894. ;;
  10895. pgCC*)
  10896. # Portland Group C++ compiler
  10897. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10898. 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'
  10899. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10900. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10901. 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'
  10902. ;;
  10903. cxx*)
  10904. # Compaq C++
  10905. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10906. 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'
  10907. runpath_var=LD_RUN_PATH
  10908. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10909. hardcode_libdir_separator_CXX=:
  10910. # Commands to make compiler produce verbose output that lists
  10911. # what "hidden" libraries, object files and flags are used when
  10912. # linking a shared library.
  10913. #
  10914. # There doesn't appear to be a way to prevent this compiler from
  10915. # explicitly linking system object files so we need to strip them
  10916. # from the output so that they don't get included in the library
  10917. # dependencies.
  10918. 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'
  10919. ;;
  10920. *)
  10921. case `$CC -V 2>&1 | sed 5q` in
  10922. *Sun\ C*)
  10923. # Sun C++ 5.9
  10924. no_undefined_flag_CXX=' -zdefs'
  10925. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10926. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10927. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10928. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10929. # Not sure whether something based on
  10930. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10931. # would be better.
  10932. output_verbose_link_cmd='echo'
  10933. # Archives containing C++ object files must be created using
  10934. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10935. # necessary to make sure instantiated templates are included
  10936. # in the archive.
  10937. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10938. ;;
  10939. esac
  10940. ;;
  10941. esac
  10942. ;;
  10943. lynxos*)
  10944. # FIXME: insert proper C++ library support
  10945. ld_shlibs_CXX=no
  10946. ;;
  10947. m88k*)
  10948. # FIXME: insert proper C++ library support
  10949. ld_shlibs_CXX=no
  10950. ;;
  10951. mvs*)
  10952. case $cc_basename in
  10953. cxx*)
  10954. # FIXME: insert proper C++ library support
  10955. ld_shlibs_CXX=no
  10956. ;;
  10957. *)
  10958. # FIXME: insert proper C++ library support
  10959. ld_shlibs_CXX=no
  10960. ;;
  10961. esac
  10962. ;;
  10963. netbsd*)
  10964. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10965. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10966. wlarc=
  10967. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10968. hardcode_direct_CXX=yes
  10969. hardcode_shlibpath_var_CXX=no
  10970. fi
  10971. # Workaround some broken pre-1.5 toolchains
  10972. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10973. ;;
  10974. openbsd2*)
  10975. # C++ shared libraries are fairly broken
  10976. ld_shlibs_CXX=no
  10977. ;;
  10978. openbsd*)
  10979. if test -f /usr/libexec/ld.so; then
  10980. hardcode_direct_CXX=yes
  10981. hardcode_shlibpath_var_CXX=no
  10982. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10983. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10984. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10985. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10986. export_dynamic_flag_spec_CXX='${wl}-E'
  10987. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10988. fi
  10989. output_verbose_link_cmd='echo'
  10990. else
  10991. ld_shlibs_CXX=no
  10992. fi
  10993. ;;
  10994. osf3*)
  10995. case $cc_basename in
  10996. KCC*)
  10997. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10998. # KCC will only create a shared library if the output file
  10999. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11000. # to its proper name (with version) after linking.
  11001. 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'
  11002. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11003. hardcode_libdir_separator_CXX=:
  11004. # Archives containing C++ object files must be created using
  11005. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11006. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11007. ;;
  11008. RCC*)
  11009. # Rational C++ 2.4.1
  11010. # FIXME: insert proper C++ library support
  11011. ld_shlibs_CXX=no
  11012. ;;
  11013. cxx*)
  11014. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11015. 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'
  11016. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11017. hardcode_libdir_separator_CXX=:
  11018. # Commands to make compiler produce verbose output that lists
  11019. # what "hidden" libraries, object files and flags are used when
  11020. # linking a shared library.
  11021. #
  11022. # There doesn't appear to be a way to prevent this compiler from
  11023. # explicitly linking system object files so we need to strip them
  11024. # from the output so that they don't get included in the library
  11025. # dependencies.
  11026. 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'
  11027. ;;
  11028. *)
  11029. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11030. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11031. 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'
  11032. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11033. hardcode_libdir_separator_CXX=:
  11034. # Commands to make compiler produce verbose output that lists
  11035. # what "hidden" libraries, object files and flags are used when
  11036. # linking a shared library.
  11037. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11038. else
  11039. # FIXME: insert proper C++ library support
  11040. ld_shlibs_CXX=no
  11041. fi
  11042. ;;
  11043. esac
  11044. ;;
  11045. osf4* | osf5*)
  11046. case $cc_basename in
  11047. KCC*)
  11048. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11049. # KCC will only create a shared library if the output file
  11050. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11051. # to its proper name (with version) after linking.
  11052. 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'
  11053. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11054. hardcode_libdir_separator_CXX=:
  11055. # Archives containing C++ object files must be created using
  11056. # the KAI C++ compiler.
  11057. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  11058. ;;
  11059. RCC*)
  11060. # Rational C++ 2.4.1
  11061. # FIXME: insert proper C++ library support
  11062. ld_shlibs_CXX=no
  11063. ;;
  11064. cxx*)
  11065. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11066. 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'
  11067. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11068. echo "-hidden">> $lib.exp~
  11069. $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~
  11070. $rm $lib.exp'
  11071. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11072. hardcode_libdir_separator_CXX=:
  11073. # Commands to make compiler produce verbose output that lists
  11074. # what "hidden" libraries, object files and flags are used when
  11075. # linking a shared library.
  11076. #
  11077. # There doesn't appear to be a way to prevent this compiler from
  11078. # explicitly linking system object files so we need to strip them
  11079. # from the output so that they don't get included in the library
  11080. # dependencies.
  11081. 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'
  11082. ;;
  11083. *)
  11084. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11085. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11086. 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'
  11087. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11088. hardcode_libdir_separator_CXX=:
  11089. # Commands to make compiler produce verbose output that lists
  11090. # what "hidden" libraries, object files and flags are used when
  11091. # linking a shared library.
  11092. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11093. else
  11094. # FIXME: insert proper C++ library support
  11095. ld_shlibs_CXX=no
  11096. fi
  11097. ;;
  11098. esac
  11099. ;;
  11100. psos*)
  11101. # FIXME: insert proper C++ library support
  11102. ld_shlibs_CXX=no
  11103. ;;
  11104. sunos4*)
  11105. case $cc_basename in
  11106. CC*)
  11107. # Sun C++ 4.x
  11108. # FIXME: insert proper C++ library support
  11109. ld_shlibs_CXX=no
  11110. ;;
  11111. lcc*)
  11112. # Lucid
  11113. # FIXME: insert proper C++ library support
  11114. ld_shlibs_CXX=no
  11115. ;;
  11116. *)
  11117. # FIXME: insert proper C++ library support
  11118. ld_shlibs_CXX=no
  11119. ;;
  11120. esac
  11121. ;;
  11122. solaris*)
  11123. case $cc_basename in
  11124. CC*)
  11125. # Sun C++ 4.2, 5.x and Centerline C++
  11126. archive_cmds_need_lc_CXX=yes
  11127. no_undefined_flag_CXX=' -zdefs'
  11128. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11129. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11130. $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'
  11131. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11132. hardcode_shlibpath_var_CXX=no
  11133. case $host_os in
  11134. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11135. *)
  11136. # The compiler driver will combine and reorder linker options,
  11137. # but understands `-z linker_flag'.
  11138. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11139. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11140. ;;
  11141. esac
  11142. link_all_deplibs_CXX=yes
  11143. output_verbose_link_cmd='echo'
  11144. # Archives containing C++ object files must be created using
  11145. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11146. # necessary to make sure instantiated templates are included
  11147. # in the archive.
  11148. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11149. ;;
  11150. gcx*)
  11151. # Green Hills C++ Compiler
  11152. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11153. # The C++ compiler must be used to create the archive.
  11154. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11155. ;;
  11156. *)
  11157. # GNU C++ compiler with Solaris linker
  11158. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11159. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11160. if $CC --version | grep -v '^2\.7' > /dev/null; then
  11161. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11162. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11163. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11164. # Commands to make compiler produce verbose output that lists
  11165. # what "hidden" libraries, object files and flags are used when
  11166. # linking a shared library.
  11167. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11168. else
  11169. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11170. # platform.
  11171. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11172. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11173. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11174. # Commands to make compiler produce verbose output that lists
  11175. # what "hidden" libraries, object files and flags are used when
  11176. # linking a shared library.
  11177. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11178. fi
  11179. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11180. case $host_os in
  11181. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11182. *)
  11183. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11184. ;;
  11185. esac
  11186. fi
  11187. ;;
  11188. esac
  11189. ;;
  11190. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11191. no_undefined_flag_CXX='${wl}-z,text'
  11192. archive_cmds_need_lc_CXX=no
  11193. hardcode_shlibpath_var_CXX=no
  11194. runpath_var='LD_RUN_PATH'
  11195. case $cc_basename in
  11196. CC*)
  11197. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11198. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11199. ;;
  11200. *)
  11201. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11202. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11203. ;;
  11204. esac
  11205. ;;
  11206. sysv5* | sco3.2v5* | sco5v6*)
  11207. # Note: We can NOT use -z defs as we might desire, because we do not
  11208. # link with -lc, and that would cause any symbols used from libc to
  11209. # always be unresolved, which means just about no library would
  11210. # ever link correctly. If we're not using GNU ld we use -z text
  11211. # though, which does catch some bad symbols but isn't as heavy-handed
  11212. # as -z defs.
  11213. # For security reasons, it is highly recommended that you always
  11214. # use absolute paths for naming shared libraries, and exclude the
  11215. # DT_RUNPATH tag from executables and libraries. But doing so
  11216. # requires that you compile everything twice, which is a pain.
  11217. # So that behaviour is only enabled if SCOABSPATH is set to a
  11218. # non-empty value in the environment. Most likely only useful for
  11219. # creating official distributions of packages.
  11220. # This is a hack until libtool officially supports absolute path
  11221. # names for shared libraries.
  11222. no_undefined_flag_CXX='${wl}-z,text'
  11223. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11224. archive_cmds_need_lc_CXX=no
  11225. hardcode_shlibpath_var_CXX=no
  11226. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  11227. hardcode_libdir_separator_CXX=':'
  11228. link_all_deplibs_CXX=yes
  11229. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11230. runpath_var='LD_RUN_PATH'
  11231. case $cc_basename in
  11232. CC*)
  11233. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11234. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11235. ;;
  11236. *)
  11237. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11238. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11239. ;;
  11240. esac
  11241. ;;
  11242. tandem*)
  11243. case $cc_basename in
  11244. NCC*)
  11245. # NonStop-UX NCC 3.20
  11246. # FIXME: insert proper C++ library support
  11247. ld_shlibs_CXX=no
  11248. ;;
  11249. *)
  11250. # FIXME: insert proper C++ library support
  11251. ld_shlibs_CXX=no
  11252. ;;
  11253. esac
  11254. ;;
  11255. vxworks*)
  11256. # FIXME: insert proper C++ library support
  11257. ld_shlibs_CXX=no
  11258. ;;
  11259. *)
  11260. # FIXME: insert proper C++ library support
  11261. ld_shlibs_CXX=no
  11262. ;;
  11263. esac
  11264. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11265. $as_echo "$ld_shlibs_CXX" >&6; }
  11266. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11267. GCC_CXX="$GXX"
  11268. LD_CXX="$LD"
  11269. cat > conftest.$ac_ext <<EOF
  11270. class Foo
  11271. {
  11272. public:
  11273. Foo (void) { a = 0; }
  11274. private:
  11275. int a;
  11276. };
  11277. EOF
  11278. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11279. (eval $ac_compile) 2>&5
  11280. ac_status=$?
  11281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11282. (exit $ac_status); }; then
  11283. # Parse the compiler output and extract the necessary
  11284. # objects, libraries and library flags.
  11285. # Sentinel used to keep track of whether or not we are before
  11286. # the conftest object file.
  11287. pre_test_object_deps_done=no
  11288. # The `*' in the case matches for architectures that use `case' in
  11289. # $output_verbose_cmd can trigger glob expansion during the loop
  11290. # eval without this substitution.
  11291. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11292. for p in `eval $output_verbose_link_cmd`; do
  11293. case $p in
  11294. -L* | -R* | -l*)
  11295. # Some compilers place space between "-{L,R}" and the path.
  11296. # Remove the space.
  11297. if test $p = "-L" \
  11298. || test $p = "-R"; then
  11299. prev=$p
  11300. continue
  11301. else
  11302. prev=
  11303. fi
  11304. if test "$pre_test_object_deps_done" = no; then
  11305. case $p in
  11306. -L* | -R*)
  11307. # Internal compiler library paths should come after those
  11308. # provided the user. The postdeps already come after the
  11309. # user supplied libs so there is no need to process them.
  11310. if test -z "$compiler_lib_search_path_CXX"; then
  11311. compiler_lib_search_path_CXX="${prev}${p}"
  11312. else
  11313. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11314. fi
  11315. ;;
  11316. # The "-l" case would never come before the object being
  11317. # linked, so don't bother handling this case.
  11318. esac
  11319. else
  11320. if test -z "$postdeps_CXX"; then
  11321. postdeps_CXX="${prev}${p}"
  11322. else
  11323. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11324. fi
  11325. fi
  11326. ;;
  11327. *.$objext)
  11328. # This assumes that the test object file only shows up
  11329. # once in the compiler output.
  11330. if test "$p" = "conftest.$objext"; then
  11331. pre_test_object_deps_done=yes
  11332. continue
  11333. fi
  11334. if test "$pre_test_object_deps_done" = no; then
  11335. if test -z "$predep_objects_CXX"; then
  11336. predep_objects_CXX="$p"
  11337. else
  11338. predep_objects_CXX="$predep_objects_CXX $p"
  11339. fi
  11340. else
  11341. if test -z "$postdep_objects_CXX"; then
  11342. postdep_objects_CXX="$p"
  11343. else
  11344. postdep_objects_CXX="$postdep_objects_CXX $p"
  11345. fi
  11346. fi
  11347. ;;
  11348. *) ;; # Ignore the rest.
  11349. esac
  11350. done
  11351. # Clean up.
  11352. rm -f a.out a.exe
  11353. else
  11354. echo "libtool.m4: error: problem compiling CXX test program"
  11355. fi
  11356. $rm -f confest.$objext
  11357. # PORTME: override above test on systems where it is broken
  11358. case $host_os in
  11359. interix[3-9]*)
  11360. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11361. # hack all around it, let's just trust "g++" to DTRT.
  11362. predep_objects_CXX=
  11363. postdep_objects_CXX=
  11364. postdeps_CXX=
  11365. ;;
  11366. linux*)
  11367. case `$CC -V 2>&1 | sed 5q` in
  11368. *Sun\ C*)
  11369. # Sun C++ 5.9
  11370. #
  11371. # The more standards-conforming stlport4 library is
  11372. # incompatible with the Cstd library. Avoid specifying
  11373. # it if it's in CXXFLAGS. Ignore libCrun as
  11374. # -library=stlport4 depends on it.
  11375. case " $CXX $CXXFLAGS " in
  11376. *" -library=stlport4 "*)
  11377. solaris_use_stlport4=yes
  11378. ;;
  11379. esac
  11380. if test "$solaris_use_stlport4" != yes; then
  11381. postdeps_CXX='-library=Cstd -library=Crun'
  11382. fi
  11383. ;;
  11384. esac
  11385. ;;
  11386. solaris*)
  11387. case $cc_basename in
  11388. CC*)
  11389. # The more standards-conforming stlport4 library is
  11390. # incompatible with the Cstd library. Avoid specifying
  11391. # it if it's in CXXFLAGS. Ignore libCrun as
  11392. # -library=stlport4 depends on it.
  11393. case " $CXX $CXXFLAGS " in
  11394. *" -library=stlport4 "*)
  11395. solaris_use_stlport4=yes
  11396. ;;
  11397. esac
  11398. # Adding this requires a known-good setup of shared libraries for
  11399. # Sun compiler versions before 5.6, else PIC objects from an old
  11400. # archive will be linked into the output, leading to subtle bugs.
  11401. if test "$solaris_use_stlport4" != yes; then
  11402. postdeps_CXX='-library=Cstd -library=Crun'
  11403. fi
  11404. ;;
  11405. esac
  11406. ;;
  11407. esac
  11408. case " $postdeps_CXX " in
  11409. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11410. esac
  11411. lt_prog_compiler_wl_CXX=
  11412. lt_prog_compiler_pic_CXX=
  11413. lt_prog_compiler_static_CXX=
  11414. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11415. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11416. # C++ specific cases for pic, static, wl, etc.
  11417. if test "$GXX" = yes; then
  11418. lt_prog_compiler_wl_CXX='-Wl,'
  11419. lt_prog_compiler_static_CXX='-static'
  11420. case $host_os in
  11421. aix*)
  11422. # All AIX code is PIC.
  11423. if test "$host_cpu" = ia64; then
  11424. # AIX 5 now supports IA64 processor
  11425. lt_prog_compiler_static_CXX='-Bstatic'
  11426. fi
  11427. ;;
  11428. amigaos*)
  11429. # FIXME: we need at least 68020 code to build shared libraries, but
  11430. # adding the `-m68020' flag to GCC prevents building anything better,
  11431. # like `-m68040'.
  11432. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11433. ;;
  11434. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11435. # PIC is the default for these OSes.
  11436. ;;
  11437. mingw* | cygwin* | os2* | pw32*)
  11438. # This hack is so that the source file can tell whether it is being
  11439. # built for inclusion in a dll (and should export symbols for example).
  11440. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11441. # (--disable-auto-import) libraries
  11442. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11443. ;;
  11444. darwin* | rhapsody*)
  11445. # PIC is the default on this platform
  11446. # Common symbols not allowed in MH_DYLIB files
  11447. lt_prog_compiler_pic_CXX='-fno-common'
  11448. ;;
  11449. *djgpp*)
  11450. # DJGPP does not support shared libraries at all
  11451. lt_prog_compiler_pic_CXX=
  11452. ;;
  11453. interix[3-9]*)
  11454. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11455. # Instead, we relocate shared libraries at runtime.
  11456. ;;
  11457. sysv4*MP*)
  11458. if test -d /usr/nec; then
  11459. lt_prog_compiler_pic_CXX=-Kconform_pic
  11460. fi
  11461. ;;
  11462. hpux*)
  11463. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11464. # not for PA HP-UX.
  11465. case $host_cpu in
  11466. hppa*64*|ia64*)
  11467. ;;
  11468. *)
  11469. lt_prog_compiler_pic_CXX='-fPIC'
  11470. ;;
  11471. esac
  11472. ;;
  11473. *)
  11474. lt_prog_compiler_pic_CXX='-fPIC'
  11475. ;;
  11476. esac
  11477. else
  11478. case $host_os in
  11479. aix4* | aix5*)
  11480. # All AIX code is PIC.
  11481. if test "$host_cpu" = ia64; then
  11482. # AIX 5 now supports IA64 processor
  11483. lt_prog_compiler_static_CXX='-Bstatic'
  11484. else
  11485. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11486. fi
  11487. ;;
  11488. chorus*)
  11489. case $cc_basename in
  11490. cxch68*)
  11491. # Green Hills C++ Compiler
  11492. # _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"
  11493. ;;
  11494. esac
  11495. ;;
  11496. darwin*)
  11497. # PIC is the default on this platform
  11498. # Common symbols not allowed in MH_DYLIB files
  11499. case $cc_basename in
  11500. xlc*)
  11501. lt_prog_compiler_pic_CXX='-qnocommon'
  11502. lt_prog_compiler_wl_CXX='-Wl,'
  11503. ;;
  11504. esac
  11505. ;;
  11506. dgux*)
  11507. case $cc_basename in
  11508. ec++*)
  11509. lt_prog_compiler_pic_CXX='-KPIC'
  11510. ;;
  11511. ghcx*)
  11512. # Green Hills C++ Compiler
  11513. lt_prog_compiler_pic_CXX='-pic'
  11514. ;;
  11515. *)
  11516. ;;
  11517. esac
  11518. ;;
  11519. freebsd* | dragonfly*)
  11520. # FreeBSD uses GNU C++
  11521. ;;
  11522. hpux9* | hpux10* | hpux11*)
  11523. case $cc_basename in
  11524. CC*)
  11525. lt_prog_compiler_wl_CXX='-Wl,'
  11526. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11527. if test "$host_cpu" != ia64; then
  11528. lt_prog_compiler_pic_CXX='+Z'
  11529. fi
  11530. ;;
  11531. aCC*)
  11532. lt_prog_compiler_wl_CXX='-Wl,'
  11533. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11534. case $host_cpu in
  11535. hppa*64*|ia64*)
  11536. # +Z the default
  11537. ;;
  11538. *)
  11539. lt_prog_compiler_pic_CXX='+Z'
  11540. ;;
  11541. esac
  11542. ;;
  11543. *)
  11544. ;;
  11545. esac
  11546. ;;
  11547. interix*)
  11548. # This is c89, which is MS Visual C++ (no shared libs)
  11549. # Anyone wants to do a port?
  11550. ;;
  11551. irix5* | irix6* | nonstopux*)
  11552. case $cc_basename in
  11553. CC*)
  11554. lt_prog_compiler_wl_CXX='-Wl,'
  11555. lt_prog_compiler_static_CXX='-non_shared'
  11556. # CC pic flag -KPIC is the default.
  11557. ;;
  11558. *)
  11559. ;;
  11560. esac
  11561. ;;
  11562. linux* | k*bsd*-gnu)
  11563. case $cc_basename in
  11564. KCC*)
  11565. # KAI C++ Compiler
  11566. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11567. lt_prog_compiler_pic_CXX='-fPIC'
  11568. ;;
  11569. icpc* | ecpc*)
  11570. # Intel C++
  11571. lt_prog_compiler_wl_CXX='-Wl,'
  11572. lt_prog_compiler_pic_CXX='-KPIC'
  11573. lt_prog_compiler_static_CXX='-static'
  11574. ;;
  11575. pgCC*)
  11576. # Portland Group C++ compiler.
  11577. lt_prog_compiler_wl_CXX='-Wl,'
  11578. lt_prog_compiler_pic_CXX='-fpic'
  11579. lt_prog_compiler_static_CXX='-Bstatic'
  11580. ;;
  11581. cxx*)
  11582. # Compaq C++
  11583. # Make sure the PIC flag is empty. It appears that all Alpha
  11584. # Linux and Compaq Tru64 Unix objects are PIC.
  11585. lt_prog_compiler_pic_CXX=
  11586. lt_prog_compiler_static_CXX='-non_shared'
  11587. ;;
  11588. *)
  11589. case `$CC -V 2>&1 | sed 5q` in
  11590. *Sun\ C*)
  11591. # Sun C++ 5.9
  11592. lt_prog_compiler_pic_CXX='-KPIC'
  11593. lt_prog_compiler_static_CXX='-Bstatic'
  11594. lt_prog_compiler_wl_CXX='-Qoption ld '
  11595. ;;
  11596. esac
  11597. ;;
  11598. esac
  11599. ;;
  11600. lynxos*)
  11601. ;;
  11602. m88k*)
  11603. ;;
  11604. mvs*)
  11605. case $cc_basename in
  11606. cxx*)
  11607. lt_prog_compiler_pic_CXX='-W c,exportall'
  11608. ;;
  11609. *)
  11610. ;;
  11611. esac
  11612. ;;
  11613. netbsd*)
  11614. ;;
  11615. osf3* | osf4* | osf5*)
  11616. case $cc_basename in
  11617. KCC*)
  11618. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11619. ;;
  11620. RCC*)
  11621. # Rational C++ 2.4.1
  11622. lt_prog_compiler_pic_CXX='-pic'
  11623. ;;
  11624. cxx*)
  11625. # Digital/Compaq C++
  11626. lt_prog_compiler_wl_CXX='-Wl,'
  11627. # Make sure the PIC flag is empty. It appears that all Alpha
  11628. # Linux and Compaq Tru64 Unix objects are PIC.
  11629. lt_prog_compiler_pic_CXX=
  11630. lt_prog_compiler_static_CXX='-non_shared'
  11631. ;;
  11632. *)
  11633. ;;
  11634. esac
  11635. ;;
  11636. psos*)
  11637. ;;
  11638. solaris*)
  11639. case $cc_basename in
  11640. CC*)
  11641. # Sun C++ 4.2, 5.x and Centerline C++
  11642. lt_prog_compiler_pic_CXX='-KPIC'
  11643. lt_prog_compiler_static_CXX='-Bstatic'
  11644. lt_prog_compiler_wl_CXX='-Qoption ld '
  11645. ;;
  11646. gcx*)
  11647. # Green Hills C++ Compiler
  11648. lt_prog_compiler_pic_CXX='-PIC'
  11649. ;;
  11650. *)
  11651. ;;
  11652. esac
  11653. ;;
  11654. sunos4*)
  11655. case $cc_basename in
  11656. CC*)
  11657. # Sun C++ 4.x
  11658. lt_prog_compiler_pic_CXX='-pic'
  11659. lt_prog_compiler_static_CXX='-Bstatic'
  11660. ;;
  11661. lcc*)
  11662. # Lucid
  11663. lt_prog_compiler_pic_CXX='-pic'
  11664. ;;
  11665. *)
  11666. ;;
  11667. esac
  11668. ;;
  11669. tandem*)
  11670. case $cc_basename in
  11671. NCC*)
  11672. # NonStop-UX NCC 3.20
  11673. lt_prog_compiler_pic_CXX='-KPIC'
  11674. ;;
  11675. *)
  11676. ;;
  11677. esac
  11678. ;;
  11679. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11680. case $cc_basename in
  11681. CC*)
  11682. lt_prog_compiler_wl_CXX='-Wl,'
  11683. lt_prog_compiler_pic_CXX='-KPIC'
  11684. lt_prog_compiler_static_CXX='-Bstatic'
  11685. ;;
  11686. esac
  11687. ;;
  11688. vxworks*)
  11689. ;;
  11690. *)
  11691. lt_prog_compiler_can_build_shared_CXX=no
  11692. ;;
  11693. esac
  11694. fi
  11695. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11696. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11697. #
  11698. # Check to make sure the PIC flag actually works.
  11699. #
  11700. if test -n "$lt_prog_compiler_pic_CXX"; then
  11701. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11702. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11703. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11704. $as_echo_n "(cached) " >&6
  11705. else
  11706. lt_prog_compiler_pic_works_CXX=no
  11707. ac_outfile=conftest.$ac_objext
  11708. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11709. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11710. # Insert the option either (1) after the last *FLAGS variable, or
  11711. # (2) before a word containing "conftest.", or (3) at the end.
  11712. # Note that $ac_compile itself does not contain backslashes and begins
  11713. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11714. # The option is referenced via a variable to avoid confusing sed.
  11715. lt_compile=`echo "$ac_compile" | $SED \
  11716. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11717. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11718. -e 's:$: $lt_compiler_flag:'`
  11719. (eval echo "\"\$as_me:12989: $lt_compile\"" >&5)
  11720. (eval "$lt_compile" 2>conftest.err)
  11721. ac_status=$?
  11722. cat conftest.err >&5
  11723. echo "$as_me:12993: \$? = $ac_status" >&5
  11724. if (exit $ac_status) && test -s "$ac_outfile"; then
  11725. # The compiler can only warn and ignore the option if not recognized
  11726. # So say no if there are warnings other than the usual output.
  11727. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11728. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11729. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11730. lt_prog_compiler_pic_works_CXX=yes
  11731. fi
  11732. fi
  11733. $rm conftest*
  11734. fi
  11735. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11736. $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
  11737. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11738. case $lt_prog_compiler_pic_CXX in
  11739. "" | " "*) ;;
  11740. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11741. esac
  11742. else
  11743. lt_prog_compiler_pic_CXX=
  11744. lt_prog_compiler_can_build_shared_CXX=no
  11745. fi
  11746. fi
  11747. case $host_os in
  11748. # For platforms which do not support PIC, -DPIC is meaningless:
  11749. *djgpp*)
  11750. lt_prog_compiler_pic_CXX=
  11751. ;;
  11752. *)
  11753. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11754. ;;
  11755. esac
  11756. #
  11757. # Check to make sure the static flag actually works.
  11758. #
  11759. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11760. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11761. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11762. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11763. $as_echo_n "(cached) " >&6
  11764. else
  11765. lt_prog_compiler_static_works_CXX=no
  11766. save_LDFLAGS="$LDFLAGS"
  11767. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11768. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11769. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11770. # The linker can only warn and ignore the option if not recognized
  11771. # So say no if there are warnings
  11772. if test -s conftest.err; then
  11773. # Append any errors to the config.log.
  11774. cat conftest.err 1>&5
  11775. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11776. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11777. if diff conftest.exp conftest.er2 >/dev/null; then
  11778. lt_prog_compiler_static_works_CXX=yes
  11779. fi
  11780. else
  11781. lt_prog_compiler_static_works_CXX=yes
  11782. fi
  11783. fi
  11784. $rm conftest*
  11785. LDFLAGS="$save_LDFLAGS"
  11786. fi
  11787. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11788. $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
  11789. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11790. :
  11791. else
  11792. lt_prog_compiler_static_CXX=
  11793. fi
  11794. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11795. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11796. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11797. $as_echo_n "(cached) " >&6
  11798. else
  11799. lt_cv_prog_compiler_c_o_CXX=no
  11800. $rm -r conftest 2>/dev/null
  11801. mkdir conftest
  11802. cd conftest
  11803. mkdir out
  11804. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11805. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11806. # Insert the option either (1) after the last *FLAGS variable, or
  11807. # (2) before a word containing "conftest.", or (3) at the end.
  11808. # Note that $ac_compile itself does not contain backslashes and begins
  11809. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11810. lt_compile=`echo "$ac_compile" | $SED \
  11811. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11812. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11813. -e 's:$: $lt_compiler_flag:'`
  11814. (eval echo "\"\$as_me:13093: $lt_compile\"" >&5)
  11815. (eval "$lt_compile" 2>out/conftest.err)
  11816. ac_status=$?
  11817. cat out/conftest.err >&5
  11818. echo "$as_me:13097: \$? = $ac_status" >&5
  11819. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11820. then
  11821. # The compiler can only warn and ignore the option if not recognized
  11822. # So say no if there are warnings
  11823. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11824. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11825. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11826. lt_cv_prog_compiler_c_o_CXX=yes
  11827. fi
  11828. fi
  11829. chmod u+w . 2>&5
  11830. $rm conftest*
  11831. # SGI C++ compiler will create directory out/ii_files/ for
  11832. # template instantiation
  11833. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11834. $rm out/* && rmdir out
  11835. cd ..
  11836. rmdir conftest
  11837. $rm conftest*
  11838. fi
  11839. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11840. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11841. hard_links="nottested"
  11842. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11843. # do not overwrite the value of need_locks provided by the user
  11844. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11845. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11846. hard_links=yes
  11847. $rm conftest*
  11848. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11849. touch conftest.a
  11850. ln conftest.a conftest.b 2>&5 || hard_links=no
  11851. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11852. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  11853. $as_echo "$hard_links" >&6; }
  11854. if test "$hard_links" = no; then
  11855. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11856. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11857. need_locks=warn
  11858. fi
  11859. else
  11860. need_locks=no
  11861. fi
  11862. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11863. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11864. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11865. case $host_os in
  11866. aix4* | aix5*)
  11867. # If we're using GNU nm, then we don't want the "-C" option.
  11868. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11869. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11870. 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'
  11871. else
  11872. 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'
  11873. fi
  11874. ;;
  11875. pw32*)
  11876. export_symbols_cmds_CXX="$ltdll_cmds"
  11877. ;;
  11878. cygwin* | mingw*)
  11879. 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'
  11880. ;;
  11881. *)
  11882. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11883. ;;
  11884. esac
  11885. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11886. $as_echo "$ld_shlibs_CXX" >&6; }
  11887. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11888. #
  11889. # Do we need to explicitly link libc?
  11890. #
  11891. case "x$archive_cmds_need_lc_CXX" in
  11892. x|xyes)
  11893. # Assume -lc should be added
  11894. archive_cmds_need_lc_CXX=yes
  11895. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11896. case $archive_cmds_CXX in
  11897. *'~'*)
  11898. # FIXME: we may have to deal with multi-command sequences.
  11899. ;;
  11900. '$CC '*)
  11901. # Test whether the compiler implicitly links with -lc since on some
  11902. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11903. # to ld, don't add -lc before -lgcc.
  11904. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11905. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11906. $rm conftest*
  11907. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11909. (eval $ac_compile) 2>&5
  11910. ac_status=$?
  11911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11912. (exit $ac_status); } 2>conftest.err; then
  11913. soname=conftest
  11914. lib=conftest
  11915. libobjs=conftest.$ac_objext
  11916. deplibs=
  11917. wl=$lt_prog_compiler_wl_CXX
  11918. pic_flag=$lt_prog_compiler_pic_CXX
  11919. compiler_flags=-v
  11920. linker_flags=-v
  11921. verstring=
  11922. output_objdir=.
  11923. libname=conftest
  11924. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11925. allow_undefined_flag_CXX=
  11926. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11927. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11928. ac_status=$?
  11929. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11930. (exit $ac_status); }
  11931. then
  11932. archive_cmds_need_lc_CXX=no
  11933. else
  11934. archive_cmds_need_lc_CXX=yes
  11935. fi
  11936. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11937. else
  11938. cat conftest.err 1>&5
  11939. fi
  11940. $rm conftest*
  11941. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11942. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11943. ;;
  11944. esac
  11945. fi
  11946. ;;
  11947. esac
  11948. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11949. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11950. library_names_spec=
  11951. libname_spec='lib$name'
  11952. soname_spec=
  11953. shrext_cmds=".so"
  11954. postinstall_cmds=
  11955. postuninstall_cmds=
  11956. finish_cmds=
  11957. finish_eval=
  11958. shlibpath_var=
  11959. shlibpath_overrides_runpath=unknown
  11960. version_type=none
  11961. dynamic_linker="$host_os ld.so"
  11962. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11963. need_lib_prefix=unknown
  11964. hardcode_into_libs=no
  11965. # when you set need_version to no, make sure it does not cause -set_version
  11966. # flags to be left without arguments
  11967. need_version=unknown
  11968. case $host_os in
  11969. aix3*)
  11970. version_type=linux
  11971. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11972. shlibpath_var=LIBPATH
  11973. # AIX 3 has no versioning support, so we append a major version to the name.
  11974. soname_spec='${libname}${release}${shared_ext}$major'
  11975. ;;
  11976. aix4* | aix5*)
  11977. version_type=linux
  11978. need_lib_prefix=no
  11979. need_version=no
  11980. hardcode_into_libs=yes
  11981. if test "$host_cpu" = ia64; then
  11982. # AIX 5 supports IA64
  11983. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11984. shlibpath_var=LD_LIBRARY_PATH
  11985. else
  11986. # With GCC up to 2.95.x, collect2 would create an import file
  11987. # for dependence libraries. The import file would start with
  11988. # the line `#! .'. This would cause the generated library to
  11989. # depend on `.', always an invalid library. This was fixed in
  11990. # development snapshots of GCC prior to 3.0.
  11991. case $host_os in
  11992. aix4 | aix4.[01] | aix4.[01].*)
  11993. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11994. echo ' yes '
  11995. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11996. :
  11997. else
  11998. can_build_shared=no
  11999. fi
  12000. ;;
  12001. esac
  12002. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12003. # soname into executable. Probably we can add versioning support to
  12004. # collect2, so additional links can be useful in future.
  12005. if test "$aix_use_runtimelinking" = yes; then
  12006. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12007. # instead of lib<name>.a to let people know that these are not
  12008. # typical AIX shared libraries.
  12009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12010. else
  12011. # We preserve .a as extension for shared libraries through AIX4.2
  12012. # and later when we are not doing run time linking.
  12013. library_names_spec='${libname}${release}.a $libname.a'
  12014. soname_spec='${libname}${release}${shared_ext}$major'
  12015. fi
  12016. shlibpath_var=LIBPATH
  12017. fi
  12018. ;;
  12019. amigaos*)
  12020. library_names_spec='$libname.ixlibrary $libname.a'
  12021. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12022. 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'
  12023. ;;
  12024. beos*)
  12025. library_names_spec='${libname}${shared_ext}'
  12026. dynamic_linker="$host_os ld.so"
  12027. shlibpath_var=LIBRARY_PATH
  12028. ;;
  12029. bsdi[45]*)
  12030. version_type=linux
  12031. need_version=no
  12032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12033. soname_spec='${libname}${release}${shared_ext}$major'
  12034. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12035. shlibpath_var=LD_LIBRARY_PATH
  12036. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12037. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12038. # the default ld.so.conf also contains /usr/contrib/lib and
  12039. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12040. # libtool to hard-code these into programs
  12041. ;;
  12042. cygwin* | mingw* | pw32*)
  12043. version_type=windows
  12044. shrext_cmds=".dll"
  12045. need_version=no
  12046. need_lib_prefix=no
  12047. case $GCC,$host_os in
  12048. yes,cygwin* | yes,mingw* | yes,pw32*)
  12049. library_names_spec='$libname.dll.a'
  12050. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12051. postinstall_cmds='base_file=`basename \${file}`~
  12052. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12053. dldir=$destdir/`dirname \$dlpath`~
  12054. test -d \$dldir || mkdir -p \$dldir~
  12055. $install_prog $dir/$dlname \$dldir/$dlname~
  12056. chmod a+x \$dldir/$dlname'
  12057. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12058. dlpath=$dir/\$dldll~
  12059. $rm \$dlpath'
  12060. shlibpath_overrides_runpath=yes
  12061. case $host_os in
  12062. cygwin*)
  12063. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12064. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12065. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12066. ;;
  12067. mingw*)
  12068. # MinGW DLLs use traditional 'lib' prefix
  12069. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12070. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12071. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12072. # It is most probably a Windows format PATH printed by
  12073. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12074. # path with ; separators, and with drive letters. We can handle the
  12075. # drive letters (cygwin fileutils understands them), so leave them,
  12076. # especially as we might pass files found there to a mingw objdump,
  12077. # which wouldn't understand a cygwinified path. Ahh.
  12078. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12079. else
  12080. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12081. fi
  12082. ;;
  12083. pw32*)
  12084. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12085. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12086. ;;
  12087. esac
  12088. ;;
  12089. *)
  12090. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12091. ;;
  12092. esac
  12093. dynamic_linker='Win32 ld.exe'
  12094. # FIXME: first we should search . and the directory the executable is in
  12095. shlibpath_var=PATH
  12096. ;;
  12097. darwin* | rhapsody*)
  12098. dynamic_linker="$host_os dyld"
  12099. version_type=darwin
  12100. need_lib_prefix=no
  12101. need_version=no
  12102. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12103. soname_spec='${libname}${release}${major}$shared_ext'
  12104. shlibpath_overrides_runpath=yes
  12105. shlibpath_var=DYLD_LIBRARY_PATH
  12106. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12107. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12108. ;;
  12109. dgux*)
  12110. version_type=linux
  12111. need_lib_prefix=no
  12112. need_version=no
  12113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12114. soname_spec='${libname}${release}${shared_ext}$major'
  12115. shlibpath_var=LD_LIBRARY_PATH
  12116. ;;
  12117. freebsd1*)
  12118. dynamic_linker=no
  12119. ;;
  12120. freebsd* | dragonfly*)
  12121. # DragonFly does not have aout. When/if they implement a new
  12122. # versioning mechanism, adjust this.
  12123. if test -x /usr/bin/objformat; then
  12124. objformat=`/usr/bin/objformat`
  12125. else
  12126. case $host_os in
  12127. freebsd[123]*) objformat=aout ;;
  12128. *) objformat=elf ;;
  12129. esac
  12130. fi
  12131. version_type=freebsd-$objformat
  12132. case $version_type in
  12133. freebsd-elf*)
  12134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12135. need_version=no
  12136. need_lib_prefix=no
  12137. ;;
  12138. freebsd-*)
  12139. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12140. need_version=yes
  12141. ;;
  12142. esac
  12143. shlibpath_var=LD_LIBRARY_PATH
  12144. case $host_os in
  12145. freebsd2*)
  12146. shlibpath_overrides_runpath=yes
  12147. ;;
  12148. freebsd3.[01]* | freebsdelf3.[01]*)
  12149. shlibpath_overrides_runpath=yes
  12150. hardcode_into_libs=yes
  12151. ;;
  12152. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12153. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12154. shlibpath_overrides_runpath=no
  12155. hardcode_into_libs=yes
  12156. ;;
  12157. *) # from 4.6 on, and DragonFly
  12158. shlibpath_overrides_runpath=yes
  12159. hardcode_into_libs=yes
  12160. ;;
  12161. esac
  12162. ;;
  12163. gnu*)
  12164. version_type=linux
  12165. need_lib_prefix=no
  12166. need_version=no
  12167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12168. soname_spec='${libname}${release}${shared_ext}$major'
  12169. shlibpath_var=LD_LIBRARY_PATH
  12170. hardcode_into_libs=yes
  12171. ;;
  12172. hpux9* | hpux10* | hpux11*)
  12173. # Give a soname corresponding to the major version so that dld.sl refuses to
  12174. # link against other versions.
  12175. version_type=sunos
  12176. need_lib_prefix=no
  12177. need_version=no
  12178. case $host_cpu in
  12179. ia64*)
  12180. shrext_cmds='.so'
  12181. hardcode_into_libs=yes
  12182. dynamic_linker="$host_os dld.so"
  12183. shlibpath_var=LD_LIBRARY_PATH
  12184. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12186. soname_spec='${libname}${release}${shared_ext}$major'
  12187. if test "X$HPUX_IA64_MODE" = X32; then
  12188. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12189. else
  12190. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12191. fi
  12192. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12193. ;;
  12194. hppa*64*)
  12195. shrext_cmds='.sl'
  12196. hardcode_into_libs=yes
  12197. dynamic_linker="$host_os dld.sl"
  12198. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12199. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12201. soname_spec='${libname}${release}${shared_ext}$major'
  12202. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12203. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12204. ;;
  12205. *)
  12206. shrext_cmds='.sl'
  12207. dynamic_linker="$host_os dld.sl"
  12208. shlibpath_var=SHLIB_PATH
  12209. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12211. soname_spec='${libname}${release}${shared_ext}$major'
  12212. ;;
  12213. esac
  12214. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12215. postinstall_cmds='chmod 555 $lib'
  12216. ;;
  12217. interix[3-9]*)
  12218. version_type=linux
  12219. need_lib_prefix=no
  12220. need_version=no
  12221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12222. soname_spec='${libname}${release}${shared_ext}$major'
  12223. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12224. shlibpath_var=LD_LIBRARY_PATH
  12225. shlibpath_overrides_runpath=no
  12226. hardcode_into_libs=yes
  12227. ;;
  12228. irix5* | irix6* | nonstopux*)
  12229. case $host_os in
  12230. nonstopux*) version_type=nonstopux ;;
  12231. *)
  12232. if test "$lt_cv_prog_gnu_ld" = yes; then
  12233. version_type=linux
  12234. else
  12235. version_type=irix
  12236. fi ;;
  12237. esac
  12238. need_lib_prefix=no
  12239. need_version=no
  12240. soname_spec='${libname}${release}${shared_ext}$major'
  12241. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12242. case $host_os in
  12243. irix5* | nonstopux*)
  12244. libsuff= shlibsuff=
  12245. ;;
  12246. *)
  12247. case $LD in # libtool.m4 will add one of these switches to LD
  12248. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12249. libsuff= shlibsuff= libmagic=32-bit;;
  12250. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12251. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12252. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12253. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12254. *) libsuff= shlibsuff= libmagic=never-match;;
  12255. esac
  12256. ;;
  12257. esac
  12258. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12259. shlibpath_overrides_runpath=no
  12260. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12261. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12262. hardcode_into_libs=yes
  12263. ;;
  12264. # No shared lib support for Linux oldld, aout, or coff.
  12265. linux*oldld* | linux*aout* | linux*coff*)
  12266. dynamic_linker=no
  12267. ;;
  12268. # This must be Linux ELF.
  12269. linux* | k*bsd*-gnu)
  12270. version_type=linux
  12271. need_lib_prefix=no
  12272. need_version=no
  12273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12274. soname_spec='${libname}${release}${shared_ext}$major'
  12275. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12276. shlibpath_var=LD_LIBRARY_PATH
  12277. shlibpath_overrides_runpath=no
  12278. # This implies no fast_install, which is unacceptable.
  12279. # Some rework will be needed to allow for fast_install
  12280. # before this can be enabled.
  12281. hardcode_into_libs=yes
  12282. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12283. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12284. # Append ld.so.conf contents to the search path
  12285. if test -f /etc/ld.so.conf; then
  12286. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12287. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12288. fi
  12289. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12290. # powerpc, because MkLinux only supported shared libraries with the
  12291. # GNU dynamic linker. Since this was broken with cross compilers,
  12292. # most powerpc-linux boxes support dynamic linking these days and
  12293. # people can always --disable-shared, the test was removed, and we
  12294. # assume the GNU/Linux dynamic linker is in use.
  12295. dynamic_linker='GNU/Linux ld.so'
  12296. ;;
  12297. netbsd*)
  12298. version_type=sunos
  12299. need_lib_prefix=no
  12300. need_version=no
  12301. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12302. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12303. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12304. dynamic_linker='NetBSD (a.out) ld.so'
  12305. else
  12306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12307. soname_spec='${libname}${release}${shared_ext}$major'
  12308. dynamic_linker='NetBSD ld.elf_so'
  12309. fi
  12310. shlibpath_var=LD_LIBRARY_PATH
  12311. shlibpath_overrides_runpath=yes
  12312. hardcode_into_libs=yes
  12313. ;;
  12314. newsos6)
  12315. version_type=linux
  12316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12317. shlibpath_var=LD_LIBRARY_PATH
  12318. shlibpath_overrides_runpath=yes
  12319. ;;
  12320. nto-qnx*)
  12321. version_type=linux
  12322. need_lib_prefix=no
  12323. need_version=no
  12324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12325. soname_spec='${libname}${release}${shared_ext}$major'
  12326. shlibpath_var=LD_LIBRARY_PATH
  12327. shlibpath_overrides_runpath=yes
  12328. ;;
  12329. openbsd*)
  12330. version_type=sunos
  12331. sys_lib_dlsearch_path_spec="/usr/lib"
  12332. need_lib_prefix=no
  12333. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12334. case $host_os in
  12335. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12336. *) need_version=no ;;
  12337. esac
  12338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12339. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12340. shlibpath_var=LD_LIBRARY_PATH
  12341. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12342. case $host_os in
  12343. openbsd2.[89] | openbsd2.[89].*)
  12344. shlibpath_overrides_runpath=no
  12345. ;;
  12346. *)
  12347. shlibpath_overrides_runpath=yes
  12348. ;;
  12349. esac
  12350. else
  12351. shlibpath_overrides_runpath=yes
  12352. fi
  12353. ;;
  12354. os2*)
  12355. libname_spec='$name'
  12356. shrext_cmds=".dll"
  12357. need_lib_prefix=no
  12358. library_names_spec='$libname${shared_ext} $libname.a'
  12359. dynamic_linker='OS/2 ld.exe'
  12360. shlibpath_var=LIBPATH
  12361. ;;
  12362. osf3* | osf4* | osf5*)
  12363. version_type=osf
  12364. need_lib_prefix=no
  12365. need_version=no
  12366. soname_spec='${libname}${release}${shared_ext}$major'
  12367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12368. shlibpath_var=LD_LIBRARY_PATH
  12369. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12370. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12371. ;;
  12372. rdos*)
  12373. dynamic_linker=no
  12374. ;;
  12375. solaris*)
  12376. version_type=linux
  12377. need_lib_prefix=no
  12378. need_version=no
  12379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12380. soname_spec='${libname}${release}${shared_ext}$major'
  12381. shlibpath_var=LD_LIBRARY_PATH
  12382. shlibpath_overrides_runpath=yes
  12383. hardcode_into_libs=yes
  12384. # ldd complains unless libraries are executable
  12385. postinstall_cmds='chmod +x $lib'
  12386. ;;
  12387. sunos4*)
  12388. version_type=sunos
  12389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12390. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12391. shlibpath_var=LD_LIBRARY_PATH
  12392. shlibpath_overrides_runpath=yes
  12393. if test "$with_gnu_ld" = yes; then
  12394. need_lib_prefix=no
  12395. fi
  12396. need_version=yes
  12397. ;;
  12398. sysv4 | sysv4.3*)
  12399. version_type=linux
  12400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12401. soname_spec='${libname}${release}${shared_ext}$major'
  12402. shlibpath_var=LD_LIBRARY_PATH
  12403. case $host_vendor in
  12404. sni)
  12405. shlibpath_overrides_runpath=no
  12406. need_lib_prefix=no
  12407. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12408. runpath_var=LD_RUN_PATH
  12409. ;;
  12410. siemens)
  12411. need_lib_prefix=no
  12412. ;;
  12413. motorola)
  12414. need_lib_prefix=no
  12415. need_version=no
  12416. shlibpath_overrides_runpath=no
  12417. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12418. ;;
  12419. esac
  12420. ;;
  12421. sysv4*MP*)
  12422. if test -d /usr/nec ;then
  12423. version_type=linux
  12424. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12425. soname_spec='$libname${shared_ext}.$major'
  12426. shlibpath_var=LD_LIBRARY_PATH
  12427. fi
  12428. ;;
  12429. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12430. version_type=freebsd-elf
  12431. need_lib_prefix=no
  12432. need_version=no
  12433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12434. soname_spec='${libname}${release}${shared_ext}$major'
  12435. shlibpath_var=LD_LIBRARY_PATH
  12436. hardcode_into_libs=yes
  12437. if test "$with_gnu_ld" = yes; then
  12438. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12439. shlibpath_overrides_runpath=no
  12440. else
  12441. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12442. shlibpath_overrides_runpath=yes
  12443. case $host_os in
  12444. sco3.2v5*)
  12445. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12446. ;;
  12447. esac
  12448. fi
  12449. sys_lib_dlsearch_path_spec='/usr/lib'
  12450. ;;
  12451. uts4*)
  12452. version_type=linux
  12453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12454. soname_spec='${libname}${release}${shared_ext}$major'
  12455. shlibpath_var=LD_LIBRARY_PATH
  12456. ;;
  12457. *)
  12458. dynamic_linker=no
  12459. ;;
  12460. esac
  12461. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12462. $as_echo "$dynamic_linker" >&6; }
  12463. test "$dynamic_linker" = no && can_build_shared=no
  12464. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12465. if test "$GCC" = yes; then
  12466. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12467. fi
  12468. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12469. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12470. hardcode_action_CXX=
  12471. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12472. test -n "$runpath_var_CXX" || \
  12473. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12474. # We can hardcode non-existant directories.
  12475. if test "$hardcode_direct_CXX" != no &&
  12476. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12477. # have to relink, otherwise we might link with an installed library
  12478. # when we should be linking with a yet-to-be-installed one
  12479. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12480. test "$hardcode_minus_L_CXX" != no; then
  12481. # Linking always hardcodes the temporary library directory.
  12482. hardcode_action_CXX=relink
  12483. else
  12484. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12485. hardcode_action_CXX=immediate
  12486. fi
  12487. else
  12488. # We cannot hardcode anything, or else we can only hardcode existing
  12489. # directories.
  12490. hardcode_action_CXX=unsupported
  12491. fi
  12492. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12493. $as_echo "$hardcode_action_CXX" >&6; }
  12494. if test "$hardcode_action_CXX" = relink; then
  12495. # Fast installation is not supported
  12496. enable_fast_install=no
  12497. elif test "$shlibpath_overrides_runpath" = yes ||
  12498. test "$enable_shared" = no; then
  12499. # Fast installation is not necessary
  12500. enable_fast_install=needless
  12501. fi
  12502. # The else clause should only fire when bootstrapping the
  12503. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12504. # with your package, and you will get complaints that there are
  12505. # no rules to generate ltmain.sh.
  12506. if test -f "$ltmain"; then
  12507. # See if we are running on zsh, and set the options which allow our commands through
  12508. # without removal of \ escapes.
  12509. if test -n "${ZSH_VERSION+set}" ; then
  12510. setopt NO_GLOB_SUBST
  12511. fi
  12512. # Now quote all the things that may contain metacharacters while being
  12513. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12514. # variables and quote the copies for generation of the libtool script.
  12515. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12516. SED SHELL STRIP \
  12517. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12518. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12519. deplibs_check_method reload_flag reload_cmds need_locks \
  12520. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12521. lt_cv_sys_global_symbol_to_c_name_address \
  12522. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12523. old_postinstall_cmds old_postuninstall_cmds \
  12524. compiler_CXX \
  12525. CC_CXX \
  12526. LD_CXX \
  12527. lt_prog_compiler_wl_CXX \
  12528. lt_prog_compiler_pic_CXX \
  12529. lt_prog_compiler_static_CXX \
  12530. lt_prog_compiler_no_builtin_flag_CXX \
  12531. export_dynamic_flag_spec_CXX \
  12532. thread_safe_flag_spec_CXX \
  12533. whole_archive_flag_spec_CXX \
  12534. enable_shared_with_static_runtimes_CXX \
  12535. old_archive_cmds_CXX \
  12536. old_archive_from_new_cmds_CXX \
  12537. predep_objects_CXX \
  12538. postdep_objects_CXX \
  12539. predeps_CXX \
  12540. postdeps_CXX \
  12541. compiler_lib_search_path_CXX \
  12542. archive_cmds_CXX \
  12543. archive_expsym_cmds_CXX \
  12544. postinstall_cmds_CXX \
  12545. postuninstall_cmds_CXX \
  12546. old_archive_from_expsyms_cmds_CXX \
  12547. allow_undefined_flag_CXX \
  12548. no_undefined_flag_CXX \
  12549. export_symbols_cmds_CXX \
  12550. hardcode_libdir_flag_spec_CXX \
  12551. hardcode_libdir_flag_spec_ld_CXX \
  12552. hardcode_libdir_separator_CXX \
  12553. hardcode_automatic_CXX \
  12554. module_cmds_CXX \
  12555. module_expsym_cmds_CXX \
  12556. lt_cv_prog_compiler_c_o_CXX \
  12557. fix_srcfile_path_CXX \
  12558. exclude_expsyms_CXX \
  12559. include_expsyms_CXX; do
  12560. case $var in
  12561. old_archive_cmds_CXX | \
  12562. old_archive_from_new_cmds_CXX | \
  12563. archive_cmds_CXX | \
  12564. archive_expsym_cmds_CXX | \
  12565. module_cmds_CXX | \
  12566. module_expsym_cmds_CXX | \
  12567. old_archive_from_expsyms_cmds_CXX | \
  12568. export_symbols_cmds_CXX | \
  12569. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12570. postinstall_cmds | postuninstall_cmds | \
  12571. old_postinstall_cmds | old_postuninstall_cmds | \
  12572. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12573. # Double-quote double-evaled strings.
  12574. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12575. ;;
  12576. *)
  12577. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12578. ;;
  12579. esac
  12580. done
  12581. case $lt_echo in
  12582. *'\$0 --fallback-echo"')
  12583. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12584. ;;
  12585. esac
  12586. cfgfile="$ofile"
  12587. cat <<__EOF__ >> "$cfgfile"
  12588. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12589. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12590. # Shell to use when invoking shell scripts.
  12591. SHELL=$lt_SHELL
  12592. # Whether or not to build shared libraries.
  12593. build_libtool_libs=$enable_shared
  12594. # Whether or not to build static libraries.
  12595. build_old_libs=$enable_static
  12596. # Whether or not to add -lc for building shared libraries.
  12597. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12598. # Whether or not to disallow shared libs when runtime libs are static
  12599. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12600. # Whether or not to optimize for fast installation.
  12601. fast_install=$enable_fast_install
  12602. # The host system.
  12603. host_alias=$host_alias
  12604. host=$host
  12605. host_os=$host_os
  12606. # The build system.
  12607. build_alias=$build_alias
  12608. build=$build
  12609. build_os=$build_os
  12610. # An echo program that does not interpret backslashes.
  12611. echo=$lt_echo
  12612. # The archiver.
  12613. AR=$lt_AR
  12614. AR_FLAGS=$lt_AR_FLAGS
  12615. # A C compiler.
  12616. LTCC=$lt_LTCC
  12617. # LTCC compiler flags.
  12618. LTCFLAGS=$lt_LTCFLAGS
  12619. # A language-specific compiler.
  12620. CC=$lt_compiler_CXX
  12621. # Is the compiler the GNU C compiler?
  12622. with_gcc=$GCC_CXX
  12623. # An ERE matcher.
  12624. EGREP=$lt_EGREP
  12625. # The linker used to build libraries.
  12626. LD=$lt_LD_CXX
  12627. # Whether we need hard or soft links.
  12628. LN_S=$lt_LN_S
  12629. # A BSD-compatible nm program.
  12630. NM=$lt_NM
  12631. # A symbol stripping program
  12632. STRIP=$lt_STRIP
  12633. # Used to examine libraries when file_magic_cmd begins "file"
  12634. MAGIC_CMD=$MAGIC_CMD
  12635. # Used on cygwin: DLL creation program.
  12636. DLLTOOL="$DLLTOOL"
  12637. # Used on cygwin: object dumper.
  12638. OBJDUMP="$OBJDUMP"
  12639. # Used on cygwin: assembler.
  12640. AS="$AS"
  12641. # The name of the directory that contains temporary libtool files.
  12642. objdir=$objdir
  12643. # How to create reloadable object files.
  12644. reload_flag=$lt_reload_flag
  12645. reload_cmds=$lt_reload_cmds
  12646. # How to pass a linker flag through the compiler.
  12647. wl=$lt_lt_prog_compiler_wl_CXX
  12648. # Object file suffix (normally "o").
  12649. objext="$ac_objext"
  12650. # Old archive suffix (normally "a").
  12651. libext="$libext"
  12652. # Shared library suffix (normally ".so").
  12653. shrext_cmds='$shrext_cmds'
  12654. # Executable file suffix (normally "").
  12655. exeext="$exeext"
  12656. # Additional compiler flags for building library objects.
  12657. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12658. pic_mode=$pic_mode
  12659. # What is the maximum length of a command?
  12660. max_cmd_len=$lt_cv_sys_max_cmd_len
  12661. # Does compiler simultaneously support -c and -o options?
  12662. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12663. # Must we lock files when doing compilation?
  12664. need_locks=$lt_need_locks
  12665. # Do we need the lib prefix for modules?
  12666. need_lib_prefix=$need_lib_prefix
  12667. # Do we need a version for libraries?
  12668. need_version=$need_version
  12669. # Whether dlopen is supported.
  12670. dlopen_support=$enable_dlopen
  12671. # Whether dlopen of programs is supported.
  12672. dlopen_self=$enable_dlopen_self
  12673. # Whether dlopen of statically linked programs is supported.
  12674. dlopen_self_static=$enable_dlopen_self_static
  12675. # Compiler flag to prevent dynamic linking.
  12676. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12677. # Compiler flag to turn off builtin functions.
  12678. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12679. # Compiler flag to allow reflexive dlopens.
  12680. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12681. # Compiler flag to generate shared objects directly from archives.
  12682. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12683. # Compiler flag to generate thread-safe objects.
  12684. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12685. # Library versioning type.
  12686. version_type=$version_type
  12687. # Format of library name prefix.
  12688. libname_spec=$lt_libname_spec
  12689. # List of archive names. First name is the real one, the rest are links.
  12690. # The last name is the one that the linker finds with -lNAME.
  12691. library_names_spec=$lt_library_names_spec
  12692. # The coded name of the library, if different from the real name.
  12693. soname_spec=$lt_soname_spec
  12694. # Commands used to build and install an old-style archive.
  12695. RANLIB=$lt_RANLIB
  12696. old_archive_cmds=$lt_old_archive_cmds_CXX
  12697. old_postinstall_cmds=$lt_old_postinstall_cmds
  12698. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12699. # Create an old-style archive from a shared archive.
  12700. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12701. # Create a temporary old-style archive to link instead of a shared archive.
  12702. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12703. # Commands used to build and install a shared archive.
  12704. archive_cmds=$lt_archive_cmds_CXX
  12705. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12706. postinstall_cmds=$lt_postinstall_cmds
  12707. postuninstall_cmds=$lt_postuninstall_cmds
  12708. # Commands used to build a loadable module (assumed same as above if empty)
  12709. module_cmds=$lt_module_cmds_CXX
  12710. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12711. # Commands to strip libraries.
  12712. old_striplib=$lt_old_striplib
  12713. striplib=$lt_striplib
  12714. # Dependencies to place before the objects being linked to create a
  12715. # shared library.
  12716. predep_objects=$lt_predep_objects_CXX
  12717. # Dependencies to place after the objects being linked to create a
  12718. # shared library.
  12719. postdep_objects=$lt_postdep_objects_CXX
  12720. # Dependencies to place before the objects being linked to create a
  12721. # shared library.
  12722. predeps=$lt_predeps_CXX
  12723. # Dependencies to place after the objects being linked to create a
  12724. # shared library.
  12725. postdeps=$lt_postdeps_CXX
  12726. # The library search path used internally by the compiler when linking
  12727. # a shared library.
  12728. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12729. # Method to check whether dependent libraries are shared objects.
  12730. deplibs_check_method=$lt_deplibs_check_method
  12731. # Command to use when deplibs_check_method == file_magic.
  12732. file_magic_cmd=$lt_file_magic_cmd
  12733. # Flag that allows shared libraries with undefined symbols to be built.
  12734. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12735. # Flag that forces no undefined symbols.
  12736. no_undefined_flag=$lt_no_undefined_flag_CXX
  12737. # Commands used to finish a libtool library installation in a directory.
  12738. finish_cmds=$lt_finish_cmds
  12739. # Same as above, but a single script fragment to be evaled but not shown.
  12740. finish_eval=$lt_finish_eval
  12741. # Take the output of nm and produce a listing of raw symbols and C names.
  12742. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12743. # Transform the output of nm in a proper C declaration
  12744. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12745. # Transform the output of nm in a C name address pair
  12746. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12747. # This is the shared library runtime path variable.
  12748. runpath_var=$runpath_var
  12749. # This is the shared library path variable.
  12750. shlibpath_var=$shlibpath_var
  12751. # Is shlibpath searched before the hard-coded library search path?
  12752. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12753. # How to hardcode a shared library path into an executable.
  12754. hardcode_action=$hardcode_action_CXX
  12755. # Whether we should hardcode library paths into libraries.
  12756. hardcode_into_libs=$hardcode_into_libs
  12757. # Flag to hardcode \$libdir into a binary during linking.
  12758. # This must work even if \$libdir does not exist.
  12759. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12760. # If ld is used when linking, flag to hardcode \$libdir into
  12761. # a binary during linking. This must work even if \$libdir does
  12762. # not exist.
  12763. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12764. # Whether we need a single -rpath flag with a separated argument.
  12765. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12766. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12767. # resulting binary.
  12768. hardcode_direct=$hardcode_direct_CXX
  12769. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12770. # resulting binary.
  12771. hardcode_minus_L=$hardcode_minus_L_CXX
  12772. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12773. # the resulting binary.
  12774. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12775. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12776. # and all subsequent libraries and executables linked against it.
  12777. hardcode_automatic=$hardcode_automatic_CXX
  12778. # Variables whose values should be saved in libtool wrapper scripts and
  12779. # restored at relink time.
  12780. variables_saved_for_relink="$variables_saved_for_relink"
  12781. # Whether libtool must link a program against all its dependency libraries.
  12782. link_all_deplibs=$link_all_deplibs_CXX
  12783. # Compile-time system search path for libraries
  12784. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12785. # Run-time system search path for libraries
  12786. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12787. # Fix the shell variable \$srcfile for the compiler.
  12788. fix_srcfile_path=$lt_fix_srcfile_path
  12789. # Set to yes if exported symbols are required.
  12790. always_export_symbols=$always_export_symbols_CXX
  12791. # The commands to list exported symbols.
  12792. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12793. # The commands to extract the exported symbol list from a shared archive.
  12794. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12795. # Symbols that should not be listed in the preloaded symbols.
  12796. exclude_expsyms=$lt_exclude_expsyms_CXX
  12797. # Symbols that must always be exported.
  12798. include_expsyms=$lt_include_expsyms_CXX
  12799. # ### END LIBTOOL TAG CONFIG: $tagname
  12800. __EOF__
  12801. else
  12802. # If there is no Makefile yet, we rely on a make rule to execute
  12803. # `config.status --recheck' to rerun these tests and create the
  12804. # libtool script then.
  12805. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12806. if test -f "$ltmain_in"; then
  12807. test -f Makefile && make "$ltmain"
  12808. fi
  12809. fi
  12810. ac_ext=c
  12811. ac_cpp='$CPP $CPPFLAGS'
  12812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12815. CC=$lt_save_CC
  12816. LDCXX=$LD
  12817. LD=$lt_save_LD
  12818. GCC=$lt_save_GCC
  12819. with_gnu_ldcxx=$with_gnu_ld
  12820. with_gnu_ld=$lt_save_with_gnu_ld
  12821. lt_cv_path_LDCXX=$lt_cv_path_LD
  12822. lt_cv_path_LD=$lt_save_path_LD
  12823. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12824. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12825. else
  12826. tagname=""
  12827. fi
  12828. ;;
  12829. F77)
  12830. if test -n "$F77" && test "X$F77" != "Xno"; then
  12831. ac_ext=f
  12832. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12833. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12834. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12835. archive_cmds_need_lc_F77=no
  12836. allow_undefined_flag_F77=
  12837. always_export_symbols_F77=no
  12838. archive_expsym_cmds_F77=
  12839. export_dynamic_flag_spec_F77=
  12840. hardcode_direct_F77=no
  12841. hardcode_libdir_flag_spec_F77=
  12842. hardcode_libdir_flag_spec_ld_F77=
  12843. hardcode_libdir_separator_F77=
  12844. hardcode_minus_L_F77=no
  12845. hardcode_automatic_F77=no
  12846. module_cmds_F77=
  12847. module_expsym_cmds_F77=
  12848. link_all_deplibs_F77=unknown
  12849. old_archive_cmds_F77=$old_archive_cmds
  12850. no_undefined_flag_F77=
  12851. whole_archive_flag_spec_F77=
  12852. enable_shared_with_static_runtimes_F77=no
  12853. # Source file extension for f77 test sources.
  12854. ac_ext=f
  12855. # Object file extension for compiled f77 test sources.
  12856. objext=o
  12857. objext_F77=$objext
  12858. # Code to be used in simple compile tests
  12859. lt_simple_compile_test_code="\
  12860. subroutine t
  12861. return
  12862. end
  12863. "
  12864. # Code to be used in simple link tests
  12865. lt_simple_link_test_code="\
  12866. program t
  12867. end
  12868. "
  12869. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12870. # If no C compiler was specified, use CC.
  12871. LTCC=${LTCC-"$CC"}
  12872. # If no C compiler flags were specified, use CFLAGS.
  12873. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12874. # Allow CC to be a program name with arguments.
  12875. compiler=$CC
  12876. # save warnings/boilerplate of simple test code
  12877. ac_outfile=conftest.$ac_objext
  12878. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12879. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12880. _lt_compiler_boilerplate=`cat conftest.err`
  12881. $rm conftest*
  12882. ac_outfile=conftest.$ac_objext
  12883. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12884. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12885. _lt_linker_boilerplate=`cat conftest.err`
  12886. $rm conftest*
  12887. # Allow CC to be a program name with arguments.
  12888. lt_save_CC="$CC"
  12889. CC=${F77-"f77"}
  12890. compiler=$CC
  12891. compiler_F77=$CC
  12892. for cc_temp in $compiler""; do
  12893. case $cc_temp in
  12894. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12895. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12896. \-*) ;;
  12897. *) break;;
  12898. esac
  12899. done
  12900. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12901. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12902. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12903. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12904. $as_echo "$can_build_shared" >&6; }
  12905. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12906. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12907. test "$can_build_shared" = "no" && enable_shared=no
  12908. # On AIX, shared libraries and static libraries use the same namespace, and
  12909. # are all built from PIC.
  12910. case $host_os in
  12911. aix3*)
  12912. test "$enable_shared" = yes && enable_static=no
  12913. if test -n "$RANLIB"; then
  12914. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12915. postinstall_cmds='$RANLIB $lib'
  12916. fi
  12917. ;;
  12918. aix4* | aix5*)
  12919. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12920. test "$enable_shared" = yes && enable_static=no
  12921. fi
  12922. ;;
  12923. esac
  12924. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  12925. $as_echo "$enable_shared" >&6; }
  12926. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12927. $as_echo_n "checking whether to build static libraries... " >&6; }
  12928. # Make sure either enable_shared or enable_static is yes.
  12929. test "$enable_shared" = yes || enable_static=yes
  12930. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  12931. $as_echo "$enable_static" >&6; }
  12932. GCC_F77="$G77"
  12933. LD_F77="$LD"
  12934. lt_prog_compiler_wl_F77=
  12935. lt_prog_compiler_pic_F77=
  12936. lt_prog_compiler_static_F77=
  12937. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12938. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12939. if test "$GCC" = yes; then
  12940. lt_prog_compiler_wl_F77='-Wl,'
  12941. lt_prog_compiler_static_F77='-static'
  12942. case $host_os in
  12943. aix*)
  12944. # All AIX code is PIC.
  12945. if test "$host_cpu" = ia64; then
  12946. # AIX 5 now supports IA64 processor
  12947. lt_prog_compiler_static_F77='-Bstatic'
  12948. fi
  12949. ;;
  12950. amigaos*)
  12951. # FIXME: we need at least 68020 code to build shared libraries, but
  12952. # adding the `-m68020' flag to GCC prevents building anything better,
  12953. # like `-m68040'.
  12954. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12955. ;;
  12956. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12957. # PIC is the default for these OSes.
  12958. ;;
  12959. mingw* | cygwin* | pw32* | os2*)
  12960. # This hack is so that the source file can tell whether it is being
  12961. # built for inclusion in a dll (and should export symbols for example).
  12962. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12963. # (--disable-auto-import) libraries
  12964. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12965. ;;
  12966. darwin* | rhapsody*)
  12967. # PIC is the default on this platform
  12968. # Common symbols not allowed in MH_DYLIB files
  12969. lt_prog_compiler_pic_F77='-fno-common'
  12970. ;;
  12971. interix[3-9]*)
  12972. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12973. # Instead, we relocate shared libraries at runtime.
  12974. ;;
  12975. msdosdjgpp*)
  12976. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12977. # on systems that don't support them.
  12978. lt_prog_compiler_can_build_shared_F77=no
  12979. enable_shared=no
  12980. ;;
  12981. sysv4*MP*)
  12982. if test -d /usr/nec; then
  12983. lt_prog_compiler_pic_F77=-Kconform_pic
  12984. fi
  12985. ;;
  12986. hpux*)
  12987. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12988. # not for PA HP-UX.
  12989. case $host_cpu in
  12990. hppa*64*|ia64*)
  12991. # +Z the default
  12992. ;;
  12993. *)
  12994. lt_prog_compiler_pic_F77='-fPIC'
  12995. ;;
  12996. esac
  12997. ;;
  12998. *)
  12999. lt_prog_compiler_pic_F77='-fPIC'
  13000. ;;
  13001. esac
  13002. else
  13003. # PORTME Check for flag to pass linker flags through the system compiler.
  13004. case $host_os in
  13005. aix*)
  13006. lt_prog_compiler_wl_F77='-Wl,'
  13007. if test "$host_cpu" = ia64; then
  13008. # AIX 5 now supports IA64 processor
  13009. lt_prog_compiler_static_F77='-Bstatic'
  13010. else
  13011. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13012. fi
  13013. ;;
  13014. darwin*)
  13015. # PIC is the default on this platform
  13016. # Common symbols not allowed in MH_DYLIB files
  13017. case $cc_basename in
  13018. xlc*)
  13019. lt_prog_compiler_pic_F77='-qnocommon'
  13020. lt_prog_compiler_wl_F77='-Wl,'
  13021. ;;
  13022. esac
  13023. ;;
  13024. mingw* | cygwin* | pw32* | os2*)
  13025. # This hack is so that the source file can tell whether it is being
  13026. # built for inclusion in a dll (and should export symbols for example).
  13027. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13028. ;;
  13029. hpux9* | hpux10* | hpux11*)
  13030. lt_prog_compiler_wl_F77='-Wl,'
  13031. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13032. # not for PA HP-UX.
  13033. case $host_cpu in
  13034. hppa*64*|ia64*)
  13035. # +Z the default
  13036. ;;
  13037. *)
  13038. lt_prog_compiler_pic_F77='+Z'
  13039. ;;
  13040. esac
  13041. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13042. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13043. ;;
  13044. irix5* | irix6* | nonstopux*)
  13045. lt_prog_compiler_wl_F77='-Wl,'
  13046. # PIC (with -KPIC) is the default.
  13047. lt_prog_compiler_static_F77='-non_shared'
  13048. ;;
  13049. newsos6)
  13050. lt_prog_compiler_pic_F77='-KPIC'
  13051. lt_prog_compiler_static_F77='-Bstatic'
  13052. ;;
  13053. linux* | k*bsd*-gnu)
  13054. case $cc_basename in
  13055. icc* | ecc*)
  13056. lt_prog_compiler_wl_F77='-Wl,'
  13057. lt_prog_compiler_pic_F77='-KPIC'
  13058. lt_prog_compiler_static_F77='-static'
  13059. ;;
  13060. pgcc* | pgf77* | pgf90* | pgf95*)
  13061. # Portland Group compilers (*not* the Pentium gcc compiler,
  13062. # which looks to be a dead project)
  13063. lt_prog_compiler_wl_F77='-Wl,'
  13064. lt_prog_compiler_pic_F77='-fpic'
  13065. lt_prog_compiler_static_F77='-Bstatic'
  13066. ;;
  13067. ccc*)
  13068. lt_prog_compiler_wl_F77='-Wl,'
  13069. # All Alpha code is PIC.
  13070. lt_prog_compiler_static_F77='-non_shared'
  13071. ;;
  13072. *)
  13073. case `$CC -V 2>&1 | sed 5q` in
  13074. *Sun\ C*)
  13075. # Sun C 5.9
  13076. lt_prog_compiler_pic_F77='-KPIC'
  13077. lt_prog_compiler_static_F77='-Bstatic'
  13078. lt_prog_compiler_wl_F77='-Wl,'
  13079. ;;
  13080. *Sun\ F*)
  13081. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  13082. lt_prog_compiler_pic_F77='-KPIC'
  13083. lt_prog_compiler_static_F77='-Bstatic'
  13084. lt_prog_compiler_wl_F77=''
  13085. ;;
  13086. esac
  13087. ;;
  13088. esac
  13089. ;;
  13090. osf3* | osf4* | osf5*)
  13091. lt_prog_compiler_wl_F77='-Wl,'
  13092. # All OSF/1 code is PIC.
  13093. lt_prog_compiler_static_F77='-non_shared'
  13094. ;;
  13095. rdos*)
  13096. lt_prog_compiler_static_F77='-non_shared'
  13097. ;;
  13098. solaris*)
  13099. lt_prog_compiler_pic_F77='-KPIC'
  13100. lt_prog_compiler_static_F77='-Bstatic'
  13101. case $cc_basename in
  13102. f77* | f90* | f95*)
  13103. lt_prog_compiler_wl_F77='-Qoption ld ';;
  13104. *)
  13105. lt_prog_compiler_wl_F77='-Wl,';;
  13106. esac
  13107. ;;
  13108. sunos4*)
  13109. lt_prog_compiler_wl_F77='-Qoption ld '
  13110. lt_prog_compiler_pic_F77='-PIC'
  13111. lt_prog_compiler_static_F77='-Bstatic'
  13112. ;;
  13113. sysv4 | sysv4.2uw2* | sysv4.3*)
  13114. lt_prog_compiler_wl_F77='-Wl,'
  13115. lt_prog_compiler_pic_F77='-KPIC'
  13116. lt_prog_compiler_static_F77='-Bstatic'
  13117. ;;
  13118. sysv4*MP*)
  13119. if test -d /usr/nec ;then
  13120. lt_prog_compiler_pic_F77='-Kconform_pic'
  13121. lt_prog_compiler_static_F77='-Bstatic'
  13122. fi
  13123. ;;
  13124. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13125. lt_prog_compiler_wl_F77='-Wl,'
  13126. lt_prog_compiler_pic_F77='-KPIC'
  13127. lt_prog_compiler_static_F77='-Bstatic'
  13128. ;;
  13129. unicos*)
  13130. lt_prog_compiler_wl_F77='-Wl,'
  13131. lt_prog_compiler_can_build_shared_F77=no
  13132. ;;
  13133. uts4*)
  13134. lt_prog_compiler_pic_F77='-pic'
  13135. lt_prog_compiler_static_F77='-Bstatic'
  13136. ;;
  13137. *)
  13138. lt_prog_compiler_can_build_shared_F77=no
  13139. ;;
  13140. esac
  13141. fi
  13142. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13143. $as_echo "$lt_prog_compiler_pic_F77" >&6; }
  13144. #
  13145. # Check to make sure the PIC flag actually works.
  13146. #
  13147. if test -n "$lt_prog_compiler_pic_F77"; then
  13148. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13149. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  13150. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  13151. $as_echo_n "(cached) " >&6
  13152. else
  13153. lt_prog_compiler_pic_works_F77=no
  13154. ac_outfile=conftest.$ac_objext
  13155. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13156. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13157. # Insert the option either (1) after the last *FLAGS variable, or
  13158. # (2) before a word containing "conftest.", or (3) at the end.
  13159. # Note that $ac_compile itself does not contain backslashes and begins
  13160. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13161. # The option is referenced via a variable to avoid confusing sed.
  13162. lt_compile=`echo "$ac_compile" | $SED \
  13163. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13164. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13165. -e 's:$: $lt_compiler_flag:'`
  13166. (eval echo "\"\$as_me:14657: $lt_compile\"" >&5)
  13167. (eval "$lt_compile" 2>conftest.err)
  13168. ac_status=$?
  13169. cat conftest.err >&5
  13170. echo "$as_me:14661: \$? = $ac_status" >&5
  13171. if (exit $ac_status) && test -s "$ac_outfile"; then
  13172. # The compiler can only warn and ignore the option if not recognized
  13173. # So say no if there are warnings other than the usual output.
  13174. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13176. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13177. lt_prog_compiler_pic_works_F77=yes
  13178. fi
  13179. fi
  13180. $rm conftest*
  13181. fi
  13182. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  13183. $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
  13184. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  13185. case $lt_prog_compiler_pic_F77 in
  13186. "" | " "*) ;;
  13187. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13188. esac
  13189. else
  13190. lt_prog_compiler_pic_F77=
  13191. lt_prog_compiler_can_build_shared_F77=no
  13192. fi
  13193. fi
  13194. case $host_os in
  13195. # For platforms which do not support PIC, -DPIC is meaningless:
  13196. *djgpp*)
  13197. lt_prog_compiler_pic_F77=
  13198. ;;
  13199. *)
  13200. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13201. ;;
  13202. esac
  13203. #
  13204. # Check to make sure the static flag actually works.
  13205. #
  13206. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  13207. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13208. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  13209. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  13210. $as_echo_n "(cached) " >&6
  13211. else
  13212. lt_prog_compiler_static_works_F77=no
  13213. save_LDFLAGS="$LDFLAGS"
  13214. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13215. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13216. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13217. # The linker can only warn and ignore the option if not recognized
  13218. # So say no if there are warnings
  13219. if test -s conftest.err; then
  13220. # Append any errors to the config.log.
  13221. cat conftest.err 1>&5
  13222. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13223. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13224. if diff conftest.exp conftest.er2 >/dev/null; then
  13225. lt_prog_compiler_static_works_F77=yes
  13226. fi
  13227. else
  13228. lt_prog_compiler_static_works_F77=yes
  13229. fi
  13230. fi
  13231. $rm conftest*
  13232. LDFLAGS="$save_LDFLAGS"
  13233. fi
  13234. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  13235. $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
  13236. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  13237. :
  13238. else
  13239. lt_prog_compiler_static_F77=
  13240. fi
  13241. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13242. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13243. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13244. $as_echo_n "(cached) " >&6
  13245. else
  13246. lt_cv_prog_compiler_c_o_F77=no
  13247. $rm -r conftest 2>/dev/null
  13248. mkdir conftest
  13249. cd conftest
  13250. mkdir out
  13251. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13252. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13253. # Insert the option either (1) after the last *FLAGS variable, or
  13254. # (2) before a word containing "conftest.", or (3) at the end.
  13255. # Note that $ac_compile itself does not contain backslashes and begins
  13256. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13257. lt_compile=`echo "$ac_compile" | $SED \
  13258. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13259. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13260. -e 's:$: $lt_compiler_flag:'`
  13261. (eval echo "\"\$as_me:14761: $lt_compile\"" >&5)
  13262. (eval "$lt_compile" 2>out/conftest.err)
  13263. ac_status=$?
  13264. cat out/conftest.err >&5
  13265. echo "$as_me:14765: \$? = $ac_status" >&5
  13266. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13267. then
  13268. # The compiler can only warn and ignore the option if not recognized
  13269. # So say no if there are warnings
  13270. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13271. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13272. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13273. lt_cv_prog_compiler_c_o_F77=yes
  13274. fi
  13275. fi
  13276. chmod u+w . 2>&5
  13277. $rm conftest*
  13278. # SGI C++ compiler will create directory out/ii_files/ for
  13279. # template instantiation
  13280. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13281. $rm out/* && rmdir out
  13282. cd ..
  13283. rmdir conftest
  13284. $rm conftest*
  13285. fi
  13286. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13287. $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  13288. hard_links="nottested"
  13289. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13290. # do not overwrite the value of need_locks provided by the user
  13291. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13292. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13293. hard_links=yes
  13294. $rm conftest*
  13295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13296. touch conftest.a
  13297. ln conftest.a conftest.b 2>&5 || hard_links=no
  13298. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13299. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  13300. $as_echo "$hard_links" >&6; }
  13301. if test "$hard_links" = no; then
  13302. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13303. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13304. need_locks=warn
  13305. fi
  13306. else
  13307. need_locks=no
  13308. fi
  13309. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13310. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13311. runpath_var=
  13312. allow_undefined_flag_F77=
  13313. enable_shared_with_static_runtimes_F77=no
  13314. archive_cmds_F77=
  13315. archive_expsym_cmds_F77=
  13316. old_archive_From_new_cmds_F77=
  13317. old_archive_from_expsyms_cmds_F77=
  13318. export_dynamic_flag_spec_F77=
  13319. whole_archive_flag_spec_F77=
  13320. thread_safe_flag_spec_F77=
  13321. hardcode_libdir_flag_spec_F77=
  13322. hardcode_libdir_flag_spec_ld_F77=
  13323. hardcode_libdir_separator_F77=
  13324. hardcode_direct_F77=no
  13325. hardcode_minus_L_F77=no
  13326. hardcode_shlibpath_var_F77=unsupported
  13327. link_all_deplibs_F77=unknown
  13328. hardcode_automatic_F77=no
  13329. module_cmds_F77=
  13330. module_expsym_cmds_F77=
  13331. always_export_symbols_F77=no
  13332. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13333. # include_expsyms should be a list of space-separated symbols to be *always*
  13334. # included in the symbol list
  13335. include_expsyms_F77=
  13336. # exclude_expsyms can be an extended regexp of symbols to exclude
  13337. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13338. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13339. # as well as any symbol that contains `d'.
  13340. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13341. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13342. # platforms (ab)use it in PIC code, but their linkers get confused if
  13343. # the symbol is explicitly referenced. Since portable code cannot
  13344. # rely on this symbol name, it's probably fine to never include it in
  13345. # preloaded symbol tables.
  13346. extract_expsyms_cmds=
  13347. # Just being paranoid about ensuring that cc_basename is set.
  13348. for cc_temp in $compiler""; do
  13349. case $cc_temp in
  13350. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13351. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13352. \-*) ;;
  13353. *) break;;
  13354. esac
  13355. done
  13356. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13357. case $host_os in
  13358. cygwin* | mingw* | pw32*)
  13359. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13360. # When not using gcc, we currently assume that we are using
  13361. # Microsoft Visual C++.
  13362. if test "$GCC" != yes; then
  13363. with_gnu_ld=no
  13364. fi
  13365. ;;
  13366. interix*)
  13367. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13368. with_gnu_ld=yes
  13369. ;;
  13370. openbsd*)
  13371. with_gnu_ld=no
  13372. ;;
  13373. esac
  13374. ld_shlibs_F77=yes
  13375. if test "$with_gnu_ld" = yes; then
  13376. # If archive_cmds runs LD, not CC, wlarc should be empty
  13377. wlarc='${wl}'
  13378. # Set some defaults for GNU ld with shared library support. These
  13379. # are reset later if shared libraries are not supported. Putting them
  13380. # here allows them to be overridden if necessary.
  13381. runpath_var=LD_RUN_PATH
  13382. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13383. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13384. # ancient GNU ld didn't support --whole-archive et. al.
  13385. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13386. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13387. else
  13388. whole_archive_flag_spec_F77=
  13389. fi
  13390. supports_anon_versioning=no
  13391. case `$LD -v 2>/dev/null` in
  13392. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13393. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13394. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13395. *\ 2.11.*) ;; # other 2.11 versions
  13396. *) supports_anon_versioning=yes ;;
  13397. esac
  13398. # See if GNU ld supports shared libraries.
  13399. case $host_os in
  13400. aix3* | aix4* | aix5*)
  13401. # On AIX/PPC, the GNU linker is very broken
  13402. if test "$host_cpu" != ia64; then
  13403. ld_shlibs_F77=no
  13404. cat <<EOF 1>&2
  13405. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13406. *** to be unable to reliably create shared libraries on AIX.
  13407. *** Therefore, libtool is disabling shared libraries support. If you
  13408. *** really care for shared libraries, you may want to modify your PATH
  13409. *** so that a non-GNU linker is found, and then restart.
  13410. EOF
  13411. fi
  13412. ;;
  13413. amigaos*)
  13414. 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)'
  13415. hardcode_libdir_flag_spec_F77='-L$libdir'
  13416. hardcode_minus_L_F77=yes
  13417. # Samuel A. Falvo II <[email protected]> reports
  13418. # that the semantics of dynamic libraries on AmigaOS, at least up
  13419. # to version 4, is to share data among multiple programs linked
  13420. # with the same dynamic library. Since this doesn't match the
  13421. # behavior of shared libraries on other platforms, we can't use
  13422. # them.
  13423. ld_shlibs_F77=no
  13424. ;;
  13425. beos*)
  13426. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13427. allow_undefined_flag_F77=unsupported
  13428. # Joseph Beckenbach <[email protected]> says some releases of gcc
  13429. # support --undefined. This deserves some investigation. FIXME
  13430. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13431. else
  13432. ld_shlibs_F77=no
  13433. fi
  13434. ;;
  13435. cygwin* | mingw* | pw32*)
  13436. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13437. # as there is no search path for DLLs.
  13438. hardcode_libdir_flag_spec_F77='-L$libdir'
  13439. allow_undefined_flag_F77=unsupported
  13440. always_export_symbols_F77=no
  13441. enable_shared_with_static_runtimes_F77=yes
  13442. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13443. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13444. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13445. # If the export-symbols file already is a .def file (1st line
  13446. # is EXPORTS), use it as is; otherwise, prepend...
  13447. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13448. cp $export_symbols $output_objdir/$soname.def;
  13449. else
  13450. echo EXPORTS > $output_objdir/$soname.def;
  13451. cat $export_symbols >> $output_objdir/$soname.def;
  13452. fi~
  13453. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13454. else
  13455. ld_shlibs_F77=no
  13456. fi
  13457. ;;
  13458. interix[3-9]*)
  13459. hardcode_direct_F77=no
  13460. hardcode_shlibpath_var_F77=no
  13461. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13462. export_dynamic_flag_spec_F77='${wl}-E'
  13463. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13464. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13465. # default) and relocated if they conflict, which is a slow very memory
  13466. # consuming and fragmenting process. To avoid this, we pick a random,
  13467. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13468. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13469. 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'
  13470. 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'
  13471. ;;
  13472. gnu* | linux* | k*bsd*-gnu)
  13473. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13474. tmp_addflag=
  13475. case $cc_basename,$host_cpu in
  13476. pgcc*) # Portland Group C compiler
  13477. 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'
  13478. tmp_addflag=' $pic_flag'
  13479. ;;
  13480. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13481. 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'
  13482. tmp_addflag=' $pic_flag -Mnomain' ;;
  13483. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13484. tmp_addflag=' -i_dynamic' ;;
  13485. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13486. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13487. ifc* | ifort*) # Intel Fortran compiler
  13488. tmp_addflag=' -nofor_main' ;;
  13489. esac
  13490. case `$CC -V 2>&1 | sed 5q` in
  13491. *Sun\ C*) # Sun C 5.9
  13492. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13493. tmp_sharedflag='-G' ;;
  13494. *Sun\ F*) # Sun Fortran 8.3
  13495. tmp_sharedflag='-G' ;;
  13496. *)
  13497. tmp_sharedflag='-shared' ;;
  13498. esac
  13499. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13500. if test $supports_anon_versioning = yes; then
  13501. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13502. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13503. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13504. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13505. fi
  13506. else
  13507. ld_shlibs_F77=no
  13508. fi
  13509. ;;
  13510. netbsd*)
  13511. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13512. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13513. wlarc=
  13514. else
  13515. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13516. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13517. fi
  13518. ;;
  13519. solaris*)
  13520. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13521. ld_shlibs_F77=no
  13522. cat <<EOF 1>&2
  13523. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13524. *** create shared libraries on Solaris systems. Therefore, libtool
  13525. *** is disabling shared libraries support. We urge you to upgrade GNU
  13526. *** binutils to release 2.9.1 or newer. Another option is to modify
  13527. *** your PATH or compiler configuration so that the native linker is
  13528. *** used, and then restart.
  13529. EOF
  13530. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13531. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13532. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13533. else
  13534. ld_shlibs_F77=no
  13535. fi
  13536. ;;
  13537. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13538. case `$LD -v 2>&1` in
  13539. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13540. ld_shlibs_F77=no
  13541. cat <<_LT_EOF 1>&2
  13542. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13543. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13544. *** is disabling shared libraries support. We urge you to upgrade GNU
  13545. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13546. *** your PATH or compiler configuration so that the native linker is
  13547. *** used, and then restart.
  13548. _LT_EOF
  13549. ;;
  13550. *)
  13551. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13552. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13553. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13554. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13555. else
  13556. ld_shlibs_F77=no
  13557. fi
  13558. ;;
  13559. esac
  13560. ;;
  13561. sunos4*)
  13562. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13563. wlarc=
  13564. hardcode_direct_F77=yes
  13565. hardcode_shlibpath_var_F77=no
  13566. ;;
  13567. *)
  13568. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13569. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13570. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13571. else
  13572. ld_shlibs_F77=no
  13573. fi
  13574. ;;
  13575. esac
  13576. if test "$ld_shlibs_F77" = no; then
  13577. runpath_var=
  13578. hardcode_libdir_flag_spec_F77=
  13579. export_dynamic_flag_spec_F77=
  13580. whole_archive_flag_spec_F77=
  13581. fi
  13582. else
  13583. # PORTME fill in a description of your system's linker (not GNU ld)
  13584. case $host_os in
  13585. aix3*)
  13586. allow_undefined_flag_F77=unsupported
  13587. always_export_symbols_F77=yes
  13588. 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'
  13589. # Note: this linker hardcodes the directories in LIBPATH if there
  13590. # are no directories specified by -L.
  13591. hardcode_minus_L_F77=yes
  13592. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13593. # Neither direct hardcoding nor static linking is supported with a
  13594. # broken collect2.
  13595. hardcode_direct_F77=unsupported
  13596. fi
  13597. ;;
  13598. aix4* | aix5*)
  13599. if test "$host_cpu" = ia64; then
  13600. # On IA64, the linker does run time linking by default, so we don't
  13601. # have to do anything special.
  13602. aix_use_runtimelinking=no
  13603. exp_sym_flag='-Bexport'
  13604. no_entry_flag=""
  13605. else
  13606. # If we're using GNU nm, then we don't want the "-C" option.
  13607. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13608. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13609. 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'
  13610. else
  13611. 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'
  13612. fi
  13613. aix_use_runtimelinking=no
  13614. # Test if we are trying to use run time linking or normal
  13615. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13616. # need to do runtime linking.
  13617. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13618. for ld_flag in $LDFLAGS; do
  13619. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13620. aix_use_runtimelinking=yes
  13621. break
  13622. fi
  13623. done
  13624. ;;
  13625. esac
  13626. exp_sym_flag='-bexport'
  13627. no_entry_flag='-bnoentry'
  13628. fi
  13629. # When large executables or shared objects are built, AIX ld can
  13630. # have problems creating the table of contents. If linking a library
  13631. # or program results in "error TOC overflow" add -mminimal-toc to
  13632. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13633. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13634. archive_cmds_F77=''
  13635. hardcode_direct_F77=yes
  13636. hardcode_libdir_separator_F77=':'
  13637. link_all_deplibs_F77=yes
  13638. if test "$GCC" = yes; then
  13639. case $host_os in aix4.[012]|aix4.[012].*)
  13640. # We only want to do this on AIX 4.2 and lower, the check
  13641. # below for broken collect2 doesn't work under 4.3+
  13642. collect2name=`${CC} -print-prog-name=collect2`
  13643. if test -f "$collect2name" && \
  13644. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13645. then
  13646. # We have reworked collect2
  13647. :
  13648. else
  13649. # We have old collect2
  13650. hardcode_direct_F77=unsupported
  13651. # It fails to find uninstalled libraries when the uninstalled
  13652. # path is not listed in the libpath. Setting hardcode_minus_L
  13653. # to unsupported forces relinking
  13654. hardcode_minus_L_F77=yes
  13655. hardcode_libdir_flag_spec_F77='-L$libdir'
  13656. hardcode_libdir_separator_F77=
  13657. fi
  13658. ;;
  13659. esac
  13660. shared_flag='-shared'
  13661. if test "$aix_use_runtimelinking" = yes; then
  13662. shared_flag="$shared_flag "'${wl}-G'
  13663. fi
  13664. else
  13665. # not using gcc
  13666. if test "$host_cpu" = ia64; then
  13667. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13668. # chokes on -Wl,-G. The following line is correct:
  13669. shared_flag='-G'
  13670. else
  13671. if test "$aix_use_runtimelinking" = yes; then
  13672. shared_flag='${wl}-G'
  13673. else
  13674. shared_flag='${wl}-bM:SRE'
  13675. fi
  13676. fi
  13677. fi
  13678. # It seems that -bexpall does not export symbols beginning with
  13679. # underscore (_), so it is better to generate a list of symbols to export.
  13680. always_export_symbols_F77=yes
  13681. if test "$aix_use_runtimelinking" = yes; then
  13682. # Warning - without using the other runtime loading flags (-brtl),
  13683. # -berok will link without error, but may produce a broken library.
  13684. allow_undefined_flag_F77='-berok'
  13685. # Determine the default libpath from the value encoded in an empty executable.
  13686. cat >conftest.$ac_ext <<_ACEOF
  13687. program main
  13688. end
  13689. _ACEOF
  13690. rm -f conftest.$ac_objext conftest$ac_exeext
  13691. if { (ac_try="$ac_link"
  13692. case "(($ac_try" in
  13693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13694. *) ac_try_echo=$ac_try;;
  13695. esac
  13696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13697. $as_echo "$ac_try_echo") >&5
  13698. (eval "$ac_link") 2>conftest.er1
  13699. ac_status=$?
  13700. grep -v '^ *+' conftest.er1 >conftest.err
  13701. rm -f conftest.er1
  13702. cat conftest.err >&5
  13703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13704. (exit $ac_status); } && {
  13705. test -z "$ac_f77_werror_flag" ||
  13706. test ! -s conftest.err
  13707. } && test -s conftest$ac_exeext && {
  13708. test "$cross_compiling" = yes ||
  13709. $as_test_x conftest$ac_exeext
  13710. }; then
  13711. lt_aix_libpath_sed='
  13712. /Import File Strings/,/^$/ {
  13713. /^0/ {
  13714. s/^0 *\(.*\)$/\1/
  13715. p
  13716. }
  13717. }'
  13718. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13719. # Check for a 64-bit object if we didn't find anything.
  13720. if test -z "$aix_libpath"; then
  13721. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13722. fi
  13723. else
  13724. $as_echo "$as_me: failed program was:" >&5
  13725. sed 's/^/| /' conftest.$ac_ext >&5
  13726. fi
  13727. rm -rf conftest.dSYM
  13728. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13729. conftest$ac_exeext conftest.$ac_ext
  13730. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13731. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13732. 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"
  13733. else
  13734. if test "$host_cpu" = ia64; then
  13735. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13736. allow_undefined_flag_F77="-z nodefs"
  13737. 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"
  13738. else
  13739. # Determine the default libpath from the value encoded in an empty executable.
  13740. cat >conftest.$ac_ext <<_ACEOF
  13741. program main
  13742. end
  13743. _ACEOF
  13744. rm -f conftest.$ac_objext conftest$ac_exeext
  13745. if { (ac_try="$ac_link"
  13746. case "(($ac_try" in
  13747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13748. *) ac_try_echo=$ac_try;;
  13749. esac
  13750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13751. $as_echo "$ac_try_echo") >&5
  13752. (eval "$ac_link") 2>conftest.er1
  13753. ac_status=$?
  13754. grep -v '^ *+' conftest.er1 >conftest.err
  13755. rm -f conftest.er1
  13756. cat conftest.err >&5
  13757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13758. (exit $ac_status); } && {
  13759. test -z "$ac_f77_werror_flag" ||
  13760. test ! -s conftest.err
  13761. } && test -s conftest$ac_exeext && {
  13762. test "$cross_compiling" = yes ||
  13763. $as_test_x conftest$ac_exeext
  13764. }; then
  13765. lt_aix_libpath_sed='
  13766. /Import File Strings/,/^$/ {
  13767. /^0/ {
  13768. s/^0 *\(.*\)$/\1/
  13769. p
  13770. }
  13771. }'
  13772. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13773. # Check for a 64-bit object if we didn't find anything.
  13774. if test -z "$aix_libpath"; then
  13775. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13776. fi
  13777. else
  13778. $as_echo "$as_me: failed program was:" >&5
  13779. sed 's/^/| /' conftest.$ac_ext >&5
  13780. fi
  13781. rm -rf conftest.dSYM
  13782. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13783. conftest$ac_exeext conftest.$ac_ext
  13784. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13785. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13786. # Warning - without using the other run time loading flags,
  13787. # -berok will link without error, but may produce a broken library.
  13788. no_undefined_flag_F77=' ${wl}-bernotok'
  13789. allow_undefined_flag_F77=' ${wl}-berok'
  13790. # Exported symbols can be pulled into shared objects from archives
  13791. whole_archive_flag_spec_F77='$convenience'
  13792. archive_cmds_need_lc_F77=yes
  13793. # This is similar to how AIX traditionally builds its shared libraries.
  13794. 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'
  13795. fi
  13796. fi
  13797. ;;
  13798. amigaos*)
  13799. 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)'
  13800. hardcode_libdir_flag_spec_F77='-L$libdir'
  13801. hardcode_minus_L_F77=yes
  13802. # see comment about different semantics on the GNU ld section
  13803. ld_shlibs_F77=no
  13804. ;;
  13805. bsdi[45]*)
  13806. export_dynamic_flag_spec_F77=-rdynamic
  13807. ;;
  13808. cygwin* | mingw* | pw32*)
  13809. # When not using gcc, we currently assume that we are using
  13810. # Microsoft Visual C++.
  13811. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13812. # no search path for DLLs.
  13813. hardcode_libdir_flag_spec_F77=' '
  13814. allow_undefined_flag_F77=unsupported
  13815. # Tell ltmain to make .lib files, not .a files.
  13816. libext=lib
  13817. # Tell ltmain to make .dll files, not .so files.
  13818. shrext_cmds=".dll"
  13819. # FIXME: Setting linknames here is a bad hack.
  13820. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13821. # The linker will automatically build a .lib file if we build a DLL.
  13822. old_archive_From_new_cmds_F77='true'
  13823. # FIXME: Should let the user specify the lib program.
  13824. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13825. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13826. enable_shared_with_static_runtimes_F77=yes
  13827. ;;
  13828. darwin* | rhapsody*)
  13829. case $host_os in
  13830. rhapsody* | darwin1.[012])
  13831. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13832. ;;
  13833. *) # Darwin 1.3 on
  13834. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13835. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13836. else
  13837. case ${MACOSX_DEPLOYMENT_TARGET} in
  13838. 10.[012])
  13839. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13840. ;;
  13841. 10.*)
  13842. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13843. ;;
  13844. esac
  13845. fi
  13846. ;;
  13847. esac
  13848. archive_cmds_need_lc_F77=no
  13849. hardcode_direct_F77=no
  13850. hardcode_automatic_F77=yes
  13851. hardcode_shlibpath_var_F77=unsupported
  13852. whole_archive_flag_spec_F77=''
  13853. link_all_deplibs_F77=yes
  13854. if test "$GCC" = yes ; then
  13855. output_verbose_link_cmd='echo'
  13856. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13857. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13858. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13859. 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}'
  13860. 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}'
  13861. else
  13862. case $cc_basename in
  13863. xlc*)
  13864. output_verbose_link_cmd='echo'
  13865. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13866. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13867. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13868. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13869. 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}'
  13870. ;;
  13871. *)
  13872. ld_shlibs_F77=no
  13873. ;;
  13874. esac
  13875. fi
  13876. ;;
  13877. dgux*)
  13878. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13879. hardcode_libdir_flag_spec_F77='-L$libdir'
  13880. hardcode_shlibpath_var_F77=no
  13881. ;;
  13882. freebsd1*)
  13883. ld_shlibs_F77=no
  13884. ;;
  13885. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13886. # support. Future versions do this automatically, but an explicit c++rt0.o
  13887. # does not break anything, and helps significantly (at the cost of a little
  13888. # extra space).
  13889. freebsd2.2*)
  13890. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13891. hardcode_libdir_flag_spec_F77='-R$libdir'
  13892. hardcode_direct_F77=yes
  13893. hardcode_shlibpath_var_F77=no
  13894. ;;
  13895. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13896. freebsd2*)
  13897. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13898. hardcode_direct_F77=yes
  13899. hardcode_minus_L_F77=yes
  13900. hardcode_shlibpath_var_F77=no
  13901. ;;
  13902. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13903. freebsd* | dragonfly*)
  13904. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13905. hardcode_libdir_flag_spec_F77='-R$libdir'
  13906. hardcode_direct_F77=yes
  13907. hardcode_shlibpath_var_F77=no
  13908. ;;
  13909. hpux9*)
  13910. if test "$GCC" = yes; then
  13911. 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'
  13912. else
  13913. 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'
  13914. fi
  13915. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13916. hardcode_libdir_separator_F77=:
  13917. hardcode_direct_F77=yes
  13918. # hardcode_minus_L: Not really in the search PATH,
  13919. # but as the default location of the library.
  13920. hardcode_minus_L_F77=yes
  13921. export_dynamic_flag_spec_F77='${wl}-E'
  13922. ;;
  13923. hpux10*)
  13924. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13925. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13926. else
  13927. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13928. fi
  13929. if test "$with_gnu_ld" = no; then
  13930. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13931. hardcode_libdir_separator_F77=:
  13932. hardcode_direct_F77=yes
  13933. export_dynamic_flag_spec_F77='${wl}-E'
  13934. # hardcode_minus_L: Not really in the search PATH,
  13935. # but as the default location of the library.
  13936. hardcode_minus_L_F77=yes
  13937. fi
  13938. ;;
  13939. hpux11*)
  13940. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13941. case $host_cpu in
  13942. hppa*64*)
  13943. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13944. ;;
  13945. ia64*)
  13946. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13947. ;;
  13948. *)
  13949. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13950. ;;
  13951. esac
  13952. else
  13953. case $host_cpu in
  13954. hppa*64*)
  13955. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13956. ;;
  13957. ia64*)
  13958. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13959. ;;
  13960. *)
  13961. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13962. ;;
  13963. esac
  13964. fi
  13965. if test "$with_gnu_ld" = no; then
  13966. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13967. hardcode_libdir_separator_F77=:
  13968. case $host_cpu in
  13969. hppa*64*|ia64*)
  13970. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13971. hardcode_direct_F77=no
  13972. hardcode_shlibpath_var_F77=no
  13973. ;;
  13974. *)
  13975. hardcode_direct_F77=yes
  13976. export_dynamic_flag_spec_F77='${wl}-E'
  13977. # hardcode_minus_L: Not really in the search PATH,
  13978. # but as the default location of the library.
  13979. hardcode_minus_L_F77=yes
  13980. ;;
  13981. esac
  13982. fi
  13983. ;;
  13984. irix5* | irix6* | nonstopux*)
  13985. if test "$GCC" = yes; then
  13986. 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'
  13987. else
  13988. 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'
  13989. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13990. fi
  13991. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13992. hardcode_libdir_separator_F77=:
  13993. link_all_deplibs_F77=yes
  13994. ;;
  13995. netbsd*)
  13996. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13997. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13998. else
  13999. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  14000. fi
  14001. hardcode_libdir_flag_spec_F77='-R$libdir'
  14002. hardcode_direct_F77=yes
  14003. hardcode_shlibpath_var_F77=no
  14004. ;;
  14005. newsos6)
  14006. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14007. hardcode_direct_F77=yes
  14008. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14009. hardcode_libdir_separator_F77=:
  14010. hardcode_shlibpath_var_F77=no
  14011. ;;
  14012. openbsd*)
  14013. if test -f /usr/libexec/ld.so; then
  14014. hardcode_direct_F77=yes
  14015. hardcode_shlibpath_var_F77=no
  14016. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14017. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14018. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  14019. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14020. export_dynamic_flag_spec_F77='${wl}-E'
  14021. else
  14022. case $host_os in
  14023. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  14024. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  14025. hardcode_libdir_flag_spec_F77='-R$libdir'
  14026. ;;
  14027. *)
  14028. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  14029. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  14030. ;;
  14031. esac
  14032. fi
  14033. else
  14034. ld_shlibs_F77=no
  14035. fi
  14036. ;;
  14037. os2*)
  14038. hardcode_libdir_flag_spec_F77='-L$libdir'
  14039. hardcode_minus_L_F77=yes
  14040. allow_undefined_flag_F77=unsupported
  14041. 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'
  14042. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  14043. ;;
  14044. osf3*)
  14045. if test "$GCC" = yes; then
  14046. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14047. 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'
  14048. else
  14049. allow_undefined_flag_F77=' -expect_unresolved \*'
  14050. 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'
  14051. fi
  14052. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14053. hardcode_libdir_separator_F77=:
  14054. ;;
  14055. osf4* | osf5*) # as osf3* with the addition of -msym flag
  14056. if test "$GCC" = yes; then
  14057. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  14058. 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'
  14059. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  14060. else
  14061. allow_undefined_flag_F77=' -expect_unresolved \*'
  14062. 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'
  14063. 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~
  14064. $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'
  14065. # Both c and cxx compiler support -rpath directly
  14066. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  14067. fi
  14068. hardcode_libdir_separator_F77=:
  14069. ;;
  14070. solaris*)
  14071. no_undefined_flag_F77=' -z text'
  14072. if test "$GCC" = yes; then
  14073. wlarc='${wl}'
  14074. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14075. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14076. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  14077. else
  14078. wlarc=''
  14079. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14080. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  14081. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  14082. fi
  14083. hardcode_libdir_flag_spec_F77='-R$libdir'
  14084. hardcode_shlibpath_var_F77=no
  14085. case $host_os in
  14086. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14087. *)
  14088. # The compiler driver will combine and reorder linker options,
  14089. # but understands `-z linker_flag'. GCC discards it without `$wl',
  14090. # but is careful enough not to reorder.
  14091. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14092. if test "$GCC" = yes; then
  14093. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14094. else
  14095. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  14096. fi
  14097. ;;
  14098. esac
  14099. link_all_deplibs_F77=yes
  14100. ;;
  14101. sunos4*)
  14102. if test "x$host_vendor" = xsequent; then
  14103. # Use $CC to link under sequent, because it throws in some extra .o
  14104. # files that make .init and .fini sections work.
  14105. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14106. else
  14107. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14108. fi
  14109. hardcode_libdir_flag_spec_F77='-L$libdir'
  14110. hardcode_direct_F77=yes
  14111. hardcode_minus_L_F77=yes
  14112. hardcode_shlibpath_var_F77=no
  14113. ;;
  14114. sysv4)
  14115. case $host_vendor in
  14116. sni)
  14117. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14118. hardcode_direct_F77=yes # is this really true???
  14119. ;;
  14120. siemens)
  14121. ## LD is ld it makes a PLAMLIB
  14122. ## CC just makes a GrossModule.
  14123. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14124. reload_cmds_F77='$CC -r -o $output$reload_objs'
  14125. hardcode_direct_F77=no
  14126. ;;
  14127. motorola)
  14128. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14129. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  14130. ;;
  14131. esac
  14132. runpath_var='LD_RUN_PATH'
  14133. hardcode_shlibpath_var_F77=no
  14134. ;;
  14135. sysv4.3*)
  14136. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14137. hardcode_shlibpath_var_F77=no
  14138. export_dynamic_flag_spec_F77='-Bexport'
  14139. ;;
  14140. sysv4*MP*)
  14141. if test -d /usr/nec; then
  14142. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14143. hardcode_shlibpath_var_F77=no
  14144. runpath_var=LD_RUN_PATH
  14145. hardcode_runpath_var=yes
  14146. ld_shlibs_F77=yes
  14147. fi
  14148. ;;
  14149. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14150. no_undefined_flag_F77='${wl}-z,text'
  14151. archive_cmds_need_lc_F77=no
  14152. hardcode_shlibpath_var_F77=no
  14153. runpath_var='LD_RUN_PATH'
  14154. if test "$GCC" = yes; then
  14155. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14156. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14157. else
  14158. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14159. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14160. fi
  14161. ;;
  14162. sysv5* | sco3.2v5* | sco5v6*)
  14163. # Note: We can NOT use -z defs as we might desire, because we do not
  14164. # link with -lc, and that would cause any symbols used from libc to
  14165. # always be unresolved, which means just about no library would
  14166. # ever link correctly. If we're not using GNU ld we use -z text
  14167. # though, which does catch some bad symbols but isn't as heavy-handed
  14168. # as -z defs.
  14169. no_undefined_flag_F77='${wl}-z,text'
  14170. allow_undefined_flag_F77='${wl}-z,nodefs'
  14171. archive_cmds_need_lc_F77=no
  14172. hardcode_shlibpath_var_F77=no
  14173. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  14174. hardcode_libdir_separator_F77=':'
  14175. link_all_deplibs_F77=yes
  14176. export_dynamic_flag_spec_F77='${wl}-Bexport'
  14177. runpath_var='LD_RUN_PATH'
  14178. if test "$GCC" = yes; then
  14179. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14180. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14181. else
  14182. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14183. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14184. fi
  14185. ;;
  14186. uts4*)
  14187. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14188. hardcode_libdir_flag_spec_F77='-L$libdir'
  14189. hardcode_shlibpath_var_F77=no
  14190. ;;
  14191. *)
  14192. ld_shlibs_F77=no
  14193. ;;
  14194. esac
  14195. fi
  14196. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  14197. $as_echo "$ld_shlibs_F77" >&6; }
  14198. test "$ld_shlibs_F77" = no && can_build_shared=no
  14199. #
  14200. # Do we need to explicitly link libc?
  14201. #
  14202. case "x$archive_cmds_need_lc_F77" in
  14203. x|xyes)
  14204. # Assume -lc should be added
  14205. archive_cmds_need_lc_F77=yes
  14206. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14207. case $archive_cmds_F77 in
  14208. *'~'*)
  14209. # FIXME: we may have to deal with multi-command sequences.
  14210. ;;
  14211. '$CC '*)
  14212. # Test whether the compiler implicitly links with -lc since on some
  14213. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14214. # to ld, don't add -lc before -lgcc.
  14215. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  14216. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14217. $rm conftest*
  14218. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14219. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14220. (eval $ac_compile) 2>&5
  14221. ac_status=$?
  14222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14223. (exit $ac_status); } 2>conftest.err; then
  14224. soname=conftest
  14225. lib=conftest
  14226. libobjs=conftest.$ac_objext
  14227. deplibs=
  14228. wl=$lt_prog_compiler_wl_F77
  14229. pic_flag=$lt_prog_compiler_pic_F77
  14230. compiler_flags=-v
  14231. linker_flags=-v
  14232. verstring=
  14233. output_objdir=.
  14234. libname=conftest
  14235. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  14236. allow_undefined_flag_F77=
  14237. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  14238. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14239. ac_status=$?
  14240. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14241. (exit $ac_status); }
  14242. then
  14243. archive_cmds_need_lc_F77=no
  14244. else
  14245. archive_cmds_need_lc_F77=yes
  14246. fi
  14247. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  14248. else
  14249. cat conftest.err 1>&5
  14250. fi
  14251. $rm conftest*
  14252. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  14253. $as_echo "$archive_cmds_need_lc_F77" >&6; }
  14254. ;;
  14255. esac
  14256. fi
  14257. ;;
  14258. esac
  14259. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  14260. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14261. library_names_spec=
  14262. libname_spec='lib$name'
  14263. soname_spec=
  14264. shrext_cmds=".so"
  14265. postinstall_cmds=
  14266. postuninstall_cmds=
  14267. finish_cmds=
  14268. finish_eval=
  14269. shlibpath_var=
  14270. shlibpath_overrides_runpath=unknown
  14271. version_type=none
  14272. dynamic_linker="$host_os ld.so"
  14273. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14274. need_lib_prefix=unknown
  14275. hardcode_into_libs=no
  14276. # when you set need_version to no, make sure it does not cause -set_version
  14277. # flags to be left without arguments
  14278. need_version=unknown
  14279. case $host_os in
  14280. aix3*)
  14281. version_type=linux
  14282. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14283. shlibpath_var=LIBPATH
  14284. # AIX 3 has no versioning support, so we append a major version to the name.
  14285. soname_spec='${libname}${release}${shared_ext}$major'
  14286. ;;
  14287. aix4* | aix5*)
  14288. version_type=linux
  14289. need_lib_prefix=no
  14290. need_version=no
  14291. hardcode_into_libs=yes
  14292. if test "$host_cpu" = ia64; then
  14293. # AIX 5 supports IA64
  14294. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14295. shlibpath_var=LD_LIBRARY_PATH
  14296. else
  14297. # With GCC up to 2.95.x, collect2 would create an import file
  14298. # for dependence libraries. The import file would start with
  14299. # the line `#! .'. This would cause the generated library to
  14300. # depend on `.', always an invalid library. This was fixed in
  14301. # development snapshots of GCC prior to 3.0.
  14302. case $host_os in
  14303. aix4 | aix4.[01] | aix4.[01].*)
  14304. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14305. echo ' yes '
  14306. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14307. :
  14308. else
  14309. can_build_shared=no
  14310. fi
  14311. ;;
  14312. esac
  14313. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14314. # soname into executable. Probably we can add versioning support to
  14315. # collect2, so additional links can be useful in future.
  14316. if test "$aix_use_runtimelinking" = yes; then
  14317. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14318. # instead of lib<name>.a to let people know that these are not
  14319. # typical AIX shared libraries.
  14320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14321. else
  14322. # We preserve .a as extension for shared libraries through AIX4.2
  14323. # and later when we are not doing run time linking.
  14324. library_names_spec='${libname}${release}.a $libname.a'
  14325. soname_spec='${libname}${release}${shared_ext}$major'
  14326. fi
  14327. shlibpath_var=LIBPATH
  14328. fi
  14329. ;;
  14330. amigaos*)
  14331. library_names_spec='$libname.ixlibrary $libname.a'
  14332. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14333. 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'
  14334. ;;
  14335. beos*)
  14336. library_names_spec='${libname}${shared_ext}'
  14337. dynamic_linker="$host_os ld.so"
  14338. shlibpath_var=LIBRARY_PATH
  14339. ;;
  14340. bsdi[45]*)
  14341. version_type=linux
  14342. need_version=no
  14343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14344. soname_spec='${libname}${release}${shared_ext}$major'
  14345. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14346. shlibpath_var=LD_LIBRARY_PATH
  14347. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14348. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14349. # the default ld.so.conf also contains /usr/contrib/lib and
  14350. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14351. # libtool to hard-code these into programs
  14352. ;;
  14353. cygwin* | mingw* | pw32*)
  14354. version_type=windows
  14355. shrext_cmds=".dll"
  14356. need_version=no
  14357. need_lib_prefix=no
  14358. case $GCC,$host_os in
  14359. yes,cygwin* | yes,mingw* | yes,pw32*)
  14360. library_names_spec='$libname.dll.a'
  14361. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14362. postinstall_cmds='base_file=`basename \${file}`~
  14363. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14364. dldir=$destdir/`dirname \$dlpath`~
  14365. test -d \$dldir || mkdir -p \$dldir~
  14366. $install_prog $dir/$dlname \$dldir/$dlname~
  14367. chmod a+x \$dldir/$dlname'
  14368. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14369. dlpath=$dir/\$dldll~
  14370. $rm \$dlpath'
  14371. shlibpath_overrides_runpath=yes
  14372. case $host_os in
  14373. cygwin*)
  14374. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14375. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14376. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14377. ;;
  14378. mingw*)
  14379. # MinGW DLLs use traditional 'lib' prefix
  14380. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14381. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14382. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14383. # It is most probably a Windows format PATH printed by
  14384. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14385. # path with ; separators, and with drive letters. We can handle the
  14386. # drive letters (cygwin fileutils understands them), so leave them,
  14387. # especially as we might pass files found there to a mingw objdump,
  14388. # which wouldn't understand a cygwinified path. Ahh.
  14389. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14390. else
  14391. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14392. fi
  14393. ;;
  14394. pw32*)
  14395. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14396. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14397. ;;
  14398. esac
  14399. ;;
  14400. *)
  14401. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14402. ;;
  14403. esac
  14404. dynamic_linker='Win32 ld.exe'
  14405. # FIXME: first we should search . and the directory the executable is in
  14406. shlibpath_var=PATH
  14407. ;;
  14408. darwin* | rhapsody*)
  14409. dynamic_linker="$host_os dyld"
  14410. version_type=darwin
  14411. need_lib_prefix=no
  14412. need_version=no
  14413. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14414. soname_spec='${libname}${release}${major}$shared_ext'
  14415. shlibpath_overrides_runpath=yes
  14416. shlibpath_var=DYLD_LIBRARY_PATH
  14417. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14418. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14419. ;;
  14420. dgux*)
  14421. version_type=linux
  14422. need_lib_prefix=no
  14423. need_version=no
  14424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14425. soname_spec='${libname}${release}${shared_ext}$major'
  14426. shlibpath_var=LD_LIBRARY_PATH
  14427. ;;
  14428. freebsd1*)
  14429. dynamic_linker=no
  14430. ;;
  14431. freebsd* | dragonfly*)
  14432. # DragonFly does not have aout. When/if they implement a new
  14433. # versioning mechanism, adjust this.
  14434. if test -x /usr/bin/objformat; then
  14435. objformat=`/usr/bin/objformat`
  14436. else
  14437. case $host_os in
  14438. freebsd[123]*) objformat=aout ;;
  14439. *) objformat=elf ;;
  14440. esac
  14441. fi
  14442. version_type=freebsd-$objformat
  14443. case $version_type in
  14444. freebsd-elf*)
  14445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14446. need_version=no
  14447. need_lib_prefix=no
  14448. ;;
  14449. freebsd-*)
  14450. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14451. need_version=yes
  14452. ;;
  14453. esac
  14454. shlibpath_var=LD_LIBRARY_PATH
  14455. case $host_os in
  14456. freebsd2*)
  14457. shlibpath_overrides_runpath=yes
  14458. ;;
  14459. freebsd3.[01]* | freebsdelf3.[01]*)
  14460. shlibpath_overrides_runpath=yes
  14461. hardcode_into_libs=yes
  14462. ;;
  14463. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14464. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14465. shlibpath_overrides_runpath=no
  14466. hardcode_into_libs=yes
  14467. ;;
  14468. *) # from 4.6 on, and DragonFly
  14469. shlibpath_overrides_runpath=yes
  14470. hardcode_into_libs=yes
  14471. ;;
  14472. esac
  14473. ;;
  14474. gnu*)
  14475. version_type=linux
  14476. need_lib_prefix=no
  14477. need_version=no
  14478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14479. soname_spec='${libname}${release}${shared_ext}$major'
  14480. shlibpath_var=LD_LIBRARY_PATH
  14481. hardcode_into_libs=yes
  14482. ;;
  14483. hpux9* | hpux10* | hpux11*)
  14484. # Give a soname corresponding to the major version so that dld.sl refuses to
  14485. # link against other versions.
  14486. version_type=sunos
  14487. need_lib_prefix=no
  14488. need_version=no
  14489. case $host_cpu in
  14490. ia64*)
  14491. shrext_cmds='.so'
  14492. hardcode_into_libs=yes
  14493. dynamic_linker="$host_os dld.so"
  14494. shlibpath_var=LD_LIBRARY_PATH
  14495. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14497. soname_spec='${libname}${release}${shared_ext}$major'
  14498. if test "X$HPUX_IA64_MODE" = X32; then
  14499. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14500. else
  14501. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14502. fi
  14503. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14504. ;;
  14505. hppa*64*)
  14506. shrext_cmds='.sl'
  14507. hardcode_into_libs=yes
  14508. dynamic_linker="$host_os dld.sl"
  14509. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14510. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14512. soname_spec='${libname}${release}${shared_ext}$major'
  14513. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14514. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14515. ;;
  14516. *)
  14517. shrext_cmds='.sl'
  14518. dynamic_linker="$host_os dld.sl"
  14519. shlibpath_var=SHLIB_PATH
  14520. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14522. soname_spec='${libname}${release}${shared_ext}$major'
  14523. ;;
  14524. esac
  14525. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14526. postinstall_cmds='chmod 555 $lib'
  14527. ;;
  14528. interix[3-9]*)
  14529. version_type=linux
  14530. need_lib_prefix=no
  14531. need_version=no
  14532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14533. soname_spec='${libname}${release}${shared_ext}$major'
  14534. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14535. shlibpath_var=LD_LIBRARY_PATH
  14536. shlibpath_overrides_runpath=no
  14537. hardcode_into_libs=yes
  14538. ;;
  14539. irix5* | irix6* | nonstopux*)
  14540. case $host_os in
  14541. nonstopux*) version_type=nonstopux ;;
  14542. *)
  14543. if test "$lt_cv_prog_gnu_ld" = yes; then
  14544. version_type=linux
  14545. else
  14546. version_type=irix
  14547. fi ;;
  14548. esac
  14549. need_lib_prefix=no
  14550. need_version=no
  14551. soname_spec='${libname}${release}${shared_ext}$major'
  14552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14553. case $host_os in
  14554. irix5* | nonstopux*)
  14555. libsuff= shlibsuff=
  14556. ;;
  14557. *)
  14558. case $LD in # libtool.m4 will add one of these switches to LD
  14559. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14560. libsuff= shlibsuff= libmagic=32-bit;;
  14561. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14562. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14563. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14564. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14565. *) libsuff= shlibsuff= libmagic=never-match;;
  14566. esac
  14567. ;;
  14568. esac
  14569. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14570. shlibpath_overrides_runpath=no
  14571. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14572. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14573. hardcode_into_libs=yes
  14574. ;;
  14575. # No shared lib support for Linux oldld, aout, or coff.
  14576. linux*oldld* | linux*aout* | linux*coff*)
  14577. dynamic_linker=no
  14578. ;;
  14579. # This must be Linux ELF.
  14580. linux* | k*bsd*-gnu)
  14581. version_type=linux
  14582. need_lib_prefix=no
  14583. need_version=no
  14584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14585. soname_spec='${libname}${release}${shared_ext}$major'
  14586. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14587. shlibpath_var=LD_LIBRARY_PATH
  14588. shlibpath_overrides_runpath=no
  14589. # This implies no fast_install, which is unacceptable.
  14590. # Some rework will be needed to allow for fast_install
  14591. # before this can be enabled.
  14592. hardcode_into_libs=yes
  14593. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14594. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14595. # Append ld.so.conf contents to the search path
  14596. if test -f /etc/ld.so.conf; then
  14597. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14598. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14599. fi
  14600. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14601. # powerpc, because MkLinux only supported shared libraries with the
  14602. # GNU dynamic linker. Since this was broken with cross compilers,
  14603. # most powerpc-linux boxes support dynamic linking these days and
  14604. # people can always --disable-shared, the test was removed, and we
  14605. # assume the GNU/Linux dynamic linker is in use.
  14606. dynamic_linker='GNU/Linux ld.so'
  14607. ;;
  14608. netbsd*)
  14609. version_type=sunos
  14610. need_lib_prefix=no
  14611. need_version=no
  14612. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14614. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14615. dynamic_linker='NetBSD (a.out) ld.so'
  14616. else
  14617. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14618. soname_spec='${libname}${release}${shared_ext}$major'
  14619. dynamic_linker='NetBSD ld.elf_so'
  14620. fi
  14621. shlibpath_var=LD_LIBRARY_PATH
  14622. shlibpath_overrides_runpath=yes
  14623. hardcode_into_libs=yes
  14624. ;;
  14625. newsos6)
  14626. version_type=linux
  14627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14628. shlibpath_var=LD_LIBRARY_PATH
  14629. shlibpath_overrides_runpath=yes
  14630. ;;
  14631. nto-qnx*)
  14632. version_type=linux
  14633. need_lib_prefix=no
  14634. need_version=no
  14635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14636. soname_spec='${libname}${release}${shared_ext}$major'
  14637. shlibpath_var=LD_LIBRARY_PATH
  14638. shlibpath_overrides_runpath=yes
  14639. ;;
  14640. openbsd*)
  14641. version_type=sunos
  14642. sys_lib_dlsearch_path_spec="/usr/lib"
  14643. need_lib_prefix=no
  14644. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14645. case $host_os in
  14646. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14647. *) need_version=no ;;
  14648. esac
  14649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14650. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14651. shlibpath_var=LD_LIBRARY_PATH
  14652. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14653. case $host_os in
  14654. openbsd2.[89] | openbsd2.[89].*)
  14655. shlibpath_overrides_runpath=no
  14656. ;;
  14657. *)
  14658. shlibpath_overrides_runpath=yes
  14659. ;;
  14660. esac
  14661. else
  14662. shlibpath_overrides_runpath=yes
  14663. fi
  14664. ;;
  14665. os2*)
  14666. libname_spec='$name'
  14667. shrext_cmds=".dll"
  14668. need_lib_prefix=no
  14669. library_names_spec='$libname${shared_ext} $libname.a'
  14670. dynamic_linker='OS/2 ld.exe'
  14671. shlibpath_var=LIBPATH
  14672. ;;
  14673. osf3* | osf4* | osf5*)
  14674. version_type=osf
  14675. need_lib_prefix=no
  14676. need_version=no
  14677. soname_spec='${libname}${release}${shared_ext}$major'
  14678. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14679. shlibpath_var=LD_LIBRARY_PATH
  14680. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14681. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14682. ;;
  14683. rdos*)
  14684. dynamic_linker=no
  14685. ;;
  14686. solaris*)
  14687. version_type=linux
  14688. need_lib_prefix=no
  14689. need_version=no
  14690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14691. soname_spec='${libname}${release}${shared_ext}$major'
  14692. shlibpath_var=LD_LIBRARY_PATH
  14693. shlibpath_overrides_runpath=yes
  14694. hardcode_into_libs=yes
  14695. # ldd complains unless libraries are executable
  14696. postinstall_cmds='chmod +x $lib'
  14697. ;;
  14698. sunos4*)
  14699. version_type=sunos
  14700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14701. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14702. shlibpath_var=LD_LIBRARY_PATH
  14703. shlibpath_overrides_runpath=yes
  14704. if test "$with_gnu_ld" = yes; then
  14705. need_lib_prefix=no
  14706. fi
  14707. need_version=yes
  14708. ;;
  14709. sysv4 | sysv4.3*)
  14710. version_type=linux
  14711. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14712. soname_spec='${libname}${release}${shared_ext}$major'
  14713. shlibpath_var=LD_LIBRARY_PATH
  14714. case $host_vendor in
  14715. sni)
  14716. shlibpath_overrides_runpath=no
  14717. need_lib_prefix=no
  14718. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14719. runpath_var=LD_RUN_PATH
  14720. ;;
  14721. siemens)
  14722. need_lib_prefix=no
  14723. ;;
  14724. motorola)
  14725. need_lib_prefix=no
  14726. need_version=no
  14727. shlibpath_overrides_runpath=no
  14728. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14729. ;;
  14730. esac
  14731. ;;
  14732. sysv4*MP*)
  14733. if test -d /usr/nec ;then
  14734. version_type=linux
  14735. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14736. soname_spec='$libname${shared_ext}.$major'
  14737. shlibpath_var=LD_LIBRARY_PATH
  14738. fi
  14739. ;;
  14740. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14741. version_type=freebsd-elf
  14742. need_lib_prefix=no
  14743. need_version=no
  14744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14745. soname_spec='${libname}${release}${shared_ext}$major'
  14746. shlibpath_var=LD_LIBRARY_PATH
  14747. hardcode_into_libs=yes
  14748. if test "$with_gnu_ld" = yes; then
  14749. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14750. shlibpath_overrides_runpath=no
  14751. else
  14752. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14753. shlibpath_overrides_runpath=yes
  14754. case $host_os in
  14755. sco3.2v5*)
  14756. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14757. ;;
  14758. esac
  14759. fi
  14760. sys_lib_dlsearch_path_spec='/usr/lib'
  14761. ;;
  14762. uts4*)
  14763. version_type=linux
  14764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14765. soname_spec='${libname}${release}${shared_ext}$major'
  14766. shlibpath_var=LD_LIBRARY_PATH
  14767. ;;
  14768. *)
  14769. dynamic_linker=no
  14770. ;;
  14771. esac
  14772. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14773. $as_echo "$dynamic_linker" >&6; }
  14774. test "$dynamic_linker" = no && can_build_shared=no
  14775. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14776. if test "$GCC" = yes; then
  14777. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14778. fi
  14779. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14780. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14781. hardcode_action_F77=
  14782. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14783. test -n "$runpath_var_F77" || \
  14784. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14785. # We can hardcode non-existant directories.
  14786. if test "$hardcode_direct_F77" != no &&
  14787. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14788. # have to relink, otherwise we might link with an installed library
  14789. # when we should be linking with a yet-to-be-installed one
  14790. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14791. test "$hardcode_minus_L_F77" != no; then
  14792. # Linking always hardcodes the temporary library directory.
  14793. hardcode_action_F77=relink
  14794. else
  14795. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14796. hardcode_action_F77=immediate
  14797. fi
  14798. else
  14799. # We cannot hardcode anything, or else we can only hardcode existing
  14800. # directories.
  14801. hardcode_action_F77=unsupported
  14802. fi
  14803. { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14804. $as_echo "$hardcode_action_F77" >&6; }
  14805. if test "$hardcode_action_F77" = relink; then
  14806. # Fast installation is not supported
  14807. enable_fast_install=no
  14808. elif test "$shlibpath_overrides_runpath" = yes ||
  14809. test "$enable_shared" = no; then
  14810. # Fast installation is not necessary
  14811. enable_fast_install=needless
  14812. fi
  14813. # The else clause should only fire when bootstrapping the
  14814. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14815. # with your package, and you will get complaints that there are
  14816. # no rules to generate ltmain.sh.
  14817. if test -f "$ltmain"; then
  14818. # See if we are running on zsh, and set the options which allow our commands through
  14819. # without removal of \ escapes.
  14820. if test -n "${ZSH_VERSION+set}" ; then
  14821. setopt NO_GLOB_SUBST
  14822. fi
  14823. # Now quote all the things that may contain metacharacters while being
  14824. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14825. # variables and quote the copies for generation of the libtool script.
  14826. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14827. SED SHELL STRIP \
  14828. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14829. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14830. deplibs_check_method reload_flag reload_cmds need_locks \
  14831. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14832. lt_cv_sys_global_symbol_to_c_name_address \
  14833. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14834. old_postinstall_cmds old_postuninstall_cmds \
  14835. compiler_F77 \
  14836. CC_F77 \
  14837. LD_F77 \
  14838. lt_prog_compiler_wl_F77 \
  14839. lt_prog_compiler_pic_F77 \
  14840. lt_prog_compiler_static_F77 \
  14841. lt_prog_compiler_no_builtin_flag_F77 \
  14842. export_dynamic_flag_spec_F77 \
  14843. thread_safe_flag_spec_F77 \
  14844. whole_archive_flag_spec_F77 \
  14845. enable_shared_with_static_runtimes_F77 \
  14846. old_archive_cmds_F77 \
  14847. old_archive_from_new_cmds_F77 \
  14848. predep_objects_F77 \
  14849. postdep_objects_F77 \
  14850. predeps_F77 \
  14851. postdeps_F77 \
  14852. compiler_lib_search_path_F77 \
  14853. archive_cmds_F77 \
  14854. archive_expsym_cmds_F77 \
  14855. postinstall_cmds_F77 \
  14856. postuninstall_cmds_F77 \
  14857. old_archive_from_expsyms_cmds_F77 \
  14858. allow_undefined_flag_F77 \
  14859. no_undefined_flag_F77 \
  14860. export_symbols_cmds_F77 \
  14861. hardcode_libdir_flag_spec_F77 \
  14862. hardcode_libdir_flag_spec_ld_F77 \
  14863. hardcode_libdir_separator_F77 \
  14864. hardcode_automatic_F77 \
  14865. module_cmds_F77 \
  14866. module_expsym_cmds_F77 \
  14867. lt_cv_prog_compiler_c_o_F77 \
  14868. fix_srcfile_path_F77 \
  14869. exclude_expsyms_F77 \
  14870. include_expsyms_F77; do
  14871. case $var in
  14872. old_archive_cmds_F77 | \
  14873. old_archive_from_new_cmds_F77 | \
  14874. archive_cmds_F77 | \
  14875. archive_expsym_cmds_F77 | \
  14876. module_cmds_F77 | \
  14877. module_expsym_cmds_F77 | \
  14878. old_archive_from_expsyms_cmds_F77 | \
  14879. export_symbols_cmds_F77 | \
  14880. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14881. postinstall_cmds | postuninstall_cmds | \
  14882. old_postinstall_cmds | old_postuninstall_cmds | \
  14883. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14884. # Double-quote double-evaled strings.
  14885. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14886. ;;
  14887. *)
  14888. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14889. ;;
  14890. esac
  14891. done
  14892. case $lt_echo in
  14893. *'\$0 --fallback-echo"')
  14894. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14895. ;;
  14896. esac
  14897. cfgfile="$ofile"
  14898. cat <<__EOF__ >> "$cfgfile"
  14899. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14900. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14901. # Shell to use when invoking shell scripts.
  14902. SHELL=$lt_SHELL
  14903. # Whether or not to build shared libraries.
  14904. build_libtool_libs=$enable_shared
  14905. # Whether or not to build static libraries.
  14906. build_old_libs=$enable_static
  14907. # Whether or not to add -lc for building shared libraries.
  14908. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14909. # Whether or not to disallow shared libs when runtime libs are static
  14910. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14911. # Whether or not to optimize for fast installation.
  14912. fast_install=$enable_fast_install
  14913. # The host system.
  14914. host_alias=$host_alias
  14915. host=$host
  14916. host_os=$host_os
  14917. # The build system.
  14918. build_alias=$build_alias
  14919. build=$build
  14920. build_os=$build_os
  14921. # An echo program that does not interpret backslashes.
  14922. echo=$lt_echo
  14923. # The archiver.
  14924. AR=$lt_AR
  14925. AR_FLAGS=$lt_AR_FLAGS
  14926. # A C compiler.
  14927. LTCC=$lt_LTCC
  14928. # LTCC compiler flags.
  14929. LTCFLAGS=$lt_LTCFLAGS
  14930. # A language-specific compiler.
  14931. CC=$lt_compiler_F77
  14932. # Is the compiler the GNU C compiler?
  14933. with_gcc=$GCC_F77
  14934. # An ERE matcher.
  14935. EGREP=$lt_EGREP
  14936. # The linker used to build libraries.
  14937. LD=$lt_LD_F77
  14938. # Whether we need hard or soft links.
  14939. LN_S=$lt_LN_S
  14940. # A BSD-compatible nm program.
  14941. NM=$lt_NM
  14942. # A symbol stripping program
  14943. STRIP=$lt_STRIP
  14944. # Used to examine libraries when file_magic_cmd begins "file"
  14945. MAGIC_CMD=$MAGIC_CMD
  14946. # Used on cygwin: DLL creation program.
  14947. DLLTOOL="$DLLTOOL"
  14948. # Used on cygwin: object dumper.
  14949. OBJDUMP="$OBJDUMP"
  14950. # Used on cygwin: assembler.
  14951. AS="$AS"
  14952. # The name of the directory that contains temporary libtool files.
  14953. objdir=$objdir
  14954. # How to create reloadable object files.
  14955. reload_flag=$lt_reload_flag
  14956. reload_cmds=$lt_reload_cmds
  14957. # How to pass a linker flag through the compiler.
  14958. wl=$lt_lt_prog_compiler_wl_F77
  14959. # Object file suffix (normally "o").
  14960. objext="$ac_objext"
  14961. # Old archive suffix (normally "a").
  14962. libext="$libext"
  14963. # Shared library suffix (normally ".so").
  14964. shrext_cmds='$shrext_cmds'
  14965. # Executable file suffix (normally "").
  14966. exeext="$exeext"
  14967. # Additional compiler flags for building library objects.
  14968. pic_flag=$lt_lt_prog_compiler_pic_F77
  14969. pic_mode=$pic_mode
  14970. # What is the maximum length of a command?
  14971. max_cmd_len=$lt_cv_sys_max_cmd_len
  14972. # Does compiler simultaneously support -c and -o options?
  14973. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14974. # Must we lock files when doing compilation?
  14975. need_locks=$lt_need_locks
  14976. # Do we need the lib prefix for modules?
  14977. need_lib_prefix=$need_lib_prefix
  14978. # Do we need a version for libraries?
  14979. need_version=$need_version
  14980. # Whether dlopen is supported.
  14981. dlopen_support=$enable_dlopen
  14982. # Whether dlopen of programs is supported.
  14983. dlopen_self=$enable_dlopen_self
  14984. # Whether dlopen of statically linked programs is supported.
  14985. dlopen_self_static=$enable_dlopen_self_static
  14986. # Compiler flag to prevent dynamic linking.
  14987. link_static_flag=$lt_lt_prog_compiler_static_F77
  14988. # Compiler flag to turn off builtin functions.
  14989. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14990. # Compiler flag to allow reflexive dlopens.
  14991. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14992. # Compiler flag to generate shared objects directly from archives.
  14993. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14994. # Compiler flag to generate thread-safe objects.
  14995. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14996. # Library versioning type.
  14997. version_type=$version_type
  14998. # Format of library name prefix.
  14999. libname_spec=$lt_libname_spec
  15000. # List of archive names. First name is the real one, the rest are links.
  15001. # The last name is the one that the linker finds with -lNAME.
  15002. library_names_spec=$lt_library_names_spec
  15003. # The coded name of the library, if different from the real name.
  15004. soname_spec=$lt_soname_spec
  15005. # Commands used to build and install an old-style archive.
  15006. RANLIB=$lt_RANLIB
  15007. old_archive_cmds=$lt_old_archive_cmds_F77
  15008. old_postinstall_cmds=$lt_old_postinstall_cmds
  15009. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15010. # Create an old-style archive from a shared archive.
  15011. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  15012. # Create a temporary old-style archive to link instead of a shared archive.
  15013. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  15014. # Commands used to build and install a shared archive.
  15015. archive_cmds=$lt_archive_cmds_F77
  15016. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  15017. postinstall_cmds=$lt_postinstall_cmds
  15018. postuninstall_cmds=$lt_postuninstall_cmds
  15019. # Commands used to build a loadable module (assumed same as above if empty)
  15020. module_cmds=$lt_module_cmds_F77
  15021. module_expsym_cmds=$lt_module_expsym_cmds_F77
  15022. # Commands to strip libraries.
  15023. old_striplib=$lt_old_striplib
  15024. striplib=$lt_striplib
  15025. # Dependencies to place before the objects being linked to create a
  15026. # shared library.
  15027. predep_objects=$lt_predep_objects_F77
  15028. # Dependencies to place after the objects being linked to create a
  15029. # shared library.
  15030. postdep_objects=$lt_postdep_objects_F77
  15031. # Dependencies to place before the objects being linked to create a
  15032. # shared library.
  15033. predeps=$lt_predeps_F77
  15034. # Dependencies to place after the objects being linked to create a
  15035. # shared library.
  15036. postdeps=$lt_postdeps_F77
  15037. # The library search path used internally by the compiler when linking
  15038. # a shared library.
  15039. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  15040. # Method to check whether dependent libraries are shared objects.
  15041. deplibs_check_method=$lt_deplibs_check_method
  15042. # Command to use when deplibs_check_method == file_magic.
  15043. file_magic_cmd=$lt_file_magic_cmd
  15044. # Flag that allows shared libraries with undefined symbols to be built.
  15045. allow_undefined_flag=$lt_allow_undefined_flag_F77
  15046. # Flag that forces no undefined symbols.
  15047. no_undefined_flag=$lt_no_undefined_flag_F77
  15048. # Commands used to finish a libtool library installation in a directory.
  15049. finish_cmds=$lt_finish_cmds
  15050. # Same as above, but a single script fragment to be evaled but not shown.
  15051. finish_eval=$lt_finish_eval
  15052. # Take the output of nm and produce a listing of raw symbols and C names.
  15053. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15054. # Transform the output of nm in a proper C declaration
  15055. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15056. # Transform the output of nm in a C name address pair
  15057. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15058. # This is the shared library runtime path variable.
  15059. runpath_var=$runpath_var
  15060. # This is the shared library path variable.
  15061. shlibpath_var=$shlibpath_var
  15062. # Is shlibpath searched before the hard-coded library search path?
  15063. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15064. # How to hardcode a shared library path into an executable.
  15065. hardcode_action=$hardcode_action_F77
  15066. # Whether we should hardcode library paths into libraries.
  15067. hardcode_into_libs=$hardcode_into_libs
  15068. # Flag to hardcode \$libdir into a binary during linking.
  15069. # This must work even if \$libdir does not exist.
  15070. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  15071. # If ld is used when linking, flag to hardcode \$libdir into
  15072. # a binary during linking. This must work even if \$libdir does
  15073. # not exist.
  15074. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  15075. # Whether we need a single -rpath flag with a separated argument.
  15076. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  15077. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15078. # resulting binary.
  15079. hardcode_direct=$hardcode_direct_F77
  15080. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15081. # resulting binary.
  15082. hardcode_minus_L=$hardcode_minus_L_F77
  15083. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15084. # the resulting binary.
  15085. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  15086. # Set to yes if building a shared library automatically hardcodes DIR into the library
  15087. # and all subsequent libraries and executables linked against it.
  15088. hardcode_automatic=$hardcode_automatic_F77
  15089. # Variables whose values should be saved in libtool wrapper scripts and
  15090. # restored at relink time.
  15091. variables_saved_for_relink="$variables_saved_for_relink"
  15092. # Whether libtool must link a program against all its dependency libraries.
  15093. link_all_deplibs=$link_all_deplibs_F77
  15094. # Compile-time system search path for libraries
  15095. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15096. # Run-time system search path for libraries
  15097. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15098. # Fix the shell variable \$srcfile for the compiler.
  15099. fix_srcfile_path=$lt_fix_srcfile_path
  15100. # Set to yes if exported symbols are required.
  15101. always_export_symbols=$always_export_symbols_F77
  15102. # The commands to list exported symbols.
  15103. export_symbols_cmds=$lt_export_symbols_cmds_F77
  15104. # The commands to extract the exported symbol list from a shared archive.
  15105. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15106. # Symbols that should not be listed in the preloaded symbols.
  15107. exclude_expsyms=$lt_exclude_expsyms_F77
  15108. # Symbols that must always be exported.
  15109. include_expsyms=$lt_include_expsyms_F77
  15110. # ### END LIBTOOL TAG CONFIG: $tagname
  15111. __EOF__
  15112. else
  15113. # If there is no Makefile yet, we rely on a make rule to execute
  15114. # `config.status --recheck' to rerun these tests and create the
  15115. # libtool script then.
  15116. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15117. if test -f "$ltmain_in"; then
  15118. test -f Makefile && make "$ltmain"
  15119. fi
  15120. fi
  15121. ac_ext=c
  15122. ac_cpp='$CPP $CPPFLAGS'
  15123. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15124. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15125. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15126. CC="$lt_save_CC"
  15127. else
  15128. tagname=""
  15129. fi
  15130. ;;
  15131. GCJ)
  15132. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15133. # Source file extension for Java test sources.
  15134. ac_ext=java
  15135. # Object file extension for compiled Java test sources.
  15136. objext=o
  15137. objext_GCJ=$objext
  15138. # Code to be used in simple compile tests
  15139. lt_simple_compile_test_code="class foo {}"
  15140. # Code to be used in simple link tests
  15141. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  15142. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15143. # If no C compiler was specified, use CC.
  15144. LTCC=${LTCC-"$CC"}
  15145. # If no C compiler flags were specified, use CFLAGS.
  15146. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15147. # Allow CC to be a program name with arguments.
  15148. compiler=$CC
  15149. # save warnings/boilerplate of simple test code
  15150. ac_outfile=conftest.$ac_objext
  15151. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15152. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15153. _lt_compiler_boilerplate=`cat conftest.err`
  15154. $rm conftest*
  15155. ac_outfile=conftest.$ac_objext
  15156. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15157. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15158. _lt_linker_boilerplate=`cat conftest.err`
  15159. $rm conftest*
  15160. # Allow CC to be a program name with arguments.
  15161. lt_save_CC="$CC"
  15162. CC=${GCJ-"gcj"}
  15163. compiler=$CC
  15164. compiler_GCJ=$CC
  15165. for cc_temp in $compiler""; do
  15166. case $cc_temp in
  15167. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15168. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15169. \-*) ;;
  15170. *) break;;
  15171. esac
  15172. done
  15173. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15174. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  15175. archive_cmds_need_lc_GCJ=no
  15176. old_archive_cmds_GCJ=$old_archive_cmds
  15177. lt_prog_compiler_no_builtin_flag_GCJ=
  15178. if test "$GCC" = yes; then
  15179. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  15180. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  15181. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  15182. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  15183. $as_echo_n "(cached) " >&6
  15184. else
  15185. lt_cv_prog_compiler_rtti_exceptions=no
  15186. ac_outfile=conftest.$ac_objext
  15187. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15188. lt_compiler_flag="-fno-rtti -fno-exceptions"
  15189. # Insert the option either (1) after the last *FLAGS variable, or
  15190. # (2) before a word containing "conftest.", or (3) at the end.
  15191. # Note that $ac_compile itself does not contain backslashes and begins
  15192. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15193. # The option is referenced via a variable to avoid confusing sed.
  15194. lt_compile=`echo "$ac_compile" | $SED \
  15195. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15196. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15197. -e 's:$: $lt_compiler_flag:'`
  15198. (eval echo "\"\$as_me:16958: $lt_compile\"" >&5)
  15199. (eval "$lt_compile" 2>conftest.err)
  15200. ac_status=$?
  15201. cat conftest.err >&5
  15202. echo "$as_me:16962: \$? = $ac_status" >&5
  15203. if (exit $ac_status) && test -s "$ac_outfile"; then
  15204. # The compiler can only warn and ignore the option if not recognized
  15205. # So say no if there are warnings other than the usual output.
  15206. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15207. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15208. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15209. lt_cv_prog_compiler_rtti_exceptions=yes
  15210. fi
  15211. fi
  15212. $rm conftest*
  15213. fi
  15214. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  15215. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  15216. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  15217. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  15218. else
  15219. :
  15220. fi
  15221. fi
  15222. lt_prog_compiler_wl_GCJ=
  15223. lt_prog_compiler_pic_GCJ=
  15224. lt_prog_compiler_static_GCJ=
  15225. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  15226. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  15227. if test "$GCC" = yes; then
  15228. lt_prog_compiler_wl_GCJ='-Wl,'
  15229. lt_prog_compiler_static_GCJ='-static'
  15230. case $host_os in
  15231. aix*)
  15232. # All AIX code is PIC.
  15233. if test "$host_cpu" = ia64; then
  15234. # AIX 5 now supports IA64 processor
  15235. lt_prog_compiler_static_GCJ='-Bstatic'
  15236. fi
  15237. ;;
  15238. amigaos*)
  15239. # FIXME: we need at least 68020 code to build shared libraries, but
  15240. # adding the `-m68020' flag to GCC prevents building anything better,
  15241. # like `-m68040'.
  15242. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  15243. ;;
  15244. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  15245. # PIC is the default for these OSes.
  15246. ;;
  15247. mingw* | cygwin* | pw32* | os2*)
  15248. # This hack is so that the source file can tell whether it is being
  15249. # built for inclusion in a dll (and should export symbols for example).
  15250. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  15251. # (--disable-auto-import) libraries
  15252. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15253. ;;
  15254. darwin* | rhapsody*)
  15255. # PIC is the default on this platform
  15256. # Common symbols not allowed in MH_DYLIB files
  15257. lt_prog_compiler_pic_GCJ='-fno-common'
  15258. ;;
  15259. interix[3-9]*)
  15260. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  15261. # Instead, we relocate shared libraries at runtime.
  15262. ;;
  15263. msdosdjgpp*)
  15264. # Just because we use GCC doesn't mean we suddenly get shared libraries
  15265. # on systems that don't support them.
  15266. lt_prog_compiler_can_build_shared_GCJ=no
  15267. enable_shared=no
  15268. ;;
  15269. sysv4*MP*)
  15270. if test -d /usr/nec; then
  15271. lt_prog_compiler_pic_GCJ=-Kconform_pic
  15272. fi
  15273. ;;
  15274. hpux*)
  15275. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15276. # not for PA HP-UX.
  15277. case $host_cpu in
  15278. hppa*64*|ia64*)
  15279. # +Z the default
  15280. ;;
  15281. *)
  15282. lt_prog_compiler_pic_GCJ='-fPIC'
  15283. ;;
  15284. esac
  15285. ;;
  15286. *)
  15287. lt_prog_compiler_pic_GCJ='-fPIC'
  15288. ;;
  15289. esac
  15290. else
  15291. # PORTME Check for flag to pass linker flags through the system compiler.
  15292. case $host_os in
  15293. aix*)
  15294. lt_prog_compiler_wl_GCJ='-Wl,'
  15295. if test "$host_cpu" = ia64; then
  15296. # AIX 5 now supports IA64 processor
  15297. lt_prog_compiler_static_GCJ='-Bstatic'
  15298. else
  15299. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  15300. fi
  15301. ;;
  15302. darwin*)
  15303. # PIC is the default on this platform
  15304. # Common symbols not allowed in MH_DYLIB files
  15305. case $cc_basename in
  15306. xlc*)
  15307. lt_prog_compiler_pic_GCJ='-qnocommon'
  15308. lt_prog_compiler_wl_GCJ='-Wl,'
  15309. ;;
  15310. esac
  15311. ;;
  15312. mingw* | cygwin* | pw32* | os2*)
  15313. # This hack is so that the source file can tell whether it is being
  15314. # built for inclusion in a dll (and should export symbols for example).
  15315. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15316. ;;
  15317. hpux9* | hpux10* | hpux11*)
  15318. lt_prog_compiler_wl_GCJ='-Wl,'
  15319. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15320. # not for PA HP-UX.
  15321. case $host_cpu in
  15322. hppa*64*|ia64*)
  15323. # +Z the default
  15324. ;;
  15325. *)
  15326. lt_prog_compiler_pic_GCJ='+Z'
  15327. ;;
  15328. esac
  15329. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15330. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15331. ;;
  15332. irix5* | irix6* | nonstopux*)
  15333. lt_prog_compiler_wl_GCJ='-Wl,'
  15334. # PIC (with -KPIC) is the default.
  15335. lt_prog_compiler_static_GCJ='-non_shared'
  15336. ;;
  15337. newsos6)
  15338. lt_prog_compiler_pic_GCJ='-KPIC'
  15339. lt_prog_compiler_static_GCJ='-Bstatic'
  15340. ;;
  15341. linux* | k*bsd*-gnu)
  15342. case $cc_basename in
  15343. icc* | ecc*)
  15344. lt_prog_compiler_wl_GCJ='-Wl,'
  15345. lt_prog_compiler_pic_GCJ='-KPIC'
  15346. lt_prog_compiler_static_GCJ='-static'
  15347. ;;
  15348. pgcc* | pgf77* | pgf90* | pgf95*)
  15349. # Portland Group compilers (*not* the Pentium gcc compiler,
  15350. # which looks to be a dead project)
  15351. lt_prog_compiler_wl_GCJ='-Wl,'
  15352. lt_prog_compiler_pic_GCJ='-fpic'
  15353. lt_prog_compiler_static_GCJ='-Bstatic'
  15354. ;;
  15355. ccc*)
  15356. lt_prog_compiler_wl_GCJ='-Wl,'
  15357. # All Alpha code is PIC.
  15358. lt_prog_compiler_static_GCJ='-non_shared'
  15359. ;;
  15360. *)
  15361. case `$CC -V 2>&1 | sed 5q` in
  15362. *Sun\ C*)
  15363. # Sun C 5.9
  15364. lt_prog_compiler_pic_GCJ='-KPIC'
  15365. lt_prog_compiler_static_GCJ='-Bstatic'
  15366. lt_prog_compiler_wl_GCJ='-Wl,'
  15367. ;;
  15368. *Sun\ F*)
  15369. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15370. lt_prog_compiler_pic_GCJ='-KPIC'
  15371. lt_prog_compiler_static_GCJ='-Bstatic'
  15372. lt_prog_compiler_wl_GCJ=''
  15373. ;;
  15374. esac
  15375. ;;
  15376. esac
  15377. ;;
  15378. osf3* | osf4* | osf5*)
  15379. lt_prog_compiler_wl_GCJ='-Wl,'
  15380. # All OSF/1 code is PIC.
  15381. lt_prog_compiler_static_GCJ='-non_shared'
  15382. ;;
  15383. rdos*)
  15384. lt_prog_compiler_static_GCJ='-non_shared'
  15385. ;;
  15386. solaris*)
  15387. lt_prog_compiler_pic_GCJ='-KPIC'
  15388. lt_prog_compiler_static_GCJ='-Bstatic'
  15389. case $cc_basename in
  15390. f77* | f90* | f95*)
  15391. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15392. *)
  15393. lt_prog_compiler_wl_GCJ='-Wl,';;
  15394. esac
  15395. ;;
  15396. sunos4*)
  15397. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15398. lt_prog_compiler_pic_GCJ='-PIC'
  15399. lt_prog_compiler_static_GCJ='-Bstatic'
  15400. ;;
  15401. sysv4 | sysv4.2uw2* | sysv4.3*)
  15402. lt_prog_compiler_wl_GCJ='-Wl,'
  15403. lt_prog_compiler_pic_GCJ='-KPIC'
  15404. lt_prog_compiler_static_GCJ='-Bstatic'
  15405. ;;
  15406. sysv4*MP*)
  15407. if test -d /usr/nec ;then
  15408. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15409. lt_prog_compiler_static_GCJ='-Bstatic'
  15410. fi
  15411. ;;
  15412. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15413. lt_prog_compiler_wl_GCJ='-Wl,'
  15414. lt_prog_compiler_pic_GCJ='-KPIC'
  15415. lt_prog_compiler_static_GCJ='-Bstatic'
  15416. ;;
  15417. unicos*)
  15418. lt_prog_compiler_wl_GCJ='-Wl,'
  15419. lt_prog_compiler_can_build_shared_GCJ=no
  15420. ;;
  15421. uts4*)
  15422. lt_prog_compiler_pic_GCJ='-pic'
  15423. lt_prog_compiler_static_GCJ='-Bstatic'
  15424. ;;
  15425. *)
  15426. lt_prog_compiler_can_build_shared_GCJ=no
  15427. ;;
  15428. esac
  15429. fi
  15430. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15431. $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  15432. #
  15433. # Check to make sure the PIC flag actually works.
  15434. #
  15435. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15436. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15437. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  15438. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15439. $as_echo_n "(cached) " >&6
  15440. else
  15441. lt_prog_compiler_pic_works_GCJ=no
  15442. ac_outfile=conftest.$ac_objext
  15443. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15444. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15445. # Insert the option either (1) after the last *FLAGS variable, or
  15446. # (2) before a word containing "conftest.", or (3) at the end.
  15447. # Note that $ac_compile itself does not contain backslashes and begins
  15448. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15449. # The option is referenced via a variable to avoid confusing sed.
  15450. lt_compile=`echo "$ac_compile" | $SED \
  15451. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15452. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15453. -e 's:$: $lt_compiler_flag:'`
  15454. (eval echo "\"\$as_me:17248: $lt_compile\"" >&5)
  15455. (eval "$lt_compile" 2>conftest.err)
  15456. ac_status=$?
  15457. cat conftest.err >&5
  15458. echo "$as_me:17252: \$? = $ac_status" >&5
  15459. if (exit $ac_status) && test -s "$ac_outfile"; then
  15460. # The compiler can only warn and ignore the option if not recognized
  15461. # So say no if there are warnings other than the usual output.
  15462. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15463. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15464. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15465. lt_prog_compiler_pic_works_GCJ=yes
  15466. fi
  15467. fi
  15468. $rm conftest*
  15469. fi
  15470. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15471. $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
  15472. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15473. case $lt_prog_compiler_pic_GCJ in
  15474. "" | " "*) ;;
  15475. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15476. esac
  15477. else
  15478. lt_prog_compiler_pic_GCJ=
  15479. lt_prog_compiler_can_build_shared_GCJ=no
  15480. fi
  15481. fi
  15482. case $host_os in
  15483. # For platforms which do not support PIC, -DPIC is meaningless:
  15484. *djgpp*)
  15485. lt_prog_compiler_pic_GCJ=
  15486. ;;
  15487. *)
  15488. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15489. ;;
  15490. esac
  15491. #
  15492. # Check to make sure the static flag actually works.
  15493. #
  15494. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15495. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15496. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  15497. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15498. $as_echo_n "(cached) " >&6
  15499. else
  15500. lt_prog_compiler_static_works_GCJ=no
  15501. save_LDFLAGS="$LDFLAGS"
  15502. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15503. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15504. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15505. # The linker can only warn and ignore the option if not recognized
  15506. # So say no if there are warnings
  15507. if test -s conftest.err; then
  15508. # Append any errors to the config.log.
  15509. cat conftest.err 1>&5
  15510. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15511. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15512. if diff conftest.exp conftest.er2 >/dev/null; then
  15513. lt_prog_compiler_static_works_GCJ=yes
  15514. fi
  15515. else
  15516. lt_prog_compiler_static_works_GCJ=yes
  15517. fi
  15518. fi
  15519. $rm conftest*
  15520. LDFLAGS="$save_LDFLAGS"
  15521. fi
  15522. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15523. $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
  15524. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15525. :
  15526. else
  15527. lt_prog_compiler_static_GCJ=
  15528. fi
  15529. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15530. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  15531. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15532. $as_echo_n "(cached) " >&6
  15533. else
  15534. lt_cv_prog_compiler_c_o_GCJ=no
  15535. $rm -r conftest 2>/dev/null
  15536. mkdir conftest
  15537. cd conftest
  15538. mkdir out
  15539. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15540. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15541. # Insert the option either (1) after the last *FLAGS variable, or
  15542. # (2) before a word containing "conftest.", or (3) at the end.
  15543. # Note that $ac_compile itself does not contain backslashes and begins
  15544. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15545. lt_compile=`echo "$ac_compile" | $SED \
  15546. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15547. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15548. -e 's:$: $lt_compiler_flag:'`
  15549. (eval echo "\"\$as_me:17352: $lt_compile\"" >&5)
  15550. (eval "$lt_compile" 2>out/conftest.err)
  15551. ac_status=$?
  15552. cat out/conftest.err >&5
  15553. echo "$as_me:17356: \$? = $ac_status" >&5
  15554. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15555. then
  15556. # The compiler can only warn and ignore the option if not recognized
  15557. # So say no if there are warnings
  15558. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15559. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15560. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15561. lt_cv_prog_compiler_c_o_GCJ=yes
  15562. fi
  15563. fi
  15564. chmod u+w . 2>&5
  15565. $rm conftest*
  15566. # SGI C++ compiler will create directory out/ii_files/ for
  15567. # template instantiation
  15568. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15569. $rm out/* && rmdir out
  15570. cd ..
  15571. rmdir conftest
  15572. $rm conftest*
  15573. fi
  15574. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15575. $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15576. hard_links="nottested"
  15577. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15578. # do not overwrite the value of need_locks provided by the user
  15579. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15580. $as_echo_n "checking if we can lock with hard links... " >&6; }
  15581. hard_links=yes
  15582. $rm conftest*
  15583. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15584. touch conftest.a
  15585. ln conftest.a conftest.b 2>&5 || hard_links=no
  15586. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15587. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  15588. $as_echo "$hard_links" >&6; }
  15589. if test "$hard_links" = no; then
  15590. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15591. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15592. need_locks=warn
  15593. fi
  15594. else
  15595. need_locks=no
  15596. fi
  15597. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15598. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15599. runpath_var=
  15600. allow_undefined_flag_GCJ=
  15601. enable_shared_with_static_runtimes_GCJ=no
  15602. archive_cmds_GCJ=
  15603. archive_expsym_cmds_GCJ=
  15604. old_archive_From_new_cmds_GCJ=
  15605. old_archive_from_expsyms_cmds_GCJ=
  15606. export_dynamic_flag_spec_GCJ=
  15607. whole_archive_flag_spec_GCJ=
  15608. thread_safe_flag_spec_GCJ=
  15609. hardcode_libdir_flag_spec_GCJ=
  15610. hardcode_libdir_flag_spec_ld_GCJ=
  15611. hardcode_libdir_separator_GCJ=
  15612. hardcode_direct_GCJ=no
  15613. hardcode_minus_L_GCJ=no
  15614. hardcode_shlibpath_var_GCJ=unsupported
  15615. link_all_deplibs_GCJ=unknown
  15616. hardcode_automatic_GCJ=no
  15617. module_cmds_GCJ=
  15618. module_expsym_cmds_GCJ=
  15619. always_export_symbols_GCJ=no
  15620. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15621. # include_expsyms should be a list of space-separated symbols to be *always*
  15622. # included in the symbol list
  15623. include_expsyms_GCJ=
  15624. # exclude_expsyms can be an extended regexp of symbols to exclude
  15625. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15626. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15627. # as well as any symbol that contains `d'.
  15628. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15629. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15630. # platforms (ab)use it in PIC code, but their linkers get confused if
  15631. # the symbol is explicitly referenced. Since portable code cannot
  15632. # rely on this symbol name, it's probably fine to never include it in
  15633. # preloaded symbol tables.
  15634. extract_expsyms_cmds=
  15635. # Just being paranoid about ensuring that cc_basename is set.
  15636. for cc_temp in $compiler""; do
  15637. case $cc_temp in
  15638. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15639. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15640. \-*) ;;
  15641. *) break;;
  15642. esac
  15643. done
  15644. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15645. case $host_os in
  15646. cygwin* | mingw* | pw32*)
  15647. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15648. # When not using gcc, we currently assume that we are using
  15649. # Microsoft Visual C++.
  15650. if test "$GCC" != yes; then
  15651. with_gnu_ld=no
  15652. fi
  15653. ;;
  15654. interix*)
  15655. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15656. with_gnu_ld=yes
  15657. ;;
  15658. openbsd*)
  15659. with_gnu_ld=no
  15660. ;;
  15661. esac
  15662. ld_shlibs_GCJ=yes
  15663. if test "$with_gnu_ld" = yes; then
  15664. # If archive_cmds runs LD, not CC, wlarc should be empty
  15665. wlarc='${wl}'
  15666. # Set some defaults for GNU ld with shared library support. These
  15667. # are reset later if shared libraries are not supported. Putting them
  15668. # here allows them to be overridden if necessary.
  15669. runpath_var=LD_RUN_PATH
  15670. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15671. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15672. # ancient GNU ld didn't support --whole-archive et. al.
  15673. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15674. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15675. else
  15676. whole_archive_flag_spec_GCJ=
  15677. fi
  15678. supports_anon_versioning=no
  15679. case `$LD -v 2>/dev/null` in
  15680. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15681. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15682. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15683. *\ 2.11.*) ;; # other 2.11 versions
  15684. *) supports_anon_versioning=yes ;;
  15685. esac
  15686. # See if GNU ld supports shared libraries.
  15687. case $host_os in
  15688. aix3* | aix4* | aix5*)
  15689. # On AIX/PPC, the GNU linker is very broken
  15690. if test "$host_cpu" != ia64; then
  15691. ld_shlibs_GCJ=no
  15692. cat <<EOF 1>&2
  15693. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15694. *** to be unable to reliably create shared libraries on AIX.
  15695. *** Therefore, libtool is disabling shared libraries support. If you
  15696. *** really care for shared libraries, you may want to modify your PATH
  15697. *** so that a non-GNU linker is found, and then restart.
  15698. EOF
  15699. fi
  15700. ;;
  15701. amigaos*)
  15702. 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)'
  15703. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15704. hardcode_minus_L_GCJ=yes
  15705. # Samuel A. Falvo II <[email protected]> reports
  15706. # that the semantics of dynamic libraries on AmigaOS, at least up
  15707. # to version 4, is to share data among multiple programs linked
  15708. # with the same dynamic library. Since this doesn't match the
  15709. # behavior of shared libraries on other platforms, we can't use
  15710. # them.
  15711. ld_shlibs_GCJ=no
  15712. ;;
  15713. beos*)
  15714. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15715. allow_undefined_flag_GCJ=unsupported
  15716. # Joseph Beckenbach <[email protected]> says some releases of gcc
  15717. # support --undefined. This deserves some investigation. FIXME
  15718. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15719. else
  15720. ld_shlibs_GCJ=no
  15721. fi
  15722. ;;
  15723. cygwin* | mingw* | pw32*)
  15724. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15725. # as there is no search path for DLLs.
  15726. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15727. allow_undefined_flag_GCJ=unsupported
  15728. always_export_symbols_GCJ=no
  15729. enable_shared_with_static_runtimes_GCJ=yes
  15730. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15731. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15732. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15733. # If the export-symbols file already is a .def file (1st line
  15734. # is EXPORTS), use it as is; otherwise, prepend...
  15735. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15736. cp $export_symbols $output_objdir/$soname.def;
  15737. else
  15738. echo EXPORTS > $output_objdir/$soname.def;
  15739. cat $export_symbols >> $output_objdir/$soname.def;
  15740. fi~
  15741. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15742. else
  15743. ld_shlibs_GCJ=no
  15744. fi
  15745. ;;
  15746. interix[3-9]*)
  15747. hardcode_direct_GCJ=no
  15748. hardcode_shlibpath_var_GCJ=no
  15749. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15750. export_dynamic_flag_spec_GCJ='${wl}-E'
  15751. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15752. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15753. # default) and relocated if they conflict, which is a slow very memory
  15754. # consuming and fragmenting process. To avoid this, we pick a random,
  15755. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15756. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15757. 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'
  15758. 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'
  15759. ;;
  15760. gnu* | linux* | k*bsd*-gnu)
  15761. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15762. tmp_addflag=
  15763. case $cc_basename,$host_cpu in
  15764. pgcc*) # Portland Group C compiler
  15765. 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'
  15766. tmp_addflag=' $pic_flag'
  15767. ;;
  15768. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15769. 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'
  15770. tmp_addflag=' $pic_flag -Mnomain' ;;
  15771. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15772. tmp_addflag=' -i_dynamic' ;;
  15773. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15774. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15775. ifc* | ifort*) # Intel Fortran compiler
  15776. tmp_addflag=' -nofor_main' ;;
  15777. esac
  15778. case `$CC -V 2>&1 | sed 5q` in
  15779. *Sun\ C*) # Sun C 5.9
  15780. whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15781. tmp_sharedflag='-G' ;;
  15782. *Sun\ F*) # Sun Fortran 8.3
  15783. tmp_sharedflag='-G' ;;
  15784. *)
  15785. tmp_sharedflag='-shared' ;;
  15786. esac
  15787. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15788. if test $supports_anon_versioning = yes; then
  15789. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15790. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15791. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15792. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15793. fi
  15794. else
  15795. ld_shlibs_GCJ=no
  15796. fi
  15797. ;;
  15798. netbsd*)
  15799. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15800. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15801. wlarc=
  15802. else
  15803. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15804. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15805. fi
  15806. ;;
  15807. solaris*)
  15808. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15809. ld_shlibs_GCJ=no
  15810. cat <<EOF 1>&2
  15811. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15812. *** create shared libraries on Solaris systems. Therefore, libtool
  15813. *** is disabling shared libraries support. We urge you to upgrade GNU
  15814. *** binutils to release 2.9.1 or newer. Another option is to modify
  15815. *** your PATH or compiler configuration so that the native linker is
  15816. *** used, and then restart.
  15817. EOF
  15818. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15819. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15820. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15821. else
  15822. ld_shlibs_GCJ=no
  15823. fi
  15824. ;;
  15825. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15826. case `$LD -v 2>&1` in
  15827. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15828. ld_shlibs_GCJ=no
  15829. cat <<_LT_EOF 1>&2
  15830. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15831. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15832. *** is disabling shared libraries support. We urge you to upgrade GNU
  15833. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15834. *** your PATH or compiler configuration so that the native linker is
  15835. *** used, and then restart.
  15836. _LT_EOF
  15837. ;;
  15838. *)
  15839. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15840. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15841. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15842. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15843. else
  15844. ld_shlibs_GCJ=no
  15845. fi
  15846. ;;
  15847. esac
  15848. ;;
  15849. sunos4*)
  15850. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15851. wlarc=
  15852. hardcode_direct_GCJ=yes
  15853. hardcode_shlibpath_var_GCJ=no
  15854. ;;
  15855. *)
  15856. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15857. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15858. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15859. else
  15860. ld_shlibs_GCJ=no
  15861. fi
  15862. ;;
  15863. esac
  15864. if test "$ld_shlibs_GCJ" = no; then
  15865. runpath_var=
  15866. hardcode_libdir_flag_spec_GCJ=
  15867. export_dynamic_flag_spec_GCJ=
  15868. whole_archive_flag_spec_GCJ=
  15869. fi
  15870. else
  15871. # PORTME fill in a description of your system's linker (not GNU ld)
  15872. case $host_os in
  15873. aix3*)
  15874. allow_undefined_flag_GCJ=unsupported
  15875. always_export_symbols_GCJ=yes
  15876. 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'
  15877. # Note: this linker hardcodes the directories in LIBPATH if there
  15878. # are no directories specified by -L.
  15879. hardcode_minus_L_GCJ=yes
  15880. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15881. # Neither direct hardcoding nor static linking is supported with a
  15882. # broken collect2.
  15883. hardcode_direct_GCJ=unsupported
  15884. fi
  15885. ;;
  15886. aix4* | aix5*)
  15887. if test "$host_cpu" = ia64; then
  15888. # On IA64, the linker does run time linking by default, so we don't
  15889. # have to do anything special.
  15890. aix_use_runtimelinking=no
  15891. exp_sym_flag='-Bexport'
  15892. no_entry_flag=""
  15893. else
  15894. # If we're using GNU nm, then we don't want the "-C" option.
  15895. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15896. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15897. 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'
  15898. else
  15899. 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'
  15900. fi
  15901. aix_use_runtimelinking=no
  15902. # Test if we are trying to use run time linking or normal
  15903. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15904. # need to do runtime linking.
  15905. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15906. for ld_flag in $LDFLAGS; do
  15907. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15908. aix_use_runtimelinking=yes
  15909. break
  15910. fi
  15911. done
  15912. ;;
  15913. esac
  15914. exp_sym_flag='-bexport'
  15915. no_entry_flag='-bnoentry'
  15916. fi
  15917. # When large executables or shared objects are built, AIX ld can
  15918. # have problems creating the table of contents. If linking a library
  15919. # or program results in "error TOC overflow" add -mminimal-toc to
  15920. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15921. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15922. archive_cmds_GCJ=''
  15923. hardcode_direct_GCJ=yes
  15924. hardcode_libdir_separator_GCJ=':'
  15925. link_all_deplibs_GCJ=yes
  15926. if test "$GCC" = yes; then
  15927. case $host_os in aix4.[012]|aix4.[012].*)
  15928. # We only want to do this on AIX 4.2 and lower, the check
  15929. # below for broken collect2 doesn't work under 4.3+
  15930. collect2name=`${CC} -print-prog-name=collect2`
  15931. if test -f "$collect2name" && \
  15932. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15933. then
  15934. # We have reworked collect2
  15935. :
  15936. else
  15937. # We have old collect2
  15938. hardcode_direct_GCJ=unsupported
  15939. # It fails to find uninstalled libraries when the uninstalled
  15940. # path is not listed in the libpath. Setting hardcode_minus_L
  15941. # to unsupported forces relinking
  15942. hardcode_minus_L_GCJ=yes
  15943. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15944. hardcode_libdir_separator_GCJ=
  15945. fi
  15946. ;;
  15947. esac
  15948. shared_flag='-shared'
  15949. if test "$aix_use_runtimelinking" = yes; then
  15950. shared_flag="$shared_flag "'${wl}-G'
  15951. fi
  15952. else
  15953. # not using gcc
  15954. if test "$host_cpu" = ia64; then
  15955. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15956. # chokes on -Wl,-G. The following line is correct:
  15957. shared_flag='-G'
  15958. else
  15959. if test "$aix_use_runtimelinking" = yes; then
  15960. shared_flag='${wl}-G'
  15961. else
  15962. shared_flag='${wl}-bM:SRE'
  15963. fi
  15964. fi
  15965. fi
  15966. # It seems that -bexpall does not export symbols beginning with
  15967. # underscore (_), so it is better to generate a list of symbols to export.
  15968. always_export_symbols_GCJ=yes
  15969. if test "$aix_use_runtimelinking" = yes; then
  15970. # Warning - without using the other runtime loading flags (-brtl),
  15971. # -berok will link without error, but may produce a broken library.
  15972. allow_undefined_flag_GCJ='-berok'
  15973. # Determine the default libpath from the value encoded in an empty executable.
  15974. cat >conftest.$ac_ext <<_ACEOF
  15975. /* confdefs.h. */
  15976. _ACEOF
  15977. cat confdefs.h >>conftest.$ac_ext
  15978. cat >>conftest.$ac_ext <<_ACEOF
  15979. /* end confdefs.h. */
  15980. int
  15981. main ()
  15982. {
  15983. ;
  15984. return 0;
  15985. }
  15986. _ACEOF
  15987. rm -f conftest.$ac_objext conftest$ac_exeext
  15988. if { (ac_try="$ac_link"
  15989. case "(($ac_try" in
  15990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15991. *) ac_try_echo=$ac_try;;
  15992. esac
  15993. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15994. $as_echo "$ac_try_echo") >&5
  15995. (eval "$ac_link") 2>conftest.er1
  15996. ac_status=$?
  15997. grep -v '^ *+' conftest.er1 >conftest.err
  15998. rm -f conftest.er1
  15999. cat conftest.err >&5
  16000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16001. (exit $ac_status); } && {
  16002. test -z "$ac_c_werror_flag" ||
  16003. test ! -s conftest.err
  16004. } && test -s conftest$ac_exeext && {
  16005. test "$cross_compiling" = yes ||
  16006. $as_test_x conftest$ac_exeext
  16007. }; then
  16008. lt_aix_libpath_sed='
  16009. /Import File Strings/,/^$/ {
  16010. /^0/ {
  16011. s/^0 *\(.*\)$/\1/
  16012. p
  16013. }
  16014. }'
  16015. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16016. # Check for a 64-bit object if we didn't find anything.
  16017. if test -z "$aix_libpath"; then
  16018. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16019. fi
  16020. else
  16021. $as_echo "$as_me: failed program was:" >&5
  16022. sed 's/^/| /' conftest.$ac_ext >&5
  16023. fi
  16024. rm -rf conftest.dSYM
  16025. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16026. conftest$ac_exeext conftest.$ac_ext
  16027. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16028. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16029. 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"
  16030. else
  16031. if test "$host_cpu" = ia64; then
  16032. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  16033. allow_undefined_flag_GCJ="-z nodefs"
  16034. 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"
  16035. else
  16036. # Determine the default libpath from the value encoded in an empty executable.
  16037. cat >conftest.$ac_ext <<_ACEOF
  16038. /* confdefs.h. */
  16039. _ACEOF
  16040. cat confdefs.h >>conftest.$ac_ext
  16041. cat >>conftest.$ac_ext <<_ACEOF
  16042. /* end confdefs.h. */
  16043. int
  16044. main ()
  16045. {
  16046. ;
  16047. return 0;
  16048. }
  16049. _ACEOF
  16050. rm -f conftest.$ac_objext conftest$ac_exeext
  16051. if { (ac_try="$ac_link"
  16052. case "(($ac_try" in
  16053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16054. *) ac_try_echo=$ac_try;;
  16055. esac
  16056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16057. $as_echo "$ac_try_echo") >&5
  16058. (eval "$ac_link") 2>conftest.er1
  16059. ac_status=$?
  16060. grep -v '^ *+' conftest.er1 >conftest.err
  16061. rm -f conftest.er1
  16062. cat conftest.err >&5
  16063. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16064. (exit $ac_status); } && {
  16065. test -z "$ac_c_werror_flag" ||
  16066. test ! -s conftest.err
  16067. } && test -s conftest$ac_exeext && {
  16068. test "$cross_compiling" = yes ||
  16069. $as_test_x conftest$ac_exeext
  16070. }; then
  16071. lt_aix_libpath_sed='
  16072. /Import File Strings/,/^$/ {
  16073. /^0/ {
  16074. s/^0 *\(.*\)$/\1/
  16075. p
  16076. }
  16077. }'
  16078. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16079. # Check for a 64-bit object if we didn't find anything.
  16080. if test -z "$aix_libpath"; then
  16081. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16082. fi
  16083. else
  16084. $as_echo "$as_me: failed program was:" >&5
  16085. sed 's/^/| /' conftest.$ac_ext >&5
  16086. fi
  16087. rm -rf conftest.dSYM
  16088. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16089. conftest$ac_exeext conftest.$ac_ext
  16090. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  16091. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  16092. # Warning - without using the other run time loading flags,
  16093. # -berok will link without error, but may produce a broken library.
  16094. no_undefined_flag_GCJ=' ${wl}-bernotok'
  16095. allow_undefined_flag_GCJ=' ${wl}-berok'
  16096. # Exported symbols can be pulled into shared objects from archives
  16097. whole_archive_flag_spec_GCJ='$convenience'
  16098. archive_cmds_need_lc_GCJ=yes
  16099. # This is similar to how AIX traditionally builds its shared libraries.
  16100. 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'
  16101. fi
  16102. fi
  16103. ;;
  16104. amigaos*)
  16105. 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)'
  16106. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16107. hardcode_minus_L_GCJ=yes
  16108. # see comment about different semantics on the GNU ld section
  16109. ld_shlibs_GCJ=no
  16110. ;;
  16111. bsdi[45]*)
  16112. export_dynamic_flag_spec_GCJ=-rdynamic
  16113. ;;
  16114. cygwin* | mingw* | pw32*)
  16115. # When not using gcc, we currently assume that we are using
  16116. # Microsoft Visual C++.
  16117. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16118. # no search path for DLLs.
  16119. hardcode_libdir_flag_spec_GCJ=' '
  16120. allow_undefined_flag_GCJ=unsupported
  16121. # Tell ltmain to make .lib files, not .a files.
  16122. libext=lib
  16123. # Tell ltmain to make .dll files, not .so files.
  16124. shrext_cmds=".dll"
  16125. # FIXME: Setting linknames here is a bad hack.
  16126. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  16127. # The linker will automatically build a .lib file if we build a DLL.
  16128. old_archive_From_new_cmds_GCJ='true'
  16129. # FIXME: Should let the user specify the lib program.
  16130. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  16131. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  16132. enable_shared_with_static_runtimes_GCJ=yes
  16133. ;;
  16134. darwin* | rhapsody*)
  16135. case $host_os in
  16136. rhapsody* | darwin1.[012])
  16137. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  16138. ;;
  16139. *) # Darwin 1.3 on
  16140. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  16141. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16142. else
  16143. case ${MACOSX_DEPLOYMENT_TARGET} in
  16144. 10.[012])
  16145. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  16146. ;;
  16147. 10.*)
  16148. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  16149. ;;
  16150. esac
  16151. fi
  16152. ;;
  16153. esac
  16154. archive_cmds_need_lc_GCJ=no
  16155. hardcode_direct_GCJ=no
  16156. hardcode_automatic_GCJ=yes
  16157. hardcode_shlibpath_var_GCJ=unsupported
  16158. whole_archive_flag_spec_GCJ=''
  16159. link_all_deplibs_GCJ=yes
  16160. if test "$GCC" = yes ; then
  16161. output_verbose_link_cmd='echo'
  16162. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  16163. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16164. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  16165. 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}'
  16166. 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}'
  16167. else
  16168. case $cc_basename in
  16169. xlc*)
  16170. output_verbose_link_cmd='echo'
  16171. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  16172. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  16173. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  16174. 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  16175. 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}'
  16176. ;;
  16177. *)
  16178. ld_shlibs_GCJ=no
  16179. ;;
  16180. esac
  16181. fi
  16182. ;;
  16183. dgux*)
  16184. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16185. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16186. hardcode_shlibpath_var_GCJ=no
  16187. ;;
  16188. freebsd1*)
  16189. ld_shlibs_GCJ=no
  16190. ;;
  16191. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  16192. # support. Future versions do this automatically, but an explicit c++rt0.o
  16193. # does not break anything, and helps significantly (at the cost of a little
  16194. # extra space).
  16195. freebsd2.2*)
  16196. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  16197. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16198. hardcode_direct_GCJ=yes
  16199. hardcode_shlibpath_var_GCJ=no
  16200. ;;
  16201. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  16202. freebsd2*)
  16203. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16204. hardcode_direct_GCJ=yes
  16205. hardcode_minus_L_GCJ=yes
  16206. hardcode_shlibpath_var_GCJ=no
  16207. ;;
  16208. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  16209. freebsd* | dragonfly*)
  16210. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  16211. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16212. hardcode_direct_GCJ=yes
  16213. hardcode_shlibpath_var_GCJ=no
  16214. ;;
  16215. hpux9*)
  16216. if test "$GCC" = yes; then
  16217. 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'
  16218. else
  16219. 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'
  16220. fi
  16221. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16222. hardcode_libdir_separator_GCJ=:
  16223. hardcode_direct_GCJ=yes
  16224. # hardcode_minus_L: Not really in the search PATH,
  16225. # but as the default location of the library.
  16226. hardcode_minus_L_GCJ=yes
  16227. export_dynamic_flag_spec_GCJ='${wl}-E'
  16228. ;;
  16229. hpux10*)
  16230. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16231. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16232. else
  16233. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  16234. fi
  16235. if test "$with_gnu_ld" = no; then
  16236. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16237. hardcode_libdir_separator_GCJ=:
  16238. hardcode_direct_GCJ=yes
  16239. export_dynamic_flag_spec_GCJ='${wl}-E'
  16240. # hardcode_minus_L: Not really in the search PATH,
  16241. # but as the default location of the library.
  16242. hardcode_minus_L_GCJ=yes
  16243. fi
  16244. ;;
  16245. hpux11*)
  16246. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  16247. case $host_cpu in
  16248. hppa*64*)
  16249. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16250. ;;
  16251. ia64*)
  16252. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16253. ;;
  16254. *)
  16255. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16256. ;;
  16257. esac
  16258. else
  16259. case $host_cpu in
  16260. hppa*64*)
  16261. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16262. ;;
  16263. ia64*)
  16264. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  16265. ;;
  16266. *)
  16267. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  16268. ;;
  16269. esac
  16270. fi
  16271. if test "$with_gnu_ld" = no; then
  16272. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  16273. hardcode_libdir_separator_GCJ=:
  16274. case $host_cpu in
  16275. hppa*64*|ia64*)
  16276. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  16277. hardcode_direct_GCJ=no
  16278. hardcode_shlibpath_var_GCJ=no
  16279. ;;
  16280. *)
  16281. hardcode_direct_GCJ=yes
  16282. export_dynamic_flag_spec_GCJ='${wl}-E'
  16283. # hardcode_minus_L: Not really in the search PATH,
  16284. # but as the default location of the library.
  16285. hardcode_minus_L_GCJ=yes
  16286. ;;
  16287. esac
  16288. fi
  16289. ;;
  16290. irix5* | irix6* | nonstopux*)
  16291. if test "$GCC" = yes; then
  16292. 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'
  16293. else
  16294. 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'
  16295. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  16296. fi
  16297. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16298. hardcode_libdir_separator_GCJ=:
  16299. link_all_deplibs_GCJ=yes
  16300. ;;
  16301. netbsd*)
  16302. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16303. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  16304. else
  16305. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  16306. fi
  16307. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16308. hardcode_direct_GCJ=yes
  16309. hardcode_shlibpath_var_GCJ=no
  16310. ;;
  16311. newsos6)
  16312. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16313. hardcode_direct_GCJ=yes
  16314. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16315. hardcode_libdir_separator_GCJ=:
  16316. hardcode_shlibpath_var_GCJ=no
  16317. ;;
  16318. openbsd*)
  16319. if test -f /usr/libexec/ld.so; then
  16320. hardcode_direct_GCJ=yes
  16321. hardcode_shlibpath_var_GCJ=no
  16322. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16323. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16324. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16325. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16326. export_dynamic_flag_spec_GCJ='${wl}-E'
  16327. else
  16328. case $host_os in
  16329. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16330. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16331. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16332. ;;
  16333. *)
  16334. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16335. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16336. ;;
  16337. esac
  16338. fi
  16339. else
  16340. ld_shlibs_GCJ=no
  16341. fi
  16342. ;;
  16343. os2*)
  16344. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16345. hardcode_minus_L_GCJ=yes
  16346. allow_undefined_flag_GCJ=unsupported
  16347. 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'
  16348. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16349. ;;
  16350. osf3*)
  16351. if test "$GCC" = yes; then
  16352. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16353. 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'
  16354. else
  16355. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16356. 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'
  16357. fi
  16358. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16359. hardcode_libdir_separator_GCJ=:
  16360. ;;
  16361. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16362. if test "$GCC" = yes; then
  16363. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16364. 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'
  16365. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16366. else
  16367. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16368. 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'
  16369. 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~
  16370. $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'
  16371. # Both c and cxx compiler support -rpath directly
  16372. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16373. fi
  16374. hardcode_libdir_separator_GCJ=:
  16375. ;;
  16376. solaris*)
  16377. no_undefined_flag_GCJ=' -z text'
  16378. if test "$GCC" = yes; then
  16379. wlarc='${wl}'
  16380. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16381. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16382. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16383. else
  16384. wlarc=''
  16385. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16386. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16387. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16388. fi
  16389. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16390. hardcode_shlibpath_var_GCJ=no
  16391. case $host_os in
  16392. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16393. *)
  16394. # The compiler driver will combine and reorder linker options,
  16395. # but understands `-z linker_flag'. GCC discards it without `$wl',
  16396. # but is careful enough not to reorder.
  16397. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16398. if test "$GCC" = yes; then
  16399. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16400. else
  16401. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  16402. fi
  16403. ;;
  16404. esac
  16405. link_all_deplibs_GCJ=yes
  16406. ;;
  16407. sunos4*)
  16408. if test "x$host_vendor" = xsequent; then
  16409. # Use $CC to link under sequent, because it throws in some extra .o
  16410. # files that make .init and .fini sections work.
  16411. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16412. else
  16413. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16414. fi
  16415. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16416. hardcode_direct_GCJ=yes
  16417. hardcode_minus_L_GCJ=yes
  16418. hardcode_shlibpath_var_GCJ=no
  16419. ;;
  16420. sysv4)
  16421. case $host_vendor in
  16422. sni)
  16423. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16424. hardcode_direct_GCJ=yes # is this really true???
  16425. ;;
  16426. siemens)
  16427. ## LD is ld it makes a PLAMLIB
  16428. ## CC just makes a GrossModule.
  16429. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16430. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16431. hardcode_direct_GCJ=no
  16432. ;;
  16433. motorola)
  16434. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16435. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16436. ;;
  16437. esac
  16438. runpath_var='LD_RUN_PATH'
  16439. hardcode_shlibpath_var_GCJ=no
  16440. ;;
  16441. sysv4.3*)
  16442. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16443. hardcode_shlibpath_var_GCJ=no
  16444. export_dynamic_flag_spec_GCJ='-Bexport'
  16445. ;;
  16446. sysv4*MP*)
  16447. if test -d /usr/nec; then
  16448. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16449. hardcode_shlibpath_var_GCJ=no
  16450. runpath_var=LD_RUN_PATH
  16451. hardcode_runpath_var=yes
  16452. ld_shlibs_GCJ=yes
  16453. fi
  16454. ;;
  16455. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16456. no_undefined_flag_GCJ='${wl}-z,text'
  16457. archive_cmds_need_lc_GCJ=no
  16458. hardcode_shlibpath_var_GCJ=no
  16459. runpath_var='LD_RUN_PATH'
  16460. if test "$GCC" = yes; then
  16461. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16462. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16463. else
  16464. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16465. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16466. fi
  16467. ;;
  16468. sysv5* | sco3.2v5* | sco5v6*)
  16469. # Note: We can NOT use -z defs as we might desire, because we do not
  16470. # link with -lc, and that would cause any symbols used from libc to
  16471. # always be unresolved, which means just about no library would
  16472. # ever link correctly. If we're not using GNU ld we use -z text
  16473. # though, which does catch some bad symbols but isn't as heavy-handed
  16474. # as -z defs.
  16475. no_undefined_flag_GCJ='${wl}-z,text'
  16476. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16477. archive_cmds_need_lc_GCJ=no
  16478. hardcode_shlibpath_var_GCJ=no
  16479. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16480. hardcode_libdir_separator_GCJ=':'
  16481. link_all_deplibs_GCJ=yes
  16482. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16483. runpath_var='LD_RUN_PATH'
  16484. if test "$GCC" = yes; then
  16485. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16486. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16487. else
  16488. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16489. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16490. fi
  16491. ;;
  16492. uts4*)
  16493. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16494. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16495. hardcode_shlibpath_var_GCJ=no
  16496. ;;
  16497. *)
  16498. ld_shlibs_GCJ=no
  16499. ;;
  16500. esac
  16501. fi
  16502. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16503. $as_echo "$ld_shlibs_GCJ" >&6; }
  16504. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16505. #
  16506. # Do we need to explicitly link libc?
  16507. #
  16508. case "x$archive_cmds_need_lc_GCJ" in
  16509. x|xyes)
  16510. # Assume -lc should be added
  16511. archive_cmds_need_lc_GCJ=yes
  16512. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16513. case $archive_cmds_GCJ in
  16514. *'~'*)
  16515. # FIXME: we may have to deal with multi-command sequences.
  16516. ;;
  16517. '$CC '*)
  16518. # Test whether the compiler implicitly links with -lc since on some
  16519. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16520. # to ld, don't add -lc before -lgcc.
  16521. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16522. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  16523. $rm conftest*
  16524. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16526. (eval $ac_compile) 2>&5
  16527. ac_status=$?
  16528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16529. (exit $ac_status); } 2>conftest.err; then
  16530. soname=conftest
  16531. lib=conftest
  16532. libobjs=conftest.$ac_objext
  16533. deplibs=
  16534. wl=$lt_prog_compiler_wl_GCJ
  16535. pic_flag=$lt_prog_compiler_pic_GCJ
  16536. compiler_flags=-v
  16537. linker_flags=-v
  16538. verstring=
  16539. output_objdir=.
  16540. libname=conftest
  16541. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16542. allow_undefined_flag_GCJ=
  16543. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16544. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16545. ac_status=$?
  16546. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16547. (exit $ac_status); }
  16548. then
  16549. archive_cmds_need_lc_GCJ=no
  16550. else
  16551. archive_cmds_need_lc_GCJ=yes
  16552. fi
  16553. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16554. else
  16555. cat conftest.err 1>&5
  16556. fi
  16557. $rm conftest*
  16558. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16559. $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  16560. ;;
  16561. esac
  16562. fi
  16563. ;;
  16564. esac
  16565. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16566. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  16567. library_names_spec=
  16568. libname_spec='lib$name'
  16569. soname_spec=
  16570. shrext_cmds=".so"
  16571. postinstall_cmds=
  16572. postuninstall_cmds=
  16573. finish_cmds=
  16574. finish_eval=
  16575. shlibpath_var=
  16576. shlibpath_overrides_runpath=unknown
  16577. version_type=none
  16578. dynamic_linker="$host_os ld.so"
  16579. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16580. need_lib_prefix=unknown
  16581. hardcode_into_libs=no
  16582. # when you set need_version to no, make sure it does not cause -set_version
  16583. # flags to be left without arguments
  16584. need_version=unknown
  16585. case $host_os in
  16586. aix3*)
  16587. version_type=linux
  16588. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16589. shlibpath_var=LIBPATH
  16590. # AIX 3 has no versioning support, so we append a major version to the name.
  16591. soname_spec='${libname}${release}${shared_ext}$major'
  16592. ;;
  16593. aix4* | aix5*)
  16594. version_type=linux
  16595. need_lib_prefix=no
  16596. need_version=no
  16597. hardcode_into_libs=yes
  16598. if test "$host_cpu" = ia64; then
  16599. # AIX 5 supports IA64
  16600. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16601. shlibpath_var=LD_LIBRARY_PATH
  16602. else
  16603. # With GCC up to 2.95.x, collect2 would create an import file
  16604. # for dependence libraries. The import file would start with
  16605. # the line `#! .'. This would cause the generated library to
  16606. # depend on `.', always an invalid library. This was fixed in
  16607. # development snapshots of GCC prior to 3.0.
  16608. case $host_os in
  16609. aix4 | aix4.[01] | aix4.[01].*)
  16610. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16611. echo ' yes '
  16612. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16613. :
  16614. else
  16615. can_build_shared=no
  16616. fi
  16617. ;;
  16618. esac
  16619. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16620. # soname into executable. Probably we can add versioning support to
  16621. # collect2, so additional links can be useful in future.
  16622. if test "$aix_use_runtimelinking" = yes; then
  16623. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16624. # instead of lib<name>.a to let people know that these are not
  16625. # typical AIX shared libraries.
  16626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16627. else
  16628. # We preserve .a as extension for shared libraries through AIX4.2
  16629. # and later when we are not doing run time linking.
  16630. library_names_spec='${libname}${release}.a $libname.a'
  16631. soname_spec='${libname}${release}${shared_ext}$major'
  16632. fi
  16633. shlibpath_var=LIBPATH
  16634. fi
  16635. ;;
  16636. amigaos*)
  16637. library_names_spec='$libname.ixlibrary $libname.a'
  16638. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16639. 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'
  16640. ;;
  16641. beos*)
  16642. library_names_spec='${libname}${shared_ext}'
  16643. dynamic_linker="$host_os ld.so"
  16644. shlibpath_var=LIBRARY_PATH
  16645. ;;
  16646. bsdi[45]*)
  16647. version_type=linux
  16648. need_version=no
  16649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16650. soname_spec='${libname}${release}${shared_ext}$major'
  16651. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16652. shlibpath_var=LD_LIBRARY_PATH
  16653. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16654. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16655. # the default ld.so.conf also contains /usr/contrib/lib and
  16656. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16657. # libtool to hard-code these into programs
  16658. ;;
  16659. cygwin* | mingw* | pw32*)
  16660. version_type=windows
  16661. shrext_cmds=".dll"
  16662. need_version=no
  16663. need_lib_prefix=no
  16664. case $GCC,$host_os in
  16665. yes,cygwin* | yes,mingw* | yes,pw32*)
  16666. library_names_spec='$libname.dll.a'
  16667. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16668. postinstall_cmds='base_file=`basename \${file}`~
  16669. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16670. dldir=$destdir/`dirname \$dlpath`~
  16671. test -d \$dldir || mkdir -p \$dldir~
  16672. $install_prog $dir/$dlname \$dldir/$dlname~
  16673. chmod a+x \$dldir/$dlname'
  16674. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16675. dlpath=$dir/\$dldll~
  16676. $rm \$dlpath'
  16677. shlibpath_overrides_runpath=yes
  16678. case $host_os in
  16679. cygwin*)
  16680. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16681. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16682. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16683. ;;
  16684. mingw*)
  16685. # MinGW DLLs use traditional 'lib' prefix
  16686. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16687. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16688. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16689. # It is most probably a Windows format PATH printed by
  16690. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16691. # path with ; separators, and with drive letters. We can handle the
  16692. # drive letters (cygwin fileutils understands them), so leave them,
  16693. # especially as we might pass files found there to a mingw objdump,
  16694. # which wouldn't understand a cygwinified path. Ahh.
  16695. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16696. else
  16697. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16698. fi
  16699. ;;
  16700. pw32*)
  16701. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16702. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16703. ;;
  16704. esac
  16705. ;;
  16706. *)
  16707. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16708. ;;
  16709. esac
  16710. dynamic_linker='Win32 ld.exe'
  16711. # FIXME: first we should search . and the directory the executable is in
  16712. shlibpath_var=PATH
  16713. ;;
  16714. darwin* | rhapsody*)
  16715. dynamic_linker="$host_os dyld"
  16716. version_type=darwin
  16717. need_lib_prefix=no
  16718. need_version=no
  16719. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16720. soname_spec='${libname}${release}${major}$shared_ext'
  16721. shlibpath_overrides_runpath=yes
  16722. shlibpath_var=DYLD_LIBRARY_PATH
  16723. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16724. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16725. ;;
  16726. dgux*)
  16727. version_type=linux
  16728. need_lib_prefix=no
  16729. need_version=no
  16730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16731. soname_spec='${libname}${release}${shared_ext}$major'
  16732. shlibpath_var=LD_LIBRARY_PATH
  16733. ;;
  16734. freebsd1*)
  16735. dynamic_linker=no
  16736. ;;
  16737. freebsd* | dragonfly*)
  16738. # DragonFly does not have aout. When/if they implement a new
  16739. # versioning mechanism, adjust this.
  16740. if test -x /usr/bin/objformat; then
  16741. objformat=`/usr/bin/objformat`
  16742. else
  16743. case $host_os in
  16744. freebsd[123]*) objformat=aout ;;
  16745. *) objformat=elf ;;
  16746. esac
  16747. fi
  16748. version_type=freebsd-$objformat
  16749. case $version_type in
  16750. freebsd-elf*)
  16751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16752. need_version=no
  16753. need_lib_prefix=no
  16754. ;;
  16755. freebsd-*)
  16756. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16757. need_version=yes
  16758. ;;
  16759. esac
  16760. shlibpath_var=LD_LIBRARY_PATH
  16761. case $host_os in
  16762. freebsd2*)
  16763. shlibpath_overrides_runpath=yes
  16764. ;;
  16765. freebsd3.[01]* | freebsdelf3.[01]*)
  16766. shlibpath_overrides_runpath=yes
  16767. hardcode_into_libs=yes
  16768. ;;
  16769. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16770. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16771. shlibpath_overrides_runpath=no
  16772. hardcode_into_libs=yes
  16773. ;;
  16774. *) # from 4.6 on, and DragonFly
  16775. shlibpath_overrides_runpath=yes
  16776. hardcode_into_libs=yes
  16777. ;;
  16778. esac
  16779. ;;
  16780. gnu*)
  16781. version_type=linux
  16782. need_lib_prefix=no
  16783. need_version=no
  16784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16785. soname_spec='${libname}${release}${shared_ext}$major'
  16786. shlibpath_var=LD_LIBRARY_PATH
  16787. hardcode_into_libs=yes
  16788. ;;
  16789. hpux9* | hpux10* | hpux11*)
  16790. # Give a soname corresponding to the major version so that dld.sl refuses to
  16791. # link against other versions.
  16792. version_type=sunos
  16793. need_lib_prefix=no
  16794. need_version=no
  16795. case $host_cpu in
  16796. ia64*)
  16797. shrext_cmds='.so'
  16798. hardcode_into_libs=yes
  16799. dynamic_linker="$host_os dld.so"
  16800. shlibpath_var=LD_LIBRARY_PATH
  16801. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16802. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16803. soname_spec='${libname}${release}${shared_ext}$major'
  16804. if test "X$HPUX_IA64_MODE" = X32; then
  16805. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16806. else
  16807. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16808. fi
  16809. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16810. ;;
  16811. hppa*64*)
  16812. shrext_cmds='.sl'
  16813. hardcode_into_libs=yes
  16814. dynamic_linker="$host_os dld.sl"
  16815. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16816. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16818. soname_spec='${libname}${release}${shared_ext}$major'
  16819. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16820. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16821. ;;
  16822. *)
  16823. shrext_cmds='.sl'
  16824. dynamic_linker="$host_os dld.sl"
  16825. shlibpath_var=SHLIB_PATH
  16826. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16828. soname_spec='${libname}${release}${shared_ext}$major'
  16829. ;;
  16830. esac
  16831. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16832. postinstall_cmds='chmod 555 $lib'
  16833. ;;
  16834. interix[3-9]*)
  16835. version_type=linux
  16836. need_lib_prefix=no
  16837. need_version=no
  16838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16839. soname_spec='${libname}${release}${shared_ext}$major'
  16840. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16841. shlibpath_var=LD_LIBRARY_PATH
  16842. shlibpath_overrides_runpath=no
  16843. hardcode_into_libs=yes
  16844. ;;
  16845. irix5* | irix6* | nonstopux*)
  16846. case $host_os in
  16847. nonstopux*) version_type=nonstopux ;;
  16848. *)
  16849. if test "$lt_cv_prog_gnu_ld" = yes; then
  16850. version_type=linux
  16851. else
  16852. version_type=irix
  16853. fi ;;
  16854. esac
  16855. need_lib_prefix=no
  16856. need_version=no
  16857. soname_spec='${libname}${release}${shared_ext}$major'
  16858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16859. case $host_os in
  16860. irix5* | nonstopux*)
  16861. libsuff= shlibsuff=
  16862. ;;
  16863. *)
  16864. case $LD in # libtool.m4 will add one of these switches to LD
  16865. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16866. libsuff= shlibsuff= libmagic=32-bit;;
  16867. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16868. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16869. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16870. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16871. *) libsuff= shlibsuff= libmagic=never-match;;
  16872. esac
  16873. ;;
  16874. esac
  16875. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16876. shlibpath_overrides_runpath=no
  16877. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16878. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16879. hardcode_into_libs=yes
  16880. ;;
  16881. # No shared lib support for Linux oldld, aout, or coff.
  16882. linux*oldld* | linux*aout* | linux*coff*)
  16883. dynamic_linker=no
  16884. ;;
  16885. # This must be Linux ELF.
  16886. linux* | k*bsd*-gnu)
  16887. version_type=linux
  16888. need_lib_prefix=no
  16889. need_version=no
  16890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16891. soname_spec='${libname}${release}${shared_ext}$major'
  16892. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16893. shlibpath_var=LD_LIBRARY_PATH
  16894. shlibpath_overrides_runpath=no
  16895. # This implies no fast_install, which is unacceptable.
  16896. # Some rework will be needed to allow for fast_install
  16897. # before this can be enabled.
  16898. hardcode_into_libs=yes
  16899. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16900. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16901. # Append ld.so.conf contents to the search path
  16902. if test -f /etc/ld.so.conf; then
  16903. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  16904. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  16905. fi
  16906. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16907. # powerpc, because MkLinux only supported shared libraries with the
  16908. # GNU dynamic linker. Since this was broken with cross compilers,
  16909. # most powerpc-linux boxes support dynamic linking these days and
  16910. # people can always --disable-shared, the test was removed, and we
  16911. # assume the GNU/Linux dynamic linker is in use.
  16912. dynamic_linker='GNU/Linux ld.so'
  16913. ;;
  16914. netbsd*)
  16915. version_type=sunos
  16916. need_lib_prefix=no
  16917. need_version=no
  16918. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16920. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16921. dynamic_linker='NetBSD (a.out) ld.so'
  16922. else
  16923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16924. soname_spec='${libname}${release}${shared_ext}$major'
  16925. dynamic_linker='NetBSD ld.elf_so'
  16926. fi
  16927. shlibpath_var=LD_LIBRARY_PATH
  16928. shlibpath_overrides_runpath=yes
  16929. hardcode_into_libs=yes
  16930. ;;
  16931. newsos6)
  16932. version_type=linux
  16933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16934. shlibpath_var=LD_LIBRARY_PATH
  16935. shlibpath_overrides_runpath=yes
  16936. ;;
  16937. nto-qnx*)
  16938. version_type=linux
  16939. need_lib_prefix=no
  16940. need_version=no
  16941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16942. soname_spec='${libname}${release}${shared_ext}$major'
  16943. shlibpath_var=LD_LIBRARY_PATH
  16944. shlibpath_overrides_runpath=yes
  16945. ;;
  16946. openbsd*)
  16947. version_type=sunos
  16948. sys_lib_dlsearch_path_spec="/usr/lib"
  16949. need_lib_prefix=no
  16950. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16951. case $host_os in
  16952. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16953. *) need_version=no ;;
  16954. esac
  16955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16956. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16957. shlibpath_var=LD_LIBRARY_PATH
  16958. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16959. case $host_os in
  16960. openbsd2.[89] | openbsd2.[89].*)
  16961. shlibpath_overrides_runpath=no
  16962. ;;
  16963. *)
  16964. shlibpath_overrides_runpath=yes
  16965. ;;
  16966. esac
  16967. else
  16968. shlibpath_overrides_runpath=yes
  16969. fi
  16970. ;;
  16971. os2*)
  16972. libname_spec='$name'
  16973. shrext_cmds=".dll"
  16974. need_lib_prefix=no
  16975. library_names_spec='$libname${shared_ext} $libname.a'
  16976. dynamic_linker='OS/2 ld.exe'
  16977. shlibpath_var=LIBPATH
  16978. ;;
  16979. osf3* | osf4* | osf5*)
  16980. version_type=osf
  16981. need_lib_prefix=no
  16982. need_version=no
  16983. soname_spec='${libname}${release}${shared_ext}$major'
  16984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16985. shlibpath_var=LD_LIBRARY_PATH
  16986. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16987. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16988. ;;
  16989. rdos*)
  16990. dynamic_linker=no
  16991. ;;
  16992. solaris*)
  16993. version_type=linux
  16994. need_lib_prefix=no
  16995. need_version=no
  16996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16997. soname_spec='${libname}${release}${shared_ext}$major'
  16998. shlibpath_var=LD_LIBRARY_PATH
  16999. shlibpath_overrides_runpath=yes
  17000. hardcode_into_libs=yes
  17001. # ldd complains unless libraries are executable
  17002. postinstall_cmds='chmod +x $lib'
  17003. ;;
  17004. sunos4*)
  17005. version_type=sunos
  17006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17007. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17008. shlibpath_var=LD_LIBRARY_PATH
  17009. shlibpath_overrides_runpath=yes
  17010. if test "$with_gnu_ld" = yes; then
  17011. need_lib_prefix=no
  17012. fi
  17013. need_version=yes
  17014. ;;
  17015. sysv4 | sysv4.3*)
  17016. version_type=linux
  17017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17018. soname_spec='${libname}${release}${shared_ext}$major'
  17019. shlibpath_var=LD_LIBRARY_PATH
  17020. case $host_vendor in
  17021. sni)
  17022. shlibpath_overrides_runpath=no
  17023. need_lib_prefix=no
  17024. export_dynamic_flag_spec='${wl}-Blargedynsym'
  17025. runpath_var=LD_RUN_PATH
  17026. ;;
  17027. siemens)
  17028. need_lib_prefix=no
  17029. ;;
  17030. motorola)
  17031. need_lib_prefix=no
  17032. need_version=no
  17033. shlibpath_overrides_runpath=no
  17034. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17035. ;;
  17036. esac
  17037. ;;
  17038. sysv4*MP*)
  17039. if test -d /usr/nec ;then
  17040. version_type=linux
  17041. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17042. soname_spec='$libname${shared_ext}.$major'
  17043. shlibpath_var=LD_LIBRARY_PATH
  17044. fi
  17045. ;;
  17046. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17047. version_type=freebsd-elf
  17048. need_lib_prefix=no
  17049. need_version=no
  17050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17051. soname_spec='${libname}${release}${shared_ext}$major'
  17052. shlibpath_var=LD_LIBRARY_PATH
  17053. hardcode_into_libs=yes
  17054. if test "$with_gnu_ld" = yes; then
  17055. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17056. shlibpath_overrides_runpath=no
  17057. else
  17058. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17059. shlibpath_overrides_runpath=yes
  17060. case $host_os in
  17061. sco3.2v5*)
  17062. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17063. ;;
  17064. esac
  17065. fi
  17066. sys_lib_dlsearch_path_spec='/usr/lib'
  17067. ;;
  17068. uts4*)
  17069. version_type=linux
  17070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17071. soname_spec='${libname}${release}${shared_ext}$major'
  17072. shlibpath_var=LD_LIBRARY_PATH
  17073. ;;
  17074. *)
  17075. dynamic_linker=no
  17076. ;;
  17077. esac
  17078. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  17079. $as_echo "$dynamic_linker" >&6; }
  17080. test "$dynamic_linker" = no && can_build_shared=no
  17081. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17082. if test "$GCC" = yes; then
  17083. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17084. fi
  17085. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  17086. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  17087. hardcode_action_GCJ=
  17088. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  17089. test -n "$runpath_var_GCJ" || \
  17090. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  17091. # We can hardcode non-existant directories.
  17092. if test "$hardcode_direct_GCJ" != no &&
  17093. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  17094. # have to relink, otherwise we might link with an installed library
  17095. # when we should be linking with a yet-to-be-installed one
  17096. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  17097. test "$hardcode_minus_L_GCJ" != no; then
  17098. # Linking always hardcodes the temporary library directory.
  17099. hardcode_action_GCJ=relink
  17100. else
  17101. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  17102. hardcode_action_GCJ=immediate
  17103. fi
  17104. else
  17105. # We cannot hardcode anything, or else we can only hardcode existing
  17106. # directories.
  17107. hardcode_action_GCJ=unsupported
  17108. fi
  17109. { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  17110. $as_echo "$hardcode_action_GCJ" >&6; }
  17111. if test "$hardcode_action_GCJ" = relink; then
  17112. # Fast installation is not supported
  17113. enable_fast_install=no
  17114. elif test "$shlibpath_overrides_runpath" = yes ||
  17115. test "$enable_shared" = no; then
  17116. # Fast installation is not necessary
  17117. enable_fast_install=needless
  17118. fi
  17119. # The else clause should only fire when bootstrapping the
  17120. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17121. # with your package, and you will get complaints that there are
  17122. # no rules to generate ltmain.sh.
  17123. if test -f "$ltmain"; then
  17124. # See if we are running on zsh, and set the options which allow our commands through
  17125. # without removal of \ escapes.
  17126. if test -n "${ZSH_VERSION+set}" ; then
  17127. setopt NO_GLOB_SUBST
  17128. fi
  17129. # Now quote all the things that may contain metacharacters while being
  17130. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17131. # variables and quote the copies for generation of the libtool script.
  17132. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17133. SED SHELL STRIP \
  17134. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17135. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17136. deplibs_check_method reload_flag reload_cmds need_locks \
  17137. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17138. lt_cv_sys_global_symbol_to_c_name_address \
  17139. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17140. old_postinstall_cmds old_postuninstall_cmds \
  17141. compiler_GCJ \
  17142. CC_GCJ \
  17143. LD_GCJ \
  17144. lt_prog_compiler_wl_GCJ \
  17145. lt_prog_compiler_pic_GCJ \
  17146. lt_prog_compiler_static_GCJ \
  17147. lt_prog_compiler_no_builtin_flag_GCJ \
  17148. export_dynamic_flag_spec_GCJ \
  17149. thread_safe_flag_spec_GCJ \
  17150. whole_archive_flag_spec_GCJ \
  17151. enable_shared_with_static_runtimes_GCJ \
  17152. old_archive_cmds_GCJ \
  17153. old_archive_from_new_cmds_GCJ \
  17154. predep_objects_GCJ \
  17155. postdep_objects_GCJ \
  17156. predeps_GCJ \
  17157. postdeps_GCJ \
  17158. compiler_lib_search_path_GCJ \
  17159. archive_cmds_GCJ \
  17160. archive_expsym_cmds_GCJ \
  17161. postinstall_cmds_GCJ \
  17162. postuninstall_cmds_GCJ \
  17163. old_archive_from_expsyms_cmds_GCJ \
  17164. allow_undefined_flag_GCJ \
  17165. no_undefined_flag_GCJ \
  17166. export_symbols_cmds_GCJ \
  17167. hardcode_libdir_flag_spec_GCJ \
  17168. hardcode_libdir_flag_spec_ld_GCJ \
  17169. hardcode_libdir_separator_GCJ \
  17170. hardcode_automatic_GCJ \
  17171. module_cmds_GCJ \
  17172. module_expsym_cmds_GCJ \
  17173. lt_cv_prog_compiler_c_o_GCJ \
  17174. fix_srcfile_path_GCJ \
  17175. exclude_expsyms_GCJ \
  17176. include_expsyms_GCJ; do
  17177. case $var in
  17178. old_archive_cmds_GCJ | \
  17179. old_archive_from_new_cmds_GCJ | \
  17180. archive_cmds_GCJ | \
  17181. archive_expsym_cmds_GCJ | \
  17182. module_cmds_GCJ | \
  17183. module_expsym_cmds_GCJ | \
  17184. old_archive_from_expsyms_cmds_GCJ | \
  17185. export_symbols_cmds_GCJ | \
  17186. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17187. postinstall_cmds | postuninstall_cmds | \
  17188. old_postinstall_cmds | old_postuninstall_cmds | \
  17189. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17190. # Double-quote double-evaled strings.
  17191. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17192. ;;
  17193. *)
  17194. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17195. ;;
  17196. esac
  17197. done
  17198. case $lt_echo in
  17199. *'\$0 --fallback-echo"')
  17200. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17201. ;;
  17202. esac
  17203. cfgfile="$ofile"
  17204. cat <<__EOF__ >> "$cfgfile"
  17205. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17206. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17207. # Shell to use when invoking shell scripts.
  17208. SHELL=$lt_SHELL
  17209. # Whether or not to build shared libraries.
  17210. build_libtool_libs=$enable_shared
  17211. # Whether or not to build static libraries.
  17212. build_old_libs=$enable_static
  17213. # Whether or not to add -lc for building shared libraries.
  17214. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  17215. # Whether or not to disallow shared libs when runtime libs are static
  17216. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  17217. # Whether or not to optimize for fast installation.
  17218. fast_install=$enable_fast_install
  17219. # The host system.
  17220. host_alias=$host_alias
  17221. host=$host
  17222. host_os=$host_os
  17223. # The build system.
  17224. build_alias=$build_alias
  17225. build=$build
  17226. build_os=$build_os
  17227. # An echo program that does not interpret backslashes.
  17228. echo=$lt_echo
  17229. # The archiver.
  17230. AR=$lt_AR
  17231. AR_FLAGS=$lt_AR_FLAGS
  17232. # A C compiler.
  17233. LTCC=$lt_LTCC
  17234. # LTCC compiler flags.
  17235. LTCFLAGS=$lt_LTCFLAGS
  17236. # A language-specific compiler.
  17237. CC=$lt_compiler_GCJ
  17238. # Is the compiler the GNU C compiler?
  17239. with_gcc=$GCC_GCJ
  17240. # An ERE matcher.
  17241. EGREP=$lt_EGREP
  17242. # The linker used to build libraries.
  17243. LD=$lt_LD_GCJ
  17244. # Whether we need hard or soft links.
  17245. LN_S=$lt_LN_S
  17246. # A BSD-compatible nm program.
  17247. NM=$lt_NM
  17248. # A symbol stripping program
  17249. STRIP=$lt_STRIP
  17250. # Used to examine libraries when file_magic_cmd begins "file"
  17251. MAGIC_CMD=$MAGIC_CMD
  17252. # Used on cygwin: DLL creation program.
  17253. DLLTOOL="$DLLTOOL"
  17254. # Used on cygwin: object dumper.
  17255. OBJDUMP="$OBJDUMP"
  17256. # Used on cygwin: assembler.
  17257. AS="$AS"
  17258. # The name of the directory that contains temporary libtool files.
  17259. objdir=$objdir
  17260. # How to create reloadable object files.
  17261. reload_flag=$lt_reload_flag
  17262. reload_cmds=$lt_reload_cmds
  17263. # How to pass a linker flag through the compiler.
  17264. wl=$lt_lt_prog_compiler_wl_GCJ
  17265. # Object file suffix (normally "o").
  17266. objext="$ac_objext"
  17267. # Old archive suffix (normally "a").
  17268. libext="$libext"
  17269. # Shared library suffix (normally ".so").
  17270. shrext_cmds='$shrext_cmds'
  17271. # Executable file suffix (normally "").
  17272. exeext="$exeext"
  17273. # Additional compiler flags for building library objects.
  17274. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  17275. pic_mode=$pic_mode
  17276. # What is the maximum length of a command?
  17277. max_cmd_len=$lt_cv_sys_max_cmd_len
  17278. # Does compiler simultaneously support -c and -o options?
  17279. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  17280. # Must we lock files when doing compilation?
  17281. need_locks=$lt_need_locks
  17282. # Do we need the lib prefix for modules?
  17283. need_lib_prefix=$need_lib_prefix
  17284. # Do we need a version for libraries?
  17285. need_version=$need_version
  17286. # Whether dlopen is supported.
  17287. dlopen_support=$enable_dlopen
  17288. # Whether dlopen of programs is supported.
  17289. dlopen_self=$enable_dlopen_self
  17290. # Whether dlopen of statically linked programs is supported.
  17291. dlopen_self_static=$enable_dlopen_self_static
  17292. # Compiler flag to prevent dynamic linking.
  17293. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  17294. # Compiler flag to turn off builtin functions.
  17295. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  17296. # Compiler flag to allow reflexive dlopens.
  17297. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  17298. # Compiler flag to generate shared objects directly from archives.
  17299. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  17300. # Compiler flag to generate thread-safe objects.
  17301. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  17302. # Library versioning type.
  17303. version_type=$version_type
  17304. # Format of library name prefix.
  17305. libname_spec=$lt_libname_spec
  17306. # List of archive names. First name is the real one, the rest are links.
  17307. # The last name is the one that the linker finds with -lNAME.
  17308. library_names_spec=$lt_library_names_spec
  17309. # The coded name of the library, if different from the real name.
  17310. soname_spec=$lt_soname_spec
  17311. # Commands used to build and install an old-style archive.
  17312. RANLIB=$lt_RANLIB
  17313. old_archive_cmds=$lt_old_archive_cmds_GCJ
  17314. old_postinstall_cmds=$lt_old_postinstall_cmds
  17315. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17316. # Create an old-style archive from a shared archive.
  17317. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  17318. # Create a temporary old-style archive to link instead of a shared archive.
  17319. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  17320. # Commands used to build and install a shared archive.
  17321. archive_cmds=$lt_archive_cmds_GCJ
  17322. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17323. postinstall_cmds=$lt_postinstall_cmds
  17324. postuninstall_cmds=$lt_postuninstall_cmds
  17325. # Commands used to build a loadable module (assumed same as above if empty)
  17326. module_cmds=$lt_module_cmds_GCJ
  17327. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17328. # Commands to strip libraries.
  17329. old_striplib=$lt_old_striplib
  17330. striplib=$lt_striplib
  17331. # Dependencies to place before the objects being linked to create a
  17332. # shared library.
  17333. predep_objects=$lt_predep_objects_GCJ
  17334. # Dependencies to place after the objects being linked to create a
  17335. # shared library.
  17336. postdep_objects=$lt_postdep_objects_GCJ
  17337. # Dependencies to place before the objects being linked to create a
  17338. # shared library.
  17339. predeps=$lt_predeps_GCJ
  17340. # Dependencies to place after the objects being linked to create a
  17341. # shared library.
  17342. postdeps=$lt_postdeps_GCJ
  17343. # The library search path used internally by the compiler when linking
  17344. # a shared library.
  17345. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17346. # Method to check whether dependent libraries are shared objects.
  17347. deplibs_check_method=$lt_deplibs_check_method
  17348. # Command to use when deplibs_check_method == file_magic.
  17349. file_magic_cmd=$lt_file_magic_cmd
  17350. # Flag that allows shared libraries with undefined symbols to be built.
  17351. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17352. # Flag that forces no undefined symbols.
  17353. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17354. # Commands used to finish a libtool library installation in a directory.
  17355. finish_cmds=$lt_finish_cmds
  17356. # Same as above, but a single script fragment to be evaled but not shown.
  17357. finish_eval=$lt_finish_eval
  17358. # Take the output of nm and produce a listing of raw symbols and C names.
  17359. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17360. # Transform the output of nm in a proper C declaration
  17361. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17362. # Transform the output of nm in a C name address pair
  17363. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17364. # This is the shared library runtime path variable.
  17365. runpath_var=$runpath_var
  17366. # This is the shared library path variable.
  17367. shlibpath_var=$shlibpath_var
  17368. # Is shlibpath searched before the hard-coded library search path?
  17369. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17370. # How to hardcode a shared library path into an executable.
  17371. hardcode_action=$hardcode_action_GCJ
  17372. # Whether we should hardcode library paths into libraries.
  17373. hardcode_into_libs=$hardcode_into_libs
  17374. # Flag to hardcode \$libdir into a binary during linking.
  17375. # This must work even if \$libdir does not exist.
  17376. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17377. # If ld is used when linking, flag to hardcode \$libdir into
  17378. # a binary during linking. This must work even if \$libdir does
  17379. # not exist.
  17380. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17381. # Whether we need a single -rpath flag with a separated argument.
  17382. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17383. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17384. # resulting binary.
  17385. hardcode_direct=$hardcode_direct_GCJ
  17386. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17387. # resulting binary.
  17388. hardcode_minus_L=$hardcode_minus_L_GCJ
  17389. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17390. # the resulting binary.
  17391. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17392. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17393. # and all subsequent libraries and executables linked against it.
  17394. hardcode_automatic=$hardcode_automatic_GCJ
  17395. # Variables whose values should be saved in libtool wrapper scripts and
  17396. # restored at relink time.
  17397. variables_saved_for_relink="$variables_saved_for_relink"
  17398. # Whether libtool must link a program against all its dependency libraries.
  17399. link_all_deplibs=$link_all_deplibs_GCJ
  17400. # Compile-time system search path for libraries
  17401. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17402. # Run-time system search path for libraries
  17403. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17404. # Fix the shell variable \$srcfile for the compiler.
  17405. fix_srcfile_path=$lt_fix_srcfile_path
  17406. # Set to yes if exported symbols are required.
  17407. always_export_symbols=$always_export_symbols_GCJ
  17408. # The commands to list exported symbols.
  17409. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17410. # The commands to extract the exported symbol list from a shared archive.
  17411. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17412. # Symbols that should not be listed in the preloaded symbols.
  17413. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17414. # Symbols that must always be exported.
  17415. include_expsyms=$lt_include_expsyms_GCJ
  17416. # ### END LIBTOOL TAG CONFIG: $tagname
  17417. __EOF__
  17418. else
  17419. # If there is no Makefile yet, we rely on a make rule to execute
  17420. # `config.status --recheck' to rerun these tests and create the
  17421. # libtool script then.
  17422. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17423. if test -f "$ltmain_in"; then
  17424. test -f Makefile && make "$ltmain"
  17425. fi
  17426. fi
  17427. ac_ext=c
  17428. ac_cpp='$CPP $CPPFLAGS'
  17429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17432. CC="$lt_save_CC"
  17433. else
  17434. tagname=""
  17435. fi
  17436. ;;
  17437. RC)
  17438. # Source file extension for RC test sources.
  17439. ac_ext=rc
  17440. # Object file extension for compiled RC test sources.
  17441. objext=o
  17442. objext_RC=$objext
  17443. # Code to be used in simple compile tests
  17444. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17445. # Code to be used in simple link tests
  17446. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17447. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17448. # If no C compiler was specified, use CC.
  17449. LTCC=${LTCC-"$CC"}
  17450. # If no C compiler flags were specified, use CFLAGS.
  17451. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17452. # Allow CC to be a program name with arguments.
  17453. compiler=$CC
  17454. # save warnings/boilerplate of simple test code
  17455. ac_outfile=conftest.$ac_objext
  17456. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17457. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17458. _lt_compiler_boilerplate=`cat conftest.err`
  17459. $rm conftest*
  17460. ac_outfile=conftest.$ac_objext
  17461. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17462. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17463. _lt_linker_boilerplate=`cat conftest.err`
  17464. $rm conftest*
  17465. # Allow CC to be a program name with arguments.
  17466. lt_save_CC="$CC"
  17467. CC=${RC-"windres"}
  17468. compiler=$CC
  17469. compiler_RC=$CC
  17470. for cc_temp in $compiler""; do
  17471. case $cc_temp in
  17472. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17473. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17474. \-*) ;;
  17475. *) break;;
  17476. esac
  17477. done
  17478. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17479. lt_cv_prog_compiler_c_o_RC=yes
  17480. # The else clause should only fire when bootstrapping the
  17481. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17482. # with your package, and you will get complaints that there are
  17483. # no rules to generate ltmain.sh.
  17484. if test -f "$ltmain"; then
  17485. # See if we are running on zsh, and set the options which allow our commands through
  17486. # without removal of \ escapes.
  17487. if test -n "${ZSH_VERSION+set}" ; then
  17488. setopt NO_GLOB_SUBST
  17489. fi
  17490. # Now quote all the things that may contain metacharacters while being
  17491. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17492. # variables and quote the copies for generation of the libtool script.
  17493. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17494. SED SHELL STRIP \
  17495. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17496. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17497. deplibs_check_method reload_flag reload_cmds need_locks \
  17498. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17499. lt_cv_sys_global_symbol_to_c_name_address \
  17500. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17501. old_postinstall_cmds old_postuninstall_cmds \
  17502. compiler_RC \
  17503. CC_RC \
  17504. LD_RC \
  17505. lt_prog_compiler_wl_RC \
  17506. lt_prog_compiler_pic_RC \
  17507. lt_prog_compiler_static_RC \
  17508. lt_prog_compiler_no_builtin_flag_RC \
  17509. export_dynamic_flag_spec_RC \
  17510. thread_safe_flag_spec_RC \
  17511. whole_archive_flag_spec_RC \
  17512. enable_shared_with_static_runtimes_RC \
  17513. old_archive_cmds_RC \
  17514. old_archive_from_new_cmds_RC \
  17515. predep_objects_RC \
  17516. postdep_objects_RC \
  17517. predeps_RC \
  17518. postdeps_RC \
  17519. compiler_lib_search_path_RC \
  17520. archive_cmds_RC \
  17521. archive_expsym_cmds_RC \
  17522. postinstall_cmds_RC \
  17523. postuninstall_cmds_RC \
  17524. old_archive_from_expsyms_cmds_RC \
  17525. allow_undefined_flag_RC \
  17526. no_undefined_flag_RC \
  17527. export_symbols_cmds_RC \
  17528. hardcode_libdir_flag_spec_RC \
  17529. hardcode_libdir_flag_spec_ld_RC \
  17530. hardcode_libdir_separator_RC \
  17531. hardcode_automatic_RC \
  17532. module_cmds_RC \
  17533. module_expsym_cmds_RC \
  17534. lt_cv_prog_compiler_c_o_RC \
  17535. fix_srcfile_path_RC \
  17536. exclude_expsyms_RC \
  17537. include_expsyms_RC; do
  17538. case $var in
  17539. old_archive_cmds_RC | \
  17540. old_archive_from_new_cmds_RC | \
  17541. archive_cmds_RC | \
  17542. archive_expsym_cmds_RC | \
  17543. module_cmds_RC | \
  17544. module_expsym_cmds_RC | \
  17545. old_archive_from_expsyms_cmds_RC | \
  17546. export_symbols_cmds_RC | \
  17547. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17548. postinstall_cmds | postuninstall_cmds | \
  17549. old_postinstall_cmds | old_postuninstall_cmds | \
  17550. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17551. # Double-quote double-evaled strings.
  17552. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17553. ;;
  17554. *)
  17555. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17556. ;;
  17557. esac
  17558. done
  17559. case $lt_echo in
  17560. *'\$0 --fallback-echo"')
  17561. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17562. ;;
  17563. esac
  17564. cfgfile="$ofile"
  17565. cat <<__EOF__ >> "$cfgfile"
  17566. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17567. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17568. # Shell to use when invoking shell scripts.
  17569. SHELL=$lt_SHELL
  17570. # Whether or not to build shared libraries.
  17571. build_libtool_libs=$enable_shared
  17572. # Whether or not to build static libraries.
  17573. build_old_libs=$enable_static
  17574. # Whether or not to add -lc for building shared libraries.
  17575. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17576. # Whether or not to disallow shared libs when runtime libs are static
  17577. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17578. # Whether or not to optimize for fast installation.
  17579. fast_install=$enable_fast_install
  17580. # The host system.
  17581. host_alias=$host_alias
  17582. host=$host
  17583. host_os=$host_os
  17584. # The build system.
  17585. build_alias=$build_alias
  17586. build=$build
  17587. build_os=$build_os
  17588. # An echo program that does not interpret backslashes.
  17589. echo=$lt_echo
  17590. # The archiver.
  17591. AR=$lt_AR
  17592. AR_FLAGS=$lt_AR_FLAGS
  17593. # A C compiler.
  17594. LTCC=$lt_LTCC
  17595. # LTCC compiler flags.
  17596. LTCFLAGS=$lt_LTCFLAGS
  17597. # A language-specific compiler.
  17598. CC=$lt_compiler_RC
  17599. # Is the compiler the GNU C compiler?
  17600. with_gcc=$GCC_RC
  17601. # An ERE matcher.
  17602. EGREP=$lt_EGREP
  17603. # The linker used to build libraries.
  17604. LD=$lt_LD_RC
  17605. # Whether we need hard or soft links.
  17606. LN_S=$lt_LN_S
  17607. # A BSD-compatible nm program.
  17608. NM=$lt_NM
  17609. # A symbol stripping program
  17610. STRIP=$lt_STRIP
  17611. # Used to examine libraries when file_magic_cmd begins "file"
  17612. MAGIC_CMD=$MAGIC_CMD
  17613. # Used on cygwin: DLL creation program.
  17614. DLLTOOL="$DLLTOOL"
  17615. # Used on cygwin: object dumper.
  17616. OBJDUMP="$OBJDUMP"
  17617. # Used on cygwin: assembler.
  17618. AS="$AS"
  17619. # The name of the directory that contains temporary libtool files.
  17620. objdir=$objdir
  17621. # How to create reloadable object files.
  17622. reload_flag=$lt_reload_flag
  17623. reload_cmds=$lt_reload_cmds
  17624. # How to pass a linker flag through the compiler.
  17625. wl=$lt_lt_prog_compiler_wl_RC
  17626. # Object file suffix (normally "o").
  17627. objext="$ac_objext"
  17628. # Old archive suffix (normally "a").
  17629. libext="$libext"
  17630. # Shared library suffix (normally ".so").
  17631. shrext_cmds='$shrext_cmds'
  17632. # Executable file suffix (normally "").
  17633. exeext="$exeext"
  17634. # Additional compiler flags for building library objects.
  17635. pic_flag=$lt_lt_prog_compiler_pic_RC
  17636. pic_mode=$pic_mode
  17637. # What is the maximum length of a command?
  17638. max_cmd_len=$lt_cv_sys_max_cmd_len
  17639. # Does compiler simultaneously support -c and -o options?
  17640. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17641. # Must we lock files when doing compilation?
  17642. need_locks=$lt_need_locks
  17643. # Do we need the lib prefix for modules?
  17644. need_lib_prefix=$need_lib_prefix
  17645. # Do we need a version for libraries?
  17646. need_version=$need_version
  17647. # Whether dlopen is supported.
  17648. dlopen_support=$enable_dlopen
  17649. # Whether dlopen of programs is supported.
  17650. dlopen_self=$enable_dlopen_self
  17651. # Whether dlopen of statically linked programs is supported.
  17652. dlopen_self_static=$enable_dlopen_self_static
  17653. # Compiler flag to prevent dynamic linking.
  17654. link_static_flag=$lt_lt_prog_compiler_static_RC
  17655. # Compiler flag to turn off builtin functions.
  17656. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17657. # Compiler flag to allow reflexive dlopens.
  17658. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17659. # Compiler flag to generate shared objects directly from archives.
  17660. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17661. # Compiler flag to generate thread-safe objects.
  17662. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17663. # Library versioning type.
  17664. version_type=$version_type
  17665. # Format of library name prefix.
  17666. libname_spec=$lt_libname_spec
  17667. # List of archive names. First name is the real one, the rest are links.
  17668. # The last name is the one that the linker finds with -lNAME.
  17669. library_names_spec=$lt_library_names_spec
  17670. # The coded name of the library, if different from the real name.
  17671. soname_spec=$lt_soname_spec
  17672. # Commands used to build and install an old-style archive.
  17673. RANLIB=$lt_RANLIB
  17674. old_archive_cmds=$lt_old_archive_cmds_RC
  17675. old_postinstall_cmds=$lt_old_postinstall_cmds
  17676. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17677. # Create an old-style archive from a shared archive.
  17678. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17679. # Create a temporary old-style archive to link instead of a shared archive.
  17680. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17681. # Commands used to build and install a shared archive.
  17682. archive_cmds=$lt_archive_cmds_RC
  17683. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17684. postinstall_cmds=$lt_postinstall_cmds
  17685. postuninstall_cmds=$lt_postuninstall_cmds
  17686. # Commands used to build a loadable module (assumed same as above if empty)
  17687. module_cmds=$lt_module_cmds_RC
  17688. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17689. # Commands to strip libraries.
  17690. old_striplib=$lt_old_striplib
  17691. striplib=$lt_striplib
  17692. # Dependencies to place before the objects being linked to create a
  17693. # shared library.
  17694. predep_objects=$lt_predep_objects_RC
  17695. # Dependencies to place after the objects being linked to create a
  17696. # shared library.
  17697. postdep_objects=$lt_postdep_objects_RC
  17698. # Dependencies to place before the objects being linked to create a
  17699. # shared library.
  17700. predeps=$lt_predeps_RC
  17701. # Dependencies to place after the objects being linked to create a
  17702. # shared library.
  17703. postdeps=$lt_postdeps_RC
  17704. # The library search path used internally by the compiler when linking
  17705. # a shared library.
  17706. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17707. # Method to check whether dependent libraries are shared objects.
  17708. deplibs_check_method=$lt_deplibs_check_method
  17709. # Command to use when deplibs_check_method == file_magic.
  17710. file_magic_cmd=$lt_file_magic_cmd
  17711. # Flag that allows shared libraries with undefined symbols to be built.
  17712. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17713. # Flag that forces no undefined symbols.
  17714. no_undefined_flag=$lt_no_undefined_flag_RC
  17715. # Commands used to finish a libtool library installation in a directory.
  17716. finish_cmds=$lt_finish_cmds
  17717. # Same as above, but a single script fragment to be evaled but not shown.
  17718. finish_eval=$lt_finish_eval
  17719. # Take the output of nm and produce a listing of raw symbols and C names.
  17720. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17721. # Transform the output of nm in a proper C declaration
  17722. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17723. # Transform the output of nm in a C name address pair
  17724. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17725. # This is the shared library runtime path variable.
  17726. runpath_var=$runpath_var
  17727. # This is the shared library path variable.
  17728. shlibpath_var=$shlibpath_var
  17729. # Is shlibpath searched before the hard-coded library search path?
  17730. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17731. # How to hardcode a shared library path into an executable.
  17732. hardcode_action=$hardcode_action_RC
  17733. # Whether we should hardcode library paths into libraries.
  17734. hardcode_into_libs=$hardcode_into_libs
  17735. # Flag to hardcode \$libdir into a binary during linking.
  17736. # This must work even if \$libdir does not exist.
  17737. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17738. # If ld is used when linking, flag to hardcode \$libdir into
  17739. # a binary during linking. This must work even if \$libdir does
  17740. # not exist.
  17741. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17742. # Whether we need a single -rpath flag with a separated argument.
  17743. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17744. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17745. # resulting binary.
  17746. hardcode_direct=$hardcode_direct_RC
  17747. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17748. # resulting binary.
  17749. hardcode_minus_L=$hardcode_minus_L_RC
  17750. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17751. # the resulting binary.
  17752. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17753. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17754. # and all subsequent libraries and executables linked against it.
  17755. hardcode_automatic=$hardcode_automatic_RC
  17756. # Variables whose values should be saved in libtool wrapper scripts and
  17757. # restored at relink time.
  17758. variables_saved_for_relink="$variables_saved_for_relink"
  17759. # Whether libtool must link a program against all its dependency libraries.
  17760. link_all_deplibs=$link_all_deplibs_RC
  17761. # Compile-time system search path for libraries
  17762. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17763. # Run-time system search path for libraries
  17764. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17765. # Fix the shell variable \$srcfile for the compiler.
  17766. fix_srcfile_path=$lt_fix_srcfile_path
  17767. # Set to yes if exported symbols are required.
  17768. always_export_symbols=$always_export_symbols_RC
  17769. # The commands to list exported symbols.
  17770. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17771. # The commands to extract the exported symbol list from a shared archive.
  17772. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17773. # Symbols that should not be listed in the preloaded symbols.
  17774. exclude_expsyms=$lt_exclude_expsyms_RC
  17775. # Symbols that must always be exported.
  17776. include_expsyms=$lt_include_expsyms_RC
  17777. # ### END LIBTOOL TAG CONFIG: $tagname
  17778. __EOF__
  17779. else
  17780. # If there is no Makefile yet, we rely on a make rule to execute
  17781. # `config.status --recheck' to rerun these tests and create the
  17782. # libtool script then.
  17783. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17784. if test -f "$ltmain_in"; then
  17785. test -f Makefile && make "$ltmain"
  17786. fi
  17787. fi
  17788. ac_ext=c
  17789. ac_cpp='$CPP $CPPFLAGS'
  17790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17793. CC="$lt_save_CC"
  17794. ;;
  17795. *)
  17796. { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17797. $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17798. { (exit 1); exit 1; }; }
  17799. ;;
  17800. esac
  17801. # Append the new tag name to the list of available tags.
  17802. if test -n "$tagname" ; then
  17803. available_tags="$available_tags $tagname"
  17804. fi
  17805. fi
  17806. done
  17807. IFS="$lt_save_ifs"
  17808. # Now substitute the updated list of available tags.
  17809. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17810. mv "${ofile}T" "$ofile"
  17811. chmod +x "$ofile"
  17812. else
  17813. rm -f "${ofile}T"
  17814. { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17815. $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17816. { (exit 1); exit 1; }; }
  17817. fi
  17818. fi
  17819. # This can be used to rebuild libtool when needed
  17820. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17821. # Always use our own libtool.
  17822. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17823. # Prevent multiple expansion
  17824. # Checks for header files.
  17825. ac_header_dirent=no
  17826. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  17827. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  17828. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  17829. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  17830. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17831. $as_echo_n "(cached) " >&6
  17832. else
  17833. cat >conftest.$ac_ext <<_ACEOF
  17834. /* confdefs.h. */
  17835. _ACEOF
  17836. cat confdefs.h >>conftest.$ac_ext
  17837. cat >>conftest.$ac_ext <<_ACEOF
  17838. /* end confdefs.h. */
  17839. #include <sys/types.h>
  17840. #include <$ac_hdr>
  17841. int
  17842. main ()
  17843. {
  17844. if ((DIR *) 0)
  17845. return 0;
  17846. ;
  17847. return 0;
  17848. }
  17849. _ACEOF
  17850. rm -f conftest.$ac_objext
  17851. if { (ac_try="$ac_compile"
  17852. case "(($ac_try" in
  17853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17854. *) ac_try_echo=$ac_try;;
  17855. esac
  17856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17857. $as_echo "$ac_try_echo") >&5
  17858. (eval "$ac_compile") 2>conftest.er1
  17859. ac_status=$?
  17860. grep -v '^ *+' conftest.er1 >conftest.err
  17861. rm -f conftest.er1
  17862. cat conftest.err >&5
  17863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17864. (exit $ac_status); } && {
  17865. test -z "$ac_c_werror_flag" ||
  17866. test ! -s conftest.err
  17867. } && test -s conftest.$ac_objext; then
  17868. eval "$as_ac_Header=yes"
  17869. else
  17870. $as_echo "$as_me: failed program was:" >&5
  17871. sed 's/^/| /' conftest.$ac_ext >&5
  17872. eval "$as_ac_Header=no"
  17873. fi
  17874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17875. fi
  17876. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17877. $as_echo "$as_val"'`
  17878. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17879. $as_echo "$ac_res" >&6; }
  17880. as_val=`eval 'as_val=${'$as_ac_Header'}
  17881. $as_echo "$as_val"'`
  17882. if test "x$as_val" = x""yes; then
  17883. cat >>confdefs.h <<_ACEOF
  17884. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  17885. _ACEOF
  17886. ac_header_dirent=$ac_hdr; break
  17887. fi
  17888. done
  17889. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  17890. if test $ac_header_dirent = dirent.h; then
  17891. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17892. $as_echo_n "checking for library containing opendir... " >&6; }
  17893. if test "${ac_cv_search_opendir+set}" = set; then
  17894. $as_echo_n "(cached) " >&6
  17895. else
  17896. ac_func_search_save_LIBS=$LIBS
  17897. cat >conftest.$ac_ext <<_ACEOF
  17898. /* confdefs.h. */
  17899. _ACEOF
  17900. cat confdefs.h >>conftest.$ac_ext
  17901. cat >>conftest.$ac_ext <<_ACEOF
  17902. /* end confdefs.h. */
  17903. /* Override any GCC internal prototype to avoid an error.
  17904. Use char because int might match the return type of a GCC
  17905. builtin and then its argument prototype would still apply. */
  17906. #ifdef __cplusplus
  17907. extern "C"
  17908. #endif
  17909. char opendir ();
  17910. int
  17911. main ()
  17912. {
  17913. return opendir ();
  17914. ;
  17915. return 0;
  17916. }
  17917. _ACEOF
  17918. for ac_lib in '' dir; do
  17919. if test -z "$ac_lib"; then
  17920. ac_res="none required"
  17921. else
  17922. ac_res=-l$ac_lib
  17923. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17924. fi
  17925. rm -f conftest.$ac_objext conftest$ac_exeext
  17926. if { (ac_try="$ac_link"
  17927. case "(($ac_try" in
  17928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17929. *) ac_try_echo=$ac_try;;
  17930. esac
  17931. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17932. $as_echo "$ac_try_echo") >&5
  17933. (eval "$ac_link") 2>conftest.er1
  17934. ac_status=$?
  17935. grep -v '^ *+' conftest.er1 >conftest.err
  17936. rm -f conftest.er1
  17937. cat conftest.err >&5
  17938. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17939. (exit $ac_status); } && {
  17940. test -z "$ac_c_werror_flag" ||
  17941. test ! -s conftest.err
  17942. } && test -s conftest$ac_exeext && {
  17943. test "$cross_compiling" = yes ||
  17944. $as_test_x conftest$ac_exeext
  17945. }; then
  17946. ac_cv_search_opendir=$ac_res
  17947. else
  17948. $as_echo "$as_me: failed program was:" >&5
  17949. sed 's/^/| /' conftest.$ac_ext >&5
  17950. fi
  17951. rm -rf conftest.dSYM
  17952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17953. conftest$ac_exeext
  17954. if test "${ac_cv_search_opendir+set}" = set; then
  17955. break
  17956. fi
  17957. done
  17958. if test "${ac_cv_search_opendir+set}" = set; then
  17959. :
  17960. else
  17961. ac_cv_search_opendir=no
  17962. fi
  17963. rm conftest.$ac_ext
  17964. LIBS=$ac_func_search_save_LIBS
  17965. fi
  17966. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  17967. $as_echo "$ac_cv_search_opendir" >&6; }
  17968. ac_res=$ac_cv_search_opendir
  17969. if test "$ac_res" != no; then
  17970. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17971. fi
  17972. else
  17973. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  17974. $as_echo_n "checking for library containing opendir... " >&6; }
  17975. if test "${ac_cv_search_opendir+set}" = set; then
  17976. $as_echo_n "(cached) " >&6
  17977. else
  17978. ac_func_search_save_LIBS=$LIBS
  17979. cat >conftest.$ac_ext <<_ACEOF
  17980. /* confdefs.h. */
  17981. _ACEOF
  17982. cat confdefs.h >>conftest.$ac_ext
  17983. cat >>conftest.$ac_ext <<_ACEOF
  17984. /* end confdefs.h. */
  17985. /* Override any GCC internal prototype to avoid an error.
  17986. Use char because int might match the return type of a GCC
  17987. builtin and then its argument prototype would still apply. */
  17988. #ifdef __cplusplus
  17989. extern "C"
  17990. #endif
  17991. char opendir ();
  17992. int
  17993. main ()
  17994. {
  17995. return opendir ();
  17996. ;
  17997. return 0;
  17998. }
  17999. _ACEOF
  18000. for ac_lib in '' x; do
  18001. if test -z "$ac_lib"; then
  18002. ac_res="none required"
  18003. else
  18004. ac_res=-l$ac_lib
  18005. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18006. fi
  18007. rm -f conftest.$ac_objext conftest$ac_exeext
  18008. if { (ac_try="$ac_link"
  18009. case "(($ac_try" in
  18010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18011. *) ac_try_echo=$ac_try;;
  18012. esac
  18013. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18014. $as_echo "$ac_try_echo") >&5
  18015. (eval "$ac_link") 2>conftest.er1
  18016. ac_status=$?
  18017. grep -v '^ *+' conftest.er1 >conftest.err
  18018. rm -f conftest.er1
  18019. cat conftest.err >&5
  18020. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18021. (exit $ac_status); } && {
  18022. test -z "$ac_c_werror_flag" ||
  18023. test ! -s conftest.err
  18024. } && test -s conftest$ac_exeext && {
  18025. test "$cross_compiling" = yes ||
  18026. $as_test_x conftest$ac_exeext
  18027. }; then
  18028. ac_cv_search_opendir=$ac_res
  18029. else
  18030. $as_echo "$as_me: failed program was:" >&5
  18031. sed 's/^/| /' conftest.$ac_ext >&5
  18032. fi
  18033. rm -rf conftest.dSYM
  18034. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18035. conftest$ac_exeext
  18036. if test "${ac_cv_search_opendir+set}" = set; then
  18037. break
  18038. fi
  18039. done
  18040. if test "${ac_cv_search_opendir+set}" = set; then
  18041. :
  18042. else
  18043. ac_cv_search_opendir=no
  18044. fi
  18045. rm conftest.$ac_ext
  18046. LIBS=$ac_func_search_save_LIBS
  18047. fi
  18048. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  18049. $as_echo "$ac_cv_search_opendir" >&6; }
  18050. ac_res=$ac_cv_search_opendir
  18051. if test "$ac_res" != no; then
  18052. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18053. fi
  18054. fi
  18055. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18056. $as_echo_n "checking for ANSI C header files... " >&6; }
  18057. if test "${ac_cv_header_stdc+set}" = set; then
  18058. $as_echo_n "(cached) " >&6
  18059. else
  18060. cat >conftest.$ac_ext <<_ACEOF
  18061. /* confdefs.h. */
  18062. _ACEOF
  18063. cat confdefs.h >>conftest.$ac_ext
  18064. cat >>conftest.$ac_ext <<_ACEOF
  18065. /* end confdefs.h. */
  18066. #include <stdlib.h>
  18067. #include <stdarg.h>
  18068. #include <string.h>
  18069. #include <float.h>
  18070. int
  18071. main ()
  18072. {
  18073. ;
  18074. return 0;
  18075. }
  18076. _ACEOF
  18077. rm -f conftest.$ac_objext
  18078. if { (ac_try="$ac_compile"
  18079. case "(($ac_try" in
  18080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18081. *) ac_try_echo=$ac_try;;
  18082. esac
  18083. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18084. $as_echo "$ac_try_echo") >&5
  18085. (eval "$ac_compile") 2>conftest.er1
  18086. ac_status=$?
  18087. grep -v '^ *+' conftest.er1 >conftest.err
  18088. rm -f conftest.er1
  18089. cat conftest.err >&5
  18090. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18091. (exit $ac_status); } && {
  18092. test -z "$ac_c_werror_flag" ||
  18093. test ! -s conftest.err
  18094. } && test -s conftest.$ac_objext; then
  18095. ac_cv_header_stdc=yes
  18096. else
  18097. $as_echo "$as_me: failed program was:" >&5
  18098. sed 's/^/| /' conftest.$ac_ext >&5
  18099. ac_cv_header_stdc=no
  18100. fi
  18101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18102. if test $ac_cv_header_stdc = yes; then
  18103. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18104. cat >conftest.$ac_ext <<_ACEOF
  18105. /* confdefs.h. */
  18106. _ACEOF
  18107. cat confdefs.h >>conftest.$ac_ext
  18108. cat >>conftest.$ac_ext <<_ACEOF
  18109. /* end confdefs.h. */
  18110. #include <string.h>
  18111. _ACEOF
  18112. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18113. $EGREP "memchr" >/dev/null 2>&1; then
  18114. :
  18115. else
  18116. ac_cv_header_stdc=no
  18117. fi
  18118. rm -f conftest*
  18119. fi
  18120. if test $ac_cv_header_stdc = yes; then
  18121. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18122. cat >conftest.$ac_ext <<_ACEOF
  18123. /* confdefs.h. */
  18124. _ACEOF
  18125. cat confdefs.h >>conftest.$ac_ext
  18126. cat >>conftest.$ac_ext <<_ACEOF
  18127. /* end confdefs.h. */
  18128. #include <stdlib.h>
  18129. _ACEOF
  18130. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18131. $EGREP "free" >/dev/null 2>&1; then
  18132. :
  18133. else
  18134. ac_cv_header_stdc=no
  18135. fi
  18136. rm -f conftest*
  18137. fi
  18138. if test $ac_cv_header_stdc = yes; then
  18139. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18140. if test "$cross_compiling" = yes; then
  18141. :
  18142. else
  18143. cat >conftest.$ac_ext <<_ACEOF
  18144. /* confdefs.h. */
  18145. _ACEOF
  18146. cat confdefs.h >>conftest.$ac_ext
  18147. cat >>conftest.$ac_ext <<_ACEOF
  18148. /* end confdefs.h. */
  18149. #include <ctype.h>
  18150. #include <stdlib.h>
  18151. #if ((' ' & 0x0FF) == 0x020)
  18152. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18153. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18154. #else
  18155. # define ISLOWER(c) \
  18156. (('a' <= (c) && (c) <= 'i') \
  18157. || ('j' <= (c) && (c) <= 'r') \
  18158. || ('s' <= (c) && (c) <= 'z'))
  18159. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18160. #endif
  18161. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18162. int
  18163. main ()
  18164. {
  18165. int i;
  18166. for (i = 0; i < 256; i++)
  18167. if (XOR (islower (i), ISLOWER (i))
  18168. || toupper (i) != TOUPPER (i))
  18169. return 2;
  18170. return 0;
  18171. }
  18172. _ACEOF
  18173. rm -f conftest$ac_exeext
  18174. if { (ac_try="$ac_link"
  18175. case "(($ac_try" in
  18176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18177. *) ac_try_echo=$ac_try;;
  18178. esac
  18179. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18180. $as_echo "$ac_try_echo") >&5
  18181. (eval "$ac_link") 2>&5
  18182. ac_status=$?
  18183. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18184. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18185. { (case "(($ac_try" in
  18186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18187. *) ac_try_echo=$ac_try;;
  18188. esac
  18189. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18190. $as_echo "$ac_try_echo") >&5
  18191. (eval "$ac_try") 2>&5
  18192. ac_status=$?
  18193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18194. (exit $ac_status); }; }; then
  18195. :
  18196. else
  18197. $as_echo "$as_me: program exited with status $ac_status" >&5
  18198. $as_echo "$as_me: failed program was:" >&5
  18199. sed 's/^/| /' conftest.$ac_ext >&5
  18200. ( exit $ac_status )
  18201. ac_cv_header_stdc=no
  18202. fi
  18203. rm -rf conftest.dSYM
  18204. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18205. fi
  18206. fi
  18207. fi
  18208. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18209. $as_echo "$ac_cv_header_stdc" >&6; }
  18210. if test $ac_cv_header_stdc = yes; then
  18211. cat >>confdefs.h <<\_ACEOF
  18212. #define STDC_HEADERS 1
  18213. _ACEOF
  18214. fi
  18215. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  18216. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  18217. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  18218. $as_echo_n "(cached) " >&6
  18219. else
  18220. cat >conftest.$ac_ext <<_ACEOF
  18221. /* confdefs.h. */
  18222. _ACEOF
  18223. cat confdefs.h >>conftest.$ac_ext
  18224. cat >>conftest.$ac_ext <<_ACEOF
  18225. /* end confdefs.h. */
  18226. #include <sys/types.h>
  18227. #include <sys/wait.h>
  18228. #ifndef WEXITSTATUS
  18229. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  18230. #endif
  18231. #ifndef WIFEXITED
  18232. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  18233. #endif
  18234. int
  18235. main ()
  18236. {
  18237. int s;
  18238. wait (&s);
  18239. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  18240. ;
  18241. return 0;
  18242. }
  18243. _ACEOF
  18244. rm -f conftest.$ac_objext
  18245. if { (ac_try="$ac_compile"
  18246. case "(($ac_try" in
  18247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18248. *) ac_try_echo=$ac_try;;
  18249. esac
  18250. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18251. $as_echo "$ac_try_echo") >&5
  18252. (eval "$ac_compile") 2>conftest.er1
  18253. ac_status=$?
  18254. grep -v '^ *+' conftest.er1 >conftest.err
  18255. rm -f conftest.er1
  18256. cat conftest.err >&5
  18257. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18258. (exit $ac_status); } && {
  18259. test -z "$ac_c_werror_flag" ||
  18260. test ! -s conftest.err
  18261. } && test -s conftest.$ac_objext; then
  18262. ac_cv_header_sys_wait_h=yes
  18263. else
  18264. $as_echo "$as_me: failed program was:" >&5
  18265. sed 's/^/| /' conftest.$ac_ext >&5
  18266. ac_cv_header_sys_wait_h=no
  18267. fi
  18268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18269. fi
  18270. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  18271. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  18272. if test $ac_cv_header_sys_wait_h = yes; then
  18273. cat >>confdefs.h <<\_ACEOF
  18274. #define HAVE_SYS_WAIT_H 1
  18275. _ACEOF
  18276. fi
  18277. for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/socket.h sys/time.h unistd.h inttypes.h
  18278. do
  18279. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18280. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18281. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18282. $as_echo_n "checking for $ac_header... " >&6; }
  18283. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18284. $as_echo_n "(cached) " >&6
  18285. fi
  18286. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18287. $as_echo "$as_val"'`
  18288. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18289. $as_echo "$ac_res" >&6; }
  18290. else
  18291. # Is the header compilable?
  18292. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18293. $as_echo_n "checking $ac_header usability... " >&6; }
  18294. cat >conftest.$ac_ext <<_ACEOF
  18295. /* confdefs.h. */
  18296. _ACEOF
  18297. cat confdefs.h >>conftest.$ac_ext
  18298. cat >>conftest.$ac_ext <<_ACEOF
  18299. /* end confdefs.h. */
  18300. $ac_includes_default
  18301. #include <$ac_header>
  18302. _ACEOF
  18303. rm -f conftest.$ac_objext
  18304. if { (ac_try="$ac_compile"
  18305. case "(($ac_try" in
  18306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18307. *) ac_try_echo=$ac_try;;
  18308. esac
  18309. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18310. $as_echo "$ac_try_echo") >&5
  18311. (eval "$ac_compile") 2>conftest.er1
  18312. ac_status=$?
  18313. grep -v '^ *+' conftest.er1 >conftest.err
  18314. rm -f conftest.er1
  18315. cat conftest.err >&5
  18316. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18317. (exit $ac_status); } && {
  18318. test -z "$ac_c_werror_flag" ||
  18319. test ! -s conftest.err
  18320. } && test -s conftest.$ac_objext; then
  18321. ac_header_compiler=yes
  18322. else
  18323. $as_echo "$as_me: failed program was:" >&5
  18324. sed 's/^/| /' conftest.$ac_ext >&5
  18325. ac_header_compiler=no
  18326. fi
  18327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18328. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18329. $as_echo "$ac_header_compiler" >&6; }
  18330. # Is the header present?
  18331. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18332. $as_echo_n "checking $ac_header presence... " >&6; }
  18333. cat >conftest.$ac_ext <<_ACEOF
  18334. /* confdefs.h. */
  18335. _ACEOF
  18336. cat confdefs.h >>conftest.$ac_ext
  18337. cat >>conftest.$ac_ext <<_ACEOF
  18338. /* end confdefs.h. */
  18339. #include <$ac_header>
  18340. _ACEOF
  18341. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18342. case "(($ac_try" in
  18343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18344. *) ac_try_echo=$ac_try;;
  18345. esac
  18346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18347. $as_echo "$ac_try_echo") >&5
  18348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18349. ac_status=$?
  18350. grep -v '^ *+' conftest.er1 >conftest.err
  18351. rm -f conftest.er1
  18352. cat conftest.err >&5
  18353. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18354. (exit $ac_status); } >/dev/null && {
  18355. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18356. test ! -s conftest.err
  18357. }; then
  18358. ac_header_preproc=yes
  18359. else
  18360. $as_echo "$as_me: failed program was:" >&5
  18361. sed 's/^/| /' conftest.$ac_ext >&5
  18362. ac_header_preproc=no
  18363. fi
  18364. rm -f conftest.err conftest.$ac_ext
  18365. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18366. $as_echo "$ac_header_preproc" >&6; }
  18367. # So? What about this header?
  18368. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18369. yes:no: )
  18370. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18371. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18372. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18373. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18374. ac_header_preproc=yes
  18375. ;;
  18376. no:yes:* )
  18377. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18378. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18379. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18380. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18381. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18382. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18383. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18384. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18385. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18386. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18387. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18388. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18389. ( cat <<\_ASBOX
  18390. ## ------------------------------------------ ##
  18391. ## Report this to http://bugzilla.redhat.com/ ##
  18392. ## ------------------------------------------ ##
  18393. _ASBOX
  18394. ) | sed "s/^/$as_me: WARNING: /" >&2
  18395. ;;
  18396. esac
  18397. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18398. $as_echo_n "checking for $ac_header... " >&6; }
  18399. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18400. $as_echo_n "(cached) " >&6
  18401. else
  18402. eval "$as_ac_Header=\$ac_header_preproc"
  18403. fi
  18404. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18405. $as_echo "$as_val"'`
  18406. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18407. $as_echo "$ac_res" >&6; }
  18408. fi
  18409. as_val=`eval 'as_val=${'$as_ac_Header'}
  18410. $as_echo "$as_val"'`
  18411. if test "x$as_val" = x""yes; then
  18412. cat >>confdefs.h <<_ACEOF
  18413. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18414. _ACEOF
  18415. fi
  18416. done
  18417. # Checks for typedefs, structures, and compiler characteristics.
  18418. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  18419. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  18420. if test "${ac_cv_header_stat_broken+set}" = set; then
  18421. $as_echo_n "(cached) " >&6
  18422. else
  18423. cat >conftest.$ac_ext <<_ACEOF
  18424. /* confdefs.h. */
  18425. _ACEOF
  18426. cat confdefs.h >>conftest.$ac_ext
  18427. cat >>conftest.$ac_ext <<_ACEOF
  18428. /* end confdefs.h. */
  18429. #include <sys/types.h>
  18430. #include <sys/stat.h>
  18431. #if defined S_ISBLK && defined S_IFDIR
  18432. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  18433. #endif
  18434. #if defined S_ISBLK && defined S_IFCHR
  18435. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  18436. #endif
  18437. #if defined S_ISLNK && defined S_IFREG
  18438. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  18439. #endif
  18440. #if defined S_ISSOCK && defined S_IFREG
  18441. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  18442. #endif
  18443. _ACEOF
  18444. rm -f conftest.$ac_objext
  18445. if { (ac_try="$ac_compile"
  18446. case "(($ac_try" in
  18447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18448. *) ac_try_echo=$ac_try;;
  18449. esac
  18450. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18451. $as_echo "$ac_try_echo") >&5
  18452. (eval "$ac_compile") 2>conftest.er1
  18453. ac_status=$?
  18454. grep -v '^ *+' conftest.er1 >conftest.err
  18455. rm -f conftest.er1
  18456. cat conftest.err >&5
  18457. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18458. (exit $ac_status); } && {
  18459. test -z "$ac_c_werror_flag" ||
  18460. test ! -s conftest.err
  18461. } && test -s conftest.$ac_objext; then
  18462. ac_cv_header_stat_broken=no
  18463. else
  18464. $as_echo "$as_me: failed program was:" >&5
  18465. sed 's/^/| /' conftest.$ac_ext >&5
  18466. ac_cv_header_stat_broken=yes
  18467. fi
  18468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18469. fi
  18470. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  18471. $as_echo "$ac_cv_header_stat_broken" >&6; }
  18472. if test $ac_cv_header_stat_broken = yes; then
  18473. cat >>confdefs.h <<\_ACEOF
  18474. #define STAT_MACROS_BROKEN 1
  18475. _ACEOF
  18476. fi
  18477. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  18478. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  18479. if test "${ac_cv_c_const+set}" = set; then
  18480. $as_echo_n "(cached) " >&6
  18481. else
  18482. cat >conftest.$ac_ext <<_ACEOF
  18483. /* confdefs.h. */
  18484. _ACEOF
  18485. cat confdefs.h >>conftest.$ac_ext
  18486. cat >>conftest.$ac_ext <<_ACEOF
  18487. /* end confdefs.h. */
  18488. int
  18489. main ()
  18490. {
  18491. /* FIXME: Include the comments suggested by Paul. */
  18492. #ifndef __cplusplus
  18493. /* Ultrix mips cc rejects this. */
  18494. typedef int charset[2];
  18495. const charset cs;
  18496. /* SunOS 4.1.1 cc rejects this. */
  18497. char const *const *pcpcc;
  18498. char **ppc;
  18499. /* NEC SVR4.0.2 mips cc rejects this. */
  18500. struct point {int x, y;};
  18501. static struct point const zero = {0,0};
  18502. /* AIX XL C 1.02.0.0 rejects this.
  18503. It does not let you subtract one const X* pointer from another in
  18504. an arm of an if-expression whose if-part is not a constant
  18505. expression */
  18506. const char *g = "string";
  18507. pcpcc = &g + (g ? g-g : 0);
  18508. /* HPUX 7.0 cc rejects these. */
  18509. ++pcpcc;
  18510. ppc = (char**) pcpcc;
  18511. pcpcc = (char const *const *) ppc;
  18512. { /* SCO 3.2v4 cc rejects this. */
  18513. char *t;
  18514. char const *s = 0 ? (char *) 0 : (char const *) 0;
  18515. *t++ = 0;
  18516. if (s) return 0;
  18517. }
  18518. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  18519. int x[] = {25, 17};
  18520. const int *foo = &x[0];
  18521. ++foo;
  18522. }
  18523. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  18524. typedef const int *iptr;
  18525. iptr p = 0;
  18526. ++p;
  18527. }
  18528. { /* AIX XL C 1.02.0.0 rejects this saying
  18529. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  18530. struct s { int j; const int *ap[3]; };
  18531. struct s *b; b->j = 5;
  18532. }
  18533. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  18534. const int foo = 10;
  18535. if (!foo) return 0;
  18536. }
  18537. return !cs[0] && !zero.x;
  18538. #endif
  18539. ;
  18540. return 0;
  18541. }
  18542. _ACEOF
  18543. rm -f conftest.$ac_objext
  18544. if { (ac_try="$ac_compile"
  18545. case "(($ac_try" in
  18546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18547. *) ac_try_echo=$ac_try;;
  18548. esac
  18549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18550. $as_echo "$ac_try_echo") >&5
  18551. (eval "$ac_compile") 2>conftest.er1
  18552. ac_status=$?
  18553. grep -v '^ *+' conftest.er1 >conftest.err
  18554. rm -f conftest.er1
  18555. cat conftest.err >&5
  18556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18557. (exit $ac_status); } && {
  18558. test -z "$ac_c_werror_flag" ||
  18559. test ! -s conftest.err
  18560. } && test -s conftest.$ac_objext; then
  18561. ac_cv_c_const=yes
  18562. else
  18563. $as_echo "$as_me: failed program was:" >&5
  18564. sed 's/^/| /' conftest.$ac_ext >&5
  18565. ac_cv_c_const=no
  18566. fi
  18567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18568. fi
  18569. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  18570. $as_echo "$ac_cv_c_const" >&6; }
  18571. if test $ac_cv_c_const = no; then
  18572. cat >>confdefs.h <<\_ACEOF
  18573. #define const /**/
  18574. _ACEOF
  18575. fi
  18576. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  18577. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  18578. if test "${ac_cv_header_stdbool_h+set}" = set; then
  18579. $as_echo_n "(cached) " >&6
  18580. else
  18581. cat >conftest.$ac_ext <<_ACEOF
  18582. /* confdefs.h. */
  18583. _ACEOF
  18584. cat confdefs.h >>conftest.$ac_ext
  18585. cat >>conftest.$ac_ext <<_ACEOF
  18586. /* end confdefs.h. */
  18587. #include <stdbool.h>
  18588. #ifndef bool
  18589. "error: bool is not defined"
  18590. #endif
  18591. #ifndef false
  18592. "error: false is not defined"
  18593. #endif
  18594. #if false
  18595. "error: false is not 0"
  18596. #endif
  18597. #ifndef true
  18598. "error: true is not defined"
  18599. #endif
  18600. #if true != 1
  18601. "error: true is not 1"
  18602. #endif
  18603. #ifndef __bool_true_false_are_defined
  18604. "error: __bool_true_false_are_defined is not defined"
  18605. #endif
  18606. struct s { _Bool s: 1; _Bool t; } s;
  18607. char a[true == 1 ? 1 : -1];
  18608. char b[false == 0 ? 1 : -1];
  18609. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  18610. char d[(bool) 0.5 == true ? 1 : -1];
  18611. bool e = &s;
  18612. char f[(_Bool) 0.0 == false ? 1 : -1];
  18613. char g[true];
  18614. char h[sizeof (_Bool)];
  18615. char i[sizeof s.t];
  18616. enum { j = false, k = true, l = false * true, m = true * 256 };
  18617. /* The following fails for
  18618. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  18619. _Bool n[m];
  18620. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  18621. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  18622. # if defined __xlc__ || defined __GNUC__
  18623. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  18624. reported by James Lemley on 2005-10-05; see
  18625. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  18626. This test is not quite right, since xlc is allowed to
  18627. reject this program, as the initializer for xlcbug is
  18628. not one of the forms that C requires support for.
  18629. However, doing the test right would require a runtime
  18630. test, and that would make cross-compilation harder.
  18631. Let us hope that IBM fixes the xlc bug, and also adds
  18632. support for this kind of constant expression. In the
  18633. meantime, this test will reject xlc, which is OK, since
  18634. our stdbool.h substitute should suffice. We also test
  18635. this with GCC, where it should work, to detect more
  18636. quickly whether someone messes up the test in the
  18637. future. */
  18638. char digs[] = "0123456789";
  18639. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  18640. # endif
  18641. /* Catch a bug in an HP-UX C compiler. See
  18642. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  18643. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  18644. */
  18645. _Bool q = true;
  18646. _Bool *pq = &q;
  18647. int
  18648. main ()
  18649. {
  18650. *pq |= q;
  18651. *pq |= ! q;
  18652. /* Refer to every declared value, to avoid compiler optimizations. */
  18653. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  18654. + !m + !n + !o + !p + !q + !pq);
  18655. ;
  18656. return 0;
  18657. }
  18658. _ACEOF
  18659. rm -f conftest.$ac_objext
  18660. if { (ac_try="$ac_compile"
  18661. case "(($ac_try" in
  18662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18663. *) ac_try_echo=$ac_try;;
  18664. esac
  18665. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18666. $as_echo "$ac_try_echo") >&5
  18667. (eval "$ac_compile") 2>conftest.er1
  18668. ac_status=$?
  18669. grep -v '^ *+' conftest.er1 >conftest.err
  18670. rm -f conftest.er1
  18671. cat conftest.err >&5
  18672. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18673. (exit $ac_status); } && {
  18674. test -z "$ac_c_werror_flag" ||
  18675. test ! -s conftest.err
  18676. } && test -s conftest.$ac_objext; then
  18677. ac_cv_header_stdbool_h=yes
  18678. else
  18679. $as_echo "$as_me: failed program was:" >&5
  18680. sed 's/^/| /' conftest.$ac_ext >&5
  18681. ac_cv_header_stdbool_h=no
  18682. fi
  18683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18684. fi
  18685. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  18686. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  18687. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  18688. $as_echo_n "checking for _Bool... " >&6; }
  18689. if test "${ac_cv_type__Bool+set}" = set; then
  18690. $as_echo_n "(cached) " >&6
  18691. else
  18692. ac_cv_type__Bool=no
  18693. cat >conftest.$ac_ext <<_ACEOF
  18694. /* confdefs.h. */
  18695. _ACEOF
  18696. cat confdefs.h >>conftest.$ac_ext
  18697. cat >>conftest.$ac_ext <<_ACEOF
  18698. /* end confdefs.h. */
  18699. $ac_includes_default
  18700. int
  18701. main ()
  18702. {
  18703. if (sizeof (_Bool))
  18704. return 0;
  18705. ;
  18706. return 0;
  18707. }
  18708. _ACEOF
  18709. rm -f conftest.$ac_objext
  18710. if { (ac_try="$ac_compile"
  18711. case "(($ac_try" in
  18712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18713. *) ac_try_echo=$ac_try;;
  18714. esac
  18715. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18716. $as_echo "$ac_try_echo") >&5
  18717. (eval "$ac_compile") 2>conftest.er1
  18718. ac_status=$?
  18719. grep -v '^ *+' conftest.er1 >conftest.err
  18720. rm -f conftest.er1
  18721. cat conftest.err >&5
  18722. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18723. (exit $ac_status); } && {
  18724. test -z "$ac_c_werror_flag" ||
  18725. test ! -s conftest.err
  18726. } && test -s conftest.$ac_objext; then
  18727. cat >conftest.$ac_ext <<_ACEOF
  18728. /* confdefs.h. */
  18729. _ACEOF
  18730. cat confdefs.h >>conftest.$ac_ext
  18731. cat >>conftest.$ac_ext <<_ACEOF
  18732. /* end confdefs.h. */
  18733. $ac_includes_default
  18734. int
  18735. main ()
  18736. {
  18737. if (sizeof ((_Bool)))
  18738. return 0;
  18739. ;
  18740. return 0;
  18741. }
  18742. _ACEOF
  18743. rm -f conftest.$ac_objext
  18744. if { (ac_try="$ac_compile"
  18745. case "(($ac_try" in
  18746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18747. *) ac_try_echo=$ac_try;;
  18748. esac
  18749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18750. $as_echo "$ac_try_echo") >&5
  18751. (eval "$ac_compile") 2>conftest.er1
  18752. ac_status=$?
  18753. grep -v '^ *+' conftest.er1 >conftest.err
  18754. rm -f conftest.er1
  18755. cat conftest.err >&5
  18756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18757. (exit $ac_status); } && {
  18758. test -z "$ac_c_werror_flag" ||
  18759. test ! -s conftest.err
  18760. } && test -s conftest.$ac_objext; then
  18761. :
  18762. else
  18763. $as_echo "$as_me: failed program was:" >&5
  18764. sed 's/^/| /' conftest.$ac_ext >&5
  18765. ac_cv_type__Bool=yes
  18766. fi
  18767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18768. else
  18769. $as_echo "$as_me: failed program was:" >&5
  18770. sed 's/^/| /' conftest.$ac_ext >&5
  18771. fi
  18772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18773. fi
  18774. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  18775. $as_echo "$ac_cv_type__Bool" >&6; }
  18776. if test "x$ac_cv_type__Bool" = x""yes; then
  18777. cat >>confdefs.h <<_ACEOF
  18778. #define HAVE__BOOL 1
  18779. _ACEOF
  18780. fi
  18781. if test $ac_cv_header_stdbool_h = yes; then
  18782. cat >>confdefs.h <<\_ACEOF
  18783. #define HAVE_STDBOOL_H 1
  18784. _ACEOF
  18785. fi
  18786. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  18787. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  18788. if test "${ac_cv_type_uid_t+set}" = set; then
  18789. $as_echo_n "(cached) " >&6
  18790. else
  18791. cat >conftest.$ac_ext <<_ACEOF
  18792. /* confdefs.h. */
  18793. _ACEOF
  18794. cat confdefs.h >>conftest.$ac_ext
  18795. cat >>conftest.$ac_ext <<_ACEOF
  18796. /* end confdefs.h. */
  18797. #include <sys/types.h>
  18798. _ACEOF
  18799. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18800. $EGREP "uid_t" >/dev/null 2>&1; then
  18801. ac_cv_type_uid_t=yes
  18802. else
  18803. ac_cv_type_uid_t=no
  18804. fi
  18805. rm -f conftest*
  18806. fi
  18807. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  18808. $as_echo "$ac_cv_type_uid_t" >&6; }
  18809. if test $ac_cv_type_uid_t = no; then
  18810. cat >>confdefs.h <<\_ACEOF
  18811. #define uid_t int
  18812. _ACEOF
  18813. cat >>confdefs.h <<\_ACEOF
  18814. #define gid_t int
  18815. _ACEOF
  18816. fi
  18817. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  18818. $as_echo_n "checking for pid_t... " >&6; }
  18819. if test "${ac_cv_type_pid_t+set}" = set; then
  18820. $as_echo_n "(cached) " >&6
  18821. else
  18822. ac_cv_type_pid_t=no
  18823. cat >conftest.$ac_ext <<_ACEOF
  18824. /* confdefs.h. */
  18825. _ACEOF
  18826. cat confdefs.h >>conftest.$ac_ext
  18827. cat >>conftest.$ac_ext <<_ACEOF
  18828. /* end confdefs.h. */
  18829. $ac_includes_default
  18830. int
  18831. main ()
  18832. {
  18833. if (sizeof (pid_t))
  18834. return 0;
  18835. ;
  18836. return 0;
  18837. }
  18838. _ACEOF
  18839. rm -f conftest.$ac_objext
  18840. if { (ac_try="$ac_compile"
  18841. case "(($ac_try" in
  18842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18843. *) ac_try_echo=$ac_try;;
  18844. esac
  18845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18846. $as_echo "$ac_try_echo") >&5
  18847. (eval "$ac_compile") 2>conftest.er1
  18848. ac_status=$?
  18849. grep -v '^ *+' conftest.er1 >conftest.err
  18850. rm -f conftest.er1
  18851. cat conftest.err >&5
  18852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18853. (exit $ac_status); } && {
  18854. test -z "$ac_c_werror_flag" ||
  18855. test ! -s conftest.err
  18856. } && test -s conftest.$ac_objext; then
  18857. cat >conftest.$ac_ext <<_ACEOF
  18858. /* confdefs.h. */
  18859. _ACEOF
  18860. cat confdefs.h >>conftest.$ac_ext
  18861. cat >>conftest.$ac_ext <<_ACEOF
  18862. /* end confdefs.h. */
  18863. $ac_includes_default
  18864. int
  18865. main ()
  18866. {
  18867. if (sizeof ((pid_t)))
  18868. return 0;
  18869. ;
  18870. return 0;
  18871. }
  18872. _ACEOF
  18873. rm -f conftest.$ac_objext
  18874. if { (ac_try="$ac_compile"
  18875. case "(($ac_try" in
  18876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18877. *) ac_try_echo=$ac_try;;
  18878. esac
  18879. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18880. $as_echo "$ac_try_echo") >&5
  18881. (eval "$ac_compile") 2>conftest.er1
  18882. ac_status=$?
  18883. grep -v '^ *+' conftest.er1 >conftest.err
  18884. rm -f conftest.er1
  18885. cat conftest.err >&5
  18886. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18887. (exit $ac_status); } && {
  18888. test -z "$ac_c_werror_flag" ||
  18889. test ! -s conftest.err
  18890. } && test -s conftest.$ac_objext; then
  18891. :
  18892. else
  18893. $as_echo "$as_me: failed program was:" >&5
  18894. sed 's/^/| /' conftest.$ac_ext >&5
  18895. ac_cv_type_pid_t=yes
  18896. fi
  18897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18898. else
  18899. $as_echo "$as_me: failed program was:" >&5
  18900. sed 's/^/| /' conftest.$ac_ext >&5
  18901. fi
  18902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18903. fi
  18904. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  18905. $as_echo "$ac_cv_type_pid_t" >&6; }
  18906. if test "x$ac_cv_type_pid_t" = x""yes; then
  18907. :
  18908. else
  18909. cat >>confdefs.h <<_ACEOF
  18910. #define pid_t int
  18911. _ACEOF
  18912. fi
  18913. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  18914. $as_echo_n "checking for size_t... " >&6; }
  18915. if test "${ac_cv_type_size_t+set}" = set; then
  18916. $as_echo_n "(cached) " >&6
  18917. else
  18918. ac_cv_type_size_t=no
  18919. cat >conftest.$ac_ext <<_ACEOF
  18920. /* confdefs.h. */
  18921. _ACEOF
  18922. cat confdefs.h >>conftest.$ac_ext
  18923. cat >>conftest.$ac_ext <<_ACEOF
  18924. /* end confdefs.h. */
  18925. $ac_includes_default
  18926. int
  18927. main ()
  18928. {
  18929. if (sizeof (size_t))
  18930. return 0;
  18931. ;
  18932. return 0;
  18933. }
  18934. _ACEOF
  18935. rm -f conftest.$ac_objext
  18936. if { (ac_try="$ac_compile"
  18937. case "(($ac_try" in
  18938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18939. *) ac_try_echo=$ac_try;;
  18940. esac
  18941. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18942. $as_echo "$ac_try_echo") >&5
  18943. (eval "$ac_compile") 2>conftest.er1
  18944. ac_status=$?
  18945. grep -v '^ *+' conftest.er1 >conftest.err
  18946. rm -f conftest.er1
  18947. cat conftest.err >&5
  18948. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18949. (exit $ac_status); } && {
  18950. test -z "$ac_c_werror_flag" ||
  18951. test ! -s conftest.err
  18952. } && test -s conftest.$ac_objext; then
  18953. cat >conftest.$ac_ext <<_ACEOF
  18954. /* confdefs.h. */
  18955. _ACEOF
  18956. cat confdefs.h >>conftest.$ac_ext
  18957. cat >>conftest.$ac_ext <<_ACEOF
  18958. /* end confdefs.h. */
  18959. $ac_includes_default
  18960. int
  18961. main ()
  18962. {
  18963. if (sizeof ((size_t)))
  18964. return 0;
  18965. ;
  18966. return 0;
  18967. }
  18968. _ACEOF
  18969. rm -f conftest.$ac_objext
  18970. if { (ac_try="$ac_compile"
  18971. case "(($ac_try" in
  18972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18973. *) ac_try_echo=$ac_try;;
  18974. esac
  18975. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18976. $as_echo "$ac_try_echo") >&5
  18977. (eval "$ac_compile") 2>conftest.er1
  18978. ac_status=$?
  18979. grep -v '^ *+' conftest.er1 >conftest.err
  18980. rm -f conftest.er1
  18981. cat conftest.err >&5
  18982. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18983. (exit $ac_status); } && {
  18984. test -z "$ac_c_werror_flag" ||
  18985. test ! -s conftest.err
  18986. } && test -s conftest.$ac_objext; then
  18987. :
  18988. else
  18989. $as_echo "$as_me: failed program was:" >&5
  18990. sed 's/^/| /' conftest.$ac_ext >&5
  18991. ac_cv_type_size_t=yes
  18992. fi
  18993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18994. else
  18995. $as_echo "$as_me: failed program was:" >&5
  18996. sed 's/^/| /' conftest.$ac_ext >&5
  18997. fi
  18998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18999. fi
  19000. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  19001. $as_echo "$ac_cv_type_size_t" >&6; }
  19002. if test "x$ac_cv_type_size_t" = x""yes; then
  19003. :
  19004. else
  19005. cat >>confdefs.h <<_ACEOF
  19006. #define size_t unsigned int
  19007. _ACEOF
  19008. fi
  19009. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  19010. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  19011. if test "${ac_cv_header_time+set}" = set; then
  19012. $as_echo_n "(cached) " >&6
  19013. else
  19014. cat >conftest.$ac_ext <<_ACEOF
  19015. /* confdefs.h. */
  19016. _ACEOF
  19017. cat confdefs.h >>conftest.$ac_ext
  19018. cat >>conftest.$ac_ext <<_ACEOF
  19019. /* end confdefs.h. */
  19020. #include <sys/types.h>
  19021. #include <sys/time.h>
  19022. #include <time.h>
  19023. int
  19024. main ()
  19025. {
  19026. if ((struct tm *) 0)
  19027. return 0;
  19028. ;
  19029. return 0;
  19030. }
  19031. _ACEOF
  19032. rm -f conftest.$ac_objext
  19033. if { (ac_try="$ac_compile"
  19034. case "(($ac_try" in
  19035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19036. *) ac_try_echo=$ac_try;;
  19037. esac
  19038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19039. $as_echo "$ac_try_echo") >&5
  19040. (eval "$ac_compile") 2>conftest.er1
  19041. ac_status=$?
  19042. grep -v '^ *+' conftest.er1 >conftest.err
  19043. rm -f conftest.er1
  19044. cat conftest.err >&5
  19045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19046. (exit $ac_status); } && {
  19047. test -z "$ac_c_werror_flag" ||
  19048. test ! -s conftest.err
  19049. } && test -s conftest.$ac_objext; then
  19050. ac_cv_header_time=yes
  19051. else
  19052. $as_echo "$as_me: failed program was:" >&5
  19053. sed 's/^/| /' conftest.$ac_ext >&5
  19054. ac_cv_header_time=no
  19055. fi
  19056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19057. fi
  19058. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  19059. $as_echo "$ac_cv_header_time" >&6; }
  19060. if test $ac_cv_header_time = yes; then
  19061. cat >>confdefs.h <<\_ACEOF
  19062. #define TIME_WITH_SYS_TIME 1
  19063. _ACEOF
  19064. fi
  19065. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  19066. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  19067. if test "${ac_cv_struct_tm+set}" = set; then
  19068. $as_echo_n "(cached) " >&6
  19069. else
  19070. cat >conftest.$ac_ext <<_ACEOF
  19071. /* confdefs.h. */
  19072. _ACEOF
  19073. cat confdefs.h >>conftest.$ac_ext
  19074. cat >>conftest.$ac_ext <<_ACEOF
  19075. /* end confdefs.h. */
  19076. #include <sys/types.h>
  19077. #include <time.h>
  19078. int
  19079. main ()
  19080. {
  19081. struct tm tm;
  19082. int *p = &tm.tm_sec;
  19083. return !p;
  19084. ;
  19085. return 0;
  19086. }
  19087. _ACEOF
  19088. rm -f conftest.$ac_objext
  19089. if { (ac_try="$ac_compile"
  19090. case "(($ac_try" in
  19091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19092. *) ac_try_echo=$ac_try;;
  19093. esac
  19094. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19095. $as_echo "$ac_try_echo") >&5
  19096. (eval "$ac_compile") 2>conftest.er1
  19097. ac_status=$?
  19098. grep -v '^ *+' conftest.er1 >conftest.err
  19099. rm -f conftest.er1
  19100. cat conftest.err >&5
  19101. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19102. (exit $ac_status); } && {
  19103. test -z "$ac_c_werror_flag" ||
  19104. test ! -s conftest.err
  19105. } && test -s conftest.$ac_objext; then
  19106. ac_cv_struct_tm=time.h
  19107. else
  19108. $as_echo "$as_me: failed program was:" >&5
  19109. sed 's/^/| /' conftest.$ac_ext >&5
  19110. ac_cv_struct_tm=sys/time.h
  19111. fi
  19112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19113. fi
  19114. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  19115. $as_echo "$ac_cv_struct_tm" >&6; }
  19116. if test $ac_cv_struct_tm = sys/time.h; then
  19117. cat >>confdefs.h <<\_ACEOF
  19118. #define TM_IN_SYS_TIME 1
  19119. _ACEOF
  19120. fi
  19121. # Checks for library functions.
  19122. for ac_header in unistd.h
  19123. do
  19124. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19125. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19126. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19127. $as_echo_n "checking for $ac_header... " >&6; }
  19128. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19129. $as_echo_n "(cached) " >&6
  19130. fi
  19131. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19132. $as_echo "$as_val"'`
  19133. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19134. $as_echo "$ac_res" >&6; }
  19135. else
  19136. # Is the header compilable?
  19137. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19138. $as_echo_n "checking $ac_header usability... " >&6; }
  19139. cat >conftest.$ac_ext <<_ACEOF
  19140. /* confdefs.h. */
  19141. _ACEOF
  19142. cat confdefs.h >>conftest.$ac_ext
  19143. cat >>conftest.$ac_ext <<_ACEOF
  19144. /* end confdefs.h. */
  19145. $ac_includes_default
  19146. #include <$ac_header>
  19147. _ACEOF
  19148. rm -f conftest.$ac_objext
  19149. if { (ac_try="$ac_compile"
  19150. case "(($ac_try" in
  19151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19152. *) ac_try_echo=$ac_try;;
  19153. esac
  19154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19155. $as_echo "$ac_try_echo") >&5
  19156. (eval "$ac_compile") 2>conftest.er1
  19157. ac_status=$?
  19158. grep -v '^ *+' conftest.er1 >conftest.err
  19159. rm -f conftest.er1
  19160. cat conftest.err >&5
  19161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19162. (exit $ac_status); } && {
  19163. test -z "$ac_c_werror_flag" ||
  19164. test ! -s conftest.err
  19165. } && test -s conftest.$ac_objext; then
  19166. ac_header_compiler=yes
  19167. else
  19168. $as_echo "$as_me: failed program was:" >&5
  19169. sed 's/^/| /' conftest.$ac_ext >&5
  19170. ac_header_compiler=no
  19171. fi
  19172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19173. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19174. $as_echo "$ac_header_compiler" >&6; }
  19175. # Is the header present?
  19176. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19177. $as_echo_n "checking $ac_header presence... " >&6; }
  19178. cat >conftest.$ac_ext <<_ACEOF
  19179. /* confdefs.h. */
  19180. _ACEOF
  19181. cat confdefs.h >>conftest.$ac_ext
  19182. cat >>conftest.$ac_ext <<_ACEOF
  19183. /* end confdefs.h. */
  19184. #include <$ac_header>
  19185. _ACEOF
  19186. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19187. case "(($ac_try" in
  19188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19189. *) ac_try_echo=$ac_try;;
  19190. esac
  19191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19192. $as_echo "$ac_try_echo") >&5
  19193. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19194. ac_status=$?
  19195. grep -v '^ *+' conftest.er1 >conftest.err
  19196. rm -f conftest.er1
  19197. cat conftest.err >&5
  19198. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19199. (exit $ac_status); } >/dev/null && {
  19200. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19201. test ! -s conftest.err
  19202. }; then
  19203. ac_header_preproc=yes
  19204. else
  19205. $as_echo "$as_me: failed program was:" >&5
  19206. sed 's/^/| /' conftest.$ac_ext >&5
  19207. ac_header_preproc=no
  19208. fi
  19209. rm -f conftest.err conftest.$ac_ext
  19210. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19211. $as_echo "$ac_header_preproc" >&6; }
  19212. # So? What about this header?
  19213. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19214. yes:no: )
  19215. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19216. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19217. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19218. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19219. ac_header_preproc=yes
  19220. ;;
  19221. no:yes:* )
  19222. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19223. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19224. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19225. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19226. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19227. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19228. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19229. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19230. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19231. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19232. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19233. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19234. ( cat <<\_ASBOX
  19235. ## ------------------------------------------ ##
  19236. ## Report this to http://bugzilla.redhat.com/ ##
  19237. ## ------------------------------------------ ##
  19238. _ASBOX
  19239. ) | sed "s/^/$as_me: WARNING: /" >&2
  19240. ;;
  19241. esac
  19242. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19243. $as_echo_n "checking for $ac_header... " >&6; }
  19244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19245. $as_echo_n "(cached) " >&6
  19246. else
  19247. eval "$as_ac_Header=\$ac_header_preproc"
  19248. fi
  19249. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19250. $as_echo "$as_val"'`
  19251. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19252. $as_echo "$ac_res" >&6; }
  19253. fi
  19254. as_val=`eval 'as_val=${'$as_ac_Header'}
  19255. $as_echo "$as_val"'`
  19256. if test "x$as_val" = x""yes; then
  19257. cat >>confdefs.h <<_ACEOF
  19258. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19259. _ACEOF
  19260. fi
  19261. done
  19262. { $as_echo "$as_me:$LINENO: checking for working chown" >&5
  19263. $as_echo_n "checking for working chown... " >&6; }
  19264. if test "${ac_cv_func_chown_works+set}" = set; then
  19265. $as_echo_n "(cached) " >&6
  19266. else
  19267. if test "$cross_compiling" = yes; then
  19268. ac_cv_func_chown_works=no
  19269. else
  19270. cat >conftest.$ac_ext <<_ACEOF
  19271. /* confdefs.h. */
  19272. _ACEOF
  19273. cat confdefs.h >>conftest.$ac_ext
  19274. cat >>conftest.$ac_ext <<_ACEOF
  19275. /* end confdefs.h. */
  19276. $ac_includes_default
  19277. #include <fcntl.h>
  19278. int
  19279. main ()
  19280. {
  19281. char *f = "conftest.chown";
  19282. struct stat before, after;
  19283. if (creat (f, 0600) < 0)
  19284. return 1;
  19285. if (stat (f, &before) < 0)
  19286. return 1;
  19287. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  19288. return 1;
  19289. if (stat (f, &after) < 0)
  19290. return 1;
  19291. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  19292. ;
  19293. return 0;
  19294. }
  19295. _ACEOF
  19296. rm -f conftest$ac_exeext
  19297. if { (ac_try="$ac_link"
  19298. case "(($ac_try" in
  19299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19300. *) ac_try_echo=$ac_try;;
  19301. esac
  19302. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19303. $as_echo "$ac_try_echo") >&5
  19304. (eval "$ac_link") 2>&5
  19305. ac_status=$?
  19306. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19307. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19308. { (case "(($ac_try" in
  19309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19310. *) ac_try_echo=$ac_try;;
  19311. esac
  19312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19313. $as_echo "$ac_try_echo") >&5
  19314. (eval "$ac_try") 2>&5
  19315. ac_status=$?
  19316. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19317. (exit $ac_status); }; }; then
  19318. ac_cv_func_chown_works=yes
  19319. else
  19320. $as_echo "$as_me: program exited with status $ac_status" >&5
  19321. $as_echo "$as_me: failed program was:" >&5
  19322. sed 's/^/| /' conftest.$ac_ext >&5
  19323. ( exit $ac_status )
  19324. ac_cv_func_chown_works=no
  19325. fi
  19326. rm -rf conftest.dSYM
  19327. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19328. fi
  19329. rm -f conftest.chown
  19330. fi
  19331. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  19332. $as_echo "$ac_cv_func_chown_works" >&6; }
  19333. if test $ac_cv_func_chown_works = yes; then
  19334. cat >>confdefs.h <<\_ACEOF
  19335. #define HAVE_CHOWN 1
  19336. _ACEOF
  19337. fi
  19338. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  19339. $as_echo_n "checking whether closedir returns void... " >&6; }
  19340. if test "${ac_cv_func_closedir_void+set}" = set; then
  19341. $as_echo_n "(cached) " >&6
  19342. else
  19343. if test "$cross_compiling" = yes; then
  19344. ac_cv_func_closedir_void=yes
  19345. else
  19346. cat >conftest.$ac_ext <<_ACEOF
  19347. /* confdefs.h. */
  19348. _ACEOF
  19349. cat confdefs.h >>conftest.$ac_ext
  19350. cat >>conftest.$ac_ext <<_ACEOF
  19351. /* end confdefs.h. */
  19352. $ac_includes_default
  19353. #include <$ac_header_dirent>
  19354. #ifndef __cplusplus
  19355. int closedir ();
  19356. #endif
  19357. int
  19358. main ()
  19359. {
  19360. return closedir (opendir (".")) != 0;
  19361. ;
  19362. return 0;
  19363. }
  19364. _ACEOF
  19365. rm -f conftest$ac_exeext
  19366. if { (ac_try="$ac_link"
  19367. case "(($ac_try" in
  19368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19369. *) ac_try_echo=$ac_try;;
  19370. esac
  19371. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19372. $as_echo "$ac_try_echo") >&5
  19373. (eval "$ac_link") 2>&5
  19374. ac_status=$?
  19375. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19376. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19377. { (case "(($ac_try" in
  19378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19379. *) ac_try_echo=$ac_try;;
  19380. esac
  19381. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19382. $as_echo "$ac_try_echo") >&5
  19383. (eval "$ac_try") 2>&5
  19384. ac_status=$?
  19385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19386. (exit $ac_status); }; }; then
  19387. ac_cv_func_closedir_void=no
  19388. else
  19389. $as_echo "$as_me: program exited with status $ac_status" >&5
  19390. $as_echo "$as_me: failed program was:" >&5
  19391. sed 's/^/| /' conftest.$ac_ext >&5
  19392. ( exit $ac_status )
  19393. ac_cv_func_closedir_void=yes
  19394. fi
  19395. rm -rf conftest.dSYM
  19396. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19397. fi
  19398. fi
  19399. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  19400. $as_echo "$ac_cv_func_closedir_void" >&6; }
  19401. if test $ac_cv_func_closedir_void = yes; then
  19402. cat >>confdefs.h <<\_ACEOF
  19403. #define CLOSEDIR_VOID 1
  19404. _ACEOF
  19405. fi
  19406. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  19407. $as_echo_n "checking for error_at_line... " >&6; }
  19408. if test "${ac_cv_lib_error_at_line+set}" = set; then
  19409. $as_echo_n "(cached) " >&6
  19410. else
  19411. cat >conftest.$ac_ext <<_ACEOF
  19412. /* confdefs.h. */
  19413. _ACEOF
  19414. cat confdefs.h >>conftest.$ac_ext
  19415. cat >>conftest.$ac_ext <<_ACEOF
  19416. /* end confdefs.h. */
  19417. #include <error.h>
  19418. int
  19419. main ()
  19420. {
  19421. error_at_line (0, 0, "", 0, "an error occurred");
  19422. ;
  19423. return 0;
  19424. }
  19425. _ACEOF
  19426. rm -f conftest.$ac_objext conftest$ac_exeext
  19427. if { (ac_try="$ac_link"
  19428. case "(($ac_try" in
  19429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19430. *) ac_try_echo=$ac_try;;
  19431. esac
  19432. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19433. $as_echo "$ac_try_echo") >&5
  19434. (eval "$ac_link") 2>conftest.er1
  19435. ac_status=$?
  19436. grep -v '^ *+' conftest.er1 >conftest.err
  19437. rm -f conftest.er1
  19438. cat conftest.err >&5
  19439. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19440. (exit $ac_status); } && {
  19441. test -z "$ac_c_werror_flag" ||
  19442. test ! -s conftest.err
  19443. } && test -s conftest$ac_exeext && {
  19444. test "$cross_compiling" = yes ||
  19445. $as_test_x conftest$ac_exeext
  19446. }; then
  19447. ac_cv_lib_error_at_line=yes
  19448. else
  19449. $as_echo "$as_me: failed program was:" >&5
  19450. sed 's/^/| /' conftest.$ac_ext >&5
  19451. ac_cv_lib_error_at_line=no
  19452. fi
  19453. rm -rf conftest.dSYM
  19454. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19455. conftest$ac_exeext conftest.$ac_ext
  19456. fi
  19457. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  19458. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  19459. if test $ac_cv_lib_error_at_line = no; then
  19460. case " $LIBOBJS " in
  19461. *" error.$ac_objext "* ) ;;
  19462. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  19463. ;;
  19464. esac
  19465. fi
  19466. for ac_header in vfork.h
  19467. do
  19468. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19469. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19470. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19471. $as_echo_n "checking for $ac_header... " >&6; }
  19472. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19473. $as_echo_n "(cached) " >&6
  19474. fi
  19475. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19476. $as_echo "$as_val"'`
  19477. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19478. $as_echo "$ac_res" >&6; }
  19479. else
  19480. # Is the header compilable?
  19481. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19482. $as_echo_n "checking $ac_header usability... " >&6; }
  19483. cat >conftest.$ac_ext <<_ACEOF
  19484. /* confdefs.h. */
  19485. _ACEOF
  19486. cat confdefs.h >>conftest.$ac_ext
  19487. cat >>conftest.$ac_ext <<_ACEOF
  19488. /* end confdefs.h. */
  19489. $ac_includes_default
  19490. #include <$ac_header>
  19491. _ACEOF
  19492. rm -f conftest.$ac_objext
  19493. if { (ac_try="$ac_compile"
  19494. case "(($ac_try" in
  19495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19496. *) ac_try_echo=$ac_try;;
  19497. esac
  19498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19499. $as_echo "$ac_try_echo") >&5
  19500. (eval "$ac_compile") 2>conftest.er1
  19501. ac_status=$?
  19502. grep -v '^ *+' conftest.er1 >conftest.err
  19503. rm -f conftest.er1
  19504. cat conftest.err >&5
  19505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19506. (exit $ac_status); } && {
  19507. test -z "$ac_c_werror_flag" ||
  19508. test ! -s conftest.err
  19509. } && test -s conftest.$ac_objext; then
  19510. ac_header_compiler=yes
  19511. else
  19512. $as_echo "$as_me: failed program was:" >&5
  19513. sed 's/^/| /' conftest.$ac_ext >&5
  19514. ac_header_compiler=no
  19515. fi
  19516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19517. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19518. $as_echo "$ac_header_compiler" >&6; }
  19519. # Is the header present?
  19520. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19521. $as_echo_n "checking $ac_header presence... " >&6; }
  19522. cat >conftest.$ac_ext <<_ACEOF
  19523. /* confdefs.h. */
  19524. _ACEOF
  19525. cat confdefs.h >>conftest.$ac_ext
  19526. cat >>conftest.$ac_ext <<_ACEOF
  19527. /* end confdefs.h. */
  19528. #include <$ac_header>
  19529. _ACEOF
  19530. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19531. case "(($ac_try" in
  19532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19533. *) ac_try_echo=$ac_try;;
  19534. esac
  19535. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19536. $as_echo "$ac_try_echo") >&5
  19537. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19538. ac_status=$?
  19539. grep -v '^ *+' conftest.er1 >conftest.err
  19540. rm -f conftest.er1
  19541. cat conftest.err >&5
  19542. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19543. (exit $ac_status); } >/dev/null && {
  19544. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19545. test ! -s conftest.err
  19546. }; then
  19547. ac_header_preproc=yes
  19548. else
  19549. $as_echo "$as_me: failed program was:" >&5
  19550. sed 's/^/| /' conftest.$ac_ext >&5
  19551. ac_header_preproc=no
  19552. fi
  19553. rm -f conftest.err conftest.$ac_ext
  19554. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19555. $as_echo "$ac_header_preproc" >&6; }
  19556. # So? What about this header?
  19557. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19558. yes:no: )
  19559. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19560. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19561. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19562. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19563. ac_header_preproc=yes
  19564. ;;
  19565. no:yes:* )
  19566. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19567. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19568. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19569. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19570. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19571. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19572. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19573. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19574. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19575. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19576. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19577. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19578. ( cat <<\_ASBOX
  19579. ## ------------------------------------------ ##
  19580. ## Report this to http://bugzilla.redhat.com/ ##
  19581. ## ------------------------------------------ ##
  19582. _ASBOX
  19583. ) | sed "s/^/$as_me: WARNING: /" >&2
  19584. ;;
  19585. esac
  19586. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  19587. $as_echo_n "checking for $ac_header... " >&6; }
  19588. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  19589. $as_echo_n "(cached) " >&6
  19590. else
  19591. eval "$as_ac_Header=\$ac_header_preproc"
  19592. fi
  19593. ac_res=`eval 'as_val=${'$as_ac_Header'}
  19594. $as_echo "$as_val"'`
  19595. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19596. $as_echo "$ac_res" >&6; }
  19597. fi
  19598. as_val=`eval 'as_val=${'$as_ac_Header'}
  19599. $as_echo "$as_val"'`
  19600. if test "x$as_val" = x""yes; then
  19601. cat >>confdefs.h <<_ACEOF
  19602. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19603. _ACEOF
  19604. fi
  19605. done
  19606. for ac_func in fork vfork
  19607. do
  19608. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19609. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19610. $as_echo_n "checking for $ac_func... " >&6; }
  19611. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19612. $as_echo_n "(cached) " >&6
  19613. else
  19614. cat >conftest.$ac_ext <<_ACEOF
  19615. /* confdefs.h. */
  19616. _ACEOF
  19617. cat confdefs.h >>conftest.$ac_ext
  19618. cat >>conftest.$ac_ext <<_ACEOF
  19619. /* end confdefs.h. */
  19620. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19621. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19622. #define $ac_func innocuous_$ac_func
  19623. /* System header to define __stub macros and hopefully few prototypes,
  19624. which can conflict with char $ac_func (); below.
  19625. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19626. <limits.h> exists even on freestanding compilers. */
  19627. #ifdef __STDC__
  19628. # include <limits.h>
  19629. #else
  19630. # include <assert.h>
  19631. #endif
  19632. #undef $ac_func
  19633. /* Override any GCC internal prototype to avoid an error.
  19634. Use char because int might match the return type of a GCC
  19635. builtin and then its argument prototype would still apply. */
  19636. #ifdef __cplusplus
  19637. extern "C"
  19638. #endif
  19639. char $ac_func ();
  19640. /* The GNU C library defines this for functions which it implements
  19641. to always fail with ENOSYS. Some functions are actually named
  19642. something starting with __ and the normal name is an alias. */
  19643. #if defined __stub_$ac_func || defined __stub___$ac_func
  19644. choke me
  19645. #endif
  19646. int
  19647. main ()
  19648. {
  19649. return $ac_func ();
  19650. ;
  19651. return 0;
  19652. }
  19653. _ACEOF
  19654. rm -f conftest.$ac_objext conftest$ac_exeext
  19655. if { (ac_try="$ac_link"
  19656. case "(($ac_try" in
  19657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19658. *) ac_try_echo=$ac_try;;
  19659. esac
  19660. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19661. $as_echo "$ac_try_echo") >&5
  19662. (eval "$ac_link") 2>conftest.er1
  19663. ac_status=$?
  19664. grep -v '^ *+' conftest.er1 >conftest.err
  19665. rm -f conftest.er1
  19666. cat conftest.err >&5
  19667. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19668. (exit $ac_status); } && {
  19669. test -z "$ac_c_werror_flag" ||
  19670. test ! -s conftest.err
  19671. } && test -s conftest$ac_exeext && {
  19672. test "$cross_compiling" = yes ||
  19673. $as_test_x conftest$ac_exeext
  19674. }; then
  19675. eval "$as_ac_var=yes"
  19676. else
  19677. $as_echo "$as_me: failed program was:" >&5
  19678. sed 's/^/| /' conftest.$ac_ext >&5
  19679. eval "$as_ac_var=no"
  19680. fi
  19681. rm -rf conftest.dSYM
  19682. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19683. conftest$ac_exeext conftest.$ac_ext
  19684. fi
  19685. ac_res=`eval 'as_val=${'$as_ac_var'}
  19686. $as_echo "$as_val"'`
  19687. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19688. $as_echo "$ac_res" >&6; }
  19689. as_val=`eval 'as_val=${'$as_ac_var'}
  19690. $as_echo "$as_val"'`
  19691. if test "x$as_val" = x""yes; then
  19692. cat >>confdefs.h <<_ACEOF
  19693. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19694. _ACEOF
  19695. fi
  19696. done
  19697. if test "x$ac_cv_func_fork" = xyes; then
  19698. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  19699. $as_echo_n "checking for working fork... " >&6; }
  19700. if test "${ac_cv_func_fork_works+set}" = set; then
  19701. $as_echo_n "(cached) " >&6
  19702. else
  19703. if test "$cross_compiling" = yes; then
  19704. ac_cv_func_fork_works=cross
  19705. else
  19706. cat >conftest.$ac_ext <<_ACEOF
  19707. /* confdefs.h. */
  19708. _ACEOF
  19709. cat confdefs.h >>conftest.$ac_ext
  19710. cat >>conftest.$ac_ext <<_ACEOF
  19711. /* end confdefs.h. */
  19712. $ac_includes_default
  19713. int
  19714. main ()
  19715. {
  19716. /* By Ruediger Kuhlmann. */
  19717. return fork () < 0;
  19718. ;
  19719. return 0;
  19720. }
  19721. _ACEOF
  19722. rm -f conftest$ac_exeext
  19723. if { (ac_try="$ac_link"
  19724. case "(($ac_try" in
  19725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19726. *) ac_try_echo=$ac_try;;
  19727. esac
  19728. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19729. $as_echo "$ac_try_echo") >&5
  19730. (eval "$ac_link") 2>&5
  19731. ac_status=$?
  19732. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19733. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19734. { (case "(($ac_try" in
  19735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19736. *) ac_try_echo=$ac_try;;
  19737. esac
  19738. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19739. $as_echo "$ac_try_echo") >&5
  19740. (eval "$ac_try") 2>&5
  19741. ac_status=$?
  19742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19743. (exit $ac_status); }; }; then
  19744. ac_cv_func_fork_works=yes
  19745. else
  19746. $as_echo "$as_me: program exited with status $ac_status" >&5
  19747. $as_echo "$as_me: failed program was:" >&5
  19748. sed 's/^/| /' conftest.$ac_ext >&5
  19749. ( exit $ac_status )
  19750. ac_cv_func_fork_works=no
  19751. fi
  19752. rm -rf conftest.dSYM
  19753. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19754. fi
  19755. fi
  19756. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  19757. $as_echo "$ac_cv_func_fork_works" >&6; }
  19758. else
  19759. ac_cv_func_fork_works=$ac_cv_func_fork
  19760. fi
  19761. if test "x$ac_cv_func_fork_works" = xcross; then
  19762. case $host in
  19763. *-*-amigaos* | *-*-msdosdjgpp*)
  19764. # Override, as these systems have only a dummy fork() stub
  19765. ac_cv_func_fork_works=no
  19766. ;;
  19767. *)
  19768. ac_cv_func_fork_works=yes
  19769. ;;
  19770. esac
  19771. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  19772. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  19773. fi
  19774. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19775. if test "x$ac_cv_func_vfork" = xyes; then
  19776. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  19777. $as_echo_n "checking for working vfork... " >&6; }
  19778. if test "${ac_cv_func_vfork_works+set}" = set; then
  19779. $as_echo_n "(cached) " >&6
  19780. else
  19781. if test "$cross_compiling" = yes; then
  19782. ac_cv_func_vfork_works=cross
  19783. else
  19784. cat >conftest.$ac_ext <<_ACEOF
  19785. /* confdefs.h. */
  19786. _ACEOF
  19787. cat confdefs.h >>conftest.$ac_ext
  19788. cat >>conftest.$ac_ext <<_ACEOF
  19789. /* end confdefs.h. */
  19790. /* Thanks to Paul Eggert for this test. */
  19791. $ac_includes_default
  19792. #include <sys/wait.h>
  19793. #ifdef HAVE_VFORK_H
  19794. # include <vfork.h>
  19795. #endif
  19796. /* On some sparc systems, changes by the child to local and incoming
  19797. argument registers are propagated back to the parent. The compiler
  19798. is told about this with #include <vfork.h>, but some compilers
  19799. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  19800. static variable whose address is put into a register that is
  19801. clobbered by the vfork. */
  19802. static void
  19803. #ifdef __cplusplus
  19804. sparc_address_test (int arg)
  19805. # else
  19806. sparc_address_test (arg) int arg;
  19807. #endif
  19808. {
  19809. static pid_t child;
  19810. if (!child) {
  19811. child = vfork ();
  19812. if (child < 0) {
  19813. perror ("vfork");
  19814. _exit(2);
  19815. }
  19816. if (!child) {
  19817. arg = getpid();
  19818. write(-1, "", 0);
  19819. _exit (arg);
  19820. }
  19821. }
  19822. }
  19823. int
  19824. main ()
  19825. {
  19826. pid_t parent = getpid ();
  19827. pid_t child;
  19828. sparc_address_test (0);
  19829. child = vfork ();
  19830. if (child == 0) {
  19831. /* Here is another test for sparc vfork register problems. This
  19832. test uses lots of local variables, at least as many local
  19833. variables as main has allocated so far including compiler
  19834. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  19835. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  19836. reuse the register of parent for one of the local variables,
  19837. since it will think that parent can't possibly be used any more
  19838. in this routine. Assigning to the local variable will thus
  19839. munge parent in the parent process. */
  19840. pid_t
  19841. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  19842. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  19843. /* Convince the compiler that p..p7 are live; otherwise, it might
  19844. use the same hardware register for all 8 local variables. */
  19845. if (p != p1 || p != p2 || p != p3 || p != p4
  19846. || p != p5 || p != p6 || p != p7)
  19847. _exit(1);
  19848. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  19849. from child file descriptors. If the child closes a descriptor
  19850. before it execs or exits, this munges the parent's descriptor
  19851. as well. Test for this by closing stdout in the child. */
  19852. _exit(close(fileno(stdout)) != 0);
  19853. } else {
  19854. int status;
  19855. struct stat st;
  19856. while (wait(&status) != child)
  19857. ;
  19858. return (
  19859. /* Was there some problem with vforking? */
  19860. child < 0
  19861. /* Did the child fail? (This shouldn't happen.) */
  19862. || status
  19863. /* Did the vfork/compiler bug occur? */
  19864. || parent != getpid()
  19865. /* Did the file descriptor bug occur? */
  19866. || fstat(fileno(stdout), &st) != 0
  19867. );
  19868. }
  19869. }
  19870. _ACEOF
  19871. rm -f conftest$ac_exeext
  19872. if { (ac_try="$ac_link"
  19873. case "(($ac_try" in
  19874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19875. *) ac_try_echo=$ac_try;;
  19876. esac
  19877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19878. $as_echo "$ac_try_echo") >&5
  19879. (eval "$ac_link") 2>&5
  19880. ac_status=$?
  19881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19882. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19883. { (case "(($ac_try" in
  19884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19885. *) ac_try_echo=$ac_try;;
  19886. esac
  19887. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19888. $as_echo "$ac_try_echo") >&5
  19889. (eval "$ac_try") 2>&5
  19890. ac_status=$?
  19891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19892. (exit $ac_status); }; }; then
  19893. ac_cv_func_vfork_works=yes
  19894. else
  19895. $as_echo "$as_me: program exited with status $ac_status" >&5
  19896. $as_echo "$as_me: failed program was:" >&5
  19897. sed 's/^/| /' conftest.$ac_ext >&5
  19898. ( exit $ac_status )
  19899. ac_cv_func_vfork_works=no
  19900. fi
  19901. rm -rf conftest.dSYM
  19902. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19903. fi
  19904. fi
  19905. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  19906. $as_echo "$ac_cv_func_vfork_works" >&6; }
  19907. fi;
  19908. if test "x$ac_cv_func_fork_works" = xcross; then
  19909. ac_cv_func_vfork_works=$ac_cv_func_vfork
  19910. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  19911. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  19912. fi
  19913. if test "x$ac_cv_func_vfork_works" = xyes; then
  19914. cat >>confdefs.h <<\_ACEOF
  19915. #define HAVE_WORKING_VFORK 1
  19916. _ACEOF
  19917. else
  19918. cat >>confdefs.h <<\_ACEOF
  19919. #define vfork fork
  19920. _ACEOF
  19921. fi
  19922. if test "x$ac_cv_func_fork_works" = xyes; then
  19923. cat >>confdefs.h <<\_ACEOF
  19924. #define HAVE_WORKING_FORK 1
  19925. _ACEOF
  19926. fi
  19927. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  19928. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  19929. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  19930. $as_echo_n "(cached) " >&6
  19931. else
  19932. rm -f conftest.sym conftest.file
  19933. echo >conftest.file
  19934. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  19935. if test "$cross_compiling" = yes; then
  19936. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19937. else
  19938. cat >conftest.$ac_ext <<_ACEOF
  19939. /* confdefs.h. */
  19940. _ACEOF
  19941. cat confdefs.h >>conftest.$ac_ext
  19942. cat >>conftest.$ac_ext <<_ACEOF
  19943. /* end confdefs.h. */
  19944. $ac_includes_default
  19945. int
  19946. main ()
  19947. {
  19948. struct stat sbuf;
  19949. /* Linux will dereference the symlink and fail.
  19950. That is better in the sense that it means we will not
  19951. have to compile and use the lstat wrapper. */
  19952. return lstat ("conftest.sym/", &sbuf) == 0;
  19953. ;
  19954. return 0;
  19955. }
  19956. _ACEOF
  19957. rm -f conftest$ac_exeext
  19958. if { (ac_try="$ac_link"
  19959. case "(($ac_try" in
  19960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19961. *) ac_try_echo=$ac_try;;
  19962. esac
  19963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19964. $as_echo "$ac_try_echo") >&5
  19965. (eval "$ac_link") 2>&5
  19966. ac_status=$?
  19967. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19968. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19969. { (case "(($ac_try" in
  19970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19971. *) ac_try_echo=$ac_try;;
  19972. esac
  19973. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19974. $as_echo "$ac_try_echo") >&5
  19975. (eval "$ac_try") 2>&5
  19976. ac_status=$?
  19977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19978. (exit $ac_status); }; }; then
  19979. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  19980. else
  19981. $as_echo "$as_me: program exited with status $ac_status" >&5
  19982. $as_echo "$as_me: failed program was:" >&5
  19983. sed 's/^/| /' conftest.$ac_ext >&5
  19984. ( exit $ac_status )
  19985. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19986. fi
  19987. rm -rf conftest.dSYM
  19988. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19989. fi
  19990. else
  19991. # If the `ln -s' command failed, then we probably don't even
  19992. # have an lstat function.
  19993. ac_cv_func_lstat_dereferences_slashed_symlink=no
  19994. fi
  19995. rm -f conftest.sym conftest.file
  19996. fi
  19997. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  19998. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  19999. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  20000. cat >>confdefs.h <<_ACEOF
  20001. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  20002. _ACEOF
  20003. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  20004. case " $LIBOBJS " in
  20005. *" lstat.$ac_objext "* ) ;;
  20006. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  20007. ;;
  20008. esac
  20009. fi
  20010. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  20011. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  20012. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  20013. $as_echo_n "(cached) " >&6
  20014. else
  20015. if test "$cross_compiling" = yes; then
  20016. ac_cv_func_lstat_empty_string_bug=yes
  20017. else
  20018. cat >conftest.$ac_ext <<_ACEOF
  20019. /* confdefs.h. */
  20020. _ACEOF
  20021. cat confdefs.h >>conftest.$ac_ext
  20022. cat >>conftest.$ac_ext <<_ACEOF
  20023. /* end confdefs.h. */
  20024. $ac_includes_default
  20025. int
  20026. main ()
  20027. {
  20028. struct stat sbuf;
  20029. return lstat ("", &sbuf) == 0;
  20030. ;
  20031. return 0;
  20032. }
  20033. _ACEOF
  20034. rm -f conftest$ac_exeext
  20035. if { (ac_try="$ac_link"
  20036. case "(($ac_try" in
  20037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20038. *) ac_try_echo=$ac_try;;
  20039. esac
  20040. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20041. $as_echo "$ac_try_echo") >&5
  20042. (eval "$ac_link") 2>&5
  20043. ac_status=$?
  20044. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20045. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20046. { (case "(($ac_try" in
  20047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20048. *) ac_try_echo=$ac_try;;
  20049. esac
  20050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20051. $as_echo "$ac_try_echo") >&5
  20052. (eval "$ac_try") 2>&5
  20053. ac_status=$?
  20054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20055. (exit $ac_status); }; }; then
  20056. ac_cv_func_lstat_empty_string_bug=no
  20057. else
  20058. $as_echo "$as_me: program exited with status $ac_status" >&5
  20059. $as_echo "$as_me: failed program was:" >&5
  20060. sed 's/^/| /' conftest.$ac_ext >&5
  20061. ( exit $ac_status )
  20062. ac_cv_func_lstat_empty_string_bug=yes
  20063. fi
  20064. rm -rf conftest.dSYM
  20065. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20066. fi
  20067. fi
  20068. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  20069. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  20070. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  20071. case " $LIBOBJS " in
  20072. *" lstat.$ac_objext "* ) ;;
  20073. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  20074. ;;
  20075. esac
  20076. cat >>confdefs.h <<_ACEOF
  20077. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  20078. _ACEOF
  20079. fi
  20080. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  20081. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  20082. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  20083. $as_echo_n "(cached) " >&6
  20084. else
  20085. rm -f conftest.sym conftest.file
  20086. echo >conftest.file
  20087. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  20088. if test "$cross_compiling" = yes; then
  20089. ac_cv_func_lstat_dereferences_slashed_symlink=no
  20090. else
  20091. cat >conftest.$ac_ext <<_ACEOF
  20092. /* confdefs.h. */
  20093. _ACEOF
  20094. cat confdefs.h >>conftest.$ac_ext
  20095. cat >>conftest.$ac_ext <<_ACEOF
  20096. /* end confdefs.h. */
  20097. $ac_includes_default
  20098. int
  20099. main ()
  20100. {
  20101. struct stat sbuf;
  20102. /* Linux will dereference the symlink and fail.
  20103. That is better in the sense that it means we will not
  20104. have to compile and use the lstat wrapper. */
  20105. return lstat ("conftest.sym/", &sbuf) == 0;
  20106. ;
  20107. return 0;
  20108. }
  20109. _ACEOF
  20110. rm -f conftest$ac_exeext
  20111. if { (ac_try="$ac_link"
  20112. case "(($ac_try" in
  20113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20114. *) ac_try_echo=$ac_try;;
  20115. esac
  20116. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20117. $as_echo "$ac_try_echo") >&5
  20118. (eval "$ac_link") 2>&5
  20119. ac_status=$?
  20120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20121. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20122. { (case "(($ac_try" in
  20123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20124. *) ac_try_echo=$ac_try;;
  20125. esac
  20126. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20127. $as_echo "$ac_try_echo") >&5
  20128. (eval "$ac_try") 2>&5
  20129. ac_status=$?
  20130. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20131. (exit $ac_status); }; }; then
  20132. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  20133. else
  20134. $as_echo "$as_me: program exited with status $ac_status" >&5
  20135. $as_echo "$as_me: failed program was:" >&5
  20136. sed 's/^/| /' conftest.$ac_ext >&5
  20137. ( exit $ac_status )
  20138. ac_cv_func_lstat_dereferences_slashed_symlink=no
  20139. fi
  20140. rm -rf conftest.dSYM
  20141. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20142. fi
  20143. else
  20144. # If the `ln -s' command failed, then we probably don't even
  20145. # have an lstat function.
  20146. ac_cv_func_lstat_dereferences_slashed_symlink=no
  20147. fi
  20148. rm -f conftest.sym conftest.file
  20149. fi
  20150. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  20151. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  20152. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  20153. cat >>confdefs.h <<_ACEOF
  20154. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  20155. _ACEOF
  20156. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  20157. case " $LIBOBJS " in
  20158. *" lstat.$ac_objext "* ) ;;
  20159. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  20160. ;;
  20161. esac
  20162. fi
  20163. for ac_header in stdlib.h
  20164. do
  20165. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20166. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20167. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20168. $as_echo_n "checking for $ac_header... " >&6; }
  20169. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20170. $as_echo_n "(cached) " >&6
  20171. fi
  20172. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20173. $as_echo "$as_val"'`
  20174. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20175. $as_echo "$ac_res" >&6; }
  20176. else
  20177. # Is the header compilable?
  20178. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20179. $as_echo_n "checking $ac_header usability... " >&6; }
  20180. cat >conftest.$ac_ext <<_ACEOF
  20181. /* confdefs.h. */
  20182. _ACEOF
  20183. cat confdefs.h >>conftest.$ac_ext
  20184. cat >>conftest.$ac_ext <<_ACEOF
  20185. /* end confdefs.h. */
  20186. $ac_includes_default
  20187. #include <$ac_header>
  20188. _ACEOF
  20189. rm -f conftest.$ac_objext
  20190. if { (ac_try="$ac_compile"
  20191. case "(($ac_try" in
  20192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20193. *) ac_try_echo=$ac_try;;
  20194. esac
  20195. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20196. $as_echo "$ac_try_echo") >&5
  20197. (eval "$ac_compile") 2>conftest.er1
  20198. ac_status=$?
  20199. grep -v '^ *+' conftest.er1 >conftest.err
  20200. rm -f conftest.er1
  20201. cat conftest.err >&5
  20202. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20203. (exit $ac_status); } && {
  20204. test -z "$ac_c_werror_flag" ||
  20205. test ! -s conftest.err
  20206. } && test -s conftest.$ac_objext; then
  20207. ac_header_compiler=yes
  20208. else
  20209. $as_echo "$as_me: failed program was:" >&5
  20210. sed 's/^/| /' conftest.$ac_ext >&5
  20211. ac_header_compiler=no
  20212. fi
  20213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20214. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20215. $as_echo "$ac_header_compiler" >&6; }
  20216. # Is the header present?
  20217. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20218. $as_echo_n "checking $ac_header presence... " >&6; }
  20219. cat >conftest.$ac_ext <<_ACEOF
  20220. /* confdefs.h. */
  20221. _ACEOF
  20222. cat confdefs.h >>conftest.$ac_ext
  20223. cat >>conftest.$ac_ext <<_ACEOF
  20224. /* end confdefs.h. */
  20225. #include <$ac_header>
  20226. _ACEOF
  20227. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20228. case "(($ac_try" in
  20229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20230. *) ac_try_echo=$ac_try;;
  20231. esac
  20232. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20233. $as_echo "$ac_try_echo") >&5
  20234. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20235. ac_status=$?
  20236. grep -v '^ *+' conftest.er1 >conftest.err
  20237. rm -f conftest.er1
  20238. cat conftest.err >&5
  20239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20240. (exit $ac_status); } >/dev/null && {
  20241. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20242. test ! -s conftest.err
  20243. }; then
  20244. ac_header_preproc=yes
  20245. else
  20246. $as_echo "$as_me: failed program was:" >&5
  20247. sed 's/^/| /' conftest.$ac_ext >&5
  20248. ac_header_preproc=no
  20249. fi
  20250. rm -f conftest.err conftest.$ac_ext
  20251. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20252. $as_echo "$ac_header_preproc" >&6; }
  20253. # So? What about this header?
  20254. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20255. yes:no: )
  20256. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20257. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20258. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20259. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20260. ac_header_preproc=yes
  20261. ;;
  20262. no:yes:* )
  20263. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20264. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20265. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20266. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20267. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20268. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20269. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20270. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20271. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20272. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20273. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20274. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20275. ( cat <<\_ASBOX
  20276. ## ------------------------------------------ ##
  20277. ## Report this to http://bugzilla.redhat.com/ ##
  20278. ## ------------------------------------------ ##
  20279. _ASBOX
  20280. ) | sed "s/^/$as_me: WARNING: /" >&2
  20281. ;;
  20282. esac
  20283. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20284. $as_echo_n "checking for $ac_header... " >&6; }
  20285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20286. $as_echo_n "(cached) " >&6
  20287. else
  20288. eval "$as_ac_Header=\$ac_header_preproc"
  20289. fi
  20290. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20291. $as_echo "$as_val"'`
  20292. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20293. $as_echo "$ac_res" >&6; }
  20294. fi
  20295. as_val=`eval 'as_val=${'$as_ac_Header'}
  20296. $as_echo "$as_val"'`
  20297. if test "x$as_val" = x""yes; then
  20298. cat >>confdefs.h <<_ACEOF
  20299. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20300. _ACEOF
  20301. fi
  20302. done
  20303. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  20304. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  20305. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  20306. $as_echo_n "(cached) " >&6
  20307. else
  20308. if test "$cross_compiling" = yes; then
  20309. ac_cv_func_malloc_0_nonnull=no
  20310. else
  20311. cat >conftest.$ac_ext <<_ACEOF
  20312. /* confdefs.h. */
  20313. _ACEOF
  20314. cat confdefs.h >>conftest.$ac_ext
  20315. cat >>conftest.$ac_ext <<_ACEOF
  20316. /* end confdefs.h. */
  20317. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  20318. # include <stdlib.h>
  20319. #else
  20320. char *malloc ();
  20321. #endif
  20322. int
  20323. main ()
  20324. {
  20325. return ! malloc (0);
  20326. ;
  20327. return 0;
  20328. }
  20329. _ACEOF
  20330. rm -f conftest$ac_exeext
  20331. if { (ac_try="$ac_link"
  20332. case "(($ac_try" in
  20333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20334. *) ac_try_echo=$ac_try;;
  20335. esac
  20336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20337. $as_echo "$ac_try_echo") >&5
  20338. (eval "$ac_link") 2>&5
  20339. ac_status=$?
  20340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20341. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20342. { (case "(($ac_try" in
  20343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20344. *) ac_try_echo=$ac_try;;
  20345. esac
  20346. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20347. $as_echo "$ac_try_echo") >&5
  20348. (eval "$ac_try") 2>&5
  20349. ac_status=$?
  20350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20351. (exit $ac_status); }; }; then
  20352. ac_cv_func_malloc_0_nonnull=yes
  20353. else
  20354. $as_echo "$as_me: program exited with status $ac_status" >&5
  20355. $as_echo "$as_me: failed program was:" >&5
  20356. sed 's/^/| /' conftest.$ac_ext >&5
  20357. ( exit $ac_status )
  20358. ac_cv_func_malloc_0_nonnull=no
  20359. fi
  20360. rm -rf conftest.dSYM
  20361. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20362. fi
  20363. fi
  20364. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  20365. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  20366. if test $ac_cv_func_malloc_0_nonnull = yes; then
  20367. cat >>confdefs.h <<\_ACEOF
  20368. #define HAVE_MALLOC 1
  20369. _ACEOF
  20370. else
  20371. cat >>confdefs.h <<\_ACEOF
  20372. #define HAVE_MALLOC 0
  20373. _ACEOF
  20374. case " $LIBOBJS " in
  20375. *" malloc.$ac_objext "* ) ;;
  20376. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  20377. ;;
  20378. esac
  20379. cat >>confdefs.h <<\_ACEOF
  20380. #define malloc rpl_malloc
  20381. _ACEOF
  20382. fi
  20383. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  20384. $as_echo_n "checking for working memcmp... " >&6; }
  20385. if test "${ac_cv_func_memcmp_working+set}" = set; then
  20386. $as_echo_n "(cached) " >&6
  20387. else
  20388. if test "$cross_compiling" = yes; then
  20389. ac_cv_func_memcmp_working=no
  20390. else
  20391. cat >conftest.$ac_ext <<_ACEOF
  20392. /* confdefs.h. */
  20393. _ACEOF
  20394. cat confdefs.h >>conftest.$ac_ext
  20395. cat >>conftest.$ac_ext <<_ACEOF
  20396. /* end confdefs.h. */
  20397. $ac_includes_default
  20398. int
  20399. main ()
  20400. {
  20401. /* Some versions of memcmp are not 8-bit clean. */
  20402. char c0 = '\100', c1 = '\200', c2 = '\201';
  20403. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  20404. return 1;
  20405. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  20406. or more and with at least one buffer not starting on a 4-byte boundary.
  20407. William Lewis provided this test program. */
  20408. {
  20409. char foo[21];
  20410. char bar[21];
  20411. int i;
  20412. for (i = 0; i < 4; i++)
  20413. {
  20414. char *a = foo + i;
  20415. char *b = bar + i;
  20416. strcpy (a, "--------01111111");
  20417. strcpy (b, "--------10000000");
  20418. if (memcmp (a, b, 16) >= 0)
  20419. return 1;
  20420. }
  20421. return 0;
  20422. }
  20423. ;
  20424. return 0;
  20425. }
  20426. _ACEOF
  20427. rm -f conftest$ac_exeext
  20428. if { (ac_try="$ac_link"
  20429. case "(($ac_try" in
  20430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20431. *) ac_try_echo=$ac_try;;
  20432. esac
  20433. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20434. $as_echo "$ac_try_echo") >&5
  20435. (eval "$ac_link") 2>&5
  20436. ac_status=$?
  20437. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20438. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20439. { (case "(($ac_try" in
  20440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20441. *) ac_try_echo=$ac_try;;
  20442. esac
  20443. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20444. $as_echo "$ac_try_echo") >&5
  20445. (eval "$ac_try") 2>&5
  20446. ac_status=$?
  20447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20448. (exit $ac_status); }; }; then
  20449. ac_cv_func_memcmp_working=yes
  20450. else
  20451. $as_echo "$as_me: program exited with status $ac_status" >&5
  20452. $as_echo "$as_me: failed program was:" >&5
  20453. sed 's/^/| /' conftest.$ac_ext >&5
  20454. ( exit $ac_status )
  20455. ac_cv_func_memcmp_working=no
  20456. fi
  20457. rm -rf conftest.dSYM
  20458. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20459. fi
  20460. fi
  20461. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  20462. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  20463. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  20464. *" memcmp.$ac_objext "* ) ;;
  20465. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  20466. ;;
  20467. esac
  20468. for ac_header in stdlib.h unistd.h
  20469. do
  20470. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20471. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20472. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20473. $as_echo_n "checking for $ac_header... " >&6; }
  20474. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20475. $as_echo_n "(cached) " >&6
  20476. fi
  20477. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20478. $as_echo "$as_val"'`
  20479. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20480. $as_echo "$ac_res" >&6; }
  20481. else
  20482. # Is the header compilable?
  20483. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20484. $as_echo_n "checking $ac_header usability... " >&6; }
  20485. cat >conftest.$ac_ext <<_ACEOF
  20486. /* confdefs.h. */
  20487. _ACEOF
  20488. cat confdefs.h >>conftest.$ac_ext
  20489. cat >>conftest.$ac_ext <<_ACEOF
  20490. /* end confdefs.h. */
  20491. $ac_includes_default
  20492. #include <$ac_header>
  20493. _ACEOF
  20494. rm -f conftest.$ac_objext
  20495. if { (ac_try="$ac_compile"
  20496. case "(($ac_try" in
  20497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20498. *) ac_try_echo=$ac_try;;
  20499. esac
  20500. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20501. $as_echo "$ac_try_echo") >&5
  20502. (eval "$ac_compile") 2>conftest.er1
  20503. ac_status=$?
  20504. grep -v '^ *+' conftest.er1 >conftest.err
  20505. rm -f conftest.er1
  20506. cat conftest.err >&5
  20507. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20508. (exit $ac_status); } && {
  20509. test -z "$ac_c_werror_flag" ||
  20510. test ! -s conftest.err
  20511. } && test -s conftest.$ac_objext; then
  20512. ac_header_compiler=yes
  20513. else
  20514. $as_echo "$as_me: failed program was:" >&5
  20515. sed 's/^/| /' conftest.$ac_ext >&5
  20516. ac_header_compiler=no
  20517. fi
  20518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20519. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20520. $as_echo "$ac_header_compiler" >&6; }
  20521. # Is the header present?
  20522. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20523. $as_echo_n "checking $ac_header presence... " >&6; }
  20524. cat >conftest.$ac_ext <<_ACEOF
  20525. /* confdefs.h. */
  20526. _ACEOF
  20527. cat confdefs.h >>conftest.$ac_ext
  20528. cat >>conftest.$ac_ext <<_ACEOF
  20529. /* end confdefs.h. */
  20530. #include <$ac_header>
  20531. _ACEOF
  20532. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20533. case "(($ac_try" in
  20534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20535. *) ac_try_echo=$ac_try;;
  20536. esac
  20537. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20538. $as_echo "$ac_try_echo") >&5
  20539. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20540. ac_status=$?
  20541. grep -v '^ *+' conftest.er1 >conftest.err
  20542. rm -f conftest.er1
  20543. cat conftest.err >&5
  20544. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20545. (exit $ac_status); } >/dev/null && {
  20546. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20547. test ! -s conftest.err
  20548. }; then
  20549. ac_header_preproc=yes
  20550. else
  20551. $as_echo "$as_me: failed program was:" >&5
  20552. sed 's/^/| /' conftest.$ac_ext >&5
  20553. ac_header_preproc=no
  20554. fi
  20555. rm -f conftest.err conftest.$ac_ext
  20556. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20557. $as_echo "$ac_header_preproc" >&6; }
  20558. # So? What about this header?
  20559. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20560. yes:no: )
  20561. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20562. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20563. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20564. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20565. ac_header_preproc=yes
  20566. ;;
  20567. no:yes:* )
  20568. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20569. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20570. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20571. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20572. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20573. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20574. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20575. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20576. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20577. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20578. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20579. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20580. ( cat <<\_ASBOX
  20581. ## ------------------------------------------ ##
  20582. ## Report this to http://bugzilla.redhat.com/ ##
  20583. ## ------------------------------------------ ##
  20584. _ASBOX
  20585. ) | sed "s/^/$as_me: WARNING: /" >&2
  20586. ;;
  20587. esac
  20588. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20589. $as_echo_n "checking for $ac_header... " >&6; }
  20590. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20591. $as_echo_n "(cached) " >&6
  20592. else
  20593. eval "$as_ac_Header=\$ac_header_preproc"
  20594. fi
  20595. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20596. $as_echo "$as_val"'`
  20597. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20598. $as_echo "$ac_res" >&6; }
  20599. fi
  20600. as_val=`eval 'as_val=${'$as_ac_Header'}
  20601. $as_echo "$as_val"'`
  20602. if test "x$as_val" = x""yes; then
  20603. cat >>confdefs.h <<_ACEOF
  20604. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20605. _ACEOF
  20606. fi
  20607. done
  20608. for ac_func in getpagesize
  20609. do
  20610. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20611. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20612. $as_echo_n "checking for $ac_func... " >&6; }
  20613. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20614. $as_echo_n "(cached) " >&6
  20615. else
  20616. cat >conftest.$ac_ext <<_ACEOF
  20617. /* confdefs.h. */
  20618. _ACEOF
  20619. cat confdefs.h >>conftest.$ac_ext
  20620. cat >>conftest.$ac_ext <<_ACEOF
  20621. /* end confdefs.h. */
  20622. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20623. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20624. #define $ac_func innocuous_$ac_func
  20625. /* System header to define __stub macros and hopefully few prototypes,
  20626. which can conflict with char $ac_func (); below.
  20627. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20628. <limits.h> exists even on freestanding compilers. */
  20629. #ifdef __STDC__
  20630. # include <limits.h>
  20631. #else
  20632. # include <assert.h>
  20633. #endif
  20634. #undef $ac_func
  20635. /* Override any GCC internal prototype to avoid an error.
  20636. Use char because int might match the return type of a GCC
  20637. builtin and then its argument prototype would still apply. */
  20638. #ifdef __cplusplus
  20639. extern "C"
  20640. #endif
  20641. char $ac_func ();
  20642. /* The GNU C library defines this for functions which it implements
  20643. to always fail with ENOSYS. Some functions are actually named
  20644. something starting with __ and the normal name is an alias. */
  20645. #if defined __stub_$ac_func || defined __stub___$ac_func
  20646. choke me
  20647. #endif
  20648. int
  20649. main ()
  20650. {
  20651. return $ac_func ();
  20652. ;
  20653. return 0;
  20654. }
  20655. _ACEOF
  20656. rm -f conftest.$ac_objext conftest$ac_exeext
  20657. if { (ac_try="$ac_link"
  20658. case "(($ac_try" in
  20659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20660. *) ac_try_echo=$ac_try;;
  20661. esac
  20662. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20663. $as_echo "$ac_try_echo") >&5
  20664. (eval "$ac_link") 2>conftest.er1
  20665. ac_status=$?
  20666. grep -v '^ *+' conftest.er1 >conftest.err
  20667. rm -f conftest.er1
  20668. cat conftest.err >&5
  20669. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20670. (exit $ac_status); } && {
  20671. test -z "$ac_c_werror_flag" ||
  20672. test ! -s conftest.err
  20673. } && test -s conftest$ac_exeext && {
  20674. test "$cross_compiling" = yes ||
  20675. $as_test_x conftest$ac_exeext
  20676. }; then
  20677. eval "$as_ac_var=yes"
  20678. else
  20679. $as_echo "$as_me: failed program was:" >&5
  20680. sed 's/^/| /' conftest.$ac_ext >&5
  20681. eval "$as_ac_var=no"
  20682. fi
  20683. rm -rf conftest.dSYM
  20684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20685. conftest$ac_exeext conftest.$ac_ext
  20686. fi
  20687. ac_res=`eval 'as_val=${'$as_ac_var'}
  20688. $as_echo "$as_val"'`
  20689. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20690. $as_echo "$ac_res" >&6; }
  20691. as_val=`eval 'as_val=${'$as_ac_var'}
  20692. $as_echo "$as_val"'`
  20693. if test "x$as_val" = x""yes; then
  20694. cat >>confdefs.h <<_ACEOF
  20695. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20696. _ACEOF
  20697. fi
  20698. done
  20699. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  20700. $as_echo_n "checking for working mmap... " >&6; }
  20701. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  20702. $as_echo_n "(cached) " >&6
  20703. else
  20704. if test "$cross_compiling" = yes; then
  20705. ac_cv_func_mmap_fixed_mapped=no
  20706. else
  20707. cat >conftest.$ac_ext <<_ACEOF
  20708. /* confdefs.h. */
  20709. _ACEOF
  20710. cat confdefs.h >>conftest.$ac_ext
  20711. cat >>conftest.$ac_ext <<_ACEOF
  20712. /* end confdefs.h. */
  20713. $ac_includes_default
  20714. /* malloc might have been renamed as rpl_malloc. */
  20715. #undef malloc
  20716. /* Thanks to Mike Haertel and Jim Avera for this test.
  20717. Here is a matrix of mmap possibilities:
  20718. mmap private not fixed
  20719. mmap private fixed at somewhere currently unmapped
  20720. mmap private fixed at somewhere already mapped
  20721. mmap shared not fixed
  20722. mmap shared fixed at somewhere currently unmapped
  20723. mmap shared fixed at somewhere already mapped
  20724. For private mappings, we should verify that changes cannot be read()
  20725. back from the file, nor mmap's back from the file at a different
  20726. address. (There have been systems where private was not correctly
  20727. implemented like the infamous i386 svr4.0, and systems where the
  20728. VM page cache was not coherent with the file system buffer cache
  20729. like early versions of FreeBSD and possibly contemporary NetBSD.)
  20730. For shared mappings, we should conversely verify that changes get
  20731. propagated back to all the places they're supposed to be.
  20732. Grep wants private fixed already mapped.
  20733. The main things grep needs to know about mmap are:
  20734. * does it exist and is it safe to write into the mmap'd area
  20735. * how to use it (BSD variants) */
  20736. #include <fcntl.h>
  20737. #include <sys/mman.h>
  20738. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  20739. char *malloc ();
  20740. #endif
  20741. /* This mess was copied from the GNU getpagesize.h. */
  20742. #ifndef HAVE_GETPAGESIZE
  20743. /* Assume that all systems that can run configure have sys/param.h. */
  20744. # ifndef HAVE_SYS_PARAM_H
  20745. # define HAVE_SYS_PARAM_H 1
  20746. # endif
  20747. # ifdef _SC_PAGESIZE
  20748. # define getpagesize() sysconf(_SC_PAGESIZE)
  20749. # else /* no _SC_PAGESIZE */
  20750. # ifdef HAVE_SYS_PARAM_H
  20751. # include <sys/param.h>
  20752. # ifdef EXEC_PAGESIZE
  20753. # define getpagesize() EXEC_PAGESIZE
  20754. # else /* no EXEC_PAGESIZE */
  20755. # ifdef NBPG
  20756. # define getpagesize() NBPG * CLSIZE
  20757. # ifndef CLSIZE
  20758. # define CLSIZE 1
  20759. # endif /* no CLSIZE */
  20760. # else /* no NBPG */
  20761. # ifdef NBPC
  20762. # define getpagesize() NBPC
  20763. # else /* no NBPC */
  20764. # ifdef PAGESIZE
  20765. # define getpagesize() PAGESIZE
  20766. # endif /* PAGESIZE */
  20767. # endif /* no NBPC */
  20768. # endif /* no NBPG */
  20769. # endif /* no EXEC_PAGESIZE */
  20770. # else /* no HAVE_SYS_PARAM_H */
  20771. # define getpagesize() 8192 /* punt totally */
  20772. # endif /* no HAVE_SYS_PARAM_H */
  20773. # endif /* no _SC_PAGESIZE */
  20774. #endif /* no HAVE_GETPAGESIZE */
  20775. int
  20776. main ()
  20777. {
  20778. char *data, *data2, *data3;
  20779. int i, pagesize;
  20780. int fd;
  20781. pagesize = getpagesize ();
  20782. /* First, make a file with some known garbage in it. */
  20783. data = (char *) malloc (pagesize);
  20784. if (!data)
  20785. return 1;
  20786. for (i = 0; i < pagesize; ++i)
  20787. *(data + i) = rand ();
  20788. umask (0);
  20789. fd = creat ("conftest.mmap", 0600);
  20790. if (fd < 0)
  20791. return 1;
  20792. if (write (fd, data, pagesize) != pagesize)
  20793. return 1;
  20794. close (fd);
  20795. /* Next, try to mmap the file at a fixed address which already has
  20796. something else allocated at it. If we can, also make sure that
  20797. we see the same garbage. */
  20798. fd = open ("conftest.mmap", O_RDWR);
  20799. if (fd < 0)
  20800. return 1;
  20801. data2 = (char *) malloc (2 * pagesize);
  20802. if (!data2)
  20803. return 1;
  20804. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  20805. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  20806. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  20807. return 1;
  20808. for (i = 0; i < pagesize; ++i)
  20809. if (*(data + i) != *(data2 + i))
  20810. return 1;
  20811. /* Finally, make sure that changes to the mapped area do not
  20812. percolate back to the file as seen by read(). (This is a bug on
  20813. some variants of i386 svr4.0.) */
  20814. for (i = 0; i < pagesize; ++i)
  20815. *(data2 + i) = *(data2 + i) + 1;
  20816. data3 = (char *) malloc (pagesize);
  20817. if (!data3)
  20818. return 1;
  20819. if (read (fd, data3, pagesize) != pagesize)
  20820. return 1;
  20821. for (i = 0; i < pagesize; ++i)
  20822. if (*(data + i) != *(data3 + i))
  20823. return 1;
  20824. close (fd);
  20825. return 0;
  20826. }
  20827. _ACEOF
  20828. rm -f conftest$ac_exeext
  20829. if { (ac_try="$ac_link"
  20830. case "(($ac_try" in
  20831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20832. *) ac_try_echo=$ac_try;;
  20833. esac
  20834. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20835. $as_echo "$ac_try_echo") >&5
  20836. (eval "$ac_link") 2>&5
  20837. ac_status=$?
  20838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20839. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20840. { (case "(($ac_try" in
  20841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20842. *) ac_try_echo=$ac_try;;
  20843. esac
  20844. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20845. $as_echo "$ac_try_echo") >&5
  20846. (eval "$ac_try") 2>&5
  20847. ac_status=$?
  20848. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20849. (exit $ac_status); }; }; then
  20850. ac_cv_func_mmap_fixed_mapped=yes
  20851. else
  20852. $as_echo "$as_me: program exited with status $ac_status" >&5
  20853. $as_echo "$as_me: failed program was:" >&5
  20854. sed 's/^/| /' conftest.$ac_ext >&5
  20855. ( exit $ac_status )
  20856. ac_cv_func_mmap_fixed_mapped=no
  20857. fi
  20858. rm -rf conftest.dSYM
  20859. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20860. fi
  20861. fi
  20862. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  20863. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  20864. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  20865. cat >>confdefs.h <<\_ACEOF
  20866. #define HAVE_MMAP 1
  20867. _ACEOF
  20868. fi
  20869. rm -f conftest.mmap
  20870. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  20871. $as_echo_n "checking return type of signal handlers... " >&6; }
  20872. if test "${ac_cv_type_signal+set}" = set; then
  20873. $as_echo_n "(cached) " >&6
  20874. else
  20875. cat >conftest.$ac_ext <<_ACEOF
  20876. /* confdefs.h. */
  20877. _ACEOF
  20878. cat confdefs.h >>conftest.$ac_ext
  20879. cat >>conftest.$ac_ext <<_ACEOF
  20880. /* end confdefs.h. */
  20881. #include <sys/types.h>
  20882. #include <signal.h>
  20883. int
  20884. main ()
  20885. {
  20886. return *(signal (0, 0)) (0) == 1;
  20887. ;
  20888. return 0;
  20889. }
  20890. _ACEOF
  20891. rm -f conftest.$ac_objext
  20892. if { (ac_try="$ac_compile"
  20893. case "(($ac_try" in
  20894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20895. *) ac_try_echo=$ac_try;;
  20896. esac
  20897. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20898. $as_echo "$ac_try_echo") >&5
  20899. (eval "$ac_compile") 2>conftest.er1
  20900. ac_status=$?
  20901. grep -v '^ *+' conftest.er1 >conftest.err
  20902. rm -f conftest.er1
  20903. cat conftest.err >&5
  20904. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20905. (exit $ac_status); } && {
  20906. test -z "$ac_c_werror_flag" ||
  20907. test ! -s conftest.err
  20908. } && test -s conftest.$ac_objext; then
  20909. ac_cv_type_signal=int
  20910. else
  20911. $as_echo "$as_me: failed program was:" >&5
  20912. sed 's/^/| /' conftest.$ac_ext >&5
  20913. ac_cv_type_signal=void
  20914. fi
  20915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20916. fi
  20917. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  20918. $as_echo "$ac_cv_type_signal" >&6; }
  20919. cat >>confdefs.h <<_ACEOF
  20920. #define RETSIGTYPE $ac_cv_type_signal
  20921. _ACEOF
  20922. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  20923. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  20924. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  20925. $as_echo_n "(cached) " >&6
  20926. else
  20927. if test "$cross_compiling" = yes; then
  20928. ac_cv_func_stat_empty_string_bug=yes
  20929. else
  20930. cat >conftest.$ac_ext <<_ACEOF
  20931. /* confdefs.h. */
  20932. _ACEOF
  20933. cat confdefs.h >>conftest.$ac_ext
  20934. cat >>conftest.$ac_ext <<_ACEOF
  20935. /* end confdefs.h. */
  20936. $ac_includes_default
  20937. int
  20938. main ()
  20939. {
  20940. struct stat sbuf;
  20941. return stat ("", &sbuf) == 0;
  20942. ;
  20943. return 0;
  20944. }
  20945. _ACEOF
  20946. rm -f conftest$ac_exeext
  20947. if { (ac_try="$ac_link"
  20948. case "(($ac_try" in
  20949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20950. *) ac_try_echo=$ac_try;;
  20951. esac
  20952. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20953. $as_echo "$ac_try_echo") >&5
  20954. (eval "$ac_link") 2>&5
  20955. ac_status=$?
  20956. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20957. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20958. { (case "(($ac_try" in
  20959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20960. *) ac_try_echo=$ac_try;;
  20961. esac
  20962. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20963. $as_echo "$ac_try_echo") >&5
  20964. (eval "$ac_try") 2>&5
  20965. ac_status=$?
  20966. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20967. (exit $ac_status); }; }; then
  20968. ac_cv_func_stat_empty_string_bug=no
  20969. else
  20970. $as_echo "$as_me: program exited with status $ac_status" >&5
  20971. $as_echo "$as_me: failed program was:" >&5
  20972. sed 's/^/| /' conftest.$ac_ext >&5
  20973. ( exit $ac_status )
  20974. ac_cv_func_stat_empty_string_bug=yes
  20975. fi
  20976. rm -rf conftest.dSYM
  20977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20978. fi
  20979. fi
  20980. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  20981. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  20982. if test $ac_cv_func_stat_empty_string_bug = yes; then
  20983. case " $LIBOBJS " in
  20984. *" stat.$ac_objext "* ) ;;
  20985. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  20986. ;;
  20987. esac
  20988. cat >>confdefs.h <<_ACEOF
  20989. #define HAVE_STAT_EMPTY_STRING_BUG 1
  20990. _ACEOF
  20991. fi
  20992. { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  20993. $as_echo_n "checking whether strerror_r is declared... " >&6; }
  20994. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  20995. $as_echo_n "(cached) " >&6
  20996. else
  20997. cat >conftest.$ac_ext <<_ACEOF
  20998. /* confdefs.h. */
  20999. _ACEOF
  21000. cat confdefs.h >>conftest.$ac_ext
  21001. cat >>conftest.$ac_ext <<_ACEOF
  21002. /* end confdefs.h. */
  21003. $ac_includes_default
  21004. int
  21005. main ()
  21006. {
  21007. #ifndef strerror_r
  21008. (void) strerror_r;
  21009. #endif
  21010. ;
  21011. return 0;
  21012. }
  21013. _ACEOF
  21014. rm -f conftest.$ac_objext
  21015. if { (ac_try="$ac_compile"
  21016. case "(($ac_try" in
  21017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21018. *) ac_try_echo=$ac_try;;
  21019. esac
  21020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21021. $as_echo "$ac_try_echo") >&5
  21022. (eval "$ac_compile") 2>conftest.er1
  21023. ac_status=$?
  21024. grep -v '^ *+' conftest.er1 >conftest.err
  21025. rm -f conftest.er1
  21026. cat conftest.err >&5
  21027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21028. (exit $ac_status); } && {
  21029. test -z "$ac_c_werror_flag" ||
  21030. test ! -s conftest.err
  21031. } && test -s conftest.$ac_objext; then
  21032. ac_cv_have_decl_strerror_r=yes
  21033. else
  21034. $as_echo "$as_me: failed program was:" >&5
  21035. sed 's/^/| /' conftest.$ac_ext >&5
  21036. ac_cv_have_decl_strerror_r=no
  21037. fi
  21038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21039. fi
  21040. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  21041. $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
  21042. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
  21043. cat >>confdefs.h <<_ACEOF
  21044. #define HAVE_DECL_STRERROR_R 1
  21045. _ACEOF
  21046. else
  21047. cat >>confdefs.h <<_ACEOF
  21048. #define HAVE_DECL_STRERROR_R 0
  21049. _ACEOF
  21050. fi
  21051. for ac_func in strerror_r
  21052. do
  21053. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21054. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21055. $as_echo_n "checking for $ac_func... " >&6; }
  21056. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21057. $as_echo_n "(cached) " >&6
  21058. else
  21059. cat >conftest.$ac_ext <<_ACEOF
  21060. /* confdefs.h. */
  21061. _ACEOF
  21062. cat confdefs.h >>conftest.$ac_ext
  21063. cat >>conftest.$ac_ext <<_ACEOF
  21064. /* end confdefs.h. */
  21065. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21066. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21067. #define $ac_func innocuous_$ac_func
  21068. /* System header to define __stub macros and hopefully few prototypes,
  21069. which can conflict with char $ac_func (); below.
  21070. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21071. <limits.h> exists even on freestanding compilers. */
  21072. #ifdef __STDC__
  21073. # include <limits.h>
  21074. #else
  21075. # include <assert.h>
  21076. #endif
  21077. #undef $ac_func
  21078. /* Override any GCC internal prototype to avoid an error.
  21079. Use char because int might match the return type of a GCC
  21080. builtin and then its argument prototype would still apply. */
  21081. #ifdef __cplusplus
  21082. extern "C"
  21083. #endif
  21084. char $ac_func ();
  21085. /* The GNU C library defines this for functions which it implements
  21086. to always fail with ENOSYS. Some functions are actually named
  21087. something starting with __ and the normal name is an alias. */
  21088. #if defined __stub_$ac_func || defined __stub___$ac_func
  21089. choke me
  21090. #endif
  21091. int
  21092. main ()
  21093. {
  21094. return $ac_func ();
  21095. ;
  21096. return 0;
  21097. }
  21098. _ACEOF
  21099. rm -f conftest.$ac_objext conftest$ac_exeext
  21100. if { (ac_try="$ac_link"
  21101. case "(($ac_try" in
  21102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21103. *) ac_try_echo=$ac_try;;
  21104. esac
  21105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21106. $as_echo "$ac_try_echo") >&5
  21107. (eval "$ac_link") 2>conftest.er1
  21108. ac_status=$?
  21109. grep -v '^ *+' conftest.er1 >conftest.err
  21110. rm -f conftest.er1
  21111. cat conftest.err >&5
  21112. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21113. (exit $ac_status); } && {
  21114. test -z "$ac_c_werror_flag" ||
  21115. test ! -s conftest.err
  21116. } && test -s conftest$ac_exeext && {
  21117. test "$cross_compiling" = yes ||
  21118. $as_test_x conftest$ac_exeext
  21119. }; then
  21120. eval "$as_ac_var=yes"
  21121. else
  21122. $as_echo "$as_me: failed program was:" >&5
  21123. sed 's/^/| /' conftest.$ac_ext >&5
  21124. eval "$as_ac_var=no"
  21125. fi
  21126. rm -rf conftest.dSYM
  21127. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21128. conftest$ac_exeext conftest.$ac_ext
  21129. fi
  21130. ac_res=`eval 'as_val=${'$as_ac_var'}
  21131. $as_echo "$as_val"'`
  21132. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21133. $as_echo "$ac_res" >&6; }
  21134. as_val=`eval 'as_val=${'$as_ac_var'}
  21135. $as_echo "$as_val"'`
  21136. if test "x$as_val" = x""yes; then
  21137. cat >>confdefs.h <<_ACEOF
  21138. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21139. _ACEOF
  21140. fi
  21141. done
  21142. { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  21143. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  21144. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  21145. $as_echo_n "(cached) " >&6
  21146. else
  21147. ac_cv_func_strerror_r_char_p=no
  21148. if test $ac_cv_have_decl_strerror_r = yes; then
  21149. cat >conftest.$ac_ext <<_ACEOF
  21150. /* confdefs.h. */
  21151. _ACEOF
  21152. cat confdefs.h >>conftest.$ac_ext
  21153. cat >>conftest.$ac_ext <<_ACEOF
  21154. /* end confdefs.h. */
  21155. $ac_includes_default
  21156. int
  21157. main ()
  21158. {
  21159. char buf[100];
  21160. char x = *strerror_r (0, buf, sizeof buf);
  21161. char *p = strerror_r (0, buf, sizeof buf);
  21162. return !p || x;
  21163. ;
  21164. return 0;
  21165. }
  21166. _ACEOF
  21167. rm -f conftest.$ac_objext
  21168. if { (ac_try="$ac_compile"
  21169. case "(($ac_try" in
  21170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21171. *) ac_try_echo=$ac_try;;
  21172. esac
  21173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21174. $as_echo "$ac_try_echo") >&5
  21175. (eval "$ac_compile") 2>conftest.er1
  21176. ac_status=$?
  21177. grep -v '^ *+' conftest.er1 >conftest.err
  21178. rm -f conftest.er1
  21179. cat conftest.err >&5
  21180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21181. (exit $ac_status); } && {
  21182. test -z "$ac_c_werror_flag" ||
  21183. test ! -s conftest.err
  21184. } && test -s conftest.$ac_objext; then
  21185. ac_cv_func_strerror_r_char_p=yes
  21186. else
  21187. $as_echo "$as_me: failed program was:" >&5
  21188. sed 's/^/| /' conftest.$ac_ext >&5
  21189. fi
  21190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21191. else
  21192. # strerror_r is not declared. Choose between
  21193. # systems that have relatively inaccessible declarations for the
  21194. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  21195. # former has a strerror_r that returns char*, while the latter
  21196. # has a strerror_r that returns `int'.
  21197. # This test should segfault on the DEC system.
  21198. if test "$cross_compiling" = yes; then
  21199. :
  21200. else
  21201. cat >conftest.$ac_ext <<_ACEOF
  21202. /* confdefs.h. */
  21203. _ACEOF
  21204. cat confdefs.h >>conftest.$ac_ext
  21205. cat >>conftest.$ac_ext <<_ACEOF
  21206. /* end confdefs.h. */
  21207. $ac_includes_default
  21208. extern char *strerror_r ();
  21209. int
  21210. main ()
  21211. {
  21212. char buf[100];
  21213. char x = *strerror_r (0, buf, sizeof buf);
  21214. return ! isalpha (x);
  21215. ;
  21216. return 0;
  21217. }
  21218. _ACEOF
  21219. rm -f conftest$ac_exeext
  21220. if { (ac_try="$ac_link"
  21221. case "(($ac_try" in
  21222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21223. *) ac_try_echo=$ac_try;;
  21224. esac
  21225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21226. $as_echo "$ac_try_echo") >&5
  21227. (eval "$ac_link") 2>&5
  21228. ac_status=$?
  21229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21230. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  21231. { (case "(($ac_try" in
  21232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21233. *) ac_try_echo=$ac_try;;
  21234. esac
  21235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21236. $as_echo "$ac_try_echo") >&5
  21237. (eval "$ac_try") 2>&5
  21238. ac_status=$?
  21239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21240. (exit $ac_status); }; }; then
  21241. ac_cv_func_strerror_r_char_p=yes
  21242. else
  21243. $as_echo "$as_me: program exited with status $ac_status" >&5
  21244. $as_echo "$as_me: failed program was:" >&5
  21245. sed 's/^/| /' conftest.$ac_ext >&5
  21246. fi
  21247. rm -rf conftest.dSYM
  21248. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  21249. fi
  21250. fi
  21251. fi
  21252. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  21253. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  21254. if test $ac_cv_func_strerror_r_char_p = yes; then
  21255. cat >>confdefs.h <<\_ACEOF
  21256. #define STRERROR_R_CHAR_P 1
  21257. _ACEOF
  21258. fi
  21259. for ac_func in strftime
  21260. do
  21261. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21262. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21263. $as_echo_n "checking for $ac_func... " >&6; }
  21264. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21265. $as_echo_n "(cached) " >&6
  21266. else
  21267. cat >conftest.$ac_ext <<_ACEOF
  21268. /* confdefs.h. */
  21269. _ACEOF
  21270. cat confdefs.h >>conftest.$ac_ext
  21271. cat >>conftest.$ac_ext <<_ACEOF
  21272. /* end confdefs.h. */
  21273. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21274. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21275. #define $ac_func innocuous_$ac_func
  21276. /* System header to define __stub macros and hopefully few prototypes,
  21277. which can conflict with char $ac_func (); below.
  21278. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21279. <limits.h> exists even on freestanding compilers. */
  21280. #ifdef __STDC__
  21281. # include <limits.h>
  21282. #else
  21283. # include <assert.h>
  21284. #endif
  21285. #undef $ac_func
  21286. /* Override any GCC internal prototype to avoid an error.
  21287. Use char because int might match the return type of a GCC
  21288. builtin and then its argument prototype would still apply. */
  21289. #ifdef __cplusplus
  21290. extern "C"
  21291. #endif
  21292. char $ac_func ();
  21293. /* The GNU C library defines this for functions which it implements
  21294. to always fail with ENOSYS. Some functions are actually named
  21295. something starting with __ and the normal name is an alias. */
  21296. #if defined __stub_$ac_func || defined __stub___$ac_func
  21297. choke me
  21298. #endif
  21299. int
  21300. main ()
  21301. {
  21302. return $ac_func ();
  21303. ;
  21304. return 0;
  21305. }
  21306. _ACEOF
  21307. rm -f conftest.$ac_objext conftest$ac_exeext
  21308. if { (ac_try="$ac_link"
  21309. case "(($ac_try" in
  21310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21311. *) ac_try_echo=$ac_try;;
  21312. esac
  21313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21314. $as_echo "$ac_try_echo") >&5
  21315. (eval "$ac_link") 2>conftest.er1
  21316. ac_status=$?
  21317. grep -v '^ *+' conftest.er1 >conftest.err
  21318. rm -f conftest.er1
  21319. cat conftest.err >&5
  21320. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21321. (exit $ac_status); } && {
  21322. test -z "$ac_c_werror_flag" ||
  21323. test ! -s conftest.err
  21324. } && test -s conftest$ac_exeext && {
  21325. test "$cross_compiling" = yes ||
  21326. $as_test_x conftest$ac_exeext
  21327. }; then
  21328. eval "$as_ac_var=yes"
  21329. else
  21330. $as_echo "$as_me: failed program was:" >&5
  21331. sed 's/^/| /' conftest.$ac_ext >&5
  21332. eval "$as_ac_var=no"
  21333. fi
  21334. rm -rf conftest.dSYM
  21335. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21336. conftest$ac_exeext conftest.$ac_ext
  21337. fi
  21338. ac_res=`eval 'as_val=${'$as_ac_var'}
  21339. $as_echo "$as_val"'`
  21340. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21341. $as_echo "$ac_res" >&6; }
  21342. as_val=`eval 'as_val=${'$as_ac_var'}
  21343. $as_echo "$as_val"'`
  21344. if test "x$as_val" = x""yes; then
  21345. cat >>confdefs.h <<_ACEOF
  21346. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21347. _ACEOF
  21348. else
  21349. # strftime is in -lintl on SCO UNIX.
  21350. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  21351. $as_echo_n "checking for strftime in -lintl... " >&6; }
  21352. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  21353. $as_echo_n "(cached) " >&6
  21354. else
  21355. ac_check_lib_save_LIBS=$LIBS
  21356. LIBS="-lintl $LIBS"
  21357. cat >conftest.$ac_ext <<_ACEOF
  21358. /* confdefs.h. */
  21359. _ACEOF
  21360. cat confdefs.h >>conftest.$ac_ext
  21361. cat >>conftest.$ac_ext <<_ACEOF
  21362. /* end confdefs.h. */
  21363. /* Override any GCC internal prototype to avoid an error.
  21364. Use char because int might match the return type of a GCC
  21365. builtin and then its argument prototype would still apply. */
  21366. #ifdef __cplusplus
  21367. extern "C"
  21368. #endif
  21369. char strftime ();
  21370. int
  21371. main ()
  21372. {
  21373. return strftime ();
  21374. ;
  21375. return 0;
  21376. }
  21377. _ACEOF
  21378. rm -f conftest.$ac_objext conftest$ac_exeext
  21379. if { (ac_try="$ac_link"
  21380. case "(($ac_try" in
  21381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21382. *) ac_try_echo=$ac_try;;
  21383. esac
  21384. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21385. $as_echo "$ac_try_echo") >&5
  21386. (eval "$ac_link") 2>conftest.er1
  21387. ac_status=$?
  21388. grep -v '^ *+' conftest.er1 >conftest.err
  21389. rm -f conftest.er1
  21390. cat conftest.err >&5
  21391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21392. (exit $ac_status); } && {
  21393. test -z "$ac_c_werror_flag" ||
  21394. test ! -s conftest.err
  21395. } && test -s conftest$ac_exeext && {
  21396. test "$cross_compiling" = yes ||
  21397. $as_test_x conftest$ac_exeext
  21398. }; then
  21399. ac_cv_lib_intl_strftime=yes
  21400. else
  21401. $as_echo "$as_me: failed program was:" >&5
  21402. sed 's/^/| /' conftest.$ac_ext >&5
  21403. ac_cv_lib_intl_strftime=no
  21404. fi
  21405. rm -rf conftest.dSYM
  21406. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21407. conftest$ac_exeext conftest.$ac_ext
  21408. LIBS=$ac_check_lib_save_LIBS
  21409. fi
  21410. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  21411. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  21412. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  21413. cat >>confdefs.h <<\_ACEOF
  21414. #define HAVE_STRFTIME 1
  21415. _ACEOF
  21416. LIBS="-lintl $LIBS"
  21417. fi
  21418. fi
  21419. done
  21420. for ac_func in vprintf
  21421. do
  21422. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21423. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21424. $as_echo_n "checking for $ac_func... " >&6; }
  21425. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21426. $as_echo_n "(cached) " >&6
  21427. else
  21428. cat >conftest.$ac_ext <<_ACEOF
  21429. /* confdefs.h. */
  21430. _ACEOF
  21431. cat confdefs.h >>conftest.$ac_ext
  21432. cat >>conftest.$ac_ext <<_ACEOF
  21433. /* end confdefs.h. */
  21434. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21435. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21436. #define $ac_func innocuous_$ac_func
  21437. /* System header to define __stub macros and hopefully few prototypes,
  21438. which can conflict with char $ac_func (); below.
  21439. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21440. <limits.h> exists even on freestanding compilers. */
  21441. #ifdef __STDC__
  21442. # include <limits.h>
  21443. #else
  21444. # include <assert.h>
  21445. #endif
  21446. #undef $ac_func
  21447. /* Override any GCC internal prototype to avoid an error.
  21448. Use char because int might match the return type of a GCC
  21449. builtin and then its argument prototype would still apply. */
  21450. #ifdef __cplusplus
  21451. extern "C"
  21452. #endif
  21453. char $ac_func ();
  21454. /* The GNU C library defines this for functions which it implements
  21455. to always fail with ENOSYS. Some functions are actually named
  21456. something starting with __ and the normal name is an alias. */
  21457. #if defined __stub_$ac_func || defined __stub___$ac_func
  21458. choke me
  21459. #endif
  21460. int
  21461. main ()
  21462. {
  21463. return $ac_func ();
  21464. ;
  21465. return 0;
  21466. }
  21467. _ACEOF
  21468. rm -f conftest.$ac_objext conftest$ac_exeext
  21469. if { (ac_try="$ac_link"
  21470. case "(($ac_try" in
  21471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21472. *) ac_try_echo=$ac_try;;
  21473. esac
  21474. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21475. $as_echo "$ac_try_echo") >&5
  21476. (eval "$ac_link") 2>conftest.er1
  21477. ac_status=$?
  21478. grep -v '^ *+' conftest.er1 >conftest.err
  21479. rm -f conftest.er1
  21480. cat conftest.err >&5
  21481. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21482. (exit $ac_status); } && {
  21483. test -z "$ac_c_werror_flag" ||
  21484. test ! -s conftest.err
  21485. } && test -s conftest$ac_exeext && {
  21486. test "$cross_compiling" = yes ||
  21487. $as_test_x conftest$ac_exeext
  21488. }; then
  21489. eval "$as_ac_var=yes"
  21490. else
  21491. $as_echo "$as_me: failed program was:" >&5
  21492. sed 's/^/| /' conftest.$ac_ext >&5
  21493. eval "$as_ac_var=no"
  21494. fi
  21495. rm -rf conftest.dSYM
  21496. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21497. conftest$ac_exeext conftest.$ac_ext
  21498. fi
  21499. ac_res=`eval 'as_val=${'$as_ac_var'}
  21500. $as_echo "$as_val"'`
  21501. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21502. $as_echo "$ac_res" >&6; }
  21503. as_val=`eval 'as_val=${'$as_ac_var'}
  21504. $as_echo "$as_val"'`
  21505. if test "x$as_val" = x""yes; then
  21506. cat >>confdefs.h <<_ACEOF
  21507. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21508. _ACEOF
  21509. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  21510. $as_echo_n "checking for _doprnt... " >&6; }
  21511. if test "${ac_cv_func__doprnt+set}" = set; then
  21512. $as_echo_n "(cached) " >&6
  21513. else
  21514. cat >conftest.$ac_ext <<_ACEOF
  21515. /* confdefs.h. */
  21516. _ACEOF
  21517. cat confdefs.h >>conftest.$ac_ext
  21518. cat >>conftest.$ac_ext <<_ACEOF
  21519. /* end confdefs.h. */
  21520. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  21521. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21522. #define _doprnt innocuous__doprnt
  21523. /* System header to define __stub macros and hopefully few prototypes,
  21524. which can conflict with char _doprnt (); below.
  21525. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21526. <limits.h> exists even on freestanding compilers. */
  21527. #ifdef __STDC__
  21528. # include <limits.h>
  21529. #else
  21530. # include <assert.h>
  21531. #endif
  21532. #undef _doprnt
  21533. /* Override any GCC internal prototype to avoid an error.
  21534. Use char because int might match the return type of a GCC
  21535. builtin and then its argument prototype would still apply. */
  21536. #ifdef __cplusplus
  21537. extern "C"
  21538. #endif
  21539. char _doprnt ();
  21540. /* The GNU C library defines this for functions which it implements
  21541. to always fail with ENOSYS. Some functions are actually named
  21542. something starting with __ and the normal name is an alias. */
  21543. #if defined __stub__doprnt || defined __stub____doprnt
  21544. choke me
  21545. #endif
  21546. int
  21547. main ()
  21548. {
  21549. return _doprnt ();
  21550. ;
  21551. return 0;
  21552. }
  21553. _ACEOF
  21554. rm -f conftest.$ac_objext conftest$ac_exeext
  21555. if { (ac_try="$ac_link"
  21556. case "(($ac_try" in
  21557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21558. *) ac_try_echo=$ac_try;;
  21559. esac
  21560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21561. $as_echo "$ac_try_echo") >&5
  21562. (eval "$ac_link") 2>conftest.er1
  21563. ac_status=$?
  21564. grep -v '^ *+' conftest.er1 >conftest.err
  21565. rm -f conftest.er1
  21566. cat conftest.err >&5
  21567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21568. (exit $ac_status); } && {
  21569. test -z "$ac_c_werror_flag" ||
  21570. test ! -s conftest.err
  21571. } && test -s conftest$ac_exeext && {
  21572. test "$cross_compiling" = yes ||
  21573. $as_test_x conftest$ac_exeext
  21574. }; then
  21575. ac_cv_func__doprnt=yes
  21576. else
  21577. $as_echo "$as_me: failed program was:" >&5
  21578. sed 's/^/| /' conftest.$ac_ext >&5
  21579. ac_cv_func__doprnt=no
  21580. fi
  21581. rm -rf conftest.dSYM
  21582. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21583. conftest$ac_exeext conftest.$ac_ext
  21584. fi
  21585. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  21586. $as_echo "$ac_cv_func__doprnt" >&6; }
  21587. if test "x$ac_cv_func__doprnt" = x""yes; then
  21588. cat >>confdefs.h <<\_ACEOF
  21589. #define HAVE_DOPRNT 1
  21590. _ACEOF
  21591. fi
  21592. fi
  21593. done
  21594. 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
  21595. do
  21596. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21597. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21598. $as_echo_n "checking for $ac_func... " >&6; }
  21599. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21600. $as_echo_n "(cached) " >&6
  21601. else
  21602. cat >conftest.$ac_ext <<_ACEOF
  21603. /* confdefs.h. */
  21604. _ACEOF
  21605. cat confdefs.h >>conftest.$ac_ext
  21606. cat >>conftest.$ac_ext <<_ACEOF
  21607. /* end confdefs.h. */
  21608. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21609. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21610. #define $ac_func innocuous_$ac_func
  21611. /* System header to define __stub macros and hopefully few prototypes,
  21612. which can conflict with char $ac_func (); below.
  21613. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21614. <limits.h> exists even on freestanding compilers. */
  21615. #ifdef __STDC__
  21616. # include <limits.h>
  21617. #else
  21618. # include <assert.h>
  21619. #endif
  21620. #undef $ac_func
  21621. /* Override any GCC internal prototype to avoid an error.
  21622. Use char because int might match the return type of a GCC
  21623. builtin and then its argument prototype would still apply. */
  21624. #ifdef __cplusplus
  21625. extern "C"
  21626. #endif
  21627. char $ac_func ();
  21628. /* The GNU C library defines this for functions which it implements
  21629. to always fail with ENOSYS. Some functions are actually named
  21630. something starting with __ and the normal name is an alias. */
  21631. #if defined __stub_$ac_func || defined __stub___$ac_func
  21632. choke me
  21633. #endif
  21634. int
  21635. main ()
  21636. {
  21637. return $ac_func ();
  21638. ;
  21639. return 0;
  21640. }
  21641. _ACEOF
  21642. rm -f conftest.$ac_objext conftest$ac_exeext
  21643. if { (ac_try="$ac_link"
  21644. case "(($ac_try" in
  21645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21646. *) ac_try_echo=$ac_try;;
  21647. esac
  21648. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21649. $as_echo "$ac_try_echo") >&5
  21650. (eval "$ac_link") 2>conftest.er1
  21651. ac_status=$?
  21652. grep -v '^ *+' conftest.er1 >conftest.err
  21653. rm -f conftest.er1
  21654. cat conftest.err >&5
  21655. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21656. (exit $ac_status); } && {
  21657. test -z "$ac_c_werror_flag" ||
  21658. test ! -s conftest.err
  21659. } && test -s conftest$ac_exeext && {
  21660. test "$cross_compiling" = yes ||
  21661. $as_test_x conftest$ac_exeext
  21662. }; then
  21663. eval "$as_ac_var=yes"
  21664. else
  21665. $as_echo "$as_me: failed program was:" >&5
  21666. sed 's/^/| /' conftest.$ac_ext >&5
  21667. eval "$as_ac_var=no"
  21668. fi
  21669. rm -rf conftest.dSYM
  21670. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21671. conftest$ac_exeext conftest.$ac_ext
  21672. fi
  21673. ac_res=`eval 'as_val=${'$as_ac_var'}
  21674. $as_echo "$as_val"'`
  21675. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21676. $as_echo "$ac_res" >&6; }
  21677. as_val=`eval 'as_val=${'$as_ac_var'}
  21678. $as_echo "$as_val"'`
  21679. if test "x$as_val" = x""yes; then
  21680. cat >>confdefs.h <<_ACEOF
  21681. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21682. _ACEOF
  21683. fi
  21684. done
  21685. { $as_echo "$as_me:$LINENO: checking for --enable-debug" >&5
  21686. $as_echo_n "checking for --enable-debug... " >&6; }
  21687. # Check whether --enable-debug was given.
  21688. if test "${enable_debug+set}" = set; then
  21689. enableval=$enable_debug;
  21690. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21691. $as_echo "yes" >&6; }
  21692. debug_defs="-DDEBUG -DMCC_DEBUG"
  21693. else
  21694. { $as_echo "$as_me:$LINENO: result: no" >&5
  21695. $as_echo "no" >&6; }
  21696. debug_defs=""
  21697. fi
  21698. # Used for legacy style packaging where we bundle all of the dependencies.
  21699. { $as_echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  21700. $as_echo_n "checking for --enable-bundle... " >&6; }
  21701. # Check whether --enable-bundle was given.
  21702. if test "${enable_bundle+set}" = set; then
  21703. enableval=$enable_bundle;
  21704. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21705. $as_echo "yes" >&6; }
  21706. bundle="1";
  21707. else
  21708. { $as_echo "$as_me:$LINENO: result: no" >&5
  21709. $as_echo "no" >&6; }
  21710. bundle="";
  21711. fi
  21712. if test "$bundle" = "1"; then
  21713. BUNDLE_TRUE=
  21714. BUNDLE_FALSE='#'
  21715. else
  21716. BUNDLE_TRUE='#'
  21717. BUNDLE_FALSE=
  21718. fi
  21719. # these enables are for optional or experimental features
  21720. if test -z "$enable_pam_passthru" ; then
  21721. enable_pam_passthru=yes # if not set on cmdline, set default
  21722. fi
  21723. { $as_echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  21724. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  21725. # Check whether --enable-pam-passthru was given.
  21726. if test "${enable_pam_passthru+set}" = set; then
  21727. enableval=$enable_pam_passthru;
  21728. fi
  21729. if test "$enable_pam_passthru" = yes ; then
  21730. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21731. $as_echo "yes" >&6; }
  21732. cat >>confdefs.h <<\_ACEOF
  21733. #define ENABLE_PAM_PASSTHRU 1
  21734. _ACEOF
  21735. else
  21736. { $as_echo "$as_me:$LINENO: result: no" >&5
  21737. $as_echo "no" >&6; }
  21738. fi
  21739. if test "$enable_pam_passthru" = "yes"; then
  21740. enable_pam_passthru_TRUE=
  21741. enable_pam_passthru_FALSE='#'
  21742. else
  21743. enable_pam_passthru_TRUE='#'
  21744. enable_pam_passthru_FALSE=
  21745. fi
  21746. if test -z "$enable_dna" ; then
  21747. enable_dna=yes # if not set on cmdline, set default
  21748. fi
  21749. { $as_echo "$as_me:$LINENO: checking for --enable-dna" >&5
  21750. $as_echo_n "checking for --enable-dna... " >&6; }
  21751. # Check whether --enable-dna was given.
  21752. if test "${enable_dna+set}" = set; then
  21753. enableval=$enable_dna;
  21754. fi
  21755. if test "$enable_dna" = yes ; then
  21756. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21757. $as_echo "yes" >&6; }
  21758. cat >>confdefs.h <<\_ACEOF
  21759. #define ENABLE_DNA 1
  21760. _ACEOF
  21761. else
  21762. { $as_echo "$as_me:$LINENO: result: no" >&5
  21763. $as_echo "no" >&6; }
  21764. fi
  21765. if test "$enable_dna" = "yes"; then
  21766. enable_dna_TRUE=
  21767. enable_dna_FALSE='#'
  21768. else
  21769. enable_dna_TRUE='#'
  21770. enable_dna_FALSE=
  21771. fi
  21772. if test -z "$enable_ldapi" ; then
  21773. enable_ldapi=yes # if not set on cmdline, set default
  21774. fi
  21775. { $as_echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  21776. $as_echo_n "checking for --enable-ldapi... " >&6; }
  21777. # Check whether --enable-ldapi was given.
  21778. if test "${enable_ldapi+set}" = set; then
  21779. enableval=$enable_ldapi;
  21780. fi
  21781. if test "$enable_ldapi" = yes ; then
  21782. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21783. $as_echo "yes" >&6; }
  21784. cat >>confdefs.h <<\_ACEOF
  21785. #define ENABLE_LDAPI 1
  21786. _ACEOF
  21787. else
  21788. { $as_echo "$as_me:$LINENO: result: no" >&5
  21789. $as_echo "no" >&6; }
  21790. fi
  21791. if test "$enable_ldapi" = "yes"; then
  21792. enable_ldapi_TRUE=
  21793. enable_ldapi_FALSE='#'
  21794. else
  21795. enable_ldapi_TRUE='#'
  21796. enable_ldapi_FALSE=
  21797. fi
  21798. if test -z "$enable_autobind" ; then
  21799. enable_autobind=no # if not set on cmdline, set default
  21800. fi
  21801. { $as_echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  21802. $as_echo_n "checking for --enable-autobind... " >&6; }
  21803. # Check whether --enable-autobind was given.
  21804. if test "${enable_autobind+set}" = set; then
  21805. enableval=$enable_autobind;
  21806. fi
  21807. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  21808. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21809. $as_echo "yes" >&6; }
  21810. cat >>confdefs.h <<\_ACEOF
  21811. #define ENABLE_AUTOBIND 1
  21812. _ACEOF
  21813. else
  21814. { $as_echo "$as_me:$LINENO: result: no" >&5
  21815. $as_echo "no" >&6; }
  21816. fi
  21817. if test "$enable_autobind" = "yes"; then
  21818. enable_autobind_TRUE=
  21819. enable_autobind_FALSE='#'
  21820. else
  21821. enable_autobind_TRUE='#'
  21822. enable_autobind_FALSE=
  21823. fi
  21824. if test -z "$enable_auto_dn_suffix" ; then
  21825. enable_auto_dn_suffix=no # if not set on cmdline, set default
  21826. fi
  21827. { $as_echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  21828. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  21829. # Check whether --enable-autobind was given.
  21830. if test "${enable_autobind+set}" = set; then
  21831. enableval=$enable_autobind;
  21832. fi
  21833. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  21834. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21835. $as_echo "yes" >&6; }
  21836. cat >>confdefs.h <<\_ACEOF
  21837. #define ENABLE_AUTO_DN_SUFFIX 1
  21838. _ACEOF
  21839. else
  21840. { $as_echo "$as_me:$LINENO: result: no" >&5
  21841. $as_echo "no" >&6; }
  21842. fi
  21843. if test "$enable_auto_dn_suffix" = "yes"; then
  21844. enable_auto_dn_suffix_TRUE=
  21845. enable_auto_dn_suffix_FALSE='#'
  21846. else
  21847. enable_auto_dn_suffix_TRUE='#'
  21848. enable_auto_dn_suffix_FALSE=
  21849. fi
  21850. if test -z "$enable_bitwise" ; then
  21851. enable_bitwise=yes # if not set on cmdline, set default
  21852. fi
  21853. { $as_echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  21854. $as_echo_n "checking for --enable-bitwise... " >&6; }
  21855. # Check whether --enable-bitwise was given.
  21856. if test "${enable_bitwise+set}" = set; then
  21857. enableval=$enable_bitwise;
  21858. fi
  21859. if test "$enable_bitwise" = yes ; then
  21860. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21861. $as_echo "yes" >&6; }
  21862. cat >>confdefs.h <<\_ACEOF
  21863. #define ENABLE_BITWISE 1
  21864. _ACEOF
  21865. else
  21866. { $as_echo "$as_me:$LINENO: result: no" >&5
  21867. $as_echo "no" >&6; }
  21868. fi
  21869. if test "$enable_bitwise" = "yes"; then
  21870. enable_bitwise_TRUE=
  21871. enable_bitwise_FALSE='#'
  21872. else
  21873. enable_bitwise_TRUE='#'
  21874. enable_bitwise_FALSE=
  21875. fi
  21876. if test -z "$enable_presence" ; then
  21877. enable_presence=no # if not set on cmdline, set default
  21878. fi
  21879. { $as_echo "$as_me:$LINENO: checking for --enable-presence" >&5
  21880. $as_echo_n "checking for --enable-presence... " >&6; }
  21881. # Check whether --enable-presence was given.
  21882. if test "${enable_presence+set}" = set; then
  21883. enableval=$enable_presence;
  21884. fi
  21885. if test "$enable_presence" = yes ; then
  21886. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21887. $as_echo "yes" >&6; }
  21888. cat >>confdefs.h <<\_ACEOF
  21889. #define ENABLE_PRESENCE 1
  21890. _ACEOF
  21891. else
  21892. { $as_echo "$as_me:$LINENO: result: no" >&5
  21893. $as_echo "no" >&6; }
  21894. fi
  21895. if test "$enable_presence" = "yes"; then
  21896. enable_presence_TRUE=
  21897. enable_presence_FALSE='#'
  21898. else
  21899. enable_presence_TRUE='#'
  21900. enable_presence_FALSE=
  21901. fi
  21902. # the default prefix - override with --prefix or --with-fhs
  21903. brand=389
  21904. capbrand=389
  21905. vendor="389 Project"
  21906. # BEGIN COPYRIGHT BLOCK
  21907. # Copyright (C) 2006 Red Hat, Inc.
  21908. # All rights reserved.
  21909. #
  21910. # This program is free software; you can redistribute it and/or
  21911. # modify it under the terms of the GNU General Public License
  21912. # as published by the Free Software Foundation; either version 2
  21913. # of the License, or (at your option) any later version.
  21914. #
  21915. # This program is distributed in the hope that it will be useful,
  21916. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21917. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21918. # GNU General Public License for more details.
  21919. #
  21920. # You should have received a copy of the GNU General Public License
  21921. # along with this program; if not, write to the Free Software
  21922. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21923. #
  21924. # END COPYRIGHT BLOCK
  21925. { $as_echo "$as_me:$LINENO: checking for FHS..." >&5
  21926. $as_echo "$as_me: checking for FHS..." >&6;}
  21927. # check for --with-fhs
  21928. { $as_echo "$as_me:$LINENO: checking for --with-fhs" >&5
  21929. $as_echo_n "checking for --with-fhs... " >&6; }
  21930. # Check whether --with-fhs was given.
  21931. if test "${with_fhs+set}" = set; then
  21932. withval=$with_fhs;
  21933. with_fhs=yes
  21934. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21935. $as_echo "yes" >&6; }
  21936. else
  21937. { $as_echo "$as_me:$LINENO: result: no" >&5
  21938. $as_echo "no" >&6; }
  21939. fi
  21940. if test "$with_fhs" = "yes"; then
  21941. cat >>confdefs.h <<\_ACEOF
  21942. #define IS_FHS 1
  21943. _ACEOF
  21944. fi
  21945. # check for --with-fhs-opt
  21946. { $as_echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  21947. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  21948. # Check whether --with-fhs-opt was given.
  21949. if test "${with_fhs_opt+set}" = set; then
  21950. withval=$with_fhs_opt;
  21951. with_fhs_opt=yes
  21952. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21953. $as_echo "yes" >&6; }
  21954. else
  21955. { $as_echo "$as_me:$LINENO: result: no" >&5
  21956. $as_echo "no" >&6; }
  21957. fi
  21958. if test "$with_fhs_opt" = "yes"; then
  21959. cat >>confdefs.h <<\_ACEOF
  21960. #define IS_FHS_OPT 1
  21961. _ACEOF
  21962. fi
  21963. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  21964. { { $as_echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  21965. $as_echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  21966. { (exit 1); exit 1; }; }
  21967. fi
  21968. # installation paths - by default, we store everything
  21969. # under the prefix. The with-fhs option will use /usr,
  21970. # /etc, and /var. The with-fhs-opt option will use the
  21971. # prefix, but it's sysconfdir and localstatedir will be
  21972. # /etc/opt, and /var/opt.
  21973. if test "$with_fhs_opt" = "yes"; then
  21974. # Override sysconfdir and localstatedir if FHS optional
  21975. # package was requested.
  21976. sysconfdir='/etc/opt'
  21977. localstatedir='/var/opt'
  21978. # relative to datadir
  21979. sampledatadir=/data
  21980. # relative to datadir
  21981. scripttemplatedir=/script-templates
  21982. # relative to libdir
  21983. serverdir=
  21984. # relative to libdir
  21985. serverplugindir=/plugins
  21986. # relative to datadir
  21987. infdir=/inf
  21988. # relative to datadir
  21989. mibdir=/mibs
  21990. # location of property/resource files, relative to datadir
  21991. propertydir=/properties
  21992. # relative to libdir
  21993. perldir=/perl
  21994. else
  21995. if test "$with_fhs" = "yes"; then
  21996. ac_default_prefix=/usr
  21997. prefix=$ac_default_prefix
  21998. exec_prefix=$prefix
  21999. sysconfdir='/etc'
  22000. localstatedir='/var'
  22001. fi
  22002. # relative to datadir
  22003. sampledatadir=/$PACKAGE_NAME/data
  22004. # relative to datadir
  22005. scripttemplatedir=/$PACKAGE_NAME/script-templates
  22006. # relative to libdir
  22007. serverdir=/$PACKAGE_NAME
  22008. # relative to libdir
  22009. serverplugindir=/$PACKAGE_NAME/plugins
  22010. # relative to datadir
  22011. infdir=/$PACKAGE_NAME/inf
  22012. # relative to datadir
  22013. mibdir=/$PACKAGE_NAME/mibs
  22014. # location of property/resource files, relative to datadir
  22015. propertydir=/$PACKAGE_NAME/properties
  22016. # relative to libdir
  22017. perldir=/$PACKAGE_NAME/perl
  22018. fi
  22019. # if mandir is the default value, override it
  22020. # otherwise, the user must have set it - just use it
  22021. if test X"$mandir" = X'${prefix}/man' ; then
  22022. mandir='$(datadir)/man'
  22023. fi
  22024. # Shared paths for all layouts
  22025. # relative to sysconfdir
  22026. configdir=/$PACKAGE_NAME/config
  22027. # relative to sysconfdir
  22028. schemadir=/$PACKAGE_NAME/schema
  22029. # default user, group
  22030. defaultuser=nobody
  22031. defaultgroup=nobody
  22032. # check for --with-instconfigdir
  22033. { $as_echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  22034. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  22035. # Check whether --with-instconfigdir was given.
  22036. if test "${with_instconfigdir+set}" = set; then
  22037. withval=$with_instconfigdir;
  22038. if test $withval = yes ; then
  22039. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  22040. $as_echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  22041. { (exit 1); exit 1; }; }
  22042. fi
  22043. instconfigdir="$withval"
  22044. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  22045. $as_echo "$withval" >&6; }
  22046. else
  22047. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  22048. { $as_echo "$as_me:$LINENO: result: no" >&5
  22049. $as_echo "no" >&6; }
  22050. fi
  22051. # WINNT should be true if building on Windows system not using
  22052. # cygnus, mingw, or the like and using cmd.exe as the shell
  22053. if false; then
  22054. WINNT_TRUE=
  22055. WINNT_FALSE='#'
  22056. else
  22057. WINNT_TRUE='#'
  22058. WINNT_FALSE=
  22059. fi
  22060. # Deal with platform dependent defines
  22061. # relative to sysconfdir
  22062. initdir=/rc.d
  22063. # on most platforms, we will just use perl from PATH
  22064. # On some platforms, we cannot. Why not just use any old
  22065. # perl? Because of perldap. We use a perldap that is
  22066. # compiled to either 32bit or 64bit, so we must use a native
  22067. # perl binary compiled with the same bitsize. On Solaris
  22068. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  22069. # those with our 64 bit compiled product.
  22070. perlexec='/usr/bin/env perl'
  22071. case $host in
  22072. *-*-linux*)
  22073. cat >>confdefs.h <<\_ACEOF
  22074. #define XP_UNIX 1
  22075. _ACEOF
  22076. cat >>confdefs.h <<\_ACEOF
  22077. #define Linux 1
  22078. _ACEOF
  22079. cat >>confdefs.h <<\_ACEOF
  22080. #define LINUX 1
  22081. _ACEOF
  22082. cat >>confdefs.h <<\_ACEOF
  22083. #define LINUX2_0 1
  22084. _ACEOF
  22085. cat >>confdefs.h <<\_ACEOF
  22086. #define LINUX2_2 1
  22087. _ACEOF
  22088. cat >>confdefs.h <<\_ACEOF
  22089. #define LINUX2_4 1
  22090. _ACEOF
  22091. cat >>confdefs.h <<\_ACEOF
  22092. #define _GNU_SOURCE 1
  22093. _ACEOF
  22094. platform="linux"
  22095. # relative to sysconfdir
  22096. initdir=/rc.d/init.d
  22097. # do arch specific linux stuff here
  22098. case $host in
  22099. i*86-*-linux*)
  22100. cat >>confdefs.h <<\_ACEOF
  22101. #define CPU_x86 /**/
  22102. _ACEOF
  22103. cat >>confdefs.h <<\_ACEOF
  22104. #define ATOMIC_64BIT_OPERATIONS 1
  22105. _ACEOF
  22106. { $as_echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  22107. $as_echo_n "checking whether __sync_add_and_fetch is declared... " >&6; }
  22108. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  22109. $as_echo_n "(cached) " >&6
  22110. else
  22111. cat >conftest.$ac_ext <<_ACEOF
  22112. /* confdefs.h. */
  22113. _ACEOF
  22114. cat confdefs.h >>conftest.$ac_ext
  22115. cat >>conftest.$ac_ext <<_ACEOF
  22116. /* end confdefs.h. */
  22117. $ac_includes_default
  22118. int
  22119. main ()
  22120. {
  22121. #ifndef __sync_add_and_fetch
  22122. (void) __sync_add_and_fetch;
  22123. #endif
  22124. ;
  22125. return 0;
  22126. }
  22127. _ACEOF
  22128. rm -f conftest.$ac_objext
  22129. if { (ac_try="$ac_compile"
  22130. case "(($ac_try" in
  22131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22132. *) ac_try_echo=$ac_try;;
  22133. esac
  22134. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22135. $as_echo "$ac_try_echo") >&5
  22136. (eval "$ac_compile") 2>conftest.er1
  22137. ac_status=$?
  22138. grep -v '^ *+' conftest.er1 >conftest.err
  22139. rm -f conftest.er1
  22140. cat conftest.err >&5
  22141. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22142. (exit $ac_status); } && {
  22143. test -z "$ac_c_werror_flag" ||
  22144. test ! -s conftest.err
  22145. } && test -s conftest.$ac_objext; then
  22146. ac_cv_have_decl___sync_add_and_fetch=yes
  22147. else
  22148. $as_echo "$as_me: failed program was:" >&5
  22149. sed 's/^/| /' conftest.$ac_ext >&5
  22150. ac_cv_have_decl___sync_add_and_fetch=no
  22151. fi
  22152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22153. fi
  22154. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  22155. $as_echo "$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  22156. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then
  22157. cat >>confdefs.h <<_ACEOF
  22158. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  22159. _ACEOF
  22160. else
  22161. cat >>confdefs.h <<_ACEOF
  22162. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  22163. _ACEOF
  22164. fi
  22165. ;;
  22166. x86_64-*-linux*)
  22167. cat >>confdefs.h <<\_ACEOF
  22168. #define CPU_x86_64 /**/
  22169. _ACEOF
  22170. cat >>confdefs.h <<\_ACEOF
  22171. #define ATOMIC_64BIT_OPERATIONS 1
  22172. _ACEOF
  22173. { $as_echo "$as_me:$LINENO: checking whether __sync_add_and_fetch is declared" >&5
  22174. $as_echo_n "checking whether __sync_add_and_fetch is declared... " >&6; }
  22175. if test "${ac_cv_have_decl___sync_add_and_fetch+set}" = set; then
  22176. $as_echo_n "(cached) " >&6
  22177. else
  22178. cat >conftest.$ac_ext <<_ACEOF
  22179. /* confdefs.h. */
  22180. _ACEOF
  22181. cat confdefs.h >>conftest.$ac_ext
  22182. cat >>conftest.$ac_ext <<_ACEOF
  22183. /* end confdefs.h. */
  22184. $ac_includes_default
  22185. int
  22186. main ()
  22187. {
  22188. #ifndef __sync_add_and_fetch
  22189. (void) __sync_add_and_fetch;
  22190. #endif
  22191. ;
  22192. return 0;
  22193. }
  22194. _ACEOF
  22195. rm -f conftest.$ac_objext
  22196. if { (ac_try="$ac_compile"
  22197. case "(($ac_try" in
  22198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22199. *) ac_try_echo=$ac_try;;
  22200. esac
  22201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22202. $as_echo "$ac_try_echo") >&5
  22203. (eval "$ac_compile") 2>conftest.er1
  22204. ac_status=$?
  22205. grep -v '^ *+' conftest.er1 >conftest.err
  22206. rm -f conftest.er1
  22207. cat conftest.err >&5
  22208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22209. (exit $ac_status); } && {
  22210. test -z "$ac_c_werror_flag" ||
  22211. test ! -s conftest.err
  22212. } && test -s conftest.$ac_objext; then
  22213. ac_cv_have_decl___sync_add_and_fetch=yes
  22214. else
  22215. $as_echo "$as_me: failed program was:" >&5
  22216. sed 's/^/| /' conftest.$ac_ext >&5
  22217. ac_cv_have_decl___sync_add_and_fetch=no
  22218. fi
  22219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22220. fi
  22221. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sync_add_and_fetch" >&5
  22222. $as_echo "$ac_cv_have_decl___sync_add_and_fetch" >&6; }
  22223. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then
  22224. cat >>confdefs.h <<_ACEOF
  22225. #define HAVE_DECL___SYNC_ADD_AND_FETCH 1
  22226. _ACEOF
  22227. else
  22228. cat >>confdefs.h <<_ACEOF
  22229. #define HAVE_DECL___SYNC_ADD_AND_FETCH 0
  22230. _ACEOF
  22231. fi
  22232. ;;
  22233. esac
  22234. ;;
  22235. ia64-hp-hpux*)
  22236. cat >>confdefs.h <<\_ACEOF
  22237. #define XP_UNIX 1
  22238. _ACEOF
  22239. cat >>confdefs.h <<\_ACEOF
  22240. #define hpux 1
  22241. _ACEOF
  22242. cat >>confdefs.h <<\_ACEOF
  22243. #define HPUX 1
  22244. _ACEOF
  22245. cat >>confdefs.h <<\_ACEOF
  22246. #define HPUX11 1
  22247. _ACEOF
  22248. cat >>confdefs.h <<\_ACEOF
  22249. #define HPUX11_23 1
  22250. _ACEOF
  22251. cat >>confdefs.h <<\_ACEOF
  22252. #define CPU_ia64 /**/
  22253. _ACEOF
  22254. cat >>confdefs.h <<\_ACEOF
  22255. #define OS_hpux 1
  22256. _ACEOF
  22257. cat >>confdefs.h <<\_ACEOF
  22258. #define _POSIX_C_SOURCE 199506L
  22259. _ACEOF
  22260. cat >>confdefs.h <<\_ACEOF
  22261. #define _HPUX_SOURCE 1
  22262. _ACEOF
  22263. cat >>confdefs.h <<\_ACEOF
  22264. #define _INCLUDE_STDC__SOURCE_199901 1
  22265. _ACEOF
  22266. cat >>confdefs.h <<\_ACEOF
  22267. #define ATOMIC_64BIT_OPERATIONS 1
  22268. _ACEOF
  22269. # assume 64 bit
  22270. perlexec='/opt/perl_64/bin/perl'
  22271. platform="hpux"
  22272. initconfigdir="/$PACKAGE_NAME/config"
  22273. ;;
  22274. hppa*-hp-hpux*)
  22275. cat >>confdefs.h <<\_ACEOF
  22276. #define XP_UNIX 1
  22277. _ACEOF
  22278. cat >>confdefs.h <<\_ACEOF
  22279. #define hpux 1
  22280. _ACEOF
  22281. cat >>confdefs.h <<\_ACEOF
  22282. #define HPUX 1
  22283. _ACEOF
  22284. cat >>confdefs.h <<\_ACEOF
  22285. #define HPUX11 1
  22286. _ACEOF
  22287. cat >>confdefs.h <<\_ACEOF
  22288. #define HPUX11_11 1
  22289. _ACEOF
  22290. cat >>confdefs.h <<\_ACEOF
  22291. #define CPU_hppa /**/
  22292. _ACEOF
  22293. cat >>confdefs.h <<\_ACEOF
  22294. #define OS_hpux 1
  22295. _ACEOF
  22296. cat >>confdefs.h <<\_ACEOF
  22297. #define _POSIX_C_SOURCE 199506L
  22298. _ACEOF
  22299. cat >>confdefs.h <<\_ACEOF
  22300. #define _HPUX_SOURCE 1
  22301. _ACEOF
  22302. cat >>confdefs.h <<\_ACEOF
  22303. #define _INCLUDE_STDC__SOURCE_199901 1
  22304. _ACEOF
  22305. cat >>confdefs.h <<\_ACEOF
  22306. #define ATOMIC_64BIT_OPERATIONS 1
  22307. _ACEOF
  22308. # assume 64 bit
  22309. initconfigdir="/$PACKAGE_NAME/config"
  22310. perlexec='/opt/perl_64/bin/perl'
  22311. platform="hpux"
  22312. ;;
  22313. sparc-sun-solaris*)
  22314. cat >>confdefs.h <<\_ACEOF
  22315. #define XP_UNIX 1
  22316. _ACEOF
  22317. cat >>confdefs.h <<\_ACEOF
  22318. #define SVR4 1
  22319. _ACEOF
  22320. cat >>confdefs.h <<\_ACEOF
  22321. #define __svr4 1
  22322. _ACEOF
  22323. cat >>confdefs.h <<\_ACEOF
  22324. #define __svr4__ 1
  22325. _ACEOF
  22326. cat >>confdefs.h <<\_ACEOF
  22327. #define _SVID_GETTOD 1
  22328. _ACEOF
  22329. cat >>confdefs.h <<\_ACEOF
  22330. #define SOLARIS 1
  22331. _ACEOF
  22332. cat >>confdefs.h <<\_ACEOF
  22333. #define CPU_sparc /**/
  22334. _ACEOF
  22335. cat >>confdefs.h <<\_ACEOF
  22336. #define OS_solaris 1
  22337. _ACEOF
  22338. cat >>confdefs.h <<\_ACEOF
  22339. #define sunos5 1
  22340. _ACEOF
  22341. cat >>confdefs.h <<\_ACEOF
  22342. #define OSVERSION 509
  22343. _ACEOF
  22344. cat >>confdefs.h <<\_ACEOF
  22345. #define _REENTRANT 1
  22346. _ACEOF
  22347. cat >>confdefs.h <<\_ACEOF
  22348. #define NO_DOMAINNAME 1
  22349. _ACEOF
  22350. cat >>confdefs.h <<\_ACEOF
  22351. #define ATOMIC_64BIT_OPERATIONS 1
  22352. _ACEOF
  22353. LIBSOCKET=-lsocket
  22354. LIBSOCKET=$LIBSOCKET
  22355. LIBNSL=-lnsl
  22356. LIBNSL=$LIBNSL
  22357. LIBDL=-ldl
  22358. LIBDL=$LIBDL
  22359. LIBCSTD=-lCstd
  22360. LIBCSTD=$LIBCSTD
  22361. LIBCRUN=-lCrun
  22362. LIBCRUN=$LIBCRUN
  22363. platform="solaris"
  22364. # assume 64 bit
  22365. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  22366. # relative to sysconfdir
  22367. initdir=/init.d
  22368. ;;
  22369. *)
  22370. platform=""
  22371. ;;
  22372. esac
  22373. # set default initconfigdir if not already set
  22374. # value will be set so as to be relative to $(sysconfdir)
  22375. if test -z "$initconfigdir" ; then
  22376. if test -d /etc/sysconfig ; then
  22377. initconfigdir=/sysconfig
  22378. elif test -d /etc/default ; then
  22379. initconfigdir=/default
  22380. else
  22381. initconfigdir="/$PACKAGE_NAME/config"
  22382. fi
  22383. fi
  22384. if test "$platform" = "hpux"; then
  22385. HPUX_TRUE=
  22386. HPUX_FALSE='#'
  22387. else
  22388. HPUX_TRUE='#'
  22389. HPUX_FALSE=
  22390. fi
  22391. if test "$platform" = "solaris"; then
  22392. SOLARIS_TRUE=
  22393. SOLARIS_FALSE='#'
  22394. else
  22395. SOLARIS_TRUE='#'
  22396. SOLARIS_FALSE=
  22397. fi
  22398. # Check for library dependencies
  22399. # BEGIN COPYRIGHT BLOCK
  22400. # Copyright (C) 2007 Red Hat, Inc.
  22401. # All rights reserved.
  22402. #
  22403. # This program is free software; you can redistribute it and/or
  22404. # modify it under the terms of the GNU General Public License
  22405. # as published by the Free Software Foundation; either version 2
  22406. # of the License, or (at your option) any later version.
  22407. #
  22408. # This program is distributed in the hope that it will be useful,
  22409. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22410. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22411. # GNU General Public License for more details.
  22412. #
  22413. # You should have received a copy of the GNU General Public License
  22414. # along with this program; if not, write to the Free Software
  22415. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22416. #
  22417. # END COPYRIGHT BLOCK
  22418. { $as_echo "$as_me:$LINENO: checking for NSPR..." >&5
  22419. $as_echo "$as_me: checking for NSPR..." >&6;}
  22420. # check for --with-nspr
  22421. { $as_echo "$as_me:$LINENO: checking for --with-nspr" >&5
  22422. $as_echo_n "checking for --with-nspr... " >&6; }
  22423. # Check whether --with-nspr was given.
  22424. if test "${with_nspr+set}" = set; then
  22425. withval=$with_nspr;
  22426. if test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  22427. then
  22428. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22429. $as_echo "using $withval" >&6; }
  22430. NSPRDIR=$withval
  22431. nspr_inc="-I$NSPRDIR/include"
  22432. nspr_lib="-L$NSPRDIR/lib"
  22433. nspr_libdir="$NSPRDIR/lib"
  22434. else
  22435. echo
  22436. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22437. $as_echo "$as_me: error: $withval not found" >&2;}
  22438. { (exit 1); exit 1; }; }
  22439. fi
  22440. else
  22441. { $as_echo "$as_me:$LINENO: result: no" >&5
  22442. $as_echo "no" >&6; }
  22443. fi
  22444. # check for --with-nspr-inc
  22445. { $as_echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  22446. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  22447. # Check whether --with-nspr-inc was given.
  22448. if test "${with_nspr_inc+set}" = set; then
  22449. withval=$with_nspr_inc;
  22450. if test -e "$withval"/nspr.h
  22451. then
  22452. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22453. $as_echo "using $withval" >&6; }
  22454. nspr_inc="-I$withval"
  22455. else
  22456. echo
  22457. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22458. $as_echo "$as_me: error: $withval not found" >&2;}
  22459. { (exit 1); exit 1; }; }
  22460. fi
  22461. else
  22462. { $as_echo "$as_me:$LINENO: result: no" >&5
  22463. $as_echo "no" >&6; }
  22464. fi
  22465. # check for --with-nspr-lib
  22466. { $as_echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  22467. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  22468. # Check whether --with-nspr-lib was given.
  22469. if test "${with_nspr_lib+set}" = set; then
  22470. withval=$with_nspr_lib;
  22471. if test -d "$withval"
  22472. then
  22473. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22474. $as_echo "using $withval" >&6; }
  22475. nspr_lib="-L$withval"
  22476. nspr_libdir="$withval"
  22477. else
  22478. echo
  22479. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22480. $as_echo "$as_me: error: $withval not found" >&2;}
  22481. { (exit 1); exit 1; }; }
  22482. fi
  22483. else
  22484. { $as_echo "$as_me:$LINENO: result: no" >&5
  22485. $as_echo "no" >&6; }
  22486. fi
  22487. # if NSPR is not found yet, try pkg-config
  22488. # last resort
  22489. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  22490. # Extract the first word of "pkg-config", so it can be a program name with args.
  22491. set dummy pkg-config; ac_word=$2
  22492. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  22493. $as_echo_n "checking for $ac_word... " >&6; }
  22494. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22495. $as_echo_n "(cached) " >&6
  22496. else
  22497. case $PKG_CONFIG in
  22498. [\\/]* | ?:[\\/]*)
  22499. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22500. ;;
  22501. *)
  22502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22503. for as_dir in $PATH
  22504. do
  22505. IFS=$as_save_IFS
  22506. test -z "$as_dir" && as_dir=.
  22507. for ac_exec_ext in '' $ac_executable_extensions; do
  22508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22509. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22510. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22511. break 2
  22512. fi
  22513. done
  22514. done
  22515. IFS=$as_save_IFS
  22516. ;;
  22517. esac
  22518. fi
  22519. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22520. if test -n "$PKG_CONFIG"; then
  22521. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22522. $as_echo "$PKG_CONFIG" >&6; }
  22523. else
  22524. { $as_echo "$as_me:$LINENO: result: no" >&5
  22525. $as_echo "no" >&6; }
  22526. fi
  22527. { $as_echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  22528. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  22529. if test -n "$PKG_CONFIG"; then
  22530. if $PKG_CONFIG --exists nspr; then
  22531. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  22532. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  22533. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  22534. { $as_echo "$as_me:$LINENO: result: using system NSPR" >&5
  22535. $as_echo "using system NSPR" >&6; }
  22536. elif $PKG_CONFIG --exists dirsec-nspr; then
  22537. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  22538. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  22539. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  22540. { $as_echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  22541. $as_echo "using system dirsec NSPR" >&6; }
  22542. else
  22543. { { $as_echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  22544. $as_echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  22545. { (exit 1); exit 1; }; }
  22546. fi
  22547. fi
  22548. fi
  22549. # BEGIN COPYRIGHT BLOCK
  22550. # Copyright (C) 2007 Red Hat, Inc.
  22551. # All rights reserved.
  22552. #
  22553. # This program is free software; you can redistribute it and/or
  22554. # modify it under the terms of the GNU General Public License
  22555. # as published by the Free Software Foundation; either version 2
  22556. # of the License, or (at your option) any later version.
  22557. #
  22558. # This program is distributed in the hope that it will be useful,
  22559. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22560. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22561. # GNU General Public License for more details.
  22562. #
  22563. # You should have received a copy of the GNU General Public License
  22564. # along with this program; if not, write to the Free Software
  22565. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22566. #
  22567. # END COPYRIGHT BLOCK
  22568. { $as_echo "$as_me:$LINENO: checking for NSS..." >&5
  22569. $as_echo "$as_me: checking for NSS..." >&6;}
  22570. # check for --with-nss
  22571. { $as_echo "$as_me:$LINENO: checking for --with-nss" >&5
  22572. $as_echo_n "checking for --with-nss... " >&6; }
  22573. # Check whether --with-nss was given.
  22574. if test "${with_nss+set}" = set; then
  22575. withval=$with_nss;
  22576. if test -e "$withval"/include/nss.h -a -d "$withval"/lib
  22577. then
  22578. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22579. $as_echo "using $withval" >&6; }
  22580. NSSDIR=$withval
  22581. nss_inc="-I$NSSDIR/include"
  22582. nss_lib="-L$NSSDIR/lib"
  22583. nss_libdir="$NSSDIR/lib"
  22584. else
  22585. echo
  22586. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22587. $as_echo "$as_me: error: $withval not found" >&2;}
  22588. { (exit 1); exit 1; }; }
  22589. fi
  22590. else
  22591. { $as_echo "$as_me:$LINENO: result: no" >&5
  22592. $as_echo "no" >&6; }
  22593. fi
  22594. # check for --with-nss-inc
  22595. { $as_echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  22596. $as_echo_n "checking for --with-nss-inc... " >&6; }
  22597. # Check whether --with-nss-inc was given.
  22598. if test "${with_nss_inc+set}" = set; then
  22599. withval=$with_nss_inc;
  22600. if test -e "$withval"/nss.h
  22601. then
  22602. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22603. $as_echo "using $withval" >&6; }
  22604. nss_inc="-I$withval"
  22605. else
  22606. echo
  22607. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22608. $as_echo "$as_me: error: $withval not found" >&2;}
  22609. { (exit 1); exit 1; }; }
  22610. fi
  22611. else
  22612. { $as_echo "$as_me:$LINENO: result: no" >&5
  22613. $as_echo "no" >&6; }
  22614. fi
  22615. # check for --with-nss-lib
  22616. { $as_echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  22617. $as_echo_n "checking for --with-nss-lib... " >&6; }
  22618. # Check whether --with-nss-lib was given.
  22619. if test "${with_nss_lib+set}" = set; then
  22620. withval=$with_nss_lib;
  22621. if test -d "$withval"
  22622. then
  22623. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22624. $as_echo "using $withval" >&6; }
  22625. nss_lib="-L$withval"
  22626. nss_libdir="$withval"
  22627. else
  22628. echo
  22629. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22630. $as_echo "$as_me: error: $withval not found" >&2;}
  22631. { (exit 1); exit 1; }; }
  22632. fi
  22633. else
  22634. { $as_echo "$as_me:$LINENO: result: no" >&5
  22635. $as_echo "no" >&6; }
  22636. fi
  22637. # if NSS is not found yet, try pkg-config
  22638. # last resort
  22639. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  22640. # Extract the first word of "pkg-config", so it can be a program name with args.
  22641. set dummy pkg-config; ac_word=$2
  22642. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  22643. $as_echo_n "checking for $ac_word... " >&6; }
  22644. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22645. $as_echo_n "(cached) " >&6
  22646. else
  22647. case $PKG_CONFIG in
  22648. [\\/]* | ?:[\\/]*)
  22649. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22650. ;;
  22651. *)
  22652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22653. for as_dir in $PATH
  22654. do
  22655. IFS=$as_save_IFS
  22656. test -z "$as_dir" && as_dir=.
  22657. for ac_exec_ext in '' $ac_executable_extensions; do
  22658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22659. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22660. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22661. break 2
  22662. fi
  22663. done
  22664. done
  22665. IFS=$as_save_IFS
  22666. ;;
  22667. esac
  22668. fi
  22669. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22670. if test -n "$PKG_CONFIG"; then
  22671. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22672. $as_echo "$PKG_CONFIG" >&6; }
  22673. else
  22674. { $as_echo "$as_me:$LINENO: result: no" >&5
  22675. $as_echo "no" >&6; }
  22676. fi
  22677. { $as_echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  22678. $as_echo_n "checking for nss with pkg-config... " >&6; }
  22679. if test -n "$PKG_CONFIG"; then
  22680. if $PKG_CONFIG --exists nss; then
  22681. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  22682. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  22683. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  22684. { $as_echo "$as_me:$LINENO: result: using system NSS" >&5
  22685. $as_echo "using system NSS" >&6; }
  22686. elif $PKG_CONFIG --exists dirsec-nss; then
  22687. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  22688. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  22689. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  22690. { $as_echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  22691. $as_echo "using system dirsec NSS" >&6; }
  22692. else
  22693. { { $as_echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  22694. $as_echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  22695. { (exit 1); exit 1; }; }
  22696. fi
  22697. fi
  22698. fi
  22699. # default to Mozilla LDAP C SDK - override with --with-openldap
  22700. with_ldapsdk=yes
  22701. # BEGIN COPYRIGHT BLOCK
  22702. # Copyright (C) 2009 Red Hat, Inc.
  22703. # All rights reserved.
  22704. #
  22705. # This program is free software; you can redistribute it and/or
  22706. # modify it under the terms of the GNU General Public License
  22707. # as published by the Free Software Foundation; either version 2
  22708. # of the License, or (at your option) any later version.
  22709. #
  22710. # This program is distributed in the hope that it will be useful,
  22711. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22712. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22713. # GNU General Public License for more details.
  22714. #
  22715. # You should have received a copy of the GNU General Public License
  22716. # along with this program; if not, write to the Free Software
  22717. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22718. #
  22719. # END COPYRIGHT BLOCK
  22720. { $as_echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  22721. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  22722. # check for --with-openldap
  22723. { $as_echo "$as_me:$LINENO: checking for --with-openldap" >&5
  22724. $as_echo_n "checking for --with-openldap... " >&6; }
  22725. # Check whether --with-openldap was given.
  22726. if test "${with_openldap+set}" = set; then
  22727. withval=$with_openldap;
  22728. if test "$withval" = yes
  22729. then
  22730. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  22731. $as_echo "using system OpenLDAP" >&6; }
  22732. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  22733. then
  22734. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22735. $as_echo "using $withval" >&6; }
  22736. OPENLDAPDIR=$withval
  22737. openldap_incdir="$OPENLDAPDIR/include"
  22738. openldap_inc="-I$openldap_incdir"
  22739. openldap_lib="-L$OPENLDAPDIR/lib"
  22740. openldap_libdir="$OPENLDAPDIR/lib"
  22741. openldap_bindir="$OPENLDAPDIR/bin"
  22742. with_openldap=yes
  22743. else
  22744. echo
  22745. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22746. $as_echo "$as_me: error: $withval not found" >&2;}
  22747. { (exit 1); exit 1; }; }
  22748. fi
  22749. else
  22750. { $as_echo "$as_me:$LINENO: result: no" >&5
  22751. $as_echo "no" >&6; }
  22752. fi
  22753. # check for --with-openldap-inc
  22754. { $as_echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  22755. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  22756. # Check whether --with-openldap-inc was given.
  22757. if test "${with_openldap_inc+set}" = set; then
  22758. withval=$with_openldap_inc;
  22759. if test -e "$withval"/ldap.h
  22760. then
  22761. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22762. $as_echo "using $withval" >&6; }
  22763. openldap_incdir="$withval"
  22764. openldap_inc="-I$withval"
  22765. with_openldap=yes
  22766. else
  22767. echo
  22768. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22769. $as_echo "$as_me: error: $withval not found" >&2;}
  22770. { (exit 1); exit 1; }; }
  22771. fi
  22772. else
  22773. { $as_echo "$as_me:$LINENO: result: no" >&5
  22774. $as_echo "no" >&6; }
  22775. fi
  22776. # check for --with-openldap-lib
  22777. { $as_echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  22778. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  22779. # Check whether --with-openldap-lib was given.
  22780. if test "${with_openldap_lib+set}" = set; then
  22781. withval=$with_openldap_lib;
  22782. if test -d "$withval"
  22783. then
  22784. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22785. $as_echo "using $withval" >&6; }
  22786. openldap_lib="-L$withval"
  22787. openldap_libdir="$withval"
  22788. with_openldap=yes
  22789. else
  22790. echo
  22791. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22792. $as_echo "$as_me: error: $withval not found" >&2;}
  22793. { (exit 1); exit 1; }; }
  22794. fi
  22795. else
  22796. { $as_echo "$as_me:$LINENO: result: no" >&5
  22797. $as_echo "no" >&6; }
  22798. fi
  22799. # check for --with-openldap-bin
  22800. { $as_echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  22801. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  22802. # Check whether --with-openldap-bin was given.
  22803. if test "${with_openldap_bin+set}" = set; then
  22804. withval=$with_openldap_bin;
  22805. if test -d "$withval"
  22806. then
  22807. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  22808. $as_echo "using $withval" >&6; }
  22809. openldap_bindir="$withval"
  22810. with_openldap=yes
  22811. else
  22812. echo
  22813. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  22814. $as_echo "$as_me: error: $withval not found" >&2;}
  22815. { (exit 1); exit 1; }; }
  22816. fi
  22817. else
  22818. { $as_echo "$as_me:$LINENO: result: no" >&5
  22819. $as_echo "no" >&6; }
  22820. fi
  22821. # if OPENLDAP is not found yet, try pkg-config
  22822. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  22823. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  22824. # Extract the first word of "pkg-config", so it can be a program name with args.
  22825. set dummy pkg-config; ac_word=$2
  22826. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  22827. $as_echo_n "checking for $ac_word... " >&6; }
  22828. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  22829. $as_echo_n "(cached) " >&6
  22830. else
  22831. case $PKG_CONFIG in
  22832. [\\/]* | ?:[\\/]*)
  22833. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  22834. ;;
  22835. *)
  22836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22837. for as_dir in $PATH
  22838. do
  22839. IFS=$as_save_IFS
  22840. test -z "$as_dir" && as_dir=.
  22841. for ac_exec_ext in '' $ac_executable_extensions; do
  22842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22843. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  22844. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22845. break 2
  22846. fi
  22847. done
  22848. done
  22849. IFS=$as_save_IFS
  22850. ;;
  22851. esac
  22852. fi
  22853. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  22854. if test -n "$PKG_CONFIG"; then
  22855. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  22856. $as_echo "$PKG_CONFIG" >&6; }
  22857. else
  22858. { $as_echo "$as_me:$LINENO: result: no" >&5
  22859. $as_echo "no" >&6; }
  22860. fi
  22861. { $as_echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  22862. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  22863. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  22864. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  22865. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  22866. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  22867. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  22868. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  22869. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  22870. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  22871. else
  22872. openldap_incdir="/usr/include"
  22873. openldap_inc="-I$openldap_incdir"
  22874. { $as_echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  22875. $as_echo "no OpenLDAP pkg-config files" >&6; }
  22876. fi
  22877. fi
  22878. fi
  22879. if test "$with_openldap" = yes ; then
  22880. save_cppflags="$CPPFLAGS"
  22881. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  22882. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  22883. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  22884. $as_echo_n "checking for ldap_features.h... " >&6; }
  22885. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  22886. $as_echo_n "(cached) " >&6
  22887. fi
  22888. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  22889. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  22890. else
  22891. # Is the header compilable?
  22892. { $as_echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  22893. $as_echo_n "checking ldap_features.h usability... " >&6; }
  22894. cat >conftest.$ac_ext <<_ACEOF
  22895. /* confdefs.h. */
  22896. _ACEOF
  22897. cat confdefs.h >>conftest.$ac_ext
  22898. cat >>conftest.$ac_ext <<_ACEOF
  22899. /* end confdefs.h. */
  22900. $ac_includes_default
  22901. #include <ldap_features.h>
  22902. _ACEOF
  22903. rm -f conftest.$ac_objext
  22904. if { (ac_try="$ac_compile"
  22905. case "(($ac_try" in
  22906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22907. *) ac_try_echo=$ac_try;;
  22908. esac
  22909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22910. $as_echo "$ac_try_echo") >&5
  22911. (eval "$ac_compile") 2>conftest.er1
  22912. ac_status=$?
  22913. grep -v '^ *+' conftest.er1 >conftest.err
  22914. rm -f conftest.er1
  22915. cat conftest.err >&5
  22916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22917. (exit $ac_status); } && {
  22918. test -z "$ac_c_werror_flag" ||
  22919. test ! -s conftest.err
  22920. } && test -s conftest.$ac_objext; then
  22921. ac_header_compiler=yes
  22922. else
  22923. $as_echo "$as_me: failed program was:" >&5
  22924. sed 's/^/| /' conftest.$ac_ext >&5
  22925. ac_header_compiler=no
  22926. fi
  22927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22928. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22929. $as_echo "$ac_header_compiler" >&6; }
  22930. # Is the header present?
  22931. { $as_echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  22932. $as_echo_n "checking ldap_features.h presence... " >&6; }
  22933. cat >conftest.$ac_ext <<_ACEOF
  22934. /* confdefs.h. */
  22935. _ACEOF
  22936. cat confdefs.h >>conftest.$ac_ext
  22937. cat >>conftest.$ac_ext <<_ACEOF
  22938. /* end confdefs.h. */
  22939. #include <ldap_features.h>
  22940. _ACEOF
  22941. if { (ac_try="$ac_cpp conftest.$ac_ext"
  22942. case "(($ac_try" in
  22943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22944. *) ac_try_echo=$ac_try;;
  22945. esac
  22946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  22947. $as_echo "$ac_try_echo") >&5
  22948. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  22949. ac_status=$?
  22950. grep -v '^ *+' conftest.er1 >conftest.err
  22951. rm -f conftest.er1
  22952. cat conftest.err >&5
  22953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22954. (exit $ac_status); } >/dev/null && {
  22955. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  22956. test ! -s conftest.err
  22957. }; then
  22958. ac_header_preproc=yes
  22959. else
  22960. $as_echo "$as_me: failed program was:" >&5
  22961. sed 's/^/| /' conftest.$ac_ext >&5
  22962. ac_header_preproc=no
  22963. fi
  22964. rm -f conftest.err conftest.$ac_ext
  22965. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22966. $as_echo "$ac_header_preproc" >&6; }
  22967. # So? What about this header?
  22968. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22969. yes:no: )
  22970. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  22971. $as_echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22972. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  22973. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  22974. ac_header_preproc=yes
  22975. ;;
  22976. no:yes:* )
  22977. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  22978. $as_echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  22979. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  22980. $as_echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  22981. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  22982. $as_echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  22983. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  22984. $as_echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  22985. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  22986. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  22987. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  22988. $as_echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  22989. ( cat <<\_ASBOX
  22990. ## ------------------------------------------ ##
  22991. ## Report this to http://bugzilla.redhat.com/ ##
  22992. ## ------------------------------------------ ##
  22993. _ASBOX
  22994. ) | sed "s/^/$as_me: WARNING: /" >&2
  22995. ;;
  22996. esac
  22997. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  22998. $as_echo_n "checking for ldap_features.h... " >&6; }
  22999. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  23000. $as_echo_n "(cached) " >&6
  23001. else
  23002. ac_cv_header_ldap_features_h=$ac_header_preproc
  23003. fi
  23004. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  23005. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  23006. fi
  23007. if test "x$ac_cv_header_ldap_features_h" = x""yes; then
  23008. :
  23009. else
  23010. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  23011. $as_echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  23012. { (exit 1); exit 1; }; }
  23013. fi
  23014. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  23015. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  23016. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  23017. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  23018. save_ldflags="$LDFLAGS"
  23019. LDFLAGS="$openldap_lib $LDFLAGS"
  23020. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  23021. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  23022. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  23023. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  23024. $as_echo_n "(cached) " >&6
  23025. else
  23026. ac_check_lib_save_LIBS=$LIBS
  23027. LIBS="-lldap$ol_libver $LIBS"
  23028. cat >conftest.$ac_ext <<_ACEOF
  23029. /* confdefs.h. */
  23030. _ACEOF
  23031. cat confdefs.h >>conftest.$ac_ext
  23032. cat >>conftest.$ac_ext <<_ACEOF
  23033. /* end confdefs.h. */
  23034. /* Override any GCC internal prototype to avoid an error.
  23035. Use char because int might match the return type of a GCC
  23036. builtin and then its argument prototype would still apply. */
  23037. #ifdef __cplusplus
  23038. extern "C"
  23039. #endif
  23040. char ldap_initialize ();
  23041. int
  23042. main ()
  23043. {
  23044. return ldap_initialize ();
  23045. ;
  23046. return 0;
  23047. }
  23048. _ACEOF
  23049. rm -f conftest.$ac_objext conftest$ac_exeext
  23050. if { (ac_try="$ac_link"
  23051. case "(($ac_try" in
  23052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23053. *) ac_try_echo=$ac_try;;
  23054. esac
  23055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23056. $as_echo "$ac_try_echo") >&5
  23057. (eval "$ac_link") 2>conftest.er1
  23058. ac_status=$?
  23059. grep -v '^ *+' conftest.er1 >conftest.err
  23060. rm -f conftest.er1
  23061. cat conftest.err >&5
  23062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23063. (exit $ac_status); } && {
  23064. test -z "$ac_c_werror_flag" ||
  23065. test ! -s conftest.err
  23066. } && test -s conftest$ac_exeext && {
  23067. test "$cross_compiling" = yes ||
  23068. $as_test_x conftest$ac_exeext
  23069. }; then
  23070. eval "$as_ac_Lib=yes"
  23071. else
  23072. $as_echo "$as_me: failed program was:" >&5
  23073. sed 's/^/| /' conftest.$ac_ext >&5
  23074. eval "$as_ac_Lib=no"
  23075. fi
  23076. rm -rf conftest.dSYM
  23077. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23078. conftest$ac_exeext conftest.$ac_ext
  23079. LIBS=$ac_check_lib_save_LIBS
  23080. fi
  23081. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  23082. $as_echo "$as_val"'`
  23083. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23084. $as_echo "$ac_res" >&6; }
  23085. as_val=`eval 'as_val=${'$as_ac_Lib'}
  23086. $as_echo "$as_val"'`
  23087. if test "x$as_val" = x""yes; then
  23088. have_ldap_lib=1
  23089. fi
  23090. if test -z "$have_ldap_lib" ; then
  23091. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  23092. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  23093. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  23094. $as_echo_n "(cached) " >&6
  23095. else
  23096. ac_check_lib_save_LIBS=$LIBS
  23097. LIBS="-lldap $LIBS"
  23098. cat >conftest.$ac_ext <<_ACEOF
  23099. /* confdefs.h. */
  23100. _ACEOF
  23101. cat confdefs.h >>conftest.$ac_ext
  23102. cat >>conftest.$ac_ext <<_ACEOF
  23103. /* end confdefs.h. */
  23104. /* Override any GCC internal prototype to avoid an error.
  23105. Use char because int might match the return type of a GCC
  23106. builtin and then its argument prototype would still apply. */
  23107. #ifdef __cplusplus
  23108. extern "C"
  23109. #endif
  23110. char ldap_initialize ();
  23111. int
  23112. main ()
  23113. {
  23114. return ldap_initialize ();
  23115. ;
  23116. return 0;
  23117. }
  23118. _ACEOF
  23119. rm -f conftest.$ac_objext conftest$ac_exeext
  23120. if { (ac_try="$ac_link"
  23121. case "(($ac_try" in
  23122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23123. *) ac_try_echo=$ac_try;;
  23124. esac
  23125. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23126. $as_echo "$ac_try_echo") >&5
  23127. (eval "$ac_link") 2>conftest.er1
  23128. ac_status=$?
  23129. grep -v '^ *+' conftest.er1 >conftest.err
  23130. rm -f conftest.er1
  23131. cat conftest.err >&5
  23132. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23133. (exit $ac_status); } && {
  23134. test -z "$ac_c_werror_flag" ||
  23135. test ! -s conftest.err
  23136. } && test -s conftest$ac_exeext && {
  23137. test "$cross_compiling" = yes ||
  23138. $as_test_x conftest$ac_exeext
  23139. }; then
  23140. ac_cv_lib_ldap_ldap_initialize=yes
  23141. else
  23142. $as_echo "$as_me: failed program was:" >&5
  23143. sed 's/^/| /' conftest.$ac_ext >&5
  23144. ac_cv_lib_ldap_ldap_initialize=no
  23145. fi
  23146. rm -rf conftest.dSYM
  23147. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23148. conftest$ac_exeext conftest.$ac_ext
  23149. LIBS=$ac_check_lib_save_LIBS
  23150. fi
  23151. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  23152. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  23153. if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then
  23154. unset ol_libver
  23155. else
  23156. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  23157. $as_echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  23158. { (exit 1); exit 1; }; }
  23159. fi
  23160. fi
  23161. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  23162. { $as_echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  23163. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  23164. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  23165. $as_echo_n "(cached) " >&6
  23166. else
  23167. ac_check_lib_save_LIBS=$LIBS
  23168. LIBS="-lldap$ol_libver $LIBS"
  23169. cat >conftest.$ac_ext <<_ACEOF
  23170. /* confdefs.h. */
  23171. _ACEOF
  23172. cat confdefs.h >>conftest.$ac_ext
  23173. cat >>conftest.$ac_ext <<_ACEOF
  23174. /* end confdefs.h. */
  23175. /* Override any GCC internal prototype to avoid an error.
  23176. Use char because int might match the return type of a GCC
  23177. builtin and then its argument prototype would still apply. */
  23178. #ifdef __cplusplus
  23179. extern "C"
  23180. #endif
  23181. char ldap_url_parse_ext ();
  23182. int
  23183. main ()
  23184. {
  23185. return ldap_url_parse_ext ();
  23186. ;
  23187. return 0;
  23188. }
  23189. _ACEOF
  23190. rm -f conftest.$ac_objext conftest$ac_exeext
  23191. if { (ac_try="$ac_link"
  23192. case "(($ac_try" in
  23193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23194. *) ac_try_echo=$ac_try;;
  23195. esac
  23196. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23197. $as_echo "$ac_try_echo") >&5
  23198. (eval "$ac_link") 2>conftest.er1
  23199. ac_status=$?
  23200. grep -v '^ *+' conftest.er1 >conftest.err
  23201. rm -f conftest.er1
  23202. cat conftest.err >&5
  23203. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23204. (exit $ac_status); } && {
  23205. test -z "$ac_c_werror_flag" ||
  23206. test ! -s conftest.err
  23207. } && test -s conftest$ac_exeext && {
  23208. test "$cross_compiling" = yes ||
  23209. $as_test_x conftest$ac_exeext
  23210. }; then
  23211. eval "$as_ac_Lib=yes"
  23212. else
  23213. $as_echo "$as_me: failed program was:" >&5
  23214. sed 's/^/| /' conftest.$ac_ext >&5
  23215. eval "$as_ac_Lib=no"
  23216. fi
  23217. rm -rf conftest.dSYM
  23218. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23219. conftest$ac_exeext conftest.$ac_ext
  23220. LIBS=$ac_check_lib_save_LIBS
  23221. fi
  23222. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  23223. $as_echo "$as_val"'`
  23224. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23225. $as_echo "$ac_res" >&6; }
  23226. as_val=`eval 'as_val=${'$as_ac_Lib'}
  23227. $as_echo "$as_val"'`
  23228. if test "x$as_val" = x""yes; then
  23229. cat >>confdefs.h <<\_ACEOF
  23230. #define HAVE_LDAP_URL_PARSE_EXT 1
  23231. _ACEOF
  23232. fi
  23233. LDFLAGS="$save_ldflags"
  23234. CPPFLAGS="$save_cppflags"
  23235. cat >>confdefs.h <<\_ACEOF
  23236. #define USE_OPENLDAP 1
  23237. _ACEOF
  23238. with_ldapsdk=no # using openldap not mozldap
  23239. fi
  23240. # BEGIN COPYRIGHT BLOCK
  23241. # Copyright (C) 2007 Red Hat, Inc.
  23242. # All rights reserved.
  23243. #
  23244. # This program is free software; you can redistribute it and/or
  23245. # modify it under the terms of the GNU General Public License
  23246. # as published by the Free Software Foundation; either version 2
  23247. # of the License, or (at your option) any later version.
  23248. #
  23249. # This program is distributed in the hope that it will be useful,
  23250. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23251. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23252. # GNU General Public License for more details.
  23253. #
  23254. # You should have received a copy of the GNU General Public License
  23255. # along with this program; if not, write to the Free Software
  23256. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23257. #
  23258. # END COPYRIGHT BLOCK
  23259. { $as_echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  23260. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  23261. # check for --with-ldapsdk
  23262. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  23263. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  23264. # Check whether --with-ldapsdk was given.
  23265. if test "${with_ldapsdk+set}" = set; then
  23266. withval=$with_ldapsdk;
  23267. if test "$withval" = yes
  23268. then
  23269. { $as_echo "$as_me:$LINENO: result: using system MozLDAP" >&5
  23270. $as_echo "using system MozLDAP" >&6; }
  23271. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  23272. then
  23273. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23274. $as_echo "using $withval" >&6; }
  23275. LDAPSDKDIR=$withval
  23276. ldapsdk_inc="-I$LDAPSDKDIR/include"
  23277. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  23278. ldapsdk_libdir="$LDAPSDKDIR/lib"
  23279. ldapsdk_bindir="$LDAPSDKDIR/bin"
  23280. with_ldapsdk=yes
  23281. else
  23282. echo
  23283. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  23284. $as_echo "$as_me: error: $withval not found" >&2;}
  23285. { (exit 1); exit 1; }; }
  23286. fi
  23287. else
  23288. { $as_echo "$as_me:$LINENO: result: no" >&5
  23289. $as_echo "no" >&6; }
  23290. fi
  23291. # check for --with-ldapsdk-inc
  23292. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  23293. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  23294. # Check whether --with-ldapsdk-inc was given.
  23295. if test "${with_ldapsdk_inc+set}" = set; then
  23296. withval=$with_ldapsdk_inc;
  23297. if test -e "$withval"/ldap.h
  23298. then
  23299. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23300. $as_echo "using $withval" >&6; }
  23301. ldapsdk_inc="-I$withval"
  23302. with_ldapsdk=yes
  23303. else
  23304. echo
  23305. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  23306. $as_echo "$as_me: error: $withval not found" >&2;}
  23307. { (exit 1); exit 1; }; }
  23308. fi
  23309. else
  23310. { $as_echo "$as_me:$LINENO: result: no" >&5
  23311. $as_echo "no" >&6; }
  23312. fi
  23313. # check for --with-ldapsdk-lib
  23314. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  23315. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  23316. # Check whether --with-ldapsdk-lib was given.
  23317. if test "${with_ldapsdk_lib+set}" = set; then
  23318. withval=$with_ldapsdk_lib;
  23319. if test -d "$withval"
  23320. then
  23321. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23322. $as_echo "using $withval" >&6; }
  23323. ldapsdk_lib="-L$withval"
  23324. ldapsdk_libdir="$withval"
  23325. with_ldapsdk=yes
  23326. else
  23327. echo
  23328. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  23329. $as_echo "$as_me: error: $withval not found" >&2;}
  23330. { (exit 1); exit 1; }; }
  23331. fi
  23332. else
  23333. { $as_echo "$as_me:$LINENO: result: no" >&5
  23334. $as_echo "no" >&6; }
  23335. fi
  23336. # check for --with-ldapsdk-bin
  23337. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  23338. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  23339. # Check whether --with-ldapsdk-bin was given.
  23340. if test "${with_ldapsdk_bin+set}" = set; then
  23341. withval=$with_ldapsdk_bin;
  23342. if test -d "$withval"
  23343. then
  23344. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23345. $as_echo "using $withval" >&6; }
  23346. ldapsdk_bindir="$withval"
  23347. with_ldapsdk=yes
  23348. else
  23349. echo
  23350. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  23351. $as_echo "$as_me: error: $withval not found" >&2;}
  23352. { (exit 1); exit 1; }; }
  23353. fi
  23354. else
  23355. { $as_echo "$as_me:$LINENO: result: no" >&5
  23356. $as_echo "no" >&6; }
  23357. fi
  23358. # if LDAPSDK is not found yet, try pkg-config
  23359. # last resort
  23360. if test "$with_ldapsdk" = yes ; then
  23361. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  23362. # Extract the first word of "pkg-config", so it can be a program name with args.
  23363. set dummy pkg-config; ac_word=$2
  23364. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  23365. $as_echo_n "checking for $ac_word... " >&6; }
  23366. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  23367. $as_echo_n "(cached) " >&6
  23368. else
  23369. case $PKG_CONFIG in
  23370. [\\/]* | ?:[\\/]*)
  23371. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  23372. ;;
  23373. *)
  23374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23375. for as_dir in $PATH
  23376. do
  23377. IFS=$as_save_IFS
  23378. test -z "$as_dir" && as_dir=.
  23379. for ac_exec_ext in '' $ac_executable_extensions; do
  23380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23381. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23382. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23383. break 2
  23384. fi
  23385. done
  23386. done
  23387. IFS=$as_save_IFS
  23388. ;;
  23389. esac
  23390. fi
  23391. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  23392. if test -n "$PKG_CONFIG"; then
  23393. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  23394. $as_echo "$PKG_CONFIG" >&6; }
  23395. else
  23396. { $as_echo "$as_me:$LINENO: result: no" >&5
  23397. $as_echo "no" >&6; }
  23398. fi
  23399. { $as_echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  23400. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  23401. if test -n "$PKG_CONFIG"; then
  23402. if $PKG_CONFIG --exists mozldap6; then
  23403. mozldappkg=mozldap6
  23404. elif $PKG_CONFIG --exists mozldap; then
  23405. mozldappkg=mozldap
  23406. else
  23407. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  23408. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  23409. { (exit 1); exit 1; }; }
  23410. fi
  23411. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  23412. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  23413. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  23414. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  23415. { $as_echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  23416. $as_echo "using system $mozldappkg" >&6; }
  23417. fi
  23418. fi
  23419. fi
  23420. if test "$with_ldapsdk" = yes ; then
  23421. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  23422. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  23423. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  23424. { (exit 1); exit 1; }; }
  23425. fi
  23426. if test -z "$ldapsdk_bindir" ; then
  23427. if -d $libdir/mozldap6 ; then
  23428. ldapsdk_bindir=$libdir/mozldap6
  23429. else
  23430. ldapsdk_bindir=$libdir/mozldap
  23431. fi
  23432. fi
  23433. save_cppflags="$CPPFLAGS"
  23434. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  23435. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  23436. $as_echo_n "checking for ldap.h... " >&6; }
  23437. if test "${ac_cv_header_ldap_h+set}" = set; then
  23438. $as_echo_n "(cached) " >&6
  23439. else
  23440. cat >conftest.$ac_ext <<_ACEOF
  23441. /* confdefs.h. */
  23442. _ACEOF
  23443. cat confdefs.h >>conftest.$ac_ext
  23444. cat >>conftest.$ac_ext <<_ACEOF
  23445. /* end confdefs.h. */
  23446. #include <ldap-standard.h>
  23447. #if LDAP_VENDOR_VERSION < 600
  23448. #error The LDAP C SDK version is not supported
  23449. #endif
  23450. #include <ldap.h>
  23451. _ACEOF
  23452. rm -f conftest.$ac_objext
  23453. if { (ac_try="$ac_compile"
  23454. case "(($ac_try" in
  23455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23456. *) ac_try_echo=$ac_try;;
  23457. esac
  23458. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23459. $as_echo "$ac_try_echo") >&5
  23460. (eval "$ac_compile") 2>conftest.er1
  23461. ac_status=$?
  23462. grep -v '^ *+' conftest.er1 >conftest.err
  23463. rm -f conftest.er1
  23464. cat conftest.err >&5
  23465. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23466. (exit $ac_status); } && {
  23467. test -z "$ac_c_werror_flag" ||
  23468. test ! -s conftest.err
  23469. } && test -s conftest.$ac_objext; then
  23470. ac_cv_header_ldap_h=yes
  23471. else
  23472. $as_echo "$as_me: failed program was:" >&5
  23473. sed 's/^/| /' conftest.$ac_ext >&5
  23474. ac_cv_header_ldap_h=no
  23475. fi
  23476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23477. fi
  23478. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  23479. $as_echo "$ac_cv_header_ldap_h" >&6; }
  23480. if test "x$ac_cv_header_ldap_h" = x""yes; then
  23481. isversion6=1
  23482. else
  23483. isversion6=
  23484. fi
  23485. CPPFLAGS="$save_cppflags"
  23486. if test -z "$isversion6" ; then
  23487. { { $as_echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  23488. $as_echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  23489. { (exit 1); exit 1; }; }
  23490. fi
  23491. cat >>confdefs.h <<\_ACEOF
  23492. #define USE_MOZLDAP 1
  23493. _ACEOF
  23494. cat >>confdefs.h <<\_ACEOF
  23495. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  23496. _ACEOF
  23497. fi
  23498. # BEGIN COPYRIGHT BLOCK
  23499. # Copyright (C) 2007 Red Hat, Inc.
  23500. # All rights reserved.
  23501. #
  23502. # This program is free software; you can redistribute it and/or
  23503. # modify it under the terms of the GNU General Public License
  23504. # as published by the Free Software Foundation; either version 2
  23505. # of the License, or (at your option) any later version.
  23506. #
  23507. # This program is distributed in the hope that it will be useful,
  23508. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23509. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23510. # GNU General Public License for more details.
  23511. #
  23512. # You should have received a copy of the GNU General Public License
  23513. # along with this program; if not, write to the Free Software
  23514. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23515. #
  23516. # END COPYRIGHT BLOCK
  23517. { $as_echo "$as_me:$LINENO: checking for db..." >&5
  23518. $as_echo "$as_me: checking for db..." >&6;}
  23519. { $as_echo "$as_me:$LINENO: checking for --with-db" >&5
  23520. $as_echo_n "checking for --with-db... " >&6; }
  23521. # Check whether --with-db was given.
  23522. if test "${with_db+set}" = set; then
  23523. withval=$with_db;
  23524. if test "$withval" = "yes"; then
  23525. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23526. $as_echo "yes" >&6; }
  23527. if test -f "/usr/include/db.h"; then
  23528. db_incdir="/usr/include"
  23529. db_inc="-I/usr/include"
  23530. db_lib='-L$(libdir)'
  23531. db_libdir='$(libdir)'
  23532. else
  23533. { { $as_echo "$as_me:$LINENO: error: db.h not found" >&5
  23534. $as_echo "$as_me: error: db.h not found" >&2;}
  23535. { (exit 1); exit 1; }; }
  23536. fi
  23537. elif test -d "$withval"/include -a -d "$withval"/lib; then
  23538. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23539. $as_echo "using $withval" >&6; }
  23540. DBDIR=$withval
  23541. db_lib="-L$DBDIR/lib"
  23542. db_libdir="$DBDIR/lib"
  23543. db_incdir="$DBDIR/include"
  23544. if ! test -e "$db_incdir/db.h" ; then
  23545. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  23546. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  23547. { (exit 1); exit 1; }; }
  23548. fi
  23549. db_inc="-I$db_incdir"
  23550. else
  23551. echo
  23552. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  23553. $as_echo "$as_me: error: $withval not found" >&2;}
  23554. { (exit 1); exit 1; }; }
  23555. fi
  23556. else
  23557. { $as_echo "$as_me:$LINENO: result: no" >&5
  23558. $as_echo "no" >&6; }
  23559. fi
  23560. if test -z "$db_inc"; then
  23561. { $as_echo "$as_me:$LINENO: checking for db.h" >&5
  23562. $as_echo_n "checking for db.h... " >&6; }
  23563. if test -f "/usr/include/db.h"; then
  23564. { $as_echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  23565. $as_echo "using /usr/include/db.h" >&6; }
  23566. db_incdir="/usr/include"
  23567. db_inc="-I/usr/include"
  23568. db_lib='-L$(libdir)'
  23569. db_libdir='$(libdir)'
  23570. else
  23571. { $as_echo "$as_me:$LINENO: result: no" >&5
  23572. $as_echo "no" >&6; }
  23573. { { $as_echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  23574. $as_echo "$as_me: error: db not found, specify with --with-db." >&2;}
  23575. { (exit 1); exit 1; }; }
  23576. fi
  23577. fi
  23578. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  23579. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  23580. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  23581. db_libver=${db_ver_maj}.${db_ver_min}
  23582. save_ldflags="$LDFLAGS"
  23583. LDFLAGS="$db_lib $LDFLAGS"
  23584. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  23585. { $as_echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  23586. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  23587. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  23588. $as_echo_n "(cached) " >&6
  23589. else
  23590. ac_check_lib_save_LIBS=$LIBS
  23591. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  23592. cat >conftest.$ac_ext <<_ACEOF
  23593. /* confdefs.h. */
  23594. _ACEOF
  23595. cat confdefs.h >>conftest.$ac_ext
  23596. cat >>conftest.$ac_ext <<_ACEOF
  23597. /* end confdefs.h. */
  23598. /* Override any GCC internal prototype to avoid an error.
  23599. Use char because int might match the return type of a GCC
  23600. builtin and then its argument prototype would still apply. */
  23601. #ifdef __cplusplus
  23602. extern "C"
  23603. #endif
  23604. char db_create ();
  23605. int
  23606. main ()
  23607. {
  23608. return db_create ();
  23609. ;
  23610. return 0;
  23611. }
  23612. _ACEOF
  23613. rm -f conftest.$ac_objext conftest$ac_exeext
  23614. if { (ac_try="$ac_link"
  23615. case "(($ac_try" in
  23616. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23617. *) ac_try_echo=$ac_try;;
  23618. esac
  23619. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23620. $as_echo "$ac_try_echo") >&5
  23621. (eval "$ac_link") 2>conftest.er1
  23622. ac_status=$?
  23623. grep -v '^ *+' conftest.er1 >conftest.err
  23624. rm -f conftest.er1
  23625. cat conftest.err >&5
  23626. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23627. (exit $ac_status); } && {
  23628. test -z "$ac_c_werror_flag" ||
  23629. test ! -s conftest.err
  23630. } && test -s conftest$ac_exeext && {
  23631. test "$cross_compiling" = yes ||
  23632. $as_test_x conftest$ac_exeext
  23633. }; then
  23634. eval "$as_ac_Lib=yes"
  23635. else
  23636. $as_echo "$as_me: failed program was:" >&5
  23637. sed 's/^/| /' conftest.$ac_ext >&5
  23638. eval "$as_ac_Lib=no"
  23639. fi
  23640. rm -rf conftest.dSYM
  23641. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23642. conftest$ac_exeext conftest.$ac_ext
  23643. LIBS=$ac_check_lib_save_LIBS
  23644. fi
  23645. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  23646. $as_echo "$as_val"'`
  23647. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  23648. $as_echo "$ac_res" >&6; }
  23649. as_val=`eval 'as_val=${'$as_ac_Lib'}
  23650. $as_echo "$as_val"'`
  23651. if test "x$as_val" = x""yes; then
  23652. true
  23653. else
  23654. { { $as_echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  23655. $as_echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  23656. { (exit 1); exit 1; }; }
  23657. fi
  23658. LDFLAGS="$save_ldflags"
  23659. # if DB is not found yet, try pkg-config
  23660. # last resort
  23661. # Although the other db_* variables are correctly assigned at this point,
  23662. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  23663. if test -n "$PKG_CONFIG"; then
  23664. if $PKG_CONFIG --exists db; then
  23665. db_bindir=`$PKG_CONFIG --variable=bindir db`
  23666. else
  23667. db_bindir=/usr/bin
  23668. fi
  23669. else
  23670. db_bindir=/usr/bin
  23671. fi
  23672. # BEGIN COPYRIGHT BLOCK
  23673. # Copyright (C) 2007 Red Hat, Inc.
  23674. # All rights reserved.
  23675. #
  23676. # This program is free software; you can redistribute it and/or
  23677. # modify it under the terms of the GNU General Public License
  23678. # as published by the Free Software Foundation; either version 2
  23679. # of the License, or (at your option) any later version.
  23680. #
  23681. # This program is distributed in the hope that it will be useful,
  23682. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23683. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23684. # GNU General Public License for more details.
  23685. #
  23686. # You should have received a copy of the GNU General Public License
  23687. # along with this program; if not, write to the Free Software
  23688. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23689. #
  23690. # END COPYRIGHT BLOCK
  23691. # -*- tab-width: 4; -*-
  23692. # Configure paths for SASL
  23693. { $as_echo "$as_me:$LINENO: checking for sasl..." >&5
  23694. $as_echo "$as_me: checking for sasl..." >&6;}
  23695. { $as_echo "$as_me:$LINENO: checking for --with-sasl" >&5
  23696. $as_echo_n "checking for --with-sasl... " >&6; }
  23697. # Check whether --with-sasl was given.
  23698. if test "${with_sasl+set}" = set; then
  23699. withval=$with_sasl;
  23700. if test "$withval" = "yes"; then
  23701. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23702. $as_echo "yes" >&6; }
  23703. if test -f /usr/include/sasl/sasl.h; then
  23704. sasl_inc="-I/usr/include/sasl"
  23705. elif test -f /usr/include/sasl.h; then
  23706. sasl_inc="-I/usr/include"
  23707. else
  23708. { { $as_echo "$as_me:$LINENO: error: sasl.h not found" >&5
  23709. $as_echo "$as_me: error: sasl.h not found" >&2;}
  23710. { (exit 1); exit 1; }; }
  23711. fi
  23712. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  23713. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23714. $as_echo "using $withval" >&6; }
  23715. if test -f "$withval/include/sasl/sasl.h"; then
  23716. sasl_inc="-I$withval/include/sasl"
  23717. elif test -f "$withval/include/sasl.h"; then
  23718. sasl_inc="-I$withval/include"
  23719. else
  23720. { { $as_echo "$as_me:$LINENO: error: sasl.h not found" >&5
  23721. $as_echo "$as_me: error: sasl.h not found" >&2;}
  23722. { (exit 1); exit 1; }; }
  23723. fi
  23724. sasl_lib="-L$withval/lib"
  23725. sasl_libdir="$withval/lib"
  23726. else
  23727. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23728. $as_echo "yes" >&6; }
  23729. { { $as_echo "$as_me:$LINENO: error: sasl not found in $withval" >&5
  23730. $as_echo "$as_me: error: sasl not found in $withval" >&2;}
  23731. { (exit 1); exit 1; }; }
  23732. fi
  23733. else
  23734. { $as_echo "$as_me:$LINENO: result: no" >&5
  23735. $as_echo "no" >&6; }
  23736. fi
  23737. { $as_echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  23738. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  23739. # Check whether --with-sasl-inc was given.
  23740. if test "${with_sasl_inc+set}" = set; then
  23741. withval=$with_sasl_inc;
  23742. if test -f "$withval"/sasl.h; then
  23743. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23744. $as_echo "using $withval" >&6; }
  23745. sasl_inc="-I$withval"
  23746. else
  23747. echo
  23748. { { $as_echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  23749. $as_echo "$as_me: error: $withval/sasl.h not found" >&2;}
  23750. { (exit 1); exit 1; }; }
  23751. fi
  23752. else
  23753. { $as_echo "$as_me:$LINENO: result: no" >&5
  23754. $as_echo "no" >&6; }
  23755. fi
  23756. { $as_echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  23757. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  23758. # Check whether --with-sasl-lib was given.
  23759. if test "${with_sasl_lib+set}" = set; then
  23760. withval=$with_sasl_lib;
  23761. if test -d "$withval"; then
  23762. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23763. $as_echo "using $withval" >&6; }
  23764. sasl_lib="-L$withval"
  23765. sasl_libdir="$withval"
  23766. else
  23767. echo
  23768. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  23769. $as_echo "$as_me: error: $withval not found" >&2;}
  23770. { (exit 1); exit 1; }; }
  23771. fi
  23772. else
  23773. { $as_echo "$as_me:$LINENO: result: no" >&5
  23774. $as_echo "no" >&6; }
  23775. fi
  23776. if test -z "$sasl_inc"; then
  23777. { $as_echo "$as_me:$LINENO: checking for sasl.h" >&5
  23778. $as_echo_n "checking for sasl.h... " >&6; }
  23779. if test -f /usr/include/sasl/sasl.h; then
  23780. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  23781. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  23782. sasl_inc="-I/usr/include/sasl"
  23783. elif test -f /usr/include/sasl.h; then
  23784. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  23785. $as_echo "using /usr/include/sasl.h" >&6; }
  23786. sasl_inc="-I/usr/include"
  23787. else
  23788. { $as_echo "$as_me:$LINENO: result: no" >&5
  23789. $as_echo "no" >&6; }
  23790. { { $as_echo "$as_me:$LINENO: error: sasl not found, specify with --with-sasl." >&5
  23791. $as_echo "$as_me: error: sasl not found, specify with --with-sasl." >&2;}
  23792. { (exit 1); exit 1; }; }
  23793. fi
  23794. fi
  23795. # BEGIN COPYRIGHT BLOCK
  23796. # Copyright (C) 2007 Red Hat, Inc.
  23797. # All rights reserved.
  23798. #
  23799. # This program is free software; you can redistribute it and/or
  23800. # modify it under the terms of the GNU General Public License
  23801. # as published by the Free Software Foundation; either version 2
  23802. # of the License, or (at your option) any later version.
  23803. #
  23804. # This program is distributed in the hope that it will be useful,
  23805. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23806. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23807. # GNU General Public License for more details.
  23808. #
  23809. # You should have received a copy of the GNU General Public License
  23810. # along with this program; if not, write to the Free Software
  23811. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23812. #
  23813. # END COPYRIGHT BLOCK
  23814. #
  23815. # Configure paths for SVRCORE
  23816. { $as_echo "$as_me:$LINENO: checking for svrcore..." >&5
  23817. $as_echo "$as_me: checking for svrcore..." >&6;}
  23818. { $as_echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  23819. $as_echo_n "checking for --with-svrcore... " >&6; }
  23820. # Check whether --with-svrcore was given.
  23821. if test "${with_svrcore+set}" = set; then
  23822. withval=$with_svrcore;
  23823. if test "$withval" = "yes"; then
  23824. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23825. $as_echo "yes" >&6; }
  23826. if test -f /usr/include/svrcore.h; then
  23827. svrcore_inc="-I/usr/include"
  23828. else
  23829. { { $as_echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  23830. $as_echo "$as_me: error: svrcore.h not found" >&2;}
  23831. { (exit 1); exit 1; }; }
  23832. fi
  23833. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  23834. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23835. $as_echo "using $withval" >&6; }
  23836. if test -f "$withval/include/svrcore.h"; then
  23837. svrcore_inc="-I$withval/include"
  23838. else
  23839. { { $as_echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  23840. $as_echo "$as_me: error: svrcore.h not found" >&2;}
  23841. { (exit 1); exit 1; }; }
  23842. fi
  23843. svrcore_lib="-L$withval/lib"
  23844. else
  23845. { $as_echo "$as_me:$LINENO: result: yes" >&5
  23846. $as_echo "yes" >&6; }
  23847. { { $as_echo "$as_me:$LINENO: error: svrcore not found in $withval" >&5
  23848. $as_echo "$as_me: error: svrcore not found in $withval" >&2;}
  23849. { (exit 1); exit 1; }; }
  23850. fi
  23851. else
  23852. { $as_echo "$as_me:$LINENO: result: no" >&5
  23853. $as_echo "no" >&6; }
  23854. fi
  23855. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  23856. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  23857. # Check whether --with-svrcore-inc was given.
  23858. if test "${with_svrcore_inc+set}" = set; then
  23859. withval=$with_svrcore_inc;
  23860. if test -f "$withval"/svrcore.h; then
  23861. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23862. $as_echo "using $withval" >&6; }
  23863. svrcore_inc="-I$withval"
  23864. else
  23865. echo
  23866. { { $as_echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  23867. $as_echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  23868. { (exit 1); exit 1; }; }
  23869. fi
  23870. else
  23871. { $as_echo "$as_me:$LINENO: result: no" >&5
  23872. $as_echo "no" >&6; }
  23873. fi
  23874. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  23875. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  23876. # Check whether --with-svrcore-lib was given.
  23877. if test "${with_svrcore_lib+set}" = set; then
  23878. withval=$with_svrcore_lib;
  23879. if test -d "$withval"; then
  23880. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  23881. $as_echo "using $withval" >&6; }
  23882. svrcore_lib="-L$withval"
  23883. else
  23884. echo
  23885. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  23886. $as_echo "$as_me: error: $withval not found" >&2;}
  23887. { (exit 1); exit 1; }; }
  23888. fi
  23889. else
  23890. { $as_echo "$as_me:$LINENO: result: no" >&5
  23891. $as_echo "no" >&6; }
  23892. fi
  23893. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  23894. # Extract the first word of "pkg-config", so it can be a program name with args.
  23895. set dummy pkg-config; ac_word=$2
  23896. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  23897. $as_echo_n "checking for $ac_word... " >&6; }
  23898. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  23899. $as_echo_n "(cached) " >&6
  23900. else
  23901. case $PKG_CONFIG in
  23902. [\\/]* | ?:[\\/]*)
  23903. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  23904. ;;
  23905. *)
  23906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23907. for as_dir in $PATH
  23908. do
  23909. IFS=$as_save_IFS
  23910. test -z "$as_dir" && as_dir=.
  23911. for ac_exec_ext in '' $ac_executable_extensions; do
  23912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23913. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23914. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23915. break 2
  23916. fi
  23917. done
  23918. done
  23919. IFS=$as_save_IFS
  23920. ;;
  23921. esac
  23922. fi
  23923. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  23924. if test -n "$PKG_CONFIG"; then
  23925. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  23926. $as_echo "$PKG_CONFIG" >&6; }
  23927. else
  23928. { $as_echo "$as_me:$LINENO: result: no" >&5
  23929. $as_echo "no" >&6; }
  23930. fi
  23931. { $as_echo "$as_me:$LINENO: checking for svrcore with pkg-config" >&5
  23932. $as_echo_n "checking for svrcore with pkg-config... " >&6; }
  23933. if test -n "$PKG_CONFIG"; then
  23934. if $PKG_CONFIG --exists svrcore; then
  23935. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  23936. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  23937. { $as_echo "$as_me:$LINENO: result: using system svrcore" >&5
  23938. $as_echo "using system svrcore" >&6; }
  23939. fi
  23940. fi
  23941. fi
  23942. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  23943. { $as_echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  23944. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  23945. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  23946. $as_echo_n "(cached) " >&6
  23947. else
  23948. ac_check_lib_save_LIBS=$LIBS
  23949. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  23950. cat >conftest.$ac_ext <<_ACEOF
  23951. /* confdefs.h. */
  23952. _ACEOF
  23953. cat confdefs.h >>conftest.$ac_ext
  23954. cat >>conftest.$ac_ext <<_ACEOF
  23955. /* end confdefs.h. */
  23956. /* Override any GCC internal prototype to avoid an error.
  23957. Use char because int might match the return type of a GCC
  23958. builtin and then its argument prototype would still apply. */
  23959. #ifdef __cplusplus
  23960. extern "C"
  23961. #endif
  23962. char SVRCORE_GetRegisteredPinObj ();
  23963. int
  23964. main ()
  23965. {
  23966. return SVRCORE_GetRegisteredPinObj ();
  23967. ;
  23968. return 0;
  23969. }
  23970. _ACEOF
  23971. rm -f conftest.$ac_objext conftest$ac_exeext
  23972. if { (ac_try="$ac_link"
  23973. case "(($ac_try" in
  23974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23975. *) ac_try_echo=$ac_try;;
  23976. esac
  23977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  23978. $as_echo "$ac_try_echo") >&5
  23979. (eval "$ac_link") 2>conftest.er1
  23980. ac_status=$?
  23981. grep -v '^ *+' conftest.er1 >conftest.err
  23982. rm -f conftest.er1
  23983. cat conftest.err >&5
  23984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23985. (exit $ac_status); } && {
  23986. test -z "$ac_c_werror_flag" ||
  23987. test ! -s conftest.err
  23988. } && test -s conftest$ac_exeext && {
  23989. test "$cross_compiling" = yes ||
  23990. $as_test_x conftest$ac_exeext
  23991. }; then
  23992. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  23993. else
  23994. $as_echo "$as_me: failed program was:" >&5
  23995. sed 's/^/| /' conftest.$ac_ext >&5
  23996. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  23997. fi
  23998. rm -rf conftest.dSYM
  23999. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24000. conftest$ac_exeext conftest.$ac_ext
  24001. LIBS=$ac_check_lib_save_LIBS
  24002. fi
  24003. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  24004. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  24005. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = x""yes; then
  24006. havesvrcore=1
  24007. fi
  24008. if test -n "$havesvrcore" ; then
  24009. save_cppflags="$CPPFLAGS"
  24010. CPPFLAGS="$nss_inc $nspr_inc"
  24011. if test "${ac_cv_header_svrcore_h+set}" = set; then
  24012. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  24013. $as_echo_n "checking for svrcore.h... " >&6; }
  24014. if test "${ac_cv_header_svrcore_h+set}" = set; then
  24015. $as_echo_n "(cached) " >&6
  24016. fi
  24017. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  24018. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  24019. else
  24020. # Is the header compilable?
  24021. { $as_echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  24022. $as_echo_n "checking svrcore.h usability... " >&6; }
  24023. cat >conftest.$ac_ext <<_ACEOF
  24024. /* confdefs.h. */
  24025. _ACEOF
  24026. cat confdefs.h >>conftest.$ac_ext
  24027. cat >>conftest.$ac_ext <<_ACEOF
  24028. /* end confdefs.h. */
  24029. $ac_includes_default
  24030. #include <svrcore.h>
  24031. _ACEOF
  24032. rm -f conftest.$ac_objext
  24033. if { (ac_try="$ac_compile"
  24034. case "(($ac_try" in
  24035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24036. *) ac_try_echo=$ac_try;;
  24037. esac
  24038. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24039. $as_echo "$ac_try_echo") >&5
  24040. (eval "$ac_compile") 2>conftest.er1
  24041. ac_status=$?
  24042. grep -v '^ *+' conftest.er1 >conftest.err
  24043. rm -f conftest.er1
  24044. cat conftest.err >&5
  24045. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24046. (exit $ac_status); } && {
  24047. test -z "$ac_c_werror_flag" ||
  24048. test ! -s conftest.err
  24049. } && test -s conftest.$ac_objext; then
  24050. ac_header_compiler=yes
  24051. else
  24052. $as_echo "$as_me: failed program was:" >&5
  24053. sed 's/^/| /' conftest.$ac_ext >&5
  24054. ac_header_compiler=no
  24055. fi
  24056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24057. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24058. $as_echo "$ac_header_compiler" >&6; }
  24059. # Is the header present?
  24060. { $as_echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  24061. $as_echo_n "checking svrcore.h presence... " >&6; }
  24062. cat >conftest.$ac_ext <<_ACEOF
  24063. /* confdefs.h. */
  24064. _ACEOF
  24065. cat confdefs.h >>conftest.$ac_ext
  24066. cat >>conftest.$ac_ext <<_ACEOF
  24067. /* end confdefs.h. */
  24068. #include <svrcore.h>
  24069. _ACEOF
  24070. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24071. case "(($ac_try" in
  24072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24073. *) ac_try_echo=$ac_try;;
  24074. esac
  24075. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24076. $as_echo "$ac_try_echo") >&5
  24077. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24078. ac_status=$?
  24079. grep -v '^ *+' conftest.er1 >conftest.err
  24080. rm -f conftest.er1
  24081. cat conftest.err >&5
  24082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24083. (exit $ac_status); } >/dev/null && {
  24084. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24085. test ! -s conftest.err
  24086. }; then
  24087. ac_header_preproc=yes
  24088. else
  24089. $as_echo "$as_me: failed program was:" >&5
  24090. sed 's/^/| /' conftest.$ac_ext >&5
  24091. ac_header_preproc=no
  24092. fi
  24093. rm -f conftest.err conftest.$ac_ext
  24094. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24095. $as_echo "$ac_header_preproc" >&6; }
  24096. # So? What about this header?
  24097. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24098. yes:no: )
  24099. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  24100. $as_echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24101. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  24102. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  24103. ac_header_preproc=yes
  24104. ;;
  24105. no:yes:* )
  24106. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  24107. $as_echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  24108. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  24109. $as_echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  24110. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  24111. $as_echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  24112. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  24113. $as_echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  24114. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  24115. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  24116. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  24117. $as_echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  24118. ( cat <<\_ASBOX
  24119. ## ------------------------------------------ ##
  24120. ## Report this to http://bugzilla.redhat.com/ ##
  24121. ## ------------------------------------------ ##
  24122. _ASBOX
  24123. ) | sed "s/^/$as_me: WARNING: /" >&2
  24124. ;;
  24125. esac
  24126. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  24127. $as_echo_n "checking for svrcore.h... " >&6; }
  24128. if test "${ac_cv_header_svrcore_h+set}" = set; then
  24129. $as_echo_n "(cached) " >&6
  24130. else
  24131. ac_cv_header_svrcore_h=$ac_header_preproc
  24132. fi
  24133. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  24134. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  24135. fi
  24136. if test "x$ac_cv_header_svrcore_h" = x""yes; then
  24137. havesvrcore=1
  24138. else
  24139. havesvrcore=
  24140. fi
  24141. CPPFLAGS="$save_cppflags"
  24142. fi
  24143. if test -z "$havesvrcore" ; then
  24144. { { $as_echo "$as_me:$LINENO: error: svrcore not found, specify with --with-svrcore." >&5
  24145. $as_echo "$as_me: error: svrcore not found, specify with --with-svrcore." >&2;}
  24146. { (exit 1); exit 1; }; }
  24147. fi
  24148. fi
  24149. # BEGIN COPYRIGHT BLOCK
  24150. # Copyright (C) 2006 Red Hat, Inc.
  24151. # All rights reserved.
  24152. #
  24153. # This program is free software; you can redistribute it and/or
  24154. # modify it under the terms of the GNU General Public License
  24155. # as published by the Free Software Foundation; either version 2
  24156. # of the License, or (at your option) any later version.
  24157. #
  24158. # This program is distributed in the hope that it will be useful,
  24159. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24160. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24161. # GNU General Public License for more details.
  24162. #
  24163. # You should have received a copy of the GNU General Public License
  24164. # along with this program; if not, write to the Free Software
  24165. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24166. #
  24167. # END COPYRIGHT BLOCK
  24168. { $as_echo "$as_me:$LINENO: checking for LIBICU..." >&5
  24169. $as_echo "$as_me: checking for LIBICU..." >&6;}
  24170. # check for --with-icu
  24171. { $as_echo "$as_me:$LINENO: checking for --with-icu" >&5
  24172. $as_echo_n "checking for --with-icu... " >&6; }
  24173. # Check whether --with-icu was given.
  24174. if test "${with_icu+set}" = set; then
  24175. withval=$with_icu;
  24176. if test -d "$withval"/lib
  24177. then
  24178. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24179. $as_echo "using $withval" >&6; }
  24180. ICUDIR=$withval
  24181. icu_lib="-L$ICUDIR/lib"
  24182. else
  24183. echo
  24184. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  24185. $as_echo "$as_me: error: $withval not found" >&2;}
  24186. { (exit 1); exit 1; }; }
  24187. fi
  24188. icu_inc="-I$withval/include"
  24189. icu_bin="$withval/bin"
  24190. else
  24191. { $as_echo "$as_me:$LINENO: result: no" >&5
  24192. $as_echo "no" >&6; }
  24193. fi
  24194. # check for --with-icu-inc
  24195. { $as_echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  24196. $as_echo_n "checking for --with-icu-inc... " >&6; }
  24197. # Check whether --with-icu-inc was given.
  24198. if test "${with_icu_inc+set}" = set; then
  24199. withval=$with_icu_inc;
  24200. if test -d "$withval"
  24201. then
  24202. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24203. $as_echo "using $withval" >&6; }
  24204. icu_inc="-I$withval"
  24205. else
  24206. echo
  24207. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  24208. $as_echo "$as_me: error: $withval not found" >&2;}
  24209. { (exit 1); exit 1; }; }
  24210. fi
  24211. else
  24212. { $as_echo "$as_me:$LINENO: result: no" >&5
  24213. $as_echo "no" >&6; }
  24214. fi
  24215. # check for --with-icu-lib
  24216. { $as_echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  24217. $as_echo_n "checking for --with-icu-lib... " >&6; }
  24218. # Check whether --with-icu-lib was given.
  24219. if test "${with_icu_lib+set}" = set; then
  24220. withval=$with_icu_lib;
  24221. if test -d "$withval"
  24222. then
  24223. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24224. $as_echo "using $withval" >&6; }
  24225. icu_lib="-L$withval"
  24226. else
  24227. echo
  24228. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  24229. $as_echo "$as_me: error: $withval not found" >&2;}
  24230. { (exit 1); exit 1; }; }
  24231. fi
  24232. else
  24233. { $as_echo "$as_me:$LINENO: result: no" >&5
  24234. $as_echo "no" >&6; }
  24235. fi
  24236. # check for --with-icu-bin
  24237. { $as_echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  24238. $as_echo_n "checking for --with-icu-bin... " >&6; }
  24239. # Check whether --with-icu-bin was given.
  24240. if test "${with_icu_bin+set}" = set; then
  24241. withval=$with_icu_bin;
  24242. if test -d "$withval"
  24243. then
  24244. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24245. $as_echo "using $withval" >&6; }
  24246. icu_bin="$withval"
  24247. else
  24248. echo
  24249. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  24250. $as_echo "$as_me: error: $withval not found" >&2;}
  24251. { (exit 1); exit 1; }; }
  24252. fi
  24253. else
  24254. { $as_echo "$as_me:$LINENO: result: no" >&5
  24255. $as_echo "no" >&6; }
  24256. fi
  24257. # if ICU is not found yet, try pkg-config
  24258. # last resort
  24259. if test -z "$icu_lib"; then
  24260. { $as_echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  24261. $as_echo_n "checking for icu with icu-config... " >&6; }
  24262. # Extract the first word of "icu-config", so it can be a program name with args.
  24263. set dummy icu-config; ac_word=$2
  24264. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24265. $as_echo_n "checking for $ac_word... " >&6; }
  24266. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  24267. $as_echo_n "(cached) " >&6
  24268. else
  24269. case $ICU_CONFIG in
  24270. [\\/]* | ?:[\\/]*)
  24271. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  24272. ;;
  24273. *)
  24274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24275. for as_dir in $PATH
  24276. do
  24277. IFS=$as_save_IFS
  24278. test -z "$as_dir" && as_dir=.
  24279. for ac_exec_ext in '' $ac_executable_extensions; do
  24280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24281. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24282. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24283. break 2
  24284. fi
  24285. done
  24286. done
  24287. IFS=$as_save_IFS
  24288. ;;
  24289. esac
  24290. fi
  24291. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  24292. if test -n "$ICU_CONFIG"; then
  24293. { $as_echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  24294. $as_echo "$ICU_CONFIG" >&6; }
  24295. else
  24296. { $as_echo "$as_me:$LINENO: result: no" >&5
  24297. $as_echo "no" >&6; }
  24298. fi
  24299. if test -n "$ICU_CONFIG"; then
  24300. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  24301. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  24302. icu_bin=`$ICU_CONFIG --bindir`
  24303. { $as_echo "$as_me:$LINENO: result: using system ICU" >&5
  24304. $as_echo "using system ICU" >&6; }
  24305. else
  24306. { { $as_echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  24307. $as_echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  24308. { (exit 1); exit 1; }; }
  24309. fi
  24310. fi
  24311. # BEGIN COPYRIGHT BLOCK
  24312. # Copyright (C) 2006 Red Hat, Inc.
  24313. # All rights reserved.
  24314. #
  24315. # This program is free software; you can redistribute it and/or
  24316. # modify it under the terms of the GNU General Public License
  24317. # as published by the Free Software Foundation; either version 2
  24318. # of the License, or (at your option) any later version.
  24319. #
  24320. # This program is distributed in the hope that it will be useful,
  24321. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24322. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24323. # GNU General Public License for more details.
  24324. #
  24325. # You should have received a copy of the GNU General Public License
  24326. # along with this program; if not, write to the Free Software
  24327. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24328. #
  24329. # END COPYRIGHT BLOCK
  24330. { $as_echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  24331. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  24332. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  24333. $as_echo_n "checking for --with-netsnmp... " >&6; }
  24334. # Check whether --with-netsnmp was given.
  24335. if test "${with_netsnmp+set}" = set; then
  24336. withval=$with_netsnmp;
  24337. if test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  24338. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24339. $as_echo "using $withval" >&6; }
  24340. NETSNMPDIR=$withval
  24341. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  24342. netsnmp_inc="-I$withval/include"
  24343. else
  24344. { { $as_echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  24345. $as_echo "$as_me: error: net-snmp-config.h not found" >&2;}
  24346. { (exit 1); exit 1; }; }
  24347. fi
  24348. netsnmp_lib="-L$withval/lib"
  24349. netsnmp_libdir="$withval/lib"
  24350. else
  24351. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24352. $as_echo "yes" >&6; }
  24353. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  24354. $as_echo "$as_me: error: $withval not found" >&2;}
  24355. { (exit 1); exit 1; }; }
  24356. fi
  24357. else
  24358. { $as_echo "$as_me:$LINENO: result: no" >&5
  24359. $as_echo "no" >&6; }
  24360. fi
  24361. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  24362. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  24363. # Check whether --with-netsnmp-inc was given.
  24364. if test "${with_netsnmp_inc+set}" = set; then
  24365. withval=$with_netsnmp_inc;
  24366. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  24367. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24368. $as_echo "using $withval" >&6; }
  24369. netsnmp_inc="-I$withval"
  24370. else
  24371. echo
  24372. { { $as_echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  24373. $as_echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  24374. { (exit 1); exit 1; }; }
  24375. fi
  24376. else
  24377. { $as_echo "$as_me:$LINENO: result: no" >&5
  24378. $as_echo "no" >&6; }
  24379. fi
  24380. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  24381. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  24382. # Check whether --with-netsnmp-lib was given.
  24383. if test "${with_netsnmp_lib+set}" = set; then
  24384. withval=$with_netsnmp_lib;
  24385. if test -d "$withval"
  24386. then
  24387. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24388. $as_echo "using $withval" >&6; }
  24389. netsnmp_lib="-L$withval"
  24390. netsnmp_libdir="$withval"
  24391. else
  24392. echo
  24393. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  24394. $as_echo "$as_me: error: $withval not found" >&2;}
  24395. { (exit 1); exit 1; }; }
  24396. fi
  24397. else
  24398. { $as_echo "$as_me:$LINENO: result: no" >&5
  24399. $as_echo "no" >&6; }
  24400. fi
  24401. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  24402. { $as_echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  24403. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  24404. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  24405. { $as_echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  24406. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  24407. netsnmp_inc="-I/usr/include"
  24408. else
  24409. { $as_echo "$as_me:$LINENO: result: no" >&5
  24410. $as_echo "no" >&6; }
  24411. { { $as_echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  24412. $as_echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  24413. { (exit 1); exit 1; }; }
  24414. fi
  24415. fi
  24416. if test -n "$netsnmp_inc"; then
  24417. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  24418. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  24419. else
  24420. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  24421. set dummy net-snmp-config; ac_word=$2
  24422. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24423. $as_echo_n "checking for $ac_word... " >&6; }
  24424. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  24425. $as_echo_n "(cached) " >&6
  24426. else
  24427. case $NETSNMP_CONFIG in
  24428. [\\/]* | ?:[\\/]*)
  24429. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  24430. ;;
  24431. *)
  24432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24433. for as_dir in $PATH
  24434. do
  24435. IFS=$as_save_IFS
  24436. test -z "$as_dir" && as_dir=.
  24437. for ac_exec_ext in '' $ac_executable_extensions; do
  24438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24439. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24440. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24441. break 2
  24442. fi
  24443. done
  24444. done
  24445. IFS=$as_save_IFS
  24446. ;;
  24447. esac
  24448. fi
  24449. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  24450. if test -n "$NETSNMP_CONFIG"; then
  24451. { $as_echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  24452. $as_echo "$NETSNMP_CONFIG" >&6; }
  24453. else
  24454. { $as_echo "$as_me:$LINENO: result: no" >&5
  24455. $as_echo "no" >&6; }
  24456. fi
  24457. fi
  24458. if test -n "$NETSNMP_CONFIG"; then
  24459. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  24460. else
  24461. { { $as_echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  24462. $as_echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  24463. { (exit 1); exit 1; }; }
  24464. fi
  24465. else
  24466. { { $as_echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  24467. $as_echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  24468. { (exit 1); exit 1; }; }
  24469. fi
  24470. # BEGIN COPYRIGHT BLOCK
  24471. # Copyright (C) 2008 Red Hat, Inc.
  24472. # All rights reserved.
  24473. #
  24474. # This program is free software; you can redistribute it and/or
  24475. # modify it under the terms of the GNU General Public License
  24476. # as published by the Free Software Foundation; either version 2
  24477. # of the License, or (at your option) any later version.
  24478. #
  24479. # This program is distributed in the hope that it will be useful,
  24480. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  24481. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24482. # GNU General Public License for more details.
  24483. #
  24484. # You should have received a copy of the GNU General Public License
  24485. # along with this program; if not, write to the Free Software
  24486. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  24487. #
  24488. # END COPYRIGHT BLOCK
  24489. # -*- tab-width: 4; -*-
  24490. # Configure paths for Kerberos
  24491. { $as_echo "$as_me:$LINENO: checking for kerberos..." >&5
  24492. $as_echo "$as_me: checking for kerberos..." >&6;}
  24493. if test -z "$with_kerberos" ; then
  24494. with_kerberos=yes # if not set on cmdline, set default
  24495. fi
  24496. { $as_echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  24497. $as_echo_n "checking for --with-kerberos... " >&6; }
  24498. # Check whether --with-kerberos was given.
  24499. if test "${with_kerberos+set}" = set; then
  24500. withval=$with_kerberos;
  24501. if test "x$withval" = "xyes"; then
  24502. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24503. $as_echo "yes" >&6; }
  24504. elif test "x$withval" = "xno"; then
  24505. { $as_echo "$as_me:$LINENO: result: no" >&5
  24506. $as_echo "no" >&6; }
  24507. with_kerberos=
  24508. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  24509. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24510. $as_echo "using $withval" >&6; }
  24511. kerberos_incdir="$withval/include"
  24512. kerberos_libdir="$withval/lib"
  24513. else
  24514. { $as_echo "$as_me:$LINENO: result: yes" >&5
  24515. $as_echo "yes" >&6; }
  24516. { { $as_echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  24517. $as_echo "$as_me: error: kerberos not found in $withval" >&2;}
  24518. { (exit 1); exit 1; }; }
  24519. fi
  24520. else
  24521. { $as_echo "$as_me:$LINENO: result: no" >&5
  24522. $as_echo "no" >&6; }
  24523. with_kerberos=
  24524. fi
  24525. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  24526. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  24527. # Check whether --with-kerberos-inc was given.
  24528. if test "${with_kerberos_inc+set}" = set; then
  24529. withval=$with_kerberos_inc;
  24530. if test -f "$withval"/krb5.h; then
  24531. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24532. $as_echo "using $withval" >&6; }
  24533. kerberos_incdir="$withval"
  24534. with_kerberos=yes # implies use of kerberos
  24535. else
  24536. echo
  24537. { { $as_echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  24538. $as_echo "$as_me: error: $withval/krb5.h not found" >&2;}
  24539. { (exit 1); exit 1; }; }
  24540. fi
  24541. else
  24542. { $as_echo "$as_me:$LINENO: result: no" >&5
  24543. $as_echo "no" >&6; }
  24544. fi
  24545. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  24546. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  24547. # Check whether --with-kerberos-lib was given.
  24548. if test "${with_kerberos_lib+set}" = set; then
  24549. withval=$with_kerberos_lib;
  24550. if test -d "$withval"; then
  24551. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  24552. $as_echo "using $withval" >&6; }
  24553. kerberos_libdir="$withval"
  24554. with_kerberos=yes # implies use of kerberos
  24555. else
  24556. echo
  24557. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  24558. $as_echo "$as_me: error: $withval not found" >&2;}
  24559. { (exit 1); exit 1; }; }
  24560. fi
  24561. else
  24562. { $as_echo "$as_me:$LINENO: result: no" >&5
  24563. $as_echo "no" >&6; }
  24564. fi
  24565. if test -n "$with_kerberos" ; then
  24566. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  24567. if test -z "$KRB5_CONFIG_BIN" ; then
  24568. # Extract the first word of "krb5-config", so it can be a program name with args.
  24569. set dummy krb5-config; ac_word=$2
  24570. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  24571. $as_echo_n "checking for $ac_word... " >&6; }
  24572. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  24573. $as_echo_n "(cached) " >&6
  24574. else
  24575. case $KRB5_CONFIG_BIN in
  24576. [\\/]* | ?:[\\/]*)
  24577. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  24578. ;;
  24579. *)
  24580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24581. for as_dir in $PATH
  24582. do
  24583. IFS=$as_save_IFS
  24584. test -z "$as_dir" && as_dir=.
  24585. for ac_exec_ext in '' $ac_executable_extensions; do
  24586. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24587. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  24588. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24589. break 2
  24590. fi
  24591. done
  24592. done
  24593. IFS=$as_save_IFS
  24594. ;;
  24595. esac
  24596. fi
  24597. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  24598. if test -n "$KRB5_CONFIG_BIN"; then
  24599. { $as_echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  24600. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  24601. else
  24602. { $as_echo "$as_me:$LINENO: result: no" >&5
  24603. $as_echo "no" >&6; }
  24604. fi
  24605. fi
  24606. if test -n "$KRB5_CONFIG_BIN" ; then
  24607. { $as_echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  24608. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  24609. if test -z "$kerberos_libdir" ; then
  24610. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  24611. fi
  24612. if test -z "$kerberos_incdir" ; then
  24613. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  24614. fi
  24615. if test -n "$kerberos_lib" ; then
  24616. { $as_echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  24617. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  24618. have_krb5=yes
  24619. fi
  24620. fi
  24621. fi
  24622. fi
  24623. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  24624. # save these in order to set them to use the check macros below
  24625. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  24626. save_CPPFLAGS="$CPPFLAGS"
  24627. if test -n "$kerberos_incdir" ; then
  24628. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  24629. fi
  24630. save_LDFLAGS="$LDFLAGS"
  24631. if test -n "$kerberos_libdir" ; then
  24632. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  24633. fi
  24634. krb5_impl=mit
  24635. for ac_header in heim_err.h
  24636. do
  24637. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24638. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24639. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  24640. $as_echo_n "checking for $ac_header... " >&6; }
  24641. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24642. $as_echo_n "(cached) " >&6
  24643. fi
  24644. ac_res=`eval 'as_val=${'$as_ac_Header'}
  24645. $as_echo "$as_val"'`
  24646. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24647. $as_echo "$ac_res" >&6; }
  24648. else
  24649. # Is the header compilable?
  24650. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  24651. $as_echo_n "checking $ac_header usability... " >&6; }
  24652. cat >conftest.$ac_ext <<_ACEOF
  24653. /* confdefs.h. */
  24654. _ACEOF
  24655. cat confdefs.h >>conftest.$ac_ext
  24656. cat >>conftest.$ac_ext <<_ACEOF
  24657. /* end confdefs.h. */
  24658. $ac_includes_default
  24659. #include <$ac_header>
  24660. _ACEOF
  24661. rm -f conftest.$ac_objext
  24662. if { (ac_try="$ac_compile"
  24663. case "(($ac_try" in
  24664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24665. *) ac_try_echo=$ac_try;;
  24666. esac
  24667. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24668. $as_echo "$ac_try_echo") >&5
  24669. (eval "$ac_compile") 2>conftest.er1
  24670. ac_status=$?
  24671. grep -v '^ *+' conftest.er1 >conftest.err
  24672. rm -f conftest.er1
  24673. cat conftest.err >&5
  24674. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24675. (exit $ac_status); } && {
  24676. test -z "$ac_c_werror_flag" ||
  24677. test ! -s conftest.err
  24678. } && test -s conftest.$ac_objext; then
  24679. ac_header_compiler=yes
  24680. else
  24681. $as_echo "$as_me: failed program was:" >&5
  24682. sed 's/^/| /' conftest.$ac_ext >&5
  24683. ac_header_compiler=no
  24684. fi
  24685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24686. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  24687. $as_echo "$ac_header_compiler" >&6; }
  24688. # Is the header present?
  24689. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  24690. $as_echo_n "checking $ac_header presence... " >&6; }
  24691. cat >conftest.$ac_ext <<_ACEOF
  24692. /* confdefs.h. */
  24693. _ACEOF
  24694. cat confdefs.h >>conftest.$ac_ext
  24695. cat >>conftest.$ac_ext <<_ACEOF
  24696. /* end confdefs.h. */
  24697. #include <$ac_header>
  24698. _ACEOF
  24699. if { (ac_try="$ac_cpp conftest.$ac_ext"
  24700. case "(($ac_try" in
  24701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24702. *) ac_try_echo=$ac_try;;
  24703. esac
  24704. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24705. $as_echo "$ac_try_echo") >&5
  24706. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  24707. ac_status=$?
  24708. grep -v '^ *+' conftest.er1 >conftest.err
  24709. rm -f conftest.er1
  24710. cat conftest.err >&5
  24711. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24712. (exit $ac_status); } >/dev/null && {
  24713. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  24714. test ! -s conftest.err
  24715. }; then
  24716. ac_header_preproc=yes
  24717. else
  24718. $as_echo "$as_me: failed program was:" >&5
  24719. sed 's/^/| /' conftest.$ac_ext >&5
  24720. ac_header_preproc=no
  24721. fi
  24722. rm -f conftest.err conftest.$ac_ext
  24723. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  24724. $as_echo "$ac_header_preproc" >&6; }
  24725. # So? What about this header?
  24726. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  24727. yes:no: )
  24728. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  24729. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  24730. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  24731. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  24732. ac_header_preproc=yes
  24733. ;;
  24734. no:yes:* )
  24735. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  24736. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  24737. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  24738. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  24739. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  24740. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  24741. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  24742. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  24743. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  24744. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  24745. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  24746. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  24747. ( cat <<\_ASBOX
  24748. ## ------------------------------------------ ##
  24749. ## Report this to http://bugzilla.redhat.com/ ##
  24750. ## ------------------------------------------ ##
  24751. _ASBOX
  24752. ) | sed "s/^/$as_me: WARNING: /" >&2
  24753. ;;
  24754. esac
  24755. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  24756. $as_echo_n "checking for $ac_header... " >&6; }
  24757. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  24758. $as_echo_n "(cached) " >&6
  24759. else
  24760. eval "$as_ac_Header=\$ac_header_preproc"
  24761. fi
  24762. ac_res=`eval 'as_val=${'$as_ac_Header'}
  24763. $as_echo "$as_val"'`
  24764. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  24765. $as_echo "$ac_res" >&6; }
  24766. fi
  24767. as_val=`eval 'as_val=${'$as_ac_Header'}
  24768. $as_echo "$as_val"'`
  24769. if test "x$as_val" = x""yes; then
  24770. cat >>confdefs.h <<_ACEOF
  24771. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24772. _ACEOF
  24773. fi
  24774. done
  24775. if test $ac_cv_header_heim_err_h = yes ; then
  24776. krb5_impl=heimdal
  24777. fi
  24778. if test "x$krb5_impl" = "xmit"; then
  24779. { $as_echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  24780. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  24781. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  24782. $as_echo_n "(cached) " >&6
  24783. else
  24784. ac_check_lib_save_LIBS=$LIBS
  24785. LIBS="-lk5crypto $LIBS"
  24786. cat >conftest.$ac_ext <<_ACEOF
  24787. /* confdefs.h. */
  24788. _ACEOF
  24789. cat confdefs.h >>conftest.$ac_ext
  24790. cat >>conftest.$ac_ext <<_ACEOF
  24791. /* end confdefs.h. */
  24792. int
  24793. main ()
  24794. {
  24795. return main ();
  24796. ;
  24797. return 0;
  24798. }
  24799. _ACEOF
  24800. rm -f conftest.$ac_objext conftest$ac_exeext
  24801. if { (ac_try="$ac_link"
  24802. case "(($ac_try" in
  24803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24804. *) ac_try_echo=$ac_try;;
  24805. esac
  24806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24807. $as_echo "$ac_try_echo") >&5
  24808. (eval "$ac_link") 2>conftest.er1
  24809. ac_status=$?
  24810. grep -v '^ *+' conftest.er1 >conftest.err
  24811. rm -f conftest.er1
  24812. cat conftest.err >&5
  24813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24814. (exit $ac_status); } && {
  24815. test -z "$ac_c_werror_flag" ||
  24816. test ! -s conftest.err
  24817. } && test -s conftest$ac_exeext && {
  24818. test "$cross_compiling" = yes ||
  24819. $as_test_x conftest$ac_exeext
  24820. }; then
  24821. ac_cv_lib_k5crypto_main=yes
  24822. else
  24823. $as_echo "$as_me: failed program was:" >&5
  24824. sed 's/^/| /' conftest.$ac_ext >&5
  24825. ac_cv_lib_k5crypto_main=no
  24826. fi
  24827. rm -rf conftest.dSYM
  24828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24829. conftest$ac_exeext conftest.$ac_ext
  24830. LIBS=$ac_check_lib_save_LIBS
  24831. fi
  24832. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  24833. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  24834. if test "x$ac_cv_lib_k5crypto_main" = x""yes; then
  24835. krb5crypto=k5crypto
  24836. else
  24837. krb5crypto=crypto
  24838. fi
  24839. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  24840. $as_echo_n "checking for main in -lkrb5... " >&6; }
  24841. if test "${ac_cv_lib_krb5_main+set}" = set; then
  24842. $as_echo_n "(cached) " >&6
  24843. else
  24844. ac_check_lib_save_LIBS=$LIBS
  24845. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  24846. cat >conftest.$ac_ext <<_ACEOF
  24847. /* confdefs.h. */
  24848. _ACEOF
  24849. cat confdefs.h >>conftest.$ac_ext
  24850. cat >>conftest.$ac_ext <<_ACEOF
  24851. /* end confdefs.h. */
  24852. int
  24853. main ()
  24854. {
  24855. return main ();
  24856. ;
  24857. return 0;
  24858. }
  24859. _ACEOF
  24860. rm -f conftest.$ac_objext conftest$ac_exeext
  24861. if { (ac_try="$ac_link"
  24862. case "(($ac_try" in
  24863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24864. *) ac_try_echo=$ac_try;;
  24865. esac
  24866. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24867. $as_echo "$ac_try_echo") >&5
  24868. (eval "$ac_link") 2>conftest.er1
  24869. ac_status=$?
  24870. grep -v '^ *+' conftest.er1 >conftest.err
  24871. rm -f conftest.er1
  24872. cat conftest.err >&5
  24873. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24874. (exit $ac_status); } && {
  24875. test -z "$ac_c_werror_flag" ||
  24876. test ! -s conftest.err
  24877. } && test -s conftest$ac_exeext && {
  24878. test "$cross_compiling" = yes ||
  24879. $as_test_x conftest$ac_exeext
  24880. }; then
  24881. ac_cv_lib_krb5_main=yes
  24882. else
  24883. $as_echo "$as_me: failed program was:" >&5
  24884. sed 's/^/| /' conftest.$ac_ext >&5
  24885. ac_cv_lib_krb5_main=no
  24886. fi
  24887. rm -rf conftest.dSYM
  24888. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24889. conftest$ac_exeext conftest.$ac_ext
  24890. LIBS=$ac_check_lib_save_LIBS
  24891. fi
  24892. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  24893. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  24894. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  24895. have_krb5=yes
  24896. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  24897. else
  24898. have_krb5=no
  24899. fi
  24900. elif test "x$krb5_impl" = "xheimdal"; then
  24901. { $as_echo "$as_me:$LINENO: checking for main in -ldes" >&5
  24902. $as_echo_n "checking for main in -ldes... " >&6; }
  24903. if test "${ac_cv_lib_des_main+set}" = set; then
  24904. $as_echo_n "(cached) " >&6
  24905. else
  24906. ac_check_lib_save_LIBS=$LIBS
  24907. LIBS="-ldes $LIBS"
  24908. cat >conftest.$ac_ext <<_ACEOF
  24909. /* confdefs.h. */
  24910. _ACEOF
  24911. cat confdefs.h >>conftest.$ac_ext
  24912. cat >>conftest.$ac_ext <<_ACEOF
  24913. /* end confdefs.h. */
  24914. int
  24915. main ()
  24916. {
  24917. return main ();
  24918. ;
  24919. return 0;
  24920. }
  24921. _ACEOF
  24922. rm -f conftest.$ac_objext conftest$ac_exeext
  24923. if { (ac_try="$ac_link"
  24924. case "(($ac_try" in
  24925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24926. *) ac_try_echo=$ac_try;;
  24927. esac
  24928. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24929. $as_echo "$ac_try_echo") >&5
  24930. (eval "$ac_link") 2>conftest.er1
  24931. ac_status=$?
  24932. grep -v '^ *+' conftest.er1 >conftest.err
  24933. rm -f conftest.er1
  24934. cat conftest.err >&5
  24935. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24936. (exit $ac_status); } && {
  24937. test -z "$ac_c_werror_flag" ||
  24938. test ! -s conftest.err
  24939. } && test -s conftest$ac_exeext && {
  24940. test "$cross_compiling" = yes ||
  24941. $as_test_x conftest$ac_exeext
  24942. }; then
  24943. ac_cv_lib_des_main=yes
  24944. else
  24945. $as_echo "$as_me: failed program was:" >&5
  24946. sed 's/^/| /' conftest.$ac_ext >&5
  24947. ac_cv_lib_des_main=no
  24948. fi
  24949. rm -rf conftest.dSYM
  24950. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24951. conftest$ac_exeext conftest.$ac_ext
  24952. LIBS=$ac_check_lib_save_LIBS
  24953. fi
  24954. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  24955. $as_echo "$ac_cv_lib_des_main" >&6; }
  24956. if test "x$ac_cv_lib_des_main" = x""yes; then
  24957. krb5crypto=des
  24958. else
  24959. krb5crypto=crypto
  24960. fi
  24961. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  24962. $as_echo_n "checking for main in -lkrb5... " >&6; }
  24963. if test "${ac_cv_lib_krb5_main+set}" = set; then
  24964. $as_echo_n "(cached) " >&6
  24965. else
  24966. ac_check_lib_save_LIBS=$LIBS
  24967. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  24968. cat >conftest.$ac_ext <<_ACEOF
  24969. /* confdefs.h. */
  24970. _ACEOF
  24971. cat confdefs.h >>conftest.$ac_ext
  24972. cat >>conftest.$ac_ext <<_ACEOF
  24973. /* end confdefs.h. */
  24974. int
  24975. main ()
  24976. {
  24977. return main ();
  24978. ;
  24979. return 0;
  24980. }
  24981. _ACEOF
  24982. rm -f conftest.$ac_objext conftest$ac_exeext
  24983. if { (ac_try="$ac_link"
  24984. case "(($ac_try" in
  24985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24986. *) ac_try_echo=$ac_try;;
  24987. esac
  24988. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  24989. $as_echo "$ac_try_echo") >&5
  24990. (eval "$ac_link") 2>conftest.er1
  24991. ac_status=$?
  24992. grep -v '^ *+' conftest.er1 >conftest.err
  24993. rm -f conftest.er1
  24994. cat conftest.err >&5
  24995. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24996. (exit $ac_status); } && {
  24997. test -z "$ac_c_werror_flag" ||
  24998. test ! -s conftest.err
  24999. } && test -s conftest$ac_exeext && {
  25000. test "$cross_compiling" = yes ||
  25001. $as_test_x conftest$ac_exeext
  25002. }; then
  25003. ac_cv_lib_krb5_main=yes
  25004. else
  25005. $as_echo "$as_me: failed program was:" >&5
  25006. sed 's/^/| /' conftest.$ac_ext >&5
  25007. ac_cv_lib_krb5_main=no
  25008. fi
  25009. rm -rf conftest.dSYM
  25010. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25011. conftest$ac_exeext conftest.$ac_ext
  25012. LIBS=$ac_check_lib_save_LIBS
  25013. fi
  25014. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  25015. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  25016. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  25017. have_krb5=yes
  25018. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  25019. else
  25020. have_krb5=no
  25021. fi
  25022. cat >>confdefs.h <<\_ACEOF
  25023. #define HAVE_HEIMDAL_KERBEROS 1
  25024. _ACEOF
  25025. else
  25026. have_krb5=no
  25027. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  25028. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  25029. fi
  25030. # reset to original values
  25031. CPPFLAGS="$save_CPPFLAGS"
  25032. LDFLAGS="$save_LDFLAGS"
  25033. if test -n "$kerberos_incdir" ; then
  25034. kerberos_inc="-I$kerberos_incdir"
  25035. fi
  25036. if test -n "$kerberos_libdir" ; then
  25037. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  25038. fi
  25039. fi
  25040. if test -n "$with_kerberos" ; then
  25041. if test "x$have_krb5" = "xyes" ; then
  25042. cat >>confdefs.h <<\_ACEOF
  25043. #define HAVE_KRB5 1
  25044. _ACEOF
  25045. else
  25046. { { $as_echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  25047. $as_echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  25048. { (exit 1); exit 1; }; }
  25049. fi
  25050. save_LIBS="$LIBS"
  25051. LIBS="$kerberos_lib"
  25052. save_CPPFLAGS="$CPPFLAGS"
  25053. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  25054. for ac_func in krb5_cc_new_unique
  25055. do
  25056. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25057. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  25058. $as_echo_n "checking for $ac_func... " >&6; }
  25059. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  25060. $as_echo_n "(cached) " >&6
  25061. else
  25062. cat >conftest.$ac_ext <<_ACEOF
  25063. /* confdefs.h. */
  25064. _ACEOF
  25065. cat confdefs.h >>conftest.$ac_ext
  25066. cat >>conftest.$ac_ext <<_ACEOF
  25067. /* end confdefs.h. */
  25068. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  25069. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25070. #define $ac_func innocuous_$ac_func
  25071. /* System header to define __stub macros and hopefully few prototypes,
  25072. which can conflict with char $ac_func (); below.
  25073. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25074. <limits.h> exists even on freestanding compilers. */
  25075. #ifdef __STDC__
  25076. # include <limits.h>
  25077. #else
  25078. # include <assert.h>
  25079. #endif
  25080. #undef $ac_func
  25081. /* Override any GCC internal prototype to avoid an error.
  25082. Use char because int might match the return type of a GCC
  25083. builtin and then its argument prototype would still apply. */
  25084. #ifdef __cplusplus
  25085. extern "C"
  25086. #endif
  25087. char $ac_func ();
  25088. /* The GNU C library defines this for functions which it implements
  25089. to always fail with ENOSYS. Some functions are actually named
  25090. something starting with __ and the normal name is an alias. */
  25091. #if defined __stub_$ac_func || defined __stub___$ac_func
  25092. choke me
  25093. #endif
  25094. int
  25095. main ()
  25096. {
  25097. return $ac_func ();
  25098. ;
  25099. return 0;
  25100. }
  25101. _ACEOF
  25102. rm -f conftest.$ac_objext conftest$ac_exeext
  25103. if { (ac_try="$ac_link"
  25104. case "(($ac_try" in
  25105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25106. *) ac_try_echo=$ac_try;;
  25107. esac
  25108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  25109. $as_echo "$ac_try_echo") >&5
  25110. (eval "$ac_link") 2>conftest.er1
  25111. ac_status=$?
  25112. grep -v '^ *+' conftest.er1 >conftest.err
  25113. rm -f conftest.er1
  25114. cat conftest.err >&5
  25115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25116. (exit $ac_status); } && {
  25117. test -z "$ac_c_werror_flag" ||
  25118. test ! -s conftest.err
  25119. } && test -s conftest$ac_exeext && {
  25120. test "$cross_compiling" = yes ||
  25121. $as_test_x conftest$ac_exeext
  25122. }; then
  25123. eval "$as_ac_var=yes"
  25124. else
  25125. $as_echo "$as_me: failed program was:" >&5
  25126. sed 's/^/| /' conftest.$ac_ext >&5
  25127. eval "$as_ac_var=no"
  25128. fi
  25129. rm -rf conftest.dSYM
  25130. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  25131. conftest$ac_exeext conftest.$ac_ext
  25132. fi
  25133. ac_res=`eval 'as_val=${'$as_ac_var'}
  25134. $as_echo "$as_val"'`
  25135. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  25136. $as_echo "$ac_res" >&6; }
  25137. as_val=`eval 'as_val=${'$as_ac_var'}
  25138. $as_echo "$as_val"'`
  25139. if test "x$as_val" = x""yes; then
  25140. cat >>confdefs.h <<_ACEOF
  25141. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25142. _ACEOF
  25143. fi
  25144. done
  25145. LIBS="$save_LIBS"
  25146. CPPFLAGS="$save_CPPFLAGS"
  25147. fi
  25148. # BEGIN COPYRIGHT BLOCK
  25149. # Copyright (C) 2007 Red Hat, Inc.
  25150. # All rights reserved.
  25151. #
  25152. # This program is free software; you can redistribute it and/or
  25153. # modify it under the terms of the GNU General Public License
  25154. # as published by the Free Software Foundation; either version 2
  25155. # of the License, or (at your option) any later version.
  25156. #
  25157. # This program is distributed in the hope that it will be useful,
  25158. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  25159. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25160. # GNU General Public License for more details.
  25161. #
  25162. # You should have received a copy of the GNU General Public License
  25163. # along with this program; if not, write to the Free Software
  25164. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  25165. #
  25166. # END COPYRIGHT BLOCK
  25167. { $as_echo "$as_me:$LINENO: checking for pcre..." >&5
  25168. $as_echo "$as_me: checking for pcre..." >&6;}
  25169. { $as_echo "$as_me:$LINENO: checking for --with-pcre" >&5
  25170. $as_echo_n "checking for --with-pcre... " >&6; }
  25171. # Check whether --with-pcre was given.
  25172. if test "${with_pcre+set}" = set; then
  25173. withval=$with_pcre;
  25174. if test "$withval" = "yes"; then
  25175. { $as_echo "$as_me:$LINENO: result: yes" >&5
  25176. $as_echo "yes" >&6; }
  25177. if test -f "/usr/include/pcre.h"; then
  25178. pcre_incdir="/usr/include"
  25179. pcre_inc="-I/usr/include"
  25180. pcre_lib='-L$(libdir)'
  25181. pcre_libdir='$(libdir)'
  25182. else
  25183. { { $as_echo "$as_me:$LINENO: error: pcre.h not found" >&5
  25184. $as_echo "$as_me: error: pcre.h not found" >&2;}
  25185. { (exit 1); exit 1; }; }
  25186. fi
  25187. elif test -d "$withval"/include -a -d "$withval"/lib; then
  25188. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  25189. $as_echo "using $withval" >&6; }
  25190. PCREDIR=$withval
  25191. pcre_lib="-L$PCREDIR/lib"
  25192. pcre_libdir="$PCREDIR/lib"
  25193. pcre_incdir="$PCREDIR/include"
  25194. if ! test -e "$pcre_incdir/pcre.h" ; then
  25195. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  25196. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  25197. { (exit 1); exit 1; }; }
  25198. fi
  25199. pcre_inc="-I$pcre_incdir"
  25200. else
  25201. echo
  25202. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  25203. $as_echo "$as_me: error: $withval not found" >&2;}
  25204. { (exit 1); exit 1; }; }
  25205. fi
  25206. else
  25207. { $as_echo "$as_me:$LINENO: result: no" >&5
  25208. $as_echo "no" >&6; }
  25209. fi
  25210. if test -z "$pcre_inc"; then
  25211. { $as_echo "$as_me:$LINENO: checking for pcre.h" >&5
  25212. $as_echo_n "checking for pcre.h... " >&6; }
  25213. if test -f "/usr/include/pcre.h"; then
  25214. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  25215. $as_echo "using /usr/include/pcre.h" >&6; }
  25216. pcre_incdir="/usr/include"
  25217. pcre_inc="-I/usr/include"
  25218. pcre_lib='-L$(libdir)'
  25219. pcre_libdir='$(libdir)'
  25220. else
  25221. { $as_echo "$as_me:$LINENO: result: no" >&5
  25222. $as_echo "no" >&6; }
  25223. { { $as_echo "$as_me:$LINENO: error: pcre not found, specify with --with-pcre." >&5
  25224. $as_echo "$as_me: error: pcre not found, specify with --with-pcre." >&2;}
  25225. { (exit 1); exit 1; }; }
  25226. fi
  25227. fi
  25228. #
  25229. # if PCRE is not found yet, try pkg-config
  25230. # last resort
  25231. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  25232. # Extract the first word of "pkg-config", so it can be a program name with args.
  25233. set dummy pkg-config; ac_word=$2
  25234. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  25235. $as_echo_n "checking for $ac_word... " >&6; }
  25236. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  25237. $as_echo_n "(cached) " >&6
  25238. else
  25239. case $PKG_CONFIG in
  25240. [\\/]* | ?:[\\/]*)
  25241. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  25242. ;;
  25243. *)
  25244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25245. for as_dir in $PATH
  25246. do
  25247. IFS=$as_save_IFS
  25248. test -z "$as_dir" && as_dir=.
  25249. for ac_exec_ext in '' $ac_executable_extensions; do
  25250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25251. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  25252. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25253. break 2
  25254. fi
  25255. done
  25256. done
  25257. IFS=$as_save_IFS
  25258. ;;
  25259. esac
  25260. fi
  25261. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  25262. if test -n "$PKG_CONFIG"; then
  25263. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  25264. $as_echo "$PKG_CONFIG" >&6; }
  25265. else
  25266. { $as_echo "$as_me:$LINENO: result: no" >&5
  25267. $as_echo "no" >&6; }
  25268. fi
  25269. { $as_echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  25270. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  25271. if test -n "$PKG_CONFIG"; then
  25272. if $PKG_CONFIG --exists pcre; then
  25273. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  25274. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  25275. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  25276. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  25277. $as_echo "using system PCRE" >&6; }
  25278. else
  25279. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  25280. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  25281. { (exit 1); exit 1; }; }
  25282. fi
  25283. fi
  25284. fi
  25285. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  25286. # set sasl_path for wrapper scripts
  25287. if test -z "$sasl_libdir" ; then
  25288. sasl_path="$libdir/sasl2"
  25289. else
  25290. sasl_path="$sasl_libdir/sasl2"
  25291. fi
  25292. if test "$with_openldap" = "yes"; then
  25293. OPENLDAP_TRUE=
  25294. OPENLDAP_FALSE='#'
  25295. else
  25296. OPENLDAP_TRUE='#'
  25297. OPENLDAP_FALSE=
  25298. fi
  25299. # write out paths for binary components
  25300. cat >>confdefs.h <<\_ACEOF
  25301. #define LDAP_DEBUG 1
  25302. _ACEOF
  25303. cat >>confdefs.h <<\_ACEOF
  25304. #define LDAP_DONT_USE_SMARTHEAP 1
  25305. _ACEOF
  25306. # libtool on fedora/rhel contains some gcc-isms which cause problems
  25307. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  25308. # we remove them here
  25309. if test "$GCC" != yes ; then
  25310. { $as_echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  25311. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  25312. cp -p libtool libtool.orig
  25313. cp -p libtool libtool.tmp
  25314. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  25315. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  25316. # perl produced write-only code . . .
  25317. sed -e '/^gcc_dir/ d' \
  25318. -e '/^gcc_ver/ d' \
  25319. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  25320. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  25321. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  25322. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  25323. libtool > libtool.tmp
  25324. cp -p libtool.tmp libtool
  25325. rm -f libtool.tmp
  25326. fi
  25327. ac_config_files="$ac_config_files Makefile"
  25328. cat >confcache <<\_ACEOF
  25329. # This file is a shell script that caches the results of configure
  25330. # tests run on this system so they can be shared between configure
  25331. # scripts and configure runs, see configure's option --config-cache.
  25332. # It is not useful on other systems. If it contains results you don't
  25333. # want to keep, you may remove or edit it.
  25334. #
  25335. # config.status only pays attention to the cache file if you give it
  25336. # the --recheck option to rerun configure.
  25337. #
  25338. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25339. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25340. # following values.
  25341. _ACEOF
  25342. # The following way of writing the cache mishandles newlines in values,
  25343. # but we know of no workaround that is simple, portable, and efficient.
  25344. # So, we kill variables containing newlines.
  25345. # Ultrix sh set writes to stderr and can't be redirected directly,
  25346. # and sets the high bit in the cache file unless we assign to the vars.
  25347. (
  25348. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25349. eval ac_val=\$$ac_var
  25350. case $ac_val in #(
  25351. *${as_nl}*)
  25352. case $ac_var in #(
  25353. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  25354. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25355. esac
  25356. case $ac_var in #(
  25357. _ | IFS | as_nl) ;; #(
  25358. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25359. *) $as_unset $ac_var ;;
  25360. esac ;;
  25361. esac
  25362. done
  25363. (set) 2>&1 |
  25364. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25365. *${as_nl}ac_space=\ *)
  25366. # `set' does not quote correctly, so add quotes (double-quote
  25367. # substitution turns \\\\ into \\, and sed turns \\ into \).
  25368. sed -n \
  25369. "s/'/'\\\\''/g;
  25370. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25371. ;; #(
  25372. *)
  25373. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25374. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25375. ;;
  25376. esac |
  25377. sort
  25378. ) |
  25379. sed '
  25380. /^ac_cv_env_/b end
  25381. t clear
  25382. :clear
  25383. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  25384. t end
  25385. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25386. :end' >>confcache
  25387. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25388. if test -w "$cache_file"; then
  25389. test "x$cache_file" != "x/dev/null" &&
  25390. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  25391. $as_echo "$as_me: updating cache $cache_file" >&6;}
  25392. cat confcache >$cache_file
  25393. else
  25394. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  25395. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  25396. fi
  25397. fi
  25398. rm -f confcache
  25399. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25400. # Let make expand exec_prefix.
  25401. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25402. DEFS=-DHAVE_CONFIG_H
  25403. ac_libobjs=
  25404. ac_ltlibobjs=
  25405. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25406. # 1. Remove the extension, and $U if already installed.
  25407. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25408. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  25409. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25410. # will be set to the directory where LIBOBJS objects are built.
  25411. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25412. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  25413. done
  25414. LIBOBJS=$ac_libobjs
  25415. LTLIBOBJS=$ac_ltlibobjs
  25416. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  25417. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  25418. Usually this means the macro was only invoked conditionally." >&5
  25419. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  25420. Usually this means the macro was only invoked conditionally." >&2;}
  25421. { (exit 1); exit 1; }; }
  25422. fi
  25423. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  25424. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  25425. Usually this means the macro was only invoked conditionally." >&5
  25426. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  25427. Usually this means the macro was only invoked conditionally." >&2;}
  25428. { (exit 1); exit 1; }; }
  25429. fi
  25430. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  25431. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  25432. Usually this means the macro was only invoked conditionally." >&5
  25433. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  25434. Usually this means the macro was only invoked conditionally." >&2;}
  25435. { (exit 1); exit 1; }; }
  25436. fi
  25437. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25438. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  25439. Usually this means the macro was only invoked conditionally." >&5
  25440. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  25441. Usually this means the macro was only invoked conditionally." >&2;}
  25442. { (exit 1); exit 1; }; }
  25443. fi
  25444. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  25445. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  25446. Usually this means the macro was only invoked conditionally." >&5
  25447. $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  25448. Usually this means the macro was only invoked conditionally." >&2;}
  25449. { (exit 1); exit 1; }; }
  25450. fi
  25451. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  25452. { { $as_echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  25453. Usually this means the macro was only invoked conditionally." >&5
  25454. $as_echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  25455. Usually this means the macro was only invoked conditionally." >&2;}
  25456. { (exit 1); exit 1; }; }
  25457. fi
  25458. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  25459. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  25460. Usually this means the macro was only invoked conditionally." >&5
  25461. $as_echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  25462. Usually this means the macro was only invoked conditionally." >&2;}
  25463. { (exit 1); exit 1; }; }
  25464. fi
  25465. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  25466. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  25467. Usually this means the macro was only invoked conditionally." >&5
  25468. $as_echo "$as_me: error: conditional \"enable_dna\" was never defined.
  25469. Usually this means the macro was only invoked conditionally." >&2;}
  25470. { (exit 1); exit 1; }; }
  25471. fi
  25472. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  25473. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  25474. Usually this means the macro was only invoked conditionally." >&5
  25475. $as_echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  25476. Usually this means the macro was only invoked conditionally." >&2;}
  25477. { (exit 1); exit 1; }; }
  25478. fi
  25479. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  25480. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  25481. Usually this means the macro was only invoked conditionally." >&5
  25482. $as_echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  25483. Usually this means the macro was only invoked conditionally." >&2;}
  25484. { (exit 1); exit 1; }; }
  25485. fi
  25486. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  25487. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  25488. Usually this means the macro was only invoked conditionally." >&5
  25489. $as_echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  25490. Usually this means the macro was only invoked conditionally." >&2;}
  25491. { (exit 1); exit 1; }; }
  25492. fi
  25493. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  25494. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  25495. Usually this means the macro was only invoked conditionally." >&5
  25496. $as_echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  25497. Usually this means the macro was only invoked conditionally." >&2;}
  25498. { (exit 1); exit 1; }; }
  25499. fi
  25500. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  25501. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  25502. Usually this means the macro was only invoked conditionally." >&5
  25503. $as_echo "$as_me: error: conditional \"enable_presence\" was never defined.
  25504. Usually this means the macro was only invoked conditionally." >&2;}
  25505. { (exit 1); exit 1; }; }
  25506. fi
  25507. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  25508. { { $as_echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  25509. Usually this means the macro was only invoked conditionally." >&5
  25510. $as_echo "$as_me: error: conditional \"WINNT\" was never defined.
  25511. Usually this means the macro was only invoked conditionally." >&2;}
  25512. { (exit 1); exit 1; }; }
  25513. fi
  25514. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  25515. { { $as_echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  25516. Usually this means the macro was only invoked conditionally." >&5
  25517. $as_echo "$as_me: error: conditional \"HPUX\" was never defined.
  25518. Usually this means the macro was only invoked conditionally." >&2;}
  25519. { (exit 1); exit 1; }; }
  25520. fi
  25521. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  25522. { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  25523. Usually this means the macro was only invoked conditionally." >&5
  25524. $as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  25525. Usually this means the macro was only invoked conditionally." >&2;}
  25526. { (exit 1); exit 1; }; }
  25527. fi
  25528. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  25529. { { $as_echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  25530. Usually this means the macro was only invoked conditionally." >&5
  25531. $as_echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  25532. Usually this means the macro was only invoked conditionally." >&2;}
  25533. { (exit 1); exit 1; }; }
  25534. fi
  25535. : ${CONFIG_STATUS=./config.status}
  25536. ac_write_fail=0
  25537. ac_clean_files_save=$ac_clean_files
  25538. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25539. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  25540. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  25541. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25542. #! $SHELL
  25543. # Generated by $as_me.
  25544. # Run this file to recreate the current configuration.
  25545. # Compiler output produced by configure, useful for debugging
  25546. # configure, is in config.log if it exists.
  25547. debug=false
  25548. ac_cs_recheck=false
  25549. ac_cs_silent=false
  25550. SHELL=\${CONFIG_SHELL-$SHELL}
  25551. _ACEOF
  25552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25553. ## --------------------- ##
  25554. ## M4sh Initialization. ##
  25555. ## --------------------- ##
  25556. # Be more Bourne compatible
  25557. DUALCASE=1; export DUALCASE # for MKS sh
  25558. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  25559. emulate sh
  25560. NULLCMD=:
  25561. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25562. # is contrary to our usage. Disable this feature.
  25563. alias -g '${1+"$@"}'='"$@"'
  25564. setopt NO_GLOB_SUBST
  25565. else
  25566. case `(set -o) 2>/dev/null` in
  25567. *posix*) set -o posix ;;
  25568. esac
  25569. fi
  25570. # PATH needs CR
  25571. # Avoid depending upon Character Ranges.
  25572. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25573. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25574. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25575. as_cr_digits='0123456789'
  25576. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25577. as_nl='
  25578. '
  25579. export as_nl
  25580. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  25581. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  25582. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  25583. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  25584. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  25585. as_echo='printf %s\n'
  25586. as_echo_n='printf %s'
  25587. else
  25588. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  25589. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  25590. as_echo_n='/usr/ucb/echo -n'
  25591. else
  25592. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  25593. as_echo_n_body='eval
  25594. arg=$1;
  25595. case $arg in
  25596. *"$as_nl"*)
  25597. expr "X$arg" : "X\\(.*\\)$as_nl";
  25598. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  25599. esac;
  25600. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  25601. '
  25602. export as_echo_n_body
  25603. as_echo_n='sh -c $as_echo_n_body as_echo'
  25604. fi
  25605. export as_echo_body
  25606. as_echo='sh -c $as_echo_body as_echo'
  25607. fi
  25608. # The user is always right.
  25609. if test "${PATH_SEPARATOR+set}" != set; then
  25610. PATH_SEPARATOR=:
  25611. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25612. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25613. PATH_SEPARATOR=';'
  25614. }
  25615. fi
  25616. # Support unset when possible.
  25617. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  25618. as_unset=unset
  25619. else
  25620. as_unset=false
  25621. fi
  25622. # IFS
  25623. # We need space, tab and new line, in precisely that order. Quoting is
  25624. # there to prevent editors from complaining about space-tab.
  25625. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  25626. # splitting by setting IFS to empty value.)
  25627. IFS=" "" $as_nl"
  25628. # Find who we are. Look in the path if we contain no directory separator.
  25629. case $0 in
  25630. *[\\/]* ) as_myself=$0 ;;
  25631. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25632. for as_dir in $PATH
  25633. do
  25634. IFS=$as_save_IFS
  25635. test -z "$as_dir" && as_dir=.
  25636. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  25637. done
  25638. IFS=$as_save_IFS
  25639. ;;
  25640. esac
  25641. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25642. # in which case we are not to be found in the path.
  25643. if test "x$as_myself" = x; then
  25644. as_myself=$0
  25645. fi
  25646. if test ! -f "$as_myself"; then
  25647. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25648. { (exit 1); exit 1; }
  25649. fi
  25650. # Work around bugs in pre-3.0 UWIN ksh.
  25651. for as_var in ENV MAIL MAILPATH
  25652. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  25653. done
  25654. PS1='$ '
  25655. PS2='> '
  25656. PS4='+ '
  25657. # NLS nuisances.
  25658. LC_ALL=C
  25659. export LC_ALL
  25660. LANGUAGE=C
  25661. export LANGUAGE
  25662. # Required to use basename.
  25663. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25664. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25665. as_expr=expr
  25666. else
  25667. as_expr=false
  25668. fi
  25669. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25670. as_basename=basename
  25671. else
  25672. as_basename=false
  25673. fi
  25674. # Name of the executable.
  25675. as_me=`$as_basename -- "$0" ||
  25676. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25677. X"$0" : 'X\(//\)$' \| \
  25678. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25679. $as_echo X/"$0" |
  25680. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25681. s//\1/
  25682. q
  25683. }
  25684. /^X\/\(\/\/\)$/{
  25685. s//\1/
  25686. q
  25687. }
  25688. /^X\/\(\/\).*/{
  25689. s//\1/
  25690. q
  25691. }
  25692. s/.*/./; q'`
  25693. # CDPATH.
  25694. $as_unset CDPATH
  25695. as_lineno_1=$LINENO
  25696. as_lineno_2=$LINENO
  25697. test "x$as_lineno_1" != "x$as_lineno_2" &&
  25698. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  25699. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  25700. # uniformly replaced by the line number. The first 'sed' inserts a
  25701. # line-number line after each line using $LINENO; the second 'sed'
  25702. # does the real work. The second script uses 'N' to pair each
  25703. # line-number line with the line containing $LINENO, and appends
  25704. # trailing '-' during substitution so that $LINENO is not a special
  25705. # case at line end.
  25706. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  25707. # scripts with optimization help from Paolo Bonzini. Blame Lee
  25708. # E. McMahon (1931-1989) for sed's syntax. :-)
  25709. sed -n '
  25710. p
  25711. /[$]LINENO/=
  25712. ' <$as_myself |
  25713. sed '
  25714. s/[$]LINENO.*/&-/
  25715. t lineno
  25716. b
  25717. :lineno
  25718. N
  25719. :loop
  25720. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  25721. t loop
  25722. s/-\n.*//
  25723. ' >$as_me.lineno &&
  25724. chmod +x "$as_me.lineno" ||
  25725. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  25726. { (exit 1); exit 1; }; }
  25727. # Don't try to exec as it changes $[0], causing all sort of problems
  25728. # (the dirname of $[0] is not the place where we might find the
  25729. # original and so on. Autoconf is especially sensitive to this).
  25730. . "./$as_me.lineno"
  25731. # Exit status is that of the last command.
  25732. exit
  25733. }
  25734. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25735. as_dirname=dirname
  25736. else
  25737. as_dirname=false
  25738. fi
  25739. ECHO_C= ECHO_N= ECHO_T=
  25740. case `echo -n x` in
  25741. -n*)
  25742. case `echo 'x\c'` in
  25743. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25744. *) ECHO_C='\c';;
  25745. esac;;
  25746. *)
  25747. ECHO_N='-n';;
  25748. esac
  25749. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25750. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25751. as_expr=expr
  25752. else
  25753. as_expr=false
  25754. fi
  25755. rm -f conf$$ conf$$.exe conf$$.file
  25756. if test -d conf$$.dir; then
  25757. rm -f conf$$.dir/conf$$.file
  25758. else
  25759. rm -f conf$$.dir
  25760. mkdir conf$$.dir 2>/dev/null
  25761. fi
  25762. if (echo >conf$$.file) 2>/dev/null; then
  25763. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25764. as_ln_s='ln -s'
  25765. # ... but there are two gotchas:
  25766. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25767. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25768. # In both cases, we have to default to `cp -p'.
  25769. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25770. as_ln_s='cp -p'
  25771. elif ln conf$$.file conf$$ 2>/dev/null; then
  25772. as_ln_s=ln
  25773. else
  25774. as_ln_s='cp -p'
  25775. fi
  25776. else
  25777. as_ln_s='cp -p'
  25778. fi
  25779. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25780. rmdir conf$$.dir 2>/dev/null
  25781. if mkdir -p . 2>/dev/null; then
  25782. as_mkdir_p=:
  25783. else
  25784. test -d ./-p && rmdir ./-p
  25785. as_mkdir_p=false
  25786. fi
  25787. if test -x / >/dev/null 2>&1; then
  25788. as_test_x='test -x'
  25789. else
  25790. if ls -dL / >/dev/null 2>&1; then
  25791. as_ls_L_option=L
  25792. else
  25793. as_ls_L_option=
  25794. fi
  25795. as_test_x='
  25796. eval sh -c '\''
  25797. if test -d "$1"; then
  25798. test -d "$1/.";
  25799. else
  25800. case $1 in
  25801. -*)set "./$1";;
  25802. esac;
  25803. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  25804. ???[sx]*):;;*)false;;esac;fi
  25805. '\'' sh
  25806. '
  25807. fi
  25808. as_executable_p=$as_test_x
  25809. # Sed expression to map a string onto a valid CPP name.
  25810. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25811. # Sed expression to map a string onto a valid variable name.
  25812. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25813. exec 6>&1
  25814. # Save the log message, to keep $[0] and so on meaningful, and to
  25815. # report actual input values of CONFIG_FILES etc. instead of their
  25816. # values after options handling.
  25817. ac_log="
  25818. This file was extended by dirsrv $as_me 1.2.1, which was
  25819. generated by GNU Autoconf 2.63. Invocation command line was
  25820. CONFIG_FILES = $CONFIG_FILES
  25821. CONFIG_HEADERS = $CONFIG_HEADERS
  25822. CONFIG_LINKS = $CONFIG_LINKS
  25823. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25824. $ $0 $@
  25825. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25826. "
  25827. _ACEOF
  25828. case $ac_config_files in *"
  25829. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25830. esac
  25831. case $ac_config_headers in *"
  25832. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25833. esac
  25834. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25835. # Files that config.status was made for.
  25836. config_files="$ac_config_files"
  25837. config_headers="$ac_config_headers"
  25838. config_commands="$ac_config_commands"
  25839. _ACEOF
  25840. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25841. ac_cs_usage="\
  25842. \`$as_me' instantiates files from templates according to the
  25843. current configuration.
  25844. Usage: $0 [OPTION]... [FILE]...
  25845. -h, --help print this help, then exit
  25846. -V, --version print version number and configuration settings, then exit
  25847. -q, --quiet, --silent
  25848. do not print progress messages
  25849. -d, --debug don't remove temporary files
  25850. --recheck update $as_me by reconfiguring in the same conditions
  25851. --file=FILE[:TEMPLATE]
  25852. instantiate the configuration file FILE
  25853. --header=FILE[:TEMPLATE]
  25854. instantiate the configuration header FILE
  25855. Configuration files:
  25856. $config_files
  25857. Configuration headers:
  25858. $config_headers
  25859. Configuration commands:
  25860. $config_commands
  25861. Report bugs to <[email protected]>."
  25862. _ACEOF
  25863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25864. ac_cs_version="\\
  25865. dirsrv config.status 1.2.1
  25866. configured by $0, generated by GNU Autoconf 2.63,
  25867. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  25868. Copyright (C) 2008 Free Software Foundation, Inc.
  25869. This config.status script is free software; the Free Software Foundation
  25870. gives unlimited permission to copy, distribute and modify it."
  25871. ac_pwd='$ac_pwd'
  25872. srcdir='$srcdir'
  25873. INSTALL='$INSTALL'
  25874. MKDIR_P='$MKDIR_P'
  25875. AWK='$AWK'
  25876. test -n "\$AWK" || AWK=awk
  25877. _ACEOF
  25878. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25879. # The default lists apply if the user does not specify any file.
  25880. ac_need_defaults=:
  25881. while test $# != 0
  25882. do
  25883. case $1 in
  25884. --*=*)
  25885. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25886. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25887. ac_shift=:
  25888. ;;
  25889. *)
  25890. ac_option=$1
  25891. ac_optarg=$2
  25892. ac_shift=shift
  25893. ;;
  25894. esac
  25895. case $ac_option in
  25896. # Handling of the options.
  25897. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25898. ac_cs_recheck=: ;;
  25899. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25900. $as_echo "$ac_cs_version"; exit ;;
  25901. --debug | --debu | --deb | --de | --d | -d )
  25902. debug=: ;;
  25903. --file | --fil | --fi | --f )
  25904. $ac_shift
  25905. case $ac_optarg in
  25906. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25907. esac
  25908. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  25909. ac_need_defaults=false;;
  25910. --header | --heade | --head | --hea )
  25911. $ac_shift
  25912. case $ac_optarg in
  25913. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25914. esac
  25915. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  25916. ac_need_defaults=false;;
  25917. --he | --h)
  25918. # Conflict between --help and --header
  25919. { $as_echo "$as_me: error: ambiguous option: $1
  25920. Try \`$0 --help' for more information." >&2
  25921. { (exit 1); exit 1; }; };;
  25922. --help | --hel | -h )
  25923. $as_echo "$ac_cs_usage"; exit ;;
  25924. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25925. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25926. ac_cs_silent=: ;;
  25927. # This is an error.
  25928. -*) { $as_echo "$as_me: error: unrecognized option: $1
  25929. Try \`$0 --help' for more information." >&2
  25930. { (exit 1); exit 1; }; } ;;
  25931. *) ac_config_targets="$ac_config_targets $1"
  25932. ac_need_defaults=false ;;
  25933. esac
  25934. shift
  25935. done
  25936. ac_configure_extra_args=
  25937. if $ac_cs_silent; then
  25938. exec 6>/dev/null
  25939. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25940. fi
  25941. _ACEOF
  25942. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25943. if \$ac_cs_recheck; then
  25944. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25945. shift
  25946. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  25947. CONFIG_SHELL='$SHELL'
  25948. export CONFIG_SHELL
  25949. exec "\$@"
  25950. fi
  25951. _ACEOF
  25952. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25953. exec 5>>config.log
  25954. {
  25955. echo
  25956. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25957. ## Running $as_me. ##
  25958. _ASBOX
  25959. $as_echo "$ac_log"
  25960. } >&5
  25961. _ACEOF
  25962. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25963. #
  25964. # INIT-COMMANDS
  25965. #
  25966. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  25967. _ACEOF
  25968. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25969. # Handling of arguments.
  25970. for ac_config_target in $ac_config_targets
  25971. do
  25972. case $ac_config_target in
  25973. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  25974. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  25975. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  25976. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  25977. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  25978. { (exit 1); exit 1; }; };;
  25979. esac
  25980. done
  25981. # If the user did not use the arguments to specify the items to instantiate,
  25982. # then the envvar interface is used. Set only those that are not.
  25983. # We use the long form for the default assignment because of an extremely
  25984. # bizarre bug on SunOS 4.1.3.
  25985. if $ac_need_defaults; then
  25986. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  25987. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  25988. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  25989. fi
  25990. # Have a temporary directory for convenience. Make it in the build tree
  25991. # simply because there is no reason against having it here, and in addition,
  25992. # creating and moving files from /tmp can sometimes cause problems.
  25993. # Hook for its removal unless debugging.
  25994. # Note that there is a small window in which the directory will not be cleaned:
  25995. # after its creation but before its name has been assigned to `$tmp'.
  25996. $debug ||
  25997. {
  25998. tmp=
  25999. trap 'exit_status=$?
  26000. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  26001. ' 0
  26002. trap '{ (exit 1); exit 1; }' 1 2 13 15
  26003. }
  26004. # Create a (secure) tmp directory for tmp files.
  26005. {
  26006. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26007. test -n "$tmp" && test -d "$tmp"
  26008. } ||
  26009. {
  26010. tmp=./conf$$-$RANDOM
  26011. (umask 077 && mkdir "$tmp")
  26012. } ||
  26013. {
  26014. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  26015. { (exit 1); exit 1; }
  26016. }
  26017. # Set up the scripts for CONFIG_FILES section.
  26018. # No need to generate them if there are no CONFIG_FILES.
  26019. # This happens for instance with `./config.status config.h'.
  26020. if test -n "$CONFIG_FILES"; then
  26021. ac_cr=' '
  26022. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26023. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26024. ac_cs_awk_cr='\\r'
  26025. else
  26026. ac_cs_awk_cr=$ac_cr
  26027. fi
  26028. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  26029. _ACEOF
  26030. {
  26031. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26032. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26033. echo "_ACEOF"
  26034. } >conf$$subs.sh ||
  26035. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  26036. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  26037. { (exit 1); exit 1; }; }
  26038. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  26039. ac_delim='%!_!# '
  26040. for ac_last_try in false false false false false :; do
  26041. . ./conf$$subs.sh ||
  26042. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  26043. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  26044. { (exit 1); exit 1; }; }
  26045. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26046. if test $ac_delim_n = $ac_delim_num; then
  26047. break
  26048. elif $ac_last_try; then
  26049. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  26050. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  26051. { (exit 1); exit 1; }; }
  26052. else
  26053. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26054. fi
  26055. done
  26056. rm -f conf$$subs.sh
  26057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26058. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  26059. _ACEOF
  26060. sed -n '
  26061. h
  26062. s/^/S["/; s/!.*/"]=/
  26063. p
  26064. g
  26065. s/^[^!]*!//
  26066. :repl
  26067. t repl
  26068. s/'"$ac_delim"'$//
  26069. t delim
  26070. :nl
  26071. h
  26072. s/\(.\{148\}\).*/\1/
  26073. t more1
  26074. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26075. p
  26076. n
  26077. b repl
  26078. :more1
  26079. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26080. p
  26081. g
  26082. s/.\{148\}//
  26083. t nl
  26084. :delim
  26085. h
  26086. s/\(.\{148\}\).*/\1/
  26087. t more2
  26088. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26089. p
  26090. b
  26091. :more2
  26092. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26093. p
  26094. g
  26095. s/.\{148\}//
  26096. t delim
  26097. ' <conf$$subs.awk | sed '
  26098. /^[^""]/{
  26099. N
  26100. s/\n//
  26101. }
  26102. ' >>$CONFIG_STATUS || ac_write_fail=1
  26103. rm -f conf$$subs.awk
  26104. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26105. _ACAWK
  26106. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  26107. for (key in S) S_is_set[key] = 1
  26108. FS = ""
  26109. }
  26110. {
  26111. line = $ 0
  26112. nfields = split(line, field, "@")
  26113. substed = 0
  26114. len = length(field[1])
  26115. for (i = 2; i < nfields; i++) {
  26116. key = field[i]
  26117. keylen = length(key)
  26118. if (S_is_set[key]) {
  26119. value = S[key]
  26120. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26121. len += length(value) + length(field[++i])
  26122. substed = 1
  26123. } else
  26124. len += 1 + keylen
  26125. }
  26126. print line
  26127. }
  26128. _ACAWK
  26129. _ACEOF
  26130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26131. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26132. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26133. else
  26134. cat
  26135. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  26136. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  26137. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  26138. { (exit 1); exit 1; }; }
  26139. _ACEOF
  26140. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  26141. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  26142. # trailing colons and then remove the whole line if VPATH becomes empty
  26143. # (actually we leave an empty line to preserve line numbers).
  26144. if test "x$srcdir" = x.; then
  26145. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  26146. s/:*\$(srcdir):*/:/
  26147. s/:*\${srcdir}:*/:/
  26148. s/:*@srcdir@:*/:/
  26149. s/^\([^=]*=[ ]*\):*/\1/
  26150. s/:*$//
  26151. s/^[^=]*=[ ]*$//
  26152. }'
  26153. fi
  26154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26155. fi # test -n "$CONFIG_FILES"
  26156. # Set up the scripts for CONFIG_HEADERS section.
  26157. # No need to generate them if there are no CONFIG_HEADERS.
  26158. # This happens for instance with `./config.status Makefile'.
  26159. if test -n "$CONFIG_HEADERS"; then
  26160. cat >"$tmp/defines.awk" <<\_ACAWK ||
  26161. BEGIN {
  26162. _ACEOF
  26163. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26164. # here-document in config.status, that substitutes the proper values into
  26165. # config.h.in to produce config.h.
  26166. # Create a delimiter string that does not exist in confdefs.h, to ease
  26167. # handling of long lines.
  26168. ac_delim='%!_!# '
  26169. for ac_last_try in false false :; do
  26170. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  26171. if test -z "$ac_t"; then
  26172. break
  26173. elif $ac_last_try; then
  26174. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  26175. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  26176. { (exit 1); exit 1; }; }
  26177. else
  26178. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26179. fi
  26180. done
  26181. # For the awk script, D is an array of macro values keyed by name,
  26182. # likewise P contains macro parameters if any. Preserve backslash
  26183. # newline sequences.
  26184. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26185. sed -n '
  26186. s/.\{148\}/&'"$ac_delim"'/g
  26187. t rset
  26188. :rset
  26189. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26190. t def
  26191. d
  26192. :def
  26193. s/\\$//
  26194. t bsnl
  26195. s/["\\]/\\&/g
  26196. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26197. D["\1"]=" \3"/p
  26198. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26199. d
  26200. :bsnl
  26201. s/["\\]/\\&/g
  26202. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26203. D["\1"]=" \3\\\\\\n"\\/p
  26204. t cont
  26205. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26206. t cont
  26207. d
  26208. :cont
  26209. n
  26210. s/.\{148\}/&'"$ac_delim"'/g
  26211. t clear
  26212. :clear
  26213. s/\\$//
  26214. t bsnlc
  26215. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26216. d
  26217. :bsnlc
  26218. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26219. b cont
  26220. ' <confdefs.h | sed '
  26221. s/'"$ac_delim"'/"\\\
  26222. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26223. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26224. for (key in D) D_is_set[key] = 1
  26225. FS = ""
  26226. }
  26227. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26228. line = \$ 0
  26229. split(line, arg, " ")
  26230. if (arg[1] == "#") {
  26231. defundef = arg[2]
  26232. mac1 = arg[3]
  26233. } else {
  26234. defundef = substr(arg[1], 2)
  26235. mac1 = arg[2]
  26236. }
  26237. split(mac1, mac2, "(") #)
  26238. macro = mac2[1]
  26239. prefix = substr(line, 1, index(line, defundef) - 1)
  26240. if (D_is_set[macro]) {
  26241. # Preserve the white space surrounding the "#".
  26242. print prefix "define", macro P[macro] D[macro]
  26243. next
  26244. } else {
  26245. # Replace #undef with comments. This is necessary, for example,
  26246. # in the case of _POSIX_SOURCE, which is predefined and required
  26247. # on some systems where configure will not decide to define it.
  26248. if (defundef == "undef") {
  26249. print "/*", prefix defundef, macro, "*/"
  26250. next
  26251. }
  26252. }
  26253. }
  26254. { print }
  26255. _ACAWK
  26256. _ACEOF
  26257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26258. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  26259. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  26260. { (exit 1); exit 1; }; }
  26261. fi # test -n "$CONFIG_HEADERS"
  26262. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26263. shift
  26264. for ac_tag
  26265. do
  26266. case $ac_tag in
  26267. :[FHLC]) ac_mode=$ac_tag; continue;;
  26268. esac
  26269. case $ac_mode$ac_tag in
  26270. :[FHL]*:*);;
  26271. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  26272. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  26273. { (exit 1); exit 1; }; };;
  26274. :[FH]-) ac_tag=-:-;;
  26275. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26276. esac
  26277. ac_save_IFS=$IFS
  26278. IFS=:
  26279. set x $ac_tag
  26280. IFS=$ac_save_IFS
  26281. shift
  26282. ac_file=$1
  26283. shift
  26284. case $ac_mode in
  26285. :L) ac_source=$1;;
  26286. :[FH])
  26287. ac_file_inputs=
  26288. for ac_f
  26289. do
  26290. case $ac_f in
  26291. -) ac_f="$tmp/stdin";;
  26292. *) # Look for the file first in the build tree, then in the source tree
  26293. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26294. # because $ac_f cannot contain `:'.
  26295. test -f "$ac_f" ||
  26296. case $ac_f in
  26297. [\\/$]*) false;;
  26298. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26299. esac ||
  26300. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  26301. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  26302. { (exit 1); exit 1; }; };;
  26303. esac
  26304. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26305. ac_file_inputs="$ac_file_inputs '$ac_f'"
  26306. done
  26307. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26308. # use $as_me), people would be surprised to read:
  26309. # /* config.h. Generated by config.status. */
  26310. configure_input='Generated from '`
  26311. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26312. `' by configure.'
  26313. if test x"$ac_file" != x-; then
  26314. configure_input="$ac_file. $configure_input"
  26315. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  26316. $as_echo "$as_me: creating $ac_file" >&6;}
  26317. fi
  26318. # Neutralize special characters interpreted by sed in replacement strings.
  26319. case $configure_input in #(
  26320. *\&* | *\|* | *\\* )
  26321. ac_sed_conf_input=`$as_echo "$configure_input" |
  26322. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26323. *) ac_sed_conf_input=$configure_input;;
  26324. esac
  26325. case $ac_tag in
  26326. *:-:* | *:-) cat >"$tmp/stdin" \
  26327. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  26328. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  26329. { (exit 1); exit 1; }; } ;;
  26330. esac
  26331. ;;
  26332. esac
  26333. ac_dir=`$as_dirname -- "$ac_file" ||
  26334. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26335. X"$ac_file" : 'X\(//\)[^/]' \| \
  26336. X"$ac_file" : 'X\(//\)$' \| \
  26337. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26338. $as_echo X"$ac_file" |
  26339. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26340. s//\1/
  26341. q
  26342. }
  26343. /^X\(\/\/\)[^/].*/{
  26344. s//\1/
  26345. q
  26346. }
  26347. /^X\(\/\/\)$/{
  26348. s//\1/
  26349. q
  26350. }
  26351. /^X\(\/\).*/{
  26352. s//\1/
  26353. q
  26354. }
  26355. s/.*/./; q'`
  26356. { as_dir="$ac_dir"
  26357. case $as_dir in #(
  26358. -*) as_dir=./$as_dir;;
  26359. esac
  26360. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  26361. as_dirs=
  26362. while :; do
  26363. case $as_dir in #(
  26364. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26365. *) as_qdir=$as_dir;;
  26366. esac
  26367. as_dirs="'$as_qdir' $as_dirs"
  26368. as_dir=`$as_dirname -- "$as_dir" ||
  26369. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26370. X"$as_dir" : 'X\(//\)[^/]' \| \
  26371. X"$as_dir" : 'X\(//\)$' \| \
  26372. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26373. $as_echo X"$as_dir" |
  26374. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26375. s//\1/
  26376. q
  26377. }
  26378. /^X\(\/\/\)[^/].*/{
  26379. s//\1/
  26380. q
  26381. }
  26382. /^X\(\/\/\)$/{
  26383. s//\1/
  26384. q
  26385. }
  26386. /^X\(\/\).*/{
  26387. s//\1/
  26388. q
  26389. }
  26390. s/.*/./; q'`
  26391. test -d "$as_dir" && break
  26392. done
  26393. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26394. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  26395. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  26396. { (exit 1); exit 1; }; }; }
  26397. ac_builddir=.
  26398. case "$ac_dir" in
  26399. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26400. *)
  26401. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  26402. # A ".." for each directory in $ac_dir_suffix.
  26403. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26404. case $ac_top_builddir_sub in
  26405. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26406. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26407. esac ;;
  26408. esac
  26409. ac_abs_top_builddir=$ac_pwd
  26410. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26411. # for backward compatibility:
  26412. ac_top_builddir=$ac_top_build_prefix
  26413. case $srcdir in
  26414. .) # We are building in place.
  26415. ac_srcdir=.
  26416. ac_top_srcdir=$ac_top_builddir_sub
  26417. ac_abs_top_srcdir=$ac_pwd ;;
  26418. [\\/]* | ?:[\\/]* ) # Absolute name.
  26419. ac_srcdir=$srcdir$ac_dir_suffix;
  26420. ac_top_srcdir=$srcdir
  26421. ac_abs_top_srcdir=$srcdir ;;
  26422. *) # Relative name.
  26423. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26424. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26425. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26426. esac
  26427. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26428. case $ac_mode in
  26429. :F)
  26430. #
  26431. # CONFIG_FILE
  26432. #
  26433. case $INSTALL in
  26434. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26435. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26436. esac
  26437. ac_MKDIR_P=$MKDIR_P
  26438. case $MKDIR_P in
  26439. [\\/$]* | ?:[\\/]* ) ;;
  26440. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  26441. esac
  26442. _ACEOF
  26443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26444. # If the template does not know about datarootdir, expand it.
  26445. # FIXME: This hack should be removed a few years after 2.60.
  26446. ac_datarootdir_hack=; ac_datarootdir_seen=
  26447. ac_sed_dataroot='
  26448. /datarootdir/ {
  26449. p
  26450. q
  26451. }
  26452. /@datadir@/p
  26453. /@docdir@/p
  26454. /@infodir@/p
  26455. /@localedir@/p
  26456. /@mandir@/p
  26457. '
  26458. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26459. *datarootdir*) ac_datarootdir_seen=yes;;
  26460. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26461. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26462. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26463. _ACEOF
  26464. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26465. ac_datarootdir_hack='
  26466. s&@datadir@&$datadir&g
  26467. s&@docdir@&$docdir&g
  26468. s&@infodir@&$infodir&g
  26469. s&@localedir@&$localedir&g
  26470. s&@mandir@&$mandir&g
  26471. s&\\\${datarootdir}&$datarootdir&g' ;;
  26472. esac
  26473. _ACEOF
  26474. # Neutralize VPATH when `$srcdir' = `.'.
  26475. # Shell code in configure.ac might set extrasub.
  26476. # FIXME: do we really want to maintain this feature?
  26477. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26478. ac_sed_extra="$ac_vpsub
  26479. $extrasub
  26480. _ACEOF
  26481. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26482. :t
  26483. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26484. s|@configure_input@|$ac_sed_conf_input|;t t
  26485. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26486. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26487. s&@srcdir@&$ac_srcdir&;t t
  26488. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26489. s&@top_srcdir@&$ac_top_srcdir&;t t
  26490. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26491. s&@builddir@&$ac_builddir&;t t
  26492. s&@abs_builddir@&$ac_abs_builddir&;t t
  26493. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26494. s&@INSTALL@&$ac_INSTALL&;t t
  26495. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  26496. $ac_datarootdir_hack
  26497. "
  26498. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  26499. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  26500. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  26501. { (exit 1); exit 1; }; }
  26502. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26503. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  26504. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  26505. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26506. which seems to be undefined. Please make sure it is defined." >&5
  26507. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26508. which seems to be undefined. Please make sure it is defined." >&2;}
  26509. rm -f "$tmp/stdin"
  26510. case $ac_file in
  26511. -) cat "$tmp/out" && rm -f "$tmp/out";;
  26512. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  26513. esac \
  26514. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  26515. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  26516. { (exit 1); exit 1; }; }
  26517. ;;
  26518. :H)
  26519. #
  26520. # CONFIG_HEADER
  26521. #
  26522. if test x"$ac_file" != x-; then
  26523. {
  26524. $as_echo "/* $configure_input */" \
  26525. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  26526. } >"$tmp/config.h" \
  26527. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  26528. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  26529. { (exit 1); exit 1; }; }
  26530. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  26531. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  26532. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  26533. else
  26534. rm -f "$ac_file"
  26535. mv "$tmp/config.h" "$ac_file" \
  26536. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  26537. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  26538. { (exit 1); exit 1; }; }
  26539. fi
  26540. else
  26541. $as_echo "/* $configure_input */" \
  26542. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  26543. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  26544. $as_echo "$as_me: error: could not create -" >&2;}
  26545. { (exit 1); exit 1; }; }
  26546. fi
  26547. # Compute "$ac_file"'s index in $config_headers.
  26548. _am_arg="$ac_file"
  26549. _am_stamp_count=1
  26550. for _am_header in $config_headers :; do
  26551. case $_am_header in
  26552. $_am_arg | $_am_arg:* )
  26553. break ;;
  26554. * )
  26555. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  26556. esac
  26557. done
  26558. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  26559. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26560. X"$_am_arg" : 'X\(//\)[^/]' \| \
  26561. X"$_am_arg" : 'X\(//\)$' \| \
  26562. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  26563. $as_echo X"$_am_arg" |
  26564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26565. s//\1/
  26566. q
  26567. }
  26568. /^X\(\/\/\)[^/].*/{
  26569. s//\1/
  26570. q
  26571. }
  26572. /^X\(\/\/\)$/{
  26573. s//\1/
  26574. q
  26575. }
  26576. /^X\(\/\).*/{
  26577. s//\1/
  26578. q
  26579. }
  26580. s/.*/./; q'`/stamp-h$_am_stamp_count
  26581. ;;
  26582. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  26583. $as_echo "$as_me: executing $ac_file commands" >&6;}
  26584. ;;
  26585. esac
  26586. case $ac_file$ac_mode in
  26587. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  26588. # Strip MF so we end up with the name of the file.
  26589. mf=`echo "$mf" | sed -e 's/:.*$//'`
  26590. # Check whether this is an Automake generated Makefile or not.
  26591. # We used to match only the files named `Makefile.in', but
  26592. # some people rename them; so instead we look at the file content.
  26593. # Grep'ing the first line is not enough: some people post-process
  26594. # each Makefile.in and add a new line on top of each file to say so.
  26595. # Grep'ing the whole file is not good either: AIX grep has a line
  26596. # limit of 2048, but all sed's we know have understand at least 4000.
  26597. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  26598. dirpart=`$as_dirname -- "$mf" ||
  26599. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26600. X"$mf" : 'X\(//\)[^/]' \| \
  26601. X"$mf" : 'X\(//\)$' \| \
  26602. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  26603. $as_echo X"$mf" |
  26604. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26605. s//\1/
  26606. q
  26607. }
  26608. /^X\(\/\/\)[^/].*/{
  26609. s//\1/
  26610. q
  26611. }
  26612. /^X\(\/\/\)$/{
  26613. s//\1/
  26614. q
  26615. }
  26616. /^X\(\/\).*/{
  26617. s//\1/
  26618. q
  26619. }
  26620. s/.*/./; q'`
  26621. else
  26622. continue
  26623. fi
  26624. # Extract the definition of DEPDIR, am__include, and am__quote
  26625. # from the Makefile without running `make'.
  26626. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  26627. test -z "$DEPDIR" && continue
  26628. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  26629. test -z "am__include" && continue
  26630. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  26631. # When using ansi2knr, U may be empty or an underscore; expand it
  26632. U=`sed -n 's/^U = //p' < "$mf"`
  26633. # Find all dependency output files, they are included files with
  26634. # $(DEPDIR) in their names. We invoke sed twice because it is the
  26635. # simplest approach to changing $(DEPDIR) to its actual value in the
  26636. # expansion.
  26637. for file in `sed -n "
  26638. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  26639. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  26640. # Make sure the directory exists.
  26641. test -f "$dirpart/$file" && continue
  26642. fdir=`$as_dirname -- "$file" ||
  26643. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26644. X"$file" : 'X\(//\)[^/]' \| \
  26645. X"$file" : 'X\(//\)$' \| \
  26646. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  26647. $as_echo X"$file" |
  26648. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26649. s//\1/
  26650. q
  26651. }
  26652. /^X\(\/\/\)[^/].*/{
  26653. s//\1/
  26654. q
  26655. }
  26656. /^X\(\/\/\)$/{
  26657. s//\1/
  26658. q
  26659. }
  26660. /^X\(\/\).*/{
  26661. s//\1/
  26662. q
  26663. }
  26664. s/.*/./; q'`
  26665. { as_dir=$dirpart/$fdir
  26666. case $as_dir in #(
  26667. -*) as_dir=./$as_dir;;
  26668. esac
  26669. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  26670. as_dirs=
  26671. while :; do
  26672. case $as_dir in #(
  26673. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26674. *) as_qdir=$as_dir;;
  26675. esac
  26676. as_dirs="'$as_qdir' $as_dirs"
  26677. as_dir=`$as_dirname -- "$as_dir" ||
  26678. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26679. X"$as_dir" : 'X\(//\)[^/]' \| \
  26680. X"$as_dir" : 'X\(//\)$' \| \
  26681. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26682. $as_echo X"$as_dir" |
  26683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26684. s//\1/
  26685. q
  26686. }
  26687. /^X\(\/\/\)[^/].*/{
  26688. s//\1/
  26689. q
  26690. }
  26691. /^X\(\/\/\)$/{
  26692. s//\1/
  26693. q
  26694. }
  26695. /^X\(\/\).*/{
  26696. s//\1/
  26697. q
  26698. }
  26699. s/.*/./; q'`
  26700. test -d "$as_dir" && break
  26701. done
  26702. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26703. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  26704. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  26705. { (exit 1); exit 1; }; }; }
  26706. # echo "creating $dirpart/$file"
  26707. echo '# dummy' > "$dirpart/$file"
  26708. done
  26709. done
  26710. ;;
  26711. esac
  26712. done # for ac_tag
  26713. { (exit 0); exit 0; }
  26714. _ACEOF
  26715. chmod +x $CONFIG_STATUS
  26716. ac_clean_files=$ac_clean_files_save
  26717. test $ac_write_fail = 0 ||
  26718. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  26719. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  26720. { (exit 1); exit 1; }; }
  26721. # configure is writing to config.log, and then calls config.status.
  26722. # config.status does its own redirection, appending to config.log.
  26723. # Unfortunately, on DOS this fails, as config.log is still kept open
  26724. # by configure, so config.status won't be able to write to it; its
  26725. # output is simply discarded. So we exec the FD to /dev/null,
  26726. # effectively closing config.log, so it can be properly (re)opened and
  26727. # appended to by config.status. When coming back to configure, we
  26728. # need to make the FD available again.
  26729. if test "$no_create" != yes; then
  26730. ac_cs_success=:
  26731. ac_config_status_args=
  26732. test "$silent" = yes &&
  26733. ac_config_status_args="$ac_config_status_args --quiet"
  26734. exec 5>/dev/null
  26735. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  26736. exec 5>>config.log
  26737. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  26738. # would make configure fail if this is the last instruction.
  26739. $ac_cs_success || { (exit 1); exit 1; }
  26740. fi
  26741. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  26742. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  26743. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  26744. fi