configure 710 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: http://bugzilla.redhat.com/ about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='dirsrv'
  542. PACKAGE_TARNAME='dirsrv'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='dirsrv 1.0'
  545. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_default_prefix=/opt/$PACKAGE_NAME
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. vendor
  588. capbrand
  589. brand
  590. localrundir
  591. pcre_libdir
  592. pcre_lib
  593. pcre_inc
  594. netsnmp_link
  595. netsnmp_libdir
  596. netsnmp_lib
  597. netsnmp_inc
  598. icu_bin
  599. icu_inc
  600. icu_lib
  601. svrcore_lib
  602. svrcore_inc
  603. sasl_path
  604. sasl_libdir
  605. sasl_lib
  606. sasl_inc
  607. db_libver
  608. db_bindir
  609. db_libdir
  610. db_lib
  611. db_incdir
  612. db_inc
  613. ol_libver
  614. plainldif_opts
  615. ldaptool_opts
  616. ldaptool_bindir
  617. openldap_bindir
  618. openldap_libdir
  619. openldap_lib
  620. openldap_inc
  621. ldapsdk_bindir
  622. ldapsdk_libdir
  623. ldapsdk_lib
  624. ldapsdk_inc
  625. nss_libdir
  626. nss_lib
  627. nss_inc
  628. nspr_libdir
  629. nspr_lib
  630. nspr_inc
  631. SPARC_FALSE
  632. SPARC_TRUE
  633. OPENLDAP_FALSE
  634. OPENLDAP_TRUE
  635. SELINUX_FALSE
  636. SELINUX_TRUE
  637. PACKAGE_BASE_VERSION
  638. with_selinux
  639. kerberos_libdir
  640. kerberos_lib
  641. kerberos_inc
  642. KRB5_CONFIG_BIN
  643. NETSNMP_CONFIG
  644. ICU_CONFIG
  645. ldap_lib_ldif
  646. SYSTEMD_FALSE
  647. SYSTEMD_TRUE
  648. SOLARIS_FALSE
  649. SOLARIS_TRUE
  650. HPUX_FALSE
  651. HPUX_TRUE
  652. initconfigdir
  653. sttyexec
  654. perlexec
  655. initdir
  656. LIBCRUN
  657. LIBCSTD
  658. LIBDL
  659. LIBNSL
  660. LIBSOCKET
  661. LIBCRYPT
  662. THREADLIB
  663. WINNT_FALSE
  664. WINNT_TRUE
  665. instconfigdir
  666. defaultgroup
  667. defaultuser
  668. updatedir
  669. mibdir
  670. infdir
  671. perldir
  672. scripttemplatedir
  673. serverplugindir
  674. serverincdir
  675. serverdir
  676. schemadir
  677. propertydir
  678. sampledatadir
  679. configdir
  680. with_systemdgroupname
  681. with_systemdsystemconfdir
  682. with_systemdsystemunitdir
  683. PKG_CONFIG_LIBDIR
  684. PKG_CONFIG_PATH
  685. PKG_CONFIG
  686. with_tmpfiles_d
  687. with_fhs_opt
  688. enable_posix_winsync_FALSE
  689. enable_posix_winsync_TRUE
  690. enable_acctpolicy_FALSE
  691. enable_acctpolicy_TRUE
  692. enable_presence_FALSE
  693. enable_presence_TRUE
  694. enable_bitwise_FALSE
  695. enable_bitwise_TRUE
  696. enable_auto_dn_suffix_FALSE
  697. enable_auto_dn_suffix_TRUE
  698. enable_autobind_FALSE
  699. enable_autobind_TRUE
  700. enable_ldapi_FALSE
  701. enable_ldapi_TRUE
  702. enable_dna_FALSE
  703. enable_dna_TRUE
  704. enable_pam_passthru_FALSE
  705. enable_pam_passthru_TRUE
  706. BUNDLE_FALSE
  707. BUNDLE_TRUE
  708. debug_defs
  709. LIBOBJS
  710. CXXCPP
  711. CPP
  712. OTOOL64
  713. OTOOL
  714. LIPO
  715. NMEDIT
  716. DSYMUTIL
  717. MANIFEST_TOOL
  718. RANLIB
  719. ac_ct_AR
  720. AR
  721. DLLTOOL
  722. OBJDUMP
  723. LN_S
  724. NM
  725. ac_ct_DUMPBIN
  726. DUMPBIN
  727. LD
  728. FGREP
  729. EGREP
  730. GREP
  731. SED
  732. LIBTOOL
  733. am__fastdepCCAS_FALSE
  734. am__fastdepCCAS_TRUE
  735. CCASDEPMODE
  736. CCASFLAGS
  737. CCAS
  738. am__fastdepCC_FALSE
  739. am__fastdepCC_TRUE
  740. CCDEPMODE
  741. ac_ct_CC
  742. CFLAGS
  743. CC
  744. am__fastdepCXX_FALSE
  745. am__fastdepCXX_TRUE
  746. CXXDEPMODE
  747. am__nodep
  748. AMDEPBACKSLASH
  749. AMDEP_FALSE
  750. AMDEP_TRUE
  751. am__quote
  752. am__include
  753. DEPDIR
  754. OBJEXT
  755. EXEEXT
  756. ac_ct_CXX
  757. CPPFLAGS
  758. LDFLAGS
  759. CXXFLAGS
  760. CXX
  761. host_os
  762. host_vendor
  763. host_cpu
  764. host
  765. build_os
  766. build_vendor
  767. build_cpu
  768. build
  769. MAINT
  770. MAINTAINER_MODE_FALSE
  771. MAINTAINER_MODE_TRUE
  772. CONSOLE_VERSION
  773. am__untar
  774. am__tar
  775. AMTAR
  776. am__leading_dot
  777. SET_MAKE
  778. AWK
  779. mkdir_p
  780. MKDIR_P
  781. INSTALL_STRIP_PROGRAM
  782. STRIP
  783. install_sh
  784. MAKEINFO
  785. AUTOHEADER
  786. AUTOMAKE
  787. AUTOCONF
  788. ACLOCAL
  789. VERSION
  790. PACKAGE
  791. CYGPATH_W
  792. am__isrc
  793. INSTALL_DATA
  794. INSTALL_SCRIPT
  795. INSTALL_PROGRAM
  796. target_alias
  797. host_alias
  798. build_alias
  799. LIBS
  800. ECHO_T
  801. ECHO_N
  802. ECHO_C
  803. DEFS
  804. mandir
  805. localedir
  806. libdir
  807. psdir
  808. pdfdir
  809. dvidir
  810. htmldir
  811. infodir
  812. docdir
  813. oldincludedir
  814. includedir
  815. localstatedir
  816. sharedstatedir
  817. sysconfdir
  818. datadir
  819. datarootdir
  820. libexecdir
  821. sbindir
  822. bindir
  823. program_transform_name
  824. prefix
  825. exec_prefix
  826. PACKAGE_URL
  827. PACKAGE_BUGREPORT
  828. PACKAGE_STRING
  829. PACKAGE_VERSION
  830. PACKAGE_TARNAME
  831. PACKAGE_NAME
  832. PATH_SEPARATOR
  833. SHELL'
  834. ac_subst_files=''
  835. ac_user_opts='
  836. enable_option_checking
  837. enable_maintainer_mode
  838. enable_dependency_tracking
  839. enable_static
  840. enable_shared
  841. with_pic
  842. enable_fast_install
  843. with_gnu_ld
  844. with_sysroot
  845. enable_libtool_lock
  846. enable_debug
  847. enable_bundle
  848. enable_pam_passthru
  849. enable_dna
  850. enable_ldapi
  851. enable_autobind
  852. enable_bitwise
  853. enable_presence
  854. enable_acctpolicy
  855. enable_posix_winsync
  856. with_fhs
  857. with_fhs_opt
  858. with_tmpfiles_d
  859. with_systemdsystemunitdir
  860. with_systemdsystemconfdir
  861. with_systemdgroupname
  862. with_instconfigdir
  863. with_initddir
  864. with_nspr
  865. with_nspr_inc
  866. with_nspr_lib
  867. with_nss
  868. with_nss_inc
  869. with_nss_lib
  870. with_openldap
  871. with_openldap_inc
  872. with_openldap_lib
  873. with_openldap_bin
  874. with_ldapsdk
  875. with_ldapsdk_inc
  876. with_ldapsdk_lib
  877. with_ldapsdk_bin
  878. with_db
  879. with_db_inc
  880. with_db_lib
  881. with_sasl
  882. with_sasl_inc
  883. with_sasl_lib
  884. with_svrcore
  885. with_svrcore_inc
  886. with_svrcore_lib
  887. with_icu
  888. with_icu_inc
  889. with_icu_lib
  890. with_icu_bin
  891. with_netsnmp
  892. with_netsnmp_inc
  893. with_netsnmp_lib
  894. with_kerberos
  895. with_kerberos_inc
  896. with_kerberos_lib
  897. with_pcre
  898. with_selinux
  899. '
  900. ac_precious_vars='build_alias
  901. host_alias
  902. target_alias
  903. CXX
  904. CXXFLAGS
  905. LDFLAGS
  906. LIBS
  907. CPPFLAGS
  908. CCC
  909. CC
  910. CFLAGS
  911. CCAS
  912. CCASFLAGS
  913. CPP
  914. CXXCPP
  915. PKG_CONFIG
  916. PKG_CONFIG_PATH
  917. PKG_CONFIG_LIBDIR'
  918. # Initialize some variables set by options.
  919. ac_init_help=
  920. ac_init_version=false
  921. ac_unrecognized_opts=
  922. ac_unrecognized_sep=
  923. # The variables have the same names as the options, with
  924. # dashes changed to underlines.
  925. cache_file=/dev/null
  926. exec_prefix=NONE
  927. no_create=
  928. no_recursion=
  929. prefix=NONE
  930. program_prefix=NONE
  931. program_suffix=NONE
  932. program_transform_name=s,x,x,
  933. silent=
  934. site=
  935. srcdir=
  936. verbose=
  937. x_includes=NONE
  938. x_libraries=NONE
  939. # Installation directory options.
  940. # These are left unexpanded so users can "make install exec_prefix=/foo"
  941. # and all the variables that are supposed to be based on exec_prefix
  942. # by default will actually change.
  943. # Use braces instead of parens because sh, perl, etc. also accept them.
  944. # (The list follows the same order as the GNU Coding Standards.)
  945. bindir='${exec_prefix}/bin'
  946. sbindir='${exec_prefix}/sbin'
  947. libexecdir='${exec_prefix}/libexec'
  948. datarootdir='${prefix}/share'
  949. datadir='${datarootdir}'
  950. sysconfdir='${prefix}/etc'
  951. sharedstatedir='${prefix}/com'
  952. localstatedir='${prefix}/var'
  953. includedir='${prefix}/include'
  954. oldincludedir='/usr/include'
  955. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  956. infodir='${datarootdir}/info'
  957. htmldir='${docdir}'
  958. dvidir='${docdir}'
  959. pdfdir='${docdir}'
  960. psdir='${docdir}'
  961. libdir='${exec_prefix}/lib'
  962. localedir='${datarootdir}/locale'
  963. mandir='${datarootdir}/man'
  964. ac_prev=
  965. ac_dashdash=
  966. for ac_option
  967. do
  968. # If the previous option needs an argument, assign it.
  969. if test -n "$ac_prev"; then
  970. eval $ac_prev=\$ac_option
  971. ac_prev=
  972. continue
  973. fi
  974. case $ac_option in
  975. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  976. *=) ac_optarg= ;;
  977. *) ac_optarg=yes ;;
  978. esac
  979. # Accept the important Cygnus configure options, so we can diagnose typos.
  980. case $ac_dashdash$ac_option in
  981. --)
  982. ac_dashdash=yes ;;
  983. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  984. ac_prev=bindir ;;
  985. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  986. bindir=$ac_optarg ;;
  987. -build | --build | --buil | --bui | --bu)
  988. ac_prev=build_alias ;;
  989. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  990. build_alias=$ac_optarg ;;
  991. -cache-file | --cache-file | --cache-fil | --cache-fi \
  992. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  993. ac_prev=cache_file ;;
  994. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  995. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  996. cache_file=$ac_optarg ;;
  997. --config-cache | -C)
  998. cache_file=config.cache ;;
  999. -datadir | --datadir | --datadi | --datad)
  1000. ac_prev=datadir ;;
  1001. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1002. datadir=$ac_optarg ;;
  1003. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1004. | --dataroo | --dataro | --datar)
  1005. ac_prev=datarootdir ;;
  1006. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1007. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1008. datarootdir=$ac_optarg ;;
  1009. -disable-* | --disable-*)
  1010. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1011. # Reject names that are not valid shell variable names.
  1012. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1013. as_fn_error $? "invalid feature name: $ac_useropt"
  1014. ac_useropt_orig=$ac_useropt
  1015. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1016. case $ac_user_opts in
  1017. *"
  1018. "enable_$ac_useropt"
  1019. "*) ;;
  1020. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1021. ac_unrecognized_sep=', ';;
  1022. esac
  1023. eval enable_$ac_useropt=no ;;
  1024. -docdir | --docdir | --docdi | --doc | --do)
  1025. ac_prev=docdir ;;
  1026. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1027. docdir=$ac_optarg ;;
  1028. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1029. ac_prev=dvidir ;;
  1030. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1031. dvidir=$ac_optarg ;;
  1032. -enable-* | --enable-*)
  1033. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1036. as_fn_error $? "invalid feature name: $ac_useropt"
  1037. ac_useropt_orig=$ac_useropt
  1038. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1039. case $ac_user_opts in
  1040. *"
  1041. "enable_$ac_useropt"
  1042. "*) ;;
  1043. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1044. ac_unrecognized_sep=', ';;
  1045. esac
  1046. eval enable_$ac_useropt=\$ac_optarg ;;
  1047. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1048. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1049. | --exec | --exe | --ex)
  1050. ac_prev=exec_prefix ;;
  1051. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1052. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1053. | --exec=* | --exe=* | --ex=*)
  1054. exec_prefix=$ac_optarg ;;
  1055. -gas | --gas | --ga | --g)
  1056. # Obsolete; use --with-gas.
  1057. with_gas=yes ;;
  1058. -help | --help | --hel | --he | -h)
  1059. ac_init_help=long ;;
  1060. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1061. ac_init_help=recursive ;;
  1062. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1063. ac_init_help=short ;;
  1064. -host | --host | --hos | --ho)
  1065. ac_prev=host_alias ;;
  1066. -host=* | --host=* | --hos=* | --ho=*)
  1067. host_alias=$ac_optarg ;;
  1068. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1069. ac_prev=htmldir ;;
  1070. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1071. | --ht=*)
  1072. htmldir=$ac_optarg ;;
  1073. -includedir | --includedir | --includedi | --included | --include \
  1074. | --includ | --inclu | --incl | --inc)
  1075. ac_prev=includedir ;;
  1076. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1077. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1078. includedir=$ac_optarg ;;
  1079. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1080. ac_prev=infodir ;;
  1081. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1082. infodir=$ac_optarg ;;
  1083. -libdir | --libdir | --libdi | --libd)
  1084. ac_prev=libdir ;;
  1085. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1086. libdir=$ac_optarg ;;
  1087. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1088. | --libexe | --libex | --libe)
  1089. ac_prev=libexecdir ;;
  1090. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1091. | --libexe=* | --libex=* | --libe=*)
  1092. libexecdir=$ac_optarg ;;
  1093. -localedir | --localedir | --localedi | --localed | --locale)
  1094. ac_prev=localedir ;;
  1095. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1096. localedir=$ac_optarg ;;
  1097. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1098. | --localstate | --localstat | --localsta | --localst | --locals)
  1099. ac_prev=localstatedir ;;
  1100. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1101. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1102. localstatedir=$ac_optarg ;;
  1103. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1104. ac_prev=mandir ;;
  1105. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1106. mandir=$ac_optarg ;;
  1107. -nfp | --nfp | --nf)
  1108. # Obsolete; use --without-fp.
  1109. with_fp=no ;;
  1110. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1111. | --no-cr | --no-c | -n)
  1112. no_create=yes ;;
  1113. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1114. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1115. no_recursion=yes ;;
  1116. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1117. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1118. | --oldin | --oldi | --old | --ol | --o)
  1119. ac_prev=oldincludedir ;;
  1120. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1121. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1122. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1123. oldincludedir=$ac_optarg ;;
  1124. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1125. ac_prev=prefix ;;
  1126. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1127. prefix=$ac_optarg ;;
  1128. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1129. | --program-pre | --program-pr | --program-p)
  1130. ac_prev=program_prefix ;;
  1131. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1132. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1133. program_prefix=$ac_optarg ;;
  1134. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1135. | --program-suf | --program-su | --program-s)
  1136. ac_prev=program_suffix ;;
  1137. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1138. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1139. program_suffix=$ac_optarg ;;
  1140. -program-transform-name | --program-transform-name \
  1141. | --program-transform-nam | --program-transform-na \
  1142. | --program-transform-n | --program-transform- \
  1143. | --program-transform | --program-transfor \
  1144. | --program-transfo | --program-transf \
  1145. | --program-trans | --program-tran \
  1146. | --progr-tra | --program-tr | --program-t)
  1147. ac_prev=program_transform_name ;;
  1148. -program-transform-name=* | --program-transform-name=* \
  1149. | --program-transform-nam=* | --program-transform-na=* \
  1150. | --program-transform-n=* | --program-transform-=* \
  1151. | --program-transform=* | --program-transfor=* \
  1152. | --program-transfo=* | --program-transf=* \
  1153. | --program-trans=* | --program-tran=* \
  1154. | --progr-tra=* | --program-tr=* | --program-t=*)
  1155. program_transform_name=$ac_optarg ;;
  1156. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1157. ac_prev=pdfdir ;;
  1158. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1159. pdfdir=$ac_optarg ;;
  1160. -psdir | --psdir | --psdi | --psd | --ps)
  1161. ac_prev=psdir ;;
  1162. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1163. psdir=$ac_optarg ;;
  1164. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1165. | -silent | --silent | --silen | --sile | --sil)
  1166. silent=yes ;;
  1167. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1168. ac_prev=sbindir ;;
  1169. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1170. | --sbi=* | --sb=*)
  1171. sbindir=$ac_optarg ;;
  1172. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1173. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1174. | --sharedst | --shareds | --shared | --share | --shar \
  1175. | --sha | --sh)
  1176. ac_prev=sharedstatedir ;;
  1177. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1178. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1179. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1180. | --sha=* | --sh=*)
  1181. sharedstatedir=$ac_optarg ;;
  1182. -site | --site | --sit)
  1183. ac_prev=site ;;
  1184. -site=* | --site=* | --sit=*)
  1185. site=$ac_optarg ;;
  1186. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1187. ac_prev=srcdir ;;
  1188. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1189. srcdir=$ac_optarg ;;
  1190. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1191. | --syscon | --sysco | --sysc | --sys | --sy)
  1192. ac_prev=sysconfdir ;;
  1193. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1194. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1195. sysconfdir=$ac_optarg ;;
  1196. -target | --target | --targe | --targ | --tar | --ta | --t)
  1197. ac_prev=target_alias ;;
  1198. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1199. target_alias=$ac_optarg ;;
  1200. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1201. verbose=yes ;;
  1202. -version | --version | --versio | --versi | --vers | -V)
  1203. ac_init_version=: ;;
  1204. -with-* | --with-*)
  1205. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1206. # Reject names that are not valid shell variable names.
  1207. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1208. as_fn_error $? "invalid package name: $ac_useropt"
  1209. ac_useropt_orig=$ac_useropt
  1210. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1211. case $ac_user_opts in
  1212. *"
  1213. "with_$ac_useropt"
  1214. "*) ;;
  1215. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1216. ac_unrecognized_sep=', ';;
  1217. esac
  1218. eval with_$ac_useropt=\$ac_optarg ;;
  1219. -without-* | --without-*)
  1220. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1221. # Reject names that are not valid shell variable names.
  1222. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1223. as_fn_error $? "invalid package name: $ac_useropt"
  1224. ac_useropt_orig=$ac_useropt
  1225. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1226. case $ac_user_opts in
  1227. *"
  1228. "with_$ac_useropt"
  1229. "*) ;;
  1230. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1231. ac_unrecognized_sep=', ';;
  1232. esac
  1233. eval with_$ac_useropt=no ;;
  1234. --x)
  1235. # Obsolete; use --with-x.
  1236. with_x=yes ;;
  1237. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1238. | --x-incl | --x-inc | --x-in | --x-i)
  1239. ac_prev=x_includes ;;
  1240. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1241. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1242. x_includes=$ac_optarg ;;
  1243. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1244. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1245. ac_prev=x_libraries ;;
  1246. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1247. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1248. x_libraries=$ac_optarg ;;
  1249. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1250. Try \`$0 --help' for more information"
  1251. ;;
  1252. *=*)
  1253. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1254. # Reject names that are not valid shell variable names.
  1255. case $ac_envvar in #(
  1256. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1257. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1258. esac
  1259. eval $ac_envvar=\$ac_optarg
  1260. export $ac_envvar ;;
  1261. *)
  1262. # FIXME: should be removed in autoconf 3.0.
  1263. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1264. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1265. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1266. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1267. ;;
  1268. esac
  1269. done
  1270. if test -n "$ac_prev"; then
  1271. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1272. as_fn_error $? "missing argument to $ac_option"
  1273. fi
  1274. if test -n "$ac_unrecognized_opts"; then
  1275. case $enable_option_checking in
  1276. no) ;;
  1277. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1278. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1279. esac
  1280. fi
  1281. # Check all directory arguments for consistency.
  1282. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1283. datadir sysconfdir sharedstatedir localstatedir includedir \
  1284. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1285. libdir localedir mandir
  1286. do
  1287. eval ac_val=\$$ac_var
  1288. # Remove trailing slashes.
  1289. case $ac_val in
  1290. */ )
  1291. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1292. eval $ac_var=\$ac_val;;
  1293. esac
  1294. # Be sure to have absolute directory names.
  1295. case $ac_val in
  1296. [\\/$]* | ?:[\\/]* ) continue;;
  1297. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1298. esac
  1299. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1300. done
  1301. # There might be people who depend on the old broken behavior: `$host'
  1302. # used to hold the argument of --host etc.
  1303. # FIXME: To remove some day.
  1304. build=$build_alias
  1305. host=$host_alias
  1306. target=$target_alias
  1307. # FIXME: To remove some day.
  1308. if test "x$host_alias" != x; then
  1309. if test "x$build_alias" = x; then
  1310. cross_compiling=maybe
  1311. elif test "x$build_alias" != "x$host_alias"; then
  1312. cross_compiling=yes
  1313. fi
  1314. fi
  1315. ac_tool_prefix=
  1316. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1317. test "$silent" = yes && exec 6>/dev/null
  1318. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1319. ac_ls_di=`ls -di .` &&
  1320. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1321. as_fn_error $? "working directory cannot be determined"
  1322. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1323. as_fn_error $? "pwd does not report name of working directory"
  1324. # Find the source files, if location was not specified.
  1325. if test -z "$srcdir"; then
  1326. ac_srcdir_defaulted=yes
  1327. # Try the directory containing this script, then the parent directory.
  1328. ac_confdir=`$as_dirname -- "$as_myself" ||
  1329. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1330. X"$as_myself" : 'X\(//\)[^/]' \| \
  1331. X"$as_myself" : 'X\(//\)$' \| \
  1332. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1333. $as_echo X"$as_myself" |
  1334. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1335. s//\1/
  1336. q
  1337. }
  1338. /^X\(\/\/\)[^/].*/{
  1339. s//\1/
  1340. q
  1341. }
  1342. /^X\(\/\/\)$/{
  1343. s//\1/
  1344. q
  1345. }
  1346. /^X\(\/\).*/{
  1347. s//\1/
  1348. q
  1349. }
  1350. s/.*/./; q'`
  1351. srcdir=$ac_confdir
  1352. if test ! -r "$srcdir/$ac_unique_file"; then
  1353. srcdir=..
  1354. fi
  1355. else
  1356. ac_srcdir_defaulted=no
  1357. fi
  1358. if test ! -r "$srcdir/$ac_unique_file"; then
  1359. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1360. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1361. fi
  1362. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1363. ac_abs_confdir=`(
  1364. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1365. pwd)`
  1366. # When building in place, set srcdir=.
  1367. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1368. srcdir=.
  1369. fi
  1370. # Remove unnecessary trailing slashes from srcdir.
  1371. # Double slashes in file names in object file debugging info
  1372. # mess up M-x gdb in Emacs.
  1373. case $srcdir in
  1374. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1375. esac
  1376. for ac_var in $ac_precious_vars; do
  1377. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1378. eval ac_env_${ac_var}_value=\$${ac_var}
  1379. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1380. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1381. done
  1382. #
  1383. # Report the --help message.
  1384. #
  1385. if test "$ac_init_help" = "long"; then
  1386. # Omit some internal or obsolete options to make the list less imposing.
  1387. # This message is too long to be a string in the A/UX 3.1 sh.
  1388. cat <<_ACEOF
  1389. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1390. Usage: $0 [OPTION]... [VAR=VALUE]...
  1391. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1392. VAR=VALUE. See below for descriptions of some of the useful variables.
  1393. Defaults for the options are specified in brackets.
  1394. Configuration:
  1395. -h, --help display this help and exit
  1396. --help=short display options specific to this package
  1397. --help=recursive display the short help of all the included packages
  1398. -V, --version display version information and exit
  1399. -q, --quiet, --silent do not print \`checking ...' messages
  1400. --cache-file=FILE cache test results in FILE [disabled]
  1401. -C, --config-cache alias for \`--cache-file=config.cache'
  1402. -n, --no-create do not create output files
  1403. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1404. Installation directories:
  1405. --prefix=PREFIX install architecture-independent files in PREFIX
  1406. [$ac_default_prefix]
  1407. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1408. [PREFIX]
  1409. By default, \`make install' will install all the files in
  1410. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1411. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1412. for instance \`--prefix=\$HOME'.
  1413. For better control, use the options below.
  1414. Fine tuning of the installation directories:
  1415. --bindir=DIR user executables [EPREFIX/bin]
  1416. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1417. --libexecdir=DIR program executables [EPREFIX/libexec]
  1418. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1419. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1420. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1421. --libdir=DIR object code libraries [EPREFIX/lib]
  1422. --includedir=DIR C header files [PREFIX/include]
  1423. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1424. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1425. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1426. --infodir=DIR info documentation [DATAROOTDIR/info]
  1427. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1428. --mandir=DIR man documentation [DATAROOTDIR/man]
  1429. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1430. --htmldir=DIR html documentation [DOCDIR]
  1431. --dvidir=DIR dvi documentation [DOCDIR]
  1432. --pdfdir=DIR pdf documentation [DOCDIR]
  1433. --psdir=DIR ps documentation [DOCDIR]
  1434. _ACEOF
  1435. cat <<\_ACEOF
  1436. Program names:
  1437. --program-prefix=PREFIX prepend PREFIX to installed program names
  1438. --program-suffix=SUFFIX append SUFFIX to installed program names
  1439. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1440. System types:
  1441. --build=BUILD configure for building on BUILD [guessed]
  1442. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1443. _ACEOF
  1444. fi
  1445. if test -n "$ac_init_help"; then
  1446. case $ac_init_help in
  1447. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1448. esac
  1449. cat <<\_ACEOF
  1450. Optional Features:
  1451. --disable-option-checking ignore unrecognized --enable/--with options
  1452. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1453. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1454. --enable-maintainer-mode
  1455. enable make rules and dependencies not useful (and
  1456. sometimes confusing) to the casual installer
  1457. --enable-dependency-tracking
  1458. do not reject slow dependency extractors
  1459. --disable-dependency-tracking
  1460. speeds up one-time build
  1461. --enable-static[=PKGS] build static libraries [default=no]
  1462. --enable-shared[=PKGS] build shared libraries [default=yes]
  1463. --enable-fast-install[=PKGS]
  1464. optimize for fast installation [default=yes]
  1465. --disable-libtool-lock avoid locking (might break parallel builds)
  1466. --enable-debug Enable debug features (default: no)
  1467. --enable-bundle Enable bundled dependencies (default: no)
  1468. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1469. yes)
  1470. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1471. plugin (default: yes)
  1472. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1473. (default: yes)
  1474. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1475. support (default: no)
  1476. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1477. domain socket (LDAPI) support (default: no)
  1478. --enable-bitwise enable the bitwise matching rule plugin (default:
  1479. yes)
  1480. --enable-presence enable the presence plugin (default: no)
  1481. --enable-acctpolicy enable the account policy plugin (default: yes)
  1482. --enable-posix-winsync enable support for POSIX user/group attributes in
  1483. winsync (default: yes)
  1484. Optional Packages:
  1485. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1486. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1487. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1488. both]
  1489. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1490. --with-sysroot=DIR Search for dependent libraries within DIR
  1491. (or the compiler's sysroot if not specified).
  1492. --with-fhs Use FHS layout
  1493. --with-fhs-opt Use FHS optional layout
  1494. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1495. (default: $with_tmpfiles_d)
  1496. --with-systemdsystemunitdir=PATH
  1497. Directory for systemd service files (default:
  1498. $with_systemdsystemunitdir)
  1499. --with-systemdsystemconfdir=PATH
  1500. Directory for systemd service files (default:
  1501. $with_systemdsystemconfdir)
  1502. --with-systemdgroupname=NAME
  1503. Name of group target for all instances (default:
  1504. $with_systemdgroupname)
  1505. --with-instconfigdir=/path
  1506. Base directory for instance specific writable
  1507. configuration directories (default
  1508. $sysconfdir/$PACKAGE_NAME)
  1509. --with-initddir=/path Absolute path (not relative like some of the other
  1510. options) that should contain the SysV init scripts
  1511. (default '$(sysconfdir)/rc.d')
  1512. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1513. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1514. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1515. --with-nss[=PATH] Network Security Services (NSS) directory
  1516. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1517. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1518. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1519. --with-openldap-inc=PATH
  1520. OpenLDAP SDK include directory
  1521. --with-openldap-lib=PATH
  1522. OpenLDAP SDK library directory
  1523. --with-openldap-bin=PATH
  1524. OpenLDAP SDK binary directory
  1525. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1526. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1527. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1528. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1529. --with-db[=PATH] Berkeley DB directory
  1530. --with-db-inc=PATH Berkeley DB include file directory
  1531. --with-db-lib=PATH Berkeley DB library directory
  1532. --with-sasl[=PATH] Use SASL from supplied path
  1533. --with-sasl-inc=PATH SASL include file directory
  1534. --with-sasl-lib=PATH SASL library directory
  1535. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1536. SVRCORE
  1537. --with-svrcore-inc=PATH SVRCORE include file directory
  1538. --with-svrcore-lib=PATH SVRCORE library directory
  1539. --with-icu[=PATH] ICU directory
  1540. --with-icu-inc=PATH ICU include directory
  1541. --with-icu-lib=PATH ICU library directory
  1542. --with-icu-bin=PATH ICU binary directory
  1543. --with-netsnmp[=PATH] Net-SNMP directory
  1544. --with-netsnmp-inc=PATH Net-SNMP include directory
  1545. --with-netsnmp-lib=PATH Net-SNMP library directory
  1546. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1547. the server to authenticate directly with a keytab -
  1548. otherwise, SASL/GSSAPI auth depends on underlying
  1549. SASL libraries and external kinit with a keytab - if
  1550. PATH is not specified, look for kerberos in the
  1551. system locations. This will attempt to use
  1552. krb5-config from the PATH to find the libs and
  1553. include dirs - you can specify KRB5_CONFIG_BIN to
  1554. specify a different filename or absolute path. If
  1555. krb5-config does not work, this will attempt to look
  1556. in various system directories
  1557. --with-kerberos-inc=PATH
  1558. Allows you to explicitly set the directory
  1559. containing the kerberos include files - implies use
  1560. of kerberos
  1561. --with-kerberos-lib=PATH
  1562. Allows you to explicitly set the directory
  1563. containing the kerberos libraries - implies use of
  1564. kerberos
  1565. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1566. --with-selinux Support SELinux policy
  1567. Some influential environment variables:
  1568. CXX C++ compiler command
  1569. CXXFLAGS C++ compiler flags
  1570. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1571. nonstandard directory <lib dir>
  1572. LIBS libraries to pass to the linker, e.g. -l<library>
  1573. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1574. you have headers in a nonstandard directory <include dir>
  1575. CC C compiler command
  1576. CFLAGS C compiler flags
  1577. CCAS assembler compiler command (defaults to CC)
  1578. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1579. CPP C preprocessor
  1580. CXXCPP C++ preprocessor
  1581. PKG_CONFIG path to pkg-config utility
  1582. PKG_CONFIG_PATH
  1583. directories to add to pkg-config's search path
  1584. PKG_CONFIG_LIBDIR
  1585. path overriding pkg-config's built-in search path
  1586. Use these variables to override the choices made by `configure' or to help
  1587. it to find libraries and programs with nonstandard names/locations.
  1588. Report bugs to <http://bugzilla.redhat.com/>.
  1589. _ACEOF
  1590. ac_status=$?
  1591. fi
  1592. if test "$ac_init_help" = "recursive"; then
  1593. # If there are subdirs, report their specific --help.
  1594. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1595. test -d "$ac_dir" ||
  1596. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1597. continue
  1598. ac_builddir=.
  1599. case "$ac_dir" in
  1600. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1601. *)
  1602. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1603. # A ".." for each directory in $ac_dir_suffix.
  1604. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1605. case $ac_top_builddir_sub in
  1606. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1607. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1608. esac ;;
  1609. esac
  1610. ac_abs_top_builddir=$ac_pwd
  1611. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1612. # for backward compatibility:
  1613. ac_top_builddir=$ac_top_build_prefix
  1614. case $srcdir in
  1615. .) # We are building in place.
  1616. ac_srcdir=.
  1617. ac_top_srcdir=$ac_top_builddir_sub
  1618. ac_abs_top_srcdir=$ac_pwd ;;
  1619. [\\/]* | ?:[\\/]* ) # Absolute name.
  1620. ac_srcdir=$srcdir$ac_dir_suffix;
  1621. ac_top_srcdir=$srcdir
  1622. ac_abs_top_srcdir=$srcdir ;;
  1623. *) # Relative name.
  1624. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1625. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1626. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1627. esac
  1628. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1629. cd "$ac_dir" || { ac_status=$?; continue; }
  1630. # Check for guested configure.
  1631. if test -f "$ac_srcdir/configure.gnu"; then
  1632. echo &&
  1633. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1634. elif test -f "$ac_srcdir/configure"; then
  1635. echo &&
  1636. $SHELL "$ac_srcdir/configure" --help=recursive
  1637. else
  1638. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1639. fi || ac_status=$?
  1640. cd "$ac_pwd" || { ac_status=$?; break; }
  1641. done
  1642. fi
  1643. test -n "$ac_init_help" && exit $ac_status
  1644. if $ac_init_version; then
  1645. cat <<\_ACEOF
  1646. dirsrv configure 1.0
  1647. generated by GNU Autoconf 2.69
  1648. Copyright (C) 2012 Free Software Foundation, Inc.
  1649. This configure script is free software; the Free Software Foundation
  1650. gives unlimited permission to copy, distribute and modify it.
  1651. _ACEOF
  1652. exit
  1653. fi
  1654. ## ------------------------ ##
  1655. ## Autoconf initialization. ##
  1656. ## ------------------------ ##
  1657. # ac_fn_cxx_try_compile LINENO
  1658. # ----------------------------
  1659. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1660. ac_fn_cxx_try_compile ()
  1661. {
  1662. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1663. rm -f conftest.$ac_objext
  1664. if { { ac_try="$ac_compile"
  1665. case "(($ac_try" in
  1666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1667. *) ac_try_echo=$ac_try;;
  1668. esac
  1669. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1670. $as_echo "$ac_try_echo"; } >&5
  1671. (eval "$ac_compile") 2>conftest.err
  1672. ac_status=$?
  1673. if test -s conftest.err; then
  1674. grep -v '^ *+' conftest.err >conftest.er1
  1675. cat conftest.er1 >&5
  1676. mv -f conftest.er1 conftest.err
  1677. fi
  1678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1679. test $ac_status = 0; } && {
  1680. test -z "$ac_cxx_werror_flag" ||
  1681. test ! -s conftest.err
  1682. } && test -s conftest.$ac_objext; then :
  1683. ac_retval=0
  1684. else
  1685. $as_echo "$as_me: failed program was:" >&5
  1686. sed 's/^/| /' conftest.$ac_ext >&5
  1687. ac_retval=1
  1688. fi
  1689. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1690. as_fn_set_status $ac_retval
  1691. } # ac_fn_cxx_try_compile
  1692. # ac_fn_c_try_compile LINENO
  1693. # --------------------------
  1694. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1695. ac_fn_c_try_compile ()
  1696. {
  1697. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1698. rm -f conftest.$ac_objext
  1699. if { { ac_try="$ac_compile"
  1700. case "(($ac_try" in
  1701. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1702. *) ac_try_echo=$ac_try;;
  1703. esac
  1704. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1705. $as_echo "$ac_try_echo"; } >&5
  1706. (eval "$ac_compile") 2>conftest.err
  1707. ac_status=$?
  1708. if test -s conftest.err; then
  1709. grep -v '^ *+' conftest.err >conftest.er1
  1710. cat conftest.er1 >&5
  1711. mv -f conftest.er1 conftest.err
  1712. fi
  1713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1714. test $ac_status = 0; } && {
  1715. test -z "$ac_c_werror_flag" ||
  1716. test ! -s conftest.err
  1717. } && test -s conftest.$ac_objext; then :
  1718. ac_retval=0
  1719. else
  1720. $as_echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=1
  1723. fi
  1724. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1725. as_fn_set_status $ac_retval
  1726. } # ac_fn_c_try_compile
  1727. # ac_fn_c_try_link LINENO
  1728. # -----------------------
  1729. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1730. ac_fn_c_try_link ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. rm -f conftest.$ac_objext conftest$ac_exeext
  1734. if { { ac_try="$ac_link"
  1735. case "(($ac_try" in
  1736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1737. *) ac_try_echo=$ac_try;;
  1738. esac
  1739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1740. $as_echo "$ac_try_echo"; } >&5
  1741. (eval "$ac_link") 2>conftest.err
  1742. ac_status=$?
  1743. if test -s conftest.err; then
  1744. grep -v '^ *+' conftest.err >conftest.er1
  1745. cat conftest.er1 >&5
  1746. mv -f conftest.er1 conftest.err
  1747. fi
  1748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1749. test $ac_status = 0; } && {
  1750. test -z "$ac_c_werror_flag" ||
  1751. test ! -s conftest.err
  1752. } && test -s conftest$ac_exeext && {
  1753. test "$cross_compiling" = yes ||
  1754. test -x conftest$ac_exeext
  1755. }; then :
  1756. ac_retval=0
  1757. else
  1758. $as_echo "$as_me: failed program was:" >&5
  1759. sed 's/^/| /' conftest.$ac_ext >&5
  1760. ac_retval=1
  1761. fi
  1762. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1763. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1764. # interfere with the next link command; also delete a directory that is
  1765. # left behind by Apple's compiler. We do this before executing the actions.
  1766. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1767. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1768. as_fn_set_status $ac_retval
  1769. } # ac_fn_c_try_link
  1770. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1771. # -------------------------------------------------------
  1772. # Tests whether HEADER exists and can be compiled using the include files in
  1773. # INCLUDES, setting the cache variable VAR accordingly.
  1774. ac_fn_c_check_header_compile ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1778. $as_echo_n "checking for $2... " >&6; }
  1779. if eval \${$3+:} false; then :
  1780. $as_echo_n "(cached) " >&6
  1781. else
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. $4
  1785. #include <$2>
  1786. _ACEOF
  1787. if ac_fn_c_try_compile "$LINENO"; then :
  1788. eval "$3=yes"
  1789. else
  1790. eval "$3=no"
  1791. fi
  1792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1793. fi
  1794. eval ac_res=\$$3
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1796. $as_echo "$ac_res" >&6; }
  1797. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1798. } # ac_fn_c_check_header_compile
  1799. # ac_fn_c_try_cpp LINENO
  1800. # ----------------------
  1801. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1802. ac_fn_c_try_cpp ()
  1803. {
  1804. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1805. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1806. case "(($ac_try" in
  1807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1808. *) ac_try_echo=$ac_try;;
  1809. esac
  1810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1811. $as_echo "$ac_try_echo"; } >&5
  1812. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1813. ac_status=$?
  1814. if test -s conftest.err; then
  1815. grep -v '^ *+' conftest.err >conftest.er1
  1816. cat conftest.er1 >&5
  1817. mv -f conftest.er1 conftest.err
  1818. fi
  1819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1820. test $ac_status = 0; } > conftest.i && {
  1821. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1822. test ! -s conftest.err
  1823. }; then :
  1824. ac_retval=0
  1825. else
  1826. $as_echo "$as_me: failed program was:" >&5
  1827. sed 's/^/| /' conftest.$ac_ext >&5
  1828. ac_retval=1
  1829. fi
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. as_fn_set_status $ac_retval
  1832. } # ac_fn_c_try_cpp
  1833. # ac_fn_c_try_run LINENO
  1834. # ----------------------
  1835. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1836. # that executables *can* be run.
  1837. ac_fn_c_try_run ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. if { { ac_try="$ac_link"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_link") 2>&5
  1848. ac_status=$?
  1849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1850. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1851. { { case "(($ac_try" in
  1852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1853. *) ac_try_echo=$ac_try;;
  1854. esac
  1855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1856. $as_echo "$ac_try_echo"; } >&5
  1857. (eval "$ac_try") 2>&5
  1858. ac_status=$?
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; }; }; then :
  1861. ac_retval=0
  1862. else
  1863. $as_echo "$as_me: program exited with status $ac_status" >&5
  1864. $as_echo "$as_me: failed program was:" >&5
  1865. sed 's/^/| /' conftest.$ac_ext >&5
  1866. ac_retval=$ac_status
  1867. fi
  1868. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. as_fn_set_status $ac_retval
  1871. } # ac_fn_c_try_run
  1872. # ac_fn_c_check_func LINENO FUNC VAR
  1873. # ----------------------------------
  1874. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1875. ac_fn_c_check_func ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1879. $as_echo_n "checking for $2... " >&6; }
  1880. if eval \${$3+:} false; then :
  1881. $as_echo_n "(cached) " >&6
  1882. else
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1886. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1887. #define $2 innocuous_$2
  1888. /* System header to define __stub macros and hopefully few prototypes,
  1889. which can conflict with char $2 (); below.
  1890. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1891. <limits.h> exists even on freestanding compilers. */
  1892. #ifdef __STDC__
  1893. # include <limits.h>
  1894. #else
  1895. # include <assert.h>
  1896. #endif
  1897. #undef $2
  1898. /* Override any GCC internal prototype to avoid an error.
  1899. Use char because int might match the return type of a GCC
  1900. builtin and then its argument prototype would still apply. */
  1901. #ifdef __cplusplus
  1902. extern "C"
  1903. #endif
  1904. char $2 ();
  1905. /* The GNU C library defines this for functions which it implements
  1906. to always fail with ENOSYS. Some functions are actually named
  1907. something starting with __ and the normal name is an alias. */
  1908. #if defined __stub_$2 || defined __stub___$2
  1909. choke me
  1910. #endif
  1911. int
  1912. main ()
  1913. {
  1914. return $2 ();
  1915. ;
  1916. return 0;
  1917. }
  1918. _ACEOF
  1919. if ac_fn_c_try_link "$LINENO"; then :
  1920. eval "$3=yes"
  1921. else
  1922. eval "$3=no"
  1923. fi
  1924. rm -f core conftest.err conftest.$ac_objext \
  1925. conftest$ac_exeext conftest.$ac_ext
  1926. fi
  1927. eval ac_res=\$$3
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1929. $as_echo "$ac_res" >&6; }
  1930. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1931. } # ac_fn_c_check_func
  1932. # ac_fn_cxx_try_cpp LINENO
  1933. # ------------------------
  1934. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1935. ac_fn_cxx_try_cpp ()
  1936. {
  1937. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1938. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1939. case "(($ac_try" in
  1940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1941. *) ac_try_echo=$ac_try;;
  1942. esac
  1943. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1944. $as_echo "$ac_try_echo"; } >&5
  1945. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1946. ac_status=$?
  1947. if test -s conftest.err; then
  1948. grep -v '^ *+' conftest.err >conftest.er1
  1949. cat conftest.er1 >&5
  1950. mv -f conftest.er1 conftest.err
  1951. fi
  1952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1953. test $ac_status = 0; } > conftest.i && {
  1954. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1955. test ! -s conftest.err
  1956. }; then :
  1957. ac_retval=0
  1958. else
  1959. $as_echo "$as_me: failed program was:" >&5
  1960. sed 's/^/| /' conftest.$ac_ext >&5
  1961. ac_retval=1
  1962. fi
  1963. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1964. as_fn_set_status $ac_retval
  1965. } # ac_fn_cxx_try_cpp
  1966. # ac_fn_cxx_try_link LINENO
  1967. # -------------------------
  1968. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1969. ac_fn_cxx_try_link ()
  1970. {
  1971. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1972. rm -f conftest.$ac_objext conftest$ac_exeext
  1973. if { { ac_try="$ac_link"
  1974. case "(($ac_try" in
  1975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1976. *) ac_try_echo=$ac_try;;
  1977. esac
  1978. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1979. $as_echo "$ac_try_echo"; } >&5
  1980. (eval "$ac_link") 2>conftest.err
  1981. ac_status=$?
  1982. if test -s conftest.err; then
  1983. grep -v '^ *+' conftest.err >conftest.er1
  1984. cat conftest.er1 >&5
  1985. mv -f conftest.er1 conftest.err
  1986. fi
  1987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1988. test $ac_status = 0; } && {
  1989. test -z "$ac_cxx_werror_flag" ||
  1990. test ! -s conftest.err
  1991. } && test -s conftest$ac_exeext && {
  1992. test "$cross_compiling" = yes ||
  1993. test -x conftest$ac_exeext
  1994. }; then :
  1995. ac_retval=0
  1996. else
  1997. $as_echo "$as_me: failed program was:" >&5
  1998. sed 's/^/| /' conftest.$ac_ext >&5
  1999. ac_retval=1
  2000. fi
  2001. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2002. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2003. # interfere with the next link command; also delete a directory that is
  2004. # left behind by Apple's compiler. We do this before executing the actions.
  2005. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2006. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2007. as_fn_set_status $ac_retval
  2008. } # ac_fn_cxx_try_link
  2009. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2010. # -------------------------------------------------------
  2011. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2012. # the include files in INCLUDES and setting the cache variable VAR
  2013. # accordingly.
  2014. ac_fn_c_check_header_mongrel ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. if eval \${$3+:} false; then :
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2019. $as_echo_n "checking for $2... " >&6; }
  2020. if eval \${$3+:} false; then :
  2021. $as_echo_n "(cached) " >&6
  2022. fi
  2023. eval ac_res=\$$3
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2025. $as_echo "$ac_res" >&6; }
  2026. else
  2027. # Is the header compilable?
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2029. $as_echo_n "checking $2 usability... " >&6; }
  2030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2031. /* end confdefs.h. */
  2032. $4
  2033. #include <$2>
  2034. _ACEOF
  2035. if ac_fn_c_try_compile "$LINENO"; then :
  2036. ac_header_compiler=yes
  2037. else
  2038. ac_header_compiler=no
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2042. $as_echo "$ac_header_compiler" >&6; }
  2043. # Is the header present?
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2045. $as_echo_n "checking $2 presence... " >&6; }
  2046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2047. /* end confdefs.h. */
  2048. #include <$2>
  2049. _ACEOF
  2050. if ac_fn_c_try_cpp "$LINENO"; then :
  2051. ac_header_preproc=yes
  2052. else
  2053. ac_header_preproc=no
  2054. fi
  2055. rm -f conftest.err conftest.i conftest.$ac_ext
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2057. $as_echo "$ac_header_preproc" >&6; }
  2058. # So? What about this header?
  2059. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2060. yes:no: )
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2062. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2064. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2065. ;;
  2066. no:yes:* )
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2068. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2070. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2072. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2074. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2076. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2077. ( $as_echo "## ------------------------------------------ ##
  2078. ## Report this to http://bugzilla.redhat.com/ ##
  2079. ## ------------------------------------------ ##"
  2080. ) | sed "s/^/$as_me: WARNING: /" >&2
  2081. ;;
  2082. esac
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2084. $as_echo_n "checking for $2... " >&6; }
  2085. if eval \${$3+:} false; then :
  2086. $as_echo_n "(cached) " >&6
  2087. else
  2088. eval "$3=\$ac_header_compiler"
  2089. fi
  2090. eval ac_res=\$$3
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2092. $as_echo "$ac_res" >&6; }
  2093. fi
  2094. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2095. } # ac_fn_c_check_header_mongrel
  2096. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2097. # -------------------------------------------
  2098. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2099. # variable VAR accordingly.
  2100. ac_fn_c_check_type ()
  2101. {
  2102. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2104. $as_echo_n "checking for $2... " >&6; }
  2105. if eval \${$3+:} false; then :
  2106. $as_echo_n "(cached) " >&6
  2107. else
  2108. eval "$3=no"
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. $4
  2112. int
  2113. main ()
  2114. {
  2115. if (sizeof ($2))
  2116. return 0;
  2117. ;
  2118. return 0;
  2119. }
  2120. _ACEOF
  2121. if ac_fn_c_try_compile "$LINENO"; then :
  2122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2123. /* end confdefs.h. */
  2124. $4
  2125. int
  2126. main ()
  2127. {
  2128. if (sizeof (($2)))
  2129. return 0;
  2130. ;
  2131. return 0;
  2132. }
  2133. _ACEOF
  2134. if ac_fn_c_try_compile "$LINENO"; then :
  2135. else
  2136. eval "$3=yes"
  2137. fi
  2138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2139. fi
  2140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2141. fi
  2142. eval ac_res=\$$3
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2144. $as_echo "$ac_res" >&6; }
  2145. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2146. } # ac_fn_c_check_type
  2147. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2148. # ---------------------------------------------
  2149. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2150. # accordingly.
  2151. ac_fn_c_check_decl ()
  2152. {
  2153. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2154. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2155. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2157. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2158. if eval \${$3+:} false; then :
  2159. $as_echo_n "(cached) " >&6
  2160. else
  2161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2162. /* end confdefs.h. */
  2163. $4
  2164. int
  2165. main ()
  2166. {
  2167. #ifndef $as_decl_name
  2168. #ifdef __cplusplus
  2169. (void) $as_decl_use;
  2170. #else
  2171. (void) $as_decl_name;
  2172. #endif
  2173. #endif
  2174. ;
  2175. return 0;
  2176. }
  2177. _ACEOF
  2178. if ac_fn_c_try_compile "$LINENO"; then :
  2179. eval "$3=yes"
  2180. else
  2181. eval "$3=no"
  2182. fi
  2183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2184. fi
  2185. eval ac_res=\$$3
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2187. $as_echo "$ac_res" >&6; }
  2188. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2189. } # ac_fn_c_check_decl
  2190. cat >config.log <<_ACEOF
  2191. This file contains any messages produced by compilers while
  2192. running configure, to aid debugging if configure makes a mistake.
  2193. It was created by dirsrv $as_me 1.0, which was
  2194. generated by GNU Autoconf 2.69. Invocation command line was
  2195. $ $0 $@
  2196. _ACEOF
  2197. exec 5>>config.log
  2198. {
  2199. cat <<_ASUNAME
  2200. ## --------- ##
  2201. ## Platform. ##
  2202. ## --------- ##
  2203. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2204. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2205. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2206. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2207. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2208. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2209. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2210. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2211. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2212. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2213. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2214. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2215. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2216. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2217. _ASUNAME
  2218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2219. for as_dir in $PATH
  2220. do
  2221. IFS=$as_save_IFS
  2222. test -z "$as_dir" && as_dir=.
  2223. $as_echo "PATH: $as_dir"
  2224. done
  2225. IFS=$as_save_IFS
  2226. } >&5
  2227. cat >&5 <<_ACEOF
  2228. ## ----------- ##
  2229. ## Core tests. ##
  2230. ## ----------- ##
  2231. _ACEOF
  2232. # Keep a trace of the command line.
  2233. # Strip out --no-create and --no-recursion so they do not pile up.
  2234. # Strip out --silent because we don't want to record it for future runs.
  2235. # Also quote any args containing shell meta-characters.
  2236. # Make two passes to allow for proper duplicate-argument suppression.
  2237. ac_configure_args=
  2238. ac_configure_args0=
  2239. ac_configure_args1=
  2240. ac_must_keep_next=false
  2241. for ac_pass in 1 2
  2242. do
  2243. for ac_arg
  2244. do
  2245. case $ac_arg in
  2246. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2247. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2248. | -silent | --silent | --silen | --sile | --sil)
  2249. continue ;;
  2250. *\'*)
  2251. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2252. esac
  2253. case $ac_pass in
  2254. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2255. 2)
  2256. as_fn_append ac_configure_args1 " '$ac_arg'"
  2257. if test $ac_must_keep_next = true; then
  2258. ac_must_keep_next=false # Got value, back to normal.
  2259. else
  2260. case $ac_arg in
  2261. *=* | --config-cache | -C | -disable-* | --disable-* \
  2262. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2263. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2264. | -with-* | --with-* | -without-* | --without-* | --x)
  2265. case "$ac_configure_args0 " in
  2266. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2267. esac
  2268. ;;
  2269. -* ) ac_must_keep_next=true ;;
  2270. esac
  2271. fi
  2272. as_fn_append ac_configure_args " '$ac_arg'"
  2273. ;;
  2274. esac
  2275. done
  2276. done
  2277. { ac_configure_args0=; unset ac_configure_args0;}
  2278. { ac_configure_args1=; unset ac_configure_args1;}
  2279. # When interrupted or exit'd, cleanup temporary files, and complete
  2280. # config.log. We remove comments because anyway the quotes in there
  2281. # would cause problems or look ugly.
  2282. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2283. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2284. trap 'exit_status=$?
  2285. # Save into config.log some information that might help in debugging.
  2286. {
  2287. echo
  2288. $as_echo "## ---------------- ##
  2289. ## Cache variables. ##
  2290. ## ---------------- ##"
  2291. echo
  2292. # The following way of writing the cache mishandles newlines in values,
  2293. (
  2294. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2295. eval ac_val=\$$ac_var
  2296. case $ac_val in #(
  2297. *${as_nl}*)
  2298. case $ac_var in #(
  2299. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2300. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2301. esac
  2302. case $ac_var in #(
  2303. _ | IFS | as_nl) ;; #(
  2304. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2305. *) { eval $ac_var=; unset $ac_var;} ;;
  2306. esac ;;
  2307. esac
  2308. done
  2309. (set) 2>&1 |
  2310. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2311. *${as_nl}ac_space=\ *)
  2312. sed -n \
  2313. "s/'\''/'\''\\\\'\'''\''/g;
  2314. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2315. ;; #(
  2316. *)
  2317. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2318. ;;
  2319. esac |
  2320. sort
  2321. )
  2322. echo
  2323. $as_echo "## ----------------- ##
  2324. ## Output variables. ##
  2325. ## ----------------- ##"
  2326. echo
  2327. for ac_var in $ac_subst_vars
  2328. do
  2329. eval ac_val=\$$ac_var
  2330. case $ac_val in
  2331. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2332. esac
  2333. $as_echo "$ac_var='\''$ac_val'\''"
  2334. done | sort
  2335. echo
  2336. if test -n "$ac_subst_files"; then
  2337. $as_echo "## ------------------- ##
  2338. ## File substitutions. ##
  2339. ## ------------------- ##"
  2340. echo
  2341. for ac_var in $ac_subst_files
  2342. do
  2343. eval ac_val=\$$ac_var
  2344. case $ac_val in
  2345. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2346. esac
  2347. $as_echo "$ac_var='\''$ac_val'\''"
  2348. done | sort
  2349. echo
  2350. fi
  2351. if test -s confdefs.h; then
  2352. $as_echo "## ----------- ##
  2353. ## confdefs.h. ##
  2354. ## ----------- ##"
  2355. echo
  2356. cat confdefs.h
  2357. echo
  2358. fi
  2359. test "$ac_signal" != 0 &&
  2360. $as_echo "$as_me: caught signal $ac_signal"
  2361. $as_echo "$as_me: exit $exit_status"
  2362. } >&5
  2363. rm -f core *.core core.conftest.* &&
  2364. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2365. exit $exit_status
  2366. ' 0
  2367. for ac_signal in 1 2 13 15; do
  2368. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2369. done
  2370. ac_signal=0
  2371. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2372. rm -f -r conftest* confdefs.h
  2373. $as_echo "/* confdefs.h */" > confdefs.h
  2374. # Predefined preprocessor variables.
  2375. cat >>confdefs.h <<_ACEOF
  2376. #define PACKAGE_NAME "$PACKAGE_NAME"
  2377. _ACEOF
  2378. cat >>confdefs.h <<_ACEOF
  2379. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2380. _ACEOF
  2381. cat >>confdefs.h <<_ACEOF
  2382. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2383. _ACEOF
  2384. cat >>confdefs.h <<_ACEOF
  2385. #define PACKAGE_STRING "$PACKAGE_STRING"
  2386. _ACEOF
  2387. cat >>confdefs.h <<_ACEOF
  2388. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2389. _ACEOF
  2390. cat >>confdefs.h <<_ACEOF
  2391. #define PACKAGE_URL "$PACKAGE_URL"
  2392. _ACEOF
  2393. # Let the site file select an alternate cache file if it wants to.
  2394. # Prefer an explicitly selected file to automatically selected ones.
  2395. ac_site_file1=NONE
  2396. ac_site_file2=NONE
  2397. if test -n "$CONFIG_SITE"; then
  2398. # We do not want a PATH search for config.site.
  2399. case $CONFIG_SITE in #((
  2400. -*) ac_site_file1=./$CONFIG_SITE;;
  2401. */*) ac_site_file1=$CONFIG_SITE;;
  2402. *) ac_site_file1=./$CONFIG_SITE;;
  2403. esac
  2404. elif test "x$prefix" != xNONE; then
  2405. ac_site_file1=$prefix/share/config.site
  2406. ac_site_file2=$prefix/etc/config.site
  2407. else
  2408. ac_site_file1=$ac_default_prefix/share/config.site
  2409. ac_site_file2=$ac_default_prefix/etc/config.site
  2410. fi
  2411. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2412. do
  2413. test "x$ac_site_file" = xNONE && continue
  2414. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2416. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2417. sed 's/^/| /' "$ac_site_file" >&5
  2418. . "$ac_site_file" \
  2419. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2420. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2421. as_fn_error $? "failed to load site script $ac_site_file
  2422. See \`config.log' for more details" "$LINENO" 5; }
  2423. fi
  2424. done
  2425. if test -r "$cache_file"; then
  2426. # Some versions of bash will fail to source /dev/null (special files
  2427. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2428. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2430. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2431. case $cache_file in
  2432. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2433. *) . "./$cache_file";;
  2434. esac
  2435. fi
  2436. else
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2438. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2439. >$cache_file
  2440. fi
  2441. as_fn_append ac_header_list " stdlib.h"
  2442. as_fn_append ac_header_list " unistd.h"
  2443. as_fn_append ac_header_list " sys/param.h"
  2444. # Check that the precious variables saved in the cache have kept the same
  2445. # value.
  2446. ac_cache_corrupted=false
  2447. for ac_var in $ac_precious_vars; do
  2448. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2449. eval ac_new_set=\$ac_env_${ac_var}_set
  2450. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2451. eval ac_new_val=\$ac_env_${ac_var}_value
  2452. case $ac_old_set,$ac_new_set in
  2453. set,)
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2455. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2456. ac_cache_corrupted=: ;;
  2457. ,set)
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2459. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2460. ac_cache_corrupted=: ;;
  2461. ,);;
  2462. *)
  2463. if test "x$ac_old_val" != "x$ac_new_val"; then
  2464. # differences in whitespace do not lead to failure.
  2465. ac_old_val_w=`echo x $ac_old_val`
  2466. ac_new_val_w=`echo x $ac_new_val`
  2467. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2469. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2470. ac_cache_corrupted=:
  2471. else
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2473. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2474. eval $ac_var=\$ac_old_val
  2475. fi
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2477. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2479. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2480. fi;;
  2481. esac
  2482. # Pass precious variables to config.status.
  2483. if test "$ac_new_set" = set; then
  2484. case $ac_new_val in
  2485. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2486. *) ac_arg=$ac_var=$ac_new_val ;;
  2487. esac
  2488. case " $ac_configure_args " in
  2489. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2490. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2491. esac
  2492. fi
  2493. done
  2494. if $ac_cache_corrupted; then
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2496. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2498. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2499. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2500. fi
  2501. ## -------------------- ##
  2502. ## Main body of script. ##
  2503. ## -------------------- ##
  2504. ac_ext=c
  2505. ac_cpp='$CPP $CPPFLAGS'
  2506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2509. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2510. ac_config_headers="$ac_config_headers config.h"
  2511. # include the version information
  2512. . $srcdir/VERSION.sh
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2514. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2515. cat >>confdefs.h <<_ACEOF
  2516. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2517. _ACEOF
  2518. cat >>confdefs.h <<_ACEOF
  2519. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2520. _ACEOF
  2521. cat >>confdefs.h <<_ACEOF
  2522. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2523. _ACEOF
  2524. cat >>confdefs.h <<_ACEOF
  2525. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2526. _ACEOF
  2527. am__api_version='1.12'
  2528. ac_aux_dir=
  2529. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2530. if test -f "$ac_dir/install-sh"; then
  2531. ac_aux_dir=$ac_dir
  2532. ac_install_sh="$ac_aux_dir/install-sh -c"
  2533. break
  2534. elif test -f "$ac_dir/install.sh"; then
  2535. ac_aux_dir=$ac_dir
  2536. ac_install_sh="$ac_aux_dir/install.sh -c"
  2537. break
  2538. elif test -f "$ac_dir/shtool"; then
  2539. ac_aux_dir=$ac_dir
  2540. ac_install_sh="$ac_aux_dir/shtool install -c"
  2541. break
  2542. fi
  2543. done
  2544. if test -z "$ac_aux_dir"; then
  2545. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2546. fi
  2547. # These three variables are undocumented and unsupported,
  2548. # and are intended to be withdrawn in a future Autoconf release.
  2549. # They can cause serious problems if a builder's source tree is in a directory
  2550. # whose full name contains unusual characters.
  2551. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2552. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2553. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2554. # Find a good install program. We prefer a C program (faster),
  2555. # so one script is as good as another. But avoid the broken or
  2556. # incompatible versions:
  2557. # SysV /etc/install, /usr/sbin/install
  2558. # SunOS /usr/etc/install
  2559. # IRIX /sbin/install
  2560. # AIX /bin/install
  2561. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2562. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2563. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2564. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2565. # OS/2's system install, which has a completely different semantic
  2566. # ./install, which can be erroneously created by make from ./install.sh.
  2567. # Reject install programs that cannot install multiple files.
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2569. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2570. if test -z "$INSTALL"; then
  2571. if ${ac_cv_path_install+:} false; then :
  2572. $as_echo_n "(cached) " >&6
  2573. else
  2574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2575. for as_dir in $PATH
  2576. do
  2577. IFS=$as_save_IFS
  2578. test -z "$as_dir" && as_dir=.
  2579. # Account for people who put trailing slashes in PATH elements.
  2580. case $as_dir/ in #((
  2581. ./ | .// | /[cC]/* | \
  2582. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2583. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2584. /usr/ucb/* ) ;;
  2585. *)
  2586. # OSF1 and SCO ODT 3.0 have their own names for install.
  2587. # Don't use installbsd from OSF since it installs stuff as root
  2588. # by default.
  2589. for ac_prog in ginstall scoinst install; do
  2590. for ac_exec_ext in '' $ac_executable_extensions; do
  2591. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2592. if test $ac_prog = install &&
  2593. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2594. # AIX install. It has an incompatible calling convention.
  2595. :
  2596. elif test $ac_prog = install &&
  2597. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2598. # program-specific install script used by HP pwplus--don't use.
  2599. :
  2600. else
  2601. rm -rf conftest.one conftest.two conftest.dir
  2602. echo one > conftest.one
  2603. echo two > conftest.two
  2604. mkdir conftest.dir
  2605. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2606. test -s conftest.one && test -s conftest.two &&
  2607. test -s conftest.dir/conftest.one &&
  2608. test -s conftest.dir/conftest.two
  2609. then
  2610. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2611. break 3
  2612. fi
  2613. fi
  2614. fi
  2615. done
  2616. done
  2617. ;;
  2618. esac
  2619. done
  2620. IFS=$as_save_IFS
  2621. rm -rf conftest.one conftest.two conftest.dir
  2622. fi
  2623. if test "${ac_cv_path_install+set}" = set; then
  2624. INSTALL=$ac_cv_path_install
  2625. else
  2626. # As a last resort, use the slow shell script. Don't cache a
  2627. # value for INSTALL within a source directory, because that will
  2628. # break other packages using the cache if that directory is
  2629. # removed, or if the value is a relative name.
  2630. INSTALL=$ac_install_sh
  2631. fi
  2632. fi
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2634. $as_echo "$INSTALL" >&6; }
  2635. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2636. # It thinks the first close brace ends the variable substitution.
  2637. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2638. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2639. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2641. $as_echo_n "checking whether build environment is sane... " >&6; }
  2642. # Reject unsafe characters in $srcdir or the absolute working directory
  2643. # name. Accept space and tab only in the latter.
  2644. am_lf='
  2645. '
  2646. case `pwd` in
  2647. *[\\\"\#\$\&\'\`$am_lf]*)
  2648. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2649. esac
  2650. case $srcdir in
  2651. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2652. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2653. esac
  2654. # Do 'set' in a subshell so we don't clobber the current shell's
  2655. # arguments. Must try -L first in case configure is actually a
  2656. # symlink; some systems play weird games with the mod time of symlinks
  2657. # (eg FreeBSD returns the mod time of the symlink's containing
  2658. # directory).
  2659. if (
  2660. am_has_slept=no
  2661. for am_try in 1 2; do
  2662. echo "timestamp, slept: $am_has_slept" > conftest.file
  2663. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2664. if test "$*" = "X"; then
  2665. # -L didn't work.
  2666. set X `ls -t "$srcdir/configure" conftest.file`
  2667. fi
  2668. if test "$*" != "X $srcdir/configure conftest.file" \
  2669. && test "$*" != "X conftest.file $srcdir/configure"; then
  2670. # If neither matched, then we have a broken ls. This can happen
  2671. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2672. # broken ls alias from the environment. This has actually
  2673. # happened. Such a system could not be considered "sane".
  2674. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2675. alias in your environment" "$LINENO" 5
  2676. fi
  2677. if test "$2" = conftest.file || test $am_try -eq 2; then
  2678. break
  2679. fi
  2680. # Just in case.
  2681. sleep 1
  2682. am_has_slept=yes
  2683. done
  2684. test "$2" = conftest.file
  2685. )
  2686. then
  2687. # Ok.
  2688. :
  2689. else
  2690. as_fn_error $? "newly created file is older than distributed files!
  2691. Check your system clock" "$LINENO" 5
  2692. fi
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2694. $as_echo "yes" >&6; }
  2695. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2696. # generated files are strictly newer.
  2697. am_sleep_pid=
  2698. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2699. ( sleep 1 ) &
  2700. am_sleep_pid=$!
  2701. fi
  2702. rm -f conftest.file
  2703. test "$program_prefix" != NONE &&
  2704. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2705. # Use a double $ so make ignores it.
  2706. test "$program_suffix" != NONE &&
  2707. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2708. # Double any \ or $.
  2709. # By default was `s,x,x', remove it if useless.
  2710. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2711. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2712. # expand $ac_aux_dir to an absolute path
  2713. am_aux_dir=`cd $ac_aux_dir && pwd`
  2714. if test x"${MISSING+set}" != xset; then
  2715. case $am_aux_dir in
  2716. *\ * | *\ *)
  2717. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2718. *)
  2719. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2720. esac
  2721. fi
  2722. # Use eval to expand $SHELL
  2723. if eval "$MISSING --run true"; then
  2724. am_missing_run="$MISSING --run "
  2725. else
  2726. am_missing_run=
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2728. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2729. fi
  2730. if test x"${install_sh}" != xset; then
  2731. case $am_aux_dir in
  2732. *\ * | *\ *)
  2733. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2734. *)
  2735. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2736. esac
  2737. fi
  2738. # Installed binaries are usually stripped using 'strip' when the user
  2739. # run "make install-strip". However 'strip' might not be the right
  2740. # tool to use in cross-compilation environments, therefore Automake
  2741. # will honor the 'STRIP' environment variable to overrule this program.
  2742. if test "$cross_compiling" != no; then
  2743. if test -n "$ac_tool_prefix"; then
  2744. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2745. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2747. $as_echo_n "checking for $ac_word... " >&6; }
  2748. if ${ac_cv_prog_STRIP+:} false; then :
  2749. $as_echo_n "(cached) " >&6
  2750. else
  2751. if test -n "$STRIP"; then
  2752. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2753. else
  2754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2755. for as_dir in $PATH
  2756. do
  2757. IFS=$as_save_IFS
  2758. test -z "$as_dir" && as_dir=.
  2759. for ac_exec_ext in '' $ac_executable_extensions; do
  2760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2761. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2763. break 2
  2764. fi
  2765. done
  2766. done
  2767. IFS=$as_save_IFS
  2768. fi
  2769. fi
  2770. STRIP=$ac_cv_prog_STRIP
  2771. if test -n "$STRIP"; then
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2773. $as_echo "$STRIP" >&6; }
  2774. else
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2776. $as_echo "no" >&6; }
  2777. fi
  2778. fi
  2779. if test -z "$ac_cv_prog_STRIP"; then
  2780. ac_ct_STRIP=$STRIP
  2781. # Extract the first word of "strip", so it can be a program name with args.
  2782. set dummy strip; ac_word=$2
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2784. $as_echo_n "checking for $ac_word... " >&6; }
  2785. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2786. $as_echo_n "(cached) " >&6
  2787. else
  2788. if test -n "$ac_ct_STRIP"; then
  2789. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2790. else
  2791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2792. for as_dir in $PATH
  2793. do
  2794. IFS=$as_save_IFS
  2795. test -z "$as_dir" && as_dir=.
  2796. for ac_exec_ext in '' $ac_executable_extensions; do
  2797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2798. ac_cv_prog_ac_ct_STRIP="strip"
  2799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2800. break 2
  2801. fi
  2802. done
  2803. done
  2804. IFS=$as_save_IFS
  2805. fi
  2806. fi
  2807. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2808. if test -n "$ac_ct_STRIP"; then
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2810. $as_echo "$ac_ct_STRIP" >&6; }
  2811. else
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2813. $as_echo "no" >&6; }
  2814. fi
  2815. if test "x$ac_ct_STRIP" = x; then
  2816. STRIP=":"
  2817. else
  2818. case $cross_compiling:$ac_tool_warned in
  2819. yes:)
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2822. ac_tool_warned=yes ;;
  2823. esac
  2824. STRIP=$ac_ct_STRIP
  2825. fi
  2826. else
  2827. STRIP="$ac_cv_prog_STRIP"
  2828. fi
  2829. fi
  2830. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2832. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2833. if test -z "$MKDIR_P"; then
  2834. if ${ac_cv_path_mkdir+:} false; then :
  2835. $as_echo_n "(cached) " >&6
  2836. else
  2837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2838. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2839. do
  2840. IFS=$as_save_IFS
  2841. test -z "$as_dir" && as_dir=.
  2842. for ac_prog in mkdir gmkdir; do
  2843. for ac_exec_ext in '' $ac_executable_extensions; do
  2844. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2845. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2846. 'mkdir (GNU coreutils) '* | \
  2847. 'mkdir (coreutils) '* | \
  2848. 'mkdir (fileutils) '4.1*)
  2849. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2850. break 3;;
  2851. esac
  2852. done
  2853. done
  2854. done
  2855. IFS=$as_save_IFS
  2856. fi
  2857. test -d ./--version && rmdir ./--version
  2858. if test "${ac_cv_path_mkdir+set}" = set; then
  2859. MKDIR_P="$ac_cv_path_mkdir -p"
  2860. else
  2861. # As a last resort, use the slow shell script. Don't cache a
  2862. # value for MKDIR_P within a source directory, because that will
  2863. # break other packages using the cache if that directory is
  2864. # removed, or if the value is a relative name.
  2865. MKDIR_P="$ac_install_sh -d"
  2866. fi
  2867. fi
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2869. $as_echo "$MKDIR_P" >&6; }
  2870. for ac_prog in gawk mawk nawk awk
  2871. do
  2872. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2873. set dummy $ac_prog; ac_word=$2
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2875. $as_echo_n "checking for $ac_word... " >&6; }
  2876. if ${ac_cv_prog_AWK+:} false; then :
  2877. $as_echo_n "(cached) " >&6
  2878. else
  2879. if test -n "$AWK"; then
  2880. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2881. else
  2882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2883. for as_dir in $PATH
  2884. do
  2885. IFS=$as_save_IFS
  2886. test -z "$as_dir" && as_dir=.
  2887. for ac_exec_ext in '' $ac_executable_extensions; do
  2888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2889. ac_cv_prog_AWK="$ac_prog"
  2890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2891. break 2
  2892. fi
  2893. done
  2894. done
  2895. IFS=$as_save_IFS
  2896. fi
  2897. fi
  2898. AWK=$ac_cv_prog_AWK
  2899. if test -n "$AWK"; then
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2901. $as_echo "$AWK" >&6; }
  2902. else
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2904. $as_echo "no" >&6; }
  2905. fi
  2906. test -n "$AWK" && break
  2907. done
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2909. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2910. set x ${MAKE-make}
  2911. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2912. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2913. $as_echo_n "(cached) " >&6
  2914. else
  2915. cat >conftest.make <<\_ACEOF
  2916. SHELL = /bin/sh
  2917. all:
  2918. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2919. _ACEOF
  2920. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2921. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2922. *@@@%%%=?*=@@@%%%*)
  2923. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2924. *)
  2925. eval ac_cv_prog_make_${ac_make}_set=no;;
  2926. esac
  2927. rm -f conftest.make
  2928. fi
  2929. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2931. $as_echo "yes" >&6; }
  2932. SET_MAKE=
  2933. else
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. SET_MAKE="MAKE=${MAKE-make}"
  2937. fi
  2938. rm -rf .tst 2>/dev/null
  2939. mkdir .tst 2>/dev/null
  2940. if test -d .tst; then
  2941. am__leading_dot=.
  2942. else
  2943. am__leading_dot=_
  2944. fi
  2945. rmdir .tst 2>/dev/null
  2946. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2947. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2948. # is not polluted with repeated "-I."
  2949. am__isrc=' -I$(srcdir)'
  2950. # test to see if srcdir already configured
  2951. if test -f $srcdir/config.status; then
  2952. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2953. fi
  2954. fi
  2955. # test whether we have cygpath
  2956. if test -z "$CYGPATH_W"; then
  2957. if (cygpath --version) >/dev/null 2>/dev/null; then
  2958. CYGPATH_W='cygpath -w'
  2959. else
  2960. CYGPATH_W=echo
  2961. fi
  2962. fi
  2963. # Define the identity of the package.
  2964. PACKAGE='dirsrv'
  2965. VERSION='1.0'
  2966. # Some tools Automake needs.
  2967. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2968. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2969. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2970. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2971. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2972. # For better backward compatibility. To be removed once Automake 1.9.x
  2973. # dies out for good. For more background, see:
  2974. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2975. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2976. mkdir_p='$(MKDIR_P)'
  2977. # We need awk for the "check" target. The system "awk" is bad on
  2978. # some platforms.
  2979. # Always define AMTAR for backward compatibility. Yes, it's still used
  2980. # in the wild :-( We should find a proper way to deprecate it ...
  2981. AMTAR='$${TAR-tar}'
  2982. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2983. # define these for automake distdir
  2984. VERSION=$PACKAGE_VERSION
  2985. PACKAGE=$PACKAGE_TARNAME
  2986. cat >>confdefs.h <<_ACEOF
  2987. #define VERSION "$VERSION"
  2988. _ACEOF
  2989. cat >>confdefs.h <<_ACEOF
  2990. #define PACKAGE "$PACKAGE"
  2991. _ACEOF
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2993. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2994. # Check whether --enable-maintainer-mode was given.
  2995. if test "${enable_maintainer_mode+set}" = set; then :
  2996. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2997. else
  2998. USE_MAINTAINER_MODE=no
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3001. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3002. if test $USE_MAINTAINER_MODE = yes; then
  3003. MAINTAINER_MODE_TRUE=
  3004. MAINTAINER_MODE_FALSE='#'
  3005. else
  3006. MAINTAINER_MODE_TRUE='#'
  3007. MAINTAINER_MODE_FALSE=
  3008. fi
  3009. MAINT=$MAINTAINER_MODE_TRUE
  3010. # Make sure we can run config.sub.
  3011. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3012. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3014. $as_echo_n "checking build system type... " >&6; }
  3015. if ${ac_cv_build+:} false; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. ac_build_alias=$build_alias
  3019. test "x$ac_build_alias" = x &&
  3020. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3021. test "x$ac_build_alias" = x &&
  3022. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3023. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3024. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3025. fi
  3026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3027. $as_echo "$ac_cv_build" >&6; }
  3028. case $ac_cv_build in
  3029. *-*-*) ;;
  3030. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3031. esac
  3032. build=$ac_cv_build
  3033. ac_save_IFS=$IFS; IFS='-'
  3034. set x $ac_cv_build
  3035. shift
  3036. build_cpu=$1
  3037. build_vendor=$2
  3038. shift; shift
  3039. # Remember, the first character of IFS is used to create $*,
  3040. # except with old shells:
  3041. build_os=$*
  3042. IFS=$ac_save_IFS
  3043. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3045. $as_echo_n "checking host system type... " >&6; }
  3046. if ${ac_cv_host+:} false; then :
  3047. $as_echo_n "(cached) " >&6
  3048. else
  3049. if test "x$host_alias" = x; then
  3050. ac_cv_host=$ac_cv_build
  3051. else
  3052. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3053. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3054. fi
  3055. fi
  3056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3057. $as_echo "$ac_cv_host" >&6; }
  3058. case $ac_cv_host in
  3059. *-*-*) ;;
  3060. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3061. esac
  3062. host=$ac_cv_host
  3063. ac_save_IFS=$IFS; IFS='-'
  3064. set x $ac_cv_host
  3065. shift
  3066. host_cpu=$1
  3067. host_vendor=$2
  3068. shift; shift
  3069. # Remember, the first character of IFS is used to create $*,
  3070. # except with old shells:
  3071. host_os=$*
  3072. IFS=$ac_save_IFS
  3073. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3074. # Checks for programs.
  3075. ac_ext=cpp
  3076. ac_cpp='$CXXCPP $CPPFLAGS'
  3077. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3078. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3079. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3080. if test -z "$CXX"; then
  3081. if test -n "$CCC"; then
  3082. CXX=$CCC
  3083. else
  3084. if test -n "$ac_tool_prefix"; then
  3085. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3086. do
  3087. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3088. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3090. $as_echo_n "checking for $ac_word... " >&6; }
  3091. if ${ac_cv_prog_CXX+:} false; then :
  3092. $as_echo_n "(cached) " >&6
  3093. else
  3094. if test -n "$CXX"; then
  3095. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3096. else
  3097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3098. for as_dir in $PATH
  3099. do
  3100. IFS=$as_save_IFS
  3101. test -z "$as_dir" && as_dir=.
  3102. for ac_exec_ext in '' $ac_executable_extensions; do
  3103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3104. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3106. break 2
  3107. fi
  3108. done
  3109. done
  3110. IFS=$as_save_IFS
  3111. fi
  3112. fi
  3113. CXX=$ac_cv_prog_CXX
  3114. if test -n "$CXX"; then
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3116. $as_echo "$CXX" >&6; }
  3117. else
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3119. $as_echo "no" >&6; }
  3120. fi
  3121. test -n "$CXX" && break
  3122. done
  3123. fi
  3124. if test -z "$CXX"; then
  3125. ac_ct_CXX=$CXX
  3126. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3127. do
  3128. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3129. set dummy $ac_prog; ac_word=$2
  3130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3131. $as_echo_n "checking for $ac_word... " >&6; }
  3132. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3133. $as_echo_n "(cached) " >&6
  3134. else
  3135. if test -n "$ac_ct_CXX"; then
  3136. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3137. else
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. for ac_exec_ext in '' $ac_executable_extensions; do
  3144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3145. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3147. break 2
  3148. fi
  3149. done
  3150. done
  3151. IFS=$as_save_IFS
  3152. fi
  3153. fi
  3154. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3155. if test -n "$ac_ct_CXX"; then
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3157. $as_echo "$ac_ct_CXX" >&6; }
  3158. else
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3160. $as_echo "no" >&6; }
  3161. fi
  3162. test -n "$ac_ct_CXX" && break
  3163. done
  3164. if test "x$ac_ct_CXX" = x; then
  3165. CXX="g++"
  3166. else
  3167. case $cross_compiling:$ac_tool_warned in
  3168. yes:)
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3171. ac_tool_warned=yes ;;
  3172. esac
  3173. CXX=$ac_ct_CXX
  3174. fi
  3175. fi
  3176. fi
  3177. fi
  3178. # Provide some information about the compiler.
  3179. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3180. set X $ac_compile
  3181. ac_compiler=$2
  3182. for ac_option in --version -v -V -qversion; do
  3183. { { ac_try="$ac_compiler $ac_option >&5"
  3184. case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo"; } >&5
  3190. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3191. ac_status=$?
  3192. if test -s conftest.err; then
  3193. sed '10a\
  3194. ... rest of stderr output deleted ...
  3195. 10q' conftest.err >conftest.er1
  3196. cat conftest.er1 >&5
  3197. fi
  3198. rm -f conftest.er1 conftest.err
  3199. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3200. test $ac_status = 0; }
  3201. done
  3202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3203. /* end confdefs.h. */
  3204. int
  3205. main ()
  3206. {
  3207. ;
  3208. return 0;
  3209. }
  3210. _ACEOF
  3211. ac_clean_files_save=$ac_clean_files
  3212. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3213. # Try to create an executable without -o first, disregard a.out.
  3214. # It will help us diagnose broken compilers, and finding out an intuition
  3215. # of exeext.
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3217. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3218. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3219. # The possible output files:
  3220. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3221. ac_rmfiles=
  3222. for ac_file in $ac_files
  3223. do
  3224. case $ac_file in
  3225. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3226. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3227. esac
  3228. done
  3229. rm -f $ac_rmfiles
  3230. if { { ac_try="$ac_link_default"
  3231. case "(($ac_try" in
  3232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3233. *) ac_try_echo=$ac_try;;
  3234. esac
  3235. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3236. $as_echo "$ac_try_echo"; } >&5
  3237. (eval "$ac_link_default") 2>&5
  3238. ac_status=$?
  3239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3240. test $ac_status = 0; }; then :
  3241. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3242. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3243. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3244. # so that the user can short-circuit this test for compilers unknown to
  3245. # Autoconf.
  3246. for ac_file in $ac_files ''
  3247. do
  3248. test -f "$ac_file" || continue
  3249. case $ac_file in
  3250. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3251. ;;
  3252. [ab].out )
  3253. # We found the default executable, but exeext='' is most
  3254. # certainly right.
  3255. break;;
  3256. *.* )
  3257. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3258. then :; else
  3259. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3260. fi
  3261. # We set ac_cv_exeext here because the later test for it is not
  3262. # safe: cross compilers may not add the suffix if given an `-o'
  3263. # argument, so we may need to know it at that point already.
  3264. # Even if this section looks crufty: it has the advantage of
  3265. # actually working.
  3266. break;;
  3267. * )
  3268. break;;
  3269. esac
  3270. done
  3271. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3272. else
  3273. ac_file=''
  3274. fi
  3275. if test -z "$ac_file"; then :
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3277. $as_echo "no" >&6; }
  3278. $as_echo "$as_me: failed program was:" >&5
  3279. sed 's/^/| /' conftest.$ac_ext >&5
  3280. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3281. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3282. as_fn_error 77 "C++ compiler cannot create executables
  3283. See \`config.log' for more details" "$LINENO" 5; }
  3284. else
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3286. $as_echo "yes" >&6; }
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3289. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3291. $as_echo "$ac_file" >&6; }
  3292. ac_exeext=$ac_cv_exeext
  3293. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3294. ac_clean_files=$ac_clean_files_save
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3296. $as_echo_n "checking for suffix of executables... " >&6; }
  3297. if { { ac_try="$ac_link"
  3298. case "(($ac_try" in
  3299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3300. *) ac_try_echo=$ac_try;;
  3301. esac
  3302. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3303. $as_echo "$ac_try_echo"; } >&5
  3304. (eval "$ac_link") 2>&5
  3305. ac_status=$?
  3306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3307. test $ac_status = 0; }; then :
  3308. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3309. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3310. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3311. # `rm'.
  3312. for ac_file in conftest.exe conftest conftest.*; do
  3313. test -f "$ac_file" || continue
  3314. case $ac_file in
  3315. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3316. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3317. break;;
  3318. * ) break;;
  3319. esac
  3320. done
  3321. else
  3322. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3324. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3325. See \`config.log' for more details" "$LINENO" 5; }
  3326. fi
  3327. rm -f conftest conftest$ac_cv_exeext
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3329. $as_echo "$ac_cv_exeext" >&6; }
  3330. rm -f conftest.$ac_ext
  3331. EXEEXT=$ac_cv_exeext
  3332. ac_exeext=$EXEEXT
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. #include <stdio.h>
  3336. int
  3337. main ()
  3338. {
  3339. FILE *f = fopen ("conftest.out", "w");
  3340. return ferror (f) || fclose (f) != 0;
  3341. ;
  3342. return 0;
  3343. }
  3344. _ACEOF
  3345. ac_clean_files="$ac_clean_files conftest.out"
  3346. # Check that the compiler produces executables we can run. If not, either
  3347. # the compiler is broken, or we cross compile.
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3349. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3350. if test "$cross_compiling" != yes; then
  3351. { { ac_try="$ac_link"
  3352. case "(($ac_try" in
  3353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3354. *) ac_try_echo=$ac_try;;
  3355. esac
  3356. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3357. $as_echo "$ac_try_echo"; } >&5
  3358. (eval "$ac_link") 2>&5
  3359. ac_status=$?
  3360. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3361. test $ac_status = 0; }
  3362. if { ac_try='./conftest$ac_cv_exeext'
  3363. { { case "(($ac_try" in
  3364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3365. *) ac_try_echo=$ac_try;;
  3366. esac
  3367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3368. $as_echo "$ac_try_echo"; } >&5
  3369. (eval "$ac_try") 2>&5
  3370. ac_status=$?
  3371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3372. test $ac_status = 0; }; }; then
  3373. cross_compiling=no
  3374. else
  3375. if test "$cross_compiling" = maybe; then
  3376. cross_compiling=yes
  3377. else
  3378. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3379. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3380. as_fn_error $? "cannot run C++ compiled programs.
  3381. If you meant to cross compile, use \`--host'.
  3382. See \`config.log' for more details" "$LINENO" 5; }
  3383. fi
  3384. fi
  3385. fi
  3386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3387. $as_echo "$cross_compiling" >&6; }
  3388. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3389. ac_clean_files=$ac_clean_files_save
  3390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3391. $as_echo_n "checking for suffix of object files... " >&6; }
  3392. if ${ac_cv_objext+:} false; then :
  3393. $as_echo_n "(cached) " >&6
  3394. else
  3395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3396. /* end confdefs.h. */
  3397. int
  3398. main ()
  3399. {
  3400. ;
  3401. return 0;
  3402. }
  3403. _ACEOF
  3404. rm -f conftest.o conftest.obj
  3405. if { { ac_try="$ac_compile"
  3406. case "(($ac_try" in
  3407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3408. *) ac_try_echo=$ac_try;;
  3409. esac
  3410. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3411. $as_echo "$ac_try_echo"; } >&5
  3412. (eval "$ac_compile") 2>&5
  3413. ac_status=$?
  3414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3415. test $ac_status = 0; }; then :
  3416. for ac_file in conftest.o conftest.obj conftest.*; do
  3417. test -f "$ac_file" || continue;
  3418. case $ac_file in
  3419. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3420. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3421. break;;
  3422. esac
  3423. done
  3424. else
  3425. $as_echo "$as_me: failed program was:" >&5
  3426. sed 's/^/| /' conftest.$ac_ext >&5
  3427. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3429. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3430. See \`config.log' for more details" "$LINENO" 5; }
  3431. fi
  3432. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3433. fi
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3435. $as_echo "$ac_cv_objext" >&6; }
  3436. OBJEXT=$ac_cv_objext
  3437. ac_objext=$OBJEXT
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3439. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3440. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3441. $as_echo_n "(cached) " >&6
  3442. else
  3443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3444. /* end confdefs.h. */
  3445. int
  3446. main ()
  3447. {
  3448. #ifndef __GNUC__
  3449. choke me
  3450. #endif
  3451. ;
  3452. return 0;
  3453. }
  3454. _ACEOF
  3455. if ac_fn_cxx_try_compile "$LINENO"; then :
  3456. ac_compiler_gnu=yes
  3457. else
  3458. ac_compiler_gnu=no
  3459. fi
  3460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3461. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3462. fi
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3464. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3465. if test $ac_compiler_gnu = yes; then
  3466. GXX=yes
  3467. else
  3468. GXX=
  3469. fi
  3470. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3471. ac_save_CXXFLAGS=$CXXFLAGS
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3473. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3474. if ${ac_cv_prog_cxx_g+:} false; then :
  3475. $as_echo_n "(cached) " >&6
  3476. else
  3477. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3478. ac_cxx_werror_flag=yes
  3479. ac_cv_prog_cxx_g=no
  3480. CXXFLAGS="-g"
  3481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3482. /* end confdefs.h. */
  3483. int
  3484. main ()
  3485. {
  3486. ;
  3487. return 0;
  3488. }
  3489. _ACEOF
  3490. if ac_fn_cxx_try_compile "$LINENO"; then :
  3491. ac_cv_prog_cxx_g=yes
  3492. else
  3493. CXXFLAGS=""
  3494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3495. /* end confdefs.h. */
  3496. int
  3497. main ()
  3498. {
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. if ac_fn_cxx_try_compile "$LINENO"; then :
  3504. else
  3505. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3506. CXXFLAGS="-g"
  3507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3508. /* end confdefs.h. */
  3509. int
  3510. main ()
  3511. {
  3512. ;
  3513. return 0;
  3514. }
  3515. _ACEOF
  3516. if ac_fn_cxx_try_compile "$LINENO"; then :
  3517. ac_cv_prog_cxx_g=yes
  3518. fi
  3519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3520. fi
  3521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3522. fi
  3523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3524. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3525. fi
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3527. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3528. if test "$ac_test_CXXFLAGS" = set; then
  3529. CXXFLAGS=$ac_save_CXXFLAGS
  3530. elif test $ac_cv_prog_cxx_g = yes; then
  3531. if test "$GXX" = yes; then
  3532. CXXFLAGS="-g -O2"
  3533. else
  3534. CXXFLAGS="-g"
  3535. fi
  3536. else
  3537. if test "$GXX" = yes; then
  3538. CXXFLAGS="-O2"
  3539. else
  3540. CXXFLAGS=
  3541. fi
  3542. fi
  3543. ac_ext=c
  3544. ac_cpp='$CPP $CPPFLAGS'
  3545. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3546. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3547. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3548. DEPDIR="${am__leading_dot}deps"
  3549. ac_config_commands="$ac_config_commands depfiles"
  3550. am_make=${MAKE-make}
  3551. cat > confinc << 'END'
  3552. am__doit:
  3553. @echo this is the am__doit target
  3554. .PHONY: am__doit
  3555. END
  3556. # If we don't find an include directive, just comment out the code.
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3558. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3559. am__include="#"
  3560. am__quote=
  3561. _am_result=none
  3562. # First try GNU make style include.
  3563. echo "include confinc" > confmf
  3564. # Ignore all kinds of additional output from 'make'.
  3565. case `$am_make -s -f confmf 2> /dev/null` in #(
  3566. *the\ am__doit\ target*)
  3567. am__include=include
  3568. am__quote=
  3569. _am_result=GNU
  3570. ;;
  3571. esac
  3572. # Now try BSD make style include.
  3573. if test "$am__include" = "#"; then
  3574. echo '.include "confinc"' > confmf
  3575. case `$am_make -s -f confmf 2> /dev/null` in #(
  3576. *the\ am__doit\ target*)
  3577. am__include=.include
  3578. am__quote="\""
  3579. _am_result=BSD
  3580. ;;
  3581. esac
  3582. fi
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3584. $as_echo "$_am_result" >&6; }
  3585. rm -f confinc confmf
  3586. # Check whether --enable-dependency-tracking was given.
  3587. if test "${enable_dependency_tracking+set}" = set; then :
  3588. enableval=$enable_dependency_tracking;
  3589. fi
  3590. if test "x$enable_dependency_tracking" != xno; then
  3591. am_depcomp="$ac_aux_dir/depcomp"
  3592. AMDEPBACKSLASH='\'
  3593. am__nodep='_no'
  3594. fi
  3595. if test "x$enable_dependency_tracking" != xno; then
  3596. AMDEP_TRUE=
  3597. AMDEP_FALSE='#'
  3598. else
  3599. AMDEP_TRUE='#'
  3600. AMDEP_FALSE=
  3601. fi
  3602. depcc="$CXX" am_compiler_list=
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3604. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3605. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3609. # We make a subdir and do the tests there. Otherwise we can end up
  3610. # making bogus files that we don't know about and never remove. For
  3611. # instance it was reported that on HP-UX the gcc test will end up
  3612. # making a dummy file named 'D' -- because '-MD' means "put the output
  3613. # in D".
  3614. rm -rf conftest.dir
  3615. mkdir conftest.dir
  3616. # Copy depcomp to subdir because otherwise we won't find it if we're
  3617. # using a relative directory.
  3618. cp "$am_depcomp" conftest.dir
  3619. cd conftest.dir
  3620. # We will build objects and dependencies in a subdirectory because
  3621. # it helps to detect inapplicable dependency modes. For instance
  3622. # both Tru64's cc and ICC support -MD to output dependencies as a
  3623. # side effect of compilation, but ICC will put the dependencies in
  3624. # the current directory while Tru64 will put them in the object
  3625. # directory.
  3626. mkdir sub
  3627. am_cv_CXX_dependencies_compiler_type=none
  3628. if test "$am_compiler_list" = ""; then
  3629. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3630. fi
  3631. am__universal=false
  3632. case " $depcc " in #(
  3633. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3634. esac
  3635. for depmode in $am_compiler_list; do
  3636. # Setup a source with many dependencies, because some compilers
  3637. # like to wrap large dependency lists on column 80 (with \), and
  3638. # we should not choose a depcomp mode which is confused by this.
  3639. #
  3640. # We need to recreate these files for each test, as the compiler may
  3641. # overwrite some of them when testing with obscure command lines.
  3642. # This happens at least with the AIX C compiler.
  3643. : > sub/conftest.c
  3644. for i in 1 2 3 4 5 6; do
  3645. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3646. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3647. # Solaris 10 /bin/sh.
  3648. echo '/* dummy */' > sub/conftst$i.h
  3649. done
  3650. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3651. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3652. # mode. It turns out that the SunPro C++ compiler does not properly
  3653. # handle '-M -o', and we need to detect this. Also, some Intel
  3654. # versions had trouble with output in subdirs.
  3655. am__obj=sub/conftest.${OBJEXT-o}
  3656. am__minus_obj="-o $am__obj"
  3657. case $depmode in
  3658. gcc)
  3659. # This depmode causes a compiler race in universal mode.
  3660. test "$am__universal" = false || continue
  3661. ;;
  3662. nosideeffect)
  3663. # After this tag, mechanisms are not by side-effect, so they'll
  3664. # only be used when explicitly requested.
  3665. if test "x$enable_dependency_tracking" = xyes; then
  3666. continue
  3667. else
  3668. break
  3669. fi
  3670. ;;
  3671. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3672. # This compiler won't grok '-c -o', but also, the minuso test has
  3673. # not run yet. These depmodes are late enough in the game, and
  3674. # so weak that their functioning should not be impacted.
  3675. am__obj=conftest.${OBJEXT-o}
  3676. am__minus_obj=
  3677. ;;
  3678. none) break ;;
  3679. esac
  3680. if depmode=$depmode \
  3681. source=sub/conftest.c object=$am__obj \
  3682. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3683. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3684. >/dev/null 2>conftest.err &&
  3685. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3686. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3687. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3688. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3689. # icc doesn't choke on unknown options, it will just issue warnings
  3690. # or remarks (even with -Werror). So we grep stderr for any message
  3691. # that says an option was ignored or not supported.
  3692. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3693. # icc: Command line warning: ignoring option '-M'; no argument required
  3694. # The diagnosis changed in icc 8.0:
  3695. # icc: Command line remark: option '-MP' not supported
  3696. if (grep 'ignoring option' conftest.err ||
  3697. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3698. am_cv_CXX_dependencies_compiler_type=$depmode
  3699. break
  3700. fi
  3701. fi
  3702. done
  3703. cd ..
  3704. rm -rf conftest.dir
  3705. else
  3706. am_cv_CXX_dependencies_compiler_type=none
  3707. fi
  3708. fi
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3710. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3711. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3712. if
  3713. test "x$enable_dependency_tracking" != xno \
  3714. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3715. am__fastdepCXX_TRUE=
  3716. am__fastdepCXX_FALSE='#'
  3717. else
  3718. am__fastdepCXX_TRUE='#'
  3719. am__fastdepCXX_FALSE=
  3720. fi
  3721. ac_ext=c
  3722. ac_cpp='$CPP $CPPFLAGS'
  3723. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3724. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3725. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3726. if test -n "$ac_tool_prefix"; then
  3727. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3728. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3730. $as_echo_n "checking for $ac_word... " >&6; }
  3731. if ${ac_cv_prog_CC+:} false; then :
  3732. $as_echo_n "(cached) " >&6
  3733. else
  3734. if test -n "$CC"; then
  3735. ac_cv_prog_CC="$CC" # Let the user override the test.
  3736. else
  3737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3738. for as_dir in $PATH
  3739. do
  3740. IFS=$as_save_IFS
  3741. test -z "$as_dir" && as_dir=.
  3742. for ac_exec_ext in '' $ac_executable_extensions; do
  3743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3744. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3746. break 2
  3747. fi
  3748. done
  3749. done
  3750. IFS=$as_save_IFS
  3751. fi
  3752. fi
  3753. CC=$ac_cv_prog_CC
  3754. if test -n "$CC"; then
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3756. $as_echo "$CC" >&6; }
  3757. else
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3759. $as_echo "no" >&6; }
  3760. fi
  3761. fi
  3762. if test -z "$ac_cv_prog_CC"; then
  3763. ac_ct_CC=$CC
  3764. # Extract the first word of "gcc", so it can be a program name with args.
  3765. set dummy gcc; ac_word=$2
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3767. $as_echo_n "checking for $ac_word... " >&6; }
  3768. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. if test -n "$ac_ct_CC"; then
  3772. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3773. else
  3774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3775. for as_dir in $PATH
  3776. do
  3777. IFS=$as_save_IFS
  3778. test -z "$as_dir" && as_dir=.
  3779. for ac_exec_ext in '' $ac_executable_extensions; do
  3780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3781. ac_cv_prog_ac_ct_CC="gcc"
  3782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3783. break 2
  3784. fi
  3785. done
  3786. done
  3787. IFS=$as_save_IFS
  3788. fi
  3789. fi
  3790. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3791. if test -n "$ac_ct_CC"; then
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3793. $as_echo "$ac_ct_CC" >&6; }
  3794. else
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3796. $as_echo "no" >&6; }
  3797. fi
  3798. if test "x$ac_ct_CC" = x; then
  3799. CC=""
  3800. else
  3801. case $cross_compiling:$ac_tool_warned in
  3802. yes:)
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3805. ac_tool_warned=yes ;;
  3806. esac
  3807. CC=$ac_ct_CC
  3808. fi
  3809. else
  3810. CC="$ac_cv_prog_CC"
  3811. fi
  3812. if test -z "$CC"; then
  3813. if test -n "$ac_tool_prefix"; then
  3814. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3815. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3817. $as_echo_n "checking for $ac_word... " >&6; }
  3818. if ${ac_cv_prog_CC+:} false; then :
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. if test -n "$CC"; then
  3822. ac_cv_prog_CC="$CC" # Let the user override the test.
  3823. else
  3824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3825. for as_dir in $PATH
  3826. do
  3827. IFS=$as_save_IFS
  3828. test -z "$as_dir" && as_dir=.
  3829. for ac_exec_ext in '' $ac_executable_extensions; do
  3830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3831. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3833. break 2
  3834. fi
  3835. done
  3836. done
  3837. IFS=$as_save_IFS
  3838. fi
  3839. fi
  3840. CC=$ac_cv_prog_CC
  3841. if test -n "$CC"; then
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3843. $as_echo "$CC" >&6; }
  3844. else
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3846. $as_echo "no" >&6; }
  3847. fi
  3848. fi
  3849. fi
  3850. if test -z "$CC"; then
  3851. # Extract the first word of "cc", so it can be a program name with args.
  3852. set dummy cc; ac_word=$2
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3854. $as_echo_n "checking for $ac_word... " >&6; }
  3855. if ${ac_cv_prog_CC+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -n "$CC"; then
  3859. ac_cv_prog_CC="$CC" # Let the user override the test.
  3860. else
  3861. ac_prog_rejected=no
  3862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3863. for as_dir in $PATH
  3864. do
  3865. IFS=$as_save_IFS
  3866. test -z "$as_dir" && as_dir=.
  3867. for ac_exec_ext in '' $ac_executable_extensions; do
  3868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3869. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3870. ac_prog_rejected=yes
  3871. continue
  3872. fi
  3873. ac_cv_prog_CC="cc"
  3874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3875. break 2
  3876. fi
  3877. done
  3878. done
  3879. IFS=$as_save_IFS
  3880. if test $ac_prog_rejected = yes; then
  3881. # We found a bogon in the path, so make sure we never use it.
  3882. set dummy $ac_cv_prog_CC
  3883. shift
  3884. if test $# != 0; then
  3885. # We chose a different compiler from the bogus one.
  3886. # However, it has the same basename, so the bogon will be chosen
  3887. # first if we set CC to just the basename; use the full file name.
  3888. shift
  3889. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3890. fi
  3891. fi
  3892. fi
  3893. fi
  3894. CC=$ac_cv_prog_CC
  3895. if test -n "$CC"; then
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3897. $as_echo "$CC" >&6; }
  3898. else
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3900. $as_echo "no" >&6; }
  3901. fi
  3902. fi
  3903. if test -z "$CC"; then
  3904. if test -n "$ac_tool_prefix"; then
  3905. for ac_prog in cl.exe
  3906. do
  3907. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3908. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3910. $as_echo_n "checking for $ac_word... " >&6; }
  3911. if ${ac_cv_prog_CC+:} false; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. if test -n "$CC"; then
  3915. ac_cv_prog_CC="$CC" # Let the user override the test.
  3916. else
  3917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3918. for as_dir in $PATH
  3919. do
  3920. IFS=$as_save_IFS
  3921. test -z "$as_dir" && as_dir=.
  3922. for ac_exec_ext in '' $ac_executable_extensions; do
  3923. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3924. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3926. break 2
  3927. fi
  3928. done
  3929. done
  3930. IFS=$as_save_IFS
  3931. fi
  3932. fi
  3933. CC=$ac_cv_prog_CC
  3934. if test -n "$CC"; then
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3936. $as_echo "$CC" >&6; }
  3937. else
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3939. $as_echo "no" >&6; }
  3940. fi
  3941. test -n "$CC" && break
  3942. done
  3943. fi
  3944. if test -z "$CC"; then
  3945. ac_ct_CC=$CC
  3946. for ac_prog in cl.exe
  3947. do
  3948. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3949. set dummy $ac_prog; ac_word=$2
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3951. $as_echo_n "checking for $ac_word... " >&6; }
  3952. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3953. $as_echo_n "(cached) " >&6
  3954. else
  3955. if test -n "$ac_ct_CC"; then
  3956. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3957. else
  3958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3959. for as_dir in $PATH
  3960. do
  3961. IFS=$as_save_IFS
  3962. test -z "$as_dir" && as_dir=.
  3963. for ac_exec_ext in '' $ac_executable_extensions; do
  3964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3965. ac_cv_prog_ac_ct_CC="$ac_prog"
  3966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3967. break 2
  3968. fi
  3969. done
  3970. done
  3971. IFS=$as_save_IFS
  3972. fi
  3973. fi
  3974. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3975. if test -n "$ac_ct_CC"; then
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3977. $as_echo "$ac_ct_CC" >&6; }
  3978. else
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3980. $as_echo "no" >&6; }
  3981. fi
  3982. test -n "$ac_ct_CC" && break
  3983. done
  3984. if test "x$ac_ct_CC" = x; then
  3985. CC=""
  3986. else
  3987. case $cross_compiling:$ac_tool_warned in
  3988. yes:)
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3990. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3991. ac_tool_warned=yes ;;
  3992. esac
  3993. CC=$ac_ct_CC
  3994. fi
  3995. fi
  3996. fi
  3997. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3998. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3999. as_fn_error $? "no acceptable C compiler found in \$PATH
  4000. See \`config.log' for more details" "$LINENO" 5; }
  4001. # Provide some information about the compiler.
  4002. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4003. set X $ac_compile
  4004. ac_compiler=$2
  4005. for ac_option in --version -v -V -qversion; do
  4006. { { ac_try="$ac_compiler $ac_option >&5"
  4007. case "(($ac_try" in
  4008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4009. *) ac_try_echo=$ac_try;;
  4010. esac
  4011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4012. $as_echo "$ac_try_echo"; } >&5
  4013. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4014. ac_status=$?
  4015. if test -s conftest.err; then
  4016. sed '10a\
  4017. ... rest of stderr output deleted ...
  4018. 10q' conftest.err >conftest.er1
  4019. cat conftest.er1 >&5
  4020. fi
  4021. rm -f conftest.er1 conftest.err
  4022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4023. test $ac_status = 0; }
  4024. done
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4026. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4027. if ${ac_cv_c_compiler_gnu+:} false; then :
  4028. $as_echo_n "(cached) " >&6
  4029. else
  4030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4031. /* end confdefs.h. */
  4032. int
  4033. main ()
  4034. {
  4035. #ifndef __GNUC__
  4036. choke me
  4037. #endif
  4038. ;
  4039. return 0;
  4040. }
  4041. _ACEOF
  4042. if ac_fn_c_try_compile "$LINENO"; then :
  4043. ac_compiler_gnu=yes
  4044. else
  4045. ac_compiler_gnu=no
  4046. fi
  4047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4048. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4049. fi
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4051. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4052. if test $ac_compiler_gnu = yes; then
  4053. GCC=yes
  4054. else
  4055. GCC=
  4056. fi
  4057. ac_test_CFLAGS=${CFLAGS+set}
  4058. ac_save_CFLAGS=$CFLAGS
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4060. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4061. if ${ac_cv_prog_cc_g+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. ac_save_c_werror_flag=$ac_c_werror_flag
  4065. ac_c_werror_flag=yes
  4066. ac_cv_prog_cc_g=no
  4067. CFLAGS="-g"
  4068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4069. /* end confdefs.h. */
  4070. int
  4071. main ()
  4072. {
  4073. ;
  4074. return 0;
  4075. }
  4076. _ACEOF
  4077. if ac_fn_c_try_compile "$LINENO"; then :
  4078. ac_cv_prog_cc_g=yes
  4079. else
  4080. CFLAGS=""
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. int
  4084. main ()
  4085. {
  4086. ;
  4087. return 0;
  4088. }
  4089. _ACEOF
  4090. if ac_fn_c_try_compile "$LINENO"; then :
  4091. else
  4092. ac_c_werror_flag=$ac_save_c_werror_flag
  4093. CFLAGS="-g"
  4094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4095. /* end confdefs.h. */
  4096. int
  4097. main ()
  4098. {
  4099. ;
  4100. return 0;
  4101. }
  4102. _ACEOF
  4103. if ac_fn_c_try_compile "$LINENO"; then :
  4104. ac_cv_prog_cc_g=yes
  4105. fi
  4106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4107. fi
  4108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4109. fi
  4110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4111. ac_c_werror_flag=$ac_save_c_werror_flag
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4114. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4115. if test "$ac_test_CFLAGS" = set; then
  4116. CFLAGS=$ac_save_CFLAGS
  4117. elif test $ac_cv_prog_cc_g = yes; then
  4118. if test "$GCC" = yes; then
  4119. CFLAGS="-g -O2"
  4120. else
  4121. CFLAGS="-g"
  4122. fi
  4123. else
  4124. if test "$GCC" = yes; then
  4125. CFLAGS="-O2"
  4126. else
  4127. CFLAGS=
  4128. fi
  4129. fi
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4131. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4132. if ${ac_cv_prog_cc_c89+:} false; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. ac_cv_prog_cc_c89=no
  4136. ac_save_CC=$CC
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. #include <stdarg.h>
  4140. #include <stdio.h>
  4141. struct stat;
  4142. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4143. struct buf { int x; };
  4144. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4145. static char *e (p, i)
  4146. char **p;
  4147. int i;
  4148. {
  4149. return p[i];
  4150. }
  4151. static char *f (char * (*g) (char **, int), char **p, ...)
  4152. {
  4153. char *s;
  4154. va_list v;
  4155. va_start (v,p);
  4156. s = g (p, va_arg (v,int));
  4157. va_end (v);
  4158. return s;
  4159. }
  4160. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4161. function prototypes and stuff, but not '\xHH' hex character constants.
  4162. These don't provoke an error unfortunately, instead are silently treated
  4163. as 'x'. The following induces an error, until -std is added to get
  4164. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4165. array size at least. It's necessary to write '\x00'==0 to get something
  4166. that's true only with -std. */
  4167. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4168. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4169. inside strings and character constants. */
  4170. #define FOO(x) 'x'
  4171. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4172. int test (int i, double x);
  4173. struct s1 {int (*f) (int a);};
  4174. struct s2 {int (*f) (double a);};
  4175. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4176. int argc;
  4177. char **argv;
  4178. int
  4179. main ()
  4180. {
  4181. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4182. ;
  4183. return 0;
  4184. }
  4185. _ACEOF
  4186. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4187. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4188. do
  4189. CC="$ac_save_CC $ac_arg"
  4190. if ac_fn_c_try_compile "$LINENO"; then :
  4191. ac_cv_prog_cc_c89=$ac_arg
  4192. fi
  4193. rm -f core conftest.err conftest.$ac_objext
  4194. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4195. done
  4196. rm -f conftest.$ac_ext
  4197. CC=$ac_save_CC
  4198. fi
  4199. # AC_CACHE_VAL
  4200. case "x$ac_cv_prog_cc_c89" in
  4201. x)
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4203. $as_echo "none needed" >&6; } ;;
  4204. xno)
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4206. $as_echo "unsupported" >&6; } ;;
  4207. *)
  4208. CC="$CC $ac_cv_prog_cc_c89"
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4210. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4211. esac
  4212. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4213. fi
  4214. ac_ext=c
  4215. ac_cpp='$CPP $CPPFLAGS'
  4216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4219. depcc="$CC" am_compiler_list=
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4221. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4222. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4223. $as_echo_n "(cached) " >&6
  4224. else
  4225. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4226. # We make a subdir and do the tests there. Otherwise we can end up
  4227. # making bogus files that we don't know about and never remove. For
  4228. # instance it was reported that on HP-UX the gcc test will end up
  4229. # making a dummy file named 'D' -- because '-MD' means "put the output
  4230. # in D".
  4231. rm -rf conftest.dir
  4232. mkdir conftest.dir
  4233. # Copy depcomp to subdir because otherwise we won't find it if we're
  4234. # using a relative directory.
  4235. cp "$am_depcomp" conftest.dir
  4236. cd conftest.dir
  4237. # We will build objects and dependencies in a subdirectory because
  4238. # it helps to detect inapplicable dependency modes. For instance
  4239. # both Tru64's cc and ICC support -MD to output dependencies as a
  4240. # side effect of compilation, but ICC will put the dependencies in
  4241. # the current directory while Tru64 will put them in the object
  4242. # directory.
  4243. mkdir sub
  4244. am_cv_CC_dependencies_compiler_type=none
  4245. if test "$am_compiler_list" = ""; then
  4246. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4247. fi
  4248. am__universal=false
  4249. case " $depcc " in #(
  4250. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4251. esac
  4252. for depmode in $am_compiler_list; do
  4253. # Setup a source with many dependencies, because some compilers
  4254. # like to wrap large dependency lists on column 80 (with \), and
  4255. # we should not choose a depcomp mode which is confused by this.
  4256. #
  4257. # We need to recreate these files for each test, as the compiler may
  4258. # overwrite some of them when testing with obscure command lines.
  4259. # This happens at least with the AIX C compiler.
  4260. : > sub/conftest.c
  4261. for i in 1 2 3 4 5 6; do
  4262. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4263. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4264. # Solaris 10 /bin/sh.
  4265. echo '/* dummy */' > sub/conftst$i.h
  4266. done
  4267. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4268. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4269. # mode. It turns out that the SunPro C++ compiler does not properly
  4270. # handle '-M -o', and we need to detect this. Also, some Intel
  4271. # versions had trouble with output in subdirs.
  4272. am__obj=sub/conftest.${OBJEXT-o}
  4273. am__minus_obj="-o $am__obj"
  4274. case $depmode in
  4275. gcc)
  4276. # This depmode causes a compiler race in universal mode.
  4277. test "$am__universal" = false || continue
  4278. ;;
  4279. nosideeffect)
  4280. # After this tag, mechanisms are not by side-effect, so they'll
  4281. # only be used when explicitly requested.
  4282. if test "x$enable_dependency_tracking" = xyes; then
  4283. continue
  4284. else
  4285. break
  4286. fi
  4287. ;;
  4288. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4289. # This compiler won't grok '-c -o', but also, the minuso test has
  4290. # not run yet. These depmodes are late enough in the game, and
  4291. # so weak that their functioning should not be impacted.
  4292. am__obj=conftest.${OBJEXT-o}
  4293. am__minus_obj=
  4294. ;;
  4295. none) break ;;
  4296. esac
  4297. if depmode=$depmode \
  4298. source=sub/conftest.c object=$am__obj \
  4299. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4300. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4301. >/dev/null 2>conftest.err &&
  4302. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4303. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4304. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4305. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4306. # icc doesn't choke on unknown options, it will just issue warnings
  4307. # or remarks (even with -Werror). So we grep stderr for any message
  4308. # that says an option was ignored or not supported.
  4309. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4310. # icc: Command line warning: ignoring option '-M'; no argument required
  4311. # The diagnosis changed in icc 8.0:
  4312. # icc: Command line remark: option '-MP' not supported
  4313. if (grep 'ignoring option' conftest.err ||
  4314. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4315. am_cv_CC_dependencies_compiler_type=$depmode
  4316. break
  4317. fi
  4318. fi
  4319. done
  4320. cd ..
  4321. rm -rf conftest.dir
  4322. else
  4323. am_cv_CC_dependencies_compiler_type=none
  4324. fi
  4325. fi
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4327. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4328. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4329. if
  4330. test "x$enable_dependency_tracking" != xno \
  4331. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4332. am__fastdepCC_TRUE=
  4333. am__fastdepCC_FALSE='#'
  4334. else
  4335. am__fastdepCC_TRUE='#'
  4336. am__fastdepCC_FALSE=
  4337. fi
  4338. if test "x$CC" != xcc; then
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4340. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4341. else
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4343. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4344. fi
  4345. set dummy $CC; ac_cc=`$as_echo "$2" |
  4346. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4347. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4348. $as_echo_n "(cached) " >&6
  4349. else
  4350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4351. /* end confdefs.h. */
  4352. int
  4353. main ()
  4354. {
  4355. ;
  4356. return 0;
  4357. }
  4358. _ACEOF
  4359. # Make sure it works both with $CC and with simple cc.
  4360. # We do the test twice because some compilers refuse to overwrite an
  4361. # existing .o file with -o, though they will create one.
  4362. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4363. rm -f conftest2.*
  4364. if { { case "(($ac_try" in
  4365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4366. *) ac_try_echo=$ac_try;;
  4367. esac
  4368. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4369. $as_echo "$ac_try_echo"; } >&5
  4370. (eval "$ac_try") 2>&5
  4371. ac_status=$?
  4372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4373. test $ac_status = 0; } &&
  4374. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4376. *) ac_try_echo=$ac_try;;
  4377. esac
  4378. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4379. $as_echo "$ac_try_echo"; } >&5
  4380. (eval "$ac_try") 2>&5
  4381. ac_status=$?
  4382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4383. test $ac_status = 0; };
  4384. then
  4385. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4386. if test "x$CC" != xcc; then
  4387. # Test first that cc exists at all.
  4388. if { ac_try='cc -c conftest.$ac_ext >&5'
  4389. { { case "(($ac_try" in
  4390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4391. *) ac_try_echo=$ac_try;;
  4392. esac
  4393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4394. $as_echo "$ac_try_echo"; } >&5
  4395. (eval "$ac_try") 2>&5
  4396. ac_status=$?
  4397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4398. test $ac_status = 0; }; }; then
  4399. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4400. rm -f conftest2.*
  4401. if { { case "(($ac_try" in
  4402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4403. *) ac_try_echo=$ac_try;;
  4404. esac
  4405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4406. $as_echo "$ac_try_echo"; } >&5
  4407. (eval "$ac_try") 2>&5
  4408. ac_status=$?
  4409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4410. test $ac_status = 0; } &&
  4411. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4413. *) ac_try_echo=$ac_try;;
  4414. esac
  4415. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4416. $as_echo "$ac_try_echo"; } >&5
  4417. (eval "$ac_try") 2>&5
  4418. ac_status=$?
  4419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4420. test $ac_status = 0; };
  4421. then
  4422. # cc works too.
  4423. :
  4424. else
  4425. # cc exists but doesn't like -o.
  4426. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4427. fi
  4428. fi
  4429. fi
  4430. else
  4431. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4432. fi
  4433. rm -f core conftest*
  4434. fi
  4435. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4437. $as_echo "yes" >&6; }
  4438. else
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4440. $as_echo "no" >&6; }
  4441. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4442. fi
  4443. # FIXME: we rely on the cache variable name because
  4444. # there is no other way.
  4445. set dummy $CC
  4446. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4447. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4448. if test "$am_t" != yes; then
  4449. # Losing compiler, so override with the script.
  4450. # FIXME: It is wrong to rewrite CC.
  4451. # But if we don't then we get into trouble of one sort or another.
  4452. # A longer-term fix would be to have automake use am__CC in this case,
  4453. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4454. CC="$am_aux_dir/compile $CC"
  4455. fi
  4456. # By default we simply use the C compiler to build assembly code.
  4457. test "${CCAS+set}" = set || CCAS=$CC
  4458. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4459. depcc="$CCAS" am_compiler_list=
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4461. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4462. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4463. $as_echo_n "(cached) " >&6
  4464. else
  4465. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4466. # We make a subdir and do the tests there. Otherwise we can end up
  4467. # making bogus files that we don't know about and never remove. For
  4468. # instance it was reported that on HP-UX the gcc test will end up
  4469. # making a dummy file named 'D' -- because '-MD' means "put the output
  4470. # in D".
  4471. rm -rf conftest.dir
  4472. mkdir conftest.dir
  4473. # Copy depcomp to subdir because otherwise we won't find it if we're
  4474. # using a relative directory.
  4475. cp "$am_depcomp" conftest.dir
  4476. cd conftest.dir
  4477. # We will build objects and dependencies in a subdirectory because
  4478. # it helps to detect inapplicable dependency modes. For instance
  4479. # both Tru64's cc and ICC support -MD to output dependencies as a
  4480. # side effect of compilation, but ICC will put the dependencies in
  4481. # the current directory while Tru64 will put them in the object
  4482. # directory.
  4483. mkdir sub
  4484. am_cv_CCAS_dependencies_compiler_type=none
  4485. if test "$am_compiler_list" = ""; then
  4486. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4487. fi
  4488. am__universal=false
  4489. for depmode in $am_compiler_list; do
  4490. # Setup a source with many dependencies, because some compilers
  4491. # like to wrap large dependency lists on column 80 (with \), and
  4492. # we should not choose a depcomp mode which is confused by this.
  4493. #
  4494. # We need to recreate these files for each test, as the compiler may
  4495. # overwrite some of them when testing with obscure command lines.
  4496. # This happens at least with the AIX C compiler.
  4497. : > sub/conftest.c
  4498. for i in 1 2 3 4 5 6; do
  4499. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4500. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4501. # Solaris 10 /bin/sh.
  4502. echo '/* dummy */' > sub/conftst$i.h
  4503. done
  4504. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4505. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4506. # mode. It turns out that the SunPro C++ compiler does not properly
  4507. # handle '-M -o', and we need to detect this. Also, some Intel
  4508. # versions had trouble with output in subdirs.
  4509. am__obj=sub/conftest.${OBJEXT-o}
  4510. am__minus_obj="-o $am__obj"
  4511. case $depmode in
  4512. gcc)
  4513. # This depmode causes a compiler race in universal mode.
  4514. test "$am__universal" = false || continue
  4515. ;;
  4516. nosideeffect)
  4517. # After this tag, mechanisms are not by side-effect, so they'll
  4518. # only be used when explicitly requested.
  4519. if test "x$enable_dependency_tracking" = xyes; then
  4520. continue
  4521. else
  4522. break
  4523. fi
  4524. ;;
  4525. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4526. # This compiler won't grok '-c -o', but also, the minuso test has
  4527. # not run yet. These depmodes are late enough in the game, and
  4528. # so weak that their functioning should not be impacted.
  4529. am__obj=conftest.${OBJEXT-o}
  4530. am__minus_obj=
  4531. ;;
  4532. none) break ;;
  4533. esac
  4534. if depmode=$depmode \
  4535. source=sub/conftest.c object=$am__obj \
  4536. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4537. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4538. >/dev/null 2>conftest.err &&
  4539. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4540. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4541. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4542. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4543. # icc doesn't choke on unknown options, it will just issue warnings
  4544. # or remarks (even with -Werror). So we grep stderr for any message
  4545. # that says an option was ignored or not supported.
  4546. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4547. # icc: Command line warning: ignoring option '-M'; no argument required
  4548. # The diagnosis changed in icc 8.0:
  4549. # icc: Command line remark: option '-MP' not supported
  4550. if (grep 'ignoring option' conftest.err ||
  4551. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4552. am_cv_CCAS_dependencies_compiler_type=$depmode
  4553. break
  4554. fi
  4555. fi
  4556. done
  4557. cd ..
  4558. rm -rf conftest.dir
  4559. else
  4560. am_cv_CCAS_dependencies_compiler_type=none
  4561. fi
  4562. fi
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4564. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4565. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4566. if
  4567. test "x$enable_dependency_tracking" != xno \
  4568. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4569. am__fastdepCCAS_TRUE=
  4570. am__fastdepCCAS_FALSE='#'
  4571. else
  4572. am__fastdepCCAS_TRUE='#'
  4573. am__fastdepCCAS_FALSE=
  4574. fi
  4575. # disable static libs by default - we only use a couple
  4576. # Check whether --enable-static was given.
  4577. if test "${enable_static+set}" = set; then :
  4578. enableval=$enable_static; p=${PACKAGE-default}
  4579. case $enableval in
  4580. yes) enable_static=yes ;;
  4581. no) enable_static=no ;;
  4582. *)
  4583. enable_static=no
  4584. # Look at the argument we got. We use all the common list separators.
  4585. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4586. for pkg in $enableval; do
  4587. IFS="$lt_save_ifs"
  4588. if test "X$pkg" = "X$p"; then
  4589. enable_static=yes
  4590. fi
  4591. done
  4592. IFS="$lt_save_ifs"
  4593. ;;
  4594. esac
  4595. else
  4596. enable_static=no
  4597. fi
  4598. case `pwd` in
  4599. *\ * | *\ *)
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4601. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4602. esac
  4603. macro_version='2.4.2'
  4604. macro_revision='1.3337'
  4605. ltmain="$ac_aux_dir/ltmain.sh"
  4606. # Backslashify metacharacters that are still active within
  4607. # double-quoted strings.
  4608. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4609. # Same as above, but do not quote variable references.
  4610. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4611. # Sed substitution to delay expansion of an escaped shell variable in a
  4612. # double_quote_subst'ed string.
  4613. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4614. # Sed substitution to delay expansion of an escaped single quote.
  4615. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4616. # Sed substitution to avoid accidental globbing in evaled expressions
  4617. no_glob_subst='s/\*/\\\*/g'
  4618. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4619. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4620. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4622. $as_echo_n "checking how to print strings... " >&6; }
  4623. # Test print first, because it will be a builtin if present.
  4624. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4625. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4626. ECHO='print -r --'
  4627. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4628. ECHO='printf %s\n'
  4629. else
  4630. # Use this function as a fallback that always works.
  4631. func_fallback_echo ()
  4632. {
  4633. eval 'cat <<_LTECHO_EOF
  4634. $1
  4635. _LTECHO_EOF'
  4636. }
  4637. ECHO='func_fallback_echo'
  4638. fi
  4639. # func_echo_all arg...
  4640. # Invoke $ECHO with all args, space-separated.
  4641. func_echo_all ()
  4642. {
  4643. $ECHO ""
  4644. }
  4645. case "$ECHO" in
  4646. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4647. $as_echo "printf" >&6; } ;;
  4648. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4649. $as_echo "print -r" >&6; } ;;
  4650. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4651. $as_echo "cat" >&6; } ;;
  4652. esac
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4654. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4655. if ${ac_cv_path_SED+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4659. for ac_i in 1 2 3 4 5 6 7; do
  4660. ac_script="$ac_script$as_nl$ac_script"
  4661. done
  4662. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4663. { ac_script=; unset ac_script;}
  4664. if test -z "$SED"; then
  4665. ac_path_SED_found=false
  4666. # Loop through the user's path and test for each of PROGNAME-LIST
  4667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4668. for as_dir in $PATH
  4669. do
  4670. IFS=$as_save_IFS
  4671. test -z "$as_dir" && as_dir=.
  4672. for ac_prog in sed gsed; do
  4673. for ac_exec_ext in '' $ac_executable_extensions; do
  4674. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4675. as_fn_executable_p "$ac_path_SED" || continue
  4676. # Check for GNU ac_path_SED and select it if it is found.
  4677. # Check for GNU $ac_path_SED
  4678. case `"$ac_path_SED" --version 2>&1` in
  4679. *GNU*)
  4680. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4681. *)
  4682. ac_count=0
  4683. $as_echo_n 0123456789 >"conftest.in"
  4684. while :
  4685. do
  4686. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4687. mv "conftest.tmp" "conftest.in"
  4688. cp "conftest.in" "conftest.nl"
  4689. $as_echo '' >> "conftest.nl"
  4690. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4691. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4692. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4693. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4694. # Best one so far, save it but keep looking for a better one
  4695. ac_cv_path_SED="$ac_path_SED"
  4696. ac_path_SED_max=$ac_count
  4697. fi
  4698. # 10*(2^10) chars as input seems more than enough
  4699. test $ac_count -gt 10 && break
  4700. done
  4701. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4702. esac
  4703. $ac_path_SED_found && break 3
  4704. done
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. if test -z "$ac_cv_path_SED"; then
  4709. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4710. fi
  4711. else
  4712. ac_cv_path_SED=$SED
  4713. fi
  4714. fi
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4716. $as_echo "$ac_cv_path_SED" >&6; }
  4717. SED="$ac_cv_path_SED"
  4718. rm -f conftest.sed
  4719. test -z "$SED" && SED=sed
  4720. Xsed="$SED -e 1s/^X//"
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4722. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4723. if ${ac_cv_path_GREP+:} false; then :
  4724. $as_echo_n "(cached) " >&6
  4725. else
  4726. if test -z "$GREP"; then
  4727. ac_path_GREP_found=false
  4728. # Loop through the user's path and test for each of PROGNAME-LIST
  4729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4730. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4731. do
  4732. IFS=$as_save_IFS
  4733. test -z "$as_dir" && as_dir=.
  4734. for ac_prog in grep ggrep; do
  4735. for ac_exec_ext in '' $ac_executable_extensions; do
  4736. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4737. as_fn_executable_p "$ac_path_GREP" || continue
  4738. # Check for GNU ac_path_GREP and select it if it is found.
  4739. # Check for GNU $ac_path_GREP
  4740. case `"$ac_path_GREP" --version 2>&1` in
  4741. *GNU*)
  4742. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4743. *)
  4744. ac_count=0
  4745. $as_echo_n 0123456789 >"conftest.in"
  4746. while :
  4747. do
  4748. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4749. mv "conftest.tmp" "conftest.in"
  4750. cp "conftest.in" "conftest.nl"
  4751. $as_echo 'GREP' >> "conftest.nl"
  4752. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4753. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4754. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4755. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4756. # Best one so far, save it but keep looking for a better one
  4757. ac_cv_path_GREP="$ac_path_GREP"
  4758. ac_path_GREP_max=$ac_count
  4759. fi
  4760. # 10*(2^10) chars as input seems more than enough
  4761. test $ac_count -gt 10 && break
  4762. done
  4763. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4764. esac
  4765. $ac_path_GREP_found && break 3
  4766. done
  4767. done
  4768. done
  4769. IFS=$as_save_IFS
  4770. if test -z "$ac_cv_path_GREP"; then
  4771. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4772. fi
  4773. else
  4774. ac_cv_path_GREP=$GREP
  4775. fi
  4776. fi
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4778. $as_echo "$ac_cv_path_GREP" >&6; }
  4779. GREP="$ac_cv_path_GREP"
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4781. $as_echo_n "checking for egrep... " >&6; }
  4782. if ${ac_cv_path_EGREP+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4786. then ac_cv_path_EGREP="$GREP -E"
  4787. else
  4788. if test -z "$EGREP"; then
  4789. ac_path_EGREP_found=false
  4790. # Loop through the user's path and test for each of PROGNAME-LIST
  4791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4792. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4793. do
  4794. IFS=$as_save_IFS
  4795. test -z "$as_dir" && as_dir=.
  4796. for ac_prog in egrep; do
  4797. for ac_exec_ext in '' $ac_executable_extensions; do
  4798. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4799. as_fn_executable_p "$ac_path_EGREP" || continue
  4800. # Check for GNU ac_path_EGREP and select it if it is found.
  4801. # Check for GNU $ac_path_EGREP
  4802. case `"$ac_path_EGREP" --version 2>&1` in
  4803. *GNU*)
  4804. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4805. *)
  4806. ac_count=0
  4807. $as_echo_n 0123456789 >"conftest.in"
  4808. while :
  4809. do
  4810. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4811. mv "conftest.tmp" "conftest.in"
  4812. cp "conftest.in" "conftest.nl"
  4813. $as_echo 'EGREP' >> "conftest.nl"
  4814. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4815. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4816. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4817. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4818. # Best one so far, save it but keep looking for a better one
  4819. ac_cv_path_EGREP="$ac_path_EGREP"
  4820. ac_path_EGREP_max=$ac_count
  4821. fi
  4822. # 10*(2^10) chars as input seems more than enough
  4823. test $ac_count -gt 10 && break
  4824. done
  4825. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4826. esac
  4827. $ac_path_EGREP_found && break 3
  4828. done
  4829. done
  4830. done
  4831. IFS=$as_save_IFS
  4832. if test -z "$ac_cv_path_EGREP"; then
  4833. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4834. fi
  4835. else
  4836. ac_cv_path_EGREP=$EGREP
  4837. fi
  4838. fi
  4839. fi
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4841. $as_echo "$ac_cv_path_EGREP" >&6; }
  4842. EGREP="$ac_cv_path_EGREP"
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4844. $as_echo_n "checking for fgrep... " >&6; }
  4845. if ${ac_cv_path_FGREP+:} false; then :
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4849. then ac_cv_path_FGREP="$GREP -F"
  4850. else
  4851. if test -z "$FGREP"; then
  4852. ac_path_FGREP_found=false
  4853. # Loop through the user's path and test for each of PROGNAME-LIST
  4854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4855. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4856. do
  4857. IFS=$as_save_IFS
  4858. test -z "$as_dir" && as_dir=.
  4859. for ac_prog in fgrep; do
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4862. as_fn_executable_p "$ac_path_FGREP" || continue
  4863. # Check for GNU ac_path_FGREP and select it if it is found.
  4864. # Check for GNU $ac_path_FGREP
  4865. case `"$ac_path_FGREP" --version 2>&1` in
  4866. *GNU*)
  4867. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4868. *)
  4869. ac_count=0
  4870. $as_echo_n 0123456789 >"conftest.in"
  4871. while :
  4872. do
  4873. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4874. mv "conftest.tmp" "conftest.in"
  4875. cp "conftest.in" "conftest.nl"
  4876. $as_echo 'FGREP' >> "conftest.nl"
  4877. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4878. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4879. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4880. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4881. # Best one so far, save it but keep looking for a better one
  4882. ac_cv_path_FGREP="$ac_path_FGREP"
  4883. ac_path_FGREP_max=$ac_count
  4884. fi
  4885. # 10*(2^10) chars as input seems more than enough
  4886. test $ac_count -gt 10 && break
  4887. done
  4888. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4889. esac
  4890. $ac_path_FGREP_found && break 3
  4891. done
  4892. done
  4893. done
  4894. IFS=$as_save_IFS
  4895. if test -z "$ac_cv_path_FGREP"; then
  4896. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4897. fi
  4898. else
  4899. ac_cv_path_FGREP=$FGREP
  4900. fi
  4901. fi
  4902. fi
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4904. $as_echo "$ac_cv_path_FGREP" >&6; }
  4905. FGREP="$ac_cv_path_FGREP"
  4906. test -z "$GREP" && GREP=grep
  4907. # Check whether --with-gnu-ld was given.
  4908. if test "${with_gnu_ld+set}" = set; then :
  4909. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4910. else
  4911. with_gnu_ld=no
  4912. fi
  4913. ac_prog=ld
  4914. if test "$GCC" = yes; then
  4915. # Check if gcc -print-prog-name=ld gives a path.
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4917. $as_echo_n "checking for ld used by $CC... " >&6; }
  4918. case $host in
  4919. *-*-mingw*)
  4920. # gcc leaves a trailing carriage return which upsets mingw
  4921. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4922. *)
  4923. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4924. esac
  4925. case $ac_prog in
  4926. # Accept absolute paths.
  4927. [\\/]* | ?:[\\/]*)
  4928. re_direlt='/[^/][^/]*/\.\./'
  4929. # Canonicalize the pathname of ld
  4930. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4931. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4932. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4933. done
  4934. test -z "$LD" && LD="$ac_prog"
  4935. ;;
  4936. "")
  4937. # If it fails, then pretend we aren't using GCC.
  4938. ac_prog=ld
  4939. ;;
  4940. *)
  4941. # If it is relative, then search for the first ld in PATH.
  4942. with_gnu_ld=unknown
  4943. ;;
  4944. esac
  4945. elif test "$with_gnu_ld" = yes; then
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4947. $as_echo_n "checking for GNU ld... " >&6; }
  4948. else
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4950. $as_echo_n "checking for non-GNU ld... " >&6; }
  4951. fi
  4952. if ${lt_cv_path_LD+:} false; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. if test -z "$LD"; then
  4956. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4957. for ac_dir in $PATH; do
  4958. IFS="$lt_save_ifs"
  4959. test -z "$ac_dir" && ac_dir=.
  4960. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4961. lt_cv_path_LD="$ac_dir/$ac_prog"
  4962. # Check to see if the program is GNU ld. I'd rather use --version,
  4963. # but apparently some variants of GNU ld only accept -v.
  4964. # Break only if it was the GNU/non-GNU ld that we prefer.
  4965. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4966. *GNU* | *'with BFD'*)
  4967. test "$with_gnu_ld" != no && break
  4968. ;;
  4969. *)
  4970. test "$with_gnu_ld" != yes && break
  4971. ;;
  4972. esac
  4973. fi
  4974. done
  4975. IFS="$lt_save_ifs"
  4976. else
  4977. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4978. fi
  4979. fi
  4980. LD="$lt_cv_path_LD"
  4981. if test -n "$LD"; then
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4983. $as_echo "$LD" >&6; }
  4984. else
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4986. $as_echo "no" >&6; }
  4987. fi
  4988. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4990. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4991. if ${lt_cv_prog_gnu_ld+:} false; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4995. case `$LD -v 2>&1 </dev/null` in
  4996. *GNU* | *'with BFD'*)
  4997. lt_cv_prog_gnu_ld=yes
  4998. ;;
  4999. *)
  5000. lt_cv_prog_gnu_ld=no
  5001. ;;
  5002. esac
  5003. fi
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5005. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5006. with_gnu_ld=$lt_cv_prog_gnu_ld
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5008. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5009. if ${lt_cv_path_NM+:} false; then :
  5010. $as_echo_n "(cached) " >&6
  5011. else
  5012. if test -n "$NM"; then
  5013. # Let the user override the test.
  5014. lt_cv_path_NM="$NM"
  5015. else
  5016. lt_nm_to_check="${ac_tool_prefix}nm"
  5017. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5018. lt_nm_to_check="$lt_nm_to_check nm"
  5019. fi
  5020. for lt_tmp_nm in $lt_nm_to_check; do
  5021. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5022. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5023. IFS="$lt_save_ifs"
  5024. test -z "$ac_dir" && ac_dir=.
  5025. tmp_nm="$ac_dir/$lt_tmp_nm"
  5026. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5027. # Check to see if the nm accepts a BSD-compat flag.
  5028. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5029. # nm: unknown option "B" ignored
  5030. # Tru64's nm complains that /dev/null is an invalid object file
  5031. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5032. */dev/null* | *'Invalid file or object type'*)
  5033. lt_cv_path_NM="$tmp_nm -B"
  5034. break
  5035. ;;
  5036. *)
  5037. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5038. */dev/null*)
  5039. lt_cv_path_NM="$tmp_nm -p"
  5040. break
  5041. ;;
  5042. *)
  5043. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5044. continue # so that we can try to find one that supports BSD flags
  5045. ;;
  5046. esac
  5047. ;;
  5048. esac
  5049. fi
  5050. done
  5051. IFS="$lt_save_ifs"
  5052. done
  5053. : ${lt_cv_path_NM=no}
  5054. fi
  5055. fi
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5057. $as_echo "$lt_cv_path_NM" >&6; }
  5058. if test "$lt_cv_path_NM" != "no"; then
  5059. NM="$lt_cv_path_NM"
  5060. else
  5061. # Didn't find any BSD compatible name lister, look for dumpbin.
  5062. if test -n "$DUMPBIN"; then :
  5063. # Let the user override the test.
  5064. else
  5065. if test -n "$ac_tool_prefix"; then
  5066. for ac_prog in dumpbin "link -dump"
  5067. do
  5068. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5069. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5071. $as_echo_n "checking for $ac_word... " >&6; }
  5072. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5073. $as_echo_n "(cached) " >&6
  5074. else
  5075. if test -n "$DUMPBIN"; then
  5076. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5077. else
  5078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5079. for as_dir in $PATH
  5080. do
  5081. IFS=$as_save_IFS
  5082. test -z "$as_dir" && as_dir=.
  5083. for ac_exec_ext in '' $ac_executable_extensions; do
  5084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5085. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5087. break 2
  5088. fi
  5089. done
  5090. done
  5091. IFS=$as_save_IFS
  5092. fi
  5093. fi
  5094. DUMPBIN=$ac_cv_prog_DUMPBIN
  5095. if test -n "$DUMPBIN"; then
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5097. $as_echo "$DUMPBIN" >&6; }
  5098. else
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5100. $as_echo "no" >&6; }
  5101. fi
  5102. test -n "$DUMPBIN" && break
  5103. done
  5104. fi
  5105. if test -z "$DUMPBIN"; then
  5106. ac_ct_DUMPBIN=$DUMPBIN
  5107. for ac_prog in dumpbin "link -dump"
  5108. do
  5109. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5110. set dummy $ac_prog; ac_word=$2
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5112. $as_echo_n "checking for $ac_word... " >&6; }
  5113. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5114. $as_echo_n "(cached) " >&6
  5115. else
  5116. if test -n "$ac_ct_DUMPBIN"; then
  5117. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5118. else
  5119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5120. for as_dir in $PATH
  5121. do
  5122. IFS=$as_save_IFS
  5123. test -z "$as_dir" && as_dir=.
  5124. for ac_exec_ext in '' $ac_executable_extensions; do
  5125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5126. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5128. break 2
  5129. fi
  5130. done
  5131. done
  5132. IFS=$as_save_IFS
  5133. fi
  5134. fi
  5135. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5136. if test -n "$ac_ct_DUMPBIN"; then
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5138. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5139. else
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5141. $as_echo "no" >&6; }
  5142. fi
  5143. test -n "$ac_ct_DUMPBIN" && break
  5144. done
  5145. if test "x$ac_ct_DUMPBIN" = x; then
  5146. DUMPBIN=":"
  5147. else
  5148. case $cross_compiling:$ac_tool_warned in
  5149. yes:)
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5152. ac_tool_warned=yes ;;
  5153. esac
  5154. DUMPBIN=$ac_ct_DUMPBIN
  5155. fi
  5156. fi
  5157. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5158. *COFF*)
  5159. DUMPBIN="$DUMPBIN -symbols"
  5160. ;;
  5161. *)
  5162. DUMPBIN=:
  5163. ;;
  5164. esac
  5165. fi
  5166. if test "$DUMPBIN" != ":"; then
  5167. NM="$DUMPBIN"
  5168. fi
  5169. fi
  5170. test -z "$NM" && NM=nm
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5172. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5173. if ${lt_cv_nm_interface+:} false; then :
  5174. $as_echo_n "(cached) " >&6
  5175. else
  5176. lt_cv_nm_interface="BSD nm"
  5177. echo "int some_variable = 0;" > conftest.$ac_ext
  5178. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5179. (eval "$ac_compile" 2>conftest.err)
  5180. cat conftest.err >&5
  5181. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5182. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5183. cat conftest.err >&5
  5184. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5185. cat conftest.out >&5
  5186. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5187. lt_cv_nm_interface="MS dumpbin"
  5188. fi
  5189. rm -f conftest*
  5190. fi
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5192. $as_echo "$lt_cv_nm_interface" >&6; }
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5194. $as_echo_n "checking whether ln -s works... " >&6; }
  5195. LN_S=$as_ln_s
  5196. if test "$LN_S" = "ln -s"; then
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5198. $as_echo "yes" >&6; }
  5199. else
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5201. $as_echo "no, using $LN_S" >&6; }
  5202. fi
  5203. # find the maximum length of command line arguments
  5204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5205. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5206. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5207. $as_echo_n "(cached) " >&6
  5208. else
  5209. i=0
  5210. teststring="ABCD"
  5211. case $build_os in
  5212. msdosdjgpp*)
  5213. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5214. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5215. # during glob expansion). Even if it were fixed, the result of this
  5216. # check would be larger than it should be.
  5217. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5218. ;;
  5219. gnu*)
  5220. # Under GNU Hurd, this test is not required because there is
  5221. # no limit to the length of command line arguments.
  5222. # Libtool will interpret -1 as no limit whatsoever
  5223. lt_cv_sys_max_cmd_len=-1;
  5224. ;;
  5225. cygwin* | mingw* | cegcc*)
  5226. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5227. # about 5 minutes as the teststring grows exponentially.
  5228. # Worse, since 9x/ME are not pre-emptively multitasking,
  5229. # you end up with a "frozen" computer, even though with patience
  5230. # the test eventually succeeds (with a max line length of 256k).
  5231. # Instead, let's just punt: use the minimum linelength reported by
  5232. # all of the supported platforms: 8192 (on NT/2K/XP).
  5233. lt_cv_sys_max_cmd_len=8192;
  5234. ;;
  5235. mint*)
  5236. # On MiNT this can take a long time and run out of memory.
  5237. lt_cv_sys_max_cmd_len=8192;
  5238. ;;
  5239. amigaos*)
  5240. # On AmigaOS with pdksh, this test takes hours, literally.
  5241. # So we just punt and use a minimum line length of 8192.
  5242. lt_cv_sys_max_cmd_len=8192;
  5243. ;;
  5244. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5245. # This has been around since 386BSD, at least. Likely further.
  5246. if test -x /sbin/sysctl; then
  5247. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5248. elif test -x /usr/sbin/sysctl; then
  5249. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5250. else
  5251. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5252. fi
  5253. # And add a safety zone
  5254. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5255. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5256. ;;
  5257. interix*)
  5258. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5259. lt_cv_sys_max_cmd_len=196608
  5260. ;;
  5261. os2*)
  5262. # The test takes a long time on OS/2.
  5263. lt_cv_sys_max_cmd_len=8192
  5264. ;;
  5265. osf*)
  5266. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5267. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5268. # nice to cause kernel panics so lets avoid the loop below.
  5269. # First set a reasonable default.
  5270. lt_cv_sys_max_cmd_len=16384
  5271. #
  5272. if test -x /sbin/sysconfig; then
  5273. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5274. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5275. esac
  5276. fi
  5277. ;;
  5278. sco3.2v5*)
  5279. lt_cv_sys_max_cmd_len=102400
  5280. ;;
  5281. sysv5* | sco5v6* | sysv4.2uw2*)
  5282. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5283. if test -n "$kargmax"; then
  5284. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5285. else
  5286. lt_cv_sys_max_cmd_len=32768
  5287. fi
  5288. ;;
  5289. *)
  5290. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5291. if test -n "$lt_cv_sys_max_cmd_len"; then
  5292. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5293. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5294. else
  5295. # Make teststring a little bigger before we do anything with it.
  5296. # a 1K string should be a reasonable start.
  5297. for i in 1 2 3 4 5 6 7 8 ; do
  5298. teststring=$teststring$teststring
  5299. done
  5300. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5301. # If test is not a shell built-in, we'll probably end up computing a
  5302. # maximum length that is only half of the actual maximum length, but
  5303. # we can't tell.
  5304. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5305. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5306. test $i != 17 # 1/2 MB should be enough
  5307. do
  5308. i=`expr $i + 1`
  5309. teststring=$teststring$teststring
  5310. done
  5311. # Only check the string length outside the loop.
  5312. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5313. teststring=
  5314. # Add a significant safety factor because C++ compilers can tack on
  5315. # massive amounts of additional arguments before passing them to the
  5316. # linker. It appears as though 1/2 is a usable value.
  5317. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5318. fi
  5319. ;;
  5320. esac
  5321. fi
  5322. if test -n $lt_cv_sys_max_cmd_len ; then
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5324. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5325. else
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5327. $as_echo "none" >&6; }
  5328. fi
  5329. max_cmd_len=$lt_cv_sys_max_cmd_len
  5330. : ${CP="cp -f"}
  5331. : ${MV="mv -f"}
  5332. : ${RM="rm -f"}
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5334. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5335. # Try some XSI features
  5336. xsi_shell=no
  5337. ( _lt_dummy="a/b/c"
  5338. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5339. = c,a/b,b/c, \
  5340. && eval 'test $(( 1 + 1 )) -eq 2 \
  5341. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5342. && xsi_shell=yes
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5344. $as_echo "$xsi_shell" >&6; }
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5346. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5347. lt_shell_append=no
  5348. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5349. >/dev/null 2>&1 \
  5350. && lt_shell_append=yes
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5352. $as_echo "$lt_shell_append" >&6; }
  5353. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5354. lt_unset=unset
  5355. else
  5356. lt_unset=false
  5357. fi
  5358. # test EBCDIC or ASCII
  5359. case `echo X|tr X '\101'` in
  5360. A) # ASCII based system
  5361. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5362. lt_SP2NL='tr \040 \012'
  5363. lt_NL2SP='tr \015\012 \040\040'
  5364. ;;
  5365. *) # EBCDIC based system
  5366. lt_SP2NL='tr \100 \n'
  5367. lt_NL2SP='tr \r\n \100\100'
  5368. ;;
  5369. esac
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5371. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5372. if ${lt_cv_to_host_file_cmd+:} false; then :
  5373. $as_echo_n "(cached) " >&6
  5374. else
  5375. case $host in
  5376. *-*-mingw* )
  5377. case $build in
  5378. *-*-mingw* ) # actually msys
  5379. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5380. ;;
  5381. *-*-cygwin* )
  5382. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5383. ;;
  5384. * ) # otherwise, assume *nix
  5385. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5386. ;;
  5387. esac
  5388. ;;
  5389. *-*-cygwin* )
  5390. case $build in
  5391. *-*-mingw* ) # actually msys
  5392. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5393. ;;
  5394. *-*-cygwin* )
  5395. lt_cv_to_host_file_cmd=func_convert_file_noop
  5396. ;;
  5397. * ) # otherwise, assume *nix
  5398. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5399. ;;
  5400. esac
  5401. ;;
  5402. * ) # unhandled hosts (and "normal" native builds)
  5403. lt_cv_to_host_file_cmd=func_convert_file_noop
  5404. ;;
  5405. esac
  5406. fi
  5407. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5409. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5411. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5412. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5413. $as_echo_n "(cached) " >&6
  5414. else
  5415. #assume ordinary cross tools, or native build.
  5416. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5417. case $host in
  5418. *-*-mingw* )
  5419. case $build in
  5420. *-*-mingw* ) # actually msys
  5421. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5422. ;;
  5423. esac
  5424. ;;
  5425. esac
  5426. fi
  5427. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5429. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5431. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5432. if ${lt_cv_ld_reload_flag+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. lt_cv_ld_reload_flag='-r'
  5436. fi
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5438. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5439. reload_flag=$lt_cv_ld_reload_flag
  5440. case $reload_flag in
  5441. "" | " "*) ;;
  5442. *) reload_flag=" $reload_flag" ;;
  5443. esac
  5444. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5445. case $host_os in
  5446. cygwin* | mingw* | pw32* | cegcc*)
  5447. if test "$GCC" != yes; then
  5448. reload_cmds=false
  5449. fi
  5450. ;;
  5451. darwin*)
  5452. if test "$GCC" = yes; then
  5453. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5454. else
  5455. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5456. fi
  5457. ;;
  5458. esac
  5459. if test -n "$ac_tool_prefix"; then
  5460. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5461. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. $as_echo_n "checking for $ac_word... " >&6; }
  5464. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. if test -n "$OBJDUMP"; then
  5468. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5469. else
  5470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5471. for as_dir in $PATH
  5472. do
  5473. IFS=$as_save_IFS
  5474. test -z "$as_dir" && as_dir=.
  5475. for ac_exec_ext in '' $ac_executable_extensions; do
  5476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5477. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5479. break 2
  5480. fi
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. fi
  5485. fi
  5486. OBJDUMP=$ac_cv_prog_OBJDUMP
  5487. if test -n "$OBJDUMP"; then
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5489. $as_echo "$OBJDUMP" >&6; }
  5490. else
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5492. $as_echo "no" >&6; }
  5493. fi
  5494. fi
  5495. if test -z "$ac_cv_prog_OBJDUMP"; then
  5496. ac_ct_OBJDUMP=$OBJDUMP
  5497. # Extract the first word of "objdump", so it can be a program name with args.
  5498. set dummy objdump; ac_word=$2
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. if test -n "$ac_ct_OBJDUMP"; then
  5505. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5514. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. IFS=$as_save_IFS
  5521. fi
  5522. fi
  5523. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5524. if test -n "$ac_ct_OBJDUMP"; then
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5526. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5527. else
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5529. $as_echo "no" >&6; }
  5530. fi
  5531. if test "x$ac_ct_OBJDUMP" = x; then
  5532. OBJDUMP="false"
  5533. else
  5534. case $cross_compiling:$ac_tool_warned in
  5535. yes:)
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5538. ac_tool_warned=yes ;;
  5539. esac
  5540. OBJDUMP=$ac_ct_OBJDUMP
  5541. fi
  5542. else
  5543. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5544. fi
  5545. test -z "$OBJDUMP" && OBJDUMP=objdump
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5547. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5548. if ${lt_cv_deplibs_check_method+:} false; then :
  5549. $as_echo_n "(cached) " >&6
  5550. else
  5551. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5552. lt_cv_file_magic_test_file=
  5553. lt_cv_deplibs_check_method='unknown'
  5554. # Need to set the preceding variable on all platforms that support
  5555. # interlibrary dependencies.
  5556. # 'none' -- dependencies not supported.
  5557. # `unknown' -- same as none, but documents that we really don't know.
  5558. # 'pass_all' -- all dependencies passed with no checks.
  5559. # 'test_compile' -- check by making test program.
  5560. # 'file_magic [[regex]]' -- check by looking for files in library path
  5561. # which responds to the $file_magic_cmd with a given extended regex.
  5562. # If you have `file' or equivalent on your system and you're not sure
  5563. # whether `pass_all' will *always* work, you probably want this one.
  5564. case $host_os in
  5565. aix[4-9]*)
  5566. lt_cv_deplibs_check_method=pass_all
  5567. ;;
  5568. beos*)
  5569. lt_cv_deplibs_check_method=pass_all
  5570. ;;
  5571. bsdi[45]*)
  5572. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5573. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5574. lt_cv_file_magic_test_file=/shlib/libc.so
  5575. ;;
  5576. cygwin*)
  5577. # func_win32_libid is a shell function defined in ltmain.sh
  5578. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5579. lt_cv_file_magic_cmd='func_win32_libid'
  5580. ;;
  5581. mingw* | pw32*)
  5582. # Base MSYS/MinGW do not provide the 'file' command needed by
  5583. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5584. # unless we find 'file', for example because we are cross-compiling.
  5585. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5586. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5587. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5588. lt_cv_file_magic_cmd='func_win32_libid'
  5589. else
  5590. # Keep this pattern in sync with the one in func_win32_libid.
  5591. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5592. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5593. fi
  5594. ;;
  5595. cegcc*)
  5596. # use the weaker test based on 'objdump'. See mingw*.
  5597. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5598. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5599. ;;
  5600. darwin* | rhapsody*)
  5601. lt_cv_deplibs_check_method=pass_all
  5602. ;;
  5603. freebsd* | dragonfly*)
  5604. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5605. case $host_cpu in
  5606. i*86 )
  5607. # Not sure whether the presence of OpenBSD here was a mistake.
  5608. # Let's accept both of them until this is cleared up.
  5609. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5610. lt_cv_file_magic_cmd=/usr/bin/file
  5611. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5612. ;;
  5613. esac
  5614. else
  5615. lt_cv_deplibs_check_method=pass_all
  5616. fi
  5617. ;;
  5618. gnu*)
  5619. lt_cv_deplibs_check_method=pass_all
  5620. ;;
  5621. haiku*)
  5622. lt_cv_deplibs_check_method=pass_all
  5623. ;;
  5624. hpux10.20* | hpux11*)
  5625. lt_cv_file_magic_cmd=/usr/bin/file
  5626. case $host_cpu in
  5627. ia64*)
  5628. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5629. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5630. ;;
  5631. hppa*64*)
  5632. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5633. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5634. ;;
  5635. *)
  5636. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5637. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5638. ;;
  5639. esac
  5640. ;;
  5641. interix[3-9]*)
  5642. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5643. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5644. ;;
  5645. irix5* | irix6* | nonstopux*)
  5646. case $LD in
  5647. *-32|*"-32 ") libmagic=32-bit;;
  5648. *-n32|*"-n32 ") libmagic=N32;;
  5649. *-64|*"-64 ") libmagic=64-bit;;
  5650. *) libmagic=never-match;;
  5651. esac
  5652. lt_cv_deplibs_check_method=pass_all
  5653. ;;
  5654. # This must be glibc/ELF.
  5655. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5656. lt_cv_deplibs_check_method=pass_all
  5657. ;;
  5658. netbsd*)
  5659. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5660. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5661. else
  5662. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5663. fi
  5664. ;;
  5665. newos6*)
  5666. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5667. lt_cv_file_magic_cmd=/usr/bin/file
  5668. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5669. ;;
  5670. *nto* | *qnx*)
  5671. lt_cv_deplibs_check_method=pass_all
  5672. ;;
  5673. openbsd*)
  5674. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5675. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5676. else
  5677. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5678. fi
  5679. ;;
  5680. osf3* | osf4* | osf5*)
  5681. lt_cv_deplibs_check_method=pass_all
  5682. ;;
  5683. rdos*)
  5684. lt_cv_deplibs_check_method=pass_all
  5685. ;;
  5686. solaris*)
  5687. lt_cv_deplibs_check_method=pass_all
  5688. ;;
  5689. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5690. lt_cv_deplibs_check_method=pass_all
  5691. ;;
  5692. sysv4 | sysv4.3*)
  5693. case $host_vendor in
  5694. motorola)
  5695. 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]'
  5696. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5697. ;;
  5698. ncr)
  5699. lt_cv_deplibs_check_method=pass_all
  5700. ;;
  5701. sequent)
  5702. lt_cv_file_magic_cmd='/bin/file'
  5703. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5704. ;;
  5705. sni)
  5706. lt_cv_file_magic_cmd='/bin/file'
  5707. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5708. lt_cv_file_magic_test_file=/lib/libc.so
  5709. ;;
  5710. siemens)
  5711. lt_cv_deplibs_check_method=pass_all
  5712. ;;
  5713. pc)
  5714. lt_cv_deplibs_check_method=pass_all
  5715. ;;
  5716. esac
  5717. ;;
  5718. tpf*)
  5719. lt_cv_deplibs_check_method=pass_all
  5720. ;;
  5721. esac
  5722. fi
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5724. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5725. file_magic_glob=
  5726. want_nocaseglob=no
  5727. if test "$build" = "$host"; then
  5728. case $host_os in
  5729. mingw* | pw32*)
  5730. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5731. want_nocaseglob=yes
  5732. else
  5733. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5734. fi
  5735. ;;
  5736. esac
  5737. fi
  5738. file_magic_cmd=$lt_cv_file_magic_cmd
  5739. deplibs_check_method=$lt_cv_deplibs_check_method
  5740. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5741. if test -n "$ac_tool_prefix"; then
  5742. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5743. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5745. $as_echo_n "checking for $ac_word... " >&6; }
  5746. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. if test -n "$DLLTOOL"; then
  5750. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5751. else
  5752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5753. for as_dir in $PATH
  5754. do
  5755. IFS=$as_save_IFS
  5756. test -z "$as_dir" && as_dir=.
  5757. for ac_exec_ext in '' $ac_executable_extensions; do
  5758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5759. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5761. break 2
  5762. fi
  5763. done
  5764. done
  5765. IFS=$as_save_IFS
  5766. fi
  5767. fi
  5768. DLLTOOL=$ac_cv_prog_DLLTOOL
  5769. if test -n "$DLLTOOL"; then
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5771. $as_echo "$DLLTOOL" >&6; }
  5772. else
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5774. $as_echo "no" >&6; }
  5775. fi
  5776. fi
  5777. if test -z "$ac_cv_prog_DLLTOOL"; then
  5778. ac_ct_DLLTOOL=$DLLTOOL
  5779. # Extract the first word of "dlltool", so it can be a program name with args.
  5780. set dummy dlltool; ac_word=$2
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5782. $as_echo_n "checking for $ac_word... " >&6; }
  5783. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5784. $as_echo_n "(cached) " >&6
  5785. else
  5786. if test -n "$ac_ct_DLLTOOL"; then
  5787. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5788. else
  5789. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5790. for as_dir in $PATH
  5791. do
  5792. IFS=$as_save_IFS
  5793. test -z "$as_dir" && as_dir=.
  5794. for ac_exec_ext in '' $ac_executable_extensions; do
  5795. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5796. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5797. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5798. break 2
  5799. fi
  5800. done
  5801. done
  5802. IFS=$as_save_IFS
  5803. fi
  5804. fi
  5805. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5806. if test -n "$ac_ct_DLLTOOL"; then
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5808. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5809. else
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5811. $as_echo "no" >&6; }
  5812. fi
  5813. if test "x$ac_ct_DLLTOOL" = x; then
  5814. DLLTOOL="false"
  5815. else
  5816. case $cross_compiling:$ac_tool_warned in
  5817. yes:)
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5820. ac_tool_warned=yes ;;
  5821. esac
  5822. DLLTOOL=$ac_ct_DLLTOOL
  5823. fi
  5824. else
  5825. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5826. fi
  5827. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5829. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5830. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5831. $as_echo_n "(cached) " >&6
  5832. else
  5833. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5834. case $host_os in
  5835. cygwin* | mingw* | pw32* | cegcc*)
  5836. # two different shell functions defined in ltmain.sh
  5837. # decide which to use based on capabilities of $DLLTOOL
  5838. case `$DLLTOOL --help 2>&1` in
  5839. *--identify-strict*)
  5840. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5841. ;;
  5842. *)
  5843. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5844. ;;
  5845. esac
  5846. ;;
  5847. *)
  5848. # fallback: assume linklib IS sharedlib
  5849. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5850. ;;
  5851. esac
  5852. fi
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5854. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5855. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5856. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5857. if test -n "$ac_tool_prefix"; then
  5858. for ac_prog in ar
  5859. do
  5860. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5861. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if ${ac_cv_prog_AR+:} false; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$AR"; then
  5868. ac_cv_prog_AR="$AR" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5877. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. AR=$ac_cv_prog_AR
  5887. if test -n "$AR"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5889. $as_echo "$AR" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. test -n "$AR" && break
  5895. done
  5896. fi
  5897. if test -z "$AR"; then
  5898. ac_ct_AR=$AR
  5899. for ac_prog in ar
  5900. do
  5901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5902. set dummy $ac_prog; ac_word=$2
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5904. $as_echo_n "checking for $ac_word... " >&6; }
  5905. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. if test -n "$ac_ct_AR"; then
  5909. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5910. else
  5911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5912. for as_dir in $PATH
  5913. do
  5914. IFS=$as_save_IFS
  5915. test -z "$as_dir" && as_dir=.
  5916. for ac_exec_ext in '' $ac_executable_extensions; do
  5917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5918. ac_cv_prog_ac_ct_AR="$ac_prog"
  5919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5920. break 2
  5921. fi
  5922. done
  5923. done
  5924. IFS=$as_save_IFS
  5925. fi
  5926. fi
  5927. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5928. if test -n "$ac_ct_AR"; then
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5930. $as_echo "$ac_ct_AR" >&6; }
  5931. else
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5933. $as_echo "no" >&6; }
  5934. fi
  5935. test -n "$ac_ct_AR" && break
  5936. done
  5937. if test "x$ac_ct_AR" = x; then
  5938. AR="false"
  5939. else
  5940. case $cross_compiling:$ac_tool_warned in
  5941. yes:)
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5944. ac_tool_warned=yes ;;
  5945. esac
  5946. AR=$ac_ct_AR
  5947. fi
  5948. fi
  5949. : ${AR=ar}
  5950. : ${AR_FLAGS=cru}
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5952. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5953. if ${lt_cv_ar_at_file+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. lt_cv_ar_at_file=no
  5957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5958. /* end confdefs.h. */
  5959. int
  5960. main ()
  5961. {
  5962. ;
  5963. return 0;
  5964. }
  5965. _ACEOF
  5966. if ac_fn_c_try_compile "$LINENO"; then :
  5967. echo conftest.$ac_objext > conftest.lst
  5968. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5969. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5970. (eval $lt_ar_try) 2>&5
  5971. ac_status=$?
  5972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5973. test $ac_status = 0; }
  5974. if test "$ac_status" -eq 0; then
  5975. # Ensure the archiver fails upon bogus file names.
  5976. rm -f conftest.$ac_objext libconftest.a
  5977. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5978. (eval $lt_ar_try) 2>&5
  5979. ac_status=$?
  5980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5981. test $ac_status = 0; }
  5982. if test "$ac_status" -ne 0; then
  5983. lt_cv_ar_at_file=@
  5984. fi
  5985. fi
  5986. rm -f conftest.* libconftest.a
  5987. fi
  5988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5989. fi
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5991. $as_echo "$lt_cv_ar_at_file" >&6; }
  5992. if test "x$lt_cv_ar_at_file" = xno; then
  5993. archiver_list_spec=
  5994. else
  5995. archiver_list_spec=$lt_cv_ar_at_file
  5996. fi
  5997. if test -n "$ac_tool_prefix"; then
  5998. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5999. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6001. $as_echo_n "checking for $ac_word... " >&6; }
  6002. if ${ac_cv_prog_STRIP+:} false; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. if test -n "$STRIP"; then
  6006. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6007. else
  6008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6009. for as_dir in $PATH
  6010. do
  6011. IFS=$as_save_IFS
  6012. test -z "$as_dir" && as_dir=.
  6013. for ac_exec_ext in '' $ac_executable_extensions; do
  6014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6015. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6017. break 2
  6018. fi
  6019. done
  6020. done
  6021. IFS=$as_save_IFS
  6022. fi
  6023. fi
  6024. STRIP=$ac_cv_prog_STRIP
  6025. if test -n "$STRIP"; then
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6027. $as_echo "$STRIP" >&6; }
  6028. else
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. $as_echo "no" >&6; }
  6031. fi
  6032. fi
  6033. if test -z "$ac_cv_prog_STRIP"; then
  6034. ac_ct_STRIP=$STRIP
  6035. # Extract the first word of "strip", so it can be a program name with args.
  6036. set dummy strip; ac_word=$2
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6038. $as_echo_n "checking for $ac_word... " >&6; }
  6039. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. if test -n "$ac_ct_STRIP"; then
  6043. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6044. else
  6045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6046. for as_dir in $PATH
  6047. do
  6048. IFS=$as_save_IFS
  6049. test -z "$as_dir" && as_dir=.
  6050. for ac_exec_ext in '' $ac_executable_extensions; do
  6051. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6052. ac_cv_prog_ac_ct_STRIP="strip"
  6053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6054. break 2
  6055. fi
  6056. done
  6057. done
  6058. IFS=$as_save_IFS
  6059. fi
  6060. fi
  6061. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6062. if test -n "$ac_ct_STRIP"; then
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6064. $as_echo "$ac_ct_STRIP" >&6; }
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; }
  6068. fi
  6069. if test "x$ac_ct_STRIP" = x; then
  6070. STRIP=":"
  6071. else
  6072. case $cross_compiling:$ac_tool_warned in
  6073. yes:)
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6075. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6076. ac_tool_warned=yes ;;
  6077. esac
  6078. STRIP=$ac_ct_STRIP
  6079. fi
  6080. else
  6081. STRIP="$ac_cv_prog_STRIP"
  6082. fi
  6083. test -z "$STRIP" && STRIP=:
  6084. if test -n "$ac_tool_prefix"; then
  6085. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6086. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6088. $as_echo_n "checking for $ac_word... " >&6; }
  6089. if ${ac_cv_prog_RANLIB+:} false; then :
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. if test -n "$RANLIB"; then
  6093. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6094. else
  6095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6096. for as_dir in $PATH
  6097. do
  6098. IFS=$as_save_IFS
  6099. test -z "$as_dir" && as_dir=.
  6100. for ac_exec_ext in '' $ac_executable_extensions; do
  6101. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6102. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6104. break 2
  6105. fi
  6106. done
  6107. done
  6108. IFS=$as_save_IFS
  6109. fi
  6110. fi
  6111. RANLIB=$ac_cv_prog_RANLIB
  6112. if test -n "$RANLIB"; then
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6114. $as_echo "$RANLIB" >&6; }
  6115. else
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6117. $as_echo "no" >&6; }
  6118. fi
  6119. fi
  6120. if test -z "$ac_cv_prog_RANLIB"; then
  6121. ac_ct_RANLIB=$RANLIB
  6122. # Extract the first word of "ranlib", so it can be a program name with args.
  6123. set dummy ranlib; ac_word=$2
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6125. $as_echo_n "checking for $ac_word... " >&6; }
  6126. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. if test -n "$ac_ct_RANLIB"; then
  6130. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6131. else
  6132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6133. for as_dir in $PATH
  6134. do
  6135. IFS=$as_save_IFS
  6136. test -z "$as_dir" && as_dir=.
  6137. for ac_exec_ext in '' $ac_executable_extensions; do
  6138. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6139. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6141. break 2
  6142. fi
  6143. done
  6144. done
  6145. IFS=$as_save_IFS
  6146. fi
  6147. fi
  6148. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6149. if test -n "$ac_ct_RANLIB"; then
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6151. $as_echo "$ac_ct_RANLIB" >&6; }
  6152. else
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6154. $as_echo "no" >&6; }
  6155. fi
  6156. if test "x$ac_ct_RANLIB" = x; then
  6157. RANLIB=":"
  6158. else
  6159. case $cross_compiling:$ac_tool_warned in
  6160. yes:)
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6163. ac_tool_warned=yes ;;
  6164. esac
  6165. RANLIB=$ac_ct_RANLIB
  6166. fi
  6167. else
  6168. RANLIB="$ac_cv_prog_RANLIB"
  6169. fi
  6170. test -z "$RANLIB" && RANLIB=:
  6171. # Determine commands to create old-style static archives.
  6172. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6173. old_postinstall_cmds='chmod 644 $oldlib'
  6174. old_postuninstall_cmds=
  6175. if test -n "$RANLIB"; then
  6176. case $host_os in
  6177. openbsd*)
  6178. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6179. ;;
  6180. *)
  6181. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6182. ;;
  6183. esac
  6184. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6185. fi
  6186. case $host_os in
  6187. darwin*)
  6188. lock_old_archive_extraction=yes ;;
  6189. *)
  6190. lock_old_archive_extraction=no ;;
  6191. esac
  6192. # If no C compiler was specified, use CC.
  6193. LTCC=${LTCC-"$CC"}
  6194. # If no C compiler flags were specified, use CFLAGS.
  6195. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6196. # Allow CC to be a program name with arguments.
  6197. compiler=$CC
  6198. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6200. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6201. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6202. $as_echo_n "(cached) " >&6
  6203. else
  6204. # These are sane defaults that work on at least a few old systems.
  6205. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6206. # Character class describing NM global symbol codes.
  6207. symcode='[BCDEGRST]'
  6208. # Regexp to match symbols that can be accessed directly from C.
  6209. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6210. # Define system-specific variables.
  6211. case $host_os in
  6212. aix*)
  6213. symcode='[BCDT]'
  6214. ;;
  6215. cygwin* | mingw* | pw32* | cegcc*)
  6216. symcode='[ABCDGISTW]'
  6217. ;;
  6218. hpux*)
  6219. if test "$host_cpu" = ia64; then
  6220. symcode='[ABCDEGRST]'
  6221. fi
  6222. ;;
  6223. irix* | nonstopux*)
  6224. symcode='[BCDEGRST]'
  6225. ;;
  6226. osf*)
  6227. symcode='[BCDEGQRST]'
  6228. ;;
  6229. solaris*)
  6230. symcode='[BDRT]'
  6231. ;;
  6232. sco3.2v5*)
  6233. symcode='[DT]'
  6234. ;;
  6235. sysv4.2uw2*)
  6236. symcode='[DT]'
  6237. ;;
  6238. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6239. symcode='[ABDT]'
  6240. ;;
  6241. sysv4)
  6242. symcode='[DFNSTU]'
  6243. ;;
  6244. esac
  6245. # If we're using GNU nm, then use its standard symbol codes.
  6246. case `$NM -V 2>&1` in
  6247. *GNU* | *'with BFD'*)
  6248. symcode='[ABCDGIRSTW]' ;;
  6249. esac
  6250. # Transform an extracted symbol line into a proper C declaration.
  6251. # Some systems (esp. on ia64) link data and code symbols differently,
  6252. # so use this general approach.
  6253. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6254. # Transform an extracted symbol line into symbol name and symbol address
  6255. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6256. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6257. # Handle CRLF in mingw tool chain
  6258. opt_cr=
  6259. case $build_os in
  6260. mingw*)
  6261. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6262. ;;
  6263. esac
  6264. # Try without a prefix underscore, then with it.
  6265. for ac_symprfx in "" "_"; do
  6266. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6267. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6268. # Write the raw and C identifiers.
  6269. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6270. # Fake it for dumpbin and say T for any non-static function
  6271. # and D for any global variable.
  6272. # Also find C++ and __fastcall symbols from MSVC++,
  6273. # which start with @ or ?.
  6274. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6275. " {last_section=section; section=\$ 3};"\
  6276. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6277. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6278. " \$ 0!~/External *\|/{next};"\
  6279. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6280. " {if(hide[section]) next};"\
  6281. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6282. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6283. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6284. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6285. " ' prfx=^$ac_symprfx"
  6286. else
  6287. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6288. fi
  6289. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6290. # Check to see that the pipe works correctly.
  6291. pipe_works=no
  6292. rm -f conftest*
  6293. cat > conftest.$ac_ext <<_LT_EOF
  6294. #ifdef __cplusplus
  6295. extern "C" {
  6296. #endif
  6297. char nm_test_var;
  6298. void nm_test_func(void);
  6299. void nm_test_func(void){}
  6300. #ifdef __cplusplus
  6301. }
  6302. #endif
  6303. int main(){nm_test_var='a';nm_test_func();return(0);}
  6304. _LT_EOF
  6305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6306. (eval $ac_compile) 2>&5
  6307. ac_status=$?
  6308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6309. test $ac_status = 0; }; then
  6310. # Now try to grab the symbols.
  6311. nlist=conftest.nm
  6312. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6313. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6314. ac_status=$?
  6315. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6316. test $ac_status = 0; } && test -s "$nlist"; then
  6317. # Try sorting and uniquifying the output.
  6318. if sort "$nlist" | uniq > "$nlist"T; then
  6319. mv -f "$nlist"T "$nlist"
  6320. else
  6321. rm -f "$nlist"T
  6322. fi
  6323. # Make sure that we snagged all the symbols we need.
  6324. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6325. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6326. cat <<_LT_EOF > conftest.$ac_ext
  6327. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6328. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6329. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6330. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6331. # define LT_DLSYM_CONST
  6332. #elif defined(__osf__)
  6333. /* This system does not cope well with relocations in const data. */
  6334. # define LT_DLSYM_CONST
  6335. #else
  6336. # define LT_DLSYM_CONST const
  6337. #endif
  6338. #ifdef __cplusplus
  6339. extern "C" {
  6340. #endif
  6341. _LT_EOF
  6342. # Now generate the symbol file.
  6343. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6344. cat <<_LT_EOF >> conftest.$ac_ext
  6345. /* The mapping between symbol names and symbols. */
  6346. LT_DLSYM_CONST struct {
  6347. const char *name;
  6348. void *address;
  6349. }
  6350. lt__PROGRAM__LTX_preloaded_symbols[] =
  6351. {
  6352. { "@PROGRAM@", (void *) 0 },
  6353. _LT_EOF
  6354. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6355. cat <<\_LT_EOF >> conftest.$ac_ext
  6356. {0, (void *) 0}
  6357. };
  6358. /* This works around a problem in FreeBSD linker */
  6359. #ifdef FREEBSD_WORKAROUND
  6360. static const void *lt_preloaded_setup() {
  6361. return lt__PROGRAM__LTX_preloaded_symbols;
  6362. }
  6363. #endif
  6364. #ifdef __cplusplus
  6365. }
  6366. #endif
  6367. _LT_EOF
  6368. # Now try linking the two files.
  6369. mv conftest.$ac_objext conftstm.$ac_objext
  6370. lt_globsym_save_LIBS=$LIBS
  6371. lt_globsym_save_CFLAGS=$CFLAGS
  6372. LIBS="conftstm.$ac_objext"
  6373. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6375. (eval $ac_link) 2>&5
  6376. ac_status=$?
  6377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6378. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6379. pipe_works=yes
  6380. fi
  6381. LIBS=$lt_globsym_save_LIBS
  6382. CFLAGS=$lt_globsym_save_CFLAGS
  6383. else
  6384. echo "cannot find nm_test_func in $nlist" >&5
  6385. fi
  6386. else
  6387. echo "cannot find nm_test_var in $nlist" >&5
  6388. fi
  6389. else
  6390. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6391. fi
  6392. else
  6393. echo "$progname: failed program was:" >&5
  6394. cat conftest.$ac_ext >&5
  6395. fi
  6396. rm -rf conftest* conftst*
  6397. # Do not use the global_symbol_pipe unless it works.
  6398. if test "$pipe_works" = yes; then
  6399. break
  6400. else
  6401. lt_cv_sys_global_symbol_pipe=
  6402. fi
  6403. done
  6404. fi
  6405. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6406. lt_cv_sys_global_symbol_to_cdecl=
  6407. fi
  6408. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6410. $as_echo "failed" >&6; }
  6411. else
  6412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6413. $as_echo "ok" >&6; }
  6414. fi
  6415. # Response file support.
  6416. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6417. nm_file_list_spec='@'
  6418. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6419. nm_file_list_spec='@'
  6420. fi
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6422. $as_echo_n "checking for sysroot... " >&6; }
  6423. # Check whether --with-sysroot was given.
  6424. if test "${with_sysroot+set}" = set; then :
  6425. withval=$with_sysroot;
  6426. else
  6427. with_sysroot=no
  6428. fi
  6429. lt_sysroot=
  6430. case ${with_sysroot} in #(
  6431. yes)
  6432. if test "$GCC" = yes; then
  6433. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6434. fi
  6435. ;; #(
  6436. /*)
  6437. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6438. ;; #(
  6439. no|'')
  6440. ;; #(
  6441. *)
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6443. $as_echo "${with_sysroot}" >&6; }
  6444. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6445. ;;
  6446. esac
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6448. $as_echo "${lt_sysroot:-no}" >&6; }
  6449. # Check whether --enable-libtool-lock was given.
  6450. if test "${enable_libtool_lock+set}" = set; then :
  6451. enableval=$enable_libtool_lock;
  6452. fi
  6453. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6454. # Some flags need to be propagated to the compiler or linker for good
  6455. # libtool support.
  6456. case $host in
  6457. ia64-*-hpux*)
  6458. # Find out which ABI we are using.
  6459. echo 'int i;' > conftest.$ac_ext
  6460. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6461. (eval $ac_compile) 2>&5
  6462. ac_status=$?
  6463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6464. test $ac_status = 0; }; then
  6465. case `/usr/bin/file conftest.$ac_objext` in
  6466. *ELF-32*)
  6467. HPUX_IA64_MODE="32"
  6468. ;;
  6469. *ELF-64*)
  6470. HPUX_IA64_MODE="64"
  6471. ;;
  6472. esac
  6473. fi
  6474. rm -rf conftest*
  6475. ;;
  6476. *-*-irix6*)
  6477. # Find out which ABI we are using.
  6478. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6479. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6480. (eval $ac_compile) 2>&5
  6481. ac_status=$?
  6482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6483. test $ac_status = 0; }; then
  6484. if test "$lt_cv_prog_gnu_ld" = yes; then
  6485. case `/usr/bin/file conftest.$ac_objext` in
  6486. *32-bit*)
  6487. LD="${LD-ld} -melf32bsmip"
  6488. ;;
  6489. *N32*)
  6490. LD="${LD-ld} -melf32bmipn32"
  6491. ;;
  6492. *64-bit*)
  6493. LD="${LD-ld} -melf64bmip"
  6494. ;;
  6495. esac
  6496. else
  6497. case `/usr/bin/file conftest.$ac_objext` in
  6498. *32-bit*)
  6499. LD="${LD-ld} -32"
  6500. ;;
  6501. *N32*)
  6502. LD="${LD-ld} -n32"
  6503. ;;
  6504. *64-bit*)
  6505. LD="${LD-ld} -64"
  6506. ;;
  6507. esac
  6508. fi
  6509. fi
  6510. rm -rf conftest*
  6511. ;;
  6512. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6513. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6514. # Find out which ABI we are using.
  6515. echo 'int i;' > conftest.$ac_ext
  6516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6517. (eval $ac_compile) 2>&5
  6518. ac_status=$?
  6519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6520. test $ac_status = 0; }; then
  6521. case `/usr/bin/file conftest.o` in
  6522. *32-bit*)
  6523. case $host in
  6524. x86_64-*kfreebsd*-gnu)
  6525. LD="${LD-ld} -m elf_i386_fbsd"
  6526. ;;
  6527. x86_64-*linux*)
  6528. LD="${LD-ld} -m elf_i386"
  6529. ;;
  6530. ppc64-*linux*|powerpc64-*linux*)
  6531. LD="${LD-ld} -m elf32ppclinux"
  6532. ;;
  6533. s390x-*linux*)
  6534. LD="${LD-ld} -m elf_s390"
  6535. ;;
  6536. sparc64-*linux*)
  6537. LD="${LD-ld} -m elf32_sparc"
  6538. ;;
  6539. esac
  6540. ;;
  6541. *64-bit*)
  6542. case $host in
  6543. x86_64-*kfreebsd*-gnu)
  6544. LD="${LD-ld} -m elf_x86_64_fbsd"
  6545. ;;
  6546. x86_64-*linux*)
  6547. LD="${LD-ld} -m elf_x86_64"
  6548. ;;
  6549. ppc*-*linux*|powerpc*-*linux*)
  6550. LD="${LD-ld} -m elf64ppc"
  6551. ;;
  6552. s390*-*linux*|s390*-*tpf*)
  6553. LD="${LD-ld} -m elf64_s390"
  6554. ;;
  6555. sparc*-*linux*)
  6556. LD="${LD-ld} -m elf64_sparc"
  6557. ;;
  6558. esac
  6559. ;;
  6560. esac
  6561. fi
  6562. rm -rf conftest*
  6563. ;;
  6564. *-*-sco3.2v5*)
  6565. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6566. SAVE_CFLAGS="$CFLAGS"
  6567. CFLAGS="$CFLAGS -belf"
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6569. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6570. if ${lt_cv_cc_needs_belf+:} false; then :
  6571. $as_echo_n "(cached) " >&6
  6572. else
  6573. ac_ext=c
  6574. ac_cpp='$CPP $CPPFLAGS'
  6575. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6576. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6577. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6579. /* end confdefs.h. */
  6580. int
  6581. main ()
  6582. {
  6583. ;
  6584. return 0;
  6585. }
  6586. _ACEOF
  6587. if ac_fn_c_try_link "$LINENO"; then :
  6588. lt_cv_cc_needs_belf=yes
  6589. else
  6590. lt_cv_cc_needs_belf=no
  6591. fi
  6592. rm -f core conftest.err conftest.$ac_objext \
  6593. conftest$ac_exeext conftest.$ac_ext
  6594. ac_ext=c
  6595. ac_cpp='$CPP $CPPFLAGS'
  6596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6599. fi
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6601. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6602. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6603. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6604. CFLAGS="$SAVE_CFLAGS"
  6605. fi
  6606. ;;
  6607. *-*solaris*)
  6608. # Find out which ABI we are using.
  6609. echo 'int i;' > conftest.$ac_ext
  6610. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6611. (eval $ac_compile) 2>&5
  6612. ac_status=$?
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6614. test $ac_status = 0; }; then
  6615. case `/usr/bin/file conftest.o` in
  6616. *64-bit*)
  6617. case $lt_cv_prog_gnu_ld in
  6618. yes*)
  6619. case $host in
  6620. i?86-*-solaris*)
  6621. LD="${LD-ld} -m elf_x86_64"
  6622. ;;
  6623. sparc*-*-solaris*)
  6624. LD="${LD-ld} -m elf64_sparc"
  6625. ;;
  6626. esac
  6627. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6628. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6629. LD="${LD-ld}_sol2"
  6630. fi
  6631. ;;
  6632. *)
  6633. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6634. LD="${LD-ld} -64"
  6635. fi
  6636. ;;
  6637. esac
  6638. ;;
  6639. esac
  6640. fi
  6641. rm -rf conftest*
  6642. ;;
  6643. esac
  6644. need_locks="$enable_libtool_lock"
  6645. if test -n "$ac_tool_prefix"; then
  6646. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6647. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6649. $as_echo_n "checking for $ac_word... " >&6; }
  6650. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6651. $as_echo_n "(cached) " >&6
  6652. else
  6653. if test -n "$MANIFEST_TOOL"; then
  6654. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6655. else
  6656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6657. for as_dir in $PATH
  6658. do
  6659. IFS=$as_save_IFS
  6660. test -z "$as_dir" && as_dir=.
  6661. for ac_exec_ext in '' $ac_executable_extensions; do
  6662. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6663. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6665. break 2
  6666. fi
  6667. done
  6668. done
  6669. IFS=$as_save_IFS
  6670. fi
  6671. fi
  6672. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6673. if test -n "$MANIFEST_TOOL"; then
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6675. $as_echo "$MANIFEST_TOOL" >&6; }
  6676. else
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6678. $as_echo "no" >&6; }
  6679. fi
  6680. fi
  6681. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6682. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6683. # Extract the first word of "mt", so it can be a program name with args.
  6684. set dummy mt; ac_word=$2
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6686. $as_echo_n "checking for $ac_word... " >&6; }
  6687. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6688. $as_echo_n "(cached) " >&6
  6689. else
  6690. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6691. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6692. else
  6693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6694. for as_dir in $PATH
  6695. do
  6696. IFS=$as_save_IFS
  6697. test -z "$as_dir" && as_dir=.
  6698. for ac_exec_ext in '' $ac_executable_extensions; do
  6699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6700. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6702. break 2
  6703. fi
  6704. done
  6705. done
  6706. IFS=$as_save_IFS
  6707. fi
  6708. fi
  6709. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6710. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6712. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6713. else
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6715. $as_echo "no" >&6; }
  6716. fi
  6717. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6718. MANIFEST_TOOL=":"
  6719. else
  6720. case $cross_compiling:$ac_tool_warned in
  6721. yes:)
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6723. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6724. ac_tool_warned=yes ;;
  6725. esac
  6726. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6727. fi
  6728. else
  6729. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6730. fi
  6731. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6733. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6734. if ${lt_cv_path_mainfest_tool+:} false; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. lt_cv_path_mainfest_tool=no
  6738. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6739. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6740. cat conftest.err >&5
  6741. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6742. lt_cv_path_mainfest_tool=yes
  6743. fi
  6744. rm -f conftest*
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6747. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6748. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6749. MANIFEST_TOOL=:
  6750. fi
  6751. case $host_os in
  6752. rhapsody* | darwin*)
  6753. if test -n "$ac_tool_prefix"; then
  6754. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6755. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. $as_echo_n "checking for $ac_word... " >&6; }
  6758. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6759. $as_echo_n "(cached) " >&6
  6760. else
  6761. if test -n "$DSYMUTIL"; then
  6762. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6763. else
  6764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6765. for as_dir in $PATH
  6766. do
  6767. IFS=$as_save_IFS
  6768. test -z "$as_dir" && as_dir=.
  6769. for ac_exec_ext in '' $ac_executable_extensions; do
  6770. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6771. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6773. break 2
  6774. fi
  6775. done
  6776. done
  6777. IFS=$as_save_IFS
  6778. fi
  6779. fi
  6780. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6781. if test -n "$DSYMUTIL"; then
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6783. $as_echo "$DSYMUTIL" >&6; }
  6784. else
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6786. $as_echo "no" >&6; }
  6787. fi
  6788. fi
  6789. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6790. ac_ct_DSYMUTIL=$DSYMUTIL
  6791. # Extract the first word of "dsymutil", so it can be a program name with args.
  6792. set dummy dsymutil; ac_word=$2
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6794. $as_echo_n "checking for $ac_word... " >&6; }
  6795. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6796. $as_echo_n "(cached) " >&6
  6797. else
  6798. if test -n "$ac_ct_DSYMUTIL"; then
  6799. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6800. else
  6801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6802. for as_dir in $PATH
  6803. do
  6804. IFS=$as_save_IFS
  6805. test -z "$as_dir" && as_dir=.
  6806. for ac_exec_ext in '' $ac_executable_extensions; do
  6807. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6808. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6810. break 2
  6811. fi
  6812. done
  6813. done
  6814. IFS=$as_save_IFS
  6815. fi
  6816. fi
  6817. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6818. if test -n "$ac_ct_DSYMUTIL"; then
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6820. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6821. else
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6823. $as_echo "no" >&6; }
  6824. fi
  6825. if test "x$ac_ct_DSYMUTIL" = x; then
  6826. DSYMUTIL=":"
  6827. else
  6828. case $cross_compiling:$ac_tool_warned in
  6829. yes:)
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6831. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6832. ac_tool_warned=yes ;;
  6833. esac
  6834. DSYMUTIL=$ac_ct_DSYMUTIL
  6835. fi
  6836. else
  6837. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6838. fi
  6839. if test -n "$ac_tool_prefix"; then
  6840. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6841. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6843. $as_echo_n "checking for $ac_word... " >&6; }
  6844. if ${ac_cv_prog_NMEDIT+:} false; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. if test -n "$NMEDIT"; then
  6848. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6849. else
  6850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6851. for as_dir in $PATH
  6852. do
  6853. IFS=$as_save_IFS
  6854. test -z "$as_dir" && as_dir=.
  6855. for ac_exec_ext in '' $ac_executable_extensions; do
  6856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6857. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6859. break 2
  6860. fi
  6861. done
  6862. done
  6863. IFS=$as_save_IFS
  6864. fi
  6865. fi
  6866. NMEDIT=$ac_cv_prog_NMEDIT
  6867. if test -n "$NMEDIT"; then
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6869. $as_echo "$NMEDIT" >&6; }
  6870. else
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6872. $as_echo "no" >&6; }
  6873. fi
  6874. fi
  6875. if test -z "$ac_cv_prog_NMEDIT"; then
  6876. ac_ct_NMEDIT=$NMEDIT
  6877. # Extract the first word of "nmedit", so it can be a program name with args.
  6878. set dummy nmedit; ac_word=$2
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6880. $as_echo_n "checking for $ac_word... " >&6; }
  6881. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6882. $as_echo_n "(cached) " >&6
  6883. else
  6884. if test -n "$ac_ct_NMEDIT"; then
  6885. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6886. else
  6887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6888. for as_dir in $PATH
  6889. do
  6890. IFS=$as_save_IFS
  6891. test -z "$as_dir" && as_dir=.
  6892. for ac_exec_ext in '' $ac_executable_extensions; do
  6893. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6894. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6896. break 2
  6897. fi
  6898. done
  6899. done
  6900. IFS=$as_save_IFS
  6901. fi
  6902. fi
  6903. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6904. if test -n "$ac_ct_NMEDIT"; then
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6906. $as_echo "$ac_ct_NMEDIT" >&6; }
  6907. else
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6909. $as_echo "no" >&6; }
  6910. fi
  6911. if test "x$ac_ct_NMEDIT" = x; then
  6912. NMEDIT=":"
  6913. else
  6914. case $cross_compiling:$ac_tool_warned in
  6915. yes:)
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6917. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6918. ac_tool_warned=yes ;;
  6919. esac
  6920. NMEDIT=$ac_ct_NMEDIT
  6921. fi
  6922. else
  6923. NMEDIT="$ac_cv_prog_NMEDIT"
  6924. fi
  6925. if test -n "$ac_tool_prefix"; then
  6926. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6927. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6929. $as_echo_n "checking for $ac_word... " >&6; }
  6930. if ${ac_cv_prog_LIPO+:} false; then :
  6931. $as_echo_n "(cached) " >&6
  6932. else
  6933. if test -n "$LIPO"; then
  6934. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6935. else
  6936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6937. for as_dir in $PATH
  6938. do
  6939. IFS=$as_save_IFS
  6940. test -z "$as_dir" && as_dir=.
  6941. for ac_exec_ext in '' $ac_executable_extensions; do
  6942. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6943. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6945. break 2
  6946. fi
  6947. done
  6948. done
  6949. IFS=$as_save_IFS
  6950. fi
  6951. fi
  6952. LIPO=$ac_cv_prog_LIPO
  6953. if test -n "$LIPO"; then
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6955. $as_echo "$LIPO" >&6; }
  6956. else
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6958. $as_echo "no" >&6; }
  6959. fi
  6960. fi
  6961. if test -z "$ac_cv_prog_LIPO"; then
  6962. ac_ct_LIPO=$LIPO
  6963. # Extract the first word of "lipo", so it can be a program name with args.
  6964. set dummy lipo; ac_word=$2
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6966. $as_echo_n "checking for $ac_word... " >&6; }
  6967. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6968. $as_echo_n "(cached) " >&6
  6969. else
  6970. if test -n "$ac_ct_LIPO"; then
  6971. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6972. else
  6973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6974. for as_dir in $PATH
  6975. do
  6976. IFS=$as_save_IFS
  6977. test -z "$as_dir" && as_dir=.
  6978. for ac_exec_ext in '' $ac_executable_extensions; do
  6979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6980. ac_cv_prog_ac_ct_LIPO="lipo"
  6981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6982. break 2
  6983. fi
  6984. done
  6985. done
  6986. IFS=$as_save_IFS
  6987. fi
  6988. fi
  6989. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6990. if test -n "$ac_ct_LIPO"; then
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6992. $as_echo "$ac_ct_LIPO" >&6; }
  6993. else
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6995. $as_echo "no" >&6; }
  6996. fi
  6997. if test "x$ac_ct_LIPO" = x; then
  6998. LIPO=":"
  6999. else
  7000. case $cross_compiling:$ac_tool_warned in
  7001. yes:)
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7003. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7004. ac_tool_warned=yes ;;
  7005. esac
  7006. LIPO=$ac_ct_LIPO
  7007. fi
  7008. else
  7009. LIPO="$ac_cv_prog_LIPO"
  7010. fi
  7011. if test -n "$ac_tool_prefix"; then
  7012. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7013. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7015. $as_echo_n "checking for $ac_word... " >&6; }
  7016. if ${ac_cv_prog_OTOOL+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. if test -n "$OTOOL"; then
  7020. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7021. else
  7022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7023. for as_dir in $PATH
  7024. do
  7025. IFS=$as_save_IFS
  7026. test -z "$as_dir" && as_dir=.
  7027. for ac_exec_ext in '' $ac_executable_extensions; do
  7028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7029. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7031. break 2
  7032. fi
  7033. done
  7034. done
  7035. IFS=$as_save_IFS
  7036. fi
  7037. fi
  7038. OTOOL=$ac_cv_prog_OTOOL
  7039. if test -n "$OTOOL"; then
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7041. $as_echo "$OTOOL" >&6; }
  7042. else
  7043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7044. $as_echo "no" >&6; }
  7045. fi
  7046. fi
  7047. if test -z "$ac_cv_prog_OTOOL"; then
  7048. ac_ct_OTOOL=$OTOOL
  7049. # Extract the first word of "otool", so it can be a program name with args.
  7050. set dummy otool; ac_word=$2
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7052. $as_echo_n "checking for $ac_word... " >&6; }
  7053. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7054. $as_echo_n "(cached) " >&6
  7055. else
  7056. if test -n "$ac_ct_OTOOL"; then
  7057. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7058. else
  7059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7060. for as_dir in $PATH
  7061. do
  7062. IFS=$as_save_IFS
  7063. test -z "$as_dir" && as_dir=.
  7064. for ac_exec_ext in '' $ac_executable_extensions; do
  7065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7066. ac_cv_prog_ac_ct_OTOOL="otool"
  7067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7068. break 2
  7069. fi
  7070. done
  7071. done
  7072. IFS=$as_save_IFS
  7073. fi
  7074. fi
  7075. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7076. if test -n "$ac_ct_OTOOL"; then
  7077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7078. $as_echo "$ac_ct_OTOOL" >&6; }
  7079. else
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7081. $as_echo "no" >&6; }
  7082. fi
  7083. if test "x$ac_ct_OTOOL" = x; then
  7084. OTOOL=":"
  7085. else
  7086. case $cross_compiling:$ac_tool_warned in
  7087. yes:)
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7090. ac_tool_warned=yes ;;
  7091. esac
  7092. OTOOL=$ac_ct_OTOOL
  7093. fi
  7094. else
  7095. OTOOL="$ac_cv_prog_OTOOL"
  7096. fi
  7097. if test -n "$ac_tool_prefix"; then
  7098. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7099. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7101. $as_echo_n "checking for $ac_word... " >&6; }
  7102. if ${ac_cv_prog_OTOOL64+:} false; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. if test -n "$OTOOL64"; then
  7106. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7107. else
  7108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7109. for as_dir in $PATH
  7110. do
  7111. IFS=$as_save_IFS
  7112. test -z "$as_dir" && as_dir=.
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. OTOOL64=$ac_cv_prog_OTOOL64
  7125. if test -n "$OTOOL64"; then
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7127. $as_echo "$OTOOL64" >&6; }
  7128. else
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. $as_echo "no" >&6; }
  7131. fi
  7132. fi
  7133. if test -z "$ac_cv_prog_OTOOL64"; then
  7134. ac_ct_OTOOL64=$OTOOL64
  7135. # Extract the first word of "otool64", so it can be a program name with args.
  7136. set dummy otool64; ac_word=$2
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7138. $as_echo_n "checking for $ac_word... " >&6; }
  7139. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7140. $as_echo_n "(cached) " >&6
  7141. else
  7142. if test -n "$ac_ct_OTOOL64"; then
  7143. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7144. else
  7145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7146. for as_dir in $PATH
  7147. do
  7148. IFS=$as_save_IFS
  7149. test -z "$as_dir" && as_dir=.
  7150. for ac_exec_ext in '' $ac_executable_extensions; do
  7151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7152. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7154. break 2
  7155. fi
  7156. done
  7157. done
  7158. IFS=$as_save_IFS
  7159. fi
  7160. fi
  7161. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7162. if test -n "$ac_ct_OTOOL64"; then
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7164. $as_echo "$ac_ct_OTOOL64" >&6; }
  7165. else
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7167. $as_echo "no" >&6; }
  7168. fi
  7169. if test "x$ac_ct_OTOOL64" = x; then
  7170. OTOOL64=":"
  7171. else
  7172. case $cross_compiling:$ac_tool_warned in
  7173. yes:)
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7176. ac_tool_warned=yes ;;
  7177. esac
  7178. OTOOL64=$ac_ct_OTOOL64
  7179. fi
  7180. else
  7181. OTOOL64="$ac_cv_prog_OTOOL64"
  7182. fi
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7184. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7185. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. lt_cv_apple_cc_single_mod=no
  7189. if test -z "${LT_MULTI_MODULE}"; then
  7190. # By default we will add the -single_module flag. You can override
  7191. # by either setting the environment variable LT_MULTI_MODULE
  7192. # non-empty at configure time, or by adding -multi_module to the
  7193. # link flags.
  7194. rm -rf libconftest.dylib*
  7195. echo "int foo(void){return 1;}" > conftest.c
  7196. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7197. -dynamiclib -Wl,-single_module conftest.c" >&5
  7198. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7199. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7200. _lt_result=$?
  7201. # If there is a non-empty error log, and "single_module"
  7202. # appears in it, assume the flag caused a linker warning
  7203. if test -s conftest.err && $GREP single_module conftest.err; then
  7204. cat conftest.err >&5
  7205. # Otherwise, if the output was created with a 0 exit code from
  7206. # the compiler, it worked.
  7207. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7208. lt_cv_apple_cc_single_mod=yes
  7209. else
  7210. cat conftest.err >&5
  7211. fi
  7212. rm -rf libconftest.dylib*
  7213. rm -f conftest.*
  7214. fi
  7215. fi
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7217. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7219. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7220. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7221. $as_echo_n "(cached) " >&6
  7222. else
  7223. lt_cv_ld_exported_symbols_list=no
  7224. save_LDFLAGS=$LDFLAGS
  7225. echo "_main" > conftest.sym
  7226. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7228. /* end confdefs.h. */
  7229. int
  7230. main ()
  7231. {
  7232. ;
  7233. return 0;
  7234. }
  7235. _ACEOF
  7236. if ac_fn_c_try_link "$LINENO"; then :
  7237. lt_cv_ld_exported_symbols_list=yes
  7238. else
  7239. lt_cv_ld_exported_symbols_list=no
  7240. fi
  7241. rm -f core conftest.err conftest.$ac_objext \
  7242. conftest$ac_exeext conftest.$ac_ext
  7243. LDFLAGS="$save_LDFLAGS"
  7244. fi
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7246. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7248. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7249. if ${lt_cv_ld_force_load+:} false; then :
  7250. $as_echo_n "(cached) " >&6
  7251. else
  7252. lt_cv_ld_force_load=no
  7253. cat > conftest.c << _LT_EOF
  7254. int forced_loaded() { return 2;}
  7255. _LT_EOF
  7256. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7257. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7258. echo "$AR cru libconftest.a conftest.o" >&5
  7259. $AR cru libconftest.a conftest.o 2>&5
  7260. echo "$RANLIB libconftest.a" >&5
  7261. $RANLIB libconftest.a 2>&5
  7262. cat > conftest.c << _LT_EOF
  7263. int main() { return 0;}
  7264. _LT_EOF
  7265. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7266. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7267. _lt_result=$?
  7268. if test -s conftest.err && $GREP force_load conftest.err; then
  7269. cat conftest.err >&5
  7270. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7271. lt_cv_ld_force_load=yes
  7272. else
  7273. cat conftest.err >&5
  7274. fi
  7275. rm -f conftest.err libconftest.a conftest conftest.c
  7276. rm -rf conftest.dSYM
  7277. fi
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7279. $as_echo "$lt_cv_ld_force_load" >&6; }
  7280. case $host_os in
  7281. rhapsody* | darwin1.[012])
  7282. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7283. darwin1.*)
  7284. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7285. darwin*) # darwin 5.x on
  7286. # if running on 10.5 or later, the deployment target defaults
  7287. # to the OS version, if on x86, and 10.4, the deployment
  7288. # target defaults to 10.4. Don't you love it?
  7289. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7290. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7291. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7292. 10.[012]*)
  7293. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7294. 10.*)
  7295. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7296. esac
  7297. ;;
  7298. esac
  7299. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7300. _lt_dar_single_mod='$single_module'
  7301. fi
  7302. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7303. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7304. else
  7305. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7306. fi
  7307. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7308. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7309. else
  7310. _lt_dsymutil=
  7311. fi
  7312. ;;
  7313. esac
  7314. ac_ext=c
  7315. ac_cpp='$CPP $CPPFLAGS'
  7316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7320. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7321. # On Suns, sometimes $CPP names a directory.
  7322. if test -n "$CPP" && test -d "$CPP"; then
  7323. CPP=
  7324. fi
  7325. if test -z "$CPP"; then
  7326. if ${ac_cv_prog_CPP+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. # Double quotes because CPP needs to be expanded
  7330. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7331. do
  7332. ac_preproc_ok=false
  7333. for ac_c_preproc_warn_flag in '' yes
  7334. do
  7335. # Use a header file that comes with gcc, so configuring glibc
  7336. # with a fresh cross-compiler works.
  7337. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7338. # <limits.h> exists even on freestanding compilers.
  7339. # On the NeXT, cc -E runs the code through the compiler's parser,
  7340. # not just through cpp. "Syntax error" is here to catch this case.
  7341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7342. /* end confdefs.h. */
  7343. #ifdef __STDC__
  7344. # include <limits.h>
  7345. #else
  7346. # include <assert.h>
  7347. #endif
  7348. Syntax error
  7349. _ACEOF
  7350. if ac_fn_c_try_cpp "$LINENO"; then :
  7351. else
  7352. # Broken: fails on valid input.
  7353. continue
  7354. fi
  7355. rm -f conftest.err conftest.i conftest.$ac_ext
  7356. # OK, works on sane cases. Now check whether nonexistent headers
  7357. # can be detected and how.
  7358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7359. /* end confdefs.h. */
  7360. #include <ac_nonexistent.h>
  7361. _ACEOF
  7362. if ac_fn_c_try_cpp "$LINENO"; then :
  7363. # Broken: success on invalid input.
  7364. continue
  7365. else
  7366. # Passes both tests.
  7367. ac_preproc_ok=:
  7368. break
  7369. fi
  7370. rm -f conftest.err conftest.i conftest.$ac_ext
  7371. done
  7372. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7373. rm -f conftest.i conftest.err conftest.$ac_ext
  7374. if $ac_preproc_ok; then :
  7375. break
  7376. fi
  7377. done
  7378. ac_cv_prog_CPP=$CPP
  7379. fi
  7380. CPP=$ac_cv_prog_CPP
  7381. else
  7382. ac_cv_prog_CPP=$CPP
  7383. fi
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7385. $as_echo "$CPP" >&6; }
  7386. ac_preproc_ok=false
  7387. for ac_c_preproc_warn_flag in '' yes
  7388. do
  7389. # Use a header file that comes with gcc, so configuring glibc
  7390. # with a fresh cross-compiler works.
  7391. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7392. # <limits.h> exists even on freestanding compilers.
  7393. # On the NeXT, cc -E runs the code through the compiler's parser,
  7394. # not just through cpp. "Syntax error" is here to catch this case.
  7395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7396. /* end confdefs.h. */
  7397. #ifdef __STDC__
  7398. # include <limits.h>
  7399. #else
  7400. # include <assert.h>
  7401. #endif
  7402. Syntax error
  7403. _ACEOF
  7404. if ac_fn_c_try_cpp "$LINENO"; then :
  7405. else
  7406. # Broken: fails on valid input.
  7407. continue
  7408. fi
  7409. rm -f conftest.err conftest.i conftest.$ac_ext
  7410. # OK, works on sane cases. Now check whether nonexistent headers
  7411. # can be detected and how.
  7412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7413. /* end confdefs.h. */
  7414. #include <ac_nonexistent.h>
  7415. _ACEOF
  7416. if ac_fn_c_try_cpp "$LINENO"; then :
  7417. # Broken: success on invalid input.
  7418. continue
  7419. else
  7420. # Passes both tests.
  7421. ac_preproc_ok=:
  7422. break
  7423. fi
  7424. rm -f conftest.err conftest.i conftest.$ac_ext
  7425. done
  7426. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7427. rm -f conftest.i conftest.err conftest.$ac_ext
  7428. if $ac_preproc_ok; then :
  7429. else
  7430. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7431. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7432. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7433. See \`config.log' for more details" "$LINENO" 5; }
  7434. fi
  7435. ac_ext=c
  7436. ac_cpp='$CPP $CPPFLAGS'
  7437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7441. $as_echo_n "checking for ANSI C header files... " >&6; }
  7442. if ${ac_cv_header_stdc+:} false; then :
  7443. $as_echo_n "(cached) " >&6
  7444. else
  7445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7446. /* end confdefs.h. */
  7447. #include <stdlib.h>
  7448. #include <stdarg.h>
  7449. #include <string.h>
  7450. #include <float.h>
  7451. int
  7452. main ()
  7453. {
  7454. ;
  7455. return 0;
  7456. }
  7457. _ACEOF
  7458. if ac_fn_c_try_compile "$LINENO"; then :
  7459. ac_cv_header_stdc=yes
  7460. else
  7461. ac_cv_header_stdc=no
  7462. fi
  7463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7464. if test $ac_cv_header_stdc = yes; then
  7465. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7467. /* end confdefs.h. */
  7468. #include <string.h>
  7469. _ACEOF
  7470. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7471. $EGREP "memchr" >/dev/null 2>&1; then :
  7472. else
  7473. ac_cv_header_stdc=no
  7474. fi
  7475. rm -f conftest*
  7476. fi
  7477. if test $ac_cv_header_stdc = yes; then
  7478. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7480. /* end confdefs.h. */
  7481. #include <stdlib.h>
  7482. _ACEOF
  7483. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7484. $EGREP "free" >/dev/null 2>&1; then :
  7485. else
  7486. ac_cv_header_stdc=no
  7487. fi
  7488. rm -f conftest*
  7489. fi
  7490. if test $ac_cv_header_stdc = yes; then
  7491. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7492. if test "$cross_compiling" = yes; then :
  7493. :
  7494. else
  7495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7496. /* end confdefs.h. */
  7497. #include <ctype.h>
  7498. #include <stdlib.h>
  7499. #if ((' ' & 0x0FF) == 0x020)
  7500. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7501. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7502. #else
  7503. # define ISLOWER(c) \
  7504. (('a' <= (c) && (c) <= 'i') \
  7505. || ('j' <= (c) && (c) <= 'r') \
  7506. || ('s' <= (c) && (c) <= 'z'))
  7507. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7508. #endif
  7509. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7510. int
  7511. main ()
  7512. {
  7513. int i;
  7514. for (i = 0; i < 256; i++)
  7515. if (XOR (islower (i), ISLOWER (i))
  7516. || toupper (i) != TOUPPER (i))
  7517. return 2;
  7518. return 0;
  7519. }
  7520. _ACEOF
  7521. if ac_fn_c_try_run "$LINENO"; then :
  7522. else
  7523. ac_cv_header_stdc=no
  7524. fi
  7525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7526. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7527. fi
  7528. fi
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7531. $as_echo "$ac_cv_header_stdc" >&6; }
  7532. if test $ac_cv_header_stdc = yes; then
  7533. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7534. fi
  7535. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7536. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7537. inttypes.h stdint.h unistd.h
  7538. do :
  7539. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7540. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7541. "
  7542. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7543. cat >>confdefs.h <<_ACEOF
  7544. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7545. _ACEOF
  7546. fi
  7547. done
  7548. for ac_header in dlfcn.h
  7549. do :
  7550. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7551. "
  7552. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7553. cat >>confdefs.h <<_ACEOF
  7554. #define HAVE_DLFCN_H 1
  7555. _ACEOF
  7556. fi
  7557. done
  7558. func_stripname_cnf ()
  7559. {
  7560. case ${2} in
  7561. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7562. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7563. esac
  7564. } # func_stripname_cnf
  7565. # Set options
  7566. enable_dlopen=no
  7567. enable_win32_dll=no
  7568. # Check whether --enable-shared was given.
  7569. if test "${enable_shared+set}" = set; then :
  7570. enableval=$enable_shared; p=${PACKAGE-default}
  7571. case $enableval in
  7572. yes) enable_shared=yes ;;
  7573. no) enable_shared=no ;;
  7574. *)
  7575. enable_shared=no
  7576. # Look at the argument we got. We use all the common list separators.
  7577. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7578. for pkg in $enableval; do
  7579. IFS="$lt_save_ifs"
  7580. if test "X$pkg" = "X$p"; then
  7581. enable_shared=yes
  7582. fi
  7583. done
  7584. IFS="$lt_save_ifs"
  7585. ;;
  7586. esac
  7587. else
  7588. enable_shared=yes
  7589. fi
  7590. # Check whether --with-pic was given.
  7591. if test "${with_pic+set}" = set; then :
  7592. withval=$with_pic; lt_p=${PACKAGE-default}
  7593. case $withval in
  7594. yes|no) pic_mode=$withval ;;
  7595. *)
  7596. pic_mode=default
  7597. # Look at the argument we got. We use all the common list separators.
  7598. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7599. for lt_pkg in $withval; do
  7600. IFS="$lt_save_ifs"
  7601. if test "X$lt_pkg" = "X$lt_p"; then
  7602. pic_mode=yes
  7603. fi
  7604. done
  7605. IFS="$lt_save_ifs"
  7606. ;;
  7607. esac
  7608. else
  7609. pic_mode=default
  7610. fi
  7611. test -z "$pic_mode" && pic_mode=default
  7612. # Check whether --enable-fast-install was given.
  7613. if test "${enable_fast_install+set}" = set; then :
  7614. enableval=$enable_fast_install; p=${PACKAGE-default}
  7615. case $enableval in
  7616. yes) enable_fast_install=yes ;;
  7617. no) enable_fast_install=no ;;
  7618. *)
  7619. enable_fast_install=no
  7620. # Look at the argument we got. We use all the common list separators.
  7621. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7622. for pkg in $enableval; do
  7623. IFS="$lt_save_ifs"
  7624. if test "X$pkg" = "X$p"; then
  7625. enable_fast_install=yes
  7626. fi
  7627. done
  7628. IFS="$lt_save_ifs"
  7629. ;;
  7630. esac
  7631. else
  7632. enable_fast_install=yes
  7633. fi
  7634. # This can be used to rebuild libtool when needed
  7635. LIBTOOL_DEPS="$ltmain"
  7636. # Always use our own libtool.
  7637. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7638. test -z "$LN_S" && LN_S="ln -s"
  7639. if test -n "${ZSH_VERSION+set}" ; then
  7640. setopt NO_GLOB_SUBST
  7641. fi
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7643. $as_echo_n "checking for objdir... " >&6; }
  7644. if ${lt_cv_objdir+:} false; then :
  7645. $as_echo_n "(cached) " >&6
  7646. else
  7647. rm -f .libs 2>/dev/null
  7648. mkdir .libs 2>/dev/null
  7649. if test -d .libs; then
  7650. lt_cv_objdir=.libs
  7651. else
  7652. # MS-DOS does not allow filenames that begin with a dot.
  7653. lt_cv_objdir=_libs
  7654. fi
  7655. rmdir .libs 2>/dev/null
  7656. fi
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7658. $as_echo "$lt_cv_objdir" >&6; }
  7659. objdir=$lt_cv_objdir
  7660. cat >>confdefs.h <<_ACEOF
  7661. #define LT_OBJDIR "$lt_cv_objdir/"
  7662. _ACEOF
  7663. case $host_os in
  7664. aix3*)
  7665. # AIX sometimes has problems with the GCC collect2 program. For some
  7666. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7667. # vanish in a puff of smoke.
  7668. if test "X${COLLECT_NAMES+set}" != Xset; then
  7669. COLLECT_NAMES=
  7670. export COLLECT_NAMES
  7671. fi
  7672. ;;
  7673. esac
  7674. # Global variables:
  7675. ofile=libtool
  7676. can_build_shared=yes
  7677. # All known linkers require a `.a' archive for static linking (except MSVC,
  7678. # which needs '.lib').
  7679. libext=a
  7680. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7681. old_CC="$CC"
  7682. old_CFLAGS="$CFLAGS"
  7683. # Set sane defaults for various variables
  7684. test -z "$CC" && CC=cc
  7685. test -z "$LTCC" && LTCC=$CC
  7686. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7687. test -z "$LD" && LD=ld
  7688. test -z "$ac_objext" && ac_objext=o
  7689. for cc_temp in $compiler""; do
  7690. case $cc_temp in
  7691. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7692. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7693. \-*) ;;
  7694. *) break;;
  7695. esac
  7696. done
  7697. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7698. # Only perform the check for file, if the check method requires it
  7699. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7700. case $deplibs_check_method in
  7701. file_magic*)
  7702. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7704. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7705. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7706. $as_echo_n "(cached) " >&6
  7707. else
  7708. case $MAGIC_CMD in
  7709. [\\/*] | ?:[\\/]*)
  7710. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7711. ;;
  7712. *)
  7713. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7714. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7715. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7716. for ac_dir in $ac_dummy; do
  7717. IFS="$lt_save_ifs"
  7718. test -z "$ac_dir" && ac_dir=.
  7719. if test -f $ac_dir/${ac_tool_prefix}file; then
  7720. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7721. if test -n "$file_magic_test_file"; then
  7722. case $deplibs_check_method in
  7723. "file_magic "*)
  7724. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7725. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7726. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7727. $EGREP "$file_magic_regex" > /dev/null; then
  7728. :
  7729. else
  7730. cat <<_LT_EOF 1>&2
  7731. *** Warning: the command libtool uses to detect shared libraries,
  7732. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7733. *** The result is that libtool may fail to recognize shared libraries
  7734. *** as such. This will affect the creation of libtool libraries that
  7735. *** depend on shared libraries, but programs linked with such libtool
  7736. *** libraries will work regardless of this problem. Nevertheless, you
  7737. *** may want to report the problem to your system manager and/or to
  7738. *** [email protected]
  7739. _LT_EOF
  7740. fi ;;
  7741. esac
  7742. fi
  7743. break
  7744. fi
  7745. done
  7746. IFS="$lt_save_ifs"
  7747. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7748. ;;
  7749. esac
  7750. fi
  7751. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7752. if test -n "$MAGIC_CMD"; then
  7753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7754. $as_echo "$MAGIC_CMD" >&6; }
  7755. else
  7756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7757. $as_echo "no" >&6; }
  7758. fi
  7759. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7760. if test -n "$ac_tool_prefix"; then
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7762. $as_echo_n "checking for file... " >&6; }
  7763. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7764. $as_echo_n "(cached) " >&6
  7765. else
  7766. case $MAGIC_CMD in
  7767. [\\/*] | ?:[\\/]*)
  7768. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7769. ;;
  7770. *)
  7771. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7772. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7773. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7774. for ac_dir in $ac_dummy; do
  7775. IFS="$lt_save_ifs"
  7776. test -z "$ac_dir" && ac_dir=.
  7777. if test -f $ac_dir/file; then
  7778. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7779. if test -n "$file_magic_test_file"; then
  7780. case $deplibs_check_method in
  7781. "file_magic "*)
  7782. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7783. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7784. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7785. $EGREP "$file_magic_regex" > /dev/null; then
  7786. :
  7787. else
  7788. cat <<_LT_EOF 1>&2
  7789. *** Warning: the command libtool uses to detect shared libraries,
  7790. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7791. *** The result is that libtool may fail to recognize shared libraries
  7792. *** as such. This will affect the creation of libtool libraries that
  7793. *** depend on shared libraries, but programs linked with such libtool
  7794. *** libraries will work regardless of this problem. Nevertheless, you
  7795. *** may want to report the problem to your system manager and/or to
  7796. *** [email protected]
  7797. _LT_EOF
  7798. fi ;;
  7799. esac
  7800. fi
  7801. break
  7802. fi
  7803. done
  7804. IFS="$lt_save_ifs"
  7805. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7806. ;;
  7807. esac
  7808. fi
  7809. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7810. if test -n "$MAGIC_CMD"; then
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7812. $as_echo "$MAGIC_CMD" >&6; }
  7813. else
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7815. $as_echo "no" >&6; }
  7816. fi
  7817. else
  7818. MAGIC_CMD=:
  7819. fi
  7820. fi
  7821. fi
  7822. ;;
  7823. esac
  7824. # Use C for the default configuration in the libtool script
  7825. lt_save_CC="$CC"
  7826. ac_ext=c
  7827. ac_cpp='$CPP $CPPFLAGS'
  7828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7831. # Source file extension for C test sources.
  7832. ac_ext=c
  7833. # Object file extension for compiled C test sources.
  7834. objext=o
  7835. objext=$objext
  7836. # Code to be used in simple compile tests
  7837. lt_simple_compile_test_code="int some_variable = 0;"
  7838. # Code to be used in simple link tests
  7839. lt_simple_link_test_code='int main(){return(0);}'
  7840. # If no C compiler was specified, use CC.
  7841. LTCC=${LTCC-"$CC"}
  7842. # If no C compiler flags were specified, use CFLAGS.
  7843. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7844. # Allow CC to be a program name with arguments.
  7845. compiler=$CC
  7846. # Save the default compiler, since it gets overwritten when the other
  7847. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7848. compiler_DEFAULT=$CC
  7849. # save warnings/boilerplate of simple test code
  7850. ac_outfile=conftest.$ac_objext
  7851. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7852. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7853. _lt_compiler_boilerplate=`cat conftest.err`
  7854. $RM conftest*
  7855. ac_outfile=conftest.$ac_objext
  7856. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7857. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7858. _lt_linker_boilerplate=`cat conftest.err`
  7859. $RM -r conftest*
  7860. ## CAVEAT EMPTOR:
  7861. ## There is no encapsulation within the following macros, do not change
  7862. ## the running order or otherwise move them around unless you know exactly
  7863. ## what you are doing...
  7864. if test -n "$compiler"; then
  7865. lt_prog_compiler_no_builtin_flag=
  7866. if test "$GCC" = yes; then
  7867. case $cc_basename in
  7868. nvcc*)
  7869. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7870. *)
  7871. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7872. esac
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7874. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7875. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7876. $as_echo_n "(cached) " >&6
  7877. else
  7878. lt_cv_prog_compiler_rtti_exceptions=no
  7879. ac_outfile=conftest.$ac_objext
  7880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7881. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7882. # Insert the option either (1) after the last *FLAGS variable, or
  7883. # (2) before a word containing "conftest.", or (3) at the end.
  7884. # Note that $ac_compile itself does not contain backslashes and begins
  7885. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7886. # The option is referenced via a variable to avoid confusing sed.
  7887. lt_compile=`echo "$ac_compile" | $SED \
  7888. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7889. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7890. -e 's:$: $lt_compiler_flag:'`
  7891. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7892. (eval "$lt_compile" 2>conftest.err)
  7893. ac_status=$?
  7894. cat conftest.err >&5
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. if (exit $ac_status) && test -s "$ac_outfile"; then
  7897. # The compiler can only warn and ignore the option if not recognized
  7898. # So say no if there are warnings other than the usual output.
  7899. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7900. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7901. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7902. lt_cv_prog_compiler_rtti_exceptions=yes
  7903. fi
  7904. fi
  7905. $RM conftest*
  7906. fi
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7908. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7909. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7910. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7911. else
  7912. :
  7913. fi
  7914. fi
  7915. lt_prog_compiler_wl=
  7916. lt_prog_compiler_pic=
  7917. lt_prog_compiler_static=
  7918. if test "$GCC" = yes; then
  7919. lt_prog_compiler_wl='-Wl,'
  7920. lt_prog_compiler_static='-static'
  7921. case $host_os in
  7922. aix*)
  7923. # All AIX code is PIC.
  7924. if test "$host_cpu" = ia64; then
  7925. # AIX 5 now supports IA64 processor
  7926. lt_prog_compiler_static='-Bstatic'
  7927. fi
  7928. ;;
  7929. amigaos*)
  7930. case $host_cpu in
  7931. powerpc)
  7932. # see comment about AmigaOS4 .so support
  7933. lt_prog_compiler_pic='-fPIC'
  7934. ;;
  7935. m68k)
  7936. # FIXME: we need at least 68020 code to build shared libraries, but
  7937. # adding the `-m68020' flag to GCC prevents building anything better,
  7938. # like `-m68040'.
  7939. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7940. ;;
  7941. esac
  7942. ;;
  7943. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7944. # PIC is the default for these OSes.
  7945. ;;
  7946. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7947. # This hack is so that the source file can tell whether it is being
  7948. # built for inclusion in a dll (and should export symbols for example).
  7949. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7950. # (--disable-auto-import) libraries
  7951. lt_prog_compiler_pic='-DDLL_EXPORT'
  7952. ;;
  7953. darwin* | rhapsody*)
  7954. # PIC is the default on this platform
  7955. # Common symbols not allowed in MH_DYLIB files
  7956. lt_prog_compiler_pic='-fno-common'
  7957. ;;
  7958. haiku*)
  7959. # PIC is the default for Haiku.
  7960. # The "-static" flag exists, but is broken.
  7961. lt_prog_compiler_static=
  7962. ;;
  7963. hpux*)
  7964. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7965. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7966. # sets the default TLS model and affects inlining.
  7967. case $host_cpu in
  7968. hppa*64*)
  7969. # +Z the default
  7970. ;;
  7971. *)
  7972. lt_prog_compiler_pic='-fPIC'
  7973. ;;
  7974. esac
  7975. ;;
  7976. interix[3-9]*)
  7977. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7978. # Instead, we relocate shared libraries at runtime.
  7979. ;;
  7980. msdosdjgpp*)
  7981. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7982. # on systems that don't support them.
  7983. lt_prog_compiler_can_build_shared=no
  7984. enable_shared=no
  7985. ;;
  7986. *nto* | *qnx*)
  7987. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7988. # it will coredump.
  7989. lt_prog_compiler_pic='-fPIC -shared'
  7990. ;;
  7991. sysv4*MP*)
  7992. if test -d /usr/nec; then
  7993. lt_prog_compiler_pic=-Kconform_pic
  7994. fi
  7995. ;;
  7996. *)
  7997. lt_prog_compiler_pic='-fPIC'
  7998. ;;
  7999. esac
  8000. case $cc_basename in
  8001. nvcc*) # Cuda Compiler Driver 2.2
  8002. lt_prog_compiler_wl='-Xlinker '
  8003. if test -n "$lt_prog_compiler_pic"; then
  8004. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8005. fi
  8006. ;;
  8007. esac
  8008. else
  8009. # PORTME Check for flag to pass linker flags through the system compiler.
  8010. case $host_os in
  8011. aix*)
  8012. lt_prog_compiler_wl='-Wl,'
  8013. if test "$host_cpu" = ia64; then
  8014. # AIX 5 now supports IA64 processor
  8015. lt_prog_compiler_static='-Bstatic'
  8016. else
  8017. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8018. fi
  8019. ;;
  8020. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8021. # This hack is so that the source file can tell whether it is being
  8022. # built for inclusion in a dll (and should export symbols for example).
  8023. lt_prog_compiler_pic='-DDLL_EXPORT'
  8024. ;;
  8025. hpux9* | hpux10* | hpux11*)
  8026. lt_prog_compiler_wl='-Wl,'
  8027. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8028. # not for PA HP-UX.
  8029. case $host_cpu in
  8030. hppa*64*|ia64*)
  8031. # +Z the default
  8032. ;;
  8033. *)
  8034. lt_prog_compiler_pic='+Z'
  8035. ;;
  8036. esac
  8037. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8038. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8039. ;;
  8040. irix5* | irix6* | nonstopux*)
  8041. lt_prog_compiler_wl='-Wl,'
  8042. # PIC (with -KPIC) is the default.
  8043. lt_prog_compiler_static='-non_shared'
  8044. ;;
  8045. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8046. case $cc_basename in
  8047. # old Intel for x86_64 which still supported -KPIC.
  8048. ecc*)
  8049. lt_prog_compiler_wl='-Wl,'
  8050. lt_prog_compiler_pic='-KPIC'
  8051. lt_prog_compiler_static='-static'
  8052. ;;
  8053. # icc used to be incompatible with GCC.
  8054. # ICC 10 doesn't accept -KPIC any more.
  8055. icc* | ifort*)
  8056. lt_prog_compiler_wl='-Wl,'
  8057. lt_prog_compiler_pic='-fPIC'
  8058. lt_prog_compiler_static='-static'
  8059. ;;
  8060. # Lahey Fortran 8.1.
  8061. lf95*)
  8062. lt_prog_compiler_wl='-Wl,'
  8063. lt_prog_compiler_pic='--shared'
  8064. lt_prog_compiler_static='--static'
  8065. ;;
  8066. nagfor*)
  8067. # NAG Fortran compiler
  8068. lt_prog_compiler_wl='-Wl,-Wl,,'
  8069. lt_prog_compiler_pic='-PIC'
  8070. lt_prog_compiler_static='-Bstatic'
  8071. ;;
  8072. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8073. # Portland Group compilers (*not* the Pentium gcc compiler,
  8074. # which looks to be a dead project)
  8075. lt_prog_compiler_wl='-Wl,'
  8076. lt_prog_compiler_pic='-fpic'
  8077. lt_prog_compiler_static='-Bstatic'
  8078. ;;
  8079. ccc*)
  8080. lt_prog_compiler_wl='-Wl,'
  8081. # All Alpha code is PIC.
  8082. lt_prog_compiler_static='-non_shared'
  8083. ;;
  8084. xl* | bgxl* | bgf* | mpixl*)
  8085. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8086. lt_prog_compiler_wl='-Wl,'
  8087. lt_prog_compiler_pic='-qpic'
  8088. lt_prog_compiler_static='-qstaticlink'
  8089. ;;
  8090. *)
  8091. case `$CC -V 2>&1 | sed 5q` in
  8092. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8093. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8094. lt_prog_compiler_pic='-KPIC'
  8095. lt_prog_compiler_static='-Bstatic'
  8096. lt_prog_compiler_wl=''
  8097. ;;
  8098. *Sun\ F* | *Sun*Fortran*)
  8099. lt_prog_compiler_pic='-KPIC'
  8100. lt_prog_compiler_static='-Bstatic'
  8101. lt_prog_compiler_wl='-Qoption ld '
  8102. ;;
  8103. *Sun\ C*)
  8104. # Sun C 5.9
  8105. lt_prog_compiler_pic='-KPIC'
  8106. lt_prog_compiler_static='-Bstatic'
  8107. lt_prog_compiler_wl='-Wl,'
  8108. ;;
  8109. *Intel*\ [CF]*Compiler*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. lt_prog_compiler_pic='-fPIC'
  8112. lt_prog_compiler_static='-static'
  8113. ;;
  8114. *Portland\ Group*)
  8115. lt_prog_compiler_wl='-Wl,'
  8116. lt_prog_compiler_pic='-fpic'
  8117. lt_prog_compiler_static='-Bstatic'
  8118. ;;
  8119. esac
  8120. ;;
  8121. esac
  8122. ;;
  8123. newsos6)
  8124. lt_prog_compiler_pic='-KPIC'
  8125. lt_prog_compiler_static='-Bstatic'
  8126. ;;
  8127. *nto* | *qnx*)
  8128. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8129. # it will coredump.
  8130. lt_prog_compiler_pic='-fPIC -shared'
  8131. ;;
  8132. osf3* | osf4* | osf5*)
  8133. lt_prog_compiler_wl='-Wl,'
  8134. # All OSF/1 code is PIC.
  8135. lt_prog_compiler_static='-non_shared'
  8136. ;;
  8137. rdos*)
  8138. lt_prog_compiler_static='-non_shared'
  8139. ;;
  8140. solaris*)
  8141. lt_prog_compiler_pic='-KPIC'
  8142. lt_prog_compiler_static='-Bstatic'
  8143. case $cc_basename in
  8144. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8145. lt_prog_compiler_wl='-Qoption ld ';;
  8146. *)
  8147. lt_prog_compiler_wl='-Wl,';;
  8148. esac
  8149. ;;
  8150. sunos4*)
  8151. lt_prog_compiler_wl='-Qoption ld '
  8152. lt_prog_compiler_pic='-PIC'
  8153. lt_prog_compiler_static='-Bstatic'
  8154. ;;
  8155. sysv4 | sysv4.2uw2* | sysv4.3*)
  8156. lt_prog_compiler_wl='-Wl,'
  8157. lt_prog_compiler_pic='-KPIC'
  8158. lt_prog_compiler_static='-Bstatic'
  8159. ;;
  8160. sysv4*MP*)
  8161. if test -d /usr/nec ;then
  8162. lt_prog_compiler_pic='-Kconform_pic'
  8163. lt_prog_compiler_static='-Bstatic'
  8164. fi
  8165. ;;
  8166. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8167. lt_prog_compiler_wl='-Wl,'
  8168. lt_prog_compiler_pic='-KPIC'
  8169. lt_prog_compiler_static='-Bstatic'
  8170. ;;
  8171. unicos*)
  8172. lt_prog_compiler_wl='-Wl,'
  8173. lt_prog_compiler_can_build_shared=no
  8174. ;;
  8175. uts4*)
  8176. lt_prog_compiler_pic='-pic'
  8177. lt_prog_compiler_static='-Bstatic'
  8178. ;;
  8179. *)
  8180. lt_prog_compiler_can_build_shared=no
  8181. ;;
  8182. esac
  8183. fi
  8184. case $host_os in
  8185. # For platforms which do not support PIC, -DPIC is meaningless:
  8186. *djgpp*)
  8187. lt_prog_compiler_pic=
  8188. ;;
  8189. *)
  8190. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8191. ;;
  8192. esac
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8194. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8195. if ${lt_cv_prog_compiler_pic+:} false; then :
  8196. $as_echo_n "(cached) " >&6
  8197. else
  8198. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8199. fi
  8200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8201. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8202. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8203. #
  8204. # Check to make sure the PIC flag actually works.
  8205. #
  8206. if test -n "$lt_prog_compiler_pic"; then
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8208. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8209. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8210. $as_echo_n "(cached) " >&6
  8211. else
  8212. lt_cv_prog_compiler_pic_works=no
  8213. ac_outfile=conftest.$ac_objext
  8214. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8215. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8216. # Insert the option either (1) after the last *FLAGS variable, or
  8217. # (2) before a word containing "conftest.", or (3) at the end.
  8218. # Note that $ac_compile itself does not contain backslashes and begins
  8219. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8220. # The option is referenced via a variable to avoid confusing sed.
  8221. lt_compile=`echo "$ac_compile" | $SED \
  8222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8224. -e 's:$: $lt_compiler_flag:'`
  8225. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8226. (eval "$lt_compile" 2>conftest.err)
  8227. ac_status=$?
  8228. cat conftest.err >&5
  8229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. if (exit $ac_status) && test -s "$ac_outfile"; then
  8231. # The compiler can only warn and ignore the option if not recognized
  8232. # So say no if there are warnings other than the usual output.
  8233. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8234. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8235. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8236. lt_cv_prog_compiler_pic_works=yes
  8237. fi
  8238. fi
  8239. $RM conftest*
  8240. fi
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8242. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8243. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8244. case $lt_prog_compiler_pic in
  8245. "" | " "*) ;;
  8246. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8247. esac
  8248. else
  8249. lt_prog_compiler_pic=
  8250. lt_prog_compiler_can_build_shared=no
  8251. fi
  8252. fi
  8253. #
  8254. # Check to make sure the static flag actually works.
  8255. #
  8256. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8258. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8259. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8260. $as_echo_n "(cached) " >&6
  8261. else
  8262. lt_cv_prog_compiler_static_works=no
  8263. save_LDFLAGS="$LDFLAGS"
  8264. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8265. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8266. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8267. # The linker can only warn and ignore the option if not recognized
  8268. # So say no if there are warnings
  8269. if test -s conftest.err; then
  8270. # Append any errors to the config.log.
  8271. cat conftest.err 1>&5
  8272. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8273. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8274. if diff conftest.exp conftest.er2 >/dev/null; then
  8275. lt_cv_prog_compiler_static_works=yes
  8276. fi
  8277. else
  8278. lt_cv_prog_compiler_static_works=yes
  8279. fi
  8280. fi
  8281. $RM -r conftest*
  8282. LDFLAGS="$save_LDFLAGS"
  8283. fi
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8285. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8286. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8287. :
  8288. else
  8289. lt_prog_compiler_static=
  8290. fi
  8291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8292. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8293. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8294. $as_echo_n "(cached) " >&6
  8295. else
  8296. lt_cv_prog_compiler_c_o=no
  8297. $RM -r conftest 2>/dev/null
  8298. mkdir conftest
  8299. cd conftest
  8300. mkdir out
  8301. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8302. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8303. # Insert the option either (1) after the last *FLAGS variable, or
  8304. # (2) before a word containing "conftest.", or (3) at the end.
  8305. # Note that $ac_compile itself does not contain backslashes and begins
  8306. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8307. lt_compile=`echo "$ac_compile" | $SED \
  8308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8310. -e 's:$: $lt_compiler_flag:'`
  8311. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8312. (eval "$lt_compile" 2>out/conftest.err)
  8313. ac_status=$?
  8314. cat out/conftest.err >&5
  8315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8316. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8317. then
  8318. # The compiler can only warn and ignore the option if not recognized
  8319. # So say no if there are warnings
  8320. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8321. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8322. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8323. lt_cv_prog_compiler_c_o=yes
  8324. fi
  8325. fi
  8326. chmod u+w . 2>&5
  8327. $RM conftest*
  8328. # SGI C++ compiler will create directory out/ii_files/ for
  8329. # template instantiation
  8330. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8331. $RM out/* && rmdir out
  8332. cd ..
  8333. $RM -r conftest
  8334. $RM conftest*
  8335. fi
  8336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8337. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8339. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8340. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8341. $as_echo_n "(cached) " >&6
  8342. else
  8343. lt_cv_prog_compiler_c_o=no
  8344. $RM -r conftest 2>/dev/null
  8345. mkdir conftest
  8346. cd conftest
  8347. mkdir out
  8348. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8349. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8350. # Insert the option either (1) after the last *FLAGS variable, or
  8351. # (2) before a word containing "conftest.", or (3) at the end.
  8352. # Note that $ac_compile itself does not contain backslashes and begins
  8353. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8354. lt_compile=`echo "$ac_compile" | $SED \
  8355. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8356. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8357. -e 's:$: $lt_compiler_flag:'`
  8358. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8359. (eval "$lt_compile" 2>out/conftest.err)
  8360. ac_status=$?
  8361. cat out/conftest.err >&5
  8362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8363. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8364. then
  8365. # The compiler can only warn and ignore the option if not recognized
  8366. # So say no if there are warnings
  8367. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8368. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8369. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8370. lt_cv_prog_compiler_c_o=yes
  8371. fi
  8372. fi
  8373. chmod u+w . 2>&5
  8374. $RM conftest*
  8375. # SGI C++ compiler will create directory out/ii_files/ for
  8376. # template instantiation
  8377. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8378. $RM out/* && rmdir out
  8379. cd ..
  8380. $RM -r conftest
  8381. $RM conftest*
  8382. fi
  8383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8384. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8385. hard_links="nottested"
  8386. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8387. # do not overwrite the value of need_locks provided by the user
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8389. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8390. hard_links=yes
  8391. $RM conftest*
  8392. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8393. touch conftest.a
  8394. ln conftest.a conftest.b 2>&5 || hard_links=no
  8395. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8397. $as_echo "$hard_links" >&6; }
  8398. if test "$hard_links" = no; then
  8399. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8400. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8401. need_locks=warn
  8402. fi
  8403. else
  8404. need_locks=no
  8405. fi
  8406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8407. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8408. runpath_var=
  8409. allow_undefined_flag=
  8410. always_export_symbols=no
  8411. archive_cmds=
  8412. archive_expsym_cmds=
  8413. compiler_needs_object=no
  8414. enable_shared_with_static_runtimes=no
  8415. export_dynamic_flag_spec=
  8416. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8417. hardcode_automatic=no
  8418. hardcode_direct=no
  8419. hardcode_direct_absolute=no
  8420. hardcode_libdir_flag_spec=
  8421. hardcode_libdir_separator=
  8422. hardcode_minus_L=no
  8423. hardcode_shlibpath_var=unsupported
  8424. inherit_rpath=no
  8425. link_all_deplibs=unknown
  8426. module_cmds=
  8427. module_expsym_cmds=
  8428. old_archive_from_new_cmds=
  8429. old_archive_from_expsyms_cmds=
  8430. thread_safe_flag_spec=
  8431. whole_archive_flag_spec=
  8432. # include_expsyms should be a list of space-separated symbols to be *always*
  8433. # included in the symbol list
  8434. include_expsyms=
  8435. # exclude_expsyms can be an extended regexp of symbols to exclude
  8436. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8437. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8438. # as well as any symbol that contains `d'.
  8439. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8440. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8441. # platforms (ab)use it in PIC code, but their linkers get confused if
  8442. # the symbol is explicitly referenced. Since portable code cannot
  8443. # rely on this symbol name, it's probably fine to never include it in
  8444. # preloaded symbol tables.
  8445. # Exclude shared library initialization/finalization symbols.
  8446. extract_expsyms_cmds=
  8447. case $host_os in
  8448. cygwin* | mingw* | pw32* | cegcc*)
  8449. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8450. # When not using gcc, we currently assume that we are using
  8451. # Microsoft Visual C++.
  8452. if test "$GCC" != yes; then
  8453. with_gnu_ld=no
  8454. fi
  8455. ;;
  8456. interix*)
  8457. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8458. with_gnu_ld=yes
  8459. ;;
  8460. openbsd*)
  8461. with_gnu_ld=no
  8462. ;;
  8463. esac
  8464. ld_shlibs=yes
  8465. # On some targets, GNU ld is compatible enough with the native linker
  8466. # that we're better off using the native interface for both.
  8467. lt_use_gnu_ld_interface=no
  8468. if test "$with_gnu_ld" = yes; then
  8469. case $host_os in
  8470. aix*)
  8471. # The AIX port of GNU ld has always aspired to compatibility
  8472. # with the native linker. However, as the warning in the GNU ld
  8473. # block says, versions before 2.19.5* couldn't really create working
  8474. # shared libraries, regardless of the interface used.
  8475. case `$LD -v 2>&1` in
  8476. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8477. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8478. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8479. *)
  8480. lt_use_gnu_ld_interface=yes
  8481. ;;
  8482. esac
  8483. ;;
  8484. *)
  8485. lt_use_gnu_ld_interface=yes
  8486. ;;
  8487. esac
  8488. fi
  8489. if test "$lt_use_gnu_ld_interface" = yes; then
  8490. # If archive_cmds runs LD, not CC, wlarc should be empty
  8491. wlarc='${wl}'
  8492. # Set some defaults for GNU ld with shared library support. These
  8493. # are reset later if shared libraries are not supported. Putting them
  8494. # here allows them to be overridden if necessary.
  8495. runpath_var=LD_RUN_PATH
  8496. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8497. export_dynamic_flag_spec='${wl}--export-dynamic'
  8498. # ancient GNU ld didn't support --whole-archive et. al.
  8499. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8500. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8501. else
  8502. whole_archive_flag_spec=
  8503. fi
  8504. supports_anon_versioning=no
  8505. case `$LD -v 2>&1` in
  8506. *GNU\ gold*) supports_anon_versioning=yes ;;
  8507. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8508. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8509. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8510. *\ 2.11.*) ;; # other 2.11 versions
  8511. *) supports_anon_versioning=yes ;;
  8512. esac
  8513. # See if GNU ld supports shared libraries.
  8514. case $host_os in
  8515. aix[3-9]*)
  8516. # On AIX/PPC, the GNU linker is very broken
  8517. if test "$host_cpu" != ia64; then
  8518. ld_shlibs=no
  8519. cat <<_LT_EOF 1>&2
  8520. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8521. *** to be unable to reliably create shared libraries on AIX.
  8522. *** Therefore, libtool is disabling shared libraries support. If you
  8523. *** really care for shared libraries, you may want to install binutils
  8524. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8525. *** You will then need to restart the configuration process.
  8526. _LT_EOF
  8527. fi
  8528. ;;
  8529. amigaos*)
  8530. case $host_cpu in
  8531. powerpc)
  8532. # see comment about AmigaOS4 .so support
  8533. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8534. archive_expsym_cmds=''
  8535. ;;
  8536. m68k)
  8537. 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)'
  8538. hardcode_libdir_flag_spec='-L$libdir'
  8539. hardcode_minus_L=yes
  8540. ;;
  8541. esac
  8542. ;;
  8543. beos*)
  8544. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8545. allow_undefined_flag=unsupported
  8546. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8547. # support --undefined. This deserves some investigation. FIXME
  8548. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8549. else
  8550. ld_shlibs=no
  8551. fi
  8552. ;;
  8553. cygwin* | mingw* | pw32* | cegcc*)
  8554. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8555. # as there is no search path for DLLs.
  8556. hardcode_libdir_flag_spec='-L$libdir'
  8557. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8558. allow_undefined_flag=unsupported
  8559. always_export_symbols=no
  8560. enable_shared_with_static_runtimes=yes
  8561. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8562. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8563. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8564. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8565. # If the export-symbols file already is a .def file (1st line
  8566. # is EXPORTS), use it as is; otherwise, prepend...
  8567. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8568. cp $export_symbols $output_objdir/$soname.def;
  8569. else
  8570. echo EXPORTS > $output_objdir/$soname.def;
  8571. cat $export_symbols >> $output_objdir/$soname.def;
  8572. fi~
  8573. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8574. else
  8575. ld_shlibs=no
  8576. fi
  8577. ;;
  8578. haiku*)
  8579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8580. link_all_deplibs=yes
  8581. ;;
  8582. interix[3-9]*)
  8583. hardcode_direct=no
  8584. hardcode_shlibpath_var=no
  8585. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8586. export_dynamic_flag_spec='${wl}-E'
  8587. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8588. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8589. # default) and relocated if they conflict, which is a slow very memory
  8590. # consuming and fragmenting process. To avoid this, we pick a random,
  8591. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8592. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8593. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8594. 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'
  8595. ;;
  8596. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8597. tmp_diet=no
  8598. if test "$host_os" = linux-dietlibc; then
  8599. case $cc_basename in
  8600. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8601. esac
  8602. fi
  8603. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8604. && test "$tmp_diet" = no
  8605. then
  8606. tmp_addflag=' $pic_flag'
  8607. tmp_sharedflag='-shared'
  8608. case $cc_basename,$host_cpu in
  8609. pgcc*) # Portland Group C compiler
  8610. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8611. tmp_addflag=' $pic_flag'
  8612. ;;
  8613. pgf77* | pgf90* | pgf95* | pgfortran*)
  8614. # Portland Group f77 and f90 compilers
  8615. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8616. tmp_addflag=' $pic_flag -Mnomain' ;;
  8617. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8618. tmp_addflag=' -i_dynamic' ;;
  8619. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8620. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8621. ifc* | ifort*) # Intel Fortran compiler
  8622. tmp_addflag=' -nofor_main' ;;
  8623. lf95*) # Lahey Fortran 8.1
  8624. whole_archive_flag_spec=
  8625. tmp_sharedflag='--shared' ;;
  8626. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8627. tmp_sharedflag='-qmkshrobj'
  8628. tmp_addflag= ;;
  8629. nvcc*) # Cuda Compiler Driver 2.2
  8630. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8631. compiler_needs_object=yes
  8632. ;;
  8633. esac
  8634. case `$CC -V 2>&1 | sed 5q` in
  8635. *Sun\ C*) # Sun C 5.9
  8636. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8637. compiler_needs_object=yes
  8638. tmp_sharedflag='-G' ;;
  8639. *Sun\ F*) # Sun Fortran 8.3
  8640. tmp_sharedflag='-G' ;;
  8641. esac
  8642. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8643. if test "x$supports_anon_versioning" = xyes; then
  8644. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8645. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8646. echo "local: *; };" >> $output_objdir/$libname.ver~
  8647. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8648. fi
  8649. case $cc_basename in
  8650. xlf* | bgf* | bgxlf* | mpixlf*)
  8651. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8652. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8653. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8654. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8655. if test "x$supports_anon_versioning" = xyes; then
  8656. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8657. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8658. echo "local: *; };" >> $output_objdir/$libname.ver~
  8659. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8660. fi
  8661. ;;
  8662. esac
  8663. else
  8664. ld_shlibs=no
  8665. fi
  8666. ;;
  8667. netbsd*)
  8668. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8669. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8670. wlarc=
  8671. else
  8672. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8673. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8674. fi
  8675. ;;
  8676. solaris*)
  8677. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8678. ld_shlibs=no
  8679. cat <<_LT_EOF 1>&2
  8680. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8681. *** create shared libraries on Solaris systems. Therefore, libtool
  8682. *** is disabling shared libraries support. We urge you to upgrade GNU
  8683. *** binutils to release 2.9.1 or newer. Another option is to modify
  8684. *** your PATH or compiler configuration so that the native linker is
  8685. *** used, and then restart.
  8686. _LT_EOF
  8687. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8688. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8689. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8690. else
  8691. ld_shlibs=no
  8692. fi
  8693. ;;
  8694. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8695. case `$LD -v 2>&1` in
  8696. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8697. ld_shlibs=no
  8698. cat <<_LT_EOF 1>&2
  8699. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8700. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8701. *** is disabling shared libraries support. We urge you to upgrade GNU
  8702. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8703. *** your PATH or compiler configuration so that the native linker is
  8704. *** used, and then restart.
  8705. _LT_EOF
  8706. ;;
  8707. *)
  8708. # For security reasons, it is highly recommended that you always
  8709. # use absolute paths for naming shared libraries, and exclude the
  8710. # DT_RUNPATH tag from executables and libraries. But doing so
  8711. # requires that you compile everything twice, which is a pain.
  8712. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8713. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8714. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8715. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8716. else
  8717. ld_shlibs=no
  8718. fi
  8719. ;;
  8720. esac
  8721. ;;
  8722. sunos4*)
  8723. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8724. wlarc=
  8725. hardcode_direct=yes
  8726. hardcode_shlibpath_var=no
  8727. ;;
  8728. *)
  8729. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8730. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8731. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8732. else
  8733. ld_shlibs=no
  8734. fi
  8735. ;;
  8736. esac
  8737. if test "$ld_shlibs" = no; then
  8738. runpath_var=
  8739. hardcode_libdir_flag_spec=
  8740. export_dynamic_flag_spec=
  8741. whole_archive_flag_spec=
  8742. fi
  8743. else
  8744. # PORTME fill in a description of your system's linker (not GNU ld)
  8745. case $host_os in
  8746. aix3*)
  8747. allow_undefined_flag=unsupported
  8748. always_export_symbols=yes
  8749. 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'
  8750. # Note: this linker hardcodes the directories in LIBPATH if there
  8751. # are no directories specified by -L.
  8752. hardcode_minus_L=yes
  8753. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8754. # Neither direct hardcoding nor static linking is supported with a
  8755. # broken collect2.
  8756. hardcode_direct=unsupported
  8757. fi
  8758. ;;
  8759. aix[4-9]*)
  8760. if test "$host_cpu" = ia64; then
  8761. # On IA64, the linker does run time linking by default, so we don't
  8762. # have to do anything special.
  8763. aix_use_runtimelinking=no
  8764. exp_sym_flag='-Bexport'
  8765. no_entry_flag=""
  8766. else
  8767. # If we're using GNU nm, then we don't want the "-C" option.
  8768. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8769. # Also, AIX nm treats weak defined symbols like other global
  8770. # defined symbols, whereas GNU nm marks them as "W".
  8771. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8772. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8773. else
  8774. 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'
  8775. fi
  8776. aix_use_runtimelinking=no
  8777. # Test if we are trying to use run time linking or normal
  8778. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8779. # need to do runtime linking.
  8780. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8781. for ld_flag in $LDFLAGS; do
  8782. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8783. aix_use_runtimelinking=yes
  8784. break
  8785. fi
  8786. done
  8787. ;;
  8788. esac
  8789. exp_sym_flag='-bexport'
  8790. no_entry_flag='-bnoentry'
  8791. fi
  8792. # When large executables or shared objects are built, AIX ld can
  8793. # have problems creating the table of contents. If linking a library
  8794. # or program results in "error TOC overflow" add -mminimal-toc to
  8795. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8796. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8797. archive_cmds=''
  8798. hardcode_direct=yes
  8799. hardcode_direct_absolute=yes
  8800. hardcode_libdir_separator=':'
  8801. link_all_deplibs=yes
  8802. file_list_spec='${wl}-f,'
  8803. if test "$GCC" = yes; then
  8804. case $host_os in aix4.[012]|aix4.[012].*)
  8805. # We only want to do this on AIX 4.2 and lower, the check
  8806. # below for broken collect2 doesn't work under 4.3+
  8807. collect2name=`${CC} -print-prog-name=collect2`
  8808. if test -f "$collect2name" &&
  8809. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8810. then
  8811. # We have reworked collect2
  8812. :
  8813. else
  8814. # We have old collect2
  8815. hardcode_direct=unsupported
  8816. # It fails to find uninstalled libraries when the uninstalled
  8817. # path is not listed in the libpath. Setting hardcode_minus_L
  8818. # to unsupported forces relinking
  8819. hardcode_minus_L=yes
  8820. hardcode_libdir_flag_spec='-L$libdir'
  8821. hardcode_libdir_separator=
  8822. fi
  8823. ;;
  8824. esac
  8825. shared_flag='-shared'
  8826. if test "$aix_use_runtimelinking" = yes; then
  8827. shared_flag="$shared_flag "'${wl}-G'
  8828. fi
  8829. else
  8830. # not using gcc
  8831. if test "$host_cpu" = ia64; then
  8832. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8833. # chokes on -Wl,-G. The following line is correct:
  8834. shared_flag='-G'
  8835. else
  8836. if test "$aix_use_runtimelinking" = yes; then
  8837. shared_flag='${wl}-G'
  8838. else
  8839. shared_flag='${wl}-bM:SRE'
  8840. fi
  8841. fi
  8842. fi
  8843. export_dynamic_flag_spec='${wl}-bexpall'
  8844. # It seems that -bexpall does not export symbols beginning with
  8845. # underscore (_), so it is better to generate a list of symbols to export.
  8846. always_export_symbols=yes
  8847. if test "$aix_use_runtimelinking" = yes; then
  8848. # Warning - without using the other runtime loading flags (-brtl),
  8849. # -berok will link without error, but may produce a broken library.
  8850. allow_undefined_flag='-berok'
  8851. # Determine the default libpath from the value encoded in an
  8852. # empty executable.
  8853. if test "${lt_cv_aix_libpath+set}" = set; then
  8854. aix_libpath=$lt_cv_aix_libpath
  8855. else
  8856. if ${lt_cv_aix_libpath_+:} false; then :
  8857. $as_echo_n "(cached) " >&6
  8858. else
  8859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8860. /* end confdefs.h. */
  8861. int
  8862. main ()
  8863. {
  8864. ;
  8865. return 0;
  8866. }
  8867. _ACEOF
  8868. if ac_fn_c_try_link "$LINENO"; then :
  8869. lt_aix_libpath_sed='
  8870. /Import File Strings/,/^$/ {
  8871. /^0/ {
  8872. s/^0 *\([^ ]*\) *$/\1/
  8873. p
  8874. }
  8875. }'
  8876. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8877. # Check for a 64-bit object if we didn't find anything.
  8878. if test -z "$lt_cv_aix_libpath_"; then
  8879. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8880. fi
  8881. fi
  8882. rm -f core conftest.err conftest.$ac_objext \
  8883. conftest$ac_exeext conftest.$ac_ext
  8884. if test -z "$lt_cv_aix_libpath_"; then
  8885. lt_cv_aix_libpath_="/usr/lib:/lib"
  8886. fi
  8887. fi
  8888. aix_libpath=$lt_cv_aix_libpath_
  8889. fi
  8890. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8891. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8892. else
  8893. if test "$host_cpu" = ia64; then
  8894. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8895. allow_undefined_flag="-z nodefs"
  8896. 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"
  8897. else
  8898. # Determine the default libpath from the value encoded in an
  8899. # empty executable.
  8900. if test "${lt_cv_aix_libpath+set}" = set; then
  8901. aix_libpath=$lt_cv_aix_libpath
  8902. else
  8903. if ${lt_cv_aix_libpath_+:} false; then :
  8904. $as_echo_n "(cached) " >&6
  8905. else
  8906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8907. /* end confdefs.h. */
  8908. int
  8909. main ()
  8910. {
  8911. ;
  8912. return 0;
  8913. }
  8914. _ACEOF
  8915. if ac_fn_c_try_link "$LINENO"; then :
  8916. lt_aix_libpath_sed='
  8917. /Import File Strings/,/^$/ {
  8918. /^0/ {
  8919. s/^0 *\([^ ]*\) *$/\1/
  8920. p
  8921. }
  8922. }'
  8923. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8924. # Check for a 64-bit object if we didn't find anything.
  8925. if test -z "$lt_cv_aix_libpath_"; then
  8926. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8927. fi
  8928. fi
  8929. rm -f core conftest.err conftest.$ac_objext \
  8930. conftest$ac_exeext conftest.$ac_ext
  8931. if test -z "$lt_cv_aix_libpath_"; then
  8932. lt_cv_aix_libpath_="/usr/lib:/lib"
  8933. fi
  8934. fi
  8935. aix_libpath=$lt_cv_aix_libpath_
  8936. fi
  8937. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8938. # Warning - without using the other run time loading flags,
  8939. # -berok will link without error, but may produce a broken library.
  8940. no_undefined_flag=' ${wl}-bernotok'
  8941. allow_undefined_flag=' ${wl}-berok'
  8942. if test "$with_gnu_ld" = yes; then
  8943. # We only use this code for GNU lds that support --whole-archive.
  8944. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8945. else
  8946. # Exported symbols can be pulled into shared objects from archives
  8947. whole_archive_flag_spec='$convenience'
  8948. fi
  8949. archive_cmds_need_lc=yes
  8950. # This is similar to how AIX traditionally builds its shared libraries.
  8951. 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'
  8952. fi
  8953. fi
  8954. ;;
  8955. amigaos*)
  8956. case $host_cpu in
  8957. powerpc)
  8958. # see comment about AmigaOS4 .so support
  8959. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8960. archive_expsym_cmds=''
  8961. ;;
  8962. m68k)
  8963. 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)'
  8964. hardcode_libdir_flag_spec='-L$libdir'
  8965. hardcode_minus_L=yes
  8966. ;;
  8967. esac
  8968. ;;
  8969. bsdi[45]*)
  8970. export_dynamic_flag_spec=-rdynamic
  8971. ;;
  8972. cygwin* | mingw* | pw32* | cegcc*)
  8973. # When not using gcc, we currently assume that we are using
  8974. # Microsoft Visual C++.
  8975. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8976. # no search path for DLLs.
  8977. case $cc_basename in
  8978. cl*)
  8979. # Native MSVC
  8980. hardcode_libdir_flag_spec=' '
  8981. allow_undefined_flag=unsupported
  8982. always_export_symbols=yes
  8983. file_list_spec='@'
  8984. # Tell ltmain to make .lib files, not .a files.
  8985. libext=lib
  8986. # Tell ltmain to make .dll files, not .so files.
  8987. shrext_cmds=".dll"
  8988. # FIXME: Setting linknames here is a bad hack.
  8989. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8990. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8991. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8992. else
  8993. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8994. fi~
  8995. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8996. linknames='
  8997. # The linker will not automatically build a static lib if we build a DLL.
  8998. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8999. enable_shared_with_static_runtimes=yes
  9000. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9001. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9002. # Don't use ranlib
  9003. old_postinstall_cmds='chmod 644 $oldlib'
  9004. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9005. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9006. case $lt_outputfile in
  9007. *.exe|*.EXE) ;;
  9008. *)
  9009. lt_outputfile="$lt_outputfile.exe"
  9010. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9011. ;;
  9012. esac~
  9013. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9014. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9015. $RM "$lt_outputfile.manifest";
  9016. fi'
  9017. ;;
  9018. *)
  9019. # Assume MSVC wrapper
  9020. hardcode_libdir_flag_spec=' '
  9021. allow_undefined_flag=unsupported
  9022. # Tell ltmain to make .lib files, not .a files.
  9023. libext=lib
  9024. # Tell ltmain to make .dll files, not .so files.
  9025. shrext_cmds=".dll"
  9026. # FIXME: Setting linknames here is a bad hack.
  9027. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9028. # The linker will automatically build a .lib file if we build a DLL.
  9029. old_archive_from_new_cmds='true'
  9030. # FIXME: Should let the user specify the lib program.
  9031. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9032. enable_shared_with_static_runtimes=yes
  9033. ;;
  9034. esac
  9035. ;;
  9036. darwin* | rhapsody*)
  9037. archive_cmds_need_lc=no
  9038. hardcode_direct=no
  9039. hardcode_automatic=yes
  9040. hardcode_shlibpath_var=unsupported
  9041. if test "$lt_cv_ld_force_load" = "yes"; then
  9042. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9043. else
  9044. whole_archive_flag_spec=''
  9045. fi
  9046. link_all_deplibs=yes
  9047. allow_undefined_flag="$_lt_dar_allow_undefined"
  9048. case $cc_basename in
  9049. ifort*) _lt_dar_can_shared=yes ;;
  9050. *) _lt_dar_can_shared=$GCC ;;
  9051. esac
  9052. if test "$_lt_dar_can_shared" = "yes"; then
  9053. output_verbose_link_cmd=func_echo_all
  9054. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9055. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9056. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9057. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9058. else
  9059. ld_shlibs=no
  9060. fi
  9061. ;;
  9062. dgux*)
  9063. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9064. hardcode_libdir_flag_spec='-L$libdir'
  9065. hardcode_shlibpath_var=no
  9066. ;;
  9067. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9068. # support. Future versions do this automatically, but an explicit c++rt0.o
  9069. # does not break anything, and helps significantly (at the cost of a little
  9070. # extra space).
  9071. freebsd2.2*)
  9072. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9073. hardcode_libdir_flag_spec='-R$libdir'
  9074. hardcode_direct=yes
  9075. hardcode_shlibpath_var=no
  9076. ;;
  9077. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9078. freebsd2.*)
  9079. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9080. hardcode_direct=yes
  9081. hardcode_minus_L=yes
  9082. hardcode_shlibpath_var=no
  9083. ;;
  9084. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9085. freebsd* | dragonfly*)
  9086. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9087. hardcode_libdir_flag_spec='-R$libdir'
  9088. hardcode_direct=yes
  9089. hardcode_shlibpath_var=no
  9090. ;;
  9091. hpux9*)
  9092. if test "$GCC" = yes; then
  9093. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9094. else
  9095. 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'
  9096. fi
  9097. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9098. hardcode_libdir_separator=:
  9099. hardcode_direct=yes
  9100. # hardcode_minus_L: Not really in the search PATH,
  9101. # but as the default location of the library.
  9102. hardcode_minus_L=yes
  9103. export_dynamic_flag_spec='${wl}-E'
  9104. ;;
  9105. hpux10*)
  9106. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9107. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9108. else
  9109. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9110. fi
  9111. if test "$with_gnu_ld" = no; then
  9112. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9113. hardcode_libdir_separator=:
  9114. hardcode_direct=yes
  9115. hardcode_direct_absolute=yes
  9116. export_dynamic_flag_spec='${wl}-E'
  9117. # hardcode_minus_L: Not really in the search PATH,
  9118. # but as the default location of the library.
  9119. hardcode_minus_L=yes
  9120. fi
  9121. ;;
  9122. hpux11*)
  9123. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9124. case $host_cpu in
  9125. hppa*64*)
  9126. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9127. ;;
  9128. ia64*)
  9129. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9130. ;;
  9131. *)
  9132. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9133. ;;
  9134. esac
  9135. else
  9136. case $host_cpu in
  9137. hppa*64*)
  9138. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9139. ;;
  9140. ia64*)
  9141. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9142. ;;
  9143. *)
  9144. # Older versions of the 11.00 compiler do not understand -b yet
  9145. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9147. $as_echo_n "checking if $CC understands -b... " >&6; }
  9148. if ${lt_cv_prog_compiler__b+:} false; then :
  9149. $as_echo_n "(cached) " >&6
  9150. else
  9151. lt_cv_prog_compiler__b=no
  9152. save_LDFLAGS="$LDFLAGS"
  9153. LDFLAGS="$LDFLAGS -b"
  9154. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9155. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9156. # The linker can only warn and ignore the option if not recognized
  9157. # So say no if there are warnings
  9158. if test -s conftest.err; then
  9159. # Append any errors to the config.log.
  9160. cat conftest.err 1>&5
  9161. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9162. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9163. if diff conftest.exp conftest.er2 >/dev/null; then
  9164. lt_cv_prog_compiler__b=yes
  9165. fi
  9166. else
  9167. lt_cv_prog_compiler__b=yes
  9168. fi
  9169. fi
  9170. $RM -r conftest*
  9171. LDFLAGS="$save_LDFLAGS"
  9172. fi
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9174. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9175. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9176. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9177. else
  9178. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9179. fi
  9180. ;;
  9181. esac
  9182. fi
  9183. if test "$with_gnu_ld" = no; then
  9184. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9185. hardcode_libdir_separator=:
  9186. case $host_cpu in
  9187. hppa*64*|ia64*)
  9188. hardcode_direct=no
  9189. hardcode_shlibpath_var=no
  9190. ;;
  9191. *)
  9192. hardcode_direct=yes
  9193. hardcode_direct_absolute=yes
  9194. export_dynamic_flag_spec='${wl}-E'
  9195. # hardcode_minus_L: Not really in the search PATH,
  9196. # but as the default location of the library.
  9197. hardcode_minus_L=yes
  9198. ;;
  9199. esac
  9200. fi
  9201. ;;
  9202. irix5* | irix6* | nonstopux*)
  9203. if test "$GCC" = yes; then
  9204. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9205. # Try to use the -exported_symbol ld option, if it does not
  9206. # work, assume that -exports_file does not work either and
  9207. # implicitly export all symbols.
  9208. # This should be the same for all languages, so no per-tag cache variable.
  9209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9210. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9211. if ${lt_cv_irix_exported_symbol+:} false; then :
  9212. $as_echo_n "(cached) " >&6
  9213. else
  9214. save_LDFLAGS="$LDFLAGS"
  9215. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9217. /* end confdefs.h. */
  9218. int foo (void) { return 0; }
  9219. _ACEOF
  9220. if ac_fn_c_try_link "$LINENO"; then :
  9221. lt_cv_irix_exported_symbol=yes
  9222. else
  9223. lt_cv_irix_exported_symbol=no
  9224. fi
  9225. rm -f core conftest.err conftest.$ac_objext \
  9226. conftest$ac_exeext conftest.$ac_ext
  9227. LDFLAGS="$save_LDFLAGS"
  9228. fi
  9229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9230. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9231. if test "$lt_cv_irix_exported_symbol" = yes; then
  9232. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9233. fi
  9234. else
  9235. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9236. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9237. fi
  9238. archive_cmds_need_lc='no'
  9239. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9240. hardcode_libdir_separator=:
  9241. inherit_rpath=yes
  9242. link_all_deplibs=yes
  9243. ;;
  9244. netbsd*)
  9245. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9246. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9247. else
  9248. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9249. fi
  9250. hardcode_libdir_flag_spec='-R$libdir'
  9251. hardcode_direct=yes
  9252. hardcode_shlibpath_var=no
  9253. ;;
  9254. newsos6)
  9255. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9256. hardcode_direct=yes
  9257. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9258. hardcode_libdir_separator=:
  9259. hardcode_shlibpath_var=no
  9260. ;;
  9261. *nto* | *qnx*)
  9262. ;;
  9263. openbsd*)
  9264. if test -f /usr/libexec/ld.so; then
  9265. hardcode_direct=yes
  9266. hardcode_shlibpath_var=no
  9267. hardcode_direct_absolute=yes
  9268. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9269. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9270. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9271. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9272. export_dynamic_flag_spec='${wl}-E'
  9273. else
  9274. case $host_os in
  9275. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9276. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9277. hardcode_libdir_flag_spec='-R$libdir'
  9278. ;;
  9279. *)
  9280. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9281. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9282. ;;
  9283. esac
  9284. fi
  9285. else
  9286. ld_shlibs=no
  9287. fi
  9288. ;;
  9289. os2*)
  9290. hardcode_libdir_flag_spec='-L$libdir'
  9291. hardcode_minus_L=yes
  9292. allow_undefined_flag=unsupported
  9293. 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'
  9294. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9295. ;;
  9296. osf3*)
  9297. if test "$GCC" = yes; then
  9298. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9299. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9300. else
  9301. allow_undefined_flag=' -expect_unresolved \*'
  9302. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9303. fi
  9304. archive_cmds_need_lc='no'
  9305. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9306. hardcode_libdir_separator=:
  9307. ;;
  9308. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9309. if test "$GCC" = yes; then
  9310. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9311. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9312. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9313. else
  9314. allow_undefined_flag=' -expect_unresolved \*'
  9315. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9316. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9317. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9318. # Both c and cxx compiler support -rpath directly
  9319. hardcode_libdir_flag_spec='-rpath $libdir'
  9320. fi
  9321. archive_cmds_need_lc='no'
  9322. hardcode_libdir_separator=:
  9323. ;;
  9324. solaris*)
  9325. no_undefined_flag=' -z defs'
  9326. if test "$GCC" = yes; then
  9327. wlarc='${wl}'
  9328. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9329. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9330. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9331. else
  9332. case `$CC -V 2>&1` in
  9333. *"Compilers 5.0"*)
  9334. wlarc=''
  9335. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9336. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9337. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9338. ;;
  9339. *)
  9340. wlarc='${wl}'
  9341. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9342. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9343. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9344. ;;
  9345. esac
  9346. fi
  9347. hardcode_libdir_flag_spec='-R$libdir'
  9348. hardcode_shlibpath_var=no
  9349. case $host_os in
  9350. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9351. *)
  9352. # The compiler driver will combine and reorder linker options,
  9353. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9354. # but is careful enough not to reorder.
  9355. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9356. if test "$GCC" = yes; then
  9357. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9358. else
  9359. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9360. fi
  9361. ;;
  9362. esac
  9363. link_all_deplibs=yes
  9364. ;;
  9365. sunos4*)
  9366. if test "x$host_vendor" = xsequent; then
  9367. # Use $CC to link under sequent, because it throws in some extra .o
  9368. # files that make .init and .fini sections work.
  9369. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9370. else
  9371. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9372. fi
  9373. hardcode_libdir_flag_spec='-L$libdir'
  9374. hardcode_direct=yes
  9375. hardcode_minus_L=yes
  9376. hardcode_shlibpath_var=no
  9377. ;;
  9378. sysv4)
  9379. case $host_vendor in
  9380. sni)
  9381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9382. hardcode_direct=yes # is this really true???
  9383. ;;
  9384. siemens)
  9385. ## LD is ld it makes a PLAMLIB
  9386. ## CC just makes a GrossModule.
  9387. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9388. reload_cmds='$CC -r -o $output$reload_objs'
  9389. hardcode_direct=no
  9390. ;;
  9391. motorola)
  9392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9393. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9394. ;;
  9395. esac
  9396. runpath_var='LD_RUN_PATH'
  9397. hardcode_shlibpath_var=no
  9398. ;;
  9399. sysv4.3*)
  9400. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9401. hardcode_shlibpath_var=no
  9402. export_dynamic_flag_spec='-Bexport'
  9403. ;;
  9404. sysv4*MP*)
  9405. if test -d /usr/nec; then
  9406. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9407. hardcode_shlibpath_var=no
  9408. runpath_var=LD_RUN_PATH
  9409. hardcode_runpath_var=yes
  9410. ld_shlibs=yes
  9411. fi
  9412. ;;
  9413. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9414. no_undefined_flag='${wl}-z,text'
  9415. archive_cmds_need_lc=no
  9416. hardcode_shlibpath_var=no
  9417. runpath_var='LD_RUN_PATH'
  9418. if test "$GCC" = yes; then
  9419. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9420. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9421. else
  9422. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9423. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9424. fi
  9425. ;;
  9426. sysv5* | sco3.2v5* | sco5v6*)
  9427. # Note: We can NOT use -z defs as we might desire, because we do not
  9428. # link with -lc, and that would cause any symbols used from libc to
  9429. # always be unresolved, which means just about no library would
  9430. # ever link correctly. If we're not using GNU ld we use -z text
  9431. # though, which does catch some bad symbols but isn't as heavy-handed
  9432. # as -z defs.
  9433. no_undefined_flag='${wl}-z,text'
  9434. allow_undefined_flag='${wl}-z,nodefs'
  9435. archive_cmds_need_lc=no
  9436. hardcode_shlibpath_var=no
  9437. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9438. hardcode_libdir_separator=':'
  9439. link_all_deplibs=yes
  9440. export_dynamic_flag_spec='${wl}-Bexport'
  9441. runpath_var='LD_RUN_PATH'
  9442. if test "$GCC" = yes; then
  9443. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9444. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9445. else
  9446. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9447. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9448. fi
  9449. ;;
  9450. uts4*)
  9451. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9452. hardcode_libdir_flag_spec='-L$libdir'
  9453. hardcode_shlibpath_var=no
  9454. ;;
  9455. *)
  9456. ld_shlibs=no
  9457. ;;
  9458. esac
  9459. if test x$host_vendor = xsni; then
  9460. case $host in
  9461. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9462. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9463. ;;
  9464. esac
  9465. fi
  9466. fi
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9468. $as_echo "$ld_shlibs" >&6; }
  9469. test "$ld_shlibs" = no && can_build_shared=no
  9470. with_gnu_ld=$with_gnu_ld
  9471. #
  9472. # Do we need to explicitly link libc?
  9473. #
  9474. case "x$archive_cmds_need_lc" in
  9475. x|xyes)
  9476. # Assume -lc should be added
  9477. archive_cmds_need_lc=yes
  9478. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9479. case $archive_cmds in
  9480. *'~'*)
  9481. # FIXME: we may have to deal with multi-command sequences.
  9482. ;;
  9483. '$CC '*)
  9484. # Test whether the compiler implicitly links with -lc since on some
  9485. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9486. # to ld, don't add -lc before -lgcc.
  9487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9488. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9489. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9490. $as_echo_n "(cached) " >&6
  9491. else
  9492. $RM conftest*
  9493. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9494. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9495. (eval $ac_compile) 2>&5
  9496. ac_status=$?
  9497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9498. test $ac_status = 0; } 2>conftest.err; then
  9499. soname=conftest
  9500. lib=conftest
  9501. libobjs=conftest.$ac_objext
  9502. deplibs=
  9503. wl=$lt_prog_compiler_wl
  9504. pic_flag=$lt_prog_compiler_pic
  9505. compiler_flags=-v
  9506. linker_flags=-v
  9507. verstring=
  9508. output_objdir=.
  9509. libname=conftest
  9510. lt_save_allow_undefined_flag=$allow_undefined_flag
  9511. allow_undefined_flag=
  9512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9513. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9514. ac_status=$?
  9515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9516. test $ac_status = 0; }
  9517. then
  9518. lt_cv_archive_cmds_need_lc=no
  9519. else
  9520. lt_cv_archive_cmds_need_lc=yes
  9521. fi
  9522. allow_undefined_flag=$lt_save_allow_undefined_flag
  9523. else
  9524. cat conftest.err 1>&5
  9525. fi
  9526. $RM conftest*
  9527. fi
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9529. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9530. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9531. ;;
  9532. esac
  9533. fi
  9534. ;;
  9535. esac
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9537. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9538. if test "$GCC" = yes; then
  9539. case $host_os in
  9540. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9541. *) lt_awk_arg="/^libraries:/" ;;
  9542. esac
  9543. case $host_os in
  9544. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9545. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9546. esac
  9547. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9548. case $lt_search_path_spec in
  9549. *\;*)
  9550. # if the path contains ";" then we assume it to be the separator
  9551. # otherwise default to the standard path separator (i.e. ":") - it is
  9552. # assumed that no part of a normal pathname contains ";" but that should
  9553. # okay in the real world where ";" in dirpaths is itself problematic.
  9554. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9555. ;;
  9556. *)
  9557. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9558. ;;
  9559. esac
  9560. # Ok, now we have the path, separated by spaces, we can step through it
  9561. # and add multilib dir if necessary.
  9562. lt_tmp_lt_search_path_spec=
  9563. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9564. for lt_sys_path in $lt_search_path_spec; do
  9565. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9566. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9567. else
  9568. test -d "$lt_sys_path" && \
  9569. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9570. fi
  9571. done
  9572. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9573. BEGIN {RS=" "; FS="/|\n";} {
  9574. lt_foo="";
  9575. lt_count=0;
  9576. for (lt_i = NF; lt_i > 0; lt_i--) {
  9577. if ($lt_i != "" && $lt_i != ".") {
  9578. if ($lt_i == "..") {
  9579. lt_count++;
  9580. } else {
  9581. if (lt_count == 0) {
  9582. lt_foo="/" $lt_i lt_foo;
  9583. } else {
  9584. lt_count--;
  9585. }
  9586. }
  9587. }
  9588. }
  9589. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9590. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9591. }'`
  9592. # AWK program above erroneously prepends '/' to C:/dos/paths
  9593. # for these hosts.
  9594. case $host_os in
  9595. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9596. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9597. esac
  9598. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9599. else
  9600. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9601. fi
  9602. library_names_spec=
  9603. libname_spec='lib$name'
  9604. soname_spec=
  9605. shrext_cmds=".so"
  9606. postinstall_cmds=
  9607. postuninstall_cmds=
  9608. finish_cmds=
  9609. finish_eval=
  9610. shlibpath_var=
  9611. shlibpath_overrides_runpath=unknown
  9612. version_type=none
  9613. dynamic_linker="$host_os ld.so"
  9614. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9615. need_lib_prefix=unknown
  9616. hardcode_into_libs=no
  9617. # when you set need_version to no, make sure it does not cause -set_version
  9618. # flags to be left without arguments
  9619. need_version=unknown
  9620. case $host_os in
  9621. aix3*)
  9622. version_type=linux # correct to gnu/linux during the next big refactor
  9623. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9624. shlibpath_var=LIBPATH
  9625. # AIX 3 has no versioning support, so we append a major version to the name.
  9626. soname_spec='${libname}${release}${shared_ext}$major'
  9627. ;;
  9628. aix[4-9]*)
  9629. version_type=linux # correct to gnu/linux during the next big refactor
  9630. need_lib_prefix=no
  9631. need_version=no
  9632. hardcode_into_libs=yes
  9633. if test "$host_cpu" = ia64; then
  9634. # AIX 5 supports IA64
  9635. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9636. shlibpath_var=LD_LIBRARY_PATH
  9637. else
  9638. # With GCC up to 2.95.x, collect2 would create an import file
  9639. # for dependence libraries. The import file would start with
  9640. # the line `#! .'. This would cause the generated library to
  9641. # depend on `.', always an invalid library. This was fixed in
  9642. # development snapshots of GCC prior to 3.0.
  9643. case $host_os in
  9644. aix4 | aix4.[01] | aix4.[01].*)
  9645. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9646. echo ' yes '
  9647. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9648. :
  9649. else
  9650. can_build_shared=no
  9651. fi
  9652. ;;
  9653. esac
  9654. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9655. # soname into executable. Probably we can add versioning support to
  9656. # collect2, so additional links can be useful in future.
  9657. if test "$aix_use_runtimelinking" = yes; then
  9658. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9659. # instead of lib<name>.a to let people know that these are not
  9660. # typical AIX shared libraries.
  9661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9662. else
  9663. # We preserve .a as extension for shared libraries through AIX4.2
  9664. # and later when we are not doing run time linking.
  9665. library_names_spec='${libname}${release}.a $libname.a'
  9666. soname_spec='${libname}${release}${shared_ext}$major'
  9667. fi
  9668. shlibpath_var=LIBPATH
  9669. fi
  9670. ;;
  9671. amigaos*)
  9672. case $host_cpu in
  9673. powerpc)
  9674. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9675. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9677. ;;
  9678. m68k)
  9679. library_names_spec='$libname.ixlibrary $libname.a'
  9680. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9681. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  9682. ;;
  9683. esac
  9684. ;;
  9685. beos*)
  9686. library_names_spec='${libname}${shared_ext}'
  9687. dynamic_linker="$host_os ld.so"
  9688. shlibpath_var=LIBRARY_PATH
  9689. ;;
  9690. bsdi[45]*)
  9691. version_type=linux # correct to gnu/linux during the next big refactor
  9692. need_version=no
  9693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9694. soname_spec='${libname}${release}${shared_ext}$major'
  9695. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9696. shlibpath_var=LD_LIBRARY_PATH
  9697. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9698. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9699. # the default ld.so.conf also contains /usr/contrib/lib and
  9700. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9701. # libtool to hard-code these into programs
  9702. ;;
  9703. cygwin* | mingw* | pw32* | cegcc*)
  9704. version_type=windows
  9705. shrext_cmds=".dll"
  9706. need_version=no
  9707. need_lib_prefix=no
  9708. case $GCC,$cc_basename in
  9709. yes,*)
  9710. # gcc
  9711. library_names_spec='$libname.dll.a'
  9712. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9713. postinstall_cmds='base_file=`basename \${file}`~
  9714. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9715. dldir=$destdir/`dirname \$dlpath`~
  9716. test -d \$dldir || mkdir -p \$dldir~
  9717. $install_prog $dir/$dlname \$dldir/$dlname~
  9718. chmod a+x \$dldir/$dlname~
  9719. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9720. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9721. fi'
  9722. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9723. dlpath=$dir/\$dldll~
  9724. $RM \$dlpath'
  9725. shlibpath_overrides_runpath=yes
  9726. case $host_os in
  9727. cygwin*)
  9728. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9729. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9730. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9731. ;;
  9732. mingw* | cegcc*)
  9733. # MinGW DLLs use traditional 'lib' prefix
  9734. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9735. ;;
  9736. pw32*)
  9737. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9738. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9739. ;;
  9740. esac
  9741. dynamic_linker='Win32 ld.exe'
  9742. ;;
  9743. *,cl*)
  9744. # Native MSVC
  9745. libname_spec='$name'
  9746. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9747. library_names_spec='${libname}.dll.lib'
  9748. case $build_os in
  9749. mingw*)
  9750. sys_lib_search_path_spec=
  9751. lt_save_ifs=$IFS
  9752. IFS=';'
  9753. for lt_path in $LIB
  9754. do
  9755. IFS=$lt_save_ifs
  9756. # Let DOS variable expansion print the short 8.3 style file name.
  9757. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9758. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9759. done
  9760. IFS=$lt_save_ifs
  9761. # Convert to MSYS style.
  9762. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9763. ;;
  9764. cygwin*)
  9765. # Convert to unix form, then to dos form, then back to unix form
  9766. # but this time dos style (no spaces!) so that the unix form looks
  9767. # like /cygdrive/c/PROGRA~1:/cygdr...
  9768. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9769. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9770. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9771. ;;
  9772. *)
  9773. sys_lib_search_path_spec="$LIB"
  9774. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9775. # It is most probably a Windows format PATH.
  9776. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9777. else
  9778. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9779. fi
  9780. # FIXME: find the short name or the path components, as spaces are
  9781. # common. (e.g. "Program Files" -> "PROGRA~1")
  9782. ;;
  9783. esac
  9784. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9785. postinstall_cmds='base_file=`basename \${file}`~
  9786. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9787. dldir=$destdir/`dirname \$dlpath`~
  9788. test -d \$dldir || mkdir -p \$dldir~
  9789. $install_prog $dir/$dlname \$dldir/$dlname'
  9790. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9791. dlpath=$dir/\$dldll~
  9792. $RM \$dlpath'
  9793. shlibpath_overrides_runpath=yes
  9794. dynamic_linker='Win32 link.exe'
  9795. ;;
  9796. *)
  9797. # Assume MSVC wrapper
  9798. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9799. dynamic_linker='Win32 ld.exe'
  9800. ;;
  9801. esac
  9802. # FIXME: first we should search . and the directory the executable is in
  9803. shlibpath_var=PATH
  9804. ;;
  9805. darwin* | rhapsody*)
  9806. dynamic_linker="$host_os dyld"
  9807. version_type=darwin
  9808. need_lib_prefix=no
  9809. need_version=no
  9810. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9811. soname_spec='${libname}${release}${major}$shared_ext'
  9812. shlibpath_overrides_runpath=yes
  9813. shlibpath_var=DYLD_LIBRARY_PATH
  9814. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9815. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9816. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9817. ;;
  9818. dgux*)
  9819. version_type=linux # correct to gnu/linux during the next big refactor
  9820. need_lib_prefix=no
  9821. need_version=no
  9822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9823. soname_spec='${libname}${release}${shared_ext}$major'
  9824. shlibpath_var=LD_LIBRARY_PATH
  9825. ;;
  9826. freebsd* | dragonfly*)
  9827. # DragonFly does not have aout. When/if they implement a new
  9828. # versioning mechanism, adjust this.
  9829. if test -x /usr/bin/objformat; then
  9830. objformat=`/usr/bin/objformat`
  9831. else
  9832. case $host_os in
  9833. freebsd[23].*) objformat=aout ;;
  9834. *) objformat=elf ;;
  9835. esac
  9836. fi
  9837. version_type=freebsd-$objformat
  9838. case $version_type in
  9839. freebsd-elf*)
  9840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9841. need_version=no
  9842. need_lib_prefix=no
  9843. ;;
  9844. freebsd-*)
  9845. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9846. need_version=yes
  9847. ;;
  9848. esac
  9849. shlibpath_var=LD_LIBRARY_PATH
  9850. case $host_os in
  9851. freebsd2.*)
  9852. shlibpath_overrides_runpath=yes
  9853. ;;
  9854. freebsd3.[01]* | freebsdelf3.[01]*)
  9855. shlibpath_overrides_runpath=yes
  9856. hardcode_into_libs=yes
  9857. ;;
  9858. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9859. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9860. shlibpath_overrides_runpath=no
  9861. hardcode_into_libs=yes
  9862. ;;
  9863. *) # from 4.6 on, and DragonFly
  9864. shlibpath_overrides_runpath=yes
  9865. hardcode_into_libs=yes
  9866. ;;
  9867. esac
  9868. ;;
  9869. gnu*)
  9870. version_type=linux # correct to gnu/linux during the next big refactor
  9871. need_lib_prefix=no
  9872. need_version=no
  9873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9874. soname_spec='${libname}${release}${shared_ext}$major'
  9875. shlibpath_var=LD_LIBRARY_PATH
  9876. shlibpath_overrides_runpath=no
  9877. hardcode_into_libs=yes
  9878. ;;
  9879. haiku*)
  9880. version_type=linux # correct to gnu/linux during the next big refactor
  9881. need_lib_prefix=no
  9882. need_version=no
  9883. dynamic_linker="$host_os runtime_loader"
  9884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9885. soname_spec='${libname}${release}${shared_ext}$major'
  9886. shlibpath_var=LIBRARY_PATH
  9887. shlibpath_overrides_runpath=yes
  9888. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9889. hardcode_into_libs=yes
  9890. ;;
  9891. hpux9* | hpux10* | hpux11*)
  9892. # Give a soname corresponding to the major version so that dld.sl refuses to
  9893. # link against other versions.
  9894. version_type=sunos
  9895. need_lib_prefix=no
  9896. need_version=no
  9897. case $host_cpu in
  9898. ia64*)
  9899. shrext_cmds='.so'
  9900. hardcode_into_libs=yes
  9901. dynamic_linker="$host_os dld.so"
  9902. shlibpath_var=LD_LIBRARY_PATH
  9903. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9905. soname_spec='${libname}${release}${shared_ext}$major'
  9906. if test "X$HPUX_IA64_MODE" = X32; then
  9907. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9908. else
  9909. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9910. fi
  9911. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9912. ;;
  9913. hppa*64*)
  9914. shrext_cmds='.sl'
  9915. hardcode_into_libs=yes
  9916. dynamic_linker="$host_os dld.sl"
  9917. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9918. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9920. soname_spec='${libname}${release}${shared_ext}$major'
  9921. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9922. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9923. ;;
  9924. *)
  9925. shrext_cmds='.sl'
  9926. dynamic_linker="$host_os dld.sl"
  9927. shlibpath_var=SHLIB_PATH
  9928. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9930. soname_spec='${libname}${release}${shared_ext}$major'
  9931. ;;
  9932. esac
  9933. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9934. postinstall_cmds='chmod 555 $lib'
  9935. # or fails outright, so override atomically:
  9936. install_override_mode=555
  9937. ;;
  9938. interix[3-9]*)
  9939. version_type=linux # correct to gnu/linux during the next big refactor
  9940. need_lib_prefix=no
  9941. need_version=no
  9942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9943. soname_spec='${libname}${release}${shared_ext}$major'
  9944. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9945. shlibpath_var=LD_LIBRARY_PATH
  9946. shlibpath_overrides_runpath=no
  9947. hardcode_into_libs=yes
  9948. ;;
  9949. irix5* | irix6* | nonstopux*)
  9950. case $host_os in
  9951. nonstopux*) version_type=nonstopux ;;
  9952. *)
  9953. if test "$lt_cv_prog_gnu_ld" = yes; then
  9954. version_type=linux # correct to gnu/linux during the next big refactor
  9955. else
  9956. version_type=irix
  9957. fi ;;
  9958. esac
  9959. need_lib_prefix=no
  9960. need_version=no
  9961. soname_spec='${libname}${release}${shared_ext}$major'
  9962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9963. case $host_os in
  9964. irix5* | nonstopux*)
  9965. libsuff= shlibsuff=
  9966. ;;
  9967. *)
  9968. case $LD in # libtool.m4 will add one of these switches to LD
  9969. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9970. libsuff= shlibsuff= libmagic=32-bit;;
  9971. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9972. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9973. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9974. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9975. *) libsuff= shlibsuff= libmagic=never-match;;
  9976. esac
  9977. ;;
  9978. esac
  9979. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9980. shlibpath_overrides_runpath=no
  9981. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9982. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9983. hardcode_into_libs=yes
  9984. ;;
  9985. # No shared lib support for Linux oldld, aout, or coff.
  9986. linux*oldld* | linux*aout* | linux*coff*)
  9987. dynamic_linker=no
  9988. ;;
  9989. # This must be glibc/ELF.
  9990. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9991. version_type=linux # correct to gnu/linux during the next big refactor
  9992. need_lib_prefix=no
  9993. need_version=no
  9994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9995. soname_spec='${libname}${release}${shared_ext}$major'
  9996. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9997. shlibpath_var=LD_LIBRARY_PATH
  9998. shlibpath_overrides_runpath=no
  9999. # Some binutils ld are patched to set DT_RUNPATH
  10000. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10001. $as_echo_n "(cached) " >&6
  10002. else
  10003. lt_cv_shlibpath_overrides_runpath=no
  10004. save_LDFLAGS=$LDFLAGS
  10005. save_libdir=$libdir
  10006. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10007. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10009. /* end confdefs.h. */
  10010. int
  10011. main ()
  10012. {
  10013. ;
  10014. return 0;
  10015. }
  10016. _ACEOF
  10017. if ac_fn_c_try_link "$LINENO"; then :
  10018. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10019. lt_cv_shlibpath_overrides_runpath=yes
  10020. fi
  10021. fi
  10022. rm -f core conftest.err conftest.$ac_objext \
  10023. conftest$ac_exeext conftest.$ac_ext
  10024. LDFLAGS=$save_LDFLAGS
  10025. libdir=$save_libdir
  10026. fi
  10027. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10028. # This implies no fast_install, which is unacceptable.
  10029. # Some rework will be needed to allow for fast_install
  10030. # before this can be enabled.
  10031. hardcode_into_libs=yes
  10032. # Add ABI-specific directories to the system library path.
  10033. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10034. # Append ld.so.conf contents to the search path
  10035. if test -f /etc/ld.so.conf; then
  10036. 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;s/"//g;/^$/d' | tr '\n' ' '`
  10037. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10038. fi
  10039. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10040. # powerpc, because MkLinux only supported shared libraries with the
  10041. # GNU dynamic linker. Since this was broken with cross compilers,
  10042. # most powerpc-linux boxes support dynamic linking these days and
  10043. # people can always --disable-shared, the test was removed, and we
  10044. # assume the GNU/Linux dynamic linker is in use.
  10045. dynamic_linker='GNU/Linux ld.so'
  10046. ;;
  10047. netbsd*)
  10048. version_type=sunos
  10049. need_lib_prefix=no
  10050. need_version=no
  10051. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10053. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10054. dynamic_linker='NetBSD (a.out) ld.so'
  10055. else
  10056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10057. soname_spec='${libname}${release}${shared_ext}$major'
  10058. dynamic_linker='NetBSD ld.elf_so'
  10059. fi
  10060. shlibpath_var=LD_LIBRARY_PATH
  10061. shlibpath_overrides_runpath=yes
  10062. hardcode_into_libs=yes
  10063. ;;
  10064. newsos6)
  10065. version_type=linux # correct to gnu/linux during the next big refactor
  10066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10067. shlibpath_var=LD_LIBRARY_PATH
  10068. shlibpath_overrides_runpath=yes
  10069. ;;
  10070. *nto* | *qnx*)
  10071. version_type=qnx
  10072. need_lib_prefix=no
  10073. need_version=no
  10074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10075. soname_spec='${libname}${release}${shared_ext}$major'
  10076. shlibpath_var=LD_LIBRARY_PATH
  10077. shlibpath_overrides_runpath=no
  10078. hardcode_into_libs=yes
  10079. dynamic_linker='ldqnx.so'
  10080. ;;
  10081. openbsd*)
  10082. version_type=sunos
  10083. sys_lib_dlsearch_path_spec="/usr/lib"
  10084. need_lib_prefix=no
  10085. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10086. case $host_os in
  10087. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10088. *) need_version=no ;;
  10089. esac
  10090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10091. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10092. shlibpath_var=LD_LIBRARY_PATH
  10093. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10094. case $host_os in
  10095. openbsd2.[89] | openbsd2.[89].*)
  10096. shlibpath_overrides_runpath=no
  10097. ;;
  10098. *)
  10099. shlibpath_overrides_runpath=yes
  10100. ;;
  10101. esac
  10102. else
  10103. shlibpath_overrides_runpath=yes
  10104. fi
  10105. ;;
  10106. os2*)
  10107. libname_spec='$name'
  10108. shrext_cmds=".dll"
  10109. need_lib_prefix=no
  10110. library_names_spec='$libname${shared_ext} $libname.a'
  10111. dynamic_linker='OS/2 ld.exe'
  10112. shlibpath_var=LIBPATH
  10113. ;;
  10114. osf3* | osf4* | osf5*)
  10115. version_type=osf
  10116. need_lib_prefix=no
  10117. need_version=no
  10118. soname_spec='${libname}${release}${shared_ext}$major'
  10119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10120. shlibpath_var=LD_LIBRARY_PATH
  10121. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10122. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10123. ;;
  10124. rdos*)
  10125. dynamic_linker=no
  10126. ;;
  10127. solaris*)
  10128. version_type=linux # correct to gnu/linux during the next big refactor
  10129. need_lib_prefix=no
  10130. need_version=no
  10131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10132. soname_spec='${libname}${release}${shared_ext}$major'
  10133. shlibpath_var=LD_LIBRARY_PATH
  10134. shlibpath_overrides_runpath=yes
  10135. hardcode_into_libs=yes
  10136. # ldd complains unless libraries are executable
  10137. postinstall_cmds='chmod +x $lib'
  10138. ;;
  10139. sunos4*)
  10140. version_type=sunos
  10141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10142. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10143. shlibpath_var=LD_LIBRARY_PATH
  10144. shlibpath_overrides_runpath=yes
  10145. if test "$with_gnu_ld" = yes; then
  10146. need_lib_prefix=no
  10147. fi
  10148. need_version=yes
  10149. ;;
  10150. sysv4 | sysv4.3*)
  10151. version_type=linux # correct to gnu/linux during the next big refactor
  10152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10153. soname_spec='${libname}${release}${shared_ext}$major'
  10154. shlibpath_var=LD_LIBRARY_PATH
  10155. case $host_vendor in
  10156. sni)
  10157. shlibpath_overrides_runpath=no
  10158. need_lib_prefix=no
  10159. runpath_var=LD_RUN_PATH
  10160. ;;
  10161. siemens)
  10162. need_lib_prefix=no
  10163. ;;
  10164. motorola)
  10165. need_lib_prefix=no
  10166. need_version=no
  10167. shlibpath_overrides_runpath=no
  10168. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10169. ;;
  10170. esac
  10171. ;;
  10172. sysv4*MP*)
  10173. if test -d /usr/nec ;then
  10174. version_type=linux # correct to gnu/linux during the next big refactor
  10175. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10176. soname_spec='$libname${shared_ext}.$major'
  10177. shlibpath_var=LD_LIBRARY_PATH
  10178. fi
  10179. ;;
  10180. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10181. version_type=freebsd-elf
  10182. need_lib_prefix=no
  10183. need_version=no
  10184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10185. soname_spec='${libname}${release}${shared_ext}$major'
  10186. shlibpath_var=LD_LIBRARY_PATH
  10187. shlibpath_overrides_runpath=yes
  10188. hardcode_into_libs=yes
  10189. if test "$with_gnu_ld" = yes; then
  10190. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10191. else
  10192. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10193. case $host_os in
  10194. sco3.2v5*)
  10195. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10196. ;;
  10197. esac
  10198. fi
  10199. sys_lib_dlsearch_path_spec='/usr/lib'
  10200. ;;
  10201. tpf*)
  10202. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10203. version_type=linux # correct to gnu/linux during the next big refactor
  10204. need_lib_prefix=no
  10205. need_version=no
  10206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10207. shlibpath_var=LD_LIBRARY_PATH
  10208. shlibpath_overrides_runpath=no
  10209. hardcode_into_libs=yes
  10210. ;;
  10211. uts4*)
  10212. version_type=linux # correct to gnu/linux during the next big refactor
  10213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10214. soname_spec='${libname}${release}${shared_ext}$major'
  10215. shlibpath_var=LD_LIBRARY_PATH
  10216. ;;
  10217. *)
  10218. dynamic_linker=no
  10219. ;;
  10220. esac
  10221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10222. $as_echo "$dynamic_linker" >&6; }
  10223. test "$dynamic_linker" = no && can_build_shared=no
  10224. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10225. if test "$GCC" = yes; then
  10226. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10227. fi
  10228. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10229. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10230. fi
  10231. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10232. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10233. fi
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10235. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10236. hardcode_action=
  10237. if test -n "$hardcode_libdir_flag_spec" ||
  10238. test -n "$runpath_var" ||
  10239. test "X$hardcode_automatic" = "Xyes" ; then
  10240. # We can hardcode non-existent directories.
  10241. if test "$hardcode_direct" != no &&
  10242. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10243. # have to relink, otherwise we might link with an installed library
  10244. # when we should be linking with a yet-to-be-installed one
  10245. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10246. test "$hardcode_minus_L" != no; then
  10247. # Linking always hardcodes the temporary library directory.
  10248. hardcode_action=relink
  10249. else
  10250. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10251. hardcode_action=immediate
  10252. fi
  10253. else
  10254. # We cannot hardcode anything, or else we can only hardcode existing
  10255. # directories.
  10256. hardcode_action=unsupported
  10257. fi
  10258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10259. $as_echo "$hardcode_action" >&6; }
  10260. if test "$hardcode_action" = relink ||
  10261. test "$inherit_rpath" = yes; then
  10262. # Fast installation is not supported
  10263. enable_fast_install=no
  10264. elif test "$shlibpath_overrides_runpath" = yes ||
  10265. test "$enable_shared" = no; then
  10266. # Fast installation is not necessary
  10267. enable_fast_install=needless
  10268. fi
  10269. if test "x$enable_dlopen" != xyes; then
  10270. enable_dlopen=unknown
  10271. enable_dlopen_self=unknown
  10272. enable_dlopen_self_static=unknown
  10273. else
  10274. lt_cv_dlopen=no
  10275. lt_cv_dlopen_libs=
  10276. case $host_os in
  10277. beos*)
  10278. lt_cv_dlopen="load_add_on"
  10279. lt_cv_dlopen_libs=
  10280. lt_cv_dlopen_self=yes
  10281. ;;
  10282. mingw* | pw32* | cegcc*)
  10283. lt_cv_dlopen="LoadLibrary"
  10284. lt_cv_dlopen_libs=
  10285. ;;
  10286. cygwin*)
  10287. lt_cv_dlopen="dlopen"
  10288. lt_cv_dlopen_libs=
  10289. ;;
  10290. darwin*)
  10291. # if libdl is installed we need to link against it
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10293. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10294. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10295. $as_echo_n "(cached) " >&6
  10296. else
  10297. ac_check_lib_save_LIBS=$LIBS
  10298. LIBS="-ldl $LIBS"
  10299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10300. /* end confdefs.h. */
  10301. /* Override any GCC internal prototype to avoid an error.
  10302. Use char because int might match the return type of a GCC
  10303. builtin and then its argument prototype would still apply. */
  10304. #ifdef __cplusplus
  10305. extern "C"
  10306. #endif
  10307. char dlopen ();
  10308. int
  10309. main ()
  10310. {
  10311. return dlopen ();
  10312. ;
  10313. return 0;
  10314. }
  10315. _ACEOF
  10316. if ac_fn_c_try_link "$LINENO"; then :
  10317. ac_cv_lib_dl_dlopen=yes
  10318. else
  10319. ac_cv_lib_dl_dlopen=no
  10320. fi
  10321. rm -f core conftest.err conftest.$ac_objext \
  10322. conftest$ac_exeext conftest.$ac_ext
  10323. LIBS=$ac_check_lib_save_LIBS
  10324. fi
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10326. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10327. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10328. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10329. else
  10330. lt_cv_dlopen="dyld"
  10331. lt_cv_dlopen_libs=
  10332. lt_cv_dlopen_self=yes
  10333. fi
  10334. ;;
  10335. *)
  10336. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10337. if test "x$ac_cv_func_shl_load" = xyes; then :
  10338. lt_cv_dlopen="shl_load"
  10339. else
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10341. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10342. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. ac_check_lib_save_LIBS=$LIBS
  10346. LIBS="-ldld $LIBS"
  10347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10348. /* end confdefs.h. */
  10349. /* Override any GCC internal prototype to avoid an error.
  10350. Use char because int might match the return type of a GCC
  10351. builtin and then its argument prototype would still apply. */
  10352. #ifdef __cplusplus
  10353. extern "C"
  10354. #endif
  10355. char shl_load ();
  10356. int
  10357. main ()
  10358. {
  10359. return shl_load ();
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_c_try_link "$LINENO"; then :
  10365. ac_cv_lib_dld_shl_load=yes
  10366. else
  10367. ac_cv_lib_dld_shl_load=no
  10368. fi
  10369. rm -f core conftest.err conftest.$ac_objext \
  10370. conftest$ac_exeext conftest.$ac_ext
  10371. LIBS=$ac_check_lib_save_LIBS
  10372. fi
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10374. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10375. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10376. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10377. else
  10378. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10379. if test "x$ac_cv_func_dlopen" = xyes; then :
  10380. lt_cv_dlopen="dlopen"
  10381. else
  10382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10383. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10384. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10385. $as_echo_n "(cached) " >&6
  10386. else
  10387. ac_check_lib_save_LIBS=$LIBS
  10388. LIBS="-ldl $LIBS"
  10389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10390. /* end confdefs.h. */
  10391. /* Override any GCC internal prototype to avoid an error.
  10392. Use char because int might match the return type of a GCC
  10393. builtin and then its argument prototype would still apply. */
  10394. #ifdef __cplusplus
  10395. extern "C"
  10396. #endif
  10397. char dlopen ();
  10398. int
  10399. main ()
  10400. {
  10401. return dlopen ();
  10402. ;
  10403. return 0;
  10404. }
  10405. _ACEOF
  10406. if ac_fn_c_try_link "$LINENO"; then :
  10407. ac_cv_lib_dl_dlopen=yes
  10408. else
  10409. ac_cv_lib_dl_dlopen=no
  10410. fi
  10411. rm -f core conftest.err conftest.$ac_objext \
  10412. conftest$ac_exeext conftest.$ac_ext
  10413. LIBS=$ac_check_lib_save_LIBS
  10414. fi
  10415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10416. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10417. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10418. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10419. else
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10421. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10422. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10423. $as_echo_n "(cached) " >&6
  10424. else
  10425. ac_check_lib_save_LIBS=$LIBS
  10426. LIBS="-lsvld $LIBS"
  10427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10428. /* end confdefs.h. */
  10429. /* Override any GCC internal prototype to avoid an error.
  10430. Use char because int might match the return type of a GCC
  10431. builtin and then its argument prototype would still apply. */
  10432. #ifdef __cplusplus
  10433. extern "C"
  10434. #endif
  10435. char dlopen ();
  10436. int
  10437. main ()
  10438. {
  10439. return dlopen ();
  10440. ;
  10441. return 0;
  10442. }
  10443. _ACEOF
  10444. if ac_fn_c_try_link "$LINENO"; then :
  10445. ac_cv_lib_svld_dlopen=yes
  10446. else
  10447. ac_cv_lib_svld_dlopen=no
  10448. fi
  10449. rm -f core conftest.err conftest.$ac_objext \
  10450. conftest$ac_exeext conftest.$ac_ext
  10451. LIBS=$ac_check_lib_save_LIBS
  10452. fi
  10453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10454. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10455. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10456. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10457. else
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10459. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10460. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10461. $as_echo_n "(cached) " >&6
  10462. else
  10463. ac_check_lib_save_LIBS=$LIBS
  10464. LIBS="-ldld $LIBS"
  10465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10466. /* end confdefs.h. */
  10467. /* Override any GCC internal prototype to avoid an error.
  10468. Use char because int might match the return type of a GCC
  10469. builtin and then its argument prototype would still apply. */
  10470. #ifdef __cplusplus
  10471. extern "C"
  10472. #endif
  10473. char dld_link ();
  10474. int
  10475. main ()
  10476. {
  10477. return dld_link ();
  10478. ;
  10479. return 0;
  10480. }
  10481. _ACEOF
  10482. if ac_fn_c_try_link "$LINENO"; then :
  10483. ac_cv_lib_dld_dld_link=yes
  10484. else
  10485. ac_cv_lib_dld_dld_link=no
  10486. fi
  10487. rm -f core conftest.err conftest.$ac_objext \
  10488. conftest$ac_exeext conftest.$ac_ext
  10489. LIBS=$ac_check_lib_save_LIBS
  10490. fi
  10491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10492. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10493. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10494. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10495. fi
  10496. fi
  10497. fi
  10498. fi
  10499. fi
  10500. fi
  10501. ;;
  10502. esac
  10503. if test "x$lt_cv_dlopen" != xno; then
  10504. enable_dlopen=yes
  10505. else
  10506. enable_dlopen=no
  10507. fi
  10508. case $lt_cv_dlopen in
  10509. dlopen)
  10510. save_CPPFLAGS="$CPPFLAGS"
  10511. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10512. save_LDFLAGS="$LDFLAGS"
  10513. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10514. save_LIBS="$LIBS"
  10515. LIBS="$lt_cv_dlopen_libs $LIBS"
  10516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10517. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10518. if ${lt_cv_dlopen_self+:} false; then :
  10519. $as_echo_n "(cached) " >&6
  10520. else
  10521. if test "$cross_compiling" = yes; then :
  10522. lt_cv_dlopen_self=cross
  10523. else
  10524. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10525. lt_status=$lt_dlunknown
  10526. cat > conftest.$ac_ext <<_LT_EOF
  10527. #line $LINENO "configure"
  10528. #include "confdefs.h"
  10529. #if HAVE_DLFCN_H
  10530. #include <dlfcn.h>
  10531. #endif
  10532. #include <stdio.h>
  10533. #ifdef RTLD_GLOBAL
  10534. # define LT_DLGLOBAL RTLD_GLOBAL
  10535. #else
  10536. # ifdef DL_GLOBAL
  10537. # define LT_DLGLOBAL DL_GLOBAL
  10538. # else
  10539. # define LT_DLGLOBAL 0
  10540. # endif
  10541. #endif
  10542. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10543. find out it does not work in some platform. */
  10544. #ifndef LT_DLLAZY_OR_NOW
  10545. # ifdef RTLD_LAZY
  10546. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10547. # else
  10548. # ifdef DL_LAZY
  10549. # define LT_DLLAZY_OR_NOW DL_LAZY
  10550. # else
  10551. # ifdef RTLD_NOW
  10552. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10553. # else
  10554. # ifdef DL_NOW
  10555. # define LT_DLLAZY_OR_NOW DL_NOW
  10556. # else
  10557. # define LT_DLLAZY_OR_NOW 0
  10558. # endif
  10559. # endif
  10560. # endif
  10561. # endif
  10562. #endif
  10563. /* When -fvisbility=hidden is used, assume the code has been annotated
  10564. correspondingly for the symbols needed. */
  10565. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10566. int fnord () __attribute__((visibility("default")));
  10567. #endif
  10568. int fnord () { return 42; }
  10569. int main ()
  10570. {
  10571. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10572. int status = $lt_dlunknown;
  10573. if (self)
  10574. {
  10575. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10576. else
  10577. {
  10578. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10579. else puts (dlerror ());
  10580. }
  10581. /* dlclose (self); */
  10582. }
  10583. else
  10584. puts (dlerror ());
  10585. return status;
  10586. }
  10587. _LT_EOF
  10588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10589. (eval $ac_link) 2>&5
  10590. ac_status=$?
  10591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10592. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10593. (./conftest; exit; ) >&5 2>/dev/null
  10594. lt_status=$?
  10595. case x$lt_status in
  10596. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10597. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10598. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10599. esac
  10600. else :
  10601. # compilation failed
  10602. lt_cv_dlopen_self=no
  10603. fi
  10604. fi
  10605. rm -fr conftest*
  10606. fi
  10607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10608. $as_echo "$lt_cv_dlopen_self" >&6; }
  10609. if test "x$lt_cv_dlopen_self" = xyes; then
  10610. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10612. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10613. if ${lt_cv_dlopen_self_static+:} false; then :
  10614. $as_echo_n "(cached) " >&6
  10615. else
  10616. if test "$cross_compiling" = yes; then :
  10617. lt_cv_dlopen_self_static=cross
  10618. else
  10619. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10620. lt_status=$lt_dlunknown
  10621. cat > conftest.$ac_ext <<_LT_EOF
  10622. #line $LINENO "configure"
  10623. #include "confdefs.h"
  10624. #if HAVE_DLFCN_H
  10625. #include <dlfcn.h>
  10626. #endif
  10627. #include <stdio.h>
  10628. #ifdef RTLD_GLOBAL
  10629. # define LT_DLGLOBAL RTLD_GLOBAL
  10630. #else
  10631. # ifdef DL_GLOBAL
  10632. # define LT_DLGLOBAL DL_GLOBAL
  10633. # else
  10634. # define LT_DLGLOBAL 0
  10635. # endif
  10636. #endif
  10637. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10638. find out it does not work in some platform. */
  10639. #ifndef LT_DLLAZY_OR_NOW
  10640. # ifdef RTLD_LAZY
  10641. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10642. # else
  10643. # ifdef DL_LAZY
  10644. # define LT_DLLAZY_OR_NOW DL_LAZY
  10645. # else
  10646. # ifdef RTLD_NOW
  10647. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10648. # else
  10649. # ifdef DL_NOW
  10650. # define LT_DLLAZY_OR_NOW DL_NOW
  10651. # else
  10652. # define LT_DLLAZY_OR_NOW 0
  10653. # endif
  10654. # endif
  10655. # endif
  10656. # endif
  10657. #endif
  10658. /* When -fvisbility=hidden is used, assume the code has been annotated
  10659. correspondingly for the symbols needed. */
  10660. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10661. int fnord () __attribute__((visibility("default")));
  10662. #endif
  10663. int fnord () { return 42; }
  10664. int main ()
  10665. {
  10666. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10667. int status = $lt_dlunknown;
  10668. if (self)
  10669. {
  10670. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10671. else
  10672. {
  10673. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10674. else puts (dlerror ());
  10675. }
  10676. /* dlclose (self); */
  10677. }
  10678. else
  10679. puts (dlerror ());
  10680. return status;
  10681. }
  10682. _LT_EOF
  10683. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10684. (eval $ac_link) 2>&5
  10685. ac_status=$?
  10686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10687. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10688. (./conftest; exit; ) >&5 2>/dev/null
  10689. lt_status=$?
  10690. case x$lt_status in
  10691. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10692. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10693. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10694. esac
  10695. else :
  10696. # compilation failed
  10697. lt_cv_dlopen_self_static=no
  10698. fi
  10699. fi
  10700. rm -fr conftest*
  10701. fi
  10702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10703. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10704. fi
  10705. CPPFLAGS="$save_CPPFLAGS"
  10706. LDFLAGS="$save_LDFLAGS"
  10707. LIBS="$save_LIBS"
  10708. ;;
  10709. esac
  10710. case $lt_cv_dlopen_self in
  10711. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10712. *) enable_dlopen_self=unknown ;;
  10713. esac
  10714. case $lt_cv_dlopen_self_static in
  10715. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10716. *) enable_dlopen_self_static=unknown ;;
  10717. esac
  10718. fi
  10719. striplib=
  10720. old_striplib=
  10721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10722. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10723. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10724. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10725. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10727. $as_echo "yes" >&6; }
  10728. else
  10729. # FIXME - insert some real tests, host_os isn't really good enough
  10730. case $host_os in
  10731. darwin*)
  10732. if test -n "$STRIP" ; then
  10733. striplib="$STRIP -x"
  10734. old_striplib="$STRIP -S"
  10735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10736. $as_echo "yes" >&6; }
  10737. else
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10739. $as_echo "no" >&6; }
  10740. fi
  10741. ;;
  10742. *)
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10744. $as_echo "no" >&6; }
  10745. ;;
  10746. esac
  10747. fi
  10748. # Report which library types will actually be built
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10750. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10752. $as_echo "$can_build_shared" >&6; }
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10754. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10755. test "$can_build_shared" = "no" && enable_shared=no
  10756. # On AIX, shared libraries and static libraries use the same namespace, and
  10757. # are all built from PIC.
  10758. case $host_os in
  10759. aix3*)
  10760. test "$enable_shared" = yes && enable_static=no
  10761. if test -n "$RANLIB"; then
  10762. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10763. postinstall_cmds='$RANLIB $lib'
  10764. fi
  10765. ;;
  10766. aix[4-9]*)
  10767. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10768. test "$enable_shared" = yes && enable_static=no
  10769. fi
  10770. ;;
  10771. esac
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10773. $as_echo "$enable_shared" >&6; }
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10775. $as_echo_n "checking whether to build static libraries... " >&6; }
  10776. # Make sure either enable_shared or enable_static is yes.
  10777. test "$enable_shared" = yes || enable_static=yes
  10778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10779. $as_echo "$enable_static" >&6; }
  10780. fi
  10781. ac_ext=c
  10782. ac_cpp='$CPP $CPPFLAGS'
  10783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10786. CC="$lt_save_CC"
  10787. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10788. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10789. (test "X$CXX" != "Xg++"))) ; then
  10790. ac_ext=cpp
  10791. ac_cpp='$CXXCPP $CPPFLAGS'
  10792. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10793. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10794. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10796. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10797. if test -z "$CXXCPP"; then
  10798. if ${ac_cv_prog_CXXCPP+:} false; then :
  10799. $as_echo_n "(cached) " >&6
  10800. else
  10801. # Double quotes because CXXCPP needs to be expanded
  10802. for CXXCPP in "$CXX -E" "/lib/cpp"
  10803. do
  10804. ac_preproc_ok=false
  10805. for ac_cxx_preproc_warn_flag in '' yes
  10806. do
  10807. # Use a header file that comes with gcc, so configuring glibc
  10808. # with a fresh cross-compiler works.
  10809. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10810. # <limits.h> exists even on freestanding compilers.
  10811. # On the NeXT, cc -E runs the code through the compiler's parser,
  10812. # not just through cpp. "Syntax error" is here to catch this case.
  10813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10814. /* end confdefs.h. */
  10815. #ifdef __STDC__
  10816. # include <limits.h>
  10817. #else
  10818. # include <assert.h>
  10819. #endif
  10820. Syntax error
  10821. _ACEOF
  10822. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10823. else
  10824. # Broken: fails on valid input.
  10825. continue
  10826. fi
  10827. rm -f conftest.err conftest.i conftest.$ac_ext
  10828. # OK, works on sane cases. Now check whether nonexistent headers
  10829. # can be detected and how.
  10830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10831. /* end confdefs.h. */
  10832. #include <ac_nonexistent.h>
  10833. _ACEOF
  10834. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10835. # Broken: success on invalid input.
  10836. continue
  10837. else
  10838. # Passes both tests.
  10839. ac_preproc_ok=:
  10840. break
  10841. fi
  10842. rm -f conftest.err conftest.i conftest.$ac_ext
  10843. done
  10844. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10845. rm -f conftest.i conftest.err conftest.$ac_ext
  10846. if $ac_preproc_ok; then :
  10847. break
  10848. fi
  10849. done
  10850. ac_cv_prog_CXXCPP=$CXXCPP
  10851. fi
  10852. CXXCPP=$ac_cv_prog_CXXCPP
  10853. else
  10854. ac_cv_prog_CXXCPP=$CXXCPP
  10855. fi
  10856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10857. $as_echo "$CXXCPP" >&6; }
  10858. ac_preproc_ok=false
  10859. for ac_cxx_preproc_warn_flag in '' yes
  10860. do
  10861. # Use a header file that comes with gcc, so configuring glibc
  10862. # with a fresh cross-compiler works.
  10863. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10864. # <limits.h> exists even on freestanding compilers.
  10865. # On the NeXT, cc -E runs the code through the compiler's parser,
  10866. # not just through cpp. "Syntax error" is here to catch this case.
  10867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10868. /* end confdefs.h. */
  10869. #ifdef __STDC__
  10870. # include <limits.h>
  10871. #else
  10872. # include <assert.h>
  10873. #endif
  10874. Syntax error
  10875. _ACEOF
  10876. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10877. else
  10878. # Broken: fails on valid input.
  10879. continue
  10880. fi
  10881. rm -f conftest.err conftest.i conftest.$ac_ext
  10882. # OK, works on sane cases. Now check whether nonexistent headers
  10883. # can be detected and how.
  10884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10885. /* end confdefs.h. */
  10886. #include <ac_nonexistent.h>
  10887. _ACEOF
  10888. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10889. # Broken: success on invalid input.
  10890. continue
  10891. else
  10892. # Passes both tests.
  10893. ac_preproc_ok=:
  10894. break
  10895. fi
  10896. rm -f conftest.err conftest.i conftest.$ac_ext
  10897. done
  10898. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10899. rm -f conftest.i conftest.err conftest.$ac_ext
  10900. if $ac_preproc_ok; then :
  10901. else
  10902. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10904. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10905. See \`config.log' for more details" "$LINENO" 5; }
  10906. fi
  10907. ac_ext=c
  10908. ac_cpp='$CPP $CPPFLAGS'
  10909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10912. else
  10913. _lt_caught_CXX_error=yes
  10914. fi
  10915. ac_ext=cpp
  10916. ac_cpp='$CXXCPP $CPPFLAGS'
  10917. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10918. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10919. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10920. archive_cmds_need_lc_CXX=no
  10921. allow_undefined_flag_CXX=
  10922. always_export_symbols_CXX=no
  10923. archive_expsym_cmds_CXX=
  10924. compiler_needs_object_CXX=no
  10925. export_dynamic_flag_spec_CXX=
  10926. hardcode_direct_CXX=no
  10927. hardcode_direct_absolute_CXX=no
  10928. hardcode_libdir_flag_spec_CXX=
  10929. hardcode_libdir_separator_CXX=
  10930. hardcode_minus_L_CXX=no
  10931. hardcode_shlibpath_var_CXX=unsupported
  10932. hardcode_automatic_CXX=no
  10933. inherit_rpath_CXX=no
  10934. module_cmds_CXX=
  10935. module_expsym_cmds_CXX=
  10936. link_all_deplibs_CXX=unknown
  10937. old_archive_cmds_CXX=$old_archive_cmds
  10938. reload_flag_CXX=$reload_flag
  10939. reload_cmds_CXX=$reload_cmds
  10940. no_undefined_flag_CXX=
  10941. whole_archive_flag_spec_CXX=
  10942. enable_shared_with_static_runtimes_CXX=no
  10943. # Source file extension for C++ test sources.
  10944. ac_ext=cpp
  10945. # Object file extension for compiled C++ test sources.
  10946. objext=o
  10947. objext_CXX=$objext
  10948. # No sense in running all these tests if we already determined that
  10949. # the CXX compiler isn't working. Some variables (like enable_shared)
  10950. # are currently assumed to apply to all compilers on this platform,
  10951. # and will be corrupted by setting them based on a non-working compiler.
  10952. if test "$_lt_caught_CXX_error" != yes; then
  10953. # Code to be used in simple compile tests
  10954. lt_simple_compile_test_code="int some_variable = 0;"
  10955. # Code to be used in simple link tests
  10956. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10957. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10958. # If no C compiler was specified, use CC.
  10959. LTCC=${LTCC-"$CC"}
  10960. # If no C compiler flags were specified, use CFLAGS.
  10961. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10962. # Allow CC to be a program name with arguments.
  10963. compiler=$CC
  10964. # save warnings/boilerplate of simple test code
  10965. ac_outfile=conftest.$ac_objext
  10966. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10967. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10968. _lt_compiler_boilerplate=`cat conftest.err`
  10969. $RM conftest*
  10970. ac_outfile=conftest.$ac_objext
  10971. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10972. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10973. _lt_linker_boilerplate=`cat conftest.err`
  10974. $RM -r conftest*
  10975. # Allow CC to be a program name with arguments.
  10976. lt_save_CC=$CC
  10977. lt_save_CFLAGS=$CFLAGS
  10978. lt_save_LD=$LD
  10979. lt_save_GCC=$GCC
  10980. GCC=$GXX
  10981. lt_save_with_gnu_ld=$with_gnu_ld
  10982. lt_save_path_LD=$lt_cv_path_LD
  10983. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10984. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10985. else
  10986. $as_unset lt_cv_prog_gnu_ld
  10987. fi
  10988. if test -n "${lt_cv_path_LDCXX+set}"; then
  10989. lt_cv_path_LD=$lt_cv_path_LDCXX
  10990. else
  10991. $as_unset lt_cv_path_LD
  10992. fi
  10993. test -z "${LDCXX+set}" || LD=$LDCXX
  10994. CC=${CXX-"c++"}
  10995. CFLAGS=$CXXFLAGS
  10996. compiler=$CC
  10997. compiler_CXX=$CC
  10998. for cc_temp in $compiler""; do
  10999. case $cc_temp in
  11000. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11001. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11002. \-*) ;;
  11003. *) break;;
  11004. esac
  11005. done
  11006. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11007. if test -n "$compiler"; then
  11008. # We don't want -fno-exception when compiling C++ code, so set the
  11009. # no_builtin_flag separately
  11010. if test "$GXX" = yes; then
  11011. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11012. else
  11013. lt_prog_compiler_no_builtin_flag_CXX=
  11014. fi
  11015. if test "$GXX" = yes; then
  11016. # Set up default GNU C++ configuration
  11017. # Check whether --with-gnu-ld was given.
  11018. if test "${with_gnu_ld+set}" = set; then :
  11019. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11020. else
  11021. with_gnu_ld=no
  11022. fi
  11023. ac_prog=ld
  11024. if test "$GCC" = yes; then
  11025. # Check if gcc -print-prog-name=ld gives a path.
  11026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11027. $as_echo_n "checking for ld used by $CC... " >&6; }
  11028. case $host in
  11029. *-*-mingw*)
  11030. # gcc leaves a trailing carriage return which upsets mingw
  11031. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11032. *)
  11033. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11034. esac
  11035. case $ac_prog in
  11036. # Accept absolute paths.
  11037. [\\/]* | ?:[\\/]*)
  11038. re_direlt='/[^/][^/]*/\.\./'
  11039. # Canonicalize the pathname of ld
  11040. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11041. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11042. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11043. done
  11044. test -z "$LD" && LD="$ac_prog"
  11045. ;;
  11046. "")
  11047. # If it fails, then pretend we aren't using GCC.
  11048. ac_prog=ld
  11049. ;;
  11050. *)
  11051. # If it is relative, then search for the first ld in PATH.
  11052. with_gnu_ld=unknown
  11053. ;;
  11054. esac
  11055. elif test "$with_gnu_ld" = yes; then
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11057. $as_echo_n "checking for GNU ld... " >&6; }
  11058. else
  11059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11060. $as_echo_n "checking for non-GNU ld... " >&6; }
  11061. fi
  11062. if ${lt_cv_path_LD+:} false; then :
  11063. $as_echo_n "(cached) " >&6
  11064. else
  11065. if test -z "$LD"; then
  11066. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11067. for ac_dir in $PATH; do
  11068. IFS="$lt_save_ifs"
  11069. test -z "$ac_dir" && ac_dir=.
  11070. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11071. lt_cv_path_LD="$ac_dir/$ac_prog"
  11072. # Check to see if the program is GNU ld. I'd rather use --version,
  11073. # but apparently some variants of GNU ld only accept -v.
  11074. # Break only if it was the GNU/non-GNU ld that we prefer.
  11075. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11076. *GNU* | *'with BFD'*)
  11077. test "$with_gnu_ld" != no && break
  11078. ;;
  11079. *)
  11080. test "$with_gnu_ld" != yes && break
  11081. ;;
  11082. esac
  11083. fi
  11084. done
  11085. IFS="$lt_save_ifs"
  11086. else
  11087. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11088. fi
  11089. fi
  11090. LD="$lt_cv_path_LD"
  11091. if test -n "$LD"; then
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11093. $as_echo "$LD" >&6; }
  11094. else
  11095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11096. $as_echo "no" >&6; }
  11097. fi
  11098. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11100. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11101. if ${lt_cv_prog_gnu_ld+:} false; then :
  11102. $as_echo_n "(cached) " >&6
  11103. else
  11104. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11105. case `$LD -v 2>&1 </dev/null` in
  11106. *GNU* | *'with BFD'*)
  11107. lt_cv_prog_gnu_ld=yes
  11108. ;;
  11109. *)
  11110. lt_cv_prog_gnu_ld=no
  11111. ;;
  11112. esac
  11113. fi
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11115. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11116. with_gnu_ld=$lt_cv_prog_gnu_ld
  11117. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11118. # archiving commands below assume that GNU ld is being used.
  11119. if test "$with_gnu_ld" = yes; then
  11120. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11121. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11122. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11123. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11124. # If archive_cmds runs LD, not CC, wlarc should be empty
  11125. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11126. # investigate it a little bit more. (MM)
  11127. wlarc='${wl}'
  11128. # ancient GNU ld didn't support --whole-archive et. al.
  11129. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11130. $GREP 'no-whole-archive' > /dev/null; then
  11131. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11132. else
  11133. whole_archive_flag_spec_CXX=
  11134. fi
  11135. else
  11136. with_gnu_ld=no
  11137. wlarc=
  11138. # A generic and very simple default shared library creation
  11139. # command for GNU C++ for the case where it uses the native
  11140. # linker, instead of GNU ld. If possible, this setting should
  11141. # overridden to take advantage of the native linker features on
  11142. # the platform it is being used on.
  11143. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11144. fi
  11145. # Commands to make compiler produce verbose output that lists
  11146. # what "hidden" libraries, object files and flags are used when
  11147. # linking a shared library.
  11148. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11149. else
  11150. GXX=no
  11151. with_gnu_ld=no
  11152. wlarc=
  11153. fi
  11154. # PORTME: fill in a description of your system's C++ link characteristics
  11155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11156. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11157. ld_shlibs_CXX=yes
  11158. case $host_os in
  11159. aix3*)
  11160. # FIXME: insert proper C++ library support
  11161. ld_shlibs_CXX=no
  11162. ;;
  11163. aix[4-9]*)
  11164. if test "$host_cpu" = ia64; then
  11165. # On IA64, the linker does run time linking by default, so we don't
  11166. # have to do anything special.
  11167. aix_use_runtimelinking=no
  11168. exp_sym_flag='-Bexport'
  11169. no_entry_flag=""
  11170. else
  11171. aix_use_runtimelinking=no
  11172. # Test if we are trying to use run time linking or normal
  11173. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11174. # need to do runtime linking.
  11175. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11176. for ld_flag in $LDFLAGS; do
  11177. case $ld_flag in
  11178. *-brtl*)
  11179. aix_use_runtimelinking=yes
  11180. break
  11181. ;;
  11182. esac
  11183. done
  11184. ;;
  11185. esac
  11186. exp_sym_flag='-bexport'
  11187. no_entry_flag='-bnoentry'
  11188. fi
  11189. # When large executables or shared objects are built, AIX ld can
  11190. # have problems creating the table of contents. If linking a library
  11191. # or program results in "error TOC overflow" add -mminimal-toc to
  11192. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11193. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11194. archive_cmds_CXX=''
  11195. hardcode_direct_CXX=yes
  11196. hardcode_direct_absolute_CXX=yes
  11197. hardcode_libdir_separator_CXX=':'
  11198. link_all_deplibs_CXX=yes
  11199. file_list_spec_CXX='${wl}-f,'
  11200. if test "$GXX" = yes; then
  11201. case $host_os in aix4.[012]|aix4.[012].*)
  11202. # We only want to do this on AIX 4.2 and lower, the check
  11203. # below for broken collect2 doesn't work under 4.3+
  11204. collect2name=`${CC} -print-prog-name=collect2`
  11205. if test -f "$collect2name" &&
  11206. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11207. then
  11208. # We have reworked collect2
  11209. :
  11210. else
  11211. # We have old collect2
  11212. hardcode_direct_CXX=unsupported
  11213. # It fails to find uninstalled libraries when the uninstalled
  11214. # path is not listed in the libpath. Setting hardcode_minus_L
  11215. # to unsupported forces relinking
  11216. hardcode_minus_L_CXX=yes
  11217. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11218. hardcode_libdir_separator_CXX=
  11219. fi
  11220. esac
  11221. shared_flag='-shared'
  11222. if test "$aix_use_runtimelinking" = yes; then
  11223. shared_flag="$shared_flag "'${wl}-G'
  11224. fi
  11225. else
  11226. # not using gcc
  11227. if test "$host_cpu" = ia64; then
  11228. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11229. # chokes on -Wl,-G. The following line is correct:
  11230. shared_flag='-G'
  11231. else
  11232. if test "$aix_use_runtimelinking" = yes; then
  11233. shared_flag='${wl}-G'
  11234. else
  11235. shared_flag='${wl}-bM:SRE'
  11236. fi
  11237. fi
  11238. fi
  11239. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11240. # It seems that -bexpall does not export symbols beginning with
  11241. # underscore (_), so it is better to generate a list of symbols to
  11242. # export.
  11243. always_export_symbols_CXX=yes
  11244. if test "$aix_use_runtimelinking" = yes; then
  11245. # Warning - without using the other runtime loading flags (-brtl),
  11246. # -berok will link without error, but may produce a broken library.
  11247. allow_undefined_flag_CXX='-berok'
  11248. # Determine the default libpath from the value encoded in an empty
  11249. # executable.
  11250. if test "${lt_cv_aix_libpath+set}" = set; then
  11251. aix_libpath=$lt_cv_aix_libpath
  11252. else
  11253. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11254. $as_echo_n "(cached) " >&6
  11255. else
  11256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11257. /* end confdefs.h. */
  11258. int
  11259. main ()
  11260. {
  11261. ;
  11262. return 0;
  11263. }
  11264. _ACEOF
  11265. if ac_fn_cxx_try_link "$LINENO"; then :
  11266. lt_aix_libpath_sed='
  11267. /Import File Strings/,/^$/ {
  11268. /^0/ {
  11269. s/^0 *\([^ ]*\) *$/\1/
  11270. p
  11271. }
  11272. }'
  11273. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11274. # Check for a 64-bit object if we didn't find anything.
  11275. if test -z "$lt_cv_aix_libpath__CXX"; then
  11276. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11277. fi
  11278. fi
  11279. rm -f core conftest.err conftest.$ac_objext \
  11280. conftest$ac_exeext conftest.$ac_ext
  11281. if test -z "$lt_cv_aix_libpath__CXX"; then
  11282. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11283. fi
  11284. fi
  11285. aix_libpath=$lt_cv_aix_libpath__CXX
  11286. fi
  11287. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11288. 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11289. else
  11290. if test "$host_cpu" = ia64; then
  11291. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11292. allow_undefined_flag_CXX="-z nodefs"
  11293. 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"
  11294. else
  11295. # Determine the default libpath from the value encoded in an
  11296. # empty executable.
  11297. if test "${lt_cv_aix_libpath+set}" = set; then
  11298. aix_libpath=$lt_cv_aix_libpath
  11299. else
  11300. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11301. $as_echo_n "(cached) " >&6
  11302. else
  11303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11304. /* end confdefs.h. */
  11305. int
  11306. main ()
  11307. {
  11308. ;
  11309. return 0;
  11310. }
  11311. _ACEOF
  11312. if ac_fn_cxx_try_link "$LINENO"; then :
  11313. lt_aix_libpath_sed='
  11314. /Import File Strings/,/^$/ {
  11315. /^0/ {
  11316. s/^0 *\([^ ]*\) *$/\1/
  11317. p
  11318. }
  11319. }'
  11320. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11321. # Check for a 64-bit object if we didn't find anything.
  11322. if test -z "$lt_cv_aix_libpath__CXX"; then
  11323. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11324. fi
  11325. fi
  11326. rm -f core conftest.err conftest.$ac_objext \
  11327. conftest$ac_exeext conftest.$ac_ext
  11328. if test -z "$lt_cv_aix_libpath__CXX"; then
  11329. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11330. fi
  11331. fi
  11332. aix_libpath=$lt_cv_aix_libpath__CXX
  11333. fi
  11334. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11335. # Warning - without using the other run time loading flags,
  11336. # -berok will link without error, but may produce a broken library.
  11337. no_undefined_flag_CXX=' ${wl}-bernotok'
  11338. allow_undefined_flag_CXX=' ${wl}-berok'
  11339. if test "$with_gnu_ld" = yes; then
  11340. # We only use this code for GNU lds that support --whole-archive.
  11341. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11342. else
  11343. # Exported symbols can be pulled into shared objects from archives
  11344. whole_archive_flag_spec_CXX='$convenience'
  11345. fi
  11346. archive_cmds_need_lc_CXX=yes
  11347. # This is similar to how AIX traditionally builds its shared
  11348. # libraries.
  11349. 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'
  11350. fi
  11351. fi
  11352. ;;
  11353. beos*)
  11354. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11355. allow_undefined_flag_CXX=unsupported
  11356. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11357. # support --undefined. This deserves some investigation. FIXME
  11358. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11359. else
  11360. ld_shlibs_CXX=no
  11361. fi
  11362. ;;
  11363. chorus*)
  11364. case $cc_basename in
  11365. *)
  11366. # FIXME: insert proper C++ library support
  11367. ld_shlibs_CXX=no
  11368. ;;
  11369. esac
  11370. ;;
  11371. cygwin* | mingw* | pw32* | cegcc*)
  11372. case $GXX,$cc_basename in
  11373. ,cl* | no,cl*)
  11374. # Native MSVC
  11375. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11376. # no search path for DLLs.
  11377. hardcode_libdir_flag_spec_CXX=' '
  11378. allow_undefined_flag_CXX=unsupported
  11379. always_export_symbols_CXX=yes
  11380. file_list_spec_CXX='@'
  11381. # Tell ltmain to make .lib files, not .a files.
  11382. libext=lib
  11383. # Tell ltmain to make .dll files, not .so files.
  11384. shrext_cmds=".dll"
  11385. # FIXME: Setting linknames here is a bad hack.
  11386. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11387. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11388. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11389. else
  11390. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11391. fi~
  11392. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11393. linknames='
  11394. # The linker will not automatically build a static lib if we build a DLL.
  11395. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11396. enable_shared_with_static_runtimes_CXX=yes
  11397. # Don't use ranlib
  11398. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11399. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11400. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11401. case $lt_outputfile in
  11402. *.exe|*.EXE) ;;
  11403. *)
  11404. lt_outputfile="$lt_outputfile.exe"
  11405. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11406. ;;
  11407. esac~
  11408. func_to_tool_file "$lt_outputfile"~
  11409. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11410. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11411. $RM "$lt_outputfile.manifest";
  11412. fi'
  11413. ;;
  11414. *)
  11415. # g++
  11416. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11417. # as there is no search path for DLLs.
  11418. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11419. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11420. allow_undefined_flag_CXX=unsupported
  11421. always_export_symbols_CXX=no
  11422. enable_shared_with_static_runtimes_CXX=yes
  11423. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11424. 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'
  11425. # If the export-symbols file already is a .def file (1st line
  11426. # is EXPORTS), use it as is; otherwise, prepend...
  11427. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11428. cp $export_symbols $output_objdir/$soname.def;
  11429. else
  11430. echo EXPORTS > $output_objdir/$soname.def;
  11431. cat $export_symbols >> $output_objdir/$soname.def;
  11432. fi~
  11433. $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'
  11434. else
  11435. ld_shlibs_CXX=no
  11436. fi
  11437. ;;
  11438. esac
  11439. ;;
  11440. darwin* | rhapsody*)
  11441. archive_cmds_need_lc_CXX=no
  11442. hardcode_direct_CXX=no
  11443. hardcode_automatic_CXX=yes
  11444. hardcode_shlibpath_var_CXX=unsupported
  11445. if test "$lt_cv_ld_force_load" = "yes"; then
  11446. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11447. else
  11448. whole_archive_flag_spec_CXX=''
  11449. fi
  11450. link_all_deplibs_CXX=yes
  11451. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11452. case $cc_basename in
  11453. ifort*) _lt_dar_can_shared=yes ;;
  11454. *) _lt_dar_can_shared=$GCC ;;
  11455. esac
  11456. if test "$_lt_dar_can_shared" = "yes"; then
  11457. output_verbose_link_cmd=func_echo_all
  11458. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11459. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11460. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11461. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11462. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11463. 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${_lt_dsymutil}"
  11464. archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
  11465. fi
  11466. else
  11467. ld_shlibs_CXX=no
  11468. fi
  11469. ;;
  11470. dgux*)
  11471. case $cc_basename in
  11472. ec++*)
  11473. # FIXME: insert proper C++ library support
  11474. ld_shlibs_CXX=no
  11475. ;;
  11476. ghcx*)
  11477. # Green Hills C++ Compiler
  11478. # FIXME: insert proper C++ library support
  11479. ld_shlibs_CXX=no
  11480. ;;
  11481. *)
  11482. # FIXME: insert proper C++ library support
  11483. ld_shlibs_CXX=no
  11484. ;;
  11485. esac
  11486. ;;
  11487. freebsd2.*)
  11488. # C++ shared libraries reported to be fairly broken before
  11489. # switch to ELF
  11490. ld_shlibs_CXX=no
  11491. ;;
  11492. freebsd-elf*)
  11493. archive_cmds_need_lc_CXX=no
  11494. ;;
  11495. freebsd* | dragonfly*)
  11496. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11497. # conventions
  11498. ld_shlibs_CXX=yes
  11499. ;;
  11500. gnu*)
  11501. ;;
  11502. haiku*)
  11503. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11504. link_all_deplibs_CXX=yes
  11505. ;;
  11506. hpux9*)
  11507. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11508. hardcode_libdir_separator_CXX=:
  11509. export_dynamic_flag_spec_CXX='${wl}-E'
  11510. hardcode_direct_CXX=yes
  11511. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11512. # but as the default
  11513. # location of the library.
  11514. case $cc_basename in
  11515. CC*)
  11516. # FIXME: insert proper C++ library support
  11517. ld_shlibs_CXX=no
  11518. ;;
  11519. aCC*)
  11520. 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'
  11521. # Commands to make compiler produce verbose output that lists
  11522. # what "hidden" libraries, object files and flags are used when
  11523. # linking a shared library.
  11524. #
  11525. # There doesn't appear to be a way to prevent this compiler from
  11526. # explicitly linking system object files so we need to strip them
  11527. # from the output so that they don't get included in the library
  11528. # dependencies.
  11529. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11530. ;;
  11531. *)
  11532. if test "$GXX" = yes; then
  11533. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
  11534. else
  11535. # FIXME: insert proper C++ library support
  11536. ld_shlibs_CXX=no
  11537. fi
  11538. ;;
  11539. esac
  11540. ;;
  11541. hpux10*|hpux11*)
  11542. if test $with_gnu_ld = no; then
  11543. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11544. hardcode_libdir_separator_CXX=:
  11545. case $host_cpu in
  11546. hppa*64*|ia64*)
  11547. ;;
  11548. *)
  11549. export_dynamic_flag_spec_CXX='${wl}-E'
  11550. ;;
  11551. esac
  11552. fi
  11553. case $host_cpu in
  11554. hppa*64*|ia64*)
  11555. hardcode_direct_CXX=no
  11556. hardcode_shlibpath_var_CXX=no
  11557. ;;
  11558. *)
  11559. hardcode_direct_CXX=yes
  11560. hardcode_direct_absolute_CXX=yes
  11561. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11562. # but as the default
  11563. # location of the library.
  11564. ;;
  11565. esac
  11566. case $cc_basename in
  11567. CC*)
  11568. # FIXME: insert proper C++ library support
  11569. ld_shlibs_CXX=no
  11570. ;;
  11571. aCC*)
  11572. case $host_cpu in
  11573. hppa*64*)
  11574. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11575. ;;
  11576. ia64*)
  11577. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11578. ;;
  11579. *)
  11580. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11581. ;;
  11582. esac
  11583. # Commands to make compiler produce verbose output that lists
  11584. # what "hidden" libraries, object files and flags are used when
  11585. # linking a shared library.
  11586. #
  11587. # There doesn't appear to be a way to prevent this compiler from
  11588. # explicitly linking system object files so we need to strip them
  11589. # from the output so that they don't get included in the library
  11590. # dependencies.
  11591. 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; func_echo_all "$list"'
  11592. ;;
  11593. *)
  11594. if test "$GXX" = yes; then
  11595. if test $with_gnu_ld = no; then
  11596. case $host_cpu in
  11597. hppa*64*)
  11598. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11599. ;;
  11600. ia64*)
  11601. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11602. ;;
  11603. *)
  11604. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11605. ;;
  11606. esac
  11607. fi
  11608. else
  11609. # FIXME: insert proper C++ library support
  11610. ld_shlibs_CXX=no
  11611. fi
  11612. ;;
  11613. esac
  11614. ;;
  11615. interix[3-9]*)
  11616. hardcode_direct_CXX=no
  11617. hardcode_shlibpath_var_CXX=no
  11618. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11619. export_dynamic_flag_spec_CXX='${wl}-E'
  11620. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11621. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11622. # default) and relocated if they conflict, which is a slow very memory
  11623. # consuming and fragmenting process. To avoid this, we pick a random,
  11624. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11625. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11626. 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'
  11627. 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'
  11628. ;;
  11629. irix5* | irix6*)
  11630. case $cc_basename in
  11631. CC*)
  11632. # SGI C++
  11633. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11634. # Archives containing C++ object files must be created using
  11635. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11636. # necessary to make sure instantiated templates are included
  11637. # in the archive.
  11638. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11639. ;;
  11640. *)
  11641. if test "$GXX" = yes; then
  11642. if test "$with_gnu_ld" = no; then
  11643. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11644. else
  11645. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11646. fi
  11647. fi
  11648. link_all_deplibs_CXX=yes
  11649. ;;
  11650. esac
  11651. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11652. hardcode_libdir_separator_CXX=:
  11653. inherit_rpath_CXX=yes
  11654. ;;
  11655. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11656. case $cc_basename in
  11657. KCC*)
  11658. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11659. # KCC will only create a shared library if the output file
  11660. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11661. # to its proper name (with version) after linking.
  11662. 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'
  11663. 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'
  11664. # Commands to make compiler produce verbose output that lists
  11665. # what "hidden" libraries, object files and flags are used when
  11666. # linking a shared library.
  11667. #
  11668. # There doesn't appear to be a way to prevent this compiler from
  11669. # explicitly linking system object files so we need to strip them
  11670. # from the output so that they don't get included in the library
  11671. # dependencies.
  11672. 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; func_echo_all "$list"'
  11673. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11674. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11675. # Archives containing C++ object files must be created using
  11676. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11677. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11678. ;;
  11679. icpc* | ecpc* )
  11680. # Intel C++
  11681. with_gnu_ld=yes
  11682. # version 8.0 and above of icpc choke on multiply defined symbols
  11683. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11684. # earlier do not add the objects themselves.
  11685. case `$CC -V 2>&1` in
  11686. *"Version 7."*)
  11687. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11688. 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'
  11689. ;;
  11690. *) # Version 8.0 or newer
  11691. tmp_idyn=
  11692. case $host_cpu in
  11693. ia64*) tmp_idyn=' -i_dynamic';;
  11694. esac
  11695. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11696. 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'
  11697. ;;
  11698. esac
  11699. archive_cmds_need_lc_CXX=no
  11700. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11701. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11702. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11703. ;;
  11704. pgCC* | pgcpp*)
  11705. # Portland Group C++ compiler
  11706. case `$CC -V` in
  11707. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11708. prelink_cmds_CXX='tpldir=Template.dir~
  11709. rm -rf $tpldir~
  11710. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11711. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11712. old_archive_cmds_CXX='tpldir=Template.dir~
  11713. rm -rf $tpldir~
  11714. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11715. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11716. $RANLIB $oldlib'
  11717. archive_cmds_CXX='tpldir=Template.dir~
  11718. rm -rf $tpldir~
  11719. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11720. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11721. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11722. rm -rf $tpldir~
  11723. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11724. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11725. ;;
  11726. *) # Version 6 and above use weak symbols
  11727. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11728. 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'
  11729. ;;
  11730. esac
  11731. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11732. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11733. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11734. ;;
  11735. cxx*)
  11736. # Compaq C++
  11737. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11738. 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'
  11739. runpath_var=LD_RUN_PATH
  11740. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11741. hardcode_libdir_separator_CXX=:
  11742. # Commands to make compiler produce verbose output that lists
  11743. # what "hidden" libraries, object files and flags are used when
  11744. # linking a shared library.
  11745. #
  11746. # There doesn't appear to be a way to prevent this compiler from
  11747. # explicitly linking system object files so we need to strip them
  11748. # from the output so that they don't get included in the library
  11749. # dependencies.
  11750. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
  11751. ;;
  11752. xl* | mpixl* | bgxl*)
  11753. # IBM XL 8.0 on PPC, with GNU ld
  11754. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11755. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11756. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11757. if test "x$supports_anon_versioning" = xyes; then
  11758. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11759. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11760. echo "local: *; };" >> $output_objdir/$libname.ver~
  11761. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11762. fi
  11763. ;;
  11764. *)
  11765. case `$CC -V 2>&1 | sed 5q` in
  11766. *Sun\ C*)
  11767. # Sun C++ 5.9
  11768. no_undefined_flag_CXX=' -zdefs'
  11769. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11770. 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'
  11771. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11772. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11773. compiler_needs_object_CXX=yes
  11774. # Not sure whether something based on
  11775. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11776. # would be better.
  11777. output_verbose_link_cmd='func_echo_all'
  11778. # Archives containing C++ object files must be created using
  11779. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11780. # necessary to make sure instantiated templates are included
  11781. # in the archive.
  11782. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11783. ;;
  11784. esac
  11785. ;;
  11786. esac
  11787. ;;
  11788. lynxos*)
  11789. # FIXME: insert proper C++ library support
  11790. ld_shlibs_CXX=no
  11791. ;;
  11792. m88k*)
  11793. # FIXME: insert proper C++ library support
  11794. ld_shlibs_CXX=no
  11795. ;;
  11796. mvs*)
  11797. case $cc_basename in
  11798. cxx*)
  11799. # FIXME: insert proper C++ library support
  11800. ld_shlibs_CXX=no
  11801. ;;
  11802. *)
  11803. # FIXME: insert proper C++ library support
  11804. ld_shlibs_CXX=no
  11805. ;;
  11806. esac
  11807. ;;
  11808. netbsd*)
  11809. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11810. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11811. wlarc=
  11812. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11813. hardcode_direct_CXX=yes
  11814. hardcode_shlibpath_var_CXX=no
  11815. fi
  11816. # Workaround some broken pre-1.5 toolchains
  11817. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11818. ;;
  11819. *nto* | *qnx*)
  11820. ld_shlibs_CXX=yes
  11821. ;;
  11822. openbsd2*)
  11823. # C++ shared libraries are fairly broken
  11824. ld_shlibs_CXX=no
  11825. ;;
  11826. openbsd*)
  11827. if test -f /usr/libexec/ld.so; then
  11828. hardcode_direct_CXX=yes
  11829. hardcode_shlibpath_var_CXX=no
  11830. hardcode_direct_absolute_CXX=yes
  11831. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11832. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11833. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11834. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11835. export_dynamic_flag_spec_CXX='${wl}-E'
  11836. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11837. fi
  11838. output_verbose_link_cmd=func_echo_all
  11839. else
  11840. ld_shlibs_CXX=no
  11841. fi
  11842. ;;
  11843. osf3* | osf4* | osf5*)
  11844. case $cc_basename in
  11845. KCC*)
  11846. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11847. # KCC will only create a shared library if the output file
  11848. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11849. # to its proper name (with version) after linking.
  11850. 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'
  11851. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11852. hardcode_libdir_separator_CXX=:
  11853. # Archives containing C++ object files must be created using
  11854. # the KAI C++ compiler.
  11855. case $host in
  11856. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11857. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11858. esac
  11859. ;;
  11860. RCC*)
  11861. # Rational C++ 2.4.1
  11862. # FIXME: insert proper C++ library support
  11863. ld_shlibs_CXX=no
  11864. ;;
  11865. cxx*)
  11866. case $host in
  11867. osf3*)
  11868. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11869. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11870. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11871. ;;
  11872. *)
  11873. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11874. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11875. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11876. echo "-hidden">> $lib.exp~
  11877. $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~
  11878. $RM $lib.exp'
  11879. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11880. ;;
  11881. esac
  11882. hardcode_libdir_separator_CXX=:
  11883. # Commands to make compiler produce verbose output that lists
  11884. # what "hidden" libraries, object files and flags are used when
  11885. # linking a shared library.
  11886. #
  11887. # There doesn't appear to be a way to prevent this compiler from
  11888. # explicitly linking system object files so we need to strip them
  11889. # from the output so that they don't get included in the library
  11890. # dependencies.
  11891. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
  11892. ;;
  11893. *)
  11894. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11895. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11896. case $host in
  11897. osf3*)
  11898. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11899. ;;
  11900. *)
  11901. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11902. ;;
  11903. esac
  11904. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11905. hardcode_libdir_separator_CXX=:
  11906. # Commands to make compiler produce verbose output that lists
  11907. # what "hidden" libraries, object files and flags are used when
  11908. # linking a shared library.
  11909. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11910. else
  11911. # FIXME: insert proper C++ library support
  11912. ld_shlibs_CXX=no
  11913. fi
  11914. ;;
  11915. esac
  11916. ;;
  11917. psos*)
  11918. # FIXME: insert proper C++ library support
  11919. ld_shlibs_CXX=no
  11920. ;;
  11921. sunos4*)
  11922. case $cc_basename in
  11923. CC*)
  11924. # Sun C++ 4.x
  11925. # FIXME: insert proper C++ library support
  11926. ld_shlibs_CXX=no
  11927. ;;
  11928. lcc*)
  11929. # Lucid
  11930. # FIXME: insert proper C++ library support
  11931. ld_shlibs_CXX=no
  11932. ;;
  11933. *)
  11934. # FIXME: insert proper C++ library support
  11935. ld_shlibs_CXX=no
  11936. ;;
  11937. esac
  11938. ;;
  11939. solaris*)
  11940. case $cc_basename in
  11941. CC* | sunCC*)
  11942. # Sun C++ 4.2, 5.x and Centerline C++
  11943. archive_cmds_need_lc_CXX=yes
  11944. no_undefined_flag_CXX=' -zdefs'
  11945. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11946. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11947. $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'
  11948. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11949. hardcode_shlibpath_var_CXX=no
  11950. case $host_os in
  11951. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11952. *)
  11953. # The compiler driver will combine and reorder linker options,
  11954. # but understands `-z linker_flag'.
  11955. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11956. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11957. ;;
  11958. esac
  11959. link_all_deplibs_CXX=yes
  11960. output_verbose_link_cmd='func_echo_all'
  11961. # Archives containing C++ object files must be created using
  11962. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11963. # necessary to make sure instantiated templates are included
  11964. # in the archive.
  11965. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11966. ;;
  11967. gcx*)
  11968. # Green Hills C++ Compiler
  11969. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11970. # The C++ compiler must be used to create the archive.
  11971. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11972. ;;
  11973. *)
  11974. # GNU C++ compiler with Solaris linker
  11975. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11976. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11977. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11978. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11979. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11980. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11981. # Commands to make compiler produce verbose output that lists
  11982. # what "hidden" libraries, object files and flags are used when
  11983. # linking a shared library.
  11984. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11985. else
  11986. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11987. # platform.
  11988. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11989. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11990. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11991. # Commands to make compiler produce verbose output that lists
  11992. # what "hidden" libraries, object files and flags are used when
  11993. # linking a shared library.
  11994. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11995. fi
  11996. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11997. case $host_os in
  11998. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11999. *)
  12000. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12001. ;;
  12002. esac
  12003. fi
  12004. ;;
  12005. esac
  12006. ;;
  12007. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12008. no_undefined_flag_CXX='${wl}-z,text'
  12009. archive_cmds_need_lc_CXX=no
  12010. hardcode_shlibpath_var_CXX=no
  12011. runpath_var='LD_RUN_PATH'
  12012. case $cc_basename in
  12013. CC*)
  12014. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12015. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12016. ;;
  12017. *)
  12018. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12019. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12020. ;;
  12021. esac
  12022. ;;
  12023. sysv5* | sco3.2v5* | sco5v6*)
  12024. # Note: We can NOT use -z defs as we might desire, because we do not
  12025. # link with -lc, and that would cause any symbols used from libc to
  12026. # always be unresolved, which means just about no library would
  12027. # ever link correctly. If we're not using GNU ld we use -z text
  12028. # though, which does catch some bad symbols but isn't as heavy-handed
  12029. # as -z defs.
  12030. no_undefined_flag_CXX='${wl}-z,text'
  12031. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12032. archive_cmds_need_lc_CXX=no
  12033. hardcode_shlibpath_var_CXX=no
  12034. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12035. hardcode_libdir_separator_CXX=':'
  12036. link_all_deplibs_CXX=yes
  12037. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12038. runpath_var='LD_RUN_PATH'
  12039. case $cc_basename in
  12040. CC*)
  12041. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12043. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12044. '"$old_archive_cmds_CXX"
  12045. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12046. '"$reload_cmds_CXX"
  12047. ;;
  12048. *)
  12049. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12050. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12051. ;;
  12052. esac
  12053. ;;
  12054. tandem*)
  12055. case $cc_basename in
  12056. NCC*)
  12057. # NonStop-UX NCC 3.20
  12058. # FIXME: insert proper C++ library support
  12059. ld_shlibs_CXX=no
  12060. ;;
  12061. *)
  12062. # FIXME: insert proper C++ library support
  12063. ld_shlibs_CXX=no
  12064. ;;
  12065. esac
  12066. ;;
  12067. vxworks*)
  12068. # FIXME: insert proper C++ library support
  12069. ld_shlibs_CXX=no
  12070. ;;
  12071. *)
  12072. # FIXME: insert proper C++ library support
  12073. ld_shlibs_CXX=no
  12074. ;;
  12075. esac
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12077. $as_echo "$ld_shlibs_CXX" >&6; }
  12078. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12079. GCC_CXX="$GXX"
  12080. LD_CXX="$LD"
  12081. ## CAVEAT EMPTOR:
  12082. ## There is no encapsulation within the following macros, do not change
  12083. ## the running order or otherwise move them around unless you know exactly
  12084. ## what you are doing...
  12085. # Dependencies to place before and after the object being linked:
  12086. predep_objects_CXX=
  12087. postdep_objects_CXX=
  12088. predeps_CXX=
  12089. postdeps_CXX=
  12090. compiler_lib_search_path_CXX=
  12091. cat > conftest.$ac_ext <<_LT_EOF
  12092. class Foo
  12093. {
  12094. public:
  12095. Foo (void) { a = 0; }
  12096. private:
  12097. int a;
  12098. };
  12099. _LT_EOF
  12100. _lt_libdeps_save_CFLAGS=$CFLAGS
  12101. case "$CC $CFLAGS " in #(
  12102. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12103. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12104. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12105. esac
  12106. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12107. (eval $ac_compile) 2>&5
  12108. ac_status=$?
  12109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12110. test $ac_status = 0; }; then
  12111. # Parse the compiler output and extract the necessary
  12112. # objects, libraries and library flags.
  12113. # Sentinel used to keep track of whether or not we are before
  12114. # the conftest object file.
  12115. pre_test_object_deps_done=no
  12116. for p in `eval "$output_verbose_link_cmd"`; do
  12117. case ${prev}${p} in
  12118. -L* | -R* | -l*)
  12119. # Some compilers place space between "-{L,R}" and the path.
  12120. # Remove the space.
  12121. if test $p = "-L" ||
  12122. test $p = "-R"; then
  12123. prev=$p
  12124. continue
  12125. fi
  12126. # Expand the sysroot to ease extracting the directories later.
  12127. if test -z "$prev"; then
  12128. case $p in
  12129. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12130. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12131. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12132. esac
  12133. fi
  12134. case $p in
  12135. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12136. esac
  12137. if test "$pre_test_object_deps_done" = no; then
  12138. case ${prev} in
  12139. -L | -R)
  12140. # Internal compiler library paths should come after those
  12141. # provided the user. The postdeps already come after the
  12142. # user supplied libs so there is no need to process them.
  12143. if test -z "$compiler_lib_search_path_CXX"; then
  12144. compiler_lib_search_path_CXX="${prev}${p}"
  12145. else
  12146. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12147. fi
  12148. ;;
  12149. # The "-l" case would never come before the object being
  12150. # linked, so don't bother handling this case.
  12151. esac
  12152. else
  12153. if test -z "$postdeps_CXX"; then
  12154. postdeps_CXX="${prev}${p}"
  12155. else
  12156. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12157. fi
  12158. fi
  12159. prev=
  12160. ;;
  12161. *.lto.$objext) ;; # Ignore GCC LTO objects
  12162. *.$objext)
  12163. # This assumes that the test object file only shows up
  12164. # once in the compiler output.
  12165. if test "$p" = "conftest.$objext"; then
  12166. pre_test_object_deps_done=yes
  12167. continue
  12168. fi
  12169. if test "$pre_test_object_deps_done" = no; then
  12170. if test -z "$predep_objects_CXX"; then
  12171. predep_objects_CXX="$p"
  12172. else
  12173. predep_objects_CXX="$predep_objects_CXX $p"
  12174. fi
  12175. else
  12176. if test -z "$postdep_objects_CXX"; then
  12177. postdep_objects_CXX="$p"
  12178. else
  12179. postdep_objects_CXX="$postdep_objects_CXX $p"
  12180. fi
  12181. fi
  12182. ;;
  12183. *) ;; # Ignore the rest.
  12184. esac
  12185. done
  12186. # Clean up.
  12187. rm -f a.out a.exe
  12188. else
  12189. echo "libtool.m4: error: problem compiling CXX test program"
  12190. fi
  12191. $RM -f confest.$objext
  12192. CFLAGS=$_lt_libdeps_save_CFLAGS
  12193. # PORTME: override above test on systems where it is broken
  12194. case $host_os in
  12195. interix[3-9]*)
  12196. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12197. # hack all around it, let's just trust "g++" to DTRT.
  12198. predep_objects_CXX=
  12199. postdep_objects_CXX=
  12200. postdeps_CXX=
  12201. ;;
  12202. linux*)
  12203. case `$CC -V 2>&1 | sed 5q` in
  12204. *Sun\ C*)
  12205. # Sun C++ 5.9
  12206. # The more standards-conforming stlport4 library is
  12207. # incompatible with the Cstd library. Avoid specifying
  12208. # it if it's in CXXFLAGS. Ignore libCrun as
  12209. # -library=stlport4 depends on it.
  12210. case " $CXX $CXXFLAGS " in
  12211. *" -library=stlport4 "*)
  12212. solaris_use_stlport4=yes
  12213. ;;
  12214. esac
  12215. if test "$solaris_use_stlport4" != yes; then
  12216. postdeps_CXX='-library=Cstd -library=Crun'
  12217. fi
  12218. ;;
  12219. esac
  12220. ;;
  12221. solaris*)
  12222. case $cc_basename in
  12223. CC* | sunCC*)
  12224. # The more standards-conforming stlport4 library is
  12225. # incompatible with the Cstd library. Avoid specifying
  12226. # it if it's in CXXFLAGS. Ignore libCrun as
  12227. # -library=stlport4 depends on it.
  12228. case " $CXX $CXXFLAGS " in
  12229. *" -library=stlport4 "*)
  12230. solaris_use_stlport4=yes
  12231. ;;
  12232. esac
  12233. # Adding this requires a known-good setup of shared libraries for
  12234. # Sun compiler versions before 5.6, else PIC objects from an old
  12235. # archive will be linked into the output, leading to subtle bugs.
  12236. if test "$solaris_use_stlport4" != yes; then
  12237. postdeps_CXX='-library=Cstd -library=Crun'
  12238. fi
  12239. ;;
  12240. esac
  12241. ;;
  12242. esac
  12243. case " $postdeps_CXX " in
  12244. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12245. esac
  12246. compiler_lib_search_dirs_CXX=
  12247. if test -n "${compiler_lib_search_path_CXX}"; then
  12248. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12249. fi
  12250. lt_prog_compiler_wl_CXX=
  12251. lt_prog_compiler_pic_CXX=
  12252. lt_prog_compiler_static_CXX=
  12253. # C++ specific cases for pic, static, wl, etc.
  12254. if test "$GXX" = yes; then
  12255. lt_prog_compiler_wl_CXX='-Wl,'
  12256. lt_prog_compiler_static_CXX='-static'
  12257. case $host_os in
  12258. aix*)
  12259. # All AIX code is PIC.
  12260. if test "$host_cpu" = ia64; then
  12261. # AIX 5 now supports IA64 processor
  12262. lt_prog_compiler_static_CXX='-Bstatic'
  12263. fi
  12264. ;;
  12265. amigaos*)
  12266. case $host_cpu in
  12267. powerpc)
  12268. # see comment about AmigaOS4 .so support
  12269. lt_prog_compiler_pic_CXX='-fPIC'
  12270. ;;
  12271. m68k)
  12272. # FIXME: we need at least 68020 code to build shared libraries, but
  12273. # adding the `-m68020' flag to GCC prevents building anything better,
  12274. # like `-m68040'.
  12275. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12276. ;;
  12277. esac
  12278. ;;
  12279. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12280. # PIC is the default for these OSes.
  12281. ;;
  12282. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12283. # This hack is so that the source file can tell whether it is being
  12284. # built for inclusion in a dll (and should export symbols for example).
  12285. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12286. # (--disable-auto-import) libraries
  12287. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12288. ;;
  12289. darwin* | rhapsody*)
  12290. # PIC is the default on this platform
  12291. # Common symbols not allowed in MH_DYLIB files
  12292. lt_prog_compiler_pic_CXX='-fno-common'
  12293. ;;
  12294. *djgpp*)
  12295. # DJGPP does not support shared libraries at all
  12296. lt_prog_compiler_pic_CXX=
  12297. ;;
  12298. haiku*)
  12299. # PIC is the default for Haiku.
  12300. # The "-static" flag exists, but is broken.
  12301. lt_prog_compiler_static_CXX=
  12302. ;;
  12303. interix[3-9]*)
  12304. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12305. # Instead, we relocate shared libraries at runtime.
  12306. ;;
  12307. sysv4*MP*)
  12308. if test -d /usr/nec; then
  12309. lt_prog_compiler_pic_CXX=-Kconform_pic
  12310. fi
  12311. ;;
  12312. hpux*)
  12313. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12314. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12315. # sets the default TLS model and affects inlining.
  12316. case $host_cpu in
  12317. hppa*64*)
  12318. ;;
  12319. *)
  12320. lt_prog_compiler_pic_CXX='-fPIC'
  12321. ;;
  12322. esac
  12323. ;;
  12324. *qnx* | *nto*)
  12325. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12326. # it will coredump.
  12327. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12328. ;;
  12329. *)
  12330. lt_prog_compiler_pic_CXX='-fPIC'
  12331. ;;
  12332. esac
  12333. else
  12334. case $host_os in
  12335. aix[4-9]*)
  12336. # All AIX code is PIC.
  12337. if test "$host_cpu" = ia64; then
  12338. # AIX 5 now supports IA64 processor
  12339. lt_prog_compiler_static_CXX='-Bstatic'
  12340. else
  12341. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12342. fi
  12343. ;;
  12344. chorus*)
  12345. case $cc_basename in
  12346. cxch68*)
  12347. # Green Hills C++ Compiler
  12348. # _LT_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"
  12349. ;;
  12350. esac
  12351. ;;
  12352. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12353. # This hack is so that the source file can tell whether it is being
  12354. # built for inclusion in a dll (and should export symbols for example).
  12355. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12356. ;;
  12357. dgux*)
  12358. case $cc_basename in
  12359. ec++*)
  12360. lt_prog_compiler_pic_CXX='-KPIC'
  12361. ;;
  12362. ghcx*)
  12363. # Green Hills C++ Compiler
  12364. lt_prog_compiler_pic_CXX='-pic'
  12365. ;;
  12366. *)
  12367. ;;
  12368. esac
  12369. ;;
  12370. freebsd* | dragonfly*)
  12371. # FreeBSD uses GNU C++
  12372. ;;
  12373. hpux9* | hpux10* | hpux11*)
  12374. case $cc_basename in
  12375. CC*)
  12376. lt_prog_compiler_wl_CXX='-Wl,'
  12377. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12378. if test "$host_cpu" != ia64; then
  12379. lt_prog_compiler_pic_CXX='+Z'
  12380. fi
  12381. ;;
  12382. aCC*)
  12383. lt_prog_compiler_wl_CXX='-Wl,'
  12384. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12385. case $host_cpu in
  12386. hppa*64*|ia64*)
  12387. # +Z the default
  12388. ;;
  12389. *)
  12390. lt_prog_compiler_pic_CXX='+Z'
  12391. ;;
  12392. esac
  12393. ;;
  12394. *)
  12395. ;;
  12396. esac
  12397. ;;
  12398. interix*)
  12399. # This is c89, which is MS Visual C++ (no shared libs)
  12400. # Anyone wants to do a port?
  12401. ;;
  12402. irix5* | irix6* | nonstopux*)
  12403. case $cc_basename in
  12404. CC*)
  12405. lt_prog_compiler_wl_CXX='-Wl,'
  12406. lt_prog_compiler_static_CXX='-non_shared'
  12407. # CC pic flag -KPIC is the default.
  12408. ;;
  12409. *)
  12410. ;;
  12411. esac
  12412. ;;
  12413. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12414. case $cc_basename in
  12415. KCC*)
  12416. # KAI C++ Compiler
  12417. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12418. lt_prog_compiler_pic_CXX='-fPIC'
  12419. ;;
  12420. ecpc* )
  12421. # old Intel C++ for x86_64 which still supported -KPIC.
  12422. lt_prog_compiler_wl_CXX='-Wl,'
  12423. lt_prog_compiler_pic_CXX='-KPIC'
  12424. lt_prog_compiler_static_CXX='-static'
  12425. ;;
  12426. icpc* )
  12427. # Intel C++, used to be incompatible with GCC.
  12428. # ICC 10 doesn't accept -KPIC any more.
  12429. lt_prog_compiler_wl_CXX='-Wl,'
  12430. lt_prog_compiler_pic_CXX='-fPIC'
  12431. lt_prog_compiler_static_CXX='-static'
  12432. ;;
  12433. pgCC* | pgcpp*)
  12434. # Portland Group C++ compiler
  12435. lt_prog_compiler_wl_CXX='-Wl,'
  12436. lt_prog_compiler_pic_CXX='-fpic'
  12437. lt_prog_compiler_static_CXX='-Bstatic'
  12438. ;;
  12439. cxx*)
  12440. # Compaq C++
  12441. # Make sure the PIC flag is empty. It appears that all Alpha
  12442. # Linux and Compaq Tru64 Unix objects are PIC.
  12443. lt_prog_compiler_pic_CXX=
  12444. lt_prog_compiler_static_CXX='-non_shared'
  12445. ;;
  12446. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12447. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12448. lt_prog_compiler_wl_CXX='-Wl,'
  12449. lt_prog_compiler_pic_CXX='-qpic'
  12450. lt_prog_compiler_static_CXX='-qstaticlink'
  12451. ;;
  12452. *)
  12453. case `$CC -V 2>&1 | sed 5q` in
  12454. *Sun\ C*)
  12455. # Sun C++ 5.9
  12456. lt_prog_compiler_pic_CXX='-KPIC'
  12457. lt_prog_compiler_static_CXX='-Bstatic'
  12458. lt_prog_compiler_wl_CXX='-Qoption ld '
  12459. ;;
  12460. esac
  12461. ;;
  12462. esac
  12463. ;;
  12464. lynxos*)
  12465. ;;
  12466. m88k*)
  12467. ;;
  12468. mvs*)
  12469. case $cc_basename in
  12470. cxx*)
  12471. lt_prog_compiler_pic_CXX='-W c,exportall'
  12472. ;;
  12473. *)
  12474. ;;
  12475. esac
  12476. ;;
  12477. netbsd*)
  12478. ;;
  12479. *qnx* | *nto*)
  12480. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12481. # it will coredump.
  12482. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12483. ;;
  12484. osf3* | osf4* | osf5*)
  12485. case $cc_basename in
  12486. KCC*)
  12487. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12488. ;;
  12489. RCC*)
  12490. # Rational C++ 2.4.1
  12491. lt_prog_compiler_pic_CXX='-pic'
  12492. ;;
  12493. cxx*)
  12494. # Digital/Compaq C++
  12495. lt_prog_compiler_wl_CXX='-Wl,'
  12496. # Make sure the PIC flag is empty. It appears that all Alpha
  12497. # Linux and Compaq Tru64 Unix objects are PIC.
  12498. lt_prog_compiler_pic_CXX=
  12499. lt_prog_compiler_static_CXX='-non_shared'
  12500. ;;
  12501. *)
  12502. ;;
  12503. esac
  12504. ;;
  12505. psos*)
  12506. ;;
  12507. solaris*)
  12508. case $cc_basename in
  12509. CC* | sunCC*)
  12510. # Sun C++ 4.2, 5.x and Centerline C++
  12511. lt_prog_compiler_pic_CXX='-KPIC'
  12512. lt_prog_compiler_static_CXX='-Bstatic'
  12513. lt_prog_compiler_wl_CXX='-Qoption ld '
  12514. ;;
  12515. gcx*)
  12516. # Green Hills C++ Compiler
  12517. lt_prog_compiler_pic_CXX='-PIC'
  12518. ;;
  12519. *)
  12520. ;;
  12521. esac
  12522. ;;
  12523. sunos4*)
  12524. case $cc_basename in
  12525. CC*)
  12526. # Sun C++ 4.x
  12527. lt_prog_compiler_pic_CXX='-pic'
  12528. lt_prog_compiler_static_CXX='-Bstatic'
  12529. ;;
  12530. lcc*)
  12531. # Lucid
  12532. lt_prog_compiler_pic_CXX='-pic'
  12533. ;;
  12534. *)
  12535. ;;
  12536. esac
  12537. ;;
  12538. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12539. case $cc_basename in
  12540. CC*)
  12541. lt_prog_compiler_wl_CXX='-Wl,'
  12542. lt_prog_compiler_pic_CXX='-KPIC'
  12543. lt_prog_compiler_static_CXX='-Bstatic'
  12544. ;;
  12545. esac
  12546. ;;
  12547. tandem*)
  12548. case $cc_basename in
  12549. NCC*)
  12550. # NonStop-UX NCC 3.20
  12551. lt_prog_compiler_pic_CXX='-KPIC'
  12552. ;;
  12553. *)
  12554. ;;
  12555. esac
  12556. ;;
  12557. vxworks*)
  12558. ;;
  12559. *)
  12560. lt_prog_compiler_can_build_shared_CXX=no
  12561. ;;
  12562. esac
  12563. fi
  12564. case $host_os in
  12565. # For platforms which do not support PIC, -DPIC is meaningless:
  12566. *djgpp*)
  12567. lt_prog_compiler_pic_CXX=
  12568. ;;
  12569. *)
  12570. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12571. ;;
  12572. esac
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12574. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12575. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12576. $as_echo_n "(cached) " >&6
  12577. else
  12578. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12579. fi
  12580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12581. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12582. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12583. #
  12584. # Check to make sure the PIC flag actually works.
  12585. #
  12586. if test -n "$lt_prog_compiler_pic_CXX"; then
  12587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12588. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12589. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12590. $as_echo_n "(cached) " >&6
  12591. else
  12592. lt_cv_prog_compiler_pic_works_CXX=no
  12593. ac_outfile=conftest.$ac_objext
  12594. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12595. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12596. # Insert the option either (1) after the last *FLAGS variable, or
  12597. # (2) before a word containing "conftest.", or (3) at the end.
  12598. # Note that $ac_compile itself does not contain backslashes and begins
  12599. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12600. # The option is referenced via a variable to avoid confusing sed.
  12601. lt_compile=`echo "$ac_compile" | $SED \
  12602. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12603. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12604. -e 's:$: $lt_compiler_flag:'`
  12605. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12606. (eval "$lt_compile" 2>conftest.err)
  12607. ac_status=$?
  12608. cat conftest.err >&5
  12609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12610. if (exit $ac_status) && test -s "$ac_outfile"; then
  12611. # The compiler can only warn and ignore the option if not recognized
  12612. # So say no if there are warnings other than the usual output.
  12613. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12614. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12615. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12616. lt_cv_prog_compiler_pic_works_CXX=yes
  12617. fi
  12618. fi
  12619. $RM conftest*
  12620. fi
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12622. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12623. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12624. case $lt_prog_compiler_pic_CXX in
  12625. "" | " "*) ;;
  12626. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12627. esac
  12628. else
  12629. lt_prog_compiler_pic_CXX=
  12630. lt_prog_compiler_can_build_shared_CXX=no
  12631. fi
  12632. fi
  12633. #
  12634. # Check to make sure the static flag actually works.
  12635. #
  12636. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12638. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12639. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12640. $as_echo_n "(cached) " >&6
  12641. else
  12642. lt_cv_prog_compiler_static_works_CXX=no
  12643. save_LDFLAGS="$LDFLAGS"
  12644. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12645. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12646. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12647. # The linker can only warn and ignore the option if not recognized
  12648. # So say no if there are warnings
  12649. if test -s conftest.err; then
  12650. # Append any errors to the config.log.
  12651. cat conftest.err 1>&5
  12652. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12653. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12654. if diff conftest.exp conftest.er2 >/dev/null; then
  12655. lt_cv_prog_compiler_static_works_CXX=yes
  12656. fi
  12657. else
  12658. lt_cv_prog_compiler_static_works_CXX=yes
  12659. fi
  12660. fi
  12661. $RM -r conftest*
  12662. LDFLAGS="$save_LDFLAGS"
  12663. fi
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12665. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12666. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12667. :
  12668. else
  12669. lt_prog_compiler_static_CXX=
  12670. fi
  12671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12672. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12673. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12674. $as_echo_n "(cached) " >&6
  12675. else
  12676. lt_cv_prog_compiler_c_o_CXX=no
  12677. $RM -r conftest 2>/dev/null
  12678. mkdir conftest
  12679. cd conftest
  12680. mkdir out
  12681. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12682. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12683. # Insert the option either (1) after the last *FLAGS variable, or
  12684. # (2) before a word containing "conftest.", or (3) at the end.
  12685. # Note that $ac_compile itself does not contain backslashes and begins
  12686. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12687. lt_compile=`echo "$ac_compile" | $SED \
  12688. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12689. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12690. -e 's:$: $lt_compiler_flag:'`
  12691. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12692. (eval "$lt_compile" 2>out/conftest.err)
  12693. ac_status=$?
  12694. cat out/conftest.err >&5
  12695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12696. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12697. then
  12698. # The compiler can only warn and ignore the option if not recognized
  12699. # So say no if there are warnings
  12700. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12701. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12702. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12703. lt_cv_prog_compiler_c_o_CXX=yes
  12704. fi
  12705. fi
  12706. chmod u+w . 2>&5
  12707. $RM conftest*
  12708. # SGI C++ compiler will create directory out/ii_files/ for
  12709. # template instantiation
  12710. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12711. $RM out/* && rmdir out
  12712. cd ..
  12713. $RM -r conftest
  12714. $RM conftest*
  12715. fi
  12716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12717. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12719. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12720. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12721. $as_echo_n "(cached) " >&6
  12722. else
  12723. lt_cv_prog_compiler_c_o_CXX=no
  12724. $RM -r conftest 2>/dev/null
  12725. mkdir conftest
  12726. cd conftest
  12727. mkdir out
  12728. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12729. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12730. # Insert the option either (1) after the last *FLAGS variable, or
  12731. # (2) before a word containing "conftest.", or (3) at the end.
  12732. # Note that $ac_compile itself does not contain backslashes and begins
  12733. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12734. lt_compile=`echo "$ac_compile" | $SED \
  12735. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12736. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12737. -e 's:$: $lt_compiler_flag:'`
  12738. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12739. (eval "$lt_compile" 2>out/conftest.err)
  12740. ac_status=$?
  12741. cat out/conftest.err >&5
  12742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12743. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12744. then
  12745. # The compiler can only warn and ignore the option if not recognized
  12746. # So say no if there are warnings
  12747. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12748. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12749. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12750. lt_cv_prog_compiler_c_o_CXX=yes
  12751. fi
  12752. fi
  12753. chmod u+w . 2>&5
  12754. $RM conftest*
  12755. # SGI C++ compiler will create directory out/ii_files/ for
  12756. # template instantiation
  12757. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12758. $RM out/* && rmdir out
  12759. cd ..
  12760. $RM -r conftest
  12761. $RM conftest*
  12762. fi
  12763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12764. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12765. hard_links="nottested"
  12766. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12767. # do not overwrite the value of need_locks provided by the user
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12769. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12770. hard_links=yes
  12771. $RM conftest*
  12772. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12773. touch conftest.a
  12774. ln conftest.a conftest.b 2>&5 || hard_links=no
  12775. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12777. $as_echo "$hard_links" >&6; }
  12778. if test "$hard_links" = no; then
  12779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12780. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12781. need_locks=warn
  12782. fi
  12783. else
  12784. need_locks=no
  12785. fi
  12786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12787. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12788. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12789. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12790. case $host_os in
  12791. aix[4-9]*)
  12792. # If we're using GNU nm, then we don't want the "-C" option.
  12793. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12794. # Also, AIX nm treats weak defined symbols like other global defined
  12795. # symbols, whereas GNU nm marks them as "W".
  12796. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12797. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12798. else
  12799. 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'
  12800. fi
  12801. ;;
  12802. pw32*)
  12803. export_symbols_cmds_CXX="$ltdll_cmds"
  12804. ;;
  12805. cygwin* | mingw* | cegcc*)
  12806. case $cc_basename in
  12807. cl*)
  12808. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12809. ;;
  12810. *)
  12811. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12812. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12813. ;;
  12814. esac
  12815. ;;
  12816. *)
  12817. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12818. ;;
  12819. esac
  12820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12821. $as_echo "$ld_shlibs_CXX" >&6; }
  12822. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12823. with_gnu_ld_CXX=$with_gnu_ld
  12824. #
  12825. # Do we need to explicitly link libc?
  12826. #
  12827. case "x$archive_cmds_need_lc_CXX" in
  12828. x|xyes)
  12829. # Assume -lc should be added
  12830. archive_cmds_need_lc_CXX=yes
  12831. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12832. case $archive_cmds_CXX in
  12833. *'~'*)
  12834. # FIXME: we may have to deal with multi-command sequences.
  12835. ;;
  12836. '$CC '*)
  12837. # Test whether the compiler implicitly links with -lc since on some
  12838. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12839. # to ld, don't add -lc before -lgcc.
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12841. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12842. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12843. $as_echo_n "(cached) " >&6
  12844. else
  12845. $RM conftest*
  12846. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12847. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12848. (eval $ac_compile) 2>&5
  12849. ac_status=$?
  12850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12851. test $ac_status = 0; } 2>conftest.err; then
  12852. soname=conftest
  12853. lib=conftest
  12854. libobjs=conftest.$ac_objext
  12855. deplibs=
  12856. wl=$lt_prog_compiler_wl_CXX
  12857. pic_flag=$lt_prog_compiler_pic_CXX
  12858. compiler_flags=-v
  12859. linker_flags=-v
  12860. verstring=
  12861. output_objdir=.
  12862. libname=conftest
  12863. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12864. allow_undefined_flag_CXX=
  12865. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12866. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12867. ac_status=$?
  12868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12869. test $ac_status = 0; }
  12870. then
  12871. lt_cv_archive_cmds_need_lc_CXX=no
  12872. else
  12873. lt_cv_archive_cmds_need_lc_CXX=yes
  12874. fi
  12875. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12876. else
  12877. cat conftest.err 1>&5
  12878. fi
  12879. $RM conftest*
  12880. fi
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12882. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12883. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12884. ;;
  12885. esac
  12886. fi
  12887. ;;
  12888. esac
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12890. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12891. library_names_spec=
  12892. libname_spec='lib$name'
  12893. soname_spec=
  12894. shrext_cmds=".so"
  12895. postinstall_cmds=
  12896. postuninstall_cmds=
  12897. finish_cmds=
  12898. finish_eval=
  12899. shlibpath_var=
  12900. shlibpath_overrides_runpath=unknown
  12901. version_type=none
  12902. dynamic_linker="$host_os ld.so"
  12903. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12904. need_lib_prefix=unknown
  12905. hardcode_into_libs=no
  12906. # when you set need_version to no, make sure it does not cause -set_version
  12907. # flags to be left without arguments
  12908. need_version=unknown
  12909. case $host_os in
  12910. aix3*)
  12911. version_type=linux # correct to gnu/linux during the next big refactor
  12912. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12913. shlibpath_var=LIBPATH
  12914. # AIX 3 has no versioning support, so we append a major version to the name.
  12915. soname_spec='${libname}${release}${shared_ext}$major'
  12916. ;;
  12917. aix[4-9]*)
  12918. version_type=linux # correct to gnu/linux during the next big refactor
  12919. need_lib_prefix=no
  12920. need_version=no
  12921. hardcode_into_libs=yes
  12922. if test "$host_cpu" = ia64; then
  12923. # AIX 5 supports IA64
  12924. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12925. shlibpath_var=LD_LIBRARY_PATH
  12926. else
  12927. # With GCC up to 2.95.x, collect2 would create an import file
  12928. # for dependence libraries. The import file would start with
  12929. # the line `#! .'. This would cause the generated library to
  12930. # depend on `.', always an invalid library. This was fixed in
  12931. # development snapshots of GCC prior to 3.0.
  12932. case $host_os in
  12933. aix4 | aix4.[01] | aix4.[01].*)
  12934. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12935. echo ' yes '
  12936. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12937. :
  12938. else
  12939. can_build_shared=no
  12940. fi
  12941. ;;
  12942. esac
  12943. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12944. # soname into executable. Probably we can add versioning support to
  12945. # collect2, so additional links can be useful in future.
  12946. if test "$aix_use_runtimelinking" = yes; then
  12947. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12948. # instead of lib<name>.a to let people know that these are not
  12949. # typical AIX shared libraries.
  12950. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12951. else
  12952. # We preserve .a as extension for shared libraries through AIX4.2
  12953. # and later when we are not doing run time linking.
  12954. library_names_spec='${libname}${release}.a $libname.a'
  12955. soname_spec='${libname}${release}${shared_ext}$major'
  12956. fi
  12957. shlibpath_var=LIBPATH
  12958. fi
  12959. ;;
  12960. amigaos*)
  12961. case $host_cpu in
  12962. powerpc)
  12963. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12964. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12966. ;;
  12967. m68k)
  12968. library_names_spec='$libname.ixlibrary $libname.a'
  12969. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12970. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  12971. ;;
  12972. esac
  12973. ;;
  12974. beos*)
  12975. library_names_spec='${libname}${shared_ext}'
  12976. dynamic_linker="$host_os ld.so"
  12977. shlibpath_var=LIBRARY_PATH
  12978. ;;
  12979. bsdi[45]*)
  12980. version_type=linux # correct to gnu/linux during the next big refactor
  12981. need_version=no
  12982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12983. soname_spec='${libname}${release}${shared_ext}$major'
  12984. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12985. shlibpath_var=LD_LIBRARY_PATH
  12986. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12987. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12988. # the default ld.so.conf also contains /usr/contrib/lib and
  12989. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12990. # libtool to hard-code these into programs
  12991. ;;
  12992. cygwin* | mingw* | pw32* | cegcc*)
  12993. version_type=windows
  12994. shrext_cmds=".dll"
  12995. need_version=no
  12996. need_lib_prefix=no
  12997. case $GCC,$cc_basename in
  12998. yes,*)
  12999. # gcc
  13000. library_names_spec='$libname.dll.a'
  13001. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13002. postinstall_cmds='base_file=`basename \${file}`~
  13003. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13004. dldir=$destdir/`dirname \$dlpath`~
  13005. test -d \$dldir || mkdir -p \$dldir~
  13006. $install_prog $dir/$dlname \$dldir/$dlname~
  13007. chmod a+x \$dldir/$dlname~
  13008. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13009. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13010. fi'
  13011. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13012. dlpath=$dir/\$dldll~
  13013. $RM \$dlpath'
  13014. shlibpath_overrides_runpath=yes
  13015. case $host_os in
  13016. cygwin*)
  13017. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13018. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13019. ;;
  13020. mingw* | cegcc*)
  13021. # MinGW DLLs use traditional 'lib' prefix
  13022. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13023. ;;
  13024. pw32*)
  13025. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13026. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13027. ;;
  13028. esac
  13029. dynamic_linker='Win32 ld.exe'
  13030. ;;
  13031. *,cl*)
  13032. # Native MSVC
  13033. libname_spec='$name'
  13034. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13035. library_names_spec='${libname}.dll.lib'
  13036. case $build_os in
  13037. mingw*)
  13038. sys_lib_search_path_spec=
  13039. lt_save_ifs=$IFS
  13040. IFS=';'
  13041. for lt_path in $LIB
  13042. do
  13043. IFS=$lt_save_ifs
  13044. # Let DOS variable expansion print the short 8.3 style file name.
  13045. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13046. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13047. done
  13048. IFS=$lt_save_ifs
  13049. # Convert to MSYS style.
  13050. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13051. ;;
  13052. cygwin*)
  13053. # Convert to unix form, then to dos form, then back to unix form
  13054. # but this time dos style (no spaces!) so that the unix form looks
  13055. # like /cygdrive/c/PROGRA~1:/cygdr...
  13056. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13057. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13058. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13059. ;;
  13060. *)
  13061. sys_lib_search_path_spec="$LIB"
  13062. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13063. # It is most probably a Windows format PATH.
  13064. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13065. else
  13066. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13067. fi
  13068. # FIXME: find the short name or the path components, as spaces are
  13069. # common. (e.g. "Program Files" -> "PROGRA~1")
  13070. ;;
  13071. esac
  13072. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13073. postinstall_cmds='base_file=`basename \${file}`~
  13074. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13075. dldir=$destdir/`dirname \$dlpath`~
  13076. test -d \$dldir || mkdir -p \$dldir~
  13077. $install_prog $dir/$dlname \$dldir/$dlname'
  13078. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13079. dlpath=$dir/\$dldll~
  13080. $RM \$dlpath'
  13081. shlibpath_overrides_runpath=yes
  13082. dynamic_linker='Win32 link.exe'
  13083. ;;
  13084. *)
  13085. # Assume MSVC wrapper
  13086. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13087. dynamic_linker='Win32 ld.exe'
  13088. ;;
  13089. esac
  13090. # FIXME: first we should search . and the directory the executable is in
  13091. shlibpath_var=PATH
  13092. ;;
  13093. darwin* | rhapsody*)
  13094. dynamic_linker="$host_os dyld"
  13095. version_type=darwin
  13096. need_lib_prefix=no
  13097. need_version=no
  13098. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13099. soname_spec='${libname}${release}${major}$shared_ext'
  13100. shlibpath_overrides_runpath=yes
  13101. shlibpath_var=DYLD_LIBRARY_PATH
  13102. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13103. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13104. ;;
  13105. dgux*)
  13106. version_type=linux # correct to gnu/linux during the next big refactor
  13107. need_lib_prefix=no
  13108. need_version=no
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13110. soname_spec='${libname}${release}${shared_ext}$major'
  13111. shlibpath_var=LD_LIBRARY_PATH
  13112. ;;
  13113. freebsd* | dragonfly*)
  13114. # DragonFly does not have aout. When/if they implement a new
  13115. # versioning mechanism, adjust this.
  13116. if test -x /usr/bin/objformat; then
  13117. objformat=`/usr/bin/objformat`
  13118. else
  13119. case $host_os in
  13120. freebsd[23].*) objformat=aout ;;
  13121. *) objformat=elf ;;
  13122. esac
  13123. fi
  13124. version_type=freebsd-$objformat
  13125. case $version_type in
  13126. freebsd-elf*)
  13127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13128. need_version=no
  13129. need_lib_prefix=no
  13130. ;;
  13131. freebsd-*)
  13132. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13133. need_version=yes
  13134. ;;
  13135. esac
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. case $host_os in
  13138. freebsd2.*)
  13139. shlibpath_overrides_runpath=yes
  13140. ;;
  13141. freebsd3.[01]* | freebsdelf3.[01]*)
  13142. shlibpath_overrides_runpath=yes
  13143. hardcode_into_libs=yes
  13144. ;;
  13145. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13146. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13147. shlibpath_overrides_runpath=no
  13148. hardcode_into_libs=yes
  13149. ;;
  13150. *) # from 4.6 on, and DragonFly
  13151. shlibpath_overrides_runpath=yes
  13152. hardcode_into_libs=yes
  13153. ;;
  13154. esac
  13155. ;;
  13156. gnu*)
  13157. version_type=linux # correct to gnu/linux during the next big refactor
  13158. need_lib_prefix=no
  13159. need_version=no
  13160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13161. soname_spec='${libname}${release}${shared_ext}$major'
  13162. shlibpath_var=LD_LIBRARY_PATH
  13163. shlibpath_overrides_runpath=no
  13164. hardcode_into_libs=yes
  13165. ;;
  13166. haiku*)
  13167. version_type=linux # correct to gnu/linux during the next big refactor
  13168. need_lib_prefix=no
  13169. need_version=no
  13170. dynamic_linker="$host_os runtime_loader"
  13171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13172. soname_spec='${libname}${release}${shared_ext}$major'
  13173. shlibpath_var=LIBRARY_PATH
  13174. shlibpath_overrides_runpath=yes
  13175. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13176. hardcode_into_libs=yes
  13177. ;;
  13178. hpux9* | hpux10* | hpux11*)
  13179. # Give a soname corresponding to the major version so that dld.sl refuses to
  13180. # link against other versions.
  13181. version_type=sunos
  13182. need_lib_prefix=no
  13183. need_version=no
  13184. case $host_cpu in
  13185. ia64*)
  13186. shrext_cmds='.so'
  13187. hardcode_into_libs=yes
  13188. dynamic_linker="$host_os dld.so"
  13189. shlibpath_var=LD_LIBRARY_PATH
  13190. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13192. soname_spec='${libname}${release}${shared_ext}$major'
  13193. if test "X$HPUX_IA64_MODE" = X32; then
  13194. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13195. else
  13196. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13197. fi
  13198. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13199. ;;
  13200. hppa*64*)
  13201. shrext_cmds='.sl'
  13202. hardcode_into_libs=yes
  13203. dynamic_linker="$host_os dld.sl"
  13204. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13205. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13207. soname_spec='${libname}${release}${shared_ext}$major'
  13208. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13209. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13210. ;;
  13211. *)
  13212. shrext_cmds='.sl'
  13213. dynamic_linker="$host_os dld.sl"
  13214. shlibpath_var=SHLIB_PATH
  13215. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13217. soname_spec='${libname}${release}${shared_ext}$major'
  13218. ;;
  13219. esac
  13220. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13221. postinstall_cmds='chmod 555 $lib'
  13222. # or fails outright, so override atomically:
  13223. install_override_mode=555
  13224. ;;
  13225. interix[3-9]*)
  13226. version_type=linux # correct to gnu/linux during the next big refactor
  13227. need_lib_prefix=no
  13228. need_version=no
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13230. soname_spec='${libname}${release}${shared_ext}$major'
  13231. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=no
  13234. hardcode_into_libs=yes
  13235. ;;
  13236. irix5* | irix6* | nonstopux*)
  13237. case $host_os in
  13238. nonstopux*) version_type=nonstopux ;;
  13239. *)
  13240. if test "$lt_cv_prog_gnu_ld" = yes; then
  13241. version_type=linux # correct to gnu/linux during the next big refactor
  13242. else
  13243. version_type=irix
  13244. fi ;;
  13245. esac
  13246. need_lib_prefix=no
  13247. need_version=no
  13248. soname_spec='${libname}${release}${shared_ext}$major'
  13249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13250. case $host_os in
  13251. irix5* | nonstopux*)
  13252. libsuff= shlibsuff=
  13253. ;;
  13254. *)
  13255. case $LD in # libtool.m4 will add one of these switches to LD
  13256. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13257. libsuff= shlibsuff= libmagic=32-bit;;
  13258. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13259. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13260. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13261. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13262. *) libsuff= shlibsuff= libmagic=never-match;;
  13263. esac
  13264. ;;
  13265. esac
  13266. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13267. shlibpath_overrides_runpath=no
  13268. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13269. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13270. hardcode_into_libs=yes
  13271. ;;
  13272. # No shared lib support for Linux oldld, aout, or coff.
  13273. linux*oldld* | linux*aout* | linux*coff*)
  13274. dynamic_linker=no
  13275. ;;
  13276. # This must be glibc/ELF.
  13277. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13278. version_type=linux # correct to gnu/linux during the next big refactor
  13279. need_lib_prefix=no
  13280. need_version=no
  13281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13282. soname_spec='${libname}${release}${shared_ext}$major'
  13283. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13284. shlibpath_var=LD_LIBRARY_PATH
  13285. shlibpath_overrides_runpath=no
  13286. # Some binutils ld are patched to set DT_RUNPATH
  13287. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13288. $as_echo_n "(cached) " >&6
  13289. else
  13290. lt_cv_shlibpath_overrides_runpath=no
  13291. save_LDFLAGS=$LDFLAGS
  13292. save_libdir=$libdir
  13293. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13294. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13296. /* end confdefs.h. */
  13297. int
  13298. main ()
  13299. {
  13300. ;
  13301. return 0;
  13302. }
  13303. _ACEOF
  13304. if ac_fn_cxx_try_link "$LINENO"; then :
  13305. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13306. lt_cv_shlibpath_overrides_runpath=yes
  13307. fi
  13308. fi
  13309. rm -f core conftest.err conftest.$ac_objext \
  13310. conftest$ac_exeext conftest.$ac_ext
  13311. LDFLAGS=$save_LDFLAGS
  13312. libdir=$save_libdir
  13313. fi
  13314. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13315. # This implies no fast_install, which is unacceptable.
  13316. # Some rework will be needed to allow for fast_install
  13317. # before this can be enabled.
  13318. hardcode_into_libs=yes
  13319. # Add ABI-specific directories to the system library path.
  13320. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13321. # Append ld.so.conf contents to the search path
  13322. if test -f /etc/ld.so.conf; then
  13323. 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;s/"//g;/^$/d' | tr '\n' ' '`
  13324. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13325. fi
  13326. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13327. # powerpc, because MkLinux only supported shared libraries with the
  13328. # GNU dynamic linker. Since this was broken with cross compilers,
  13329. # most powerpc-linux boxes support dynamic linking these days and
  13330. # people can always --disable-shared, the test was removed, and we
  13331. # assume the GNU/Linux dynamic linker is in use.
  13332. dynamic_linker='GNU/Linux ld.so'
  13333. ;;
  13334. netbsd*)
  13335. version_type=sunos
  13336. need_lib_prefix=no
  13337. need_version=no
  13338. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13340. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13341. dynamic_linker='NetBSD (a.out) ld.so'
  13342. else
  13343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13344. soname_spec='${libname}${release}${shared_ext}$major'
  13345. dynamic_linker='NetBSD ld.elf_so'
  13346. fi
  13347. shlibpath_var=LD_LIBRARY_PATH
  13348. shlibpath_overrides_runpath=yes
  13349. hardcode_into_libs=yes
  13350. ;;
  13351. newsos6)
  13352. version_type=linux # correct to gnu/linux during the next big refactor
  13353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13354. shlibpath_var=LD_LIBRARY_PATH
  13355. shlibpath_overrides_runpath=yes
  13356. ;;
  13357. *nto* | *qnx*)
  13358. version_type=qnx
  13359. need_lib_prefix=no
  13360. need_version=no
  13361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13362. soname_spec='${libname}${release}${shared_ext}$major'
  13363. shlibpath_var=LD_LIBRARY_PATH
  13364. shlibpath_overrides_runpath=no
  13365. hardcode_into_libs=yes
  13366. dynamic_linker='ldqnx.so'
  13367. ;;
  13368. openbsd*)
  13369. version_type=sunos
  13370. sys_lib_dlsearch_path_spec="/usr/lib"
  13371. need_lib_prefix=no
  13372. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13373. case $host_os in
  13374. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13375. *) need_version=no ;;
  13376. esac
  13377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13378. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13381. case $host_os in
  13382. openbsd2.[89] | openbsd2.[89].*)
  13383. shlibpath_overrides_runpath=no
  13384. ;;
  13385. *)
  13386. shlibpath_overrides_runpath=yes
  13387. ;;
  13388. esac
  13389. else
  13390. shlibpath_overrides_runpath=yes
  13391. fi
  13392. ;;
  13393. os2*)
  13394. libname_spec='$name'
  13395. shrext_cmds=".dll"
  13396. need_lib_prefix=no
  13397. library_names_spec='$libname${shared_ext} $libname.a'
  13398. dynamic_linker='OS/2 ld.exe'
  13399. shlibpath_var=LIBPATH
  13400. ;;
  13401. osf3* | osf4* | osf5*)
  13402. version_type=osf
  13403. need_lib_prefix=no
  13404. need_version=no
  13405. soname_spec='${libname}${release}${shared_ext}$major'
  13406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13407. shlibpath_var=LD_LIBRARY_PATH
  13408. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13409. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13410. ;;
  13411. rdos*)
  13412. dynamic_linker=no
  13413. ;;
  13414. solaris*)
  13415. version_type=linux # correct to gnu/linux during the next big refactor
  13416. need_lib_prefix=no
  13417. need_version=no
  13418. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13419. soname_spec='${libname}${release}${shared_ext}$major'
  13420. shlibpath_var=LD_LIBRARY_PATH
  13421. shlibpath_overrides_runpath=yes
  13422. hardcode_into_libs=yes
  13423. # ldd complains unless libraries are executable
  13424. postinstall_cmds='chmod +x $lib'
  13425. ;;
  13426. sunos4*)
  13427. version_type=sunos
  13428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13429. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13430. shlibpath_var=LD_LIBRARY_PATH
  13431. shlibpath_overrides_runpath=yes
  13432. if test "$with_gnu_ld" = yes; then
  13433. need_lib_prefix=no
  13434. fi
  13435. need_version=yes
  13436. ;;
  13437. sysv4 | sysv4.3*)
  13438. version_type=linux # correct to gnu/linux during the next big refactor
  13439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13440. soname_spec='${libname}${release}${shared_ext}$major'
  13441. shlibpath_var=LD_LIBRARY_PATH
  13442. case $host_vendor in
  13443. sni)
  13444. shlibpath_overrides_runpath=no
  13445. need_lib_prefix=no
  13446. runpath_var=LD_RUN_PATH
  13447. ;;
  13448. siemens)
  13449. need_lib_prefix=no
  13450. ;;
  13451. motorola)
  13452. need_lib_prefix=no
  13453. need_version=no
  13454. shlibpath_overrides_runpath=no
  13455. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13456. ;;
  13457. esac
  13458. ;;
  13459. sysv4*MP*)
  13460. if test -d /usr/nec ;then
  13461. version_type=linux # correct to gnu/linux during the next big refactor
  13462. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13463. soname_spec='$libname${shared_ext}.$major'
  13464. shlibpath_var=LD_LIBRARY_PATH
  13465. fi
  13466. ;;
  13467. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13468. version_type=freebsd-elf
  13469. need_lib_prefix=no
  13470. need_version=no
  13471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13472. soname_spec='${libname}${release}${shared_ext}$major'
  13473. shlibpath_var=LD_LIBRARY_PATH
  13474. shlibpath_overrides_runpath=yes
  13475. hardcode_into_libs=yes
  13476. if test "$with_gnu_ld" = yes; then
  13477. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13478. else
  13479. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13480. case $host_os in
  13481. sco3.2v5*)
  13482. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13483. ;;
  13484. esac
  13485. fi
  13486. sys_lib_dlsearch_path_spec='/usr/lib'
  13487. ;;
  13488. tpf*)
  13489. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13490. version_type=linux # correct to gnu/linux during the next big refactor
  13491. need_lib_prefix=no
  13492. need_version=no
  13493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13494. shlibpath_var=LD_LIBRARY_PATH
  13495. shlibpath_overrides_runpath=no
  13496. hardcode_into_libs=yes
  13497. ;;
  13498. uts4*)
  13499. version_type=linux # correct to gnu/linux during the next big refactor
  13500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13501. soname_spec='${libname}${release}${shared_ext}$major'
  13502. shlibpath_var=LD_LIBRARY_PATH
  13503. ;;
  13504. *)
  13505. dynamic_linker=no
  13506. ;;
  13507. esac
  13508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13509. $as_echo "$dynamic_linker" >&6; }
  13510. test "$dynamic_linker" = no && can_build_shared=no
  13511. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13512. if test "$GCC" = yes; then
  13513. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13514. fi
  13515. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13516. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13517. fi
  13518. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13519. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13520. fi
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13522. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13523. hardcode_action_CXX=
  13524. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13525. test -n "$runpath_var_CXX" ||
  13526. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13527. # We can hardcode non-existent directories.
  13528. if test "$hardcode_direct_CXX" != no &&
  13529. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13530. # have to relink, otherwise we might link with an installed library
  13531. # when we should be linking with a yet-to-be-installed one
  13532. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13533. test "$hardcode_minus_L_CXX" != no; then
  13534. # Linking always hardcodes the temporary library directory.
  13535. hardcode_action_CXX=relink
  13536. else
  13537. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13538. hardcode_action_CXX=immediate
  13539. fi
  13540. else
  13541. # We cannot hardcode anything, or else we can only hardcode existing
  13542. # directories.
  13543. hardcode_action_CXX=unsupported
  13544. fi
  13545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13546. $as_echo "$hardcode_action_CXX" >&6; }
  13547. if test "$hardcode_action_CXX" = relink ||
  13548. test "$inherit_rpath_CXX" = yes; then
  13549. # Fast installation is not supported
  13550. enable_fast_install=no
  13551. elif test "$shlibpath_overrides_runpath" = yes ||
  13552. test "$enable_shared" = no; then
  13553. # Fast installation is not necessary
  13554. enable_fast_install=needless
  13555. fi
  13556. fi # test -n "$compiler"
  13557. CC=$lt_save_CC
  13558. CFLAGS=$lt_save_CFLAGS
  13559. LDCXX=$LD
  13560. LD=$lt_save_LD
  13561. GCC=$lt_save_GCC
  13562. with_gnu_ld=$lt_save_with_gnu_ld
  13563. lt_cv_path_LDCXX=$lt_cv_path_LD
  13564. lt_cv_path_LD=$lt_save_path_LD
  13565. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13566. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13567. fi # test "$_lt_caught_CXX_error" != yes
  13568. ac_ext=c
  13569. ac_cpp='$CPP $CPPFLAGS'
  13570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13573. ac_config_commands="$ac_config_commands libtool"
  13574. # Only expand once:
  13575. # Checks for header files.
  13576. ac_header_dirent=no
  13577. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13578. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13580. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13581. if eval \${$as_ac_Header+:} false; then :
  13582. $as_echo_n "(cached) " >&6
  13583. else
  13584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13585. /* end confdefs.h. */
  13586. #include <sys/types.h>
  13587. #include <$ac_hdr>
  13588. int
  13589. main ()
  13590. {
  13591. if ((DIR *) 0)
  13592. return 0;
  13593. ;
  13594. return 0;
  13595. }
  13596. _ACEOF
  13597. if ac_fn_c_try_compile "$LINENO"; then :
  13598. eval "$as_ac_Header=yes"
  13599. else
  13600. eval "$as_ac_Header=no"
  13601. fi
  13602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13603. fi
  13604. eval ac_res=\$$as_ac_Header
  13605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13606. $as_echo "$ac_res" >&6; }
  13607. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13608. cat >>confdefs.h <<_ACEOF
  13609. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13610. _ACEOF
  13611. ac_header_dirent=$ac_hdr; break
  13612. fi
  13613. done
  13614. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13615. if test $ac_header_dirent = dirent.h; then
  13616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13617. $as_echo_n "checking for library containing opendir... " >&6; }
  13618. if ${ac_cv_search_opendir+:} false; then :
  13619. $as_echo_n "(cached) " >&6
  13620. else
  13621. ac_func_search_save_LIBS=$LIBS
  13622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13623. /* end confdefs.h. */
  13624. /* Override any GCC internal prototype to avoid an error.
  13625. Use char because int might match the return type of a GCC
  13626. builtin and then its argument prototype would still apply. */
  13627. #ifdef __cplusplus
  13628. extern "C"
  13629. #endif
  13630. char opendir ();
  13631. int
  13632. main ()
  13633. {
  13634. return opendir ();
  13635. ;
  13636. return 0;
  13637. }
  13638. _ACEOF
  13639. for ac_lib in '' dir; do
  13640. if test -z "$ac_lib"; then
  13641. ac_res="none required"
  13642. else
  13643. ac_res=-l$ac_lib
  13644. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13645. fi
  13646. if ac_fn_c_try_link "$LINENO"; then :
  13647. ac_cv_search_opendir=$ac_res
  13648. fi
  13649. rm -f core conftest.err conftest.$ac_objext \
  13650. conftest$ac_exeext
  13651. if ${ac_cv_search_opendir+:} false; then :
  13652. break
  13653. fi
  13654. done
  13655. if ${ac_cv_search_opendir+:} false; then :
  13656. else
  13657. ac_cv_search_opendir=no
  13658. fi
  13659. rm conftest.$ac_ext
  13660. LIBS=$ac_func_search_save_LIBS
  13661. fi
  13662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13663. $as_echo "$ac_cv_search_opendir" >&6; }
  13664. ac_res=$ac_cv_search_opendir
  13665. if test "$ac_res" != no; then :
  13666. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13667. fi
  13668. else
  13669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13670. $as_echo_n "checking for library containing opendir... " >&6; }
  13671. if ${ac_cv_search_opendir+:} false; then :
  13672. $as_echo_n "(cached) " >&6
  13673. else
  13674. ac_func_search_save_LIBS=$LIBS
  13675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13676. /* end confdefs.h. */
  13677. /* Override any GCC internal prototype to avoid an error.
  13678. Use char because int might match the return type of a GCC
  13679. builtin and then its argument prototype would still apply. */
  13680. #ifdef __cplusplus
  13681. extern "C"
  13682. #endif
  13683. char opendir ();
  13684. int
  13685. main ()
  13686. {
  13687. return opendir ();
  13688. ;
  13689. return 0;
  13690. }
  13691. _ACEOF
  13692. for ac_lib in '' x; do
  13693. if test -z "$ac_lib"; then
  13694. ac_res="none required"
  13695. else
  13696. ac_res=-l$ac_lib
  13697. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13698. fi
  13699. if ac_fn_c_try_link "$LINENO"; then :
  13700. ac_cv_search_opendir=$ac_res
  13701. fi
  13702. rm -f core conftest.err conftest.$ac_objext \
  13703. conftest$ac_exeext
  13704. if ${ac_cv_search_opendir+:} false; then :
  13705. break
  13706. fi
  13707. done
  13708. if ${ac_cv_search_opendir+:} false; then :
  13709. else
  13710. ac_cv_search_opendir=no
  13711. fi
  13712. rm conftest.$ac_ext
  13713. LIBS=$ac_func_search_save_LIBS
  13714. fi
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13716. $as_echo "$ac_cv_search_opendir" >&6; }
  13717. ac_res=$ac_cv_search_opendir
  13718. if test "$ac_res" != no; then :
  13719. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13720. fi
  13721. fi
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13723. $as_echo_n "checking for ANSI C header files... " >&6; }
  13724. if ${ac_cv_header_stdc+:} false; then :
  13725. $as_echo_n "(cached) " >&6
  13726. else
  13727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13728. /* end confdefs.h. */
  13729. #include <stdlib.h>
  13730. #include <stdarg.h>
  13731. #include <string.h>
  13732. #include <float.h>
  13733. int
  13734. main ()
  13735. {
  13736. ;
  13737. return 0;
  13738. }
  13739. _ACEOF
  13740. if ac_fn_c_try_compile "$LINENO"; then :
  13741. ac_cv_header_stdc=yes
  13742. else
  13743. ac_cv_header_stdc=no
  13744. fi
  13745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13746. if test $ac_cv_header_stdc = yes; then
  13747. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13749. /* end confdefs.h. */
  13750. #include <string.h>
  13751. _ACEOF
  13752. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13753. $EGREP "memchr" >/dev/null 2>&1; then :
  13754. else
  13755. ac_cv_header_stdc=no
  13756. fi
  13757. rm -f conftest*
  13758. fi
  13759. if test $ac_cv_header_stdc = yes; then
  13760. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13762. /* end confdefs.h. */
  13763. #include <stdlib.h>
  13764. _ACEOF
  13765. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13766. $EGREP "free" >/dev/null 2>&1; then :
  13767. else
  13768. ac_cv_header_stdc=no
  13769. fi
  13770. rm -f conftest*
  13771. fi
  13772. if test $ac_cv_header_stdc = yes; then
  13773. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13774. if test "$cross_compiling" = yes; then :
  13775. :
  13776. else
  13777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13778. /* end confdefs.h. */
  13779. #include <ctype.h>
  13780. #include <stdlib.h>
  13781. #if ((' ' & 0x0FF) == 0x020)
  13782. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13783. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13784. #else
  13785. # define ISLOWER(c) \
  13786. (('a' <= (c) && (c) <= 'i') \
  13787. || ('j' <= (c) && (c) <= 'r') \
  13788. || ('s' <= (c) && (c) <= 'z'))
  13789. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13790. #endif
  13791. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13792. int
  13793. main ()
  13794. {
  13795. int i;
  13796. for (i = 0; i < 256; i++)
  13797. if (XOR (islower (i), ISLOWER (i))
  13798. || toupper (i) != TOUPPER (i))
  13799. return 2;
  13800. return 0;
  13801. }
  13802. _ACEOF
  13803. if ac_fn_c_try_run "$LINENO"; then :
  13804. else
  13805. ac_cv_header_stdc=no
  13806. fi
  13807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13808. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13809. fi
  13810. fi
  13811. fi
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13813. $as_echo "$ac_cv_header_stdc" >&6; }
  13814. if test $ac_cv_header_stdc = yes; then
  13815. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13816. fi
  13817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13818. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13819. if ${ac_cv_header_sys_wait_h+:} false; then :
  13820. $as_echo_n "(cached) " >&6
  13821. else
  13822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13823. /* end confdefs.h. */
  13824. #include <sys/types.h>
  13825. #include <sys/wait.h>
  13826. #ifndef WEXITSTATUS
  13827. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13828. #endif
  13829. #ifndef WIFEXITED
  13830. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13831. #endif
  13832. int
  13833. main ()
  13834. {
  13835. int s;
  13836. wait (&s);
  13837. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13838. ;
  13839. return 0;
  13840. }
  13841. _ACEOF
  13842. if ac_fn_c_try_compile "$LINENO"; then :
  13843. ac_cv_header_sys_wait_h=yes
  13844. else
  13845. ac_cv_header_sys_wait_h=no
  13846. fi
  13847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13848. fi
  13849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13850. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13851. if test $ac_cv_header_sys_wait_h = yes; then
  13852. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13853. fi
  13854. 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 mntent.h
  13855. do :
  13856. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13857. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13858. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13859. cat >>confdefs.h <<_ACEOF
  13860. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13861. _ACEOF
  13862. fi
  13863. done
  13864. # Checks for typedefs, structures, and compiler characteristics.
  13865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13866. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13867. if ${ac_cv_header_stat_broken+:} false; then :
  13868. $as_echo_n "(cached) " >&6
  13869. else
  13870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13871. /* end confdefs.h. */
  13872. #include <sys/types.h>
  13873. #include <sys/stat.h>
  13874. #if defined S_ISBLK && defined S_IFDIR
  13875. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13876. #endif
  13877. #if defined S_ISBLK && defined S_IFCHR
  13878. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13879. #endif
  13880. #if defined S_ISLNK && defined S_IFREG
  13881. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13882. #endif
  13883. #if defined S_ISSOCK && defined S_IFREG
  13884. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13885. #endif
  13886. _ACEOF
  13887. if ac_fn_c_try_compile "$LINENO"; then :
  13888. ac_cv_header_stat_broken=no
  13889. else
  13890. ac_cv_header_stat_broken=yes
  13891. fi
  13892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13893. fi
  13894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13895. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13896. if test $ac_cv_header_stat_broken = yes; then
  13897. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13898. fi
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13900. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13901. if ${ac_cv_c_const+:} false; then :
  13902. $as_echo_n "(cached) " >&6
  13903. else
  13904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13905. /* end confdefs.h. */
  13906. int
  13907. main ()
  13908. {
  13909. #ifndef __cplusplus
  13910. /* Ultrix mips cc rejects this sort of thing. */
  13911. typedef int charset[2];
  13912. const charset cs = { 0, 0 };
  13913. /* SunOS 4.1.1 cc rejects this. */
  13914. char const *const *pcpcc;
  13915. char **ppc;
  13916. /* NEC SVR4.0.2 mips cc rejects this. */
  13917. struct point {int x, y;};
  13918. static struct point const zero = {0,0};
  13919. /* AIX XL C 1.02.0.0 rejects this.
  13920. It does not let you subtract one const X* pointer from another in
  13921. an arm of an if-expression whose if-part is not a constant
  13922. expression */
  13923. const char *g = "string";
  13924. pcpcc = &g + (g ? g-g : 0);
  13925. /* HPUX 7.0 cc rejects these. */
  13926. ++pcpcc;
  13927. ppc = (char**) pcpcc;
  13928. pcpcc = (char const *const *) ppc;
  13929. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13930. char tx;
  13931. char *t = &tx;
  13932. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13933. *t++ = 0;
  13934. if (s) return 0;
  13935. }
  13936. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13937. int x[] = {25, 17};
  13938. const int *foo = &x[0];
  13939. ++foo;
  13940. }
  13941. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13942. typedef const int *iptr;
  13943. iptr p = 0;
  13944. ++p;
  13945. }
  13946. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13947. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13948. struct s { int j; const int *ap[3]; } bx;
  13949. struct s *b = &bx; b->j = 5;
  13950. }
  13951. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13952. const int foo = 10;
  13953. if (!foo) return 0;
  13954. }
  13955. return !cs[0] && !zero.x;
  13956. #endif
  13957. ;
  13958. return 0;
  13959. }
  13960. _ACEOF
  13961. if ac_fn_c_try_compile "$LINENO"; then :
  13962. ac_cv_c_const=yes
  13963. else
  13964. ac_cv_c_const=no
  13965. fi
  13966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13967. fi
  13968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13969. $as_echo "$ac_cv_c_const" >&6; }
  13970. if test $ac_cv_c_const = no; then
  13971. $as_echo "#define const /**/" >>confdefs.h
  13972. fi
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  13974. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  13975. if ${ac_cv_header_stdbool_h+:} false; then :
  13976. $as_echo_n "(cached) " >&6
  13977. else
  13978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13979. /* end confdefs.h. */
  13980. #include <stdbool.h>
  13981. #ifndef bool
  13982. "error: bool is not defined"
  13983. #endif
  13984. #ifndef false
  13985. "error: false is not defined"
  13986. #endif
  13987. #if false
  13988. "error: false is not 0"
  13989. #endif
  13990. #ifndef true
  13991. "error: true is not defined"
  13992. #endif
  13993. #if true != 1
  13994. "error: true is not 1"
  13995. #endif
  13996. #ifndef __bool_true_false_are_defined
  13997. "error: __bool_true_false_are_defined is not defined"
  13998. #endif
  13999. struct s { _Bool s: 1; _Bool t; } s;
  14000. char a[true == 1 ? 1 : -1];
  14001. char b[false == 0 ? 1 : -1];
  14002. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14003. char d[(bool) 0.5 == true ? 1 : -1];
  14004. /* See body of main program for 'e'. */
  14005. char f[(_Bool) 0.0 == false ? 1 : -1];
  14006. char g[true];
  14007. char h[sizeof (_Bool)];
  14008. char i[sizeof s.t];
  14009. enum { j = false, k = true, l = false * true, m = true * 256 };
  14010. /* The following fails for
  14011. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14012. _Bool n[m];
  14013. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14014. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14015. /* Catch a bug in an HP-UX C compiler. See
  14016. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14017. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14018. */
  14019. _Bool q = true;
  14020. _Bool *pq = &q;
  14021. int
  14022. main ()
  14023. {
  14024. bool e = &s;
  14025. *pq |= q;
  14026. *pq |= ! q;
  14027. /* Refer to every declared value, to avoid compiler optimizations. */
  14028. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14029. + !m + !n + !o + !p + !q + !pq);
  14030. ;
  14031. return 0;
  14032. }
  14033. _ACEOF
  14034. if ac_fn_c_try_compile "$LINENO"; then :
  14035. ac_cv_header_stdbool_h=yes
  14036. else
  14037. ac_cv_header_stdbool_h=no
  14038. fi
  14039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14040. fi
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14042. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14043. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14044. if test "x$ac_cv_type__Bool" = xyes; then :
  14045. cat >>confdefs.h <<_ACEOF
  14046. #define HAVE__BOOL 1
  14047. _ACEOF
  14048. fi
  14049. if test $ac_cv_header_stdbool_h = yes; then
  14050. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14051. fi
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14053. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14054. if ${ac_cv_type_uid_t+:} false; then :
  14055. $as_echo_n "(cached) " >&6
  14056. else
  14057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14058. /* end confdefs.h. */
  14059. #include <sys/types.h>
  14060. _ACEOF
  14061. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14062. $EGREP "uid_t" >/dev/null 2>&1; then :
  14063. ac_cv_type_uid_t=yes
  14064. else
  14065. ac_cv_type_uid_t=no
  14066. fi
  14067. rm -f conftest*
  14068. fi
  14069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14070. $as_echo "$ac_cv_type_uid_t" >&6; }
  14071. if test $ac_cv_type_uid_t = no; then
  14072. $as_echo "#define uid_t int" >>confdefs.h
  14073. $as_echo "#define gid_t int" >>confdefs.h
  14074. fi
  14075. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14076. if test "x$ac_cv_type_pid_t" = xyes; then :
  14077. else
  14078. cat >>confdefs.h <<_ACEOF
  14079. #define pid_t int
  14080. _ACEOF
  14081. fi
  14082. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14083. if test "x$ac_cv_type_size_t" = xyes; then :
  14084. else
  14085. cat >>confdefs.h <<_ACEOF
  14086. #define size_t unsigned int
  14087. _ACEOF
  14088. fi
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14090. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14091. if ${ac_cv_header_time+:} false; then :
  14092. $as_echo_n "(cached) " >&6
  14093. else
  14094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14095. /* end confdefs.h. */
  14096. #include <sys/types.h>
  14097. #include <sys/time.h>
  14098. #include <time.h>
  14099. int
  14100. main ()
  14101. {
  14102. if ((struct tm *) 0)
  14103. return 0;
  14104. ;
  14105. return 0;
  14106. }
  14107. _ACEOF
  14108. if ac_fn_c_try_compile "$LINENO"; then :
  14109. ac_cv_header_time=yes
  14110. else
  14111. ac_cv_header_time=no
  14112. fi
  14113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14114. fi
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14116. $as_echo "$ac_cv_header_time" >&6; }
  14117. if test $ac_cv_header_time = yes; then
  14118. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14119. fi
  14120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14121. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14122. if ${ac_cv_struct_tm+:} false; then :
  14123. $as_echo_n "(cached) " >&6
  14124. else
  14125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14126. /* end confdefs.h. */
  14127. #include <sys/types.h>
  14128. #include <time.h>
  14129. int
  14130. main ()
  14131. {
  14132. struct tm tm;
  14133. int *p = &tm.tm_sec;
  14134. return !p;
  14135. ;
  14136. return 0;
  14137. }
  14138. _ACEOF
  14139. if ac_fn_c_try_compile "$LINENO"; then :
  14140. ac_cv_struct_tm=time.h
  14141. else
  14142. ac_cv_struct_tm=sys/time.h
  14143. fi
  14144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14145. fi
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14147. $as_echo "$ac_cv_struct_tm" >&6; }
  14148. if test $ac_cv_struct_tm = sys/time.h; then
  14149. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14150. fi
  14151. # Checks for library functions.
  14152. for ac_header in unistd.h
  14153. do :
  14154. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14155. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14156. cat >>confdefs.h <<_ACEOF
  14157. #define HAVE_UNISTD_H 1
  14158. _ACEOF
  14159. fi
  14160. done
  14161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14162. $as_echo_n "checking for working chown... " >&6; }
  14163. if ${ac_cv_func_chown_works+:} false; then :
  14164. $as_echo_n "(cached) " >&6
  14165. else
  14166. if test "$cross_compiling" = yes; then :
  14167. ac_cv_func_chown_works=no
  14168. else
  14169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14170. /* end confdefs.h. */
  14171. $ac_includes_default
  14172. #include <fcntl.h>
  14173. int
  14174. main ()
  14175. {
  14176. char *f = "conftest.chown";
  14177. struct stat before, after;
  14178. if (creat (f, 0600) < 0)
  14179. return 1;
  14180. if (stat (f, &before) < 0)
  14181. return 1;
  14182. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14183. return 1;
  14184. if (stat (f, &after) < 0)
  14185. return 1;
  14186. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14187. ;
  14188. return 0;
  14189. }
  14190. _ACEOF
  14191. if ac_fn_c_try_run "$LINENO"; then :
  14192. ac_cv_func_chown_works=yes
  14193. else
  14194. ac_cv_func_chown_works=no
  14195. fi
  14196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14197. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14198. fi
  14199. rm -f conftest.chown
  14200. fi
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14202. $as_echo "$ac_cv_func_chown_works" >&6; }
  14203. if test $ac_cv_func_chown_works = yes; then
  14204. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14205. fi
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14207. $as_echo_n "checking whether closedir returns void... " >&6; }
  14208. if ${ac_cv_func_closedir_void+:} false; then :
  14209. $as_echo_n "(cached) " >&6
  14210. else
  14211. if test "$cross_compiling" = yes; then :
  14212. ac_cv_func_closedir_void=yes
  14213. else
  14214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14215. /* end confdefs.h. */
  14216. $ac_includes_default
  14217. #include <$ac_header_dirent>
  14218. #ifndef __cplusplus
  14219. int closedir ();
  14220. #endif
  14221. int
  14222. main ()
  14223. {
  14224. return closedir (opendir (".")) != 0;
  14225. ;
  14226. return 0;
  14227. }
  14228. _ACEOF
  14229. if ac_fn_c_try_run "$LINENO"; then :
  14230. ac_cv_func_closedir_void=no
  14231. else
  14232. ac_cv_func_closedir_void=yes
  14233. fi
  14234. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14235. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14236. fi
  14237. fi
  14238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14239. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14240. if test $ac_cv_func_closedir_void = yes; then
  14241. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14242. fi
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14244. $as_echo_n "checking for error_at_line... " >&6; }
  14245. if ${ac_cv_lib_error_at_line+:} false; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14249. /* end confdefs.h. */
  14250. #include <error.h>
  14251. int
  14252. main ()
  14253. {
  14254. error_at_line (0, 0, "", 0, "an error occurred");
  14255. ;
  14256. return 0;
  14257. }
  14258. _ACEOF
  14259. if ac_fn_c_try_link "$LINENO"; then :
  14260. ac_cv_lib_error_at_line=yes
  14261. else
  14262. ac_cv_lib_error_at_line=no
  14263. fi
  14264. rm -f core conftest.err conftest.$ac_objext \
  14265. conftest$ac_exeext conftest.$ac_ext
  14266. fi
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14268. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14269. if test $ac_cv_lib_error_at_line = no; then
  14270. case " $LIBOBJS " in
  14271. *" error.$ac_objext "* ) ;;
  14272. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14273. ;;
  14274. esac
  14275. fi
  14276. for ac_header in vfork.h
  14277. do :
  14278. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14279. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14280. cat >>confdefs.h <<_ACEOF
  14281. #define HAVE_VFORK_H 1
  14282. _ACEOF
  14283. fi
  14284. done
  14285. for ac_func in fork vfork
  14286. do :
  14287. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14288. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14289. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14290. cat >>confdefs.h <<_ACEOF
  14291. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14292. _ACEOF
  14293. fi
  14294. done
  14295. if test "x$ac_cv_func_fork" = xyes; then
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14297. $as_echo_n "checking for working fork... " >&6; }
  14298. if ${ac_cv_func_fork_works+:} false; then :
  14299. $as_echo_n "(cached) " >&6
  14300. else
  14301. if test "$cross_compiling" = yes; then :
  14302. ac_cv_func_fork_works=cross
  14303. else
  14304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14305. /* end confdefs.h. */
  14306. $ac_includes_default
  14307. int
  14308. main ()
  14309. {
  14310. /* By Ruediger Kuhlmann. */
  14311. return fork () < 0;
  14312. ;
  14313. return 0;
  14314. }
  14315. _ACEOF
  14316. if ac_fn_c_try_run "$LINENO"; then :
  14317. ac_cv_func_fork_works=yes
  14318. else
  14319. ac_cv_func_fork_works=no
  14320. fi
  14321. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14322. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14323. fi
  14324. fi
  14325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14326. $as_echo "$ac_cv_func_fork_works" >&6; }
  14327. else
  14328. ac_cv_func_fork_works=$ac_cv_func_fork
  14329. fi
  14330. if test "x$ac_cv_func_fork_works" = xcross; then
  14331. case $host in
  14332. *-*-amigaos* | *-*-msdosdjgpp*)
  14333. # Override, as these systems have only a dummy fork() stub
  14334. ac_cv_func_fork_works=no
  14335. ;;
  14336. *)
  14337. ac_cv_func_fork_works=yes
  14338. ;;
  14339. esac
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14341. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14342. fi
  14343. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14344. if test "x$ac_cv_func_vfork" = xyes; then
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14346. $as_echo_n "checking for working vfork... " >&6; }
  14347. if ${ac_cv_func_vfork_works+:} false; then :
  14348. $as_echo_n "(cached) " >&6
  14349. else
  14350. if test "$cross_compiling" = yes; then :
  14351. ac_cv_func_vfork_works=cross
  14352. else
  14353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14354. /* end confdefs.h. */
  14355. /* Thanks to Paul Eggert for this test. */
  14356. $ac_includes_default
  14357. #include <sys/wait.h>
  14358. #ifdef HAVE_VFORK_H
  14359. # include <vfork.h>
  14360. #endif
  14361. /* On some sparc systems, changes by the child to local and incoming
  14362. argument registers are propagated back to the parent. The compiler
  14363. is told about this with #include <vfork.h>, but some compilers
  14364. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14365. static variable whose address is put into a register that is
  14366. clobbered by the vfork. */
  14367. static void
  14368. #ifdef __cplusplus
  14369. sparc_address_test (int arg)
  14370. # else
  14371. sparc_address_test (arg) int arg;
  14372. #endif
  14373. {
  14374. static pid_t child;
  14375. if (!child) {
  14376. child = vfork ();
  14377. if (child < 0) {
  14378. perror ("vfork");
  14379. _exit(2);
  14380. }
  14381. if (!child) {
  14382. arg = getpid();
  14383. write(-1, "", 0);
  14384. _exit (arg);
  14385. }
  14386. }
  14387. }
  14388. int
  14389. main ()
  14390. {
  14391. pid_t parent = getpid ();
  14392. pid_t child;
  14393. sparc_address_test (0);
  14394. child = vfork ();
  14395. if (child == 0) {
  14396. /* Here is another test for sparc vfork register problems. This
  14397. test uses lots of local variables, at least as many local
  14398. variables as main has allocated so far including compiler
  14399. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14400. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14401. reuse the register of parent for one of the local variables,
  14402. since it will think that parent can't possibly be used any more
  14403. in this routine. Assigning to the local variable will thus
  14404. munge parent in the parent process. */
  14405. pid_t
  14406. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14407. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14408. /* Convince the compiler that p..p7 are live; otherwise, it might
  14409. use the same hardware register for all 8 local variables. */
  14410. if (p != p1 || p != p2 || p != p3 || p != p4
  14411. || p != p5 || p != p6 || p != p7)
  14412. _exit(1);
  14413. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14414. from child file descriptors. If the child closes a descriptor
  14415. before it execs or exits, this munges the parent's descriptor
  14416. as well. Test for this by closing stdout in the child. */
  14417. _exit(close(fileno(stdout)) != 0);
  14418. } else {
  14419. int status;
  14420. struct stat st;
  14421. while (wait(&status) != child)
  14422. ;
  14423. return (
  14424. /* Was there some problem with vforking? */
  14425. child < 0
  14426. /* Did the child fail? (This shouldn't happen.) */
  14427. || status
  14428. /* Did the vfork/compiler bug occur? */
  14429. || parent != getpid()
  14430. /* Did the file descriptor bug occur? */
  14431. || fstat(fileno(stdout), &st) != 0
  14432. );
  14433. }
  14434. }
  14435. _ACEOF
  14436. if ac_fn_c_try_run "$LINENO"; then :
  14437. ac_cv_func_vfork_works=yes
  14438. else
  14439. ac_cv_func_vfork_works=no
  14440. fi
  14441. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14442. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14443. fi
  14444. fi
  14445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14446. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14447. fi;
  14448. if test "x$ac_cv_func_fork_works" = xcross; then
  14449. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14451. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14452. fi
  14453. if test "x$ac_cv_func_vfork_works" = xyes; then
  14454. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14455. else
  14456. $as_echo "#define vfork fork" >>confdefs.h
  14457. fi
  14458. if test "x$ac_cv_func_fork_works" = xyes; then
  14459. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14460. fi
  14461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14462. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14463. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14464. $as_echo_n "(cached) " >&6
  14465. else
  14466. rm -f conftest.sym conftest.file
  14467. echo >conftest.file
  14468. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14469. if test "$cross_compiling" = yes; then :
  14470. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14471. else
  14472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14473. /* end confdefs.h. */
  14474. $ac_includes_default
  14475. int
  14476. main ()
  14477. {
  14478. struct stat sbuf;
  14479. /* Linux will dereference the symlink and fail, as required by POSIX.
  14480. That is better in the sense that it means we will not
  14481. have to compile and use the lstat wrapper. */
  14482. return lstat ("conftest.sym/", &sbuf) == 0;
  14483. ;
  14484. return 0;
  14485. }
  14486. _ACEOF
  14487. if ac_fn_c_try_run "$LINENO"; then :
  14488. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14489. else
  14490. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14491. fi
  14492. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14493. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14494. fi
  14495. else
  14496. # If the `ln -s' command failed, then we probably don't even
  14497. # have an lstat function.
  14498. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14499. fi
  14500. rm -f conftest.sym conftest.file
  14501. fi
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14503. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14504. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14505. cat >>confdefs.h <<_ACEOF
  14506. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14507. _ACEOF
  14508. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14509. case " $LIBOBJS " in
  14510. *" lstat.$ac_objext "* ) ;;
  14511. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14512. ;;
  14513. esac
  14514. fi
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14516. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14517. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14518. $as_echo_n "(cached) " >&6
  14519. else
  14520. if test "$cross_compiling" = yes; then :
  14521. ac_cv_func_lstat_empty_string_bug=yes
  14522. else
  14523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14524. /* end confdefs.h. */
  14525. $ac_includes_default
  14526. int
  14527. main ()
  14528. {
  14529. struct stat sbuf;
  14530. return lstat ("", &sbuf) == 0;
  14531. ;
  14532. return 0;
  14533. }
  14534. _ACEOF
  14535. if ac_fn_c_try_run "$LINENO"; then :
  14536. ac_cv_func_lstat_empty_string_bug=no
  14537. else
  14538. ac_cv_func_lstat_empty_string_bug=yes
  14539. fi
  14540. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14541. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14542. fi
  14543. fi
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14545. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14546. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14547. case " $LIBOBJS " in
  14548. *" lstat.$ac_objext "* ) ;;
  14549. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14550. ;;
  14551. esac
  14552. cat >>confdefs.h <<_ACEOF
  14553. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14554. _ACEOF
  14555. fi
  14556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14557. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14558. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14559. $as_echo_n "(cached) " >&6
  14560. else
  14561. rm -f conftest.sym conftest.file
  14562. echo >conftest.file
  14563. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14564. if test "$cross_compiling" = yes; then :
  14565. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14566. else
  14567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14568. /* end confdefs.h. */
  14569. $ac_includes_default
  14570. int
  14571. main ()
  14572. {
  14573. struct stat sbuf;
  14574. /* Linux will dereference the symlink and fail, as required by POSIX.
  14575. That is better in the sense that it means we will not
  14576. have to compile and use the lstat wrapper. */
  14577. return lstat ("conftest.sym/", &sbuf) == 0;
  14578. ;
  14579. return 0;
  14580. }
  14581. _ACEOF
  14582. if ac_fn_c_try_run "$LINENO"; then :
  14583. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14584. else
  14585. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14586. fi
  14587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14588. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14589. fi
  14590. else
  14591. # If the `ln -s' command failed, then we probably don't even
  14592. # have an lstat function.
  14593. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14594. fi
  14595. rm -f conftest.sym conftest.file
  14596. fi
  14597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14598. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14599. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14600. cat >>confdefs.h <<_ACEOF
  14601. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14602. _ACEOF
  14603. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14604. case " $LIBOBJS " in
  14605. *" lstat.$ac_objext "* ) ;;
  14606. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14607. ;;
  14608. esac
  14609. fi
  14610. for ac_header in stdlib.h
  14611. do :
  14612. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14613. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14614. cat >>confdefs.h <<_ACEOF
  14615. #define HAVE_STDLIB_H 1
  14616. _ACEOF
  14617. fi
  14618. done
  14619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14620. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14621. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14622. $as_echo_n "(cached) " >&6
  14623. else
  14624. if test "$cross_compiling" = yes; then :
  14625. ac_cv_func_malloc_0_nonnull=no
  14626. else
  14627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14628. /* end confdefs.h. */
  14629. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14630. # include <stdlib.h>
  14631. #else
  14632. char *malloc ();
  14633. #endif
  14634. int
  14635. main ()
  14636. {
  14637. return ! malloc (0);
  14638. ;
  14639. return 0;
  14640. }
  14641. _ACEOF
  14642. if ac_fn_c_try_run "$LINENO"; then :
  14643. ac_cv_func_malloc_0_nonnull=yes
  14644. else
  14645. ac_cv_func_malloc_0_nonnull=no
  14646. fi
  14647. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14648. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14649. fi
  14650. fi
  14651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14652. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14653. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14654. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14655. else
  14656. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14657. case " $LIBOBJS " in
  14658. *" malloc.$ac_objext "* ) ;;
  14659. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14660. ;;
  14661. esac
  14662. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14663. fi
  14664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14665. $as_echo_n "checking for working memcmp... " >&6; }
  14666. if ${ac_cv_func_memcmp_working+:} false; then :
  14667. $as_echo_n "(cached) " >&6
  14668. else
  14669. if test "$cross_compiling" = yes; then :
  14670. ac_cv_func_memcmp_working=no
  14671. else
  14672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14673. /* end confdefs.h. */
  14674. $ac_includes_default
  14675. int
  14676. main ()
  14677. {
  14678. /* Some versions of memcmp are not 8-bit clean. */
  14679. char c0 = '\100', c1 = '\200', c2 = '\201';
  14680. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14681. return 1;
  14682. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14683. or more and with at least one buffer not starting on a 4-byte boundary.
  14684. William Lewis provided this test program. */
  14685. {
  14686. char foo[21];
  14687. char bar[21];
  14688. int i;
  14689. for (i = 0; i < 4; i++)
  14690. {
  14691. char *a = foo + i;
  14692. char *b = bar + i;
  14693. strcpy (a, "--------01111111");
  14694. strcpy (b, "--------10000000");
  14695. if (memcmp (a, b, 16) >= 0)
  14696. return 1;
  14697. }
  14698. return 0;
  14699. }
  14700. ;
  14701. return 0;
  14702. }
  14703. _ACEOF
  14704. if ac_fn_c_try_run "$LINENO"; then :
  14705. ac_cv_func_memcmp_working=yes
  14706. else
  14707. ac_cv_func_memcmp_working=no
  14708. fi
  14709. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14710. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14711. fi
  14712. fi
  14713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14714. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14715. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14716. *" memcmp.$ac_objext "* ) ;;
  14717. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14718. ;;
  14719. esac
  14720. for ac_header in $ac_header_list
  14721. do :
  14722. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14723. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14724. "
  14725. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14726. cat >>confdefs.h <<_ACEOF
  14727. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14728. _ACEOF
  14729. fi
  14730. done
  14731. for ac_func in getpagesize
  14732. do :
  14733. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14734. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14735. cat >>confdefs.h <<_ACEOF
  14736. #define HAVE_GETPAGESIZE 1
  14737. _ACEOF
  14738. fi
  14739. done
  14740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14741. $as_echo_n "checking for working mmap... " >&6; }
  14742. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14743. $as_echo_n "(cached) " >&6
  14744. else
  14745. if test "$cross_compiling" = yes; then :
  14746. ac_cv_func_mmap_fixed_mapped=no
  14747. else
  14748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14749. /* end confdefs.h. */
  14750. $ac_includes_default
  14751. /* malloc might have been renamed as rpl_malloc. */
  14752. #undef malloc
  14753. /* Thanks to Mike Haertel and Jim Avera for this test.
  14754. Here is a matrix of mmap possibilities:
  14755. mmap private not fixed
  14756. mmap private fixed at somewhere currently unmapped
  14757. mmap private fixed at somewhere already mapped
  14758. mmap shared not fixed
  14759. mmap shared fixed at somewhere currently unmapped
  14760. mmap shared fixed at somewhere already mapped
  14761. For private mappings, we should verify that changes cannot be read()
  14762. back from the file, nor mmap's back from the file at a different
  14763. address. (There have been systems where private was not correctly
  14764. implemented like the infamous i386 svr4.0, and systems where the
  14765. VM page cache was not coherent with the file system buffer cache
  14766. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14767. For shared mappings, we should conversely verify that changes get
  14768. propagated back to all the places they're supposed to be.
  14769. Grep wants private fixed already mapped.
  14770. The main things grep needs to know about mmap are:
  14771. * does it exist and is it safe to write into the mmap'd area
  14772. * how to use it (BSD variants) */
  14773. #include <fcntl.h>
  14774. #include <sys/mman.h>
  14775. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14776. char *malloc ();
  14777. #endif
  14778. /* This mess was copied from the GNU getpagesize.h. */
  14779. #ifndef HAVE_GETPAGESIZE
  14780. # ifdef _SC_PAGESIZE
  14781. # define getpagesize() sysconf(_SC_PAGESIZE)
  14782. # else /* no _SC_PAGESIZE */
  14783. # ifdef HAVE_SYS_PARAM_H
  14784. # include <sys/param.h>
  14785. # ifdef EXEC_PAGESIZE
  14786. # define getpagesize() EXEC_PAGESIZE
  14787. # else /* no EXEC_PAGESIZE */
  14788. # ifdef NBPG
  14789. # define getpagesize() NBPG * CLSIZE
  14790. # ifndef CLSIZE
  14791. # define CLSIZE 1
  14792. # endif /* no CLSIZE */
  14793. # else /* no NBPG */
  14794. # ifdef NBPC
  14795. # define getpagesize() NBPC
  14796. # else /* no NBPC */
  14797. # ifdef PAGESIZE
  14798. # define getpagesize() PAGESIZE
  14799. # endif /* PAGESIZE */
  14800. # endif /* no NBPC */
  14801. # endif /* no NBPG */
  14802. # endif /* no EXEC_PAGESIZE */
  14803. # else /* no HAVE_SYS_PARAM_H */
  14804. # define getpagesize() 8192 /* punt totally */
  14805. # endif /* no HAVE_SYS_PARAM_H */
  14806. # endif /* no _SC_PAGESIZE */
  14807. #endif /* no HAVE_GETPAGESIZE */
  14808. int
  14809. main ()
  14810. {
  14811. char *data, *data2, *data3;
  14812. const char *cdata2;
  14813. int i, pagesize;
  14814. int fd, fd2;
  14815. pagesize = getpagesize ();
  14816. /* First, make a file with some known garbage in it. */
  14817. data = (char *) malloc (pagesize);
  14818. if (!data)
  14819. return 1;
  14820. for (i = 0; i < pagesize; ++i)
  14821. *(data + i) = rand ();
  14822. umask (0);
  14823. fd = creat ("conftest.mmap", 0600);
  14824. if (fd < 0)
  14825. return 2;
  14826. if (write (fd, data, pagesize) != pagesize)
  14827. return 3;
  14828. close (fd);
  14829. /* Next, check that the tail of a page is zero-filled. File must have
  14830. non-zero length, otherwise we risk SIGBUS for entire page. */
  14831. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14832. if (fd2 < 0)
  14833. return 4;
  14834. cdata2 = "";
  14835. if (write (fd2, cdata2, 1) != 1)
  14836. return 5;
  14837. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14838. if (data2 == MAP_FAILED)
  14839. return 6;
  14840. for (i = 0; i < pagesize; ++i)
  14841. if (*(data2 + i))
  14842. return 7;
  14843. close (fd2);
  14844. if (munmap (data2, pagesize))
  14845. return 8;
  14846. /* Next, try to mmap the file at a fixed address which already has
  14847. something else allocated at it. If we can, also make sure that
  14848. we see the same garbage. */
  14849. fd = open ("conftest.mmap", O_RDWR);
  14850. if (fd < 0)
  14851. return 9;
  14852. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14853. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14854. return 10;
  14855. for (i = 0; i < pagesize; ++i)
  14856. if (*(data + i) != *(data2 + i))
  14857. return 11;
  14858. /* Finally, make sure that changes to the mapped area do not
  14859. percolate back to the file as seen by read(). (This is a bug on
  14860. some variants of i386 svr4.0.) */
  14861. for (i = 0; i < pagesize; ++i)
  14862. *(data2 + i) = *(data2 + i) + 1;
  14863. data3 = (char *) malloc (pagesize);
  14864. if (!data3)
  14865. return 12;
  14866. if (read (fd, data3, pagesize) != pagesize)
  14867. return 13;
  14868. for (i = 0; i < pagesize; ++i)
  14869. if (*(data + i) != *(data3 + i))
  14870. return 14;
  14871. close (fd);
  14872. return 0;
  14873. }
  14874. _ACEOF
  14875. if ac_fn_c_try_run "$LINENO"; then :
  14876. ac_cv_func_mmap_fixed_mapped=yes
  14877. else
  14878. ac_cv_func_mmap_fixed_mapped=no
  14879. fi
  14880. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14881. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14882. fi
  14883. fi
  14884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14885. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14886. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14887. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14888. fi
  14889. rm -f conftest.mmap conftest.txt
  14890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14891. $as_echo_n "checking return type of signal handlers... " >&6; }
  14892. if ${ac_cv_type_signal+:} false; then :
  14893. $as_echo_n "(cached) " >&6
  14894. else
  14895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14896. /* end confdefs.h. */
  14897. #include <sys/types.h>
  14898. #include <signal.h>
  14899. int
  14900. main ()
  14901. {
  14902. return *(signal (0, 0)) (0) == 1;
  14903. ;
  14904. return 0;
  14905. }
  14906. _ACEOF
  14907. if ac_fn_c_try_compile "$LINENO"; then :
  14908. ac_cv_type_signal=int
  14909. else
  14910. ac_cv_type_signal=void
  14911. fi
  14912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14913. fi
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14915. $as_echo "$ac_cv_type_signal" >&6; }
  14916. cat >>confdefs.h <<_ACEOF
  14917. #define RETSIGTYPE $ac_cv_type_signal
  14918. _ACEOF
  14919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14920. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14921. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  14922. $as_echo_n "(cached) " >&6
  14923. else
  14924. if test "$cross_compiling" = yes; then :
  14925. ac_cv_func_stat_empty_string_bug=yes
  14926. else
  14927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14928. /* end confdefs.h. */
  14929. $ac_includes_default
  14930. int
  14931. main ()
  14932. {
  14933. struct stat sbuf;
  14934. return stat ("", &sbuf) == 0;
  14935. ;
  14936. return 0;
  14937. }
  14938. _ACEOF
  14939. if ac_fn_c_try_run "$LINENO"; then :
  14940. ac_cv_func_stat_empty_string_bug=no
  14941. else
  14942. ac_cv_func_stat_empty_string_bug=yes
  14943. fi
  14944. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14945. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14946. fi
  14947. fi
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  14949. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  14950. if test $ac_cv_func_stat_empty_string_bug = yes; then
  14951. case " $LIBOBJS " in
  14952. *" stat.$ac_objext "* ) ;;
  14953. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  14954. ;;
  14955. esac
  14956. cat >>confdefs.h <<_ACEOF
  14957. #define HAVE_STAT_EMPTY_STRING_BUG 1
  14958. _ACEOF
  14959. fi
  14960. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  14961. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  14962. ac_have_decl=1
  14963. else
  14964. ac_have_decl=0
  14965. fi
  14966. cat >>confdefs.h <<_ACEOF
  14967. #define HAVE_DECL_STRERROR_R $ac_have_decl
  14968. _ACEOF
  14969. for ac_func in strerror_r
  14970. do :
  14971. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  14972. if test "x$ac_cv_func_strerror_r" = xyes; then :
  14973. cat >>confdefs.h <<_ACEOF
  14974. #define HAVE_STRERROR_R 1
  14975. _ACEOF
  14976. fi
  14977. done
  14978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  14979. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  14980. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  14981. $as_echo_n "(cached) " >&6
  14982. else
  14983. ac_cv_func_strerror_r_char_p=no
  14984. if test $ac_cv_have_decl_strerror_r = yes; then
  14985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14986. /* end confdefs.h. */
  14987. $ac_includes_default
  14988. int
  14989. main ()
  14990. {
  14991. char buf[100];
  14992. char x = *strerror_r (0, buf, sizeof buf);
  14993. char *p = strerror_r (0, buf, sizeof buf);
  14994. return !p || x;
  14995. ;
  14996. return 0;
  14997. }
  14998. _ACEOF
  14999. if ac_fn_c_try_compile "$LINENO"; then :
  15000. ac_cv_func_strerror_r_char_p=yes
  15001. fi
  15002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15003. else
  15004. # strerror_r is not declared. Choose between
  15005. # systems that have relatively inaccessible declarations for the
  15006. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15007. # former has a strerror_r that returns char*, while the latter
  15008. # has a strerror_r that returns `int'.
  15009. # This test should segfault on the DEC system.
  15010. if test "$cross_compiling" = yes; then :
  15011. :
  15012. else
  15013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15014. /* end confdefs.h. */
  15015. $ac_includes_default
  15016. extern char *strerror_r ();
  15017. int
  15018. main ()
  15019. {
  15020. char buf[100];
  15021. char x = *strerror_r (0, buf, sizeof buf);
  15022. return ! isalpha (x);
  15023. ;
  15024. return 0;
  15025. }
  15026. _ACEOF
  15027. if ac_fn_c_try_run "$LINENO"; then :
  15028. ac_cv_func_strerror_r_char_p=yes
  15029. fi
  15030. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15031. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15032. fi
  15033. fi
  15034. fi
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15036. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15037. if test $ac_cv_func_strerror_r_char_p = yes; then
  15038. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15039. fi
  15040. for ac_func in strftime
  15041. do :
  15042. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15043. if test "x$ac_cv_func_strftime" = xyes; then :
  15044. cat >>confdefs.h <<_ACEOF
  15045. #define HAVE_STRFTIME 1
  15046. _ACEOF
  15047. else
  15048. # strftime is in -lintl on SCO UNIX.
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15050. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15051. if ${ac_cv_lib_intl_strftime+:} false; then :
  15052. $as_echo_n "(cached) " >&6
  15053. else
  15054. ac_check_lib_save_LIBS=$LIBS
  15055. LIBS="-lintl $LIBS"
  15056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15057. /* end confdefs.h. */
  15058. /* Override any GCC internal prototype to avoid an error.
  15059. Use char because int might match the return type of a GCC
  15060. builtin and then its argument prototype would still apply. */
  15061. #ifdef __cplusplus
  15062. extern "C"
  15063. #endif
  15064. char strftime ();
  15065. int
  15066. main ()
  15067. {
  15068. return strftime ();
  15069. ;
  15070. return 0;
  15071. }
  15072. _ACEOF
  15073. if ac_fn_c_try_link "$LINENO"; then :
  15074. ac_cv_lib_intl_strftime=yes
  15075. else
  15076. ac_cv_lib_intl_strftime=no
  15077. fi
  15078. rm -f core conftest.err conftest.$ac_objext \
  15079. conftest$ac_exeext conftest.$ac_ext
  15080. LIBS=$ac_check_lib_save_LIBS
  15081. fi
  15082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15083. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15084. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15085. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15086. LIBS="-lintl $LIBS"
  15087. fi
  15088. fi
  15089. done
  15090. for ac_func in vprintf
  15091. do :
  15092. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15093. if test "x$ac_cv_func_vprintf" = xyes; then :
  15094. cat >>confdefs.h <<_ACEOF
  15095. #define HAVE_VPRINTF 1
  15096. _ACEOF
  15097. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15098. if test "x$ac_cv_func__doprnt" = xyes; then :
  15099. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15100. fi
  15101. fi
  15102. done
  15103. 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
  15104. do :
  15105. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15106. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15107. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15108. cat >>confdefs.h <<_ACEOF
  15109. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15110. _ACEOF
  15111. fi
  15112. done
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15114. $as_echo_n "checking for --enable-debug... " >&6; }
  15115. # Check whether --enable-debug was given.
  15116. if test "${enable_debug+set}" = set; then :
  15117. enableval=$enable_debug;
  15118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15119. $as_echo "yes" >&6; }
  15120. debug_defs="-DDEBUG -DMCC_DEBUG"
  15121. else
  15122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15123. $as_echo "no" >&6; }
  15124. debug_defs=""
  15125. fi
  15126. # Used for legacy style packaging where we bundle all of the dependencies.
  15127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15128. $as_echo_n "checking for --enable-bundle... " >&6; }
  15129. # Check whether --enable-bundle was given.
  15130. if test "${enable_bundle+set}" = set; then :
  15131. enableval=$enable_bundle;
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15133. $as_echo "yes" >&6; }
  15134. bundle="1";
  15135. else
  15136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15137. $as_echo "no" >&6; }
  15138. bundle="";
  15139. fi
  15140. if test "$bundle" = "1"; then
  15141. BUNDLE_TRUE=
  15142. BUNDLE_FALSE='#'
  15143. else
  15144. BUNDLE_TRUE='#'
  15145. BUNDLE_FALSE=
  15146. fi
  15147. # these enables are for optional or experimental features
  15148. if test -z "$enable_pam_passthru" ; then
  15149. enable_pam_passthru=yes # if not set on cmdline, set default
  15150. fi
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15152. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15153. # Check whether --enable-pam-passthru was given.
  15154. if test "${enable_pam_passthru+set}" = set; then :
  15155. enableval=$enable_pam_passthru;
  15156. fi
  15157. if test "$enable_pam_passthru" = yes ; then
  15158. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15159. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15160. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15161. else
  15162. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15163. fi
  15164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15165. $as_echo "yes" >&6; }
  15166. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15167. else
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15169. $as_echo "no" >&6; }
  15170. fi
  15171. if test "$enable_pam_passthru" = "yes"; then
  15172. enable_pam_passthru_TRUE=
  15173. enable_pam_passthru_FALSE='#'
  15174. else
  15175. enable_pam_passthru_TRUE='#'
  15176. enable_pam_passthru_FALSE=
  15177. fi
  15178. if test -z "$enable_dna" ; then
  15179. enable_dna=yes # if not set on cmdline, set default
  15180. fi
  15181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15182. $as_echo_n "checking for --enable-dna... " >&6; }
  15183. # Check whether --enable-dna was given.
  15184. if test "${enable_dna+set}" = set; then :
  15185. enableval=$enable_dna;
  15186. fi
  15187. if test "$enable_dna" = yes ; then
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15189. $as_echo "yes" >&6; }
  15190. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15191. else
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15193. $as_echo "no" >&6; }
  15194. fi
  15195. if test "$enable_dna" = "yes"; then
  15196. enable_dna_TRUE=
  15197. enable_dna_FALSE='#'
  15198. else
  15199. enable_dna_TRUE='#'
  15200. enable_dna_FALSE=
  15201. fi
  15202. if test -z "$enable_ldapi" ; then
  15203. enable_ldapi=yes # if not set on cmdline, set default
  15204. fi
  15205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15206. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15207. # Check whether --enable-ldapi was given.
  15208. if test "${enable_ldapi+set}" = set; then :
  15209. enableval=$enable_ldapi;
  15210. fi
  15211. if test "$enable_ldapi" = yes ; then
  15212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15213. $as_echo "yes" >&6; }
  15214. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15215. else
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15217. $as_echo "no" >&6; }
  15218. fi
  15219. if test "$enable_ldapi" = "yes"; then
  15220. enable_ldapi_TRUE=
  15221. enable_ldapi_FALSE='#'
  15222. else
  15223. enable_ldapi_TRUE='#'
  15224. enable_ldapi_FALSE=
  15225. fi
  15226. if test -z "$enable_autobind" ; then
  15227. enable_autobind=no # if not set on cmdline, set default
  15228. fi
  15229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15230. $as_echo_n "checking for --enable-autobind... " >&6; }
  15231. # Check whether --enable-autobind was given.
  15232. if test "${enable_autobind+set}" = set; then :
  15233. enableval=$enable_autobind;
  15234. fi
  15235. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15237. $as_echo "yes" >&6; }
  15238. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15239. else
  15240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15241. $as_echo "no" >&6; }
  15242. fi
  15243. if test "$enable_autobind" = "yes"; then
  15244. enable_autobind_TRUE=
  15245. enable_autobind_FALSE='#'
  15246. else
  15247. enable_autobind_TRUE='#'
  15248. enable_autobind_FALSE=
  15249. fi
  15250. if test -z "$enable_auto_dn_suffix" ; then
  15251. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15252. fi
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15254. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15255. # Check whether --enable-autobind was given.
  15256. if test "${enable_autobind+set}" = set; then :
  15257. enableval=$enable_autobind;
  15258. fi
  15259. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15261. $as_echo "yes" >&6; }
  15262. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15263. else
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15265. $as_echo "no" >&6; }
  15266. fi
  15267. if test "$enable_auto_dn_suffix" = "yes"; then
  15268. enable_auto_dn_suffix_TRUE=
  15269. enable_auto_dn_suffix_FALSE='#'
  15270. else
  15271. enable_auto_dn_suffix_TRUE='#'
  15272. enable_auto_dn_suffix_FALSE=
  15273. fi
  15274. if test -z "$enable_bitwise" ; then
  15275. enable_bitwise=yes # if not set on cmdline, set default
  15276. fi
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15278. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15279. # Check whether --enable-bitwise was given.
  15280. if test "${enable_bitwise+set}" = set; then :
  15281. enableval=$enable_bitwise;
  15282. fi
  15283. if test "$enable_bitwise" = yes ; then
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15285. $as_echo "yes" >&6; }
  15286. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15287. else
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15289. $as_echo "no" >&6; }
  15290. fi
  15291. if test "$enable_bitwise" = "yes"; then
  15292. enable_bitwise_TRUE=
  15293. enable_bitwise_FALSE='#'
  15294. else
  15295. enable_bitwise_TRUE='#'
  15296. enable_bitwise_FALSE=
  15297. fi
  15298. if test -z "$enable_presence" ; then
  15299. enable_presence=no # if not set on cmdline, set default
  15300. fi
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15302. $as_echo_n "checking for --enable-presence... " >&6; }
  15303. # Check whether --enable-presence was given.
  15304. if test "${enable_presence+set}" = set; then :
  15305. enableval=$enable_presence;
  15306. fi
  15307. if test "$enable_presence" = yes ; then
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15309. $as_echo "yes" >&6; }
  15310. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15311. else
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15313. $as_echo "no" >&6; }
  15314. fi
  15315. if test "$enable_presence" = "yes"; then
  15316. enable_presence_TRUE=
  15317. enable_presence_FALSE='#'
  15318. else
  15319. enable_presence_TRUE='#'
  15320. enable_presence_FALSE=
  15321. fi
  15322. if test -z "$enable_acctpolicy" ; then
  15323. enable_acctpolicy=yes # if not set on cmdline, set default
  15324. fi
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15326. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15327. # Check whether --enable-acctpolicy was given.
  15328. if test "${enable_acctpolicy+set}" = set; then :
  15329. enableval=$enable_acctpolicy;
  15330. fi
  15331. if test "$enable_acctpolicy" = yes ; then
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15333. $as_echo "yes" >&6; }
  15334. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15335. else
  15336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15337. $as_echo "no" >&6; }
  15338. fi
  15339. if test "$enable_acctpolicy" = "yes"; then
  15340. enable_acctpolicy_TRUE=
  15341. enable_acctpolicy_FALSE='#'
  15342. else
  15343. enable_acctpolicy_TRUE='#'
  15344. enable_acctpolicy_FALSE=
  15345. fi
  15346. if test -z "$enable_posix_winsync" ; then
  15347. enable_posix_winsync=yes # if not set on cmdline, set default
  15348. fi
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15350. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15351. # Check whether --enable-posix_winsync was given.
  15352. if test "${enable_posix_winsync+set}" = set; then :
  15353. enableval=$enable_posix_winsync;
  15354. fi
  15355. if test "$enable_posix_winsync" = yes ; then
  15356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15357. $as_echo "yes" >&6; }
  15358. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15359. else
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15361. $as_echo "no" >&6; }
  15362. fi
  15363. if test "$enable_posix_winsync" = "yes"; then
  15364. enable_posix_winsync_TRUE=
  15365. enable_posix_winsync_FALSE='#'
  15366. else
  15367. enable_posix_winsync_TRUE='#'
  15368. enable_posix_winsync_FALSE=
  15369. fi
  15370. # the default prefix - override with --prefix or --with-fhs
  15371. # BEGIN COPYRIGHT BLOCK
  15372. # Copyright (C) 2006 Red Hat, Inc.
  15373. # All rights reserved.
  15374. #
  15375. # This program is free software; you can redistribute it and/or
  15376. # modify it under the terms of the GNU General Public License
  15377. # as published by the Free Software Foundation; either version 2
  15378. # of the License, or (at your option) any later version.
  15379. #
  15380. # This program is distributed in the hope that it will be useful,
  15381. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15382. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15383. # GNU General Public License for more details.
  15384. #
  15385. # You should have received a copy of the GNU General Public License
  15386. # along with this program; if not, write to the Free Software
  15387. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15388. #
  15389. # END COPYRIGHT BLOCK
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15391. $as_echo "$as_me: checking for FHS..." >&6;}
  15392. # check for --with-fhs
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15394. $as_echo_n "checking for --with-fhs... " >&6; }
  15395. # Check whether --with-fhs was given.
  15396. if test "${with_fhs+set}" = set; then :
  15397. withval=$with_fhs;
  15398. with_fhs=yes
  15399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15400. $as_echo "yes" >&6; }
  15401. else
  15402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15403. $as_echo "no" >&6; }
  15404. fi
  15405. if test "$with_fhs" = "yes"; then
  15406. $as_echo "#define IS_FHS 1" >>confdefs.h
  15407. fi
  15408. # check for --with-fhs-opt
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15410. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15411. # Check whether --with-fhs-opt was given.
  15412. if test "${with_fhs_opt+set}" = set; then :
  15413. withval=$with_fhs_opt;
  15414. with_fhs_opt=yes
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15416. $as_echo "yes" >&6; }
  15417. else
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15419. $as_echo "no" >&6; }
  15420. fi
  15421. if test "$with_fhs_opt" = "yes"; then
  15422. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15423. fi
  15424. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15425. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15426. fi
  15427. localrundir='/run'
  15428. # installation paths - by default, we store everything
  15429. # under the prefix. The with-fhs option will use /usr,
  15430. # /etc, and /var. The with-fhs-opt option will use the
  15431. # prefix, but it's sysconfdir and localstatedir will be
  15432. # /etc/opt, and /var/opt.
  15433. if test "$with_fhs_opt" = "yes"; then
  15434. # Override sysconfdir and localstatedir if FHS optional
  15435. # package was requested.
  15436. sysconfdir='/etc/opt'
  15437. localstatedir='/var/opt'
  15438. localrundir='/var/opt/run'
  15439. # relative to datadir
  15440. sampledatadir=/data
  15441. # relative to datadir
  15442. scripttemplatedir=/script-templates
  15443. # relative to datadir
  15444. updatedir=/updates
  15445. # relative to libdir
  15446. serverdir=
  15447. # relative to includedir
  15448. serverincdir=
  15449. # relative to libdir
  15450. serverplugindir=/plugins
  15451. # relative to datadir
  15452. infdir=/inf
  15453. # relative to datadir
  15454. mibdir=/mibs
  15455. # location of property/resource files, relative to datadir
  15456. propertydir=/properties
  15457. # relative to libdir
  15458. perldir=/perl
  15459. else
  15460. if test "$with_fhs" = "yes"; then
  15461. ac_default_prefix=/usr
  15462. prefix=$ac_default_prefix
  15463. exec_prefix=$prefix
  15464. sysconfdir='/etc'
  15465. localstatedir='/var'
  15466. localrundir='/run'
  15467. fi
  15468. # relative to datadir
  15469. sampledatadir=/$PACKAGE_NAME/data
  15470. # relative to datadir
  15471. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15472. # relative to datadir
  15473. updatedir=/$PACKAGE_NAME/updates
  15474. # relative to libdir
  15475. serverdir=/$PACKAGE_NAME
  15476. # relative to includedir
  15477. serverincdir=/$PACKAGE_NAME
  15478. # relative to libdir
  15479. serverplugindir=/$PACKAGE_NAME/plugins
  15480. # relative to datadir
  15481. infdir=/$PACKAGE_NAME/inf
  15482. # relative to datadir
  15483. mibdir=/$PACKAGE_NAME/mibs
  15484. # location of property/resource files, relative to datadir
  15485. propertydir=/$PACKAGE_NAME/properties
  15486. # relative to libdir
  15487. perldir=/$PACKAGE_NAME/perl
  15488. fi
  15489. # if mandir is the default value, override it
  15490. # otherwise, the user must have set it - just use it
  15491. if test X"$mandir" = X'${prefix}/man' ; then
  15492. mandir='$(datadir)/man'
  15493. fi
  15494. # Shared paths for all layouts
  15495. # relative to sysconfdir
  15496. configdir=/$PACKAGE_NAME/config
  15497. # relative to sysconfdir
  15498. schemadir=/$PACKAGE_NAME/schema
  15499. # default user, group
  15500. defaultuser=nobody
  15501. defaultgroup=nobody
  15502. if test -z "$with_tmpfiles_d" ; then
  15503. if test -d $sysconfdir/tmpfiles.d ; then
  15504. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15505. fi
  15506. fi
  15507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15508. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15509. # Check whether --with-tmpfiles-d was given.
  15510. if test "${with_tmpfiles_d+set}" = set; then :
  15511. withval=$with_tmpfiles_d;
  15512. fi
  15513. if test "$with_tmpfiles_d" = yes ; then
  15514. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15515. elif test "$with_tmpfiles_d" = no ; then
  15516. with_tmpfiles_d=
  15517. else
  15518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15519. $as_echo "$with_tmpfiles_d" >&6; }
  15520. fi
  15521. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15522. if test -n "$ac_tool_prefix"; then
  15523. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15524. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15526. $as_echo_n "checking for $ac_word... " >&6; }
  15527. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15528. $as_echo_n "(cached) " >&6
  15529. else
  15530. case $PKG_CONFIG in
  15531. [\\/]* | ?:[\\/]*)
  15532. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15533. ;;
  15534. *)
  15535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15536. for as_dir in $PATH
  15537. do
  15538. IFS=$as_save_IFS
  15539. test -z "$as_dir" && as_dir=.
  15540. for ac_exec_ext in '' $ac_executable_extensions; do
  15541. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15542. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15543. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15544. break 2
  15545. fi
  15546. done
  15547. done
  15548. IFS=$as_save_IFS
  15549. ;;
  15550. esac
  15551. fi
  15552. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15553. if test -n "$PKG_CONFIG"; then
  15554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15555. $as_echo "$PKG_CONFIG" >&6; }
  15556. else
  15557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15558. $as_echo "no" >&6; }
  15559. fi
  15560. fi
  15561. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15562. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15563. # Extract the first word of "pkg-config", so it can be a program name with args.
  15564. set dummy pkg-config; ac_word=$2
  15565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15566. $as_echo_n "checking for $ac_word... " >&6; }
  15567. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15568. $as_echo_n "(cached) " >&6
  15569. else
  15570. case $ac_pt_PKG_CONFIG in
  15571. [\\/]* | ?:[\\/]*)
  15572. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15573. ;;
  15574. *)
  15575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15576. for as_dir in $PATH
  15577. do
  15578. IFS=$as_save_IFS
  15579. test -z "$as_dir" && as_dir=.
  15580. for ac_exec_ext in '' $ac_executable_extensions; do
  15581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15582. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15584. break 2
  15585. fi
  15586. done
  15587. done
  15588. IFS=$as_save_IFS
  15589. ;;
  15590. esac
  15591. fi
  15592. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15593. if test -n "$ac_pt_PKG_CONFIG"; then
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15595. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15596. else
  15597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15598. $as_echo "no" >&6; }
  15599. fi
  15600. if test "x$ac_pt_PKG_CONFIG" = x; then
  15601. PKG_CONFIG=""
  15602. else
  15603. case $cross_compiling:$ac_tool_warned in
  15604. yes:)
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15606. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15607. ac_tool_warned=yes ;;
  15608. esac
  15609. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15610. fi
  15611. else
  15612. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15613. fi
  15614. fi
  15615. if test -n "$PKG_CONFIG"; then
  15616. _pkg_min_version=0.9.0
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15618. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15619. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15621. $as_echo "yes" >&6; }
  15622. else
  15623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15624. $as_echo "no" >&6; }
  15625. PKG_CONFIG=""
  15626. fi
  15627. fi
  15628. if test -n "$PKG_CONFIG" ; then
  15629. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15630. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15631. fi
  15632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15633. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15634. # Check whether --with-systemdsystemunitdir was given.
  15635. if test "${with_systemdsystemunitdir+set}" = set; then :
  15636. withval=$with_systemdsystemunitdir;
  15637. fi
  15638. if test "$with_systemdsystemunitdir" = yes ; then
  15639. if test -n "$default_systemdsystemunitdir" ; then
  15640. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15642. $as_echo "$with_systemdsystemunitdir" >&6; }
  15643. else
  15644. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15645. fi
  15646. elif test "$with_systemdsystemunitdir" = no ; then
  15647. with_systemdsystemunitdir=
  15648. else
  15649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15650. $as_echo "$with_systemdsystemunitdir" >&6; }
  15651. fi
  15652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15653. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15654. # Check whether --with-systemdsystemconfdir was given.
  15655. if test "${with_systemdsystemconfdir+set}" = set; then :
  15656. withval=$with_systemdsystemconfdir;
  15657. fi
  15658. if test "$with_systemdsystemconfdir" = yes ; then
  15659. if test -n "$default_systemdsystemconfdir" ; then
  15660. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15662. $as_echo "$with_systemdsystemconfdir" >&6; }
  15663. else
  15664. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15665. fi
  15666. elif test "$with_systemdsystemconfdir" = no ; then
  15667. with_systemdsystemconfdir=
  15668. else
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15670. $as_echo "$with_systemdsystemconfdir" >&6; }
  15671. fi
  15672. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15673. if test -z "$with_systemdgroupname" ; then
  15674. with_systemdgroupname=$PACKAGE_NAME.target
  15675. fi
  15676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15677. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15678. # Check whether --with-systemdgroupname was given.
  15679. if test "${with_systemdgroupname+set}" = set; then :
  15680. withval=$with_systemdgroupname;
  15681. fi
  15682. if test "$with_systemdgroupname" = yes ; then
  15683. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15684. elif test "$with_systemdgroupname" = no ; then
  15685. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15686. else
  15687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15688. $as_echo "$with_systemdgroupname" >&6; }
  15689. fi
  15690. fi
  15691. # check for --with-instconfigdir
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15693. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15694. # Check whether --with-instconfigdir was given.
  15695. if test "${with_instconfigdir+set}" = set; then :
  15696. withval=$with_instconfigdir;
  15697. if test $withval = yes ; then
  15698. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15699. fi
  15700. instconfigdir="$withval"
  15701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15702. $as_echo "$withval" >&6; }
  15703. else
  15704. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15706. $as_echo "no" >&6; }
  15707. fi
  15708. # WINNT should be true if building on Windows system not using
  15709. # cygnus, mingw, or the like and using cmd.exe as the shell
  15710. if false; then
  15711. WINNT_TRUE=
  15712. WINNT_FALSE='#'
  15713. else
  15714. WINNT_TRUE='#'
  15715. WINNT_FALSE=
  15716. fi
  15717. # Deal with platform dependent defines
  15718. # initdir is the location for the SysV init scripts - very heavily platform
  15719. # dependent and not specified in fhs or lsb
  15720. # and not used if systemd is used
  15721. initdir='$(sysconfdir)/rc.d'
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15723. $as_echo_n "checking for --with-initddir... " >&6; }
  15724. # Check whether --with-initddir was given.
  15725. if test "${with_initddir+set}" = set; then :
  15726. withval=$with_initddir;
  15727. if test "$withval" = yes -o "$withval" = no ; then
  15728. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15729. fi
  15730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15731. $as_echo "$withval" >&6; }
  15732. else
  15733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15734. $as_echo "no" >&6; }
  15735. fi
  15736. # on most platforms, we will just use perl from PATH
  15737. # On some platforms, we cannot. Why not just use any old
  15738. # perl? Because of perldap. We use a perldap that is
  15739. # compiled to either 32bit or 64bit, so we must use a native
  15740. # perl binary compiled with the same bitsize. On Solaris
  15741. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15742. # those with our 64 bit compiled product.
  15743. perlexec='/usr/bin/env perl'
  15744. # we use stty in perl scripts to disable password echo
  15745. # this doesn't work unless the full absolute path of the
  15746. # stty command is used e.g. system("stty -echo") does not
  15747. # work but system("/bin/stty -echo") does work
  15748. # since the path of stty may not be the same on all
  15749. # platforms, we set the default here to /bin/stty and
  15750. # allow that value to be overridden in the platform
  15751. # specific section below
  15752. sttyexec=/bin/stty
  15753. case $host in
  15754. *-*-linux*)
  15755. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15756. $as_echo "#define Linux 1" >>confdefs.h
  15757. $as_echo "#define LINUX 1" >>confdefs.h
  15758. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15759. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15760. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15761. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15762. platform="linux"
  15763. initdir='$(sysconfdir)/rc.d/init.d'
  15764. # do arch specific linux stuff here
  15765. case $host in
  15766. i*86-*-linux*)
  15767. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15768. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15769. ;;
  15770. x86_64-*-linux*)
  15771. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15772. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15773. ;;
  15774. esac
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15776. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15778. /* end confdefs.h. */
  15779. int
  15780. main ()
  15781. {
  15782. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15783. ;
  15784. return 0;
  15785. }
  15786. _ACEOF
  15787. if ac_fn_c_try_link "$LINENO"; then :
  15788. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15790. $as_echo "yes" >&6; }
  15791. else
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15793. $as_echo "no" >&6; }
  15794. fi
  15795. rm -f core conftest.err conftest.$ac_objext \
  15796. conftest$ac_exeext conftest.$ac_ext
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15798. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15800. /* end confdefs.h. */
  15801. int
  15802. main ()
  15803. {
  15804. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15805. ;
  15806. return 0;
  15807. }
  15808. _ACEOF
  15809. if ac_fn_c_try_link "$LINENO"; then :
  15810. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15812. $as_echo "yes" >&6; }
  15813. else
  15814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15815. $as_echo "no" >&6; }
  15816. fi
  15817. rm -f core conftest.err conftest.$ac_objext \
  15818. conftest$ac_exeext conftest.$ac_ext
  15819. # some programs use the native thread library directly
  15820. THREADLIB=-lpthread
  15821. THREADLIB=$THREADLIB
  15822. LIBCRYPT=-lcrypt
  15823. LIBCRYPT=$LIBCRYPT
  15824. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15825. ;;
  15826. ia64-hp-hpux*)
  15827. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15828. $as_echo "#define hpux 1" >>confdefs.h
  15829. $as_echo "#define HPUX 1" >>confdefs.h
  15830. $as_echo "#define HPUX11 1" >>confdefs.h
  15831. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15832. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15833. $as_echo "#define OS_hpux 1" >>confdefs.h
  15834. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15835. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15836. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15837. # assume 64 bit
  15838. perlexec='/opt/perl_64/bin/perl'
  15839. platform="hpux"
  15840. initconfigdir="/$PACKAGE_NAME/config"
  15841. # HPUX doesn't use /etc for this
  15842. initdir=/init.d
  15843. ;;
  15844. hppa*-hp-hpux*)
  15845. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15846. $as_echo "#define hpux 1" >>confdefs.h
  15847. $as_echo "#define HPUX 1" >>confdefs.h
  15848. $as_echo "#define HPUX11 1" >>confdefs.h
  15849. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15850. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15851. $as_echo "#define OS_hpux 1" >>confdefs.h
  15852. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15853. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15854. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15855. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15856. # assume 64 bit
  15857. initconfigdir="/$PACKAGE_NAME/config"
  15858. perlexec='/opt/perl_64/bin/perl'
  15859. platform="hpux"
  15860. # HPUX doesn't use /etc for this
  15861. initdir=/init.d
  15862. ;;
  15863. *-*-solaris*)
  15864. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15865. $as_echo "#define SVR4 1" >>confdefs.h
  15866. $as_echo "#define __svr4 1" >>confdefs.h
  15867. $as_echo "#define __svr4__ 1" >>confdefs.h
  15868. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15869. $as_echo "#define SOLARIS 1" >>confdefs.h
  15870. $as_echo "#define OS_solaris 1" >>confdefs.h
  15871. $as_echo "#define sunos5 1" >>confdefs.h
  15872. $as_echo "#define OSVERSION 509" >>confdefs.h
  15873. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15874. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15875. LIBSOCKET=-lsocket
  15876. LIBSOCKET=$LIBSOCKET
  15877. LIBNSL=-lnsl
  15878. LIBNSL=$LIBNSL
  15879. LIBDL=-ldl
  15880. LIBDL=$LIBDL
  15881. LIBCSTD=-lCstd
  15882. LIBCSTD=$LIBCSTD
  15883. LIBCRUN=-lCrun
  15884. LIBCRUN=$LIBCRUN
  15885. platform="solaris"
  15886. initdir='$(sysconfdir)/init.d'
  15887. case $host in
  15888. i?86-*-solaris2.1[0-9]*)
  15889. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  15890. ;;
  15891. sparc-*-solaris*)
  15892. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15893. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  15894. TARGET='SPARC'
  15895. ;;
  15896. esac
  15897. ;;
  15898. *)
  15899. platform=""
  15900. ;;
  15901. esac
  15902. # cmd line overrides default setting above
  15903. if test -n "$with_initddir" ; then
  15904. initdir="$with_initddir"
  15905. fi
  15906. # sysv init scripts not used when systemd is used
  15907. # set default initconfigdir if not already set
  15908. # value will be set so as to be relative to $(sysconfdir)
  15909. if test -z "$initconfigdir" ; then
  15910. if test -d /etc/sysconfig ; then
  15911. initconfigdir=/sysconfig
  15912. elif test -d /etc/default ; then
  15913. initconfigdir=/default
  15914. else
  15915. initconfigdir="/$PACKAGE_NAME/config"
  15916. fi
  15917. fi
  15918. if test "$platform" = "hpux"; then
  15919. HPUX_TRUE=
  15920. HPUX_FALSE='#'
  15921. else
  15922. HPUX_TRUE='#'
  15923. HPUX_FALSE=
  15924. fi
  15925. if test "$platform" = "solaris"; then
  15926. SOLARIS_TRUE=
  15927. SOLARIS_FALSE='#'
  15928. else
  15929. SOLARIS_TRUE='#'
  15930. SOLARIS_FALSE=
  15931. fi
  15932. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  15933. SYSTEMD_TRUE=
  15934. SYSTEMD_FALSE='#'
  15935. else
  15936. SYSTEMD_TRUE='#'
  15937. SYSTEMD_FALSE=
  15938. fi
  15939. # Check for library dependencies
  15940. # BEGIN COPYRIGHT BLOCK
  15941. # Copyright (C) 2007 Red Hat, Inc.
  15942. # All rights reserved.
  15943. #
  15944. # This program is free software; you can redistribute it and/or
  15945. # modify it under the terms of the GNU General Public License
  15946. # as published by the Free Software Foundation; either version 2
  15947. # of the License, or (at your option) any later version.
  15948. #
  15949. # This program is distributed in the hope that it will be useful,
  15950. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15951. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15952. # GNU General Public License for more details.
  15953. #
  15954. # You should have received a copy of the GNU General Public License
  15955. # along with this program; if not, write to the Free Software
  15956. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15957. #
  15958. # END COPYRIGHT BLOCK
  15959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  15960. $as_echo "$as_me: checking for NSPR..." >&6;}
  15961. # check for --with-nspr
  15962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  15963. $as_echo_n "checking for --with-nspr... " >&6; }
  15964. # Check whether --with-nspr was given.
  15965. if test "${with_nspr+set}" = set; then :
  15966. withval=$with_nspr;
  15967. if test "$withval" = "yes"
  15968. then
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15970. $as_echo "yes" >&6; }
  15971. elif test "$withval" = "no"
  15972. then
  15973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15974. $as_echo "no" >&6; }
  15975. as_fn_error $? "NSPR is required." "$LINENO" 5
  15976. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  15977. then
  15978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15979. $as_echo "using $withval" >&6; }
  15980. NSPRDIR=$withval
  15981. nspr_inc="-I$NSPRDIR/include"
  15982. nspr_lib="-L$NSPRDIR/lib"
  15983. nspr_libdir="$NSPRDIR/lib"
  15984. else
  15985. echo
  15986. as_fn_error $? "$withval not found" "$LINENO" 5
  15987. fi
  15988. else
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15990. $as_echo "yes" >&6; }
  15991. fi
  15992. # check for --with-nspr-inc
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  15994. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  15995. # Check whether --with-nspr-inc was given.
  15996. if test "${with_nspr_inc+set}" = set; then :
  15997. withval=$with_nspr_inc;
  15998. if test -e "$withval"/nspr.h
  15999. then
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16001. $as_echo "using $withval" >&6; }
  16002. nspr_inc="-I$withval"
  16003. else
  16004. echo
  16005. as_fn_error $? "$withval not found" "$LINENO" 5
  16006. fi
  16007. else
  16008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16009. $as_echo "no" >&6; }
  16010. fi
  16011. # check for --with-nspr-lib
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16013. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16014. # Check whether --with-nspr-lib was given.
  16015. if test "${with_nspr_lib+set}" = set; then :
  16016. withval=$with_nspr_lib;
  16017. if test -d "$withval"
  16018. then
  16019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16020. $as_echo "using $withval" >&6; }
  16021. nspr_lib="-L$withval"
  16022. nspr_libdir="$withval"
  16023. else
  16024. echo
  16025. as_fn_error $? "$withval not found" "$LINENO" 5
  16026. fi
  16027. else
  16028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16029. $as_echo "no" >&6; }
  16030. fi
  16031. # if NSPR is not found yet, try pkg-config
  16032. # last resort
  16033. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16034. # Extract the first word of "pkg-config", so it can be a program name with args.
  16035. set dummy pkg-config; ac_word=$2
  16036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16037. $as_echo_n "checking for $ac_word... " >&6; }
  16038. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16039. $as_echo_n "(cached) " >&6
  16040. else
  16041. case $PKG_CONFIG in
  16042. [\\/]* | ?:[\\/]*)
  16043. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16044. ;;
  16045. *)
  16046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16047. for as_dir in $PATH
  16048. do
  16049. IFS=$as_save_IFS
  16050. test -z "$as_dir" && as_dir=.
  16051. for ac_exec_ext in '' $ac_executable_extensions; do
  16052. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16053. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16055. break 2
  16056. fi
  16057. done
  16058. done
  16059. IFS=$as_save_IFS
  16060. ;;
  16061. esac
  16062. fi
  16063. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16064. if test -n "$PKG_CONFIG"; then
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16066. $as_echo "$PKG_CONFIG" >&6; }
  16067. else
  16068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16069. $as_echo "no" >&6; }
  16070. fi
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16072. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16073. if test -n "$PKG_CONFIG"; then
  16074. if $PKG_CONFIG --exists nspr; then
  16075. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16076. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16077. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16079. $as_echo "using system NSPR" >&6; }
  16080. elif $PKG_CONFIG --exists dirsec-nspr; then
  16081. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16082. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16083. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16085. $as_echo "using system dirsec NSPR" >&6; }
  16086. else
  16087. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16088. fi
  16089. fi
  16090. fi
  16091. # BEGIN COPYRIGHT BLOCK
  16092. # Copyright (C) 2007 Red Hat, Inc.
  16093. # All rights reserved.
  16094. #
  16095. # This program is free software; you can redistribute it and/or
  16096. # modify it under the terms of the GNU General Public License
  16097. # as published by the Free Software Foundation; either version 2
  16098. # of the License, or (at your option) any later version.
  16099. #
  16100. # This program is distributed in the hope that it will be useful,
  16101. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16102. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16103. # GNU General Public License for more details.
  16104. #
  16105. # You should have received a copy of the GNU General Public License
  16106. # along with this program; if not, write to the Free Software
  16107. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16108. #
  16109. # END COPYRIGHT BLOCK
  16110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16111. $as_echo "$as_me: checking for NSS..." >&6;}
  16112. # check for --with-nss
  16113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16114. $as_echo_n "checking for --with-nss... " >&6; }
  16115. # Check whether --with-nss was given.
  16116. if test "${with_nss+set}" = set; then :
  16117. withval=$with_nss;
  16118. if test "$withval" = "yes"
  16119. then
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16121. $as_echo "yes" >&6; }
  16122. elif test "$withval" = "no"
  16123. then
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16125. $as_echo "no" >&6; }
  16126. as_fn_error $? "NSS is required." "$LINENO" 5
  16127. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16128. then
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16130. $as_echo "using $withval" >&6; }
  16131. NSSDIR=$withval
  16132. nss_inc="-I$NSSDIR/include"
  16133. nss_lib="-L$NSSDIR/lib"
  16134. nss_libdir="$NSSDIR/lib"
  16135. else
  16136. echo
  16137. as_fn_error $? "$withval not found" "$LINENO" 5
  16138. fi
  16139. else
  16140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16141. $as_echo "yes" >&6; }
  16142. fi
  16143. # check for --with-nss-inc
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16145. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16146. # Check whether --with-nss-inc was given.
  16147. if test "${with_nss_inc+set}" = set; then :
  16148. withval=$with_nss_inc;
  16149. if test -e "$withval"/nss.h
  16150. then
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16152. $as_echo "using $withval" >&6; }
  16153. nss_inc="-I$withval"
  16154. else
  16155. echo
  16156. as_fn_error $? "$withval not found" "$LINENO" 5
  16157. fi
  16158. else
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16160. $as_echo "no" >&6; }
  16161. fi
  16162. # check for --with-nss-lib
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16164. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16165. # Check whether --with-nss-lib was given.
  16166. if test "${with_nss_lib+set}" = set; then :
  16167. withval=$with_nss_lib;
  16168. if test -d "$withval"
  16169. then
  16170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16171. $as_echo "using $withval" >&6; }
  16172. nss_lib="-L$withval"
  16173. nss_libdir="$withval"
  16174. else
  16175. echo
  16176. as_fn_error $? "$withval not found" "$LINENO" 5
  16177. fi
  16178. else
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16180. $as_echo "no" >&6; }
  16181. fi
  16182. # if NSS is not found yet, try pkg-config
  16183. # last resort
  16184. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16185. # Extract the first word of "pkg-config", so it can be a program name with args.
  16186. set dummy pkg-config; ac_word=$2
  16187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16188. $as_echo_n "checking for $ac_word... " >&6; }
  16189. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16190. $as_echo_n "(cached) " >&6
  16191. else
  16192. case $PKG_CONFIG in
  16193. [\\/]* | ?:[\\/]*)
  16194. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16195. ;;
  16196. *)
  16197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16198. for as_dir in $PATH
  16199. do
  16200. IFS=$as_save_IFS
  16201. test -z "$as_dir" && as_dir=.
  16202. for ac_exec_ext in '' $ac_executable_extensions; do
  16203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16204. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16206. break 2
  16207. fi
  16208. done
  16209. done
  16210. IFS=$as_save_IFS
  16211. ;;
  16212. esac
  16213. fi
  16214. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16215. if test -n "$PKG_CONFIG"; then
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16217. $as_echo "$PKG_CONFIG" >&6; }
  16218. else
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16220. $as_echo "no" >&6; }
  16221. fi
  16222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16223. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16224. if test -n "$PKG_CONFIG"; then
  16225. if $PKG_CONFIG --exists nss; then
  16226. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16227. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16228. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16230. $as_echo "using system NSS" >&6; }
  16231. elif $PKG_CONFIG --exists dirsec-nss; then
  16232. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16233. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16234. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16236. $as_echo "using system dirsec NSS" >&6; }
  16237. else
  16238. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16239. fi
  16240. fi
  16241. fi
  16242. # BEGIN COPYRIGHT BLOCK
  16243. # Copyright (C) 2009 Red Hat, Inc.
  16244. # All rights reserved.
  16245. #
  16246. # This program is free software; you can redistribute it and/or
  16247. # modify it under the terms of the GNU General Public License
  16248. # as published by the Free Software Foundation; either version 2
  16249. # of the License, or (at your option) any later version.
  16250. #
  16251. # This program is distributed in the hope that it will be useful,
  16252. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16253. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16254. # GNU General Public License for more details.
  16255. #
  16256. # You should have received a copy of the GNU General Public License
  16257. # along with this program; if not, write to the Free Software
  16258. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16259. #
  16260. # END COPYRIGHT BLOCK
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16262. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16263. # check for --with-openldap
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16265. $as_echo_n "checking for --with-openldap... " >&6; }
  16266. # Check whether --with-openldap was given.
  16267. if test "${with_openldap+set}" = set; then :
  16268. withval=$with_openldap;
  16269. if test "$withval" = yes
  16270. then
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16272. $as_echo "using system OpenLDAP" >&6; }
  16273. elif test "$withval" = no
  16274. then
  16275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16276. $as_echo "no" >&6; }
  16277. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16278. then
  16279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16280. $as_echo "using $withval" >&6; }
  16281. OPENLDAPDIR=$withval
  16282. openldap_incdir="$OPENLDAPDIR/include"
  16283. openldap_inc="-I$openldap_incdir"
  16284. openldap_lib="-L$OPENLDAPDIR/lib"
  16285. openldap_libdir="$OPENLDAPDIR/lib"
  16286. openldap_bindir="$OPENLDAPDIR/bin"
  16287. with_openldap=yes
  16288. else
  16289. echo
  16290. as_fn_error $? "$withval not found" "$LINENO" 5
  16291. fi
  16292. else
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16294. $as_echo "no" >&6; }
  16295. fi
  16296. # check for --with-openldap-inc
  16297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16298. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16299. # Check whether --with-openldap-inc was given.
  16300. if test "${with_openldap_inc+set}" = set; then :
  16301. withval=$with_openldap_inc;
  16302. if test -e "$withval"/ldap.h
  16303. then
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16305. $as_echo "using $withval" >&6; }
  16306. openldap_incdir="$withval"
  16307. openldap_inc="-I$withval"
  16308. with_openldap=yes
  16309. else
  16310. echo
  16311. as_fn_error $? "$withval not found" "$LINENO" 5
  16312. fi
  16313. else
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16315. $as_echo "no" >&6; }
  16316. fi
  16317. # check for --with-openldap-lib
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16319. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16320. # Check whether --with-openldap-lib was given.
  16321. if test "${with_openldap_lib+set}" = set; then :
  16322. withval=$with_openldap_lib;
  16323. if test -d "$withval"
  16324. then
  16325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16326. $as_echo "using $withval" >&6; }
  16327. openldap_lib="-L$withval"
  16328. openldap_libdir="$withval"
  16329. with_openldap=yes
  16330. else
  16331. echo
  16332. as_fn_error $? "$withval not found" "$LINENO" 5
  16333. fi
  16334. else
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16336. $as_echo "no" >&6; }
  16337. fi
  16338. # check for --with-openldap-bin
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16340. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16341. # Check whether --with-openldap-bin was given.
  16342. if test "${with_openldap_bin+set}" = set; then :
  16343. withval=$with_openldap_bin;
  16344. if test -d "$withval"
  16345. then
  16346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16347. $as_echo "using $withval" >&6; }
  16348. openldap_bindir="$withval"
  16349. with_openldap=yes
  16350. else
  16351. echo
  16352. as_fn_error $? "$withval not found" "$LINENO" 5
  16353. fi
  16354. else
  16355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16356. $as_echo "no" >&6; }
  16357. fi
  16358. # if OPENLDAP is not found yet, try pkg-config
  16359. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16360. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16361. # Extract the first word of "pkg-config", so it can be a program name with args.
  16362. set dummy pkg-config; ac_word=$2
  16363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16364. $as_echo_n "checking for $ac_word... " >&6; }
  16365. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16366. $as_echo_n "(cached) " >&6
  16367. else
  16368. case $PKG_CONFIG in
  16369. [\\/]* | ?:[\\/]*)
  16370. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16371. ;;
  16372. *)
  16373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16374. for as_dir in $PATH
  16375. do
  16376. IFS=$as_save_IFS
  16377. test -z "$as_dir" && as_dir=.
  16378. for ac_exec_ext in '' $ac_executable_extensions; do
  16379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16380. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16382. break 2
  16383. fi
  16384. done
  16385. done
  16386. IFS=$as_save_IFS
  16387. ;;
  16388. esac
  16389. fi
  16390. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16391. if test -n "$PKG_CONFIG"; then
  16392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16393. $as_echo "$PKG_CONFIG" >&6; }
  16394. else
  16395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16396. $as_echo "no" >&6; }
  16397. fi
  16398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16399. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16400. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16401. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16402. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16403. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16404. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16405. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16407. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16408. else
  16409. openldap_incdir="/usr/include"
  16410. openldap_inc="-I$openldap_incdir"
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16412. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16413. fi
  16414. fi
  16415. fi
  16416. if test "$with_openldap" = yes ; then
  16417. save_cppflags="$CPPFLAGS"
  16418. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16419. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16420. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16421. else
  16422. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16423. fi
  16424. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16425. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16426. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16427. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16428. save_ldflags="$LDFLAGS"
  16429. LDFLAGS="$openldap_lib $LDFLAGS"
  16430. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16432. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16433. if eval \${$as_ac_Lib+:} false; then :
  16434. $as_echo_n "(cached) " >&6
  16435. else
  16436. ac_check_lib_save_LIBS=$LIBS
  16437. LIBS="-lldap$ol_libver $LIBS"
  16438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16439. /* end confdefs.h. */
  16440. /* Override any GCC internal prototype to avoid an error.
  16441. Use char because int might match the return type of a GCC
  16442. builtin and then its argument prototype would still apply. */
  16443. #ifdef __cplusplus
  16444. extern "C"
  16445. #endif
  16446. char ldap_initialize ();
  16447. int
  16448. main ()
  16449. {
  16450. return ldap_initialize ();
  16451. ;
  16452. return 0;
  16453. }
  16454. _ACEOF
  16455. if ac_fn_c_try_link "$LINENO"; then :
  16456. eval "$as_ac_Lib=yes"
  16457. else
  16458. eval "$as_ac_Lib=no"
  16459. fi
  16460. rm -f core conftest.err conftest.$ac_objext \
  16461. conftest$ac_exeext conftest.$ac_ext
  16462. LIBS=$ac_check_lib_save_LIBS
  16463. fi
  16464. eval ac_res=\$$as_ac_Lib
  16465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16466. $as_echo "$ac_res" >&6; }
  16467. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16468. have_ldap_lib=1
  16469. fi
  16470. if test -z "$have_ldap_lib" ; then
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16472. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16473. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16474. $as_echo_n "(cached) " >&6
  16475. else
  16476. ac_check_lib_save_LIBS=$LIBS
  16477. LIBS="-lldap $LIBS"
  16478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16479. /* end confdefs.h. */
  16480. /* Override any GCC internal prototype to avoid an error.
  16481. Use char because int might match the return type of a GCC
  16482. builtin and then its argument prototype would still apply. */
  16483. #ifdef __cplusplus
  16484. extern "C"
  16485. #endif
  16486. char ldap_initialize ();
  16487. int
  16488. main ()
  16489. {
  16490. return ldap_initialize ();
  16491. ;
  16492. return 0;
  16493. }
  16494. _ACEOF
  16495. if ac_fn_c_try_link "$LINENO"; then :
  16496. ac_cv_lib_ldap_ldap_initialize=yes
  16497. else
  16498. ac_cv_lib_ldap_ldap_initialize=no
  16499. fi
  16500. rm -f core conftest.err conftest.$ac_objext \
  16501. conftest$ac_exeext conftest.$ac_ext
  16502. LIBS=$ac_check_lib_save_LIBS
  16503. fi
  16504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16505. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16506. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16507. unset ol_libver
  16508. else
  16509. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16510. fi
  16511. fi
  16512. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16514. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16515. if eval \${$as_ac_Lib+:} false; then :
  16516. $as_echo_n "(cached) " >&6
  16517. else
  16518. ac_check_lib_save_LIBS=$LIBS
  16519. LIBS="-lldap$ol_libver $LIBS"
  16520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16521. /* end confdefs.h. */
  16522. /* Override any GCC internal prototype to avoid an error.
  16523. Use char because int might match the return type of a GCC
  16524. builtin and then its argument prototype would still apply. */
  16525. #ifdef __cplusplus
  16526. extern "C"
  16527. #endif
  16528. char ldap_url_parse_ext ();
  16529. int
  16530. main ()
  16531. {
  16532. return ldap_url_parse_ext ();
  16533. ;
  16534. return 0;
  16535. }
  16536. _ACEOF
  16537. if ac_fn_c_try_link "$LINENO"; then :
  16538. eval "$as_ac_Lib=yes"
  16539. else
  16540. eval "$as_ac_Lib=no"
  16541. fi
  16542. rm -f core conftest.err conftest.$ac_objext \
  16543. conftest$ac_exeext conftest.$ac_ext
  16544. LIBS=$ac_check_lib_save_LIBS
  16545. fi
  16546. eval ac_res=\$$as_ac_Lib
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16548. $as_echo "$ac_res" >&6; }
  16549. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16550. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16551. fi
  16552. ldap_lib_ldif=""
  16553. LDFLAGS="$LDFLAGS"
  16554. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldif_open" | $as_tr_sh`
  16555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldif_open in -lldap$ol_libver" >&5
  16556. $as_echo_n "checking for ldif_open in -lldap$ol_libver... " >&6; }
  16557. if eval \${$as_ac_Lib+:} false; then :
  16558. $as_echo_n "(cached) " >&6
  16559. else
  16560. ac_check_lib_save_LIBS=$LIBS
  16561. LIBS="-lldap$ol_libver $LIBS"
  16562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16563. /* end confdefs.h. */
  16564. /* Override any GCC internal prototype to avoid an error.
  16565. Use char because int might match the return type of a GCC
  16566. builtin and then its argument prototype would still apply. */
  16567. #ifdef __cplusplus
  16568. extern "C"
  16569. #endif
  16570. char ldif_open ();
  16571. int
  16572. main ()
  16573. {
  16574. return ldif_open ();
  16575. ;
  16576. return 0;
  16577. }
  16578. _ACEOF
  16579. if ac_fn_c_try_link "$LINENO"; then :
  16580. eval "$as_ac_Lib=yes"
  16581. else
  16582. eval "$as_ac_Lib=no"
  16583. fi
  16584. rm -f core conftest.err conftest.$ac_objext \
  16585. conftest$ac_exeext conftest.$ac_ext
  16586. LIBS=$ac_check_lib_save_LIBS
  16587. fi
  16588. eval ac_res=\$$as_ac_Lib
  16589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16590. $as_echo "$ac_res" >&6; }
  16591. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16592. ldap_lib_ldif=
  16593. else
  16594. ldap_lib_ldif=-lldif$ol_libver
  16595. fi
  16596. LDFLAGS="$save_ldflags"
  16597. CPPFLAGS="$save_cppflags"
  16598. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16599. # where to find ldapsearch, et. al.
  16600. ldaptool_bindir=$openldap_bindir
  16601. # default options to pass to the tools
  16602. # use -x because all of our scripts use simple bind
  16603. ldaptool_opts=-x
  16604. # get plain output from ldapsearch - no version, no comments
  16605. plainldif_opts=-LLL
  16606. fi
  16607. # BEGIN COPYRIGHT BLOCK
  16608. # Copyright (C) 2007 Red Hat, Inc.
  16609. # All rights reserved.
  16610. #
  16611. # This program is free software; you can redistribute it and/or
  16612. # modify it under the terms of the GNU General Public License
  16613. # as published by the Free Software Foundation; either version 2
  16614. # of the License, or (at your option) any later version.
  16615. #
  16616. # This program is distributed in the hope that it will be useful,
  16617. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16618. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16619. # GNU General Public License for more details.
  16620. #
  16621. # You should have received a copy of the GNU General Public License
  16622. # along with this program; if not, write to the Free Software
  16623. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16624. #
  16625. # END COPYRIGHT BLOCK
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16627. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16628. # check for --with-ldapsdk
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16630. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16631. # Check whether --with-ldapsdk was given.
  16632. if test "${with_ldapsdk+set}" = set; then :
  16633. withval=$with_ldapsdk;
  16634. if test "$withval" = yes
  16635. then
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16637. $as_echo "yes" >&6; }
  16638. elif test "$withval" = no
  16639. then
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16641. $as_echo "no" >&6; }
  16642. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16643. then
  16644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16645. $as_echo "using $withval" >&6; }
  16646. LDAPSDKDIR=$withval
  16647. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16648. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16649. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16650. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16651. with_ldapsdk=yes
  16652. else
  16653. echo
  16654. as_fn_error $? "$withval not found" "$LINENO" 5
  16655. fi
  16656. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16657. then
  16658. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16659. fi
  16660. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16661. then
  16662. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16663. fi
  16664. else
  16665. if test "$with_openldap" = yes
  16666. then
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16668. $as_echo "no" >&6; }
  16669. else
  16670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16671. $as_echo "yes" >&6; }
  16672. with_ldapsdk=yes
  16673. fi
  16674. fi
  16675. # check for --with-ldapsdk-inc
  16676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16677. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16678. # Check whether --with-ldapsdk-inc was given.
  16679. if test "${with_ldapsdk_inc+set}" = set; then :
  16680. withval=$with_ldapsdk_inc;
  16681. if test -e "$withval"/ldap.h
  16682. then
  16683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16684. $as_echo "using $withval" >&6; }
  16685. ldapsdk_inc="-I$withval"
  16686. with_ldapsdk=yes
  16687. else
  16688. echo
  16689. as_fn_error $? "$withval not found" "$LINENO" 5
  16690. fi
  16691. else
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16693. $as_echo "no" >&6; }
  16694. fi
  16695. # check for --with-ldapsdk-lib
  16696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16697. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16698. # Check whether --with-ldapsdk-lib was given.
  16699. if test "${with_ldapsdk_lib+set}" = set; then :
  16700. withval=$with_ldapsdk_lib;
  16701. if test -d "$withval"
  16702. then
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16704. $as_echo "using $withval" >&6; }
  16705. ldapsdk_lib="-L$withval"
  16706. ldapsdk_libdir="$withval"
  16707. with_ldapsdk=yes
  16708. else
  16709. echo
  16710. as_fn_error $? "$withval not found" "$LINENO" 5
  16711. fi
  16712. else
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16714. $as_echo "no" >&6; }
  16715. fi
  16716. # check for --with-ldapsdk-bin
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16718. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16719. # Check whether --with-ldapsdk-bin was given.
  16720. if test "${with_ldapsdk_bin+set}" = set; then :
  16721. withval=$with_ldapsdk_bin;
  16722. if test -d "$withval"
  16723. then
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16725. $as_echo "using $withval" >&6; }
  16726. ldapsdk_bindir="$withval"
  16727. with_ldapsdk=yes
  16728. else
  16729. echo
  16730. as_fn_error $? "$withval not found" "$LINENO" 5
  16731. fi
  16732. else
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16734. $as_echo "no" >&6; }
  16735. fi
  16736. # if LDAPSDK is not found yet, try pkg-config
  16737. # last resort
  16738. if test "$with_ldapsdk" = yes ; then
  16739. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16740. # Extract the first word of "pkg-config", so it can be a program name with args.
  16741. set dummy pkg-config; ac_word=$2
  16742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16743. $as_echo_n "checking for $ac_word... " >&6; }
  16744. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16745. $as_echo_n "(cached) " >&6
  16746. else
  16747. case $PKG_CONFIG in
  16748. [\\/]* | ?:[\\/]*)
  16749. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16750. ;;
  16751. *)
  16752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16753. for as_dir in $PATH
  16754. do
  16755. IFS=$as_save_IFS
  16756. test -z "$as_dir" && as_dir=.
  16757. for ac_exec_ext in '' $ac_executable_extensions; do
  16758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16759. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16761. break 2
  16762. fi
  16763. done
  16764. done
  16765. IFS=$as_save_IFS
  16766. ;;
  16767. esac
  16768. fi
  16769. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16770. if test -n "$PKG_CONFIG"; then
  16771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16772. $as_echo "$PKG_CONFIG" >&6; }
  16773. else
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16775. $as_echo "no" >&6; }
  16776. fi
  16777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16778. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16779. if test -n "$PKG_CONFIG"; then
  16780. if $PKG_CONFIG --exists mozldap6; then
  16781. mozldappkg=mozldap6
  16782. elif $PKG_CONFIG --exists mozldap; then
  16783. mozldappkg=mozldap
  16784. else
  16785. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16786. fi
  16787. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16788. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16789. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16790. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16792. $as_echo "using system $mozldappkg" >&6; }
  16793. fi
  16794. fi
  16795. fi
  16796. if test "$with_ldapsdk" = yes ; then
  16797. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16798. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16799. fi
  16800. if test -z "$ldapsdk_bindir" ; then
  16801. if -d $libdir/mozldap6 ; then
  16802. ldapsdk_bindir=$libdir/mozldap6
  16803. else
  16804. ldapsdk_bindir=$libdir/mozldap
  16805. fi
  16806. fi
  16807. save_cppflags="$CPPFLAGS"
  16808. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16809. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16810. #if LDAP_VENDOR_VERSION < 600
  16811. #error The LDAP C SDK version is not supported
  16812. #endif
  16813. "
  16814. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16815. isversion6=1
  16816. else
  16817. isversion6=
  16818. fi
  16819. CPPFLAGS="$save_cppflags"
  16820. if test -z "$isversion6" ; then
  16821. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16822. fi
  16823. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16824. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16825. # where to find ldapsearch, et. al.
  16826. ldaptool_bindir=$ldapsdk_bindir
  16827. # default options to pass to the tools
  16828. ldaptool_opts=
  16829. # get plain output from ldapsearch - no version
  16830. plainldif_opts=-1
  16831. fi
  16832. # BEGIN COPYRIGHT BLOCK
  16833. # Copyright (C) 2007 Red Hat, Inc.
  16834. # All rights reserved.
  16835. #
  16836. # This program is free software; you can redistribute it and/or
  16837. # modify it under the terms of the GNU General Public License
  16838. # as published by the Free Software Foundation; either version 2
  16839. # of the License, or (at your option) any later version.
  16840. #
  16841. # This program is distributed in the hope that it will be useful,
  16842. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16843. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16844. # GNU General Public License for more details.
  16845. #
  16846. # You should have received a copy of the GNU General Public License
  16847. # along with this program; if not, write to the Free Software
  16848. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16849. #
  16850. # END COPYRIGHT BLOCK
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16852. $as_echo "$as_me: checking for db..." >&6;}
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16854. $as_echo_n "checking for --with-db... " >&6; }
  16855. # Check whether --with-db was given.
  16856. if test "${with_db+set}" = set; then :
  16857. withval=$with_db;
  16858. if test "$withval" = "yes"; then
  16859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16860. $as_echo "yes" >&6; }
  16861. elif test "$withval" = "no"; then
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16863. $as_echo "no" >&6; }
  16864. as_fn_error $? "db is required." "$LINENO" 5
  16865. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16867. $as_echo "using $withval" >&6; }
  16868. DBDIR=$withval
  16869. db_lib="-L$DBDIR/lib"
  16870. db_libdir="$DBDIR/lib"
  16871. db_incdir="$DBDIR/include"
  16872. if ! test -e "$db_incdir/db.h" ; then
  16873. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16874. fi
  16875. db_inc="-I$db_incdir"
  16876. else
  16877. echo
  16878. as_fn_error $? "$withval not found" "$LINENO" 5
  16879. fi
  16880. else
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16882. $as_echo "yes" >&6; }
  16883. fi
  16884. # check for --with-db-inc
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16886. $as_echo_n "checking for --with-db-inc... " >&6; }
  16887. # Check whether --with-db-inc was given.
  16888. if test "${with_db_inc+set}" = set; then :
  16889. withval=$with_db_inc;
  16890. if test -e "$withval"/db.h
  16891. then
  16892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16893. $as_echo "using $withval" >&6; }
  16894. db_incdir="$withval"
  16895. db_inc="-I$withval"
  16896. else
  16897. echo
  16898. as_fn_error $? "$withval not found" "$LINENO" 5
  16899. fi
  16900. else
  16901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16902. $as_echo "no" >&6; }
  16903. fi
  16904. # check for --with-db-lib
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  16906. $as_echo_n "checking for --with-db-lib... " >&6; }
  16907. # Check whether --with-db-lib was given.
  16908. if test "${with_db_lib+set}" = set; then :
  16909. withval=$with_db_lib;
  16910. if test -d "$withval"
  16911. then
  16912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16913. $as_echo "using $withval" >&6; }
  16914. db_lib="-L$withval"
  16915. db_libdir="$withval"
  16916. else
  16917. echo
  16918. as_fn_error $? "$withval not found" "$LINENO" 5
  16919. fi
  16920. else
  16921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16922. $as_echo "no" >&6; }
  16923. fi
  16924. if test -z "$db_inc"; then
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  16926. $as_echo_n "checking for db.h... " >&6; }
  16927. if test -f "/usr/include/db4/db.h"; then
  16928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  16929. $as_echo "using /usr/include/db4/db.h" >&6; }
  16930. db_incdir="/usr/include/db4"
  16931. db_inc="-I/usr/include/db4"
  16932. db_lib='-L$(libdir)'
  16933. db_libdir='$(libdir)'
  16934. elif test -f "/usr/include/libdb/db.h"; then
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  16936. $as_echo "using /usr/include/libdb/db.h" >&6; }
  16937. db_incdir="/usr/include/libdb"
  16938. db_inc="-I/usr/include/libdb"
  16939. db_lib='-L$(libdir)'
  16940. db_libdir='$(libdir)'
  16941. elif test -f "/usr/include/db.h"; then
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  16943. $as_echo "using /usr/include/db.h" >&6; }
  16944. db_incdir="/usr/include"
  16945. db_inc="-I/usr/include"
  16946. db_lib='-L$(libdir)'
  16947. db_libdir='$(libdir)'
  16948. else
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16950. $as_echo "no" >&6; }
  16951. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  16952. fi
  16953. fi
  16954. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  16955. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  16956. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  16957. db_libver=${db_ver_maj}.${db_ver_min}
  16958. save_ldflags="$LDFLAGS"
  16959. LDFLAGS="$db_lib $LDFLAGS"
  16960. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  16961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  16962. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  16963. if eval \${$as_ac_Lib+:} false; then :
  16964. $as_echo_n "(cached) " >&6
  16965. else
  16966. ac_check_lib_save_LIBS=$LIBS
  16967. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  16968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16969. /* end confdefs.h. */
  16970. /* Override any GCC internal prototype to avoid an error.
  16971. Use char because int might match the return type of a GCC
  16972. builtin and then its argument prototype would still apply. */
  16973. #ifdef __cplusplus
  16974. extern "C"
  16975. #endif
  16976. char db_create ();
  16977. int
  16978. main ()
  16979. {
  16980. return db_create ();
  16981. ;
  16982. return 0;
  16983. }
  16984. _ACEOF
  16985. if ac_fn_c_try_link "$LINENO"; then :
  16986. eval "$as_ac_Lib=yes"
  16987. else
  16988. eval "$as_ac_Lib=no"
  16989. fi
  16990. rm -f core conftest.err conftest.$ac_objext \
  16991. conftest$ac_exeext conftest.$ac_ext
  16992. LIBS=$ac_check_lib_save_LIBS
  16993. fi
  16994. eval ac_res=\$$as_ac_Lib
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16996. $as_echo "$ac_res" >&6; }
  16997. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16998. true
  16999. else
  17000. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17001. fi
  17002. LDFLAGS="$save_ldflags"
  17003. # if DB is not found yet, try pkg-config
  17004. # last resort
  17005. # Although the other db_* variables are correctly assigned at this point,
  17006. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17007. if test -n "$PKG_CONFIG"; then
  17008. if $PKG_CONFIG --exists db; then
  17009. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17010. else
  17011. db_bindir=/usr/bin
  17012. fi
  17013. else
  17014. db_bindir=/usr/bin
  17015. fi
  17016. # BEGIN COPYRIGHT BLOCK
  17017. # Copyright (C) 2007 Red Hat, Inc.
  17018. # All rights reserved.
  17019. #
  17020. # This program is free software; you can redistribute it and/or
  17021. # modify it under the terms of the GNU General Public License
  17022. # as published by the Free Software Foundation; either version 2
  17023. # of the License, or (at your option) any later version.
  17024. #
  17025. # This program is distributed in the hope that it will be useful,
  17026. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17027. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17028. # GNU General Public License for more details.
  17029. #
  17030. # You should have received a copy of the GNU General Public License
  17031. # along with this program; if not, write to the Free Software
  17032. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17033. #
  17034. # END COPYRIGHT BLOCK
  17035. # -*- tab-width: 4; -*-
  17036. # Configure paths for SASL
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17038. $as_echo "$as_me: checking for SASL..." >&6;}
  17039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17040. $as_echo_n "checking for --with-sasl... " >&6; }
  17041. # Check whether --with-sasl was given.
  17042. if test "${with_sasl+set}" = set; then :
  17043. withval=$with_sasl;
  17044. if test "$withval" = "yes"; then
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17046. $as_echo "yes" >&6; }
  17047. elif test "$withval" = "no"; then
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17049. $as_echo "no" >&6; }
  17050. as_fn_error $? "SASL is required." "$LINENO" 5
  17051. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17053. $as_echo "using $withval" >&6; }
  17054. if test -f "$withval/include/sasl/sasl.h"; then
  17055. sasl_inc="-I$withval/include/sasl"
  17056. elif test -f "$withval/include/sasl.h"; then
  17057. sasl_inc="-I$withval/include"
  17058. else
  17059. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17060. fi
  17061. sasl_lib="-L$withval/lib"
  17062. sasl_libdir="$withval/lib"
  17063. else
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17065. $as_echo "yes" >&6; }
  17066. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17067. fi
  17068. else
  17069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17070. $as_echo "yes" >&6; }
  17071. fi
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17073. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17074. # Check whether --with-sasl-inc was given.
  17075. if test "${with_sasl_inc+set}" = set; then :
  17076. withval=$with_sasl_inc;
  17077. if test -f "$withval"/sasl.h; then
  17078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17079. $as_echo "using $withval" >&6; }
  17080. sasl_inc="-I$withval"
  17081. else
  17082. echo
  17083. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17084. fi
  17085. else
  17086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17087. $as_echo "no" >&6; }
  17088. fi
  17089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17090. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17091. # Check whether --with-sasl-lib was given.
  17092. if test "${with_sasl_lib+set}" = set; then :
  17093. withval=$with_sasl_lib;
  17094. if test -d "$withval"; then
  17095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17096. $as_echo "using $withval" >&6; }
  17097. sasl_lib="-L$withval"
  17098. sasl_libdir="$withval"
  17099. else
  17100. echo
  17101. as_fn_error $? "$withval not found" "$LINENO" 5
  17102. fi
  17103. else
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17105. $as_echo "no" >&6; }
  17106. fi
  17107. if test -z "$sasl_inc"; then
  17108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17109. $as_echo_n "checking for sasl.h... " >&6; }
  17110. if test -f /usr/include/sasl/sasl.h; then
  17111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17112. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17113. sasl_inc="-I/usr/include/sasl"
  17114. elif test -f /usr/include/sasl.h; then
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17116. $as_echo "using /usr/include/sasl.h" >&6; }
  17117. sasl_inc="-I/usr/include"
  17118. else
  17119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17120. $as_echo "no" >&6; }
  17121. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17122. fi
  17123. fi
  17124. # BEGIN COPYRIGHT BLOCK
  17125. # Copyright (C) 2007 Red Hat, Inc.
  17126. # All rights reserved.
  17127. #
  17128. # This program is free software; you can redistribute it and/or
  17129. # modify it under the terms of the GNU General Public License
  17130. # as published by the Free Software Foundation; either version 2
  17131. # of the License, or (at your option) any later version.
  17132. #
  17133. # This program is distributed in the hope that it will be useful,
  17134. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17135. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17136. # GNU General Public License for more details.
  17137. #
  17138. # You should have received a copy of the GNU General Public License
  17139. # along with this program; if not, write to the Free Software
  17140. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17141. #
  17142. # END COPYRIGHT BLOCK
  17143. #
  17144. # Configure paths for SVRCORE
  17145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17146. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17148. $as_echo_n "checking for --with-svrcore... " >&6; }
  17149. # Check whether --with-svrcore was given.
  17150. if test "${with_svrcore+set}" = set; then :
  17151. withval=$with_svrcore;
  17152. if test "$withval" = "yes"; then
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17154. $as_echo "yes" >&6; }
  17155. elif test "$withval" = "no"; then
  17156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17157. $as_echo "no" >&6; }
  17158. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17159. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17161. $as_echo "using $withval" >&6; }
  17162. if test -f "$withval/include/svrcore.h"; then
  17163. svrcore_inc="-I$withval/include"
  17164. else
  17165. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17166. fi
  17167. svrcore_lib="-L$withval/lib"
  17168. else
  17169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17170. $as_echo "yes" >&6; }
  17171. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17172. fi
  17173. else
  17174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17175. $as_echo "yes" >&6; }
  17176. fi
  17177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17178. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17179. # Check whether --with-svrcore-inc was given.
  17180. if test "${with_svrcore_inc+set}" = set; then :
  17181. withval=$with_svrcore_inc;
  17182. if test -f "$withval"/svrcore.h; then
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17184. $as_echo "using $withval" >&6; }
  17185. svrcore_inc="-I$withval"
  17186. else
  17187. echo
  17188. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17189. fi
  17190. else
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17192. $as_echo "no" >&6; }
  17193. fi
  17194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17195. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17196. # Check whether --with-svrcore-lib was given.
  17197. if test "${with_svrcore_lib+set}" = set; then :
  17198. withval=$with_svrcore_lib;
  17199. if test -d "$withval"; then
  17200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17201. $as_echo "using $withval" >&6; }
  17202. svrcore_lib="-L$withval"
  17203. else
  17204. echo
  17205. as_fn_error $? "$withval not found" "$LINENO" 5
  17206. fi
  17207. else
  17208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17209. $as_echo "no" >&6; }
  17210. fi
  17211. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17212. # Extract the first word of "pkg-config", so it can be a program name with args.
  17213. set dummy pkg-config; ac_word=$2
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17215. $as_echo_n "checking for $ac_word... " >&6; }
  17216. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17217. $as_echo_n "(cached) " >&6
  17218. else
  17219. case $PKG_CONFIG in
  17220. [\\/]* | ?:[\\/]*)
  17221. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17222. ;;
  17223. *)
  17224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17225. for as_dir in $PATH
  17226. do
  17227. IFS=$as_save_IFS
  17228. test -z "$as_dir" && as_dir=.
  17229. for ac_exec_ext in '' $ac_executable_extensions; do
  17230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17231. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17233. break 2
  17234. fi
  17235. done
  17236. done
  17237. IFS=$as_save_IFS
  17238. ;;
  17239. esac
  17240. fi
  17241. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17242. if test -n "$PKG_CONFIG"; then
  17243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17244. $as_echo "$PKG_CONFIG" >&6; }
  17245. else
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17247. $as_echo "no" >&6; }
  17248. fi
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17250. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17251. if test -n "$PKG_CONFIG"; then
  17252. if $PKG_CONFIG --exists svrcore; then
  17253. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17254. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17256. $as_echo "using system svrcore" >&6; }
  17257. fi
  17258. fi
  17259. fi
  17260. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17262. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17263. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17264. $as_echo_n "(cached) " >&6
  17265. else
  17266. ac_check_lib_save_LIBS=$LIBS
  17267. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17269. /* end confdefs.h. */
  17270. /* Override any GCC internal prototype to avoid an error.
  17271. Use char because int might match the return type of a GCC
  17272. builtin and then its argument prototype would still apply. */
  17273. #ifdef __cplusplus
  17274. extern "C"
  17275. #endif
  17276. char SVRCORE_GetRegisteredPinObj ();
  17277. int
  17278. main ()
  17279. {
  17280. return SVRCORE_GetRegisteredPinObj ();
  17281. ;
  17282. return 0;
  17283. }
  17284. _ACEOF
  17285. if ac_fn_c_try_link "$LINENO"; then :
  17286. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17287. else
  17288. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17289. fi
  17290. rm -f core conftest.err conftest.$ac_objext \
  17291. conftest$ac_exeext conftest.$ac_ext
  17292. LIBS=$ac_check_lib_save_LIBS
  17293. fi
  17294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17295. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17296. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17297. havesvrcore=1
  17298. fi
  17299. if test -n "$havesvrcore" ; then
  17300. save_cppflags="$CPPFLAGS"
  17301. CPPFLAGS="$nss_inc $nspr_inc"
  17302. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17303. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17304. havesvrcore=1
  17305. else
  17306. havesvrcore=
  17307. fi
  17308. CPPFLAGS="$save_cppflags"
  17309. fi
  17310. if test -z "$havesvrcore" ; then
  17311. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17312. fi
  17313. fi
  17314. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17315. if test -f /usr/include/svrcore.h; then
  17316. svrcore_inc="-I/usr/include"
  17317. svrcore_lib="-L/usr/lib"
  17318. else
  17319. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17320. fi
  17321. fi
  17322. # BEGIN COPYRIGHT BLOCK
  17323. # Copyright (C) 2006 Red Hat, Inc.
  17324. # All rights reserved.
  17325. #
  17326. # This program is free software; you can redistribute it and/or
  17327. # modify it under the terms of the GNU General Public License
  17328. # as published by the Free Software Foundation; either version 2
  17329. # of the License, or (at your option) any later version.
  17330. #
  17331. # This program is distributed in the hope that it will be useful,
  17332. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17333. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17334. # GNU General Public License for more details.
  17335. #
  17336. # You should have received a copy of the GNU General Public License
  17337. # along with this program; if not, write to the Free Software
  17338. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17339. #
  17340. # END COPYRIGHT BLOCK
  17341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17342. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17343. # check for --with-icu
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17345. $as_echo_n "checking for --with-icu... " >&6; }
  17346. # Check whether --with-icu was given.
  17347. if test "${with_icu+set}" = set; then :
  17348. withval=$with_icu;
  17349. if test "$withval" = "yes"
  17350. then
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17352. $as_echo "yes" >&6; }
  17353. elif test "$withval" = "no"
  17354. then
  17355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17356. $as_echo "no" >&6; }
  17357. as_fn_error $? "ICU is required." "$LINENO" 5
  17358. elif test -d "$withval"/lib
  17359. then
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17361. $as_echo "using $withval" >&6; }
  17362. ICUDIR=$withval
  17363. icu_lib="-L$ICUDIR/lib"
  17364. icu_inc="-I$withval/include"
  17365. icu_bin="$withval/bin"
  17366. else
  17367. echo
  17368. as_fn_error $? "$withval not found" "$LINENO" 5
  17369. fi
  17370. else
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17372. $as_echo "yes" >&6; }
  17373. fi
  17374. # check for --with-icu-inc
  17375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17376. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17377. # Check whether --with-icu-inc was given.
  17378. if test "${with_icu_inc+set}" = set; then :
  17379. withval=$with_icu_inc;
  17380. if test -d "$withval"
  17381. then
  17382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17383. $as_echo "using $withval" >&6; }
  17384. icu_inc="-I$withval"
  17385. else
  17386. echo
  17387. as_fn_error $? "$withval not found" "$LINENO" 5
  17388. fi
  17389. else
  17390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17391. $as_echo "no" >&6; }
  17392. fi
  17393. # check for --with-icu-lib
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17395. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17396. # Check whether --with-icu-lib was given.
  17397. if test "${with_icu_lib+set}" = set; then :
  17398. withval=$with_icu_lib;
  17399. if test -d "$withval"
  17400. then
  17401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17402. $as_echo "using $withval" >&6; }
  17403. icu_lib="-L$withval"
  17404. else
  17405. echo
  17406. as_fn_error $? "$withval not found" "$LINENO" 5
  17407. fi
  17408. else
  17409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17410. $as_echo "no" >&6; }
  17411. fi
  17412. # check for --with-icu-bin
  17413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17414. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17415. # Check whether --with-icu-bin was given.
  17416. if test "${with_icu_bin+set}" = set; then :
  17417. withval=$with_icu_bin;
  17418. if test -d "$withval"
  17419. then
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17421. $as_echo "using $withval" >&6; }
  17422. icu_bin="$withval"
  17423. else
  17424. echo
  17425. as_fn_error $? "$withval not found" "$LINENO" 5
  17426. fi
  17427. else
  17428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17429. $as_echo "no" >&6; }
  17430. fi
  17431. # if ICU is not found yet, try pkg-config
  17432. # last resort
  17433. if test -z "$icu_lib"; then
  17434. # Extract the first word of "icu-config", so it can be a program name with args.
  17435. set dummy icu-config; ac_word=$2
  17436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17437. $as_echo_n "checking for $ac_word... " >&6; }
  17438. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17439. $as_echo_n "(cached) " >&6
  17440. else
  17441. case $ICU_CONFIG in
  17442. [\\/]* | ?:[\\/]*)
  17443. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17444. ;;
  17445. *)
  17446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17447. for as_dir in $PATH
  17448. do
  17449. IFS=$as_save_IFS
  17450. test -z "$as_dir" && as_dir=.
  17451. for ac_exec_ext in '' $ac_executable_extensions; do
  17452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17453. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17455. break 2
  17456. fi
  17457. done
  17458. done
  17459. IFS=$as_save_IFS
  17460. ;;
  17461. esac
  17462. fi
  17463. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17464. if test -n "$ICU_CONFIG"; then
  17465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17466. $as_echo "$ICU_CONFIG" >&6; }
  17467. else
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17469. $as_echo "no" >&6; }
  17470. fi
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17472. $as_echo_n "checking for icu with icu-config... " >&6; }
  17473. if test -n "$ICU_CONFIG"; then
  17474. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17475. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17476. icu_bin=`$ICU_CONFIG --bindir`
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17478. $as_echo "using system ICU" >&6; }
  17479. else
  17480. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17481. fi
  17482. fi
  17483. # BEGIN COPYRIGHT BLOCK
  17484. # Copyright (C) 2006 Red Hat, Inc.
  17485. # All rights reserved.
  17486. #
  17487. # This program is free software; you can redistribute it and/or
  17488. # modify it under the terms of the GNU General Public License
  17489. # as published by the Free Software Foundation; either version 2
  17490. # of the License, or (at your option) any later version.
  17491. #
  17492. # This program is distributed in the hope that it will be useful,
  17493. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17494. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17495. # GNU General Public License for more details.
  17496. #
  17497. # You should have received a copy of the GNU General Public License
  17498. # along with this program; if not, write to the Free Software
  17499. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17500. #
  17501. # END COPYRIGHT BLOCK
  17502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17503. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17505. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17506. # Check whether --with-netsnmp was given.
  17507. if test "${with_netsnmp+set}" = set; then :
  17508. withval=$with_netsnmp;
  17509. if test "$withval" = "yes"; then
  17510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17511. $as_echo "yes" >&6; }
  17512. elif test "$withval" = "no"; then
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17514. $as_echo "no" >&6; }
  17515. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17516. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17518. $as_echo "using $withval" >&6; }
  17519. NETSNMPDIR=$withval
  17520. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17521. netsnmp_inc="-I$withval/include"
  17522. else
  17523. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17524. fi
  17525. netsnmp_lib="-L$withval/lib"
  17526. netsnmp_libdir="$withval/lib"
  17527. else
  17528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17529. $as_echo "yes" >&6; }
  17530. as_fn_error $? "$withval not found" "$LINENO" 5
  17531. fi
  17532. else
  17533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17534. $as_echo "yes" >&6; }
  17535. fi
  17536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17537. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17538. # Check whether --with-netsnmp-inc was given.
  17539. if test "${with_netsnmp_inc+set}" = set; then :
  17540. withval=$with_netsnmp_inc;
  17541. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17543. $as_echo "using $withval" >&6; }
  17544. netsnmp_inc="-I$withval"
  17545. else
  17546. echo
  17547. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17548. fi
  17549. else
  17550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17551. $as_echo "no" >&6; }
  17552. fi
  17553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17554. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17555. # Check whether --with-netsnmp-lib was given.
  17556. if test "${with_netsnmp_lib+set}" = set; then :
  17557. withval=$with_netsnmp_lib;
  17558. if test -d "$withval"
  17559. then
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17561. $as_echo "using $withval" >&6; }
  17562. netsnmp_lib="-L$withval"
  17563. netsnmp_libdir="$withval"
  17564. else
  17565. echo
  17566. as_fn_error $? "$withval not found" "$LINENO" 5
  17567. fi
  17568. else
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17570. $as_echo "no" >&6; }
  17571. fi
  17572. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17574. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17575. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17577. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17578. netsnmp_inc="-I/usr/include"
  17579. else
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17581. $as_echo "no" >&6; }
  17582. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17583. fi
  17584. fi
  17585. if test -n "$netsnmp_inc"; then
  17586. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17587. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17588. else
  17589. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17590. set dummy net-snmp-config; ac_word=$2
  17591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17592. $as_echo_n "checking for $ac_word... " >&6; }
  17593. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17594. $as_echo_n "(cached) " >&6
  17595. else
  17596. case $NETSNMP_CONFIG in
  17597. [\\/]* | ?:[\\/]*)
  17598. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17599. ;;
  17600. *)
  17601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17602. for as_dir in $PATH
  17603. do
  17604. IFS=$as_save_IFS
  17605. test -z "$as_dir" && as_dir=.
  17606. for ac_exec_ext in '' $ac_executable_extensions; do
  17607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17608. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17610. break 2
  17611. fi
  17612. done
  17613. done
  17614. IFS=$as_save_IFS
  17615. ;;
  17616. esac
  17617. fi
  17618. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17619. if test -n "$NETSNMP_CONFIG"; then
  17620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17621. $as_echo "$NETSNMP_CONFIG" >&6; }
  17622. else
  17623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17624. $as_echo "no" >&6; }
  17625. fi
  17626. fi
  17627. if test -n "$NETSNMP_CONFIG"; then
  17628. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17629. else
  17630. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17631. fi
  17632. else
  17633. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17634. fi
  17635. # BEGIN COPYRIGHT BLOCK
  17636. # Copyright (C) 2008 Red Hat, Inc.
  17637. # All rights reserved.
  17638. #
  17639. # This program is free software; you can redistribute it and/or
  17640. # modify it under the terms of the GNU General Public License
  17641. # as published by the Free Software Foundation; either version 2
  17642. # of the License, or (at your option) any later version.
  17643. #
  17644. # This program is distributed in the hope that it will be useful,
  17645. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17646. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17647. # GNU General Public License for more details.
  17648. #
  17649. # You should have received a copy of the GNU General Public License
  17650. # along with this program; if not, write to the Free Software
  17651. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17652. #
  17653. # END COPYRIGHT BLOCK
  17654. # -*- tab-width: 4; -*-
  17655. # Configure paths for Kerberos
  17656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17657. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17658. if test -z "$with_kerberos" ; then
  17659. with_kerberos=yes # if not set on cmdline, set default
  17660. fi
  17661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17662. $as_echo_n "checking for --with-kerberos... " >&6; }
  17663. # Check whether --with-kerberos was given.
  17664. if test "${with_kerberos+set}" = set; then :
  17665. withval=$with_kerberos;
  17666. if test "x$withval" = "xyes"; then
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17668. $as_echo "yes" >&6; }
  17669. elif test "x$withval" = "xno"; then
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17671. $as_echo "no" >&6; }
  17672. with_kerberos=
  17673. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17675. $as_echo "using $withval" >&6; }
  17676. kerberos_incdir="$withval/include"
  17677. kerberos_libdir="$withval/lib"
  17678. else
  17679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17680. $as_echo "yes" >&6; }
  17681. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17682. fi
  17683. else
  17684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17685. $as_echo "no" >&6; }
  17686. with_kerberos=
  17687. fi
  17688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17689. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17690. # Check whether --with-kerberos-inc was given.
  17691. if test "${with_kerberos_inc+set}" = set; then :
  17692. withval=$with_kerberos_inc;
  17693. if test -f "$withval"/krb5.h; then
  17694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17695. $as_echo "using $withval" >&6; }
  17696. kerberos_incdir="$withval"
  17697. with_kerberos=yes # implies use of kerberos
  17698. else
  17699. echo
  17700. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17701. fi
  17702. else
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17704. $as_echo "no" >&6; }
  17705. fi
  17706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17707. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17708. # Check whether --with-kerberos-lib was given.
  17709. if test "${with_kerberos_lib+set}" = set; then :
  17710. withval=$with_kerberos_lib;
  17711. if test -d "$withval"; then
  17712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17713. $as_echo "using $withval" >&6; }
  17714. kerberos_libdir="$withval"
  17715. with_kerberos=yes # implies use of kerberos
  17716. else
  17717. echo
  17718. as_fn_error $? "$withval not found" "$LINENO" 5
  17719. fi
  17720. else
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17722. $as_echo "no" >&6; }
  17723. fi
  17724. if test -n "$with_kerberos" ; then
  17725. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17726. if test -z "$KRB5_CONFIG_BIN" ; then
  17727. # Extract the first word of "krb5-config", so it can be a program name with args.
  17728. set dummy krb5-config; ac_word=$2
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17730. $as_echo_n "checking for $ac_word... " >&6; }
  17731. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17732. $as_echo_n "(cached) " >&6
  17733. else
  17734. case $KRB5_CONFIG_BIN in
  17735. [\\/]* | ?:[\\/]*)
  17736. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17737. ;;
  17738. *)
  17739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17740. for as_dir in $PATH
  17741. do
  17742. IFS=$as_save_IFS
  17743. test -z "$as_dir" && as_dir=.
  17744. for ac_exec_ext in '' $ac_executable_extensions; do
  17745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17746. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17748. break 2
  17749. fi
  17750. done
  17751. done
  17752. IFS=$as_save_IFS
  17753. ;;
  17754. esac
  17755. fi
  17756. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17757. if test -n "$KRB5_CONFIG_BIN"; then
  17758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17759. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17760. else
  17761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17762. $as_echo "no" >&6; }
  17763. fi
  17764. fi
  17765. if test -n "$KRB5_CONFIG_BIN" ; then
  17766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17767. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17768. if test -z "$kerberos_libdir" ; then
  17769. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17770. fi
  17771. if test -z "$kerberos_incdir" ; then
  17772. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17773. fi
  17774. if test -n "$kerberos_lib" ; then
  17775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17776. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17777. have_krb5=yes
  17778. fi
  17779. fi
  17780. fi
  17781. fi
  17782. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17783. # save these in order to set them to use the check macros below
  17784. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17785. save_CPPFLAGS="$CPPFLAGS"
  17786. if test -n "$kerberos_incdir" ; then
  17787. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17788. fi
  17789. save_LDFLAGS="$LDFLAGS"
  17790. if test -n "$kerberos_libdir" ; then
  17791. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17792. fi
  17793. krb5_impl=mit
  17794. for ac_header in heim_err.h
  17795. do :
  17796. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17797. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17798. cat >>confdefs.h <<_ACEOF
  17799. #define HAVE_HEIM_ERR_H 1
  17800. _ACEOF
  17801. fi
  17802. done
  17803. if test $ac_cv_header_heim_err_h = yes ; then
  17804. krb5_impl=heimdal
  17805. fi
  17806. if test "x$krb5_impl" = "xmit"; then
  17807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17808. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17809. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17810. $as_echo_n "(cached) " >&6
  17811. else
  17812. ac_check_lib_save_LIBS=$LIBS
  17813. LIBS="-lk5crypto $LIBS"
  17814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17815. /* end confdefs.h. */
  17816. int
  17817. main ()
  17818. {
  17819. return main ();
  17820. ;
  17821. return 0;
  17822. }
  17823. _ACEOF
  17824. if ac_fn_c_try_link "$LINENO"; then :
  17825. ac_cv_lib_k5crypto_main=yes
  17826. else
  17827. ac_cv_lib_k5crypto_main=no
  17828. fi
  17829. rm -f core conftest.err conftest.$ac_objext \
  17830. conftest$ac_exeext conftest.$ac_ext
  17831. LIBS=$ac_check_lib_save_LIBS
  17832. fi
  17833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17834. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17835. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17836. krb5crypto=k5crypto
  17837. else
  17838. krb5crypto=crypto
  17839. fi
  17840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17841. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17842. if ${ac_cv_lib_krb5_main+:} false; then :
  17843. $as_echo_n "(cached) " >&6
  17844. else
  17845. ac_check_lib_save_LIBS=$LIBS
  17846. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17848. /* end confdefs.h. */
  17849. int
  17850. main ()
  17851. {
  17852. return main ();
  17853. ;
  17854. return 0;
  17855. }
  17856. _ACEOF
  17857. if ac_fn_c_try_link "$LINENO"; then :
  17858. ac_cv_lib_krb5_main=yes
  17859. else
  17860. ac_cv_lib_krb5_main=no
  17861. fi
  17862. rm -f core conftest.err conftest.$ac_objext \
  17863. conftest$ac_exeext conftest.$ac_ext
  17864. LIBS=$ac_check_lib_save_LIBS
  17865. fi
  17866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17867. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17868. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17869. have_krb5=yes
  17870. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17871. else
  17872. have_krb5=no
  17873. fi
  17874. elif test "x$krb5_impl" = "xheimdal"; then
  17875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17876. $as_echo_n "checking for main in -ldes... " >&6; }
  17877. if ${ac_cv_lib_des_main+:} false; then :
  17878. $as_echo_n "(cached) " >&6
  17879. else
  17880. ac_check_lib_save_LIBS=$LIBS
  17881. LIBS="-ldes $LIBS"
  17882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17883. /* end confdefs.h. */
  17884. int
  17885. main ()
  17886. {
  17887. return main ();
  17888. ;
  17889. return 0;
  17890. }
  17891. _ACEOF
  17892. if ac_fn_c_try_link "$LINENO"; then :
  17893. ac_cv_lib_des_main=yes
  17894. else
  17895. ac_cv_lib_des_main=no
  17896. fi
  17897. rm -f core conftest.err conftest.$ac_objext \
  17898. conftest$ac_exeext conftest.$ac_ext
  17899. LIBS=$ac_check_lib_save_LIBS
  17900. fi
  17901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17902. $as_echo "$ac_cv_lib_des_main" >&6; }
  17903. if test "x$ac_cv_lib_des_main" = xyes; then :
  17904. krb5crypto=des
  17905. else
  17906. krb5crypto=crypto
  17907. fi
  17908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17909. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17910. if ${ac_cv_lib_krb5_main+:} false; then :
  17911. $as_echo_n "(cached) " >&6
  17912. else
  17913. ac_check_lib_save_LIBS=$LIBS
  17914. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17916. /* end confdefs.h. */
  17917. int
  17918. main ()
  17919. {
  17920. return main ();
  17921. ;
  17922. return 0;
  17923. }
  17924. _ACEOF
  17925. if ac_fn_c_try_link "$LINENO"; then :
  17926. ac_cv_lib_krb5_main=yes
  17927. else
  17928. ac_cv_lib_krb5_main=no
  17929. fi
  17930. rm -f core conftest.err conftest.$ac_objext \
  17931. conftest$ac_exeext conftest.$ac_ext
  17932. LIBS=$ac_check_lib_save_LIBS
  17933. fi
  17934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17935. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17936. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17937. have_krb5=yes
  17938. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  17939. else
  17940. have_krb5=no
  17941. fi
  17942. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  17943. else
  17944. have_krb5=no
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  17946. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  17947. fi
  17948. # reset to original values
  17949. CPPFLAGS="$save_CPPFLAGS"
  17950. LDFLAGS="$save_LDFLAGS"
  17951. if test -n "$kerberos_incdir" ; then
  17952. kerberos_inc="-I$kerberos_incdir"
  17953. fi
  17954. if test -n "$kerberos_libdir" ; then
  17955. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  17956. fi
  17957. fi
  17958. if test -n "$with_kerberos" ; then
  17959. if test "x$have_krb5" = "xyes" ; then
  17960. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  17961. else
  17962. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  17963. fi
  17964. save_LIBS="$LIBS"
  17965. LIBS="$kerberos_lib"
  17966. save_CPPFLAGS="$CPPFLAGS"
  17967. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  17968. for ac_func in krb5_cc_new_unique
  17969. do :
  17970. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  17971. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  17972. cat >>confdefs.h <<_ACEOF
  17973. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  17974. _ACEOF
  17975. fi
  17976. done
  17977. LIBS="$save_LIBS"
  17978. CPPFLAGS="$save_CPPFLAGS"
  17979. fi
  17980. # BEGIN COPYRIGHT BLOCK
  17981. # Copyright (C) 2007 Red Hat, Inc.
  17982. # All rights reserved.
  17983. #
  17984. # This program is free software; you can redistribute it and/or
  17985. # modify it under the terms of the GNU General Public License
  17986. # as published by the Free Software Foundation; either version 2
  17987. # of the License, or (at your option) any later version.
  17988. #
  17989. # This program is distributed in the hope that it will be useful,
  17990. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17991. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17992. # GNU General Public License for more details.
  17993. #
  17994. # You should have received a copy of the GNU General Public License
  17995. # along with this program; if not, write to the Free Software
  17996. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17997. #
  17998. # END COPYRIGHT BLOCK
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  18000. $as_echo "$as_me: checking for PCRE..." >&6;}
  18001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  18002. $as_echo_n "checking for --with-pcre... " >&6; }
  18003. # Check whether --with-pcre was given.
  18004. if test "${with_pcre+set}" = set; then :
  18005. withval=$with_pcre;
  18006. if test "$withval" = "yes"; then
  18007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18008. $as_echo "yes" >&6; }
  18009. elif test "$withval" = "no"; then
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18011. $as_echo "no" >&6; }
  18012. as_fn_error $? "PCRE is required." "$LINENO" 5
  18013. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18015. $as_echo "using $withval" >&6; }
  18016. PCREDIR=$withval
  18017. pcre_lib="-L$PCREDIR/lib"
  18018. pcre_libdir="$PCREDIR/lib"
  18019. pcre_incdir="$PCREDIR/include"
  18020. if ! test -e "$pcre_incdir/pcre.h" ; then
  18021. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18022. fi
  18023. pcre_inc="-I$pcre_incdir"
  18024. else
  18025. echo
  18026. as_fn_error $? "$withval not found" "$LINENO" 5
  18027. fi
  18028. else
  18029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18030. $as_echo "yes" >&6; }
  18031. fi
  18032. #
  18033. # if PCRE is not found yet, try pkg-config
  18034. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18035. # Extract the first word of "pkg-config", so it can be a program name with args.
  18036. set dummy pkg-config; ac_word=$2
  18037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18038. $as_echo_n "checking for $ac_word... " >&6; }
  18039. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18040. $as_echo_n "(cached) " >&6
  18041. else
  18042. case $PKG_CONFIG in
  18043. [\\/]* | ?:[\\/]*)
  18044. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18045. ;;
  18046. *)
  18047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18048. for as_dir in $PATH
  18049. do
  18050. IFS=$as_save_IFS
  18051. test -z "$as_dir" && as_dir=.
  18052. for ac_exec_ext in '' $ac_executable_extensions; do
  18053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18054. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18056. break 2
  18057. fi
  18058. done
  18059. done
  18060. IFS=$as_save_IFS
  18061. ;;
  18062. esac
  18063. fi
  18064. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18065. if test -n "$PKG_CONFIG"; then
  18066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18067. $as_echo "$PKG_CONFIG" >&6; }
  18068. else
  18069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18070. $as_echo "no" >&6; }
  18071. fi
  18072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18073. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18074. if test -n "$PKG_CONFIG"; then
  18075. if $PKG_CONFIG --exists pcre; then
  18076. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18077. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18078. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18080. $as_echo "using system PCRE" >&6; }
  18081. elif $PKG_CONFIG --exists libpcre; then
  18082. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18083. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18084. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18086. $as_echo "using system PCRE" >&6; }
  18087. else
  18088. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18089. fi
  18090. fi
  18091. fi
  18092. if test -z "$pcre_inc"; then
  18093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18094. $as_echo_n "checking for pcre.h... " >&6; }
  18095. if test -f "/usr/include/pcre/pcre.h"; then
  18096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18097. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18098. pcre_incdir="/usr/include/pcre"
  18099. pcre_inc="-I/usr/include/pcre"
  18100. pcre_lib='-L$(libdir)'
  18101. pcre_libdir='$(libdir)'
  18102. elif test -f "/usr/include/pcre.h"; then
  18103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18104. $as_echo "using /usr/include/pcre.h" >&6; }
  18105. pcre_incdir="/usr/include"
  18106. pcre_inc="-I/usr/include"
  18107. pcre_lib='-L$(libdir)'
  18108. pcre_libdir='$(libdir)'
  18109. else
  18110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18111. $as_echo "no" >&6; }
  18112. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18113. fi
  18114. fi
  18115. # BEGIN COPYRIGHT BLOCK
  18116. # Copyright (C) 2009 Red Hat, Inc.
  18117. # All rights reserved.
  18118. #
  18119. # This program is free software; you can redistribute it and/or
  18120. # modify it under the terms of the GNU General Public License
  18121. # as published by the Free Software Foundation; either version 2
  18122. # of the License, or (at your option) any later version.
  18123. #
  18124. # This program is distributed in the hope that it will be useful,
  18125. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18126. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18127. # GNU General Public License for more details.
  18128. #
  18129. # You should have received a copy of the GNU General Public License
  18130. # along with this program; if not, write to the Free Software
  18131. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18132. #
  18133. # END COPYRIGHT BLOCK
  18134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18135. $as_echo "$as_me: checking for SELinux..." >&6;}
  18136. # check for --with-selinux
  18137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18138. $as_echo_n "checking for --with-selinux... " >&6; }
  18139. # Check whether --with-selinux was given.
  18140. if test "${with_selinux+set}" = set; then :
  18141. withval=$with_selinux;
  18142. if test "$withval" = "no"; then
  18143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18144. $as_echo "no" >&6; }
  18145. else
  18146. with_selinux=yes
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18148. $as_echo "yes" >&6; }
  18149. fi
  18150. else
  18151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18152. $as_echo "no" >&6; }
  18153. fi
  18154. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18155. # set sasl_path for wrapper scripts
  18156. if test -z "$sasl_libdir" ; then
  18157. sasl_path="$libdir/sasl2"
  18158. else
  18159. sasl_path="$sasl_libdir/sasl2"
  18160. fi
  18161. if test "$with_selinux" = "yes"; then
  18162. SELINUX_TRUE=
  18163. SELINUX_FALSE='#'
  18164. else
  18165. SELINUX_TRUE='#'
  18166. SELINUX_FALSE=
  18167. fi
  18168. if test "$with_openldap" = "yes"; then
  18169. OPENLDAP_TRUE=
  18170. OPENLDAP_FALSE='#'
  18171. else
  18172. OPENLDAP_TRUE='#'
  18173. OPENLDAP_FALSE=
  18174. fi
  18175. if test "$platform" = "solaris"; then
  18176. SOLARIS_TRUE=
  18177. SOLARIS_FALSE='#'
  18178. else
  18179. SOLARIS_TRUE='#'
  18180. SOLARIS_FALSE=
  18181. fi
  18182. if test "x$TARGET" = xSPARC; then
  18183. SPARC_TRUE=
  18184. SPARC_FALSE='#'
  18185. else
  18186. SPARC_TRUE='#'
  18187. SPARC_FALSE=
  18188. fi
  18189. # write out paths for binary components
  18190. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18191. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18192. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18193. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18194. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18195. # we remove them here
  18196. if test "$GCC" != yes ; then
  18197. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18198. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18199. cp -p libtool libtool.orig
  18200. cp -p libtool libtool.tmp
  18201. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18202. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18203. # perl produced write-only code . . .
  18204. sed -e '/^gcc_dir/ d' \
  18205. -e '/^gcc_ver/ d' \
  18206. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18207. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18208. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18209. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18210. libtool > libtool.tmp
  18211. cp -p libtool.tmp libtool
  18212. rm -f libtool.tmp
  18213. fi
  18214. ac_config_files="$ac_config_files Makefile"
  18215. cat >confcache <<\_ACEOF
  18216. # This file is a shell script that caches the results of configure
  18217. # tests run on this system so they can be shared between configure
  18218. # scripts and configure runs, see configure's option --config-cache.
  18219. # It is not useful on other systems. If it contains results you don't
  18220. # want to keep, you may remove or edit it.
  18221. #
  18222. # config.status only pays attention to the cache file if you give it
  18223. # the --recheck option to rerun configure.
  18224. #
  18225. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18226. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18227. # following values.
  18228. _ACEOF
  18229. # The following way of writing the cache mishandles newlines in values,
  18230. # but we know of no workaround that is simple, portable, and efficient.
  18231. # So, we kill variables containing newlines.
  18232. # Ultrix sh set writes to stderr and can't be redirected directly,
  18233. # and sets the high bit in the cache file unless we assign to the vars.
  18234. (
  18235. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18236. eval ac_val=\$$ac_var
  18237. case $ac_val in #(
  18238. *${as_nl}*)
  18239. case $ac_var in #(
  18240. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18241. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18242. esac
  18243. case $ac_var in #(
  18244. _ | IFS | as_nl) ;; #(
  18245. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18246. *) { eval $ac_var=; unset $ac_var;} ;;
  18247. esac ;;
  18248. esac
  18249. done
  18250. (set) 2>&1 |
  18251. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18252. *${as_nl}ac_space=\ *)
  18253. # `set' does not quote correctly, so add quotes: double-quote
  18254. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18255. sed -n \
  18256. "s/'/'\\\\''/g;
  18257. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18258. ;; #(
  18259. *)
  18260. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18261. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18262. ;;
  18263. esac |
  18264. sort
  18265. ) |
  18266. sed '
  18267. /^ac_cv_env_/b end
  18268. t clear
  18269. :clear
  18270. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18271. t end
  18272. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18273. :end' >>confcache
  18274. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18275. if test -w "$cache_file"; then
  18276. if test "x$cache_file" != "x/dev/null"; then
  18277. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18278. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18279. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18280. cat confcache >"$cache_file"
  18281. else
  18282. case $cache_file in #(
  18283. */* | ?:*)
  18284. mv -f confcache "$cache_file"$$ &&
  18285. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18286. *)
  18287. mv -f confcache "$cache_file" ;;
  18288. esac
  18289. fi
  18290. fi
  18291. else
  18292. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18293. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18294. fi
  18295. fi
  18296. rm -f confcache
  18297. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18298. # Let make expand exec_prefix.
  18299. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18300. DEFS=-DHAVE_CONFIG_H
  18301. ac_libobjs=
  18302. ac_ltlibobjs=
  18303. U=
  18304. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18305. # 1. Remove the extension, and $U if already installed.
  18306. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18307. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18308. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18309. # will be set to the directory where LIBOBJS objects are built.
  18310. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18311. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18312. done
  18313. LIBOBJS=$ac_libobjs
  18314. LTLIBOBJS=$ac_ltlibobjs
  18315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18316. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18317. if test -n "$am_sleep_pid"; then
  18318. # Hide warnings about reused PIDs.
  18319. wait $am_sleep_pid 2>/dev/null
  18320. fi
  18321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18322. $as_echo "done" >&6; }
  18323. if test -n "$EXEEXT"; then
  18324. am__EXEEXT_TRUE=
  18325. am__EXEEXT_FALSE='#'
  18326. else
  18327. am__EXEEXT_TRUE='#'
  18328. am__EXEEXT_FALSE=
  18329. fi
  18330. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18331. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18333. fi
  18334. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18335. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18337. fi
  18338. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18339. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18340. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18341. fi
  18342. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18343. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18344. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18345. fi
  18346. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18347. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18348. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18349. fi
  18350. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18351. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18352. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18353. fi
  18354. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18355. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18356. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18357. fi
  18358. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18359. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18360. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18361. fi
  18362. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18363. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18364. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18365. fi
  18366. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18367. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18368. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18369. fi
  18370. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18371. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18372. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18373. fi
  18374. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18375. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18376. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18377. fi
  18378. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18379. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18380. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18381. fi
  18382. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18383. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18384. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18385. fi
  18386. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18387. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18388. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18389. fi
  18390. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18391. as_fn_error $? "conditional \"WINNT\" was never defined.
  18392. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18393. fi
  18394. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18395. as_fn_error $? "conditional \"HPUX\" was never defined.
  18396. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18397. fi
  18398. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18399. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18400. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18401. fi
  18402. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18403. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18404. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18405. fi
  18406. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18407. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18408. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18409. fi
  18410. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18411. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18412. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18413. fi
  18414. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18415. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18416. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18417. fi
  18418. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18419. as_fn_error $? "conditional \"SPARC\" was never defined.
  18420. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18421. fi
  18422. : "${CONFIG_STATUS=./config.status}"
  18423. ac_write_fail=0
  18424. ac_clean_files_save=$ac_clean_files
  18425. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18426. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18427. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18428. as_write_fail=0
  18429. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18430. #! $SHELL
  18431. # Generated by $as_me.
  18432. # Run this file to recreate the current configuration.
  18433. # Compiler output produced by configure, useful for debugging
  18434. # configure, is in config.log if it exists.
  18435. debug=false
  18436. ac_cs_recheck=false
  18437. ac_cs_silent=false
  18438. SHELL=\${CONFIG_SHELL-$SHELL}
  18439. export SHELL
  18440. _ASEOF
  18441. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18442. ## -------------------- ##
  18443. ## M4sh Initialization. ##
  18444. ## -------------------- ##
  18445. # Be more Bourne compatible
  18446. DUALCASE=1; export DUALCASE # for MKS sh
  18447. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18448. emulate sh
  18449. NULLCMD=:
  18450. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18451. # is contrary to our usage. Disable this feature.
  18452. alias -g '${1+"$@"}'='"$@"'
  18453. setopt NO_GLOB_SUBST
  18454. else
  18455. case `(set -o) 2>/dev/null` in #(
  18456. *posix*) :
  18457. set -o posix ;; #(
  18458. *) :
  18459. ;;
  18460. esac
  18461. fi
  18462. as_nl='
  18463. '
  18464. export as_nl
  18465. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18466. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18467. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18468. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18469. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18470. # but without wasting forks for bash or zsh.
  18471. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18472. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18473. as_echo='print -r --'
  18474. as_echo_n='print -rn --'
  18475. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18476. as_echo='printf %s\n'
  18477. as_echo_n='printf %s'
  18478. else
  18479. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18480. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18481. as_echo_n='/usr/ucb/echo -n'
  18482. else
  18483. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18484. as_echo_n_body='eval
  18485. arg=$1;
  18486. case $arg in #(
  18487. *"$as_nl"*)
  18488. expr "X$arg" : "X\\(.*\\)$as_nl";
  18489. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18490. esac;
  18491. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18492. '
  18493. export as_echo_n_body
  18494. as_echo_n='sh -c $as_echo_n_body as_echo'
  18495. fi
  18496. export as_echo_body
  18497. as_echo='sh -c $as_echo_body as_echo'
  18498. fi
  18499. # The user is always right.
  18500. if test "${PATH_SEPARATOR+set}" != set; then
  18501. PATH_SEPARATOR=:
  18502. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18503. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18504. PATH_SEPARATOR=';'
  18505. }
  18506. fi
  18507. # IFS
  18508. # We need space, tab and new line, in precisely that order. Quoting is
  18509. # there to prevent editors from complaining about space-tab.
  18510. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18511. # splitting by setting IFS to empty value.)
  18512. IFS=" "" $as_nl"
  18513. # Find who we are. Look in the path if we contain no directory separator.
  18514. as_myself=
  18515. case $0 in #((
  18516. *[\\/]* ) as_myself=$0 ;;
  18517. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18518. for as_dir in $PATH
  18519. do
  18520. IFS=$as_save_IFS
  18521. test -z "$as_dir" && as_dir=.
  18522. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18523. done
  18524. IFS=$as_save_IFS
  18525. ;;
  18526. esac
  18527. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18528. # in which case we are not to be found in the path.
  18529. if test "x$as_myself" = x; then
  18530. as_myself=$0
  18531. fi
  18532. if test ! -f "$as_myself"; then
  18533. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18534. exit 1
  18535. fi
  18536. # Unset variables that we do not need and which cause bugs (e.g. in
  18537. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18538. # suppresses any "Segmentation fault" message there. '((' could
  18539. # trigger a bug in pdksh 5.2.14.
  18540. for as_var in BASH_ENV ENV MAIL MAILPATH
  18541. do eval test x\${$as_var+set} = xset \
  18542. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18543. done
  18544. PS1='$ '
  18545. PS2='> '
  18546. PS4='+ '
  18547. # NLS nuisances.
  18548. LC_ALL=C
  18549. export LC_ALL
  18550. LANGUAGE=C
  18551. export LANGUAGE
  18552. # CDPATH.
  18553. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18554. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18555. # ----------------------------------------
  18556. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18557. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18558. # script with STATUS, using 1 if that was 0.
  18559. as_fn_error ()
  18560. {
  18561. as_status=$1; test $as_status -eq 0 && as_status=1
  18562. if test "$4"; then
  18563. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18564. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18565. fi
  18566. $as_echo "$as_me: error: $2" >&2
  18567. as_fn_exit $as_status
  18568. } # as_fn_error
  18569. # as_fn_set_status STATUS
  18570. # -----------------------
  18571. # Set $? to STATUS, without forking.
  18572. as_fn_set_status ()
  18573. {
  18574. return $1
  18575. } # as_fn_set_status
  18576. # as_fn_exit STATUS
  18577. # -----------------
  18578. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18579. as_fn_exit ()
  18580. {
  18581. set +e
  18582. as_fn_set_status $1
  18583. exit $1
  18584. } # as_fn_exit
  18585. # as_fn_unset VAR
  18586. # ---------------
  18587. # Portably unset VAR.
  18588. as_fn_unset ()
  18589. {
  18590. { eval $1=; unset $1;}
  18591. }
  18592. as_unset=as_fn_unset
  18593. # as_fn_append VAR VALUE
  18594. # ----------------------
  18595. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18596. # advantage of any shell optimizations that allow amortized linear growth over
  18597. # repeated appends, instead of the typical quadratic growth present in naive
  18598. # implementations.
  18599. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18600. eval 'as_fn_append ()
  18601. {
  18602. eval $1+=\$2
  18603. }'
  18604. else
  18605. as_fn_append ()
  18606. {
  18607. eval $1=\$$1\$2
  18608. }
  18609. fi # as_fn_append
  18610. # as_fn_arith ARG...
  18611. # ------------------
  18612. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18613. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18614. # must be portable across $(()) and expr.
  18615. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18616. eval 'as_fn_arith ()
  18617. {
  18618. as_val=$(( $* ))
  18619. }'
  18620. else
  18621. as_fn_arith ()
  18622. {
  18623. as_val=`expr "$@" || test $? -eq 1`
  18624. }
  18625. fi # as_fn_arith
  18626. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18627. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18628. as_expr=expr
  18629. else
  18630. as_expr=false
  18631. fi
  18632. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18633. as_basename=basename
  18634. else
  18635. as_basename=false
  18636. fi
  18637. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18638. as_dirname=dirname
  18639. else
  18640. as_dirname=false
  18641. fi
  18642. as_me=`$as_basename -- "$0" ||
  18643. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18644. X"$0" : 'X\(//\)$' \| \
  18645. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18646. $as_echo X/"$0" |
  18647. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18648. s//\1/
  18649. q
  18650. }
  18651. /^X\/\(\/\/\)$/{
  18652. s//\1/
  18653. q
  18654. }
  18655. /^X\/\(\/\).*/{
  18656. s//\1/
  18657. q
  18658. }
  18659. s/.*/./; q'`
  18660. # Avoid depending upon Character Ranges.
  18661. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18662. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18663. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18664. as_cr_digits='0123456789'
  18665. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18666. ECHO_C= ECHO_N= ECHO_T=
  18667. case `echo -n x` in #(((((
  18668. -n*)
  18669. case `echo 'xy\c'` in
  18670. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18671. xy) ECHO_C='\c';;
  18672. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18673. ECHO_T=' ';;
  18674. esac;;
  18675. *)
  18676. ECHO_N='-n';;
  18677. esac
  18678. rm -f conf$$ conf$$.exe conf$$.file
  18679. if test -d conf$$.dir; then
  18680. rm -f conf$$.dir/conf$$.file
  18681. else
  18682. rm -f conf$$.dir
  18683. mkdir conf$$.dir 2>/dev/null
  18684. fi
  18685. if (echo >conf$$.file) 2>/dev/null; then
  18686. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18687. as_ln_s='ln -s'
  18688. # ... but there are two gotchas:
  18689. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18690. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18691. # In both cases, we have to default to `cp -pR'.
  18692. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18693. as_ln_s='cp -pR'
  18694. elif ln conf$$.file conf$$ 2>/dev/null; then
  18695. as_ln_s=ln
  18696. else
  18697. as_ln_s='cp -pR'
  18698. fi
  18699. else
  18700. as_ln_s='cp -pR'
  18701. fi
  18702. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18703. rmdir conf$$.dir 2>/dev/null
  18704. # as_fn_mkdir_p
  18705. # -------------
  18706. # Create "$as_dir" as a directory, including parents if necessary.
  18707. as_fn_mkdir_p ()
  18708. {
  18709. case $as_dir in #(
  18710. -*) as_dir=./$as_dir;;
  18711. esac
  18712. test -d "$as_dir" || eval $as_mkdir_p || {
  18713. as_dirs=
  18714. while :; do
  18715. case $as_dir in #(
  18716. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18717. *) as_qdir=$as_dir;;
  18718. esac
  18719. as_dirs="'$as_qdir' $as_dirs"
  18720. as_dir=`$as_dirname -- "$as_dir" ||
  18721. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18722. X"$as_dir" : 'X\(//\)[^/]' \| \
  18723. X"$as_dir" : 'X\(//\)$' \| \
  18724. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18725. $as_echo X"$as_dir" |
  18726. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18727. s//\1/
  18728. q
  18729. }
  18730. /^X\(\/\/\)[^/].*/{
  18731. s//\1/
  18732. q
  18733. }
  18734. /^X\(\/\/\)$/{
  18735. s//\1/
  18736. q
  18737. }
  18738. /^X\(\/\).*/{
  18739. s//\1/
  18740. q
  18741. }
  18742. s/.*/./; q'`
  18743. test -d "$as_dir" && break
  18744. done
  18745. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18746. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18747. } # as_fn_mkdir_p
  18748. if mkdir -p . 2>/dev/null; then
  18749. as_mkdir_p='mkdir -p "$as_dir"'
  18750. else
  18751. test -d ./-p && rmdir ./-p
  18752. as_mkdir_p=false
  18753. fi
  18754. # as_fn_executable_p FILE
  18755. # -----------------------
  18756. # Test if FILE is an executable regular file.
  18757. as_fn_executable_p ()
  18758. {
  18759. test -f "$1" && test -x "$1"
  18760. } # as_fn_executable_p
  18761. as_test_x='test -x'
  18762. as_executable_p=as_fn_executable_p
  18763. # Sed expression to map a string onto a valid CPP name.
  18764. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18765. # Sed expression to map a string onto a valid variable name.
  18766. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18767. exec 6>&1
  18768. ## ----------------------------------- ##
  18769. ## Main body of $CONFIG_STATUS script. ##
  18770. ## ----------------------------------- ##
  18771. _ASEOF
  18772. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18774. # Save the log message, to keep $0 and so on meaningful, and to
  18775. # report actual input values of CONFIG_FILES etc. instead of their
  18776. # values after options handling.
  18777. ac_log="
  18778. This file was extended by dirsrv $as_me 1.0, which was
  18779. generated by GNU Autoconf 2.69. Invocation command line was
  18780. CONFIG_FILES = $CONFIG_FILES
  18781. CONFIG_HEADERS = $CONFIG_HEADERS
  18782. CONFIG_LINKS = $CONFIG_LINKS
  18783. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18784. $ $0 $@
  18785. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18786. "
  18787. _ACEOF
  18788. case $ac_config_files in *"
  18789. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18790. esac
  18791. case $ac_config_headers in *"
  18792. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18793. esac
  18794. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18795. # Files that config.status was made for.
  18796. config_files="$ac_config_files"
  18797. config_headers="$ac_config_headers"
  18798. config_commands="$ac_config_commands"
  18799. _ACEOF
  18800. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18801. ac_cs_usage="\
  18802. \`$as_me' instantiates files and other configuration actions
  18803. from templates according to the current configuration. Unless the files
  18804. and actions are specified as TAGs, all are instantiated by default.
  18805. Usage: $0 [OPTION]... [TAG]...
  18806. -h, --help print this help, then exit
  18807. -V, --version print version number and configuration settings, then exit
  18808. --config print configuration, then exit
  18809. -q, --quiet, --silent
  18810. do not print progress messages
  18811. -d, --debug don't remove temporary files
  18812. --recheck update $as_me by reconfiguring in the same conditions
  18813. --file=FILE[:TEMPLATE]
  18814. instantiate the configuration file FILE
  18815. --header=FILE[:TEMPLATE]
  18816. instantiate the configuration header FILE
  18817. Configuration files:
  18818. $config_files
  18819. Configuration headers:
  18820. $config_headers
  18821. Configuration commands:
  18822. $config_commands
  18823. Report bugs to <http://bugzilla.redhat.com/>."
  18824. _ACEOF
  18825. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18826. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18827. ac_cs_version="\\
  18828. dirsrv config.status 1.0
  18829. configured by $0, generated by GNU Autoconf 2.69,
  18830. with options \\"\$ac_cs_config\\"
  18831. Copyright (C) 2012 Free Software Foundation, Inc.
  18832. This config.status script is free software; the Free Software Foundation
  18833. gives unlimited permission to copy, distribute and modify it."
  18834. ac_pwd='$ac_pwd'
  18835. srcdir='$srcdir'
  18836. INSTALL='$INSTALL'
  18837. MKDIR_P='$MKDIR_P'
  18838. AWK='$AWK'
  18839. test -n "\$AWK" || AWK=awk
  18840. _ACEOF
  18841. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18842. # The default lists apply if the user does not specify any file.
  18843. ac_need_defaults=:
  18844. while test $# != 0
  18845. do
  18846. case $1 in
  18847. --*=?*)
  18848. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18849. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18850. ac_shift=:
  18851. ;;
  18852. --*=)
  18853. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18854. ac_optarg=
  18855. ac_shift=:
  18856. ;;
  18857. *)
  18858. ac_option=$1
  18859. ac_optarg=$2
  18860. ac_shift=shift
  18861. ;;
  18862. esac
  18863. case $ac_option in
  18864. # Handling of the options.
  18865. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18866. ac_cs_recheck=: ;;
  18867. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18868. $as_echo "$ac_cs_version"; exit ;;
  18869. --config | --confi | --conf | --con | --co | --c )
  18870. $as_echo "$ac_cs_config"; exit ;;
  18871. --debug | --debu | --deb | --de | --d | -d )
  18872. debug=: ;;
  18873. --file | --fil | --fi | --f )
  18874. $ac_shift
  18875. case $ac_optarg in
  18876. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18877. '') as_fn_error $? "missing file argument" ;;
  18878. esac
  18879. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18880. ac_need_defaults=false;;
  18881. --header | --heade | --head | --hea )
  18882. $ac_shift
  18883. case $ac_optarg in
  18884. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18885. esac
  18886. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18887. ac_need_defaults=false;;
  18888. --he | --h)
  18889. # Conflict between --help and --header
  18890. as_fn_error $? "ambiguous option: \`$1'
  18891. Try \`$0 --help' for more information.";;
  18892. --help | --hel | -h )
  18893. $as_echo "$ac_cs_usage"; exit ;;
  18894. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18895. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18896. ac_cs_silent=: ;;
  18897. # This is an error.
  18898. -*) as_fn_error $? "unrecognized option: \`$1'
  18899. Try \`$0 --help' for more information." ;;
  18900. *) as_fn_append ac_config_targets " $1"
  18901. ac_need_defaults=false ;;
  18902. esac
  18903. shift
  18904. done
  18905. ac_configure_extra_args=
  18906. if $ac_cs_silent; then
  18907. exec 6>/dev/null
  18908. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18909. fi
  18910. _ACEOF
  18911. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18912. if \$ac_cs_recheck; then
  18913. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18914. shift
  18915. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18916. CONFIG_SHELL='$SHELL'
  18917. export CONFIG_SHELL
  18918. exec "\$@"
  18919. fi
  18920. _ACEOF
  18921. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18922. exec 5>>config.log
  18923. {
  18924. echo
  18925. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18926. ## Running $as_me. ##
  18927. _ASBOX
  18928. $as_echo "$ac_log"
  18929. } >&5
  18930. _ACEOF
  18931. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18932. #
  18933. # INIT-COMMANDS
  18934. #
  18935. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18936. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18937. # if CDPATH is set.
  18938. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18939. sed_quote_subst='$sed_quote_subst'
  18940. double_quote_subst='$double_quote_subst'
  18941. delay_variable_subst='$delay_variable_subst'
  18942. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18943. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18944. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18945. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18946. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18947. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18948. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18949. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18950. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18951. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18952. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18953. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18954. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18955. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18956. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18957. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18958. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18959. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18960. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18961. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18962. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18963. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18964. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18965. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18966. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18967. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18968. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18969. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18970. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18971. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18972. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18973. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18974. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18975. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18976. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18977. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18978. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18979. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18980. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18981. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18982. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18983. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18984. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18985. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18986. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18987. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18988. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18989. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18990. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18991. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18992. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18993. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18994. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18995. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18996. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18997. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18998. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18999. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19000. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19001. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19002. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19003. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19004. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19005. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19006. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19007. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19008. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19009. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19010. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19011. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19012. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19013. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19014. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19015. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19016. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19017. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19018. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19019. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19020. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19021. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19022. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19023. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19024. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19025. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19026. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19027. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19028. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19029. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19030. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19031. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19032. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19033. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19034. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19035. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19036. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19037. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19038. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19039. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19040. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19041. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19042. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19043. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19044. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19045. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19046. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19047. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19048. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19049. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19050. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19051. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19052. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19053. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19054. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19055. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19056. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19057. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19058. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19059. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19060. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19061. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19062. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19063. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19064. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19065. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19066. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19067. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19068. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19069. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19070. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19071. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19072. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19073. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19074. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19075. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19076. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19077. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19078. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19079. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19080. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19081. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19082. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19083. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19084. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19085. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19086. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19087. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19088. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19089. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19090. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19091. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19092. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19093. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19094. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19095. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19096. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19097. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19098. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19099. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19100. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19101. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19102. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19103. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19104. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19105. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19106. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19107. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19108. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19109. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19110. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19111. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19112. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19113. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19114. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19115. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19116. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19117. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19118. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19119. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19120. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19121. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19122. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19123. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19124. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19125. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19126. LTCC='$LTCC'
  19127. LTCFLAGS='$LTCFLAGS'
  19128. compiler='$compiler_DEFAULT'
  19129. # A function that is used when there is no print builtin or printf.
  19130. func_fallback_echo ()
  19131. {
  19132. eval 'cat <<_LTECHO_EOF
  19133. \$1
  19134. _LTECHO_EOF'
  19135. }
  19136. # Quote evaled strings.
  19137. for var in SHELL \
  19138. ECHO \
  19139. PATH_SEPARATOR \
  19140. SED \
  19141. GREP \
  19142. EGREP \
  19143. FGREP \
  19144. LD \
  19145. NM \
  19146. LN_S \
  19147. lt_SP2NL \
  19148. lt_NL2SP \
  19149. reload_flag \
  19150. OBJDUMP \
  19151. deplibs_check_method \
  19152. file_magic_cmd \
  19153. file_magic_glob \
  19154. want_nocaseglob \
  19155. DLLTOOL \
  19156. sharedlib_from_linklib_cmd \
  19157. AR \
  19158. AR_FLAGS \
  19159. archiver_list_spec \
  19160. STRIP \
  19161. RANLIB \
  19162. CC \
  19163. CFLAGS \
  19164. compiler \
  19165. lt_cv_sys_global_symbol_pipe \
  19166. lt_cv_sys_global_symbol_to_cdecl \
  19167. lt_cv_sys_global_symbol_to_c_name_address \
  19168. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19169. nm_file_list_spec \
  19170. lt_prog_compiler_no_builtin_flag \
  19171. lt_prog_compiler_pic \
  19172. lt_prog_compiler_wl \
  19173. lt_prog_compiler_static \
  19174. lt_cv_prog_compiler_c_o \
  19175. need_locks \
  19176. MANIFEST_TOOL \
  19177. DSYMUTIL \
  19178. NMEDIT \
  19179. LIPO \
  19180. OTOOL \
  19181. OTOOL64 \
  19182. shrext_cmds \
  19183. export_dynamic_flag_spec \
  19184. whole_archive_flag_spec \
  19185. compiler_needs_object \
  19186. with_gnu_ld \
  19187. allow_undefined_flag \
  19188. no_undefined_flag \
  19189. hardcode_libdir_flag_spec \
  19190. hardcode_libdir_separator \
  19191. exclude_expsyms \
  19192. include_expsyms \
  19193. file_list_spec \
  19194. variables_saved_for_relink \
  19195. libname_spec \
  19196. library_names_spec \
  19197. soname_spec \
  19198. install_override_mode \
  19199. finish_eval \
  19200. old_striplib \
  19201. striplib \
  19202. compiler_lib_search_dirs \
  19203. predep_objects \
  19204. postdep_objects \
  19205. predeps \
  19206. postdeps \
  19207. compiler_lib_search_path \
  19208. LD_CXX \
  19209. reload_flag_CXX \
  19210. compiler_CXX \
  19211. lt_prog_compiler_no_builtin_flag_CXX \
  19212. lt_prog_compiler_pic_CXX \
  19213. lt_prog_compiler_wl_CXX \
  19214. lt_prog_compiler_static_CXX \
  19215. lt_cv_prog_compiler_c_o_CXX \
  19216. export_dynamic_flag_spec_CXX \
  19217. whole_archive_flag_spec_CXX \
  19218. compiler_needs_object_CXX \
  19219. with_gnu_ld_CXX \
  19220. allow_undefined_flag_CXX \
  19221. no_undefined_flag_CXX \
  19222. hardcode_libdir_flag_spec_CXX \
  19223. hardcode_libdir_separator_CXX \
  19224. exclude_expsyms_CXX \
  19225. include_expsyms_CXX \
  19226. file_list_spec_CXX \
  19227. compiler_lib_search_dirs_CXX \
  19228. predep_objects_CXX \
  19229. postdep_objects_CXX \
  19230. predeps_CXX \
  19231. postdeps_CXX \
  19232. compiler_lib_search_path_CXX; do
  19233. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19234. *[\\\\\\\`\\"\\\$]*)
  19235. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19236. ;;
  19237. *)
  19238. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19239. ;;
  19240. esac
  19241. done
  19242. # Double-quote double-evaled strings.
  19243. for var in reload_cmds \
  19244. old_postinstall_cmds \
  19245. old_postuninstall_cmds \
  19246. old_archive_cmds \
  19247. extract_expsyms_cmds \
  19248. old_archive_from_new_cmds \
  19249. old_archive_from_expsyms_cmds \
  19250. archive_cmds \
  19251. archive_expsym_cmds \
  19252. module_cmds \
  19253. module_expsym_cmds \
  19254. export_symbols_cmds \
  19255. prelink_cmds \
  19256. postlink_cmds \
  19257. postinstall_cmds \
  19258. postuninstall_cmds \
  19259. finish_cmds \
  19260. sys_lib_search_path_spec \
  19261. sys_lib_dlsearch_path_spec \
  19262. reload_cmds_CXX \
  19263. old_archive_cmds_CXX \
  19264. old_archive_from_new_cmds_CXX \
  19265. old_archive_from_expsyms_cmds_CXX \
  19266. archive_cmds_CXX \
  19267. archive_expsym_cmds_CXX \
  19268. module_cmds_CXX \
  19269. module_expsym_cmds_CXX \
  19270. export_symbols_cmds_CXX \
  19271. prelink_cmds_CXX \
  19272. postlink_cmds_CXX; do
  19273. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19274. *[\\\\\\\`\\"\\\$]*)
  19275. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19276. ;;
  19277. *)
  19278. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19279. ;;
  19280. esac
  19281. done
  19282. ac_aux_dir='$ac_aux_dir'
  19283. xsi_shell='$xsi_shell'
  19284. lt_shell_append='$lt_shell_append'
  19285. # See if we are running on zsh, and set the options which allow our
  19286. # commands through without removal of \ escapes INIT.
  19287. if test -n "\${ZSH_VERSION+set}" ; then
  19288. setopt NO_GLOB_SUBST
  19289. fi
  19290. PACKAGE='$PACKAGE'
  19291. VERSION='$VERSION'
  19292. TIMESTAMP='$TIMESTAMP'
  19293. RM='$RM'
  19294. ofile='$ofile'
  19295. _ACEOF
  19296. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19297. # Handling of arguments.
  19298. for ac_config_target in $ac_config_targets
  19299. do
  19300. case $ac_config_target in
  19301. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19302. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19303. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19304. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19305. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19306. esac
  19307. done
  19308. # If the user did not use the arguments to specify the items to instantiate,
  19309. # then the envvar interface is used. Set only those that are not.
  19310. # We use the long form for the default assignment because of an extremely
  19311. # bizarre bug on SunOS 4.1.3.
  19312. if $ac_need_defaults; then
  19313. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19314. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19315. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19316. fi
  19317. # Have a temporary directory for convenience. Make it in the build tree
  19318. # simply because there is no reason against having it here, and in addition,
  19319. # creating and moving files from /tmp can sometimes cause problems.
  19320. # Hook for its removal unless debugging.
  19321. # Note that there is a small window in which the directory will not be cleaned:
  19322. # after its creation but before its name has been assigned to `$tmp'.
  19323. $debug ||
  19324. {
  19325. tmp= ac_tmp=
  19326. trap 'exit_status=$?
  19327. : "${ac_tmp:=$tmp}"
  19328. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19329. ' 0
  19330. trap 'as_fn_exit 1' 1 2 13 15
  19331. }
  19332. # Create a (secure) tmp directory for tmp files.
  19333. {
  19334. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19335. test -d "$tmp"
  19336. } ||
  19337. {
  19338. tmp=./conf$$-$RANDOM
  19339. (umask 077 && mkdir "$tmp")
  19340. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19341. ac_tmp=$tmp
  19342. # Set up the scripts for CONFIG_FILES section.
  19343. # No need to generate them if there are no CONFIG_FILES.
  19344. # This happens for instance with `./config.status config.h'.
  19345. if test -n "$CONFIG_FILES"; then
  19346. ac_cr=`echo X | tr X '\015'`
  19347. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19348. # But we know of no other shell where ac_cr would be empty at this
  19349. # point, so we can use a bashism as a fallback.
  19350. if test "x$ac_cr" = x; then
  19351. eval ac_cr=\$\'\\r\'
  19352. fi
  19353. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19354. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19355. ac_cs_awk_cr='\\r'
  19356. else
  19357. ac_cs_awk_cr=$ac_cr
  19358. fi
  19359. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19360. _ACEOF
  19361. {
  19362. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19363. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19364. echo "_ACEOF"
  19365. } >conf$$subs.sh ||
  19366. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19367. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19368. ac_delim='%!_!# '
  19369. for ac_last_try in false false false false false :; do
  19370. . ./conf$$subs.sh ||
  19371. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19372. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19373. if test $ac_delim_n = $ac_delim_num; then
  19374. break
  19375. elif $ac_last_try; then
  19376. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19377. else
  19378. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19379. fi
  19380. done
  19381. rm -f conf$$subs.sh
  19382. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19383. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19384. _ACEOF
  19385. sed -n '
  19386. h
  19387. s/^/S["/; s/!.*/"]=/
  19388. p
  19389. g
  19390. s/^[^!]*!//
  19391. :repl
  19392. t repl
  19393. s/'"$ac_delim"'$//
  19394. t delim
  19395. :nl
  19396. h
  19397. s/\(.\{148\}\)..*/\1/
  19398. t more1
  19399. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19400. p
  19401. n
  19402. b repl
  19403. :more1
  19404. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19405. p
  19406. g
  19407. s/.\{148\}//
  19408. t nl
  19409. :delim
  19410. h
  19411. s/\(.\{148\}\)..*/\1/
  19412. t more2
  19413. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19414. p
  19415. b
  19416. :more2
  19417. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19418. p
  19419. g
  19420. s/.\{148\}//
  19421. t delim
  19422. ' <conf$$subs.awk | sed '
  19423. /^[^""]/{
  19424. N
  19425. s/\n//
  19426. }
  19427. ' >>$CONFIG_STATUS || ac_write_fail=1
  19428. rm -f conf$$subs.awk
  19429. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19430. _ACAWK
  19431. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19432. for (key in S) S_is_set[key] = 1
  19433. FS = ""
  19434. }
  19435. {
  19436. line = $ 0
  19437. nfields = split(line, field, "@")
  19438. substed = 0
  19439. len = length(field[1])
  19440. for (i = 2; i < nfields; i++) {
  19441. key = field[i]
  19442. keylen = length(key)
  19443. if (S_is_set[key]) {
  19444. value = S[key]
  19445. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19446. len += length(value) + length(field[++i])
  19447. substed = 1
  19448. } else
  19449. len += 1 + keylen
  19450. }
  19451. print line
  19452. }
  19453. _ACAWK
  19454. _ACEOF
  19455. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19456. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19457. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19458. else
  19459. cat
  19460. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19461. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19462. _ACEOF
  19463. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19464. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19465. # trailing colons and then remove the whole line if VPATH becomes empty
  19466. # (actually we leave an empty line to preserve line numbers).
  19467. if test "x$srcdir" = x.; then
  19468. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19469. h
  19470. s///
  19471. s/^/:/
  19472. s/[ ]*$/:/
  19473. s/:\$(srcdir):/:/g
  19474. s/:\${srcdir}:/:/g
  19475. s/:@srcdir@:/:/g
  19476. s/^:*//
  19477. s/:*$//
  19478. x
  19479. s/\(=[ ]*\).*/\1/
  19480. G
  19481. s/\n//
  19482. s/^[^=]*=[ ]*$//
  19483. }'
  19484. fi
  19485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19486. fi # test -n "$CONFIG_FILES"
  19487. # Set up the scripts for CONFIG_HEADERS section.
  19488. # No need to generate them if there are no CONFIG_HEADERS.
  19489. # This happens for instance with `./config.status Makefile'.
  19490. if test -n "$CONFIG_HEADERS"; then
  19491. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19492. BEGIN {
  19493. _ACEOF
  19494. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19495. # here-document in config.status, that substitutes the proper values into
  19496. # config.h.in to produce config.h.
  19497. # Create a delimiter string that does not exist in confdefs.h, to ease
  19498. # handling of long lines.
  19499. ac_delim='%!_!# '
  19500. for ac_last_try in false false :; do
  19501. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19502. if test -z "$ac_tt"; then
  19503. break
  19504. elif $ac_last_try; then
  19505. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19506. else
  19507. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19508. fi
  19509. done
  19510. # For the awk script, D is an array of macro values keyed by name,
  19511. # likewise P contains macro parameters if any. Preserve backslash
  19512. # newline sequences.
  19513. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19514. sed -n '
  19515. s/.\{148\}/&'"$ac_delim"'/g
  19516. t rset
  19517. :rset
  19518. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19519. t def
  19520. d
  19521. :def
  19522. s/\\$//
  19523. t bsnl
  19524. s/["\\]/\\&/g
  19525. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19526. D["\1"]=" \3"/p
  19527. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19528. d
  19529. :bsnl
  19530. s/["\\]/\\&/g
  19531. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19532. D["\1"]=" \3\\\\\\n"\\/p
  19533. t cont
  19534. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19535. t cont
  19536. d
  19537. :cont
  19538. n
  19539. s/.\{148\}/&'"$ac_delim"'/g
  19540. t clear
  19541. :clear
  19542. s/\\$//
  19543. t bsnlc
  19544. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19545. d
  19546. :bsnlc
  19547. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19548. b cont
  19549. ' <confdefs.h | sed '
  19550. s/'"$ac_delim"'/"\\\
  19551. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19552. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19553. for (key in D) D_is_set[key] = 1
  19554. FS = ""
  19555. }
  19556. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19557. line = \$ 0
  19558. split(line, arg, " ")
  19559. if (arg[1] == "#") {
  19560. defundef = arg[2]
  19561. mac1 = arg[3]
  19562. } else {
  19563. defundef = substr(arg[1], 2)
  19564. mac1 = arg[2]
  19565. }
  19566. split(mac1, mac2, "(") #)
  19567. macro = mac2[1]
  19568. prefix = substr(line, 1, index(line, defundef) - 1)
  19569. if (D_is_set[macro]) {
  19570. # Preserve the white space surrounding the "#".
  19571. print prefix "define", macro P[macro] D[macro]
  19572. next
  19573. } else {
  19574. # Replace #undef with comments. This is necessary, for example,
  19575. # in the case of _POSIX_SOURCE, which is predefined and required
  19576. # on some systems where configure will not decide to define it.
  19577. if (defundef == "undef") {
  19578. print "/*", prefix defundef, macro, "*/"
  19579. next
  19580. }
  19581. }
  19582. }
  19583. { print }
  19584. _ACAWK
  19585. _ACEOF
  19586. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19587. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19588. fi # test -n "$CONFIG_HEADERS"
  19589. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19590. shift
  19591. for ac_tag
  19592. do
  19593. case $ac_tag in
  19594. :[FHLC]) ac_mode=$ac_tag; continue;;
  19595. esac
  19596. case $ac_mode$ac_tag in
  19597. :[FHL]*:*);;
  19598. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19599. :[FH]-) ac_tag=-:-;;
  19600. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19601. esac
  19602. ac_save_IFS=$IFS
  19603. IFS=:
  19604. set x $ac_tag
  19605. IFS=$ac_save_IFS
  19606. shift
  19607. ac_file=$1
  19608. shift
  19609. case $ac_mode in
  19610. :L) ac_source=$1;;
  19611. :[FH])
  19612. ac_file_inputs=
  19613. for ac_f
  19614. do
  19615. case $ac_f in
  19616. -) ac_f="$ac_tmp/stdin";;
  19617. *) # Look for the file first in the build tree, then in the source tree
  19618. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19619. # because $ac_f cannot contain `:'.
  19620. test -f "$ac_f" ||
  19621. case $ac_f in
  19622. [\\/$]*) false;;
  19623. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19624. esac ||
  19625. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19626. esac
  19627. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19628. as_fn_append ac_file_inputs " '$ac_f'"
  19629. done
  19630. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19631. # use $as_me), people would be surprised to read:
  19632. # /* config.h. Generated by config.status. */
  19633. configure_input='Generated from '`
  19634. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19635. `' by configure.'
  19636. if test x"$ac_file" != x-; then
  19637. configure_input="$ac_file. $configure_input"
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19639. $as_echo "$as_me: creating $ac_file" >&6;}
  19640. fi
  19641. # Neutralize special characters interpreted by sed in replacement strings.
  19642. case $configure_input in #(
  19643. *\&* | *\|* | *\\* )
  19644. ac_sed_conf_input=`$as_echo "$configure_input" |
  19645. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19646. *) ac_sed_conf_input=$configure_input;;
  19647. esac
  19648. case $ac_tag in
  19649. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19650. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19651. esac
  19652. ;;
  19653. esac
  19654. ac_dir=`$as_dirname -- "$ac_file" ||
  19655. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19656. X"$ac_file" : 'X\(//\)[^/]' \| \
  19657. X"$ac_file" : 'X\(//\)$' \| \
  19658. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19659. $as_echo X"$ac_file" |
  19660. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19661. s//\1/
  19662. q
  19663. }
  19664. /^X\(\/\/\)[^/].*/{
  19665. s//\1/
  19666. q
  19667. }
  19668. /^X\(\/\/\)$/{
  19669. s//\1/
  19670. q
  19671. }
  19672. /^X\(\/\).*/{
  19673. s//\1/
  19674. q
  19675. }
  19676. s/.*/./; q'`
  19677. as_dir="$ac_dir"; as_fn_mkdir_p
  19678. ac_builddir=.
  19679. case "$ac_dir" in
  19680. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19681. *)
  19682. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19683. # A ".." for each directory in $ac_dir_suffix.
  19684. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19685. case $ac_top_builddir_sub in
  19686. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19687. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19688. esac ;;
  19689. esac
  19690. ac_abs_top_builddir=$ac_pwd
  19691. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19692. # for backward compatibility:
  19693. ac_top_builddir=$ac_top_build_prefix
  19694. case $srcdir in
  19695. .) # We are building in place.
  19696. ac_srcdir=.
  19697. ac_top_srcdir=$ac_top_builddir_sub
  19698. ac_abs_top_srcdir=$ac_pwd ;;
  19699. [\\/]* | ?:[\\/]* ) # Absolute name.
  19700. ac_srcdir=$srcdir$ac_dir_suffix;
  19701. ac_top_srcdir=$srcdir
  19702. ac_abs_top_srcdir=$srcdir ;;
  19703. *) # Relative name.
  19704. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19705. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19706. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19707. esac
  19708. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19709. case $ac_mode in
  19710. :F)
  19711. #
  19712. # CONFIG_FILE
  19713. #
  19714. case $INSTALL in
  19715. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19716. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19717. esac
  19718. ac_MKDIR_P=$MKDIR_P
  19719. case $MKDIR_P in
  19720. [\\/$]* | ?:[\\/]* ) ;;
  19721. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19722. esac
  19723. _ACEOF
  19724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19725. # If the template does not know about datarootdir, expand it.
  19726. # FIXME: This hack should be removed a few years after 2.60.
  19727. ac_datarootdir_hack=; ac_datarootdir_seen=
  19728. ac_sed_dataroot='
  19729. /datarootdir/ {
  19730. p
  19731. q
  19732. }
  19733. /@datadir@/p
  19734. /@docdir@/p
  19735. /@infodir@/p
  19736. /@localedir@/p
  19737. /@mandir@/p'
  19738. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19739. *datarootdir*) ac_datarootdir_seen=yes;;
  19740. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19742. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19743. _ACEOF
  19744. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19745. ac_datarootdir_hack='
  19746. s&@datadir@&$datadir&g
  19747. s&@docdir@&$docdir&g
  19748. s&@infodir@&$infodir&g
  19749. s&@localedir@&$localedir&g
  19750. s&@mandir@&$mandir&g
  19751. s&\\\${datarootdir}&$datarootdir&g' ;;
  19752. esac
  19753. _ACEOF
  19754. # Neutralize VPATH when `$srcdir' = `.'.
  19755. # Shell code in configure.ac might set extrasub.
  19756. # FIXME: do we really want to maintain this feature?
  19757. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19758. ac_sed_extra="$ac_vpsub
  19759. $extrasub
  19760. _ACEOF
  19761. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19762. :t
  19763. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19764. s|@configure_input@|$ac_sed_conf_input|;t t
  19765. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19766. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19767. s&@srcdir@&$ac_srcdir&;t t
  19768. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19769. s&@top_srcdir@&$ac_top_srcdir&;t t
  19770. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19771. s&@builddir@&$ac_builddir&;t t
  19772. s&@abs_builddir@&$ac_abs_builddir&;t t
  19773. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19774. s&@INSTALL@&$ac_INSTALL&;t t
  19775. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19776. $ac_datarootdir_hack
  19777. "
  19778. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19779. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19780. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19781. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19782. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19783. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19785. which seems to be undefined. Please make sure it is defined" >&5
  19786. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19787. which seems to be undefined. Please make sure it is defined" >&2;}
  19788. rm -f "$ac_tmp/stdin"
  19789. case $ac_file in
  19790. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19791. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19792. esac \
  19793. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19794. ;;
  19795. :H)
  19796. #
  19797. # CONFIG_HEADER
  19798. #
  19799. if test x"$ac_file" != x-; then
  19800. {
  19801. $as_echo "/* $configure_input */" \
  19802. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19803. } >"$ac_tmp/config.h" \
  19804. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19805. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19806. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19807. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19808. else
  19809. rm -f "$ac_file"
  19810. mv "$ac_tmp/config.h" "$ac_file" \
  19811. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19812. fi
  19813. else
  19814. $as_echo "/* $configure_input */" \
  19815. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19816. || as_fn_error $? "could not create -" "$LINENO" 5
  19817. fi
  19818. # Compute "$ac_file"'s index in $config_headers.
  19819. _am_arg="$ac_file"
  19820. _am_stamp_count=1
  19821. for _am_header in $config_headers :; do
  19822. case $_am_header in
  19823. $_am_arg | $_am_arg:* )
  19824. break ;;
  19825. * )
  19826. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19827. esac
  19828. done
  19829. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19830. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19831. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19832. X"$_am_arg" : 'X\(//\)$' \| \
  19833. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19834. $as_echo X"$_am_arg" |
  19835. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19836. s//\1/
  19837. q
  19838. }
  19839. /^X\(\/\/\)[^/].*/{
  19840. s//\1/
  19841. q
  19842. }
  19843. /^X\(\/\/\)$/{
  19844. s//\1/
  19845. q
  19846. }
  19847. /^X\(\/\).*/{
  19848. s//\1/
  19849. q
  19850. }
  19851. s/.*/./; q'`/stamp-h$_am_stamp_count
  19852. ;;
  19853. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19854. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19855. ;;
  19856. esac
  19857. case $ac_file$ac_mode in
  19858. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19859. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19860. # are listed without --file. Let's play safe and only enable the eval
  19861. # if we detect the quoting.
  19862. case $CONFIG_FILES in
  19863. *\'*) eval set x "$CONFIG_FILES" ;;
  19864. *) set x $CONFIG_FILES ;;
  19865. esac
  19866. shift
  19867. for mf
  19868. do
  19869. # Strip MF so we end up with the name of the file.
  19870. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19871. # Check whether this is an Automake generated Makefile or not.
  19872. # We used to match only the files named 'Makefile.in', but
  19873. # some people rename them; so instead we look at the file content.
  19874. # Grep'ing the first line is not enough: some people post-process
  19875. # each Makefile.in and add a new line on top of each file to say so.
  19876. # Grep'ing the whole file is not good either: AIX grep has a line
  19877. # limit of 2048, but all sed's we know have understand at least 4000.
  19878. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19879. dirpart=`$as_dirname -- "$mf" ||
  19880. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19881. X"$mf" : 'X\(//\)[^/]' \| \
  19882. X"$mf" : 'X\(//\)$' \| \
  19883. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19884. $as_echo X"$mf" |
  19885. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19886. s//\1/
  19887. q
  19888. }
  19889. /^X\(\/\/\)[^/].*/{
  19890. s//\1/
  19891. q
  19892. }
  19893. /^X\(\/\/\)$/{
  19894. s//\1/
  19895. q
  19896. }
  19897. /^X\(\/\).*/{
  19898. s//\1/
  19899. q
  19900. }
  19901. s/.*/./; q'`
  19902. else
  19903. continue
  19904. fi
  19905. # Extract the definition of DEPDIR, am__include, and am__quote
  19906. # from the Makefile without running 'make'.
  19907. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19908. test -z "$DEPDIR" && continue
  19909. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19910. test -z "am__include" && continue
  19911. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19912. # Find all dependency output files, they are included files with
  19913. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19914. # simplest approach to changing $(DEPDIR) to its actual value in the
  19915. # expansion.
  19916. for file in `sed -n "
  19917. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19918. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19919. # Make sure the directory exists.
  19920. test -f "$dirpart/$file" && continue
  19921. fdir=`$as_dirname -- "$file" ||
  19922. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19923. X"$file" : 'X\(//\)[^/]' \| \
  19924. X"$file" : 'X\(//\)$' \| \
  19925. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19926. $as_echo X"$file" |
  19927. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19928. s//\1/
  19929. q
  19930. }
  19931. /^X\(\/\/\)[^/].*/{
  19932. s//\1/
  19933. q
  19934. }
  19935. /^X\(\/\/\)$/{
  19936. s//\1/
  19937. q
  19938. }
  19939. /^X\(\/\).*/{
  19940. s//\1/
  19941. q
  19942. }
  19943. s/.*/./; q'`
  19944. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19945. # echo "creating $dirpart/$file"
  19946. echo '# dummy' > "$dirpart/$file"
  19947. done
  19948. done
  19949. }
  19950. ;;
  19951. "libtool":C)
  19952. # See if we are running on zsh, and set the options which allow our
  19953. # commands through without removal of \ escapes.
  19954. if test -n "${ZSH_VERSION+set}" ; then
  19955. setopt NO_GLOB_SUBST
  19956. fi
  19957. cfgfile="${ofile}T"
  19958. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19959. $RM "$cfgfile"
  19960. cat <<_LT_EOF >> "$cfgfile"
  19961. #! $SHELL
  19962. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19963. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19964. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19965. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19966. #
  19967. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19968. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  19969. # Foundation, Inc.
  19970. # Written by Gordon Matzigkeit, 1996
  19971. #
  19972. # This file is part of GNU Libtool.
  19973. #
  19974. # GNU Libtool is free software; you can redistribute it and/or
  19975. # modify it under the terms of the GNU General Public License as
  19976. # published by the Free Software Foundation; either version 2 of
  19977. # the License, or (at your option) any later version.
  19978. #
  19979. # As a special exception to the GNU General Public License,
  19980. # if you distribute this file as part of a program or library that
  19981. # is built using GNU Libtool, you may include this file under the
  19982. # same distribution terms that you use for the rest of that program.
  19983. #
  19984. # GNU Libtool is distributed in the hope that it will be useful,
  19985. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19986. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19987. # GNU General Public License for more details.
  19988. #
  19989. # You should have received a copy of the GNU General Public License
  19990. # along with GNU Libtool; see the file COPYING. If not, a copy
  19991. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19992. # obtained by writing to the Free Software Foundation, Inc.,
  19993. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19994. # The names of the tagged configurations supported by this script.
  19995. available_tags="CXX "
  19996. # ### BEGIN LIBTOOL CONFIG
  19997. # Whether or not to build static libraries.
  19998. build_old_libs=$enable_static
  19999. # Which release of libtool.m4 was used?
  20000. macro_version=$macro_version
  20001. macro_revision=$macro_revision
  20002. # Whether or not to build shared libraries.
  20003. build_libtool_libs=$enable_shared
  20004. # What type of objects to build.
  20005. pic_mode=$pic_mode
  20006. # Whether or not to optimize for fast installation.
  20007. fast_install=$enable_fast_install
  20008. # Shell to use when invoking shell scripts.
  20009. SHELL=$lt_SHELL
  20010. # An echo program that protects backslashes.
  20011. ECHO=$lt_ECHO
  20012. # The PATH separator for the build system.
  20013. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20014. # The host system.
  20015. host_alias=$host_alias
  20016. host=$host
  20017. host_os=$host_os
  20018. # The build system.
  20019. build_alias=$build_alias
  20020. build=$build
  20021. build_os=$build_os
  20022. # A sed program that does not truncate output.
  20023. SED=$lt_SED
  20024. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20025. Xsed="\$SED -e 1s/^X//"
  20026. # A grep program that handles long lines.
  20027. GREP=$lt_GREP
  20028. # An ERE matcher.
  20029. EGREP=$lt_EGREP
  20030. # A literal string matcher.
  20031. FGREP=$lt_FGREP
  20032. # A BSD- or MS-compatible name lister.
  20033. NM=$lt_NM
  20034. # Whether we need soft or hard links.
  20035. LN_S=$lt_LN_S
  20036. # What is the maximum length of a command?
  20037. max_cmd_len=$max_cmd_len
  20038. # Object file suffix (normally "o").
  20039. objext=$ac_objext
  20040. # Executable file suffix (normally "").
  20041. exeext=$exeext
  20042. # whether the shell understands "unset".
  20043. lt_unset=$lt_unset
  20044. # turn spaces into newlines.
  20045. SP2NL=$lt_lt_SP2NL
  20046. # turn newlines into spaces.
  20047. NL2SP=$lt_lt_NL2SP
  20048. # convert \$build file names to \$host format.
  20049. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20050. # convert \$build files to toolchain format.
  20051. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20052. # An object symbol dumper.
  20053. OBJDUMP=$lt_OBJDUMP
  20054. # Method to check whether dependent libraries are shared objects.
  20055. deplibs_check_method=$lt_deplibs_check_method
  20056. # Command to use when deplibs_check_method = "file_magic".
  20057. file_magic_cmd=$lt_file_magic_cmd
  20058. # How to find potential files when deplibs_check_method = "file_magic".
  20059. file_magic_glob=$lt_file_magic_glob
  20060. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20061. want_nocaseglob=$lt_want_nocaseglob
  20062. # DLL creation program.
  20063. DLLTOOL=$lt_DLLTOOL
  20064. # Command to associate shared and link libraries.
  20065. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20066. # The archiver.
  20067. AR=$lt_AR
  20068. # Flags to create an archive.
  20069. AR_FLAGS=$lt_AR_FLAGS
  20070. # How to feed a file listing to the archiver.
  20071. archiver_list_spec=$lt_archiver_list_spec
  20072. # A symbol stripping program.
  20073. STRIP=$lt_STRIP
  20074. # Commands used to install an old-style archive.
  20075. RANLIB=$lt_RANLIB
  20076. old_postinstall_cmds=$lt_old_postinstall_cmds
  20077. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20078. # Whether to use a lock for old archive extraction.
  20079. lock_old_archive_extraction=$lock_old_archive_extraction
  20080. # A C compiler.
  20081. LTCC=$lt_CC
  20082. # LTCC compiler flags.
  20083. LTCFLAGS=$lt_CFLAGS
  20084. # Take the output of nm and produce a listing of raw symbols and C names.
  20085. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20086. # Transform the output of nm in a proper C declaration.
  20087. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20088. # Transform the output of nm in a C name address pair.
  20089. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20090. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20091. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20092. # Specify filename containing input files for \$NM.
  20093. nm_file_list_spec=$lt_nm_file_list_spec
  20094. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20095. lt_sysroot=$lt_sysroot
  20096. # The name of the directory that contains temporary libtool files.
  20097. objdir=$objdir
  20098. # Used to examine libraries when file_magic_cmd begins with "file".
  20099. MAGIC_CMD=$MAGIC_CMD
  20100. # Must we lock files when doing compilation?
  20101. need_locks=$lt_need_locks
  20102. # Manifest tool.
  20103. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20104. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20105. DSYMUTIL=$lt_DSYMUTIL
  20106. # Tool to change global to local symbols on Mac OS X.
  20107. NMEDIT=$lt_NMEDIT
  20108. # Tool to manipulate fat objects and archives on Mac OS X.
  20109. LIPO=$lt_LIPO
  20110. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20111. OTOOL=$lt_OTOOL
  20112. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20113. OTOOL64=$lt_OTOOL64
  20114. # Old archive suffix (normally "a").
  20115. libext=$libext
  20116. # Shared library suffix (normally ".so").
  20117. shrext_cmds=$lt_shrext_cmds
  20118. # The commands to extract the exported symbol list from a shared archive.
  20119. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20120. # Variables whose values should be saved in libtool wrapper scripts and
  20121. # restored at link time.
  20122. variables_saved_for_relink=$lt_variables_saved_for_relink
  20123. # Do we need the "lib" prefix for modules?
  20124. need_lib_prefix=$need_lib_prefix
  20125. # Do we need a version for libraries?
  20126. need_version=$need_version
  20127. # Library versioning type.
  20128. version_type=$version_type
  20129. # Shared library runtime path variable.
  20130. runpath_var=$runpath_var
  20131. # Shared library path variable.
  20132. shlibpath_var=$shlibpath_var
  20133. # Is shlibpath searched before the hard-coded library search path?
  20134. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20135. # Format of library name prefix.
  20136. libname_spec=$lt_libname_spec
  20137. # List of archive names. First name is the real one, the rest are links.
  20138. # The last name is the one that the linker finds with -lNAME
  20139. library_names_spec=$lt_library_names_spec
  20140. # The coded name of the library, if different from the real name.
  20141. soname_spec=$lt_soname_spec
  20142. # Permission mode override for installation of shared libraries.
  20143. install_override_mode=$lt_install_override_mode
  20144. # Command to use after installation of a shared archive.
  20145. postinstall_cmds=$lt_postinstall_cmds
  20146. # Command to use after uninstallation of a shared archive.
  20147. postuninstall_cmds=$lt_postuninstall_cmds
  20148. # Commands used to finish a libtool library installation in a directory.
  20149. finish_cmds=$lt_finish_cmds
  20150. # As "finish_cmds", except a single script fragment to be evaled but
  20151. # not shown.
  20152. finish_eval=$lt_finish_eval
  20153. # Whether we should hardcode library paths into libraries.
  20154. hardcode_into_libs=$hardcode_into_libs
  20155. # Compile-time system search path for libraries.
  20156. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20157. # Run-time system search path for libraries.
  20158. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20159. # Whether dlopen is supported.
  20160. dlopen_support=$enable_dlopen
  20161. # Whether dlopen of programs is supported.
  20162. dlopen_self=$enable_dlopen_self
  20163. # Whether dlopen of statically linked programs is supported.
  20164. dlopen_self_static=$enable_dlopen_self_static
  20165. # Commands to strip libraries.
  20166. old_striplib=$lt_old_striplib
  20167. striplib=$lt_striplib
  20168. # The linker used to build libraries.
  20169. LD=$lt_LD
  20170. # How to create reloadable object files.
  20171. reload_flag=$lt_reload_flag
  20172. reload_cmds=$lt_reload_cmds
  20173. # Commands used to build an old-style archive.
  20174. old_archive_cmds=$lt_old_archive_cmds
  20175. # A language specific compiler.
  20176. CC=$lt_compiler
  20177. # Is the compiler the GNU compiler?
  20178. with_gcc=$GCC
  20179. # Compiler flag to turn off builtin functions.
  20180. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20181. # Additional compiler flags for building library objects.
  20182. pic_flag=$lt_lt_prog_compiler_pic
  20183. # How to pass a linker flag through the compiler.
  20184. wl=$lt_lt_prog_compiler_wl
  20185. # Compiler flag to prevent dynamic linking.
  20186. link_static_flag=$lt_lt_prog_compiler_static
  20187. # Does compiler simultaneously support -c and -o options?
  20188. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20189. # Whether or not to add -lc for building shared libraries.
  20190. build_libtool_need_lc=$archive_cmds_need_lc
  20191. # Whether or not to disallow shared libs when runtime libs are static.
  20192. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20193. # Compiler flag to allow reflexive dlopens.
  20194. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20195. # Compiler flag to generate shared objects directly from archives.
  20196. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20197. # Whether the compiler copes with passing no objects directly.
  20198. compiler_needs_object=$lt_compiler_needs_object
  20199. # Create an old-style archive from a shared archive.
  20200. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20201. # Create a temporary old-style archive to link instead of a shared archive.
  20202. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20203. # Commands used to build a shared archive.
  20204. archive_cmds=$lt_archive_cmds
  20205. archive_expsym_cmds=$lt_archive_expsym_cmds
  20206. # Commands used to build a loadable module if different from building
  20207. # a shared archive.
  20208. module_cmds=$lt_module_cmds
  20209. module_expsym_cmds=$lt_module_expsym_cmds
  20210. # Whether we are building with GNU ld or not.
  20211. with_gnu_ld=$lt_with_gnu_ld
  20212. # Flag that allows shared libraries with undefined symbols to be built.
  20213. allow_undefined_flag=$lt_allow_undefined_flag
  20214. # Flag that enforces no undefined symbols.
  20215. no_undefined_flag=$lt_no_undefined_flag
  20216. # Flag to hardcode \$libdir into a binary during linking.
  20217. # This must work even if \$libdir does not exist
  20218. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20219. # Whether we need a single "-rpath" flag with a separated argument.
  20220. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20221. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20222. # DIR into the resulting binary.
  20223. hardcode_direct=$hardcode_direct
  20224. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20225. # DIR into the resulting binary and the resulting library dependency is
  20226. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20227. # library is relocated.
  20228. hardcode_direct_absolute=$hardcode_direct_absolute
  20229. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20230. # into the resulting binary.
  20231. hardcode_minus_L=$hardcode_minus_L
  20232. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20233. # into the resulting binary.
  20234. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20235. # Set to "yes" if building a shared library automatically hardcodes DIR
  20236. # into the library and all subsequent libraries and executables linked
  20237. # against it.
  20238. hardcode_automatic=$hardcode_automatic
  20239. # Set to yes if linker adds runtime paths of dependent libraries
  20240. # to runtime path list.
  20241. inherit_rpath=$inherit_rpath
  20242. # Whether libtool must link a program against all its dependency libraries.
  20243. link_all_deplibs=$link_all_deplibs
  20244. # Set to "yes" if exported symbols are required.
  20245. always_export_symbols=$always_export_symbols
  20246. # The commands to list exported symbols.
  20247. export_symbols_cmds=$lt_export_symbols_cmds
  20248. # Symbols that should not be listed in the preloaded symbols.
  20249. exclude_expsyms=$lt_exclude_expsyms
  20250. # Symbols that must always be exported.
  20251. include_expsyms=$lt_include_expsyms
  20252. # Commands necessary for linking programs (against libraries) with templates.
  20253. prelink_cmds=$lt_prelink_cmds
  20254. # Commands necessary for finishing linking programs.
  20255. postlink_cmds=$lt_postlink_cmds
  20256. # Specify filename containing input files.
  20257. file_list_spec=$lt_file_list_spec
  20258. # How to hardcode a shared library path into an executable.
  20259. hardcode_action=$hardcode_action
  20260. # The directories searched by this compiler when creating a shared library.
  20261. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20262. # Dependencies to place before and after the objects being linked to
  20263. # create a shared library.
  20264. predep_objects=$lt_predep_objects
  20265. postdep_objects=$lt_postdep_objects
  20266. predeps=$lt_predeps
  20267. postdeps=$lt_postdeps
  20268. # The library search path used internally by the compiler when linking
  20269. # a shared library.
  20270. compiler_lib_search_path=$lt_compiler_lib_search_path
  20271. # ### END LIBTOOL CONFIG
  20272. _LT_EOF
  20273. case $host_os in
  20274. aix3*)
  20275. cat <<\_LT_EOF >> "$cfgfile"
  20276. # AIX sometimes has problems with the GCC collect2 program. For some
  20277. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20278. # vanish in a puff of smoke.
  20279. if test "X${COLLECT_NAMES+set}" != Xset; then
  20280. COLLECT_NAMES=
  20281. export COLLECT_NAMES
  20282. fi
  20283. _LT_EOF
  20284. ;;
  20285. esac
  20286. ltmain="$ac_aux_dir/ltmain.sh"
  20287. # We use sed instead of cat because bash on DJGPP gets confused if
  20288. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20289. # text mode, it properly converts lines to CR/LF. This bash problem
  20290. # is reportedly fixed, but why not run on old versions too?
  20291. sed '$q' "$ltmain" >> "$cfgfile" \
  20292. || (rm -f "$cfgfile"; exit 1)
  20293. if test x"$xsi_shell" = xyes; then
  20294. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20295. func_dirname ()\
  20296. {\
  20297. \ case ${1} in\
  20298. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20299. \ * ) func_dirname_result="${3}" ;;\
  20300. \ esac\
  20301. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20302. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20303. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20304. test 0 -eq $? || _lt_function_replace_fail=:
  20305. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20306. func_basename ()\
  20307. {\
  20308. \ func_basename_result="${1##*/}"\
  20309. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20310. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20311. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20312. test 0 -eq $? || _lt_function_replace_fail=:
  20313. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20314. func_dirname_and_basename ()\
  20315. {\
  20316. \ case ${1} in\
  20317. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20318. \ * ) func_dirname_result="${3}" ;;\
  20319. \ esac\
  20320. \ func_basename_result="${1##*/}"\
  20321. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20322. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20323. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20324. test 0 -eq $? || _lt_function_replace_fail=:
  20325. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20326. func_stripname ()\
  20327. {\
  20328. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20329. \ # positional parameters, so assign one to ordinary parameter first.\
  20330. \ func_stripname_result=${3}\
  20331. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20332. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20333. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20334. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20335. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20336. test 0 -eq $? || _lt_function_replace_fail=:
  20337. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20338. func_split_long_opt ()\
  20339. {\
  20340. \ func_split_long_opt_name=${1%%=*}\
  20341. \ func_split_long_opt_arg=${1#*=}\
  20342. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20343. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20344. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20345. test 0 -eq $? || _lt_function_replace_fail=:
  20346. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20347. func_split_short_opt ()\
  20348. {\
  20349. \ func_split_short_opt_arg=${1#??}\
  20350. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20351. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20352. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20353. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20354. test 0 -eq $? || _lt_function_replace_fail=:
  20355. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20356. func_lo2o ()\
  20357. {\
  20358. \ case ${1} in\
  20359. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20360. \ *) func_lo2o_result=${1} ;;\
  20361. \ esac\
  20362. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20363. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20364. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20365. test 0 -eq $? || _lt_function_replace_fail=:
  20366. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20367. func_xform ()\
  20368. {\
  20369. func_xform_result=${1%.*}.lo\
  20370. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20371. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20372. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20373. test 0 -eq $? || _lt_function_replace_fail=:
  20374. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20375. func_arith ()\
  20376. {\
  20377. func_arith_result=$(( $* ))\
  20378. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20379. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20380. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20381. test 0 -eq $? || _lt_function_replace_fail=:
  20382. sed -e '/^func_len ()$/,/^} # func_len /c\
  20383. func_len ()\
  20384. {\
  20385. func_len_result=${#1}\
  20386. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20387. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20388. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20389. test 0 -eq $? || _lt_function_replace_fail=:
  20390. fi
  20391. if test x"$lt_shell_append" = xyes; then
  20392. sed -e '/^func_append ()$/,/^} # func_append /c\
  20393. func_append ()\
  20394. {\
  20395. eval "${1}+=\\${2}"\
  20396. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20397. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20398. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20399. test 0 -eq $? || _lt_function_replace_fail=:
  20400. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20401. func_append_quoted ()\
  20402. {\
  20403. \ func_quote_for_eval "${2}"\
  20404. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20405. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20406. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20407. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20408. test 0 -eq $? || _lt_function_replace_fail=:
  20409. # Save a `func_append' function call where possible by direct use of '+='
  20410. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20411. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20412. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20413. test 0 -eq $? || _lt_function_replace_fail=:
  20414. else
  20415. # Save a `func_append' function call even when '+=' is not available
  20416. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20417. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20418. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20419. test 0 -eq $? || _lt_function_replace_fail=:
  20420. fi
  20421. if test x"$_lt_function_replace_fail" = x":"; then
  20422. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20423. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20424. fi
  20425. mv -f "$cfgfile" "$ofile" ||
  20426. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20427. chmod +x "$ofile"
  20428. cat <<_LT_EOF >> "$ofile"
  20429. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20430. # The linker used to build libraries.
  20431. LD=$lt_LD_CXX
  20432. # How to create reloadable object files.
  20433. reload_flag=$lt_reload_flag_CXX
  20434. reload_cmds=$lt_reload_cmds_CXX
  20435. # Commands used to build an old-style archive.
  20436. old_archive_cmds=$lt_old_archive_cmds_CXX
  20437. # A language specific compiler.
  20438. CC=$lt_compiler_CXX
  20439. # Is the compiler the GNU compiler?
  20440. with_gcc=$GCC_CXX
  20441. # Compiler flag to turn off builtin functions.
  20442. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20443. # Additional compiler flags for building library objects.
  20444. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20445. # How to pass a linker flag through the compiler.
  20446. wl=$lt_lt_prog_compiler_wl_CXX
  20447. # Compiler flag to prevent dynamic linking.
  20448. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20449. # Does compiler simultaneously support -c and -o options?
  20450. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20451. # Whether or not to add -lc for building shared libraries.
  20452. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20453. # Whether or not to disallow shared libs when runtime libs are static.
  20454. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20455. # Compiler flag to allow reflexive dlopens.
  20456. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20457. # Compiler flag to generate shared objects directly from archives.
  20458. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20459. # Whether the compiler copes with passing no objects directly.
  20460. compiler_needs_object=$lt_compiler_needs_object_CXX
  20461. # Create an old-style archive from a shared archive.
  20462. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20463. # Create a temporary old-style archive to link instead of a shared archive.
  20464. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20465. # Commands used to build a shared archive.
  20466. archive_cmds=$lt_archive_cmds_CXX
  20467. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20468. # Commands used to build a loadable module if different from building
  20469. # a shared archive.
  20470. module_cmds=$lt_module_cmds_CXX
  20471. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20472. # Whether we are building with GNU ld or not.
  20473. with_gnu_ld=$lt_with_gnu_ld_CXX
  20474. # Flag that allows shared libraries with undefined symbols to be built.
  20475. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20476. # Flag that enforces no undefined symbols.
  20477. no_undefined_flag=$lt_no_undefined_flag_CXX
  20478. # Flag to hardcode \$libdir into a binary during linking.
  20479. # This must work even if \$libdir does not exist
  20480. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20481. # Whether we need a single "-rpath" flag with a separated argument.
  20482. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20483. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20484. # DIR into the resulting binary.
  20485. hardcode_direct=$hardcode_direct_CXX
  20486. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20487. # DIR into the resulting binary and the resulting library dependency is
  20488. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20489. # library is relocated.
  20490. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20491. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20492. # into the resulting binary.
  20493. hardcode_minus_L=$hardcode_minus_L_CXX
  20494. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20495. # into the resulting binary.
  20496. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20497. # Set to "yes" if building a shared library automatically hardcodes DIR
  20498. # into the library and all subsequent libraries and executables linked
  20499. # against it.
  20500. hardcode_automatic=$hardcode_automatic_CXX
  20501. # Set to yes if linker adds runtime paths of dependent libraries
  20502. # to runtime path list.
  20503. inherit_rpath=$inherit_rpath_CXX
  20504. # Whether libtool must link a program against all its dependency libraries.
  20505. link_all_deplibs=$link_all_deplibs_CXX
  20506. # Set to "yes" if exported symbols are required.
  20507. always_export_symbols=$always_export_symbols_CXX
  20508. # The commands to list exported symbols.
  20509. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20510. # Symbols that should not be listed in the preloaded symbols.
  20511. exclude_expsyms=$lt_exclude_expsyms_CXX
  20512. # Symbols that must always be exported.
  20513. include_expsyms=$lt_include_expsyms_CXX
  20514. # Commands necessary for linking programs (against libraries) with templates.
  20515. prelink_cmds=$lt_prelink_cmds_CXX
  20516. # Commands necessary for finishing linking programs.
  20517. postlink_cmds=$lt_postlink_cmds_CXX
  20518. # Specify filename containing input files.
  20519. file_list_spec=$lt_file_list_spec_CXX
  20520. # How to hardcode a shared library path into an executable.
  20521. hardcode_action=$hardcode_action_CXX
  20522. # The directories searched by this compiler when creating a shared library.
  20523. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20524. # Dependencies to place before and after the objects being linked to
  20525. # create a shared library.
  20526. predep_objects=$lt_predep_objects_CXX
  20527. postdep_objects=$lt_postdep_objects_CXX
  20528. predeps=$lt_predeps_CXX
  20529. postdeps=$lt_postdeps_CXX
  20530. # The library search path used internally by the compiler when linking
  20531. # a shared library.
  20532. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20533. # ### END LIBTOOL TAG CONFIG: CXX
  20534. _LT_EOF
  20535. ;;
  20536. esac
  20537. done # for ac_tag
  20538. as_fn_exit 0
  20539. _ACEOF
  20540. ac_clean_files=$ac_clean_files_save
  20541. test $ac_write_fail = 0 ||
  20542. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20543. # configure is writing to config.log, and then calls config.status.
  20544. # config.status does its own redirection, appending to config.log.
  20545. # Unfortunately, on DOS this fails, as config.log is still kept open
  20546. # by configure, so config.status won't be able to write to it; its
  20547. # output is simply discarded. So we exec the FD to /dev/null,
  20548. # effectively closing config.log, so it can be properly (re)opened and
  20549. # appended to by config.status. When coming back to configure, we
  20550. # need to make the FD available again.
  20551. if test "$no_create" != yes; then
  20552. ac_cs_success=:
  20553. ac_config_status_args=
  20554. test "$silent" = yes &&
  20555. ac_config_status_args="$ac_config_status_args --quiet"
  20556. exec 5>/dev/null
  20557. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20558. exec 5>>config.log
  20559. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20560. # would make configure fail if this is the last instruction.
  20561. $ac_cs_success || as_fn_exit 1
  20562. fi
  20563. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20564. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20565. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20566. fi