configure 710 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946
  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. pcre_libdir
  591. pcre_lib
  592. pcre_inc
  593. netsnmp_link
  594. netsnmp_libdir
  595. netsnmp_lib
  596. netsnmp_inc
  597. icu_bin
  598. icu_inc
  599. icu_lib
  600. svrcore_lib
  601. svrcore_inc
  602. sasl_path
  603. sasl_libdir
  604. sasl_lib
  605. sasl_inc
  606. db_libver
  607. db_bindir
  608. db_libdir
  609. db_lib
  610. db_incdir
  611. db_inc
  612. ol_libver
  613. plainldif_opts
  614. ldaptool_opts
  615. ldaptool_bindir
  616. openldap_bindir
  617. openldap_libdir
  618. openldap_lib
  619. openldap_inc
  620. ldapsdk_bindir
  621. ldapsdk_libdir
  622. ldapsdk_lib
  623. ldapsdk_inc
  624. nss_libdir
  625. nss_lib
  626. nss_inc
  627. nspr_libdir
  628. nspr_lib
  629. nspr_inc
  630. SPARC_FALSE
  631. SPARC_TRUE
  632. OPENLDAP_FALSE
  633. OPENLDAP_TRUE
  634. SELINUX_FALSE
  635. SELINUX_TRUE
  636. PACKAGE_BASE_VERSION
  637. with_selinux
  638. kerberos_libdir
  639. kerberos_lib
  640. kerberos_inc
  641. KRB5_CONFIG_BIN
  642. NETSNMP_CONFIG
  643. ICU_CONFIG
  644. ldap_lib_ldif
  645. SYSTEMD_FALSE
  646. SYSTEMD_TRUE
  647. SOLARIS_FALSE
  648. SOLARIS_TRUE
  649. HPUX_FALSE
  650. HPUX_TRUE
  651. initconfigdir
  652. sttyexec
  653. perlexec
  654. initdir
  655. LIBCRUN
  656. LIBCSTD
  657. LIBDL
  658. LIBNSL
  659. LIBSOCKET
  660. LIBCRYPT
  661. THREADLIB
  662. WINNT_FALSE
  663. WINNT_TRUE
  664. instconfigdir
  665. defaultgroup
  666. defaultuser
  667. updatedir
  668. mibdir
  669. infdir
  670. perldir
  671. scripttemplatedir
  672. serverplugindir
  673. serverincdir
  674. serverdir
  675. schemadir
  676. propertydir
  677. sampledatadir
  678. configdir
  679. with_systemdgroupname
  680. with_systemdsystemconfdir
  681. with_systemdsystemunitdir
  682. PKG_CONFIG_LIBDIR
  683. PKG_CONFIG_PATH
  684. PKG_CONFIG
  685. with_tmpfiles_d
  686. with_fhs_opt
  687. enable_posix_winsync_FALSE
  688. enable_posix_winsync_TRUE
  689. enable_acctpolicy_FALSE
  690. enable_acctpolicy_TRUE
  691. enable_presence_FALSE
  692. enable_presence_TRUE
  693. enable_bitwise_FALSE
  694. enable_bitwise_TRUE
  695. enable_auto_dn_suffix_FALSE
  696. enable_auto_dn_suffix_TRUE
  697. enable_autobind_FALSE
  698. enable_autobind_TRUE
  699. enable_ldapi_FALSE
  700. enable_ldapi_TRUE
  701. enable_dna_FALSE
  702. enable_dna_TRUE
  703. enable_pam_passthru_FALSE
  704. enable_pam_passthru_TRUE
  705. BUNDLE_FALSE
  706. BUNDLE_TRUE
  707. debug_defs
  708. LIBOBJS
  709. CXXCPP
  710. CPP
  711. OTOOL64
  712. OTOOL
  713. LIPO
  714. NMEDIT
  715. DSYMUTIL
  716. MANIFEST_TOOL
  717. RANLIB
  718. ac_ct_AR
  719. AR
  720. DLLTOOL
  721. OBJDUMP
  722. LN_S
  723. NM
  724. ac_ct_DUMPBIN
  725. DUMPBIN
  726. LD
  727. FGREP
  728. EGREP
  729. GREP
  730. SED
  731. LIBTOOL
  732. am__fastdepCCAS_FALSE
  733. am__fastdepCCAS_TRUE
  734. CCASDEPMODE
  735. CCASFLAGS
  736. CCAS
  737. am__fastdepCC_FALSE
  738. am__fastdepCC_TRUE
  739. CCDEPMODE
  740. ac_ct_CC
  741. CFLAGS
  742. CC
  743. am__fastdepCXX_FALSE
  744. am__fastdepCXX_TRUE
  745. CXXDEPMODE
  746. am__nodep
  747. AMDEPBACKSLASH
  748. AMDEP_FALSE
  749. AMDEP_TRUE
  750. am__quote
  751. am__include
  752. DEPDIR
  753. OBJEXT
  754. EXEEXT
  755. ac_ct_CXX
  756. CPPFLAGS
  757. LDFLAGS
  758. CXXFLAGS
  759. CXX
  760. host_os
  761. host_vendor
  762. host_cpu
  763. host
  764. build_os
  765. build_vendor
  766. build_cpu
  767. build
  768. MAINT
  769. MAINTAINER_MODE_FALSE
  770. MAINTAINER_MODE_TRUE
  771. CONSOLE_VERSION
  772. am__untar
  773. am__tar
  774. AMTAR
  775. am__leading_dot
  776. SET_MAKE
  777. AWK
  778. mkdir_p
  779. MKDIR_P
  780. INSTALL_STRIP_PROGRAM
  781. STRIP
  782. install_sh
  783. MAKEINFO
  784. AUTOHEADER
  785. AUTOMAKE
  786. AUTOCONF
  787. ACLOCAL
  788. VERSION
  789. PACKAGE
  790. CYGPATH_W
  791. am__isrc
  792. INSTALL_DATA
  793. INSTALL_SCRIPT
  794. INSTALL_PROGRAM
  795. target_alias
  796. host_alias
  797. build_alias
  798. LIBS
  799. ECHO_T
  800. ECHO_N
  801. ECHO_C
  802. DEFS
  803. mandir
  804. localedir
  805. libdir
  806. psdir
  807. pdfdir
  808. dvidir
  809. htmldir
  810. infodir
  811. docdir
  812. oldincludedir
  813. includedir
  814. localstatedir
  815. sharedstatedir
  816. sysconfdir
  817. datadir
  818. datarootdir
  819. libexecdir
  820. sbindir
  821. bindir
  822. program_transform_name
  823. prefix
  824. exec_prefix
  825. PACKAGE_URL
  826. PACKAGE_BUGREPORT
  827. PACKAGE_STRING
  828. PACKAGE_VERSION
  829. PACKAGE_TARNAME
  830. PACKAGE_NAME
  831. PATH_SEPARATOR
  832. SHELL'
  833. ac_subst_files=''
  834. ac_user_opts='
  835. enable_option_checking
  836. enable_maintainer_mode
  837. enable_dependency_tracking
  838. enable_static
  839. enable_shared
  840. with_pic
  841. enable_fast_install
  842. with_gnu_ld
  843. with_sysroot
  844. enable_libtool_lock
  845. enable_debug
  846. enable_bundle
  847. enable_pam_passthru
  848. enable_dna
  849. enable_ldapi
  850. enable_autobind
  851. enable_bitwise
  852. enable_presence
  853. enable_acctpolicy
  854. enable_posix_winsync
  855. with_fhs
  856. with_fhs_opt
  857. with_tmpfiles_d
  858. with_systemdsystemunitdir
  859. with_systemdsystemconfdir
  860. with_systemdgroupname
  861. with_instconfigdir
  862. with_initddir
  863. with_nspr
  864. with_nspr_inc
  865. with_nspr_lib
  866. with_nss
  867. with_nss_inc
  868. with_nss_lib
  869. with_openldap
  870. with_openldap_inc
  871. with_openldap_lib
  872. with_openldap_bin
  873. with_ldapsdk
  874. with_ldapsdk_inc
  875. with_ldapsdk_lib
  876. with_ldapsdk_bin
  877. with_db
  878. with_db_inc
  879. with_db_lib
  880. with_sasl
  881. with_sasl_inc
  882. with_sasl_lib
  883. with_svrcore
  884. with_svrcore_inc
  885. with_svrcore_lib
  886. with_icu
  887. with_icu_inc
  888. with_icu_lib
  889. with_icu_bin
  890. with_netsnmp
  891. with_netsnmp_inc
  892. with_netsnmp_lib
  893. with_kerberos
  894. with_kerberos_inc
  895. with_kerberos_lib
  896. with_pcre
  897. with_selinux
  898. '
  899. ac_precious_vars='build_alias
  900. host_alias
  901. target_alias
  902. CXX
  903. CXXFLAGS
  904. LDFLAGS
  905. LIBS
  906. CPPFLAGS
  907. CCC
  908. CC
  909. CFLAGS
  910. CCAS
  911. CCASFLAGS
  912. CPP
  913. CXXCPP
  914. PKG_CONFIG
  915. PKG_CONFIG_PATH
  916. PKG_CONFIG_LIBDIR'
  917. # Initialize some variables set by options.
  918. ac_init_help=
  919. ac_init_version=false
  920. ac_unrecognized_opts=
  921. ac_unrecognized_sep=
  922. # The variables have the same names as the options, with
  923. # dashes changed to underlines.
  924. cache_file=/dev/null
  925. exec_prefix=NONE
  926. no_create=
  927. no_recursion=
  928. prefix=NONE
  929. program_prefix=NONE
  930. program_suffix=NONE
  931. program_transform_name=s,x,x,
  932. silent=
  933. site=
  934. srcdir=
  935. verbose=
  936. x_includes=NONE
  937. x_libraries=NONE
  938. # Installation directory options.
  939. # These are left unexpanded so users can "make install exec_prefix=/foo"
  940. # and all the variables that are supposed to be based on exec_prefix
  941. # by default will actually change.
  942. # Use braces instead of parens because sh, perl, etc. also accept them.
  943. # (The list follows the same order as the GNU Coding Standards.)
  944. bindir='${exec_prefix}/bin'
  945. sbindir='${exec_prefix}/sbin'
  946. libexecdir='${exec_prefix}/libexec'
  947. datarootdir='${prefix}/share'
  948. datadir='${datarootdir}'
  949. sysconfdir='${prefix}/etc'
  950. sharedstatedir='${prefix}/com'
  951. localstatedir='${prefix}/var'
  952. includedir='${prefix}/include'
  953. oldincludedir='/usr/include'
  954. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  955. infodir='${datarootdir}/info'
  956. htmldir='${docdir}'
  957. dvidir='${docdir}'
  958. pdfdir='${docdir}'
  959. psdir='${docdir}'
  960. libdir='${exec_prefix}/lib'
  961. localedir='${datarootdir}/locale'
  962. mandir='${datarootdir}/man'
  963. ac_prev=
  964. ac_dashdash=
  965. for ac_option
  966. do
  967. # If the previous option needs an argument, assign it.
  968. if test -n "$ac_prev"; then
  969. eval $ac_prev=\$ac_option
  970. ac_prev=
  971. continue
  972. fi
  973. case $ac_option in
  974. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  975. *=) ac_optarg= ;;
  976. *) ac_optarg=yes ;;
  977. esac
  978. # Accept the important Cygnus configure options, so we can diagnose typos.
  979. case $ac_dashdash$ac_option in
  980. --)
  981. ac_dashdash=yes ;;
  982. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  983. ac_prev=bindir ;;
  984. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  985. bindir=$ac_optarg ;;
  986. -build | --build | --buil | --bui | --bu)
  987. ac_prev=build_alias ;;
  988. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  989. build_alias=$ac_optarg ;;
  990. -cache-file | --cache-file | --cache-fil | --cache-fi \
  991. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  992. ac_prev=cache_file ;;
  993. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  994. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  995. cache_file=$ac_optarg ;;
  996. --config-cache | -C)
  997. cache_file=config.cache ;;
  998. -datadir | --datadir | --datadi | --datad)
  999. ac_prev=datadir ;;
  1000. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1001. datadir=$ac_optarg ;;
  1002. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1003. | --dataroo | --dataro | --datar)
  1004. ac_prev=datarootdir ;;
  1005. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1006. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1007. datarootdir=$ac_optarg ;;
  1008. -disable-* | --disable-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid feature name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "enable_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval enable_$ac_useropt=no ;;
  1023. -docdir | --docdir | --docdi | --doc | --do)
  1024. ac_prev=docdir ;;
  1025. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1026. docdir=$ac_optarg ;;
  1027. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1028. ac_prev=dvidir ;;
  1029. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1030. dvidir=$ac_optarg ;;
  1031. -enable-* | --enable-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid feature name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "enable_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval enable_$ac_useropt=\$ac_optarg ;;
  1046. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1047. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1048. | --exec | --exe | --ex)
  1049. ac_prev=exec_prefix ;;
  1050. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1051. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1052. | --exec=* | --exe=* | --ex=*)
  1053. exec_prefix=$ac_optarg ;;
  1054. -gas | --gas | --ga | --g)
  1055. # Obsolete; use --with-gas.
  1056. with_gas=yes ;;
  1057. -help | --help | --hel | --he | -h)
  1058. ac_init_help=long ;;
  1059. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1060. ac_init_help=recursive ;;
  1061. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1062. ac_init_help=short ;;
  1063. -host | --host | --hos | --ho)
  1064. ac_prev=host_alias ;;
  1065. -host=* | --host=* | --hos=* | --ho=*)
  1066. host_alias=$ac_optarg ;;
  1067. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1068. ac_prev=htmldir ;;
  1069. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1070. | --ht=*)
  1071. htmldir=$ac_optarg ;;
  1072. -includedir | --includedir | --includedi | --included | --include \
  1073. | --includ | --inclu | --incl | --inc)
  1074. ac_prev=includedir ;;
  1075. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1076. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1077. includedir=$ac_optarg ;;
  1078. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1079. ac_prev=infodir ;;
  1080. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1081. infodir=$ac_optarg ;;
  1082. -libdir | --libdir | --libdi | --libd)
  1083. ac_prev=libdir ;;
  1084. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1085. libdir=$ac_optarg ;;
  1086. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1087. | --libexe | --libex | --libe)
  1088. ac_prev=libexecdir ;;
  1089. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1090. | --libexe=* | --libex=* | --libe=*)
  1091. libexecdir=$ac_optarg ;;
  1092. -localedir | --localedir | --localedi | --localed | --locale)
  1093. ac_prev=localedir ;;
  1094. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1095. localedir=$ac_optarg ;;
  1096. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1097. | --localstate | --localstat | --localsta | --localst | --locals)
  1098. ac_prev=localstatedir ;;
  1099. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1100. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1101. localstatedir=$ac_optarg ;;
  1102. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1103. ac_prev=mandir ;;
  1104. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1105. mandir=$ac_optarg ;;
  1106. -nfp | --nfp | --nf)
  1107. # Obsolete; use --without-fp.
  1108. with_fp=no ;;
  1109. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1110. | --no-cr | --no-c | -n)
  1111. no_create=yes ;;
  1112. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1113. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1114. no_recursion=yes ;;
  1115. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1116. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1117. | --oldin | --oldi | --old | --ol | --o)
  1118. ac_prev=oldincludedir ;;
  1119. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1120. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1121. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1122. oldincludedir=$ac_optarg ;;
  1123. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1124. ac_prev=prefix ;;
  1125. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1126. prefix=$ac_optarg ;;
  1127. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1128. | --program-pre | --program-pr | --program-p)
  1129. ac_prev=program_prefix ;;
  1130. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1131. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1132. program_prefix=$ac_optarg ;;
  1133. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1134. | --program-suf | --program-su | --program-s)
  1135. ac_prev=program_suffix ;;
  1136. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1137. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1138. program_suffix=$ac_optarg ;;
  1139. -program-transform-name | --program-transform-name \
  1140. | --program-transform-nam | --program-transform-na \
  1141. | --program-transform-n | --program-transform- \
  1142. | --program-transform | --program-transfor \
  1143. | --program-transfo | --program-transf \
  1144. | --program-trans | --program-tran \
  1145. | --progr-tra | --program-tr | --program-t)
  1146. ac_prev=program_transform_name ;;
  1147. -program-transform-name=* | --program-transform-name=* \
  1148. | --program-transform-nam=* | --program-transform-na=* \
  1149. | --program-transform-n=* | --program-transform-=* \
  1150. | --program-transform=* | --program-transfor=* \
  1151. | --program-transfo=* | --program-transf=* \
  1152. | --program-trans=* | --program-tran=* \
  1153. | --progr-tra=* | --program-tr=* | --program-t=*)
  1154. program_transform_name=$ac_optarg ;;
  1155. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1156. ac_prev=pdfdir ;;
  1157. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1158. pdfdir=$ac_optarg ;;
  1159. -psdir | --psdir | --psdi | --psd | --ps)
  1160. ac_prev=psdir ;;
  1161. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1162. psdir=$ac_optarg ;;
  1163. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1164. | -silent | --silent | --silen | --sile | --sil)
  1165. silent=yes ;;
  1166. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1167. ac_prev=sbindir ;;
  1168. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1169. | --sbi=* | --sb=*)
  1170. sbindir=$ac_optarg ;;
  1171. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1172. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1173. | --sharedst | --shareds | --shared | --share | --shar \
  1174. | --sha | --sh)
  1175. ac_prev=sharedstatedir ;;
  1176. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1177. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1178. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1179. | --sha=* | --sh=*)
  1180. sharedstatedir=$ac_optarg ;;
  1181. -site | --site | --sit)
  1182. ac_prev=site ;;
  1183. -site=* | --site=* | --sit=*)
  1184. site=$ac_optarg ;;
  1185. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1186. ac_prev=srcdir ;;
  1187. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1188. srcdir=$ac_optarg ;;
  1189. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1190. | --syscon | --sysco | --sysc | --sys | --sy)
  1191. ac_prev=sysconfdir ;;
  1192. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1193. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1194. sysconfdir=$ac_optarg ;;
  1195. -target | --target | --targe | --targ | --tar | --ta | --t)
  1196. ac_prev=target_alias ;;
  1197. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1198. target_alias=$ac_optarg ;;
  1199. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1200. verbose=yes ;;
  1201. -version | --version | --versio | --versi | --vers | -V)
  1202. ac_init_version=: ;;
  1203. -with-* | --with-*)
  1204. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1205. # Reject names that are not valid shell variable names.
  1206. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1207. as_fn_error $? "invalid package name: $ac_useropt"
  1208. ac_useropt_orig=$ac_useropt
  1209. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1210. case $ac_user_opts in
  1211. *"
  1212. "with_$ac_useropt"
  1213. "*) ;;
  1214. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1215. ac_unrecognized_sep=', ';;
  1216. esac
  1217. eval with_$ac_useropt=\$ac_optarg ;;
  1218. -without-* | --without-*)
  1219. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1220. # Reject names that are not valid shell variable names.
  1221. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1222. as_fn_error $? "invalid package name: $ac_useropt"
  1223. ac_useropt_orig=$ac_useropt
  1224. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1225. case $ac_user_opts in
  1226. *"
  1227. "with_$ac_useropt"
  1228. "*) ;;
  1229. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1230. ac_unrecognized_sep=', ';;
  1231. esac
  1232. eval with_$ac_useropt=no ;;
  1233. --x)
  1234. # Obsolete; use --with-x.
  1235. with_x=yes ;;
  1236. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1237. | --x-incl | --x-inc | --x-in | --x-i)
  1238. ac_prev=x_includes ;;
  1239. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1240. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1241. x_includes=$ac_optarg ;;
  1242. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1243. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1244. ac_prev=x_libraries ;;
  1245. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1246. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1247. x_libraries=$ac_optarg ;;
  1248. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1249. Try \`$0 --help' for more information"
  1250. ;;
  1251. *=*)
  1252. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1253. # Reject names that are not valid shell variable names.
  1254. case $ac_envvar in #(
  1255. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1256. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1257. esac
  1258. eval $ac_envvar=\$ac_optarg
  1259. export $ac_envvar ;;
  1260. *)
  1261. # FIXME: should be removed in autoconf 3.0.
  1262. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1263. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1264. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1265. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1266. ;;
  1267. esac
  1268. done
  1269. if test -n "$ac_prev"; then
  1270. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1271. as_fn_error $? "missing argument to $ac_option"
  1272. fi
  1273. if test -n "$ac_unrecognized_opts"; then
  1274. case $enable_option_checking in
  1275. no) ;;
  1276. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1277. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1278. esac
  1279. fi
  1280. # Check all directory arguments for consistency.
  1281. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1282. datadir sysconfdir sharedstatedir localstatedir includedir \
  1283. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1284. libdir localedir mandir
  1285. do
  1286. eval ac_val=\$$ac_var
  1287. # Remove trailing slashes.
  1288. case $ac_val in
  1289. */ )
  1290. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1291. eval $ac_var=\$ac_val;;
  1292. esac
  1293. # Be sure to have absolute directory names.
  1294. case $ac_val in
  1295. [\\/$]* | ?:[\\/]* ) continue;;
  1296. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1297. esac
  1298. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1299. done
  1300. # There might be people who depend on the old broken behavior: `$host'
  1301. # used to hold the argument of --host etc.
  1302. # FIXME: To remove some day.
  1303. build=$build_alias
  1304. host=$host_alias
  1305. target=$target_alias
  1306. # FIXME: To remove some day.
  1307. if test "x$host_alias" != x; then
  1308. if test "x$build_alias" = x; then
  1309. cross_compiling=maybe
  1310. elif test "x$build_alias" != "x$host_alias"; then
  1311. cross_compiling=yes
  1312. fi
  1313. fi
  1314. ac_tool_prefix=
  1315. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1316. test "$silent" = yes && exec 6>/dev/null
  1317. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1318. ac_ls_di=`ls -di .` &&
  1319. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1320. as_fn_error $? "working directory cannot be determined"
  1321. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1322. as_fn_error $? "pwd does not report name of working directory"
  1323. # Find the source files, if location was not specified.
  1324. if test -z "$srcdir"; then
  1325. ac_srcdir_defaulted=yes
  1326. # Try the directory containing this script, then the parent directory.
  1327. ac_confdir=`$as_dirname -- "$as_myself" ||
  1328. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1329. X"$as_myself" : 'X\(//\)[^/]' \| \
  1330. X"$as_myself" : 'X\(//\)$' \| \
  1331. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1332. $as_echo X"$as_myself" |
  1333. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1334. s//\1/
  1335. q
  1336. }
  1337. /^X\(\/\/\)[^/].*/{
  1338. s//\1/
  1339. q
  1340. }
  1341. /^X\(\/\/\)$/{
  1342. s//\1/
  1343. q
  1344. }
  1345. /^X\(\/\).*/{
  1346. s//\1/
  1347. q
  1348. }
  1349. s/.*/./; q'`
  1350. srcdir=$ac_confdir
  1351. if test ! -r "$srcdir/$ac_unique_file"; then
  1352. srcdir=..
  1353. fi
  1354. else
  1355. ac_srcdir_defaulted=no
  1356. fi
  1357. if test ! -r "$srcdir/$ac_unique_file"; then
  1358. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1359. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1360. fi
  1361. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1362. ac_abs_confdir=`(
  1363. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1364. pwd)`
  1365. # When building in place, set srcdir=.
  1366. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1367. srcdir=.
  1368. fi
  1369. # Remove unnecessary trailing slashes from srcdir.
  1370. # Double slashes in file names in object file debugging info
  1371. # mess up M-x gdb in Emacs.
  1372. case $srcdir in
  1373. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1374. esac
  1375. for ac_var in $ac_precious_vars; do
  1376. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1377. eval ac_env_${ac_var}_value=\$${ac_var}
  1378. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1379. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1380. done
  1381. #
  1382. # Report the --help message.
  1383. #
  1384. if test "$ac_init_help" = "long"; then
  1385. # Omit some internal or obsolete options to make the list less imposing.
  1386. # This message is too long to be a string in the A/UX 3.1 sh.
  1387. cat <<_ACEOF
  1388. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1389. Usage: $0 [OPTION]... [VAR=VALUE]...
  1390. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1391. VAR=VALUE. See below for descriptions of some of the useful variables.
  1392. Defaults for the options are specified in brackets.
  1393. Configuration:
  1394. -h, --help display this help and exit
  1395. --help=short display options specific to this package
  1396. --help=recursive display the short help of all the included packages
  1397. -V, --version display version information and exit
  1398. -q, --quiet, --silent do not print \`checking ...' messages
  1399. --cache-file=FILE cache test results in FILE [disabled]
  1400. -C, --config-cache alias for \`--cache-file=config.cache'
  1401. -n, --no-create do not create output files
  1402. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1403. Installation directories:
  1404. --prefix=PREFIX install architecture-independent files in PREFIX
  1405. [$ac_default_prefix]
  1406. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1407. [PREFIX]
  1408. By default, \`make install' will install all the files in
  1409. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1410. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1411. for instance \`--prefix=\$HOME'.
  1412. For better control, use the options below.
  1413. Fine tuning of the installation directories:
  1414. --bindir=DIR user executables [EPREFIX/bin]
  1415. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1416. --libexecdir=DIR program executables [EPREFIX/libexec]
  1417. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1418. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1419. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1420. --libdir=DIR object code libraries [EPREFIX/lib]
  1421. --includedir=DIR C header files [PREFIX/include]
  1422. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1423. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1424. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1425. --infodir=DIR info documentation [DATAROOTDIR/info]
  1426. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1427. --mandir=DIR man documentation [DATAROOTDIR/man]
  1428. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1429. --htmldir=DIR html documentation [DOCDIR]
  1430. --dvidir=DIR dvi documentation [DOCDIR]
  1431. --pdfdir=DIR pdf documentation [DOCDIR]
  1432. --psdir=DIR ps documentation [DOCDIR]
  1433. _ACEOF
  1434. cat <<\_ACEOF
  1435. Program names:
  1436. --program-prefix=PREFIX prepend PREFIX to installed program names
  1437. --program-suffix=SUFFIX append SUFFIX to installed program names
  1438. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1439. System types:
  1440. --build=BUILD configure for building on BUILD [guessed]
  1441. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1442. _ACEOF
  1443. fi
  1444. if test -n "$ac_init_help"; then
  1445. case $ac_init_help in
  1446. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1447. esac
  1448. cat <<\_ACEOF
  1449. Optional Features:
  1450. --disable-option-checking ignore unrecognized --enable/--with options
  1451. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1452. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1453. --enable-maintainer-mode
  1454. enable make rules and dependencies not useful (and
  1455. sometimes confusing) to the casual installer
  1456. --enable-dependency-tracking
  1457. do not reject slow dependency extractors
  1458. --disable-dependency-tracking
  1459. speeds up one-time build
  1460. --enable-static[=PKGS] build static libraries [default=no]
  1461. --enable-shared[=PKGS] build shared libraries [default=yes]
  1462. --enable-fast-install[=PKGS]
  1463. optimize for fast installation [default=yes]
  1464. --disable-libtool-lock avoid locking (might break parallel builds)
  1465. --enable-debug Enable debug features (default: no)
  1466. --enable-bundle Enable bundled dependencies (default: no)
  1467. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1468. yes)
  1469. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1470. plugin (default: yes)
  1471. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1472. (default: yes)
  1473. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1474. support (default: no)
  1475. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1476. domain socket (LDAPI) support (default: no)
  1477. --enable-bitwise enable the bitwise matching rule plugin (default:
  1478. yes)
  1479. --enable-presence enable the presence plugin (default: no)
  1480. --enable-acctpolicy enable the account policy plugin (default: yes)
  1481. --enable-posix-winsync enable support for POSIX user/group attributes in
  1482. winsync (default: yes)
  1483. Optional Packages:
  1484. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1485. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1486. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1487. both]
  1488. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1489. --with-sysroot=DIR Search for dependent libraries within DIR
  1490. (or the compiler's sysroot if not specified).
  1491. --with-fhs Use FHS layout
  1492. --with-fhs-opt Use FHS optional layout
  1493. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1494. (default: $with_tmpfiles_d)
  1495. --with-systemdsystemunitdir=PATH
  1496. Directory for systemd service files (default:
  1497. $with_systemdsystemunitdir)
  1498. --with-systemdsystemconfdir=PATH
  1499. Directory for systemd service files (default:
  1500. $with_systemdsystemconfdir)
  1501. --with-systemdgroupname=NAME
  1502. Name of group target for all instances (default:
  1503. $with_systemdgroupname)
  1504. --with-instconfigdir=/path
  1505. Base directory for instance specific writable
  1506. configuration directories (default
  1507. $sysconfdir/$PACKAGE_NAME)
  1508. --with-initddir=/path Absolute path (not relative like some of the other
  1509. options) that should contain the SysV init scripts
  1510. (default '$(sysconfdir)/rc.d')
  1511. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1512. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1513. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1514. --with-nss[=PATH] Network Security Services (NSS) directory
  1515. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1516. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1517. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1518. --with-openldap-inc=PATH
  1519. OpenLDAP SDK include directory
  1520. --with-openldap-lib=PATH
  1521. OpenLDAP SDK library directory
  1522. --with-openldap-bin=PATH
  1523. OpenLDAP SDK binary directory
  1524. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1525. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1526. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1527. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1528. --with-db[=PATH] Berkeley DB directory
  1529. --with-db-inc=PATH Berkeley DB include file directory
  1530. --with-db-lib=PATH Berkeley DB library directory
  1531. --with-sasl[=PATH] Use SASL from supplied path
  1532. --with-sasl-inc=PATH SASL include file directory
  1533. --with-sasl-lib=PATH SASL library directory
  1534. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1535. SVRCORE
  1536. --with-svrcore-inc=PATH SVRCORE include file directory
  1537. --with-svrcore-lib=PATH SVRCORE library directory
  1538. --with-icu[=PATH] ICU directory
  1539. --with-icu-inc=PATH ICU include directory
  1540. --with-icu-lib=PATH ICU library directory
  1541. --with-icu-bin=PATH ICU binary directory
  1542. --with-netsnmp[=PATH] Net-SNMP directory
  1543. --with-netsnmp-inc=PATH Net-SNMP include directory
  1544. --with-netsnmp-lib=PATH Net-SNMP library directory
  1545. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1546. the server to authenticate directly with a keytab -
  1547. otherwise, SASL/GSSAPI auth depends on underlying
  1548. SASL libraries and external kinit with a keytab - if
  1549. PATH is not specified, look for kerberos in the
  1550. system locations. This will attempt to use
  1551. krb5-config from the PATH to find the libs and
  1552. include dirs - you can specify KRB5_CONFIG_BIN to
  1553. specify a different filename or absolute path. If
  1554. krb5-config does not work, this will attempt to look
  1555. in various system directories
  1556. --with-kerberos-inc=PATH
  1557. Allows you to explicitly set the directory
  1558. containing the kerberos include files - implies use
  1559. of kerberos
  1560. --with-kerberos-lib=PATH
  1561. Allows you to explicitly set the directory
  1562. containing the kerberos libraries - implies use of
  1563. kerberos
  1564. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1565. --with-selinux Support SELinux policy
  1566. Some influential environment variables:
  1567. CXX C++ compiler command
  1568. CXXFLAGS C++ compiler flags
  1569. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1570. nonstandard directory <lib dir>
  1571. LIBS libraries to pass to the linker, e.g. -l<library>
  1572. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1573. you have headers in a nonstandard directory <include dir>
  1574. CC C compiler command
  1575. CFLAGS C compiler flags
  1576. CCAS assembler compiler command (defaults to CC)
  1577. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1578. CPP C preprocessor
  1579. CXXCPP C++ preprocessor
  1580. PKG_CONFIG path to pkg-config utility
  1581. PKG_CONFIG_PATH
  1582. directories to add to pkg-config's search path
  1583. PKG_CONFIG_LIBDIR
  1584. path overriding pkg-config's built-in search path
  1585. Use these variables to override the choices made by `configure' or to help
  1586. it to find libraries and programs with nonstandard names/locations.
  1587. Report bugs to <http://bugzilla.redhat.com/>.
  1588. _ACEOF
  1589. ac_status=$?
  1590. fi
  1591. if test "$ac_init_help" = "recursive"; then
  1592. # If there are subdirs, report their specific --help.
  1593. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1594. test -d "$ac_dir" ||
  1595. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1596. continue
  1597. ac_builddir=.
  1598. case "$ac_dir" in
  1599. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1600. *)
  1601. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1602. # A ".." for each directory in $ac_dir_suffix.
  1603. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1604. case $ac_top_builddir_sub in
  1605. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1606. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1607. esac ;;
  1608. esac
  1609. ac_abs_top_builddir=$ac_pwd
  1610. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1611. # for backward compatibility:
  1612. ac_top_builddir=$ac_top_build_prefix
  1613. case $srcdir in
  1614. .) # We are building in place.
  1615. ac_srcdir=.
  1616. ac_top_srcdir=$ac_top_builddir_sub
  1617. ac_abs_top_srcdir=$ac_pwd ;;
  1618. [\\/]* | ?:[\\/]* ) # Absolute name.
  1619. ac_srcdir=$srcdir$ac_dir_suffix;
  1620. ac_top_srcdir=$srcdir
  1621. ac_abs_top_srcdir=$srcdir ;;
  1622. *) # Relative name.
  1623. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1624. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1625. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1626. esac
  1627. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1628. cd "$ac_dir" || { ac_status=$?; continue; }
  1629. # Check for guested configure.
  1630. if test -f "$ac_srcdir/configure.gnu"; then
  1631. echo &&
  1632. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1633. elif test -f "$ac_srcdir/configure"; then
  1634. echo &&
  1635. $SHELL "$ac_srcdir/configure" --help=recursive
  1636. else
  1637. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1638. fi || ac_status=$?
  1639. cd "$ac_pwd" || { ac_status=$?; break; }
  1640. done
  1641. fi
  1642. test -n "$ac_init_help" && exit $ac_status
  1643. if $ac_init_version; then
  1644. cat <<\_ACEOF
  1645. dirsrv configure 1.0
  1646. generated by GNU Autoconf 2.69
  1647. Copyright (C) 2012 Free Software Foundation, Inc.
  1648. This configure script is free software; the Free Software Foundation
  1649. gives unlimited permission to copy, distribute and modify it.
  1650. _ACEOF
  1651. exit
  1652. fi
  1653. ## ------------------------ ##
  1654. ## Autoconf initialization. ##
  1655. ## ------------------------ ##
  1656. # ac_fn_cxx_try_compile LINENO
  1657. # ----------------------------
  1658. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1659. ac_fn_cxx_try_compile ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. rm -f conftest.$ac_objext
  1663. if { { ac_try="$ac_compile"
  1664. case "(($ac_try" in
  1665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1666. *) ac_try_echo=$ac_try;;
  1667. esac
  1668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1669. $as_echo "$ac_try_echo"; } >&5
  1670. (eval "$ac_compile") 2>conftest.err
  1671. ac_status=$?
  1672. if test -s conftest.err; then
  1673. grep -v '^ *+' conftest.err >conftest.er1
  1674. cat conftest.er1 >&5
  1675. mv -f conftest.er1 conftest.err
  1676. fi
  1677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1678. test $ac_status = 0; } && {
  1679. test -z "$ac_cxx_werror_flag" ||
  1680. test ! -s conftest.err
  1681. } && test -s conftest.$ac_objext; then :
  1682. ac_retval=0
  1683. else
  1684. $as_echo "$as_me: failed program was:" >&5
  1685. sed 's/^/| /' conftest.$ac_ext >&5
  1686. ac_retval=1
  1687. fi
  1688. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1689. as_fn_set_status $ac_retval
  1690. } # ac_fn_cxx_try_compile
  1691. # ac_fn_c_try_compile LINENO
  1692. # --------------------------
  1693. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1694. ac_fn_c_try_compile ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. rm -f conftest.$ac_objext
  1698. if { { ac_try="$ac_compile"
  1699. case "(($ac_try" in
  1700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1701. *) ac_try_echo=$ac_try;;
  1702. esac
  1703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1704. $as_echo "$ac_try_echo"; } >&5
  1705. (eval "$ac_compile") 2>conftest.err
  1706. ac_status=$?
  1707. if test -s conftest.err; then
  1708. grep -v '^ *+' conftest.err >conftest.er1
  1709. cat conftest.er1 >&5
  1710. mv -f conftest.er1 conftest.err
  1711. fi
  1712. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1713. test $ac_status = 0; } && {
  1714. test -z "$ac_c_werror_flag" ||
  1715. test ! -s conftest.err
  1716. } && test -s conftest.$ac_objext; then :
  1717. ac_retval=0
  1718. else
  1719. $as_echo "$as_me: failed program was:" >&5
  1720. sed 's/^/| /' conftest.$ac_ext >&5
  1721. ac_retval=1
  1722. fi
  1723. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1724. as_fn_set_status $ac_retval
  1725. } # ac_fn_c_try_compile
  1726. # ac_fn_c_try_link LINENO
  1727. # -----------------------
  1728. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1729. ac_fn_c_try_link ()
  1730. {
  1731. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1732. rm -f conftest.$ac_objext conftest$ac_exeext
  1733. if { { ac_try="$ac_link"
  1734. case "(($ac_try" in
  1735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1736. *) ac_try_echo=$ac_try;;
  1737. esac
  1738. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1739. $as_echo "$ac_try_echo"; } >&5
  1740. (eval "$ac_link") 2>conftest.err
  1741. ac_status=$?
  1742. if test -s conftest.err; then
  1743. grep -v '^ *+' conftest.err >conftest.er1
  1744. cat conftest.er1 >&5
  1745. mv -f conftest.er1 conftest.err
  1746. fi
  1747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1748. test $ac_status = 0; } && {
  1749. test -z "$ac_c_werror_flag" ||
  1750. test ! -s conftest.err
  1751. } && test -s conftest$ac_exeext && {
  1752. test "$cross_compiling" = yes ||
  1753. test -x conftest$ac_exeext
  1754. }; then :
  1755. ac_retval=0
  1756. else
  1757. $as_echo "$as_me: failed program was:" >&5
  1758. sed 's/^/| /' conftest.$ac_ext >&5
  1759. ac_retval=1
  1760. fi
  1761. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1762. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1763. # interfere with the next link command; also delete a directory that is
  1764. # left behind by Apple's compiler. We do this before executing the actions.
  1765. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1766. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1767. as_fn_set_status $ac_retval
  1768. } # ac_fn_c_try_link
  1769. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1770. # -------------------------------------------------------
  1771. # Tests whether HEADER exists and can be compiled using the include files in
  1772. # INCLUDES, setting the cache variable VAR accordingly.
  1773. ac_fn_c_check_header_compile ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1777. $as_echo_n "checking for $2... " >&6; }
  1778. if eval \${$3+:} false; then :
  1779. $as_echo_n "(cached) " >&6
  1780. else
  1781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1782. /* end confdefs.h. */
  1783. $4
  1784. #include <$2>
  1785. _ACEOF
  1786. if ac_fn_c_try_compile "$LINENO"; then :
  1787. eval "$3=yes"
  1788. else
  1789. eval "$3=no"
  1790. fi
  1791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1792. fi
  1793. eval ac_res=\$$3
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1795. $as_echo "$ac_res" >&6; }
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. } # ac_fn_c_check_header_compile
  1798. # ac_fn_c_try_cpp LINENO
  1799. # ----------------------
  1800. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1801. ac_fn_c_try_cpp ()
  1802. {
  1803. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1804. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1805. case "(($ac_try" in
  1806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1807. *) ac_try_echo=$ac_try;;
  1808. esac
  1809. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1810. $as_echo "$ac_try_echo"; } >&5
  1811. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1812. ac_status=$?
  1813. if test -s conftest.err; then
  1814. grep -v '^ *+' conftest.err >conftest.er1
  1815. cat conftest.er1 >&5
  1816. mv -f conftest.er1 conftest.err
  1817. fi
  1818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1819. test $ac_status = 0; } > conftest.i && {
  1820. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1821. test ! -s conftest.err
  1822. }; then :
  1823. ac_retval=0
  1824. else
  1825. $as_echo "$as_me: failed program was:" >&5
  1826. sed 's/^/| /' conftest.$ac_ext >&5
  1827. ac_retval=1
  1828. fi
  1829. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1830. as_fn_set_status $ac_retval
  1831. } # ac_fn_c_try_cpp
  1832. # ac_fn_c_try_run LINENO
  1833. # ----------------------
  1834. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1835. # that executables *can* be run.
  1836. ac_fn_c_try_run ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. if { { ac_try="$ac_link"
  1840. case "(($ac_try" in
  1841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1842. *) ac_try_echo=$ac_try;;
  1843. esac
  1844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1845. $as_echo "$ac_try_echo"; } >&5
  1846. (eval "$ac_link") 2>&5
  1847. ac_status=$?
  1848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1849. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1850. { { case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_try") 2>&5
  1857. ac_status=$?
  1858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1859. test $ac_status = 0; }; }; then :
  1860. ac_retval=0
  1861. else
  1862. $as_echo "$as_me: program exited with status $ac_status" >&5
  1863. $as_echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. ac_retval=$ac_status
  1866. fi
  1867. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1868. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1869. as_fn_set_status $ac_retval
  1870. } # ac_fn_c_try_run
  1871. # ac_fn_c_check_func LINENO FUNC VAR
  1872. # ----------------------------------
  1873. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1874. ac_fn_c_check_func ()
  1875. {
  1876. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1878. $as_echo_n "checking for $2... " >&6; }
  1879. if eval \${$3+:} false; then :
  1880. $as_echo_n "(cached) " >&6
  1881. else
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1885. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1886. #define $2 innocuous_$2
  1887. /* System header to define __stub macros and hopefully few prototypes,
  1888. which can conflict with char $2 (); below.
  1889. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1890. <limits.h> exists even on freestanding compilers. */
  1891. #ifdef __STDC__
  1892. # include <limits.h>
  1893. #else
  1894. # include <assert.h>
  1895. #endif
  1896. #undef $2
  1897. /* Override any GCC internal prototype to avoid an error.
  1898. Use char because int might match the return type of a GCC
  1899. builtin and then its argument prototype would still apply. */
  1900. #ifdef __cplusplus
  1901. extern "C"
  1902. #endif
  1903. char $2 ();
  1904. /* The GNU C library defines this for functions which it implements
  1905. to always fail with ENOSYS. Some functions are actually named
  1906. something starting with __ and the normal name is an alias. */
  1907. #if defined __stub_$2 || defined __stub___$2
  1908. choke me
  1909. #endif
  1910. int
  1911. main ()
  1912. {
  1913. return $2 ();
  1914. ;
  1915. return 0;
  1916. }
  1917. _ACEOF
  1918. if ac_fn_c_try_link "$LINENO"; then :
  1919. eval "$3=yes"
  1920. else
  1921. eval "$3=no"
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext \
  1924. conftest$ac_exeext conftest.$ac_ext
  1925. fi
  1926. eval ac_res=\$$3
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1928. $as_echo "$ac_res" >&6; }
  1929. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1930. } # ac_fn_c_check_func
  1931. # ac_fn_cxx_try_cpp LINENO
  1932. # ------------------------
  1933. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1934. ac_fn_cxx_try_cpp ()
  1935. {
  1936. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1937. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1938. case "(($ac_try" in
  1939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1940. *) ac_try_echo=$ac_try;;
  1941. esac
  1942. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1943. $as_echo "$ac_try_echo"; } >&5
  1944. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1945. ac_status=$?
  1946. if test -s conftest.err; then
  1947. grep -v '^ *+' conftest.err >conftest.er1
  1948. cat conftest.er1 >&5
  1949. mv -f conftest.er1 conftest.err
  1950. fi
  1951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1952. test $ac_status = 0; } > conftest.i && {
  1953. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1954. test ! -s conftest.err
  1955. }; then :
  1956. ac_retval=0
  1957. else
  1958. $as_echo "$as_me: failed program was:" >&5
  1959. sed 's/^/| /' conftest.$ac_ext >&5
  1960. ac_retval=1
  1961. fi
  1962. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1963. as_fn_set_status $ac_retval
  1964. } # ac_fn_cxx_try_cpp
  1965. # ac_fn_cxx_try_link LINENO
  1966. # -------------------------
  1967. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1968. ac_fn_cxx_try_link ()
  1969. {
  1970. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1971. rm -f conftest.$ac_objext conftest$ac_exeext
  1972. if { { ac_try="$ac_link"
  1973. case "(($ac_try" in
  1974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1975. *) ac_try_echo=$ac_try;;
  1976. esac
  1977. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1978. $as_echo "$ac_try_echo"; } >&5
  1979. (eval "$ac_link") 2>conftest.err
  1980. ac_status=$?
  1981. if test -s conftest.err; then
  1982. grep -v '^ *+' conftest.err >conftest.er1
  1983. cat conftest.er1 >&5
  1984. mv -f conftest.er1 conftest.err
  1985. fi
  1986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1987. test $ac_status = 0; } && {
  1988. test -z "$ac_cxx_werror_flag" ||
  1989. test ! -s conftest.err
  1990. } && test -s conftest$ac_exeext && {
  1991. test "$cross_compiling" = yes ||
  1992. test -x conftest$ac_exeext
  1993. }; then :
  1994. ac_retval=0
  1995. else
  1996. $as_echo "$as_me: failed program was:" >&5
  1997. sed 's/^/| /' conftest.$ac_ext >&5
  1998. ac_retval=1
  1999. fi
  2000. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2001. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2002. # interfere with the next link command; also delete a directory that is
  2003. # left behind by Apple's compiler. We do this before executing the actions.
  2004. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2005. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2006. as_fn_set_status $ac_retval
  2007. } # ac_fn_cxx_try_link
  2008. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2009. # -------------------------------------------------------
  2010. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2011. # the include files in INCLUDES and setting the cache variable VAR
  2012. # accordingly.
  2013. ac_fn_c_check_header_mongrel ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. if eval \${$3+:} false; then :
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2018. $as_echo_n "checking for $2... " >&6; }
  2019. if eval \${$3+:} false; then :
  2020. $as_echo_n "(cached) " >&6
  2021. fi
  2022. eval ac_res=\$$3
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2024. $as_echo "$ac_res" >&6; }
  2025. else
  2026. # Is the header compilable?
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2028. $as_echo_n "checking $2 usability... " >&6; }
  2029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2030. /* end confdefs.h. */
  2031. $4
  2032. #include <$2>
  2033. _ACEOF
  2034. if ac_fn_c_try_compile "$LINENO"; then :
  2035. ac_header_compiler=yes
  2036. else
  2037. ac_header_compiler=no
  2038. fi
  2039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2041. $as_echo "$ac_header_compiler" >&6; }
  2042. # Is the header present?
  2043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2044. $as_echo_n "checking $2 presence... " >&6; }
  2045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2046. /* end confdefs.h. */
  2047. #include <$2>
  2048. _ACEOF
  2049. if ac_fn_c_try_cpp "$LINENO"; then :
  2050. ac_header_preproc=yes
  2051. else
  2052. ac_header_preproc=no
  2053. fi
  2054. rm -f conftest.err conftest.i conftest.$ac_ext
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2056. $as_echo "$ac_header_preproc" >&6; }
  2057. # So? What about this header?
  2058. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2059. yes:no: )
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2061. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2063. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2064. ;;
  2065. no:yes:* )
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2067. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2069. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2071. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2073. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2075. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2076. ( $as_echo "## ------------------------------------------ ##
  2077. ## Report this to http://bugzilla.redhat.com/ ##
  2078. ## ------------------------------------------ ##"
  2079. ) | sed "s/^/$as_me: WARNING: /" >&2
  2080. ;;
  2081. esac
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2083. $as_echo_n "checking for $2... " >&6; }
  2084. if eval \${$3+:} false; then :
  2085. $as_echo_n "(cached) " >&6
  2086. else
  2087. eval "$3=\$ac_header_compiler"
  2088. fi
  2089. eval ac_res=\$$3
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2091. $as_echo "$ac_res" >&6; }
  2092. fi
  2093. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2094. } # ac_fn_c_check_header_mongrel
  2095. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2096. # -------------------------------------------
  2097. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2098. # variable VAR accordingly.
  2099. ac_fn_c_check_type ()
  2100. {
  2101. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2103. $as_echo_n "checking for $2... " >&6; }
  2104. if eval \${$3+:} false; then :
  2105. $as_echo_n "(cached) " >&6
  2106. else
  2107. eval "$3=no"
  2108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2109. /* end confdefs.h. */
  2110. $4
  2111. int
  2112. main ()
  2113. {
  2114. if (sizeof ($2))
  2115. return 0;
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"; then :
  2121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2122. /* end confdefs.h. */
  2123. $4
  2124. int
  2125. main ()
  2126. {
  2127. if (sizeof (($2)))
  2128. return 0;
  2129. ;
  2130. return 0;
  2131. }
  2132. _ACEOF
  2133. if ac_fn_c_try_compile "$LINENO"; then :
  2134. else
  2135. eval "$3=yes"
  2136. fi
  2137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2138. fi
  2139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2140. fi
  2141. eval ac_res=\$$3
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2143. $as_echo "$ac_res" >&6; }
  2144. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2145. } # ac_fn_c_check_type
  2146. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2147. # ---------------------------------------------
  2148. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2149. # accordingly.
  2150. ac_fn_c_check_decl ()
  2151. {
  2152. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2153. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2154. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2156. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2157. if eval \${$3+:} false; then :
  2158. $as_echo_n "(cached) " >&6
  2159. else
  2160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2161. /* end confdefs.h. */
  2162. $4
  2163. int
  2164. main ()
  2165. {
  2166. #ifndef $as_decl_name
  2167. #ifdef __cplusplus
  2168. (void) $as_decl_use;
  2169. #else
  2170. (void) $as_decl_name;
  2171. #endif
  2172. #endif
  2173. ;
  2174. return 0;
  2175. }
  2176. _ACEOF
  2177. if ac_fn_c_try_compile "$LINENO"; then :
  2178. eval "$3=yes"
  2179. else
  2180. eval "$3=no"
  2181. fi
  2182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183. fi
  2184. eval ac_res=\$$3
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2186. $as_echo "$ac_res" >&6; }
  2187. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2188. } # ac_fn_c_check_decl
  2189. cat >config.log <<_ACEOF
  2190. This file contains any messages produced by compilers while
  2191. running configure, to aid debugging if configure makes a mistake.
  2192. It was created by dirsrv $as_me 1.0, which was
  2193. generated by GNU Autoconf 2.69. Invocation command line was
  2194. $ $0 $@
  2195. _ACEOF
  2196. exec 5>>config.log
  2197. {
  2198. cat <<_ASUNAME
  2199. ## --------- ##
  2200. ## Platform. ##
  2201. ## --------- ##
  2202. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2203. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2204. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2205. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2206. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2207. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2208. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2209. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2210. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2211. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2212. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2213. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2214. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2215. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2216. _ASUNAME
  2217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2218. for as_dir in $PATH
  2219. do
  2220. IFS=$as_save_IFS
  2221. test -z "$as_dir" && as_dir=.
  2222. $as_echo "PATH: $as_dir"
  2223. done
  2224. IFS=$as_save_IFS
  2225. } >&5
  2226. cat >&5 <<_ACEOF
  2227. ## ----------- ##
  2228. ## Core tests. ##
  2229. ## ----------- ##
  2230. _ACEOF
  2231. # Keep a trace of the command line.
  2232. # Strip out --no-create and --no-recursion so they do not pile up.
  2233. # Strip out --silent because we don't want to record it for future runs.
  2234. # Also quote any args containing shell meta-characters.
  2235. # Make two passes to allow for proper duplicate-argument suppression.
  2236. ac_configure_args=
  2237. ac_configure_args0=
  2238. ac_configure_args1=
  2239. ac_must_keep_next=false
  2240. for ac_pass in 1 2
  2241. do
  2242. for ac_arg
  2243. do
  2244. case $ac_arg in
  2245. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2246. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2247. | -silent | --silent | --silen | --sile | --sil)
  2248. continue ;;
  2249. *\'*)
  2250. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2251. esac
  2252. case $ac_pass in
  2253. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2254. 2)
  2255. as_fn_append ac_configure_args1 " '$ac_arg'"
  2256. if test $ac_must_keep_next = true; then
  2257. ac_must_keep_next=false # Got value, back to normal.
  2258. else
  2259. case $ac_arg in
  2260. *=* | --config-cache | -C | -disable-* | --disable-* \
  2261. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2262. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2263. | -with-* | --with-* | -without-* | --without-* | --x)
  2264. case "$ac_configure_args0 " in
  2265. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2266. esac
  2267. ;;
  2268. -* ) ac_must_keep_next=true ;;
  2269. esac
  2270. fi
  2271. as_fn_append ac_configure_args " '$ac_arg'"
  2272. ;;
  2273. esac
  2274. done
  2275. done
  2276. { ac_configure_args0=; unset ac_configure_args0;}
  2277. { ac_configure_args1=; unset ac_configure_args1;}
  2278. # When interrupted or exit'd, cleanup temporary files, and complete
  2279. # config.log. We remove comments because anyway the quotes in there
  2280. # would cause problems or look ugly.
  2281. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2282. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2283. trap 'exit_status=$?
  2284. # Save into config.log some information that might help in debugging.
  2285. {
  2286. echo
  2287. $as_echo "## ---------------- ##
  2288. ## Cache variables. ##
  2289. ## ---------------- ##"
  2290. echo
  2291. # The following way of writing the cache mishandles newlines in values,
  2292. (
  2293. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2294. eval ac_val=\$$ac_var
  2295. case $ac_val in #(
  2296. *${as_nl}*)
  2297. case $ac_var in #(
  2298. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2299. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2300. esac
  2301. case $ac_var in #(
  2302. _ | IFS | as_nl) ;; #(
  2303. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2304. *) { eval $ac_var=; unset $ac_var;} ;;
  2305. esac ;;
  2306. esac
  2307. done
  2308. (set) 2>&1 |
  2309. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2310. *${as_nl}ac_space=\ *)
  2311. sed -n \
  2312. "s/'\''/'\''\\\\'\'''\''/g;
  2313. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2314. ;; #(
  2315. *)
  2316. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2317. ;;
  2318. esac |
  2319. sort
  2320. )
  2321. echo
  2322. $as_echo "## ----------------- ##
  2323. ## Output variables. ##
  2324. ## ----------------- ##"
  2325. echo
  2326. for ac_var in $ac_subst_vars
  2327. do
  2328. eval ac_val=\$$ac_var
  2329. case $ac_val in
  2330. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2331. esac
  2332. $as_echo "$ac_var='\''$ac_val'\''"
  2333. done | sort
  2334. echo
  2335. if test -n "$ac_subst_files"; then
  2336. $as_echo "## ------------------- ##
  2337. ## File substitutions. ##
  2338. ## ------------------- ##"
  2339. echo
  2340. for ac_var in $ac_subst_files
  2341. do
  2342. eval ac_val=\$$ac_var
  2343. case $ac_val in
  2344. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2345. esac
  2346. $as_echo "$ac_var='\''$ac_val'\''"
  2347. done | sort
  2348. echo
  2349. fi
  2350. if test -s confdefs.h; then
  2351. $as_echo "## ----------- ##
  2352. ## confdefs.h. ##
  2353. ## ----------- ##"
  2354. echo
  2355. cat confdefs.h
  2356. echo
  2357. fi
  2358. test "$ac_signal" != 0 &&
  2359. $as_echo "$as_me: caught signal $ac_signal"
  2360. $as_echo "$as_me: exit $exit_status"
  2361. } >&5
  2362. rm -f core *.core core.conftest.* &&
  2363. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2364. exit $exit_status
  2365. ' 0
  2366. for ac_signal in 1 2 13 15; do
  2367. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2368. done
  2369. ac_signal=0
  2370. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2371. rm -f -r conftest* confdefs.h
  2372. $as_echo "/* confdefs.h */" > confdefs.h
  2373. # Predefined preprocessor variables.
  2374. cat >>confdefs.h <<_ACEOF
  2375. #define PACKAGE_NAME "$PACKAGE_NAME"
  2376. _ACEOF
  2377. cat >>confdefs.h <<_ACEOF
  2378. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2379. _ACEOF
  2380. cat >>confdefs.h <<_ACEOF
  2381. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2382. _ACEOF
  2383. cat >>confdefs.h <<_ACEOF
  2384. #define PACKAGE_STRING "$PACKAGE_STRING"
  2385. _ACEOF
  2386. cat >>confdefs.h <<_ACEOF
  2387. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2388. _ACEOF
  2389. cat >>confdefs.h <<_ACEOF
  2390. #define PACKAGE_URL "$PACKAGE_URL"
  2391. _ACEOF
  2392. # Let the site file select an alternate cache file if it wants to.
  2393. # Prefer an explicitly selected file to automatically selected ones.
  2394. ac_site_file1=NONE
  2395. ac_site_file2=NONE
  2396. if test -n "$CONFIG_SITE"; then
  2397. # We do not want a PATH search for config.site.
  2398. case $CONFIG_SITE in #((
  2399. -*) ac_site_file1=./$CONFIG_SITE;;
  2400. */*) ac_site_file1=$CONFIG_SITE;;
  2401. *) ac_site_file1=./$CONFIG_SITE;;
  2402. esac
  2403. elif test "x$prefix" != xNONE; then
  2404. ac_site_file1=$prefix/share/config.site
  2405. ac_site_file2=$prefix/etc/config.site
  2406. else
  2407. ac_site_file1=$ac_default_prefix/share/config.site
  2408. ac_site_file2=$ac_default_prefix/etc/config.site
  2409. fi
  2410. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2411. do
  2412. test "x$ac_site_file" = xNONE && continue
  2413. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2415. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2416. sed 's/^/| /' "$ac_site_file" >&5
  2417. . "$ac_site_file" \
  2418. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2419. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2420. as_fn_error $? "failed to load site script $ac_site_file
  2421. See \`config.log' for more details" "$LINENO" 5; }
  2422. fi
  2423. done
  2424. if test -r "$cache_file"; then
  2425. # Some versions of bash will fail to source /dev/null (special files
  2426. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2427. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2429. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2430. case $cache_file in
  2431. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2432. *) . "./$cache_file";;
  2433. esac
  2434. fi
  2435. else
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2437. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2438. >$cache_file
  2439. fi
  2440. as_fn_append ac_header_list " stdlib.h"
  2441. as_fn_append ac_header_list " unistd.h"
  2442. as_fn_append ac_header_list " sys/param.h"
  2443. # Check that the precious variables saved in the cache have kept the same
  2444. # value.
  2445. ac_cache_corrupted=false
  2446. for ac_var in $ac_precious_vars; do
  2447. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2448. eval ac_new_set=\$ac_env_${ac_var}_set
  2449. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2450. eval ac_new_val=\$ac_env_${ac_var}_value
  2451. case $ac_old_set,$ac_new_set in
  2452. set,)
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2454. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2455. ac_cache_corrupted=: ;;
  2456. ,set)
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2458. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2459. ac_cache_corrupted=: ;;
  2460. ,);;
  2461. *)
  2462. if test "x$ac_old_val" != "x$ac_new_val"; then
  2463. # differences in whitespace do not lead to failure.
  2464. ac_old_val_w=`echo x $ac_old_val`
  2465. ac_new_val_w=`echo x $ac_new_val`
  2466. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2468. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2469. ac_cache_corrupted=:
  2470. else
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2472. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2473. eval $ac_var=\$ac_old_val
  2474. fi
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2476. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2478. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2479. fi;;
  2480. esac
  2481. # Pass precious variables to config.status.
  2482. if test "$ac_new_set" = set; then
  2483. case $ac_new_val in
  2484. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2485. *) ac_arg=$ac_var=$ac_new_val ;;
  2486. esac
  2487. case " $ac_configure_args " in
  2488. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2489. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2490. esac
  2491. fi
  2492. done
  2493. if $ac_cache_corrupted; then
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2495. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2497. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2498. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2499. fi
  2500. ## -------------------- ##
  2501. ## Main body of script. ##
  2502. ## -------------------- ##
  2503. ac_ext=c
  2504. ac_cpp='$CPP $CPPFLAGS'
  2505. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2506. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2507. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2508. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2509. ac_config_headers="$ac_config_headers config.h"
  2510. # include the version information
  2511. . $srcdir/VERSION.sh
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2513. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2514. cat >>confdefs.h <<_ACEOF
  2515. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2516. _ACEOF
  2517. cat >>confdefs.h <<_ACEOF
  2518. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2519. _ACEOF
  2520. cat >>confdefs.h <<_ACEOF
  2521. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2522. _ACEOF
  2523. cat >>confdefs.h <<_ACEOF
  2524. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2525. _ACEOF
  2526. am__api_version='1.12'
  2527. ac_aux_dir=
  2528. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2529. if test -f "$ac_dir/install-sh"; then
  2530. ac_aux_dir=$ac_dir
  2531. ac_install_sh="$ac_aux_dir/install-sh -c"
  2532. break
  2533. elif test -f "$ac_dir/install.sh"; then
  2534. ac_aux_dir=$ac_dir
  2535. ac_install_sh="$ac_aux_dir/install.sh -c"
  2536. break
  2537. elif test -f "$ac_dir/shtool"; then
  2538. ac_aux_dir=$ac_dir
  2539. ac_install_sh="$ac_aux_dir/shtool install -c"
  2540. break
  2541. fi
  2542. done
  2543. if test -z "$ac_aux_dir"; then
  2544. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2545. fi
  2546. # These three variables are undocumented and unsupported,
  2547. # and are intended to be withdrawn in a future Autoconf release.
  2548. # They can cause serious problems if a builder's source tree is in a directory
  2549. # whose full name contains unusual characters.
  2550. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2551. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2552. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2553. # Find a good install program. We prefer a C program (faster),
  2554. # so one script is as good as another. But avoid the broken or
  2555. # incompatible versions:
  2556. # SysV /etc/install, /usr/sbin/install
  2557. # SunOS /usr/etc/install
  2558. # IRIX /sbin/install
  2559. # AIX /bin/install
  2560. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2561. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2562. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2563. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2564. # OS/2's system install, which has a completely different semantic
  2565. # ./install, which can be erroneously created by make from ./install.sh.
  2566. # Reject install programs that cannot install multiple files.
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2568. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2569. if test -z "$INSTALL"; then
  2570. if ${ac_cv_path_install+:} false; then :
  2571. $as_echo_n "(cached) " >&6
  2572. else
  2573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2574. for as_dir in $PATH
  2575. do
  2576. IFS=$as_save_IFS
  2577. test -z "$as_dir" && as_dir=.
  2578. # Account for people who put trailing slashes in PATH elements.
  2579. case $as_dir/ in #((
  2580. ./ | .// | /[cC]/* | \
  2581. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2582. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2583. /usr/ucb/* ) ;;
  2584. *)
  2585. # OSF1 and SCO ODT 3.0 have their own names for install.
  2586. # Don't use installbsd from OSF since it installs stuff as root
  2587. # by default.
  2588. for ac_prog in ginstall scoinst install; do
  2589. for ac_exec_ext in '' $ac_executable_extensions; do
  2590. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2591. if test $ac_prog = install &&
  2592. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2593. # AIX install. It has an incompatible calling convention.
  2594. :
  2595. elif test $ac_prog = install &&
  2596. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2597. # program-specific install script used by HP pwplus--don't use.
  2598. :
  2599. else
  2600. rm -rf conftest.one conftest.two conftest.dir
  2601. echo one > conftest.one
  2602. echo two > conftest.two
  2603. mkdir conftest.dir
  2604. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2605. test -s conftest.one && test -s conftest.two &&
  2606. test -s conftest.dir/conftest.one &&
  2607. test -s conftest.dir/conftest.two
  2608. then
  2609. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2610. break 3
  2611. fi
  2612. fi
  2613. fi
  2614. done
  2615. done
  2616. ;;
  2617. esac
  2618. done
  2619. IFS=$as_save_IFS
  2620. rm -rf conftest.one conftest.two conftest.dir
  2621. fi
  2622. if test "${ac_cv_path_install+set}" = set; then
  2623. INSTALL=$ac_cv_path_install
  2624. else
  2625. # As a last resort, use the slow shell script. Don't cache a
  2626. # value for INSTALL within a source directory, because that will
  2627. # break other packages using the cache if that directory is
  2628. # removed, or if the value is a relative name.
  2629. INSTALL=$ac_install_sh
  2630. fi
  2631. fi
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2633. $as_echo "$INSTALL" >&6; }
  2634. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2635. # It thinks the first close brace ends the variable substitution.
  2636. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2637. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2638. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2640. $as_echo_n "checking whether build environment is sane... " >&6; }
  2641. # Reject unsafe characters in $srcdir or the absolute working directory
  2642. # name. Accept space and tab only in the latter.
  2643. am_lf='
  2644. '
  2645. case `pwd` in
  2646. *[\\\"\#\$\&\'\`$am_lf]*)
  2647. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2648. esac
  2649. case $srcdir in
  2650. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2651. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2652. esac
  2653. # Do 'set' in a subshell so we don't clobber the current shell's
  2654. # arguments. Must try -L first in case configure is actually a
  2655. # symlink; some systems play weird games with the mod time of symlinks
  2656. # (eg FreeBSD returns the mod time of the symlink's containing
  2657. # directory).
  2658. if (
  2659. am_has_slept=no
  2660. for am_try in 1 2; do
  2661. echo "timestamp, slept: $am_has_slept" > conftest.file
  2662. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2663. if test "$*" = "X"; then
  2664. # -L didn't work.
  2665. set X `ls -t "$srcdir/configure" conftest.file`
  2666. fi
  2667. if test "$*" != "X $srcdir/configure conftest.file" \
  2668. && test "$*" != "X conftest.file $srcdir/configure"; then
  2669. # If neither matched, then we have a broken ls. This can happen
  2670. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2671. # broken ls alias from the environment. This has actually
  2672. # happened. Such a system could not be considered "sane".
  2673. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2674. alias in your environment" "$LINENO" 5
  2675. fi
  2676. if test "$2" = conftest.file || test $am_try -eq 2; then
  2677. break
  2678. fi
  2679. # Just in case.
  2680. sleep 1
  2681. am_has_slept=yes
  2682. done
  2683. test "$2" = conftest.file
  2684. )
  2685. then
  2686. # Ok.
  2687. :
  2688. else
  2689. as_fn_error $? "newly created file is older than distributed files!
  2690. Check your system clock" "$LINENO" 5
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2693. $as_echo "yes" >&6; }
  2694. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2695. # generated files are strictly newer.
  2696. am_sleep_pid=
  2697. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2698. ( sleep 1 ) &
  2699. am_sleep_pid=$!
  2700. fi
  2701. rm -f conftest.file
  2702. test "$program_prefix" != NONE &&
  2703. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2704. # Use a double $ so make ignores it.
  2705. test "$program_suffix" != NONE &&
  2706. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2707. # Double any \ or $.
  2708. # By default was `s,x,x', remove it if useless.
  2709. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2710. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2711. # expand $ac_aux_dir to an absolute path
  2712. am_aux_dir=`cd $ac_aux_dir && pwd`
  2713. if test x"${MISSING+set}" != xset; then
  2714. case $am_aux_dir in
  2715. *\ * | *\ *)
  2716. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2717. *)
  2718. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2719. esac
  2720. fi
  2721. # Use eval to expand $SHELL
  2722. if eval "$MISSING --run true"; then
  2723. am_missing_run="$MISSING --run "
  2724. else
  2725. am_missing_run=
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2727. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2728. fi
  2729. if test x"${install_sh}" != xset; then
  2730. case $am_aux_dir in
  2731. *\ * | *\ *)
  2732. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2733. *)
  2734. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2735. esac
  2736. fi
  2737. # Installed binaries are usually stripped using 'strip' when the user
  2738. # run "make install-strip". However 'strip' might not be the right
  2739. # tool to use in cross-compilation environments, therefore Automake
  2740. # will honor the 'STRIP' environment variable to overrule this program.
  2741. if test "$cross_compiling" != no; then
  2742. if test -n "$ac_tool_prefix"; then
  2743. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2744. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2746. $as_echo_n "checking for $ac_word... " >&6; }
  2747. if ${ac_cv_prog_STRIP+:} false; then :
  2748. $as_echo_n "(cached) " >&6
  2749. else
  2750. if test -n "$STRIP"; then
  2751. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2752. else
  2753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2754. for as_dir in $PATH
  2755. do
  2756. IFS=$as_save_IFS
  2757. test -z "$as_dir" && as_dir=.
  2758. for ac_exec_ext in '' $ac_executable_extensions; do
  2759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2760. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2762. break 2
  2763. fi
  2764. done
  2765. done
  2766. IFS=$as_save_IFS
  2767. fi
  2768. fi
  2769. STRIP=$ac_cv_prog_STRIP
  2770. if test -n "$STRIP"; then
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2772. $as_echo "$STRIP" >&6; }
  2773. else
  2774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2775. $as_echo "no" >&6; }
  2776. fi
  2777. fi
  2778. if test -z "$ac_cv_prog_STRIP"; then
  2779. ac_ct_STRIP=$STRIP
  2780. # Extract the first word of "strip", so it can be a program name with args.
  2781. set dummy strip; ac_word=$2
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2783. $as_echo_n "checking for $ac_word... " >&6; }
  2784. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2785. $as_echo_n "(cached) " >&6
  2786. else
  2787. if test -n "$ac_ct_STRIP"; then
  2788. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2789. else
  2790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2791. for as_dir in $PATH
  2792. do
  2793. IFS=$as_save_IFS
  2794. test -z "$as_dir" && as_dir=.
  2795. for ac_exec_ext in '' $ac_executable_extensions; do
  2796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2797. ac_cv_prog_ac_ct_STRIP="strip"
  2798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2799. break 2
  2800. fi
  2801. done
  2802. done
  2803. IFS=$as_save_IFS
  2804. fi
  2805. fi
  2806. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2807. if test -n "$ac_ct_STRIP"; then
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2809. $as_echo "$ac_ct_STRIP" >&6; }
  2810. else
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2812. $as_echo "no" >&6; }
  2813. fi
  2814. if test "x$ac_ct_STRIP" = x; then
  2815. STRIP=":"
  2816. else
  2817. case $cross_compiling:$ac_tool_warned in
  2818. yes:)
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2820. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2821. ac_tool_warned=yes ;;
  2822. esac
  2823. STRIP=$ac_ct_STRIP
  2824. fi
  2825. else
  2826. STRIP="$ac_cv_prog_STRIP"
  2827. fi
  2828. fi
  2829. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2831. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2832. if test -z "$MKDIR_P"; then
  2833. if ${ac_cv_path_mkdir+:} false; then :
  2834. $as_echo_n "(cached) " >&6
  2835. else
  2836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2837. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2838. do
  2839. IFS=$as_save_IFS
  2840. test -z "$as_dir" && as_dir=.
  2841. for ac_prog in mkdir gmkdir; do
  2842. for ac_exec_ext in '' $ac_executable_extensions; do
  2843. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2844. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2845. 'mkdir (GNU coreutils) '* | \
  2846. 'mkdir (coreutils) '* | \
  2847. 'mkdir (fileutils) '4.1*)
  2848. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2849. break 3;;
  2850. esac
  2851. done
  2852. done
  2853. done
  2854. IFS=$as_save_IFS
  2855. fi
  2856. test -d ./--version && rmdir ./--version
  2857. if test "${ac_cv_path_mkdir+set}" = set; then
  2858. MKDIR_P="$ac_cv_path_mkdir -p"
  2859. else
  2860. # As a last resort, use the slow shell script. Don't cache a
  2861. # value for MKDIR_P within a source directory, because that will
  2862. # break other packages using the cache if that directory is
  2863. # removed, or if the value is a relative name.
  2864. MKDIR_P="$ac_install_sh -d"
  2865. fi
  2866. fi
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2868. $as_echo "$MKDIR_P" >&6; }
  2869. for ac_prog in gawk mawk nawk awk
  2870. do
  2871. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2872. set dummy $ac_prog; ac_word=$2
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2874. $as_echo_n "checking for $ac_word... " >&6; }
  2875. if ${ac_cv_prog_AWK+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. if test -n "$AWK"; then
  2879. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2880. else
  2881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2882. for as_dir in $PATH
  2883. do
  2884. IFS=$as_save_IFS
  2885. test -z "$as_dir" && as_dir=.
  2886. for ac_exec_ext in '' $ac_executable_extensions; do
  2887. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2888. ac_cv_prog_AWK="$ac_prog"
  2889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2890. break 2
  2891. fi
  2892. done
  2893. done
  2894. IFS=$as_save_IFS
  2895. fi
  2896. fi
  2897. AWK=$ac_cv_prog_AWK
  2898. if test -n "$AWK"; then
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2900. $as_echo "$AWK" >&6; }
  2901. else
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2903. $as_echo "no" >&6; }
  2904. fi
  2905. test -n "$AWK" && break
  2906. done
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2908. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2909. set x ${MAKE-make}
  2910. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2911. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2912. $as_echo_n "(cached) " >&6
  2913. else
  2914. cat >conftest.make <<\_ACEOF
  2915. SHELL = /bin/sh
  2916. all:
  2917. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2918. _ACEOF
  2919. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2920. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2921. *@@@%%%=?*=@@@%%%*)
  2922. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2923. *)
  2924. eval ac_cv_prog_make_${ac_make}_set=no;;
  2925. esac
  2926. rm -f conftest.make
  2927. fi
  2928. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2930. $as_echo "yes" >&6; }
  2931. SET_MAKE=
  2932. else
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2934. $as_echo "no" >&6; }
  2935. SET_MAKE="MAKE=${MAKE-make}"
  2936. fi
  2937. rm -rf .tst 2>/dev/null
  2938. mkdir .tst 2>/dev/null
  2939. if test -d .tst; then
  2940. am__leading_dot=.
  2941. else
  2942. am__leading_dot=_
  2943. fi
  2944. rmdir .tst 2>/dev/null
  2945. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2946. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2947. # is not polluted with repeated "-I."
  2948. am__isrc=' -I$(srcdir)'
  2949. # test to see if srcdir already configured
  2950. if test -f $srcdir/config.status; then
  2951. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2952. fi
  2953. fi
  2954. # test whether we have cygpath
  2955. if test -z "$CYGPATH_W"; then
  2956. if (cygpath --version) >/dev/null 2>/dev/null; then
  2957. CYGPATH_W='cygpath -w'
  2958. else
  2959. CYGPATH_W=echo
  2960. fi
  2961. fi
  2962. # Define the identity of the package.
  2963. PACKAGE='dirsrv'
  2964. VERSION='1.0'
  2965. # Some tools Automake needs.
  2966. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2967. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2968. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2969. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2970. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2971. # For better backward compatibility. To be removed once Automake 1.9.x
  2972. # dies out for good. For more background, see:
  2973. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2974. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2975. mkdir_p='$(MKDIR_P)'
  2976. # We need awk for the "check" target. The system "awk" is bad on
  2977. # some platforms.
  2978. # Always define AMTAR for backward compatibility. Yes, it's still used
  2979. # in the wild :-( We should find a proper way to deprecate it ...
  2980. AMTAR='$${TAR-tar}'
  2981. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2982. # define these for automake distdir
  2983. VERSION=$PACKAGE_VERSION
  2984. PACKAGE=$PACKAGE_TARNAME
  2985. cat >>confdefs.h <<_ACEOF
  2986. #define VERSION "$VERSION"
  2987. _ACEOF
  2988. cat >>confdefs.h <<_ACEOF
  2989. #define PACKAGE "$PACKAGE"
  2990. _ACEOF
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2992. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2993. # Check whether --enable-maintainer-mode was given.
  2994. if test "${enable_maintainer_mode+set}" = set; then :
  2995. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2996. else
  2997. USE_MAINTAINER_MODE=no
  2998. fi
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3000. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3001. if test $USE_MAINTAINER_MODE = yes; then
  3002. MAINTAINER_MODE_TRUE=
  3003. MAINTAINER_MODE_FALSE='#'
  3004. else
  3005. MAINTAINER_MODE_TRUE='#'
  3006. MAINTAINER_MODE_FALSE=
  3007. fi
  3008. MAINT=$MAINTAINER_MODE_TRUE
  3009. # Make sure we can run config.sub.
  3010. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3011. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3013. $as_echo_n "checking build system type... " >&6; }
  3014. if ${ac_cv_build+:} false; then :
  3015. $as_echo_n "(cached) " >&6
  3016. else
  3017. ac_build_alias=$build_alias
  3018. test "x$ac_build_alias" = x &&
  3019. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3020. test "x$ac_build_alias" = x &&
  3021. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3022. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3023. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3024. fi
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3026. $as_echo "$ac_cv_build" >&6; }
  3027. case $ac_cv_build in
  3028. *-*-*) ;;
  3029. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3030. esac
  3031. build=$ac_cv_build
  3032. ac_save_IFS=$IFS; IFS='-'
  3033. set x $ac_cv_build
  3034. shift
  3035. build_cpu=$1
  3036. build_vendor=$2
  3037. shift; shift
  3038. # Remember, the first character of IFS is used to create $*,
  3039. # except with old shells:
  3040. build_os=$*
  3041. IFS=$ac_save_IFS
  3042. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3044. $as_echo_n "checking host system type... " >&6; }
  3045. if ${ac_cv_host+:} false; then :
  3046. $as_echo_n "(cached) " >&6
  3047. else
  3048. if test "x$host_alias" = x; then
  3049. ac_cv_host=$ac_cv_build
  3050. else
  3051. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3052. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3053. fi
  3054. fi
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3056. $as_echo "$ac_cv_host" >&6; }
  3057. case $ac_cv_host in
  3058. *-*-*) ;;
  3059. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3060. esac
  3061. host=$ac_cv_host
  3062. ac_save_IFS=$IFS; IFS='-'
  3063. set x $ac_cv_host
  3064. shift
  3065. host_cpu=$1
  3066. host_vendor=$2
  3067. shift; shift
  3068. # Remember, the first character of IFS is used to create $*,
  3069. # except with old shells:
  3070. host_os=$*
  3071. IFS=$ac_save_IFS
  3072. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3073. # Checks for programs.
  3074. ac_ext=cpp
  3075. ac_cpp='$CXXCPP $CPPFLAGS'
  3076. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3077. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3078. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3079. if test -z "$CXX"; then
  3080. if test -n "$CCC"; then
  3081. CXX=$CCC
  3082. else
  3083. if test -n "$ac_tool_prefix"; then
  3084. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3085. do
  3086. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3087. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3089. $as_echo_n "checking for $ac_word... " >&6; }
  3090. if ${ac_cv_prog_CXX+:} false; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. if test -n "$CXX"; then
  3094. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3095. else
  3096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3097. for as_dir in $PATH
  3098. do
  3099. IFS=$as_save_IFS
  3100. test -z "$as_dir" && as_dir=.
  3101. for ac_exec_ext in '' $ac_executable_extensions; do
  3102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3103. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3105. break 2
  3106. fi
  3107. done
  3108. done
  3109. IFS=$as_save_IFS
  3110. fi
  3111. fi
  3112. CXX=$ac_cv_prog_CXX
  3113. if test -n "$CXX"; then
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3115. $as_echo "$CXX" >&6; }
  3116. else
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3118. $as_echo "no" >&6; }
  3119. fi
  3120. test -n "$CXX" && break
  3121. done
  3122. fi
  3123. if test -z "$CXX"; then
  3124. ac_ct_CXX=$CXX
  3125. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3126. do
  3127. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3128. set dummy $ac_prog; ac_word=$2
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3130. $as_echo_n "checking for $ac_word... " >&6; }
  3131. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. if test -n "$ac_ct_CXX"; then
  3135. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3136. else
  3137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3138. for as_dir in $PATH
  3139. do
  3140. IFS=$as_save_IFS
  3141. test -z "$as_dir" && as_dir=.
  3142. for ac_exec_ext in '' $ac_executable_extensions; do
  3143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3144. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3146. break 2
  3147. fi
  3148. done
  3149. done
  3150. IFS=$as_save_IFS
  3151. fi
  3152. fi
  3153. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3154. if test -n "$ac_ct_CXX"; then
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3156. $as_echo "$ac_ct_CXX" >&6; }
  3157. else
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3159. $as_echo "no" >&6; }
  3160. fi
  3161. test -n "$ac_ct_CXX" && break
  3162. done
  3163. if test "x$ac_ct_CXX" = x; then
  3164. CXX="g++"
  3165. else
  3166. case $cross_compiling:$ac_tool_warned in
  3167. yes:)
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3169. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3170. ac_tool_warned=yes ;;
  3171. esac
  3172. CXX=$ac_ct_CXX
  3173. fi
  3174. fi
  3175. fi
  3176. fi
  3177. # Provide some information about the compiler.
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3179. set X $ac_compile
  3180. ac_compiler=$2
  3181. for ac_option in --version -v -V -qversion; do
  3182. { { ac_try="$ac_compiler $ac_option >&5"
  3183. case "(($ac_try" in
  3184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3185. *) ac_try_echo=$ac_try;;
  3186. esac
  3187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3188. $as_echo "$ac_try_echo"; } >&5
  3189. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3190. ac_status=$?
  3191. if test -s conftest.err; then
  3192. sed '10a\
  3193. ... rest of stderr output deleted ...
  3194. 10q' conftest.err >conftest.er1
  3195. cat conftest.er1 >&5
  3196. fi
  3197. rm -f conftest.er1 conftest.err
  3198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3199. test $ac_status = 0; }
  3200. done
  3201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3202. /* end confdefs.h. */
  3203. int
  3204. main ()
  3205. {
  3206. ;
  3207. return 0;
  3208. }
  3209. _ACEOF
  3210. ac_clean_files_save=$ac_clean_files
  3211. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3212. # Try to create an executable without -o first, disregard a.out.
  3213. # It will help us diagnose broken compilers, and finding out an intuition
  3214. # of exeext.
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3216. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3217. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3218. # The possible output files:
  3219. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3220. ac_rmfiles=
  3221. for ac_file in $ac_files
  3222. do
  3223. case $ac_file in
  3224. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3225. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3226. esac
  3227. done
  3228. rm -f $ac_rmfiles
  3229. if { { ac_try="$ac_link_default"
  3230. case "(($ac_try" in
  3231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3232. *) ac_try_echo=$ac_try;;
  3233. esac
  3234. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3235. $as_echo "$ac_try_echo"; } >&5
  3236. (eval "$ac_link_default") 2>&5
  3237. ac_status=$?
  3238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3239. test $ac_status = 0; }; then :
  3240. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3241. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3242. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3243. # so that the user can short-circuit this test for compilers unknown to
  3244. # Autoconf.
  3245. for ac_file in $ac_files ''
  3246. do
  3247. test -f "$ac_file" || continue
  3248. case $ac_file in
  3249. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3250. ;;
  3251. [ab].out )
  3252. # We found the default executable, but exeext='' is most
  3253. # certainly right.
  3254. break;;
  3255. *.* )
  3256. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3257. then :; else
  3258. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3259. fi
  3260. # We set ac_cv_exeext here because the later test for it is not
  3261. # safe: cross compilers may not add the suffix if given an `-o'
  3262. # argument, so we may need to know it at that point already.
  3263. # Even if this section looks crufty: it has the advantage of
  3264. # actually working.
  3265. break;;
  3266. * )
  3267. break;;
  3268. esac
  3269. done
  3270. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3271. else
  3272. ac_file=''
  3273. fi
  3274. if test -z "$ac_file"; then :
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3276. $as_echo "no" >&6; }
  3277. $as_echo "$as_me: failed program was:" >&5
  3278. sed 's/^/| /' conftest.$ac_ext >&5
  3279. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3281. as_fn_error 77 "C++ compiler cannot create executables
  3282. See \`config.log' for more details" "$LINENO" 5; }
  3283. else
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3285. $as_echo "yes" >&6; }
  3286. fi
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3288. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3290. $as_echo "$ac_file" >&6; }
  3291. ac_exeext=$ac_cv_exeext
  3292. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3293. ac_clean_files=$ac_clean_files_save
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3295. $as_echo_n "checking for suffix of executables... " >&6; }
  3296. if { { ac_try="$ac_link"
  3297. case "(($ac_try" in
  3298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3299. *) ac_try_echo=$ac_try;;
  3300. esac
  3301. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3302. $as_echo "$ac_try_echo"; } >&5
  3303. (eval "$ac_link") 2>&5
  3304. ac_status=$?
  3305. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3306. test $ac_status = 0; }; then :
  3307. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3308. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3309. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3310. # `rm'.
  3311. for ac_file in conftest.exe conftest conftest.*; do
  3312. test -f "$ac_file" || continue
  3313. case $ac_file in
  3314. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3315. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3316. break;;
  3317. * ) break;;
  3318. esac
  3319. done
  3320. else
  3321. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3323. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3324. See \`config.log' for more details" "$LINENO" 5; }
  3325. fi
  3326. rm -f conftest conftest$ac_cv_exeext
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3328. $as_echo "$ac_cv_exeext" >&6; }
  3329. rm -f conftest.$ac_ext
  3330. EXEEXT=$ac_cv_exeext
  3331. ac_exeext=$EXEEXT
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. #include <stdio.h>
  3335. int
  3336. main ()
  3337. {
  3338. FILE *f = fopen ("conftest.out", "w");
  3339. return ferror (f) || fclose (f) != 0;
  3340. ;
  3341. return 0;
  3342. }
  3343. _ACEOF
  3344. ac_clean_files="$ac_clean_files conftest.out"
  3345. # Check that the compiler produces executables we can run. If not, either
  3346. # the compiler is broken, or we cross compile.
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3348. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3349. if test "$cross_compiling" != yes; then
  3350. { { ac_try="$ac_link"
  3351. case "(($ac_try" in
  3352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3353. *) ac_try_echo=$ac_try;;
  3354. esac
  3355. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3356. $as_echo "$ac_try_echo"; } >&5
  3357. (eval "$ac_link") 2>&5
  3358. ac_status=$?
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3360. test $ac_status = 0; }
  3361. if { ac_try='./conftest$ac_cv_exeext'
  3362. { { case "(($ac_try" in
  3363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3364. *) ac_try_echo=$ac_try;;
  3365. esac
  3366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3367. $as_echo "$ac_try_echo"; } >&5
  3368. (eval "$ac_try") 2>&5
  3369. ac_status=$?
  3370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3371. test $ac_status = 0; }; }; then
  3372. cross_compiling=no
  3373. else
  3374. if test "$cross_compiling" = maybe; then
  3375. cross_compiling=yes
  3376. else
  3377. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3378. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3379. as_fn_error $? "cannot run C++ compiled programs.
  3380. If you meant to cross compile, use \`--host'.
  3381. See \`config.log' for more details" "$LINENO" 5; }
  3382. fi
  3383. fi
  3384. fi
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3386. $as_echo "$cross_compiling" >&6; }
  3387. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3388. ac_clean_files=$ac_clean_files_save
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3390. $as_echo_n "checking for suffix of object files... " >&6; }
  3391. if ${ac_cv_objext+:} false; then :
  3392. $as_echo_n "(cached) " >&6
  3393. else
  3394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3395. /* end confdefs.h. */
  3396. int
  3397. main ()
  3398. {
  3399. ;
  3400. return 0;
  3401. }
  3402. _ACEOF
  3403. rm -f conftest.o conftest.obj
  3404. if { { ac_try="$ac_compile"
  3405. case "(($ac_try" in
  3406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3407. *) ac_try_echo=$ac_try;;
  3408. esac
  3409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3410. $as_echo "$ac_try_echo"; } >&5
  3411. (eval "$ac_compile") 2>&5
  3412. ac_status=$?
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3414. test $ac_status = 0; }; then :
  3415. for ac_file in conftest.o conftest.obj conftest.*; do
  3416. test -f "$ac_file" || continue;
  3417. case $ac_file in
  3418. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3419. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3420. break;;
  3421. esac
  3422. done
  3423. else
  3424. $as_echo "$as_me: failed program was:" >&5
  3425. sed 's/^/| /' conftest.$ac_ext >&5
  3426. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3428. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3429. See \`config.log' for more details" "$LINENO" 5; }
  3430. fi
  3431. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3432. fi
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3434. $as_echo "$ac_cv_objext" >&6; }
  3435. OBJEXT=$ac_cv_objext
  3436. ac_objext=$OBJEXT
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3438. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3439. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3440. $as_echo_n "(cached) " >&6
  3441. else
  3442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3443. /* end confdefs.h. */
  3444. int
  3445. main ()
  3446. {
  3447. #ifndef __GNUC__
  3448. choke me
  3449. #endif
  3450. ;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. if ac_fn_cxx_try_compile "$LINENO"; then :
  3455. ac_compiler_gnu=yes
  3456. else
  3457. ac_compiler_gnu=no
  3458. fi
  3459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3460. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3461. fi
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3463. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3464. if test $ac_compiler_gnu = yes; then
  3465. GXX=yes
  3466. else
  3467. GXX=
  3468. fi
  3469. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3470. ac_save_CXXFLAGS=$CXXFLAGS
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3472. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3473. if ${ac_cv_prog_cxx_g+:} false; then :
  3474. $as_echo_n "(cached) " >&6
  3475. else
  3476. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3477. ac_cxx_werror_flag=yes
  3478. ac_cv_prog_cxx_g=no
  3479. CXXFLAGS="-g"
  3480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3481. /* end confdefs.h. */
  3482. int
  3483. main ()
  3484. {
  3485. ;
  3486. return 0;
  3487. }
  3488. _ACEOF
  3489. if ac_fn_cxx_try_compile "$LINENO"; then :
  3490. ac_cv_prog_cxx_g=yes
  3491. else
  3492. CXXFLAGS=""
  3493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3494. /* end confdefs.h. */
  3495. int
  3496. main ()
  3497. {
  3498. ;
  3499. return 0;
  3500. }
  3501. _ACEOF
  3502. if ac_fn_cxx_try_compile "$LINENO"; then :
  3503. else
  3504. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3505. CXXFLAGS="-g"
  3506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3507. /* end confdefs.h. */
  3508. int
  3509. main ()
  3510. {
  3511. ;
  3512. return 0;
  3513. }
  3514. _ACEOF
  3515. if ac_fn_cxx_try_compile "$LINENO"; then :
  3516. ac_cv_prog_cxx_g=yes
  3517. fi
  3518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3519. fi
  3520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3521. fi
  3522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3523. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3524. fi
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3526. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3527. if test "$ac_test_CXXFLAGS" = set; then
  3528. CXXFLAGS=$ac_save_CXXFLAGS
  3529. elif test $ac_cv_prog_cxx_g = yes; then
  3530. if test "$GXX" = yes; then
  3531. CXXFLAGS="-g -O2"
  3532. else
  3533. CXXFLAGS="-g"
  3534. fi
  3535. else
  3536. if test "$GXX" = yes; then
  3537. CXXFLAGS="-O2"
  3538. else
  3539. CXXFLAGS=
  3540. fi
  3541. fi
  3542. ac_ext=c
  3543. ac_cpp='$CPP $CPPFLAGS'
  3544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3547. DEPDIR="${am__leading_dot}deps"
  3548. ac_config_commands="$ac_config_commands depfiles"
  3549. am_make=${MAKE-make}
  3550. cat > confinc << 'END'
  3551. am__doit:
  3552. @echo this is the am__doit target
  3553. .PHONY: am__doit
  3554. END
  3555. # If we don't find an include directive, just comment out the code.
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3557. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3558. am__include="#"
  3559. am__quote=
  3560. _am_result=none
  3561. # First try GNU make style include.
  3562. echo "include confinc" > confmf
  3563. # Ignore all kinds of additional output from 'make'.
  3564. case `$am_make -s -f confmf 2> /dev/null` in #(
  3565. *the\ am__doit\ target*)
  3566. am__include=include
  3567. am__quote=
  3568. _am_result=GNU
  3569. ;;
  3570. esac
  3571. # Now try BSD make style include.
  3572. if test "$am__include" = "#"; then
  3573. echo '.include "confinc"' > confmf
  3574. case `$am_make -s -f confmf 2> /dev/null` in #(
  3575. *the\ am__doit\ target*)
  3576. am__include=.include
  3577. am__quote="\""
  3578. _am_result=BSD
  3579. ;;
  3580. esac
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3583. $as_echo "$_am_result" >&6; }
  3584. rm -f confinc confmf
  3585. # Check whether --enable-dependency-tracking was given.
  3586. if test "${enable_dependency_tracking+set}" = set; then :
  3587. enableval=$enable_dependency_tracking;
  3588. fi
  3589. if test "x$enable_dependency_tracking" != xno; then
  3590. am_depcomp="$ac_aux_dir/depcomp"
  3591. AMDEPBACKSLASH='\'
  3592. am__nodep='_no'
  3593. fi
  3594. if test "x$enable_dependency_tracking" != xno; then
  3595. AMDEP_TRUE=
  3596. AMDEP_FALSE='#'
  3597. else
  3598. AMDEP_TRUE='#'
  3599. AMDEP_FALSE=
  3600. fi
  3601. depcc="$CXX" am_compiler_list=
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3603. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3604. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3605. $as_echo_n "(cached) " >&6
  3606. else
  3607. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3608. # We make a subdir and do the tests there. Otherwise we can end up
  3609. # making bogus files that we don't know about and never remove. For
  3610. # instance it was reported that on HP-UX the gcc test will end up
  3611. # making a dummy file named 'D' -- because '-MD' means "put the output
  3612. # in D".
  3613. rm -rf conftest.dir
  3614. mkdir conftest.dir
  3615. # Copy depcomp to subdir because otherwise we won't find it if we're
  3616. # using a relative directory.
  3617. cp "$am_depcomp" conftest.dir
  3618. cd conftest.dir
  3619. # We will build objects and dependencies in a subdirectory because
  3620. # it helps to detect inapplicable dependency modes. For instance
  3621. # both Tru64's cc and ICC support -MD to output dependencies as a
  3622. # side effect of compilation, but ICC will put the dependencies in
  3623. # the current directory while Tru64 will put them in the object
  3624. # directory.
  3625. mkdir sub
  3626. am_cv_CXX_dependencies_compiler_type=none
  3627. if test "$am_compiler_list" = ""; then
  3628. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3629. fi
  3630. am__universal=false
  3631. case " $depcc " in #(
  3632. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3633. esac
  3634. for depmode in $am_compiler_list; do
  3635. # Setup a source with many dependencies, because some compilers
  3636. # like to wrap large dependency lists on column 80 (with \), and
  3637. # we should not choose a depcomp mode which is confused by this.
  3638. #
  3639. # We need to recreate these files for each test, as the compiler may
  3640. # overwrite some of them when testing with obscure command lines.
  3641. # This happens at least with the AIX C compiler.
  3642. : > sub/conftest.c
  3643. for i in 1 2 3 4 5 6; do
  3644. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3645. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3646. # Solaris 10 /bin/sh.
  3647. echo '/* dummy */' > sub/conftst$i.h
  3648. done
  3649. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3650. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3651. # mode. It turns out that the SunPro C++ compiler does not properly
  3652. # handle '-M -o', and we need to detect this. Also, some Intel
  3653. # versions had trouble with output in subdirs.
  3654. am__obj=sub/conftest.${OBJEXT-o}
  3655. am__minus_obj="-o $am__obj"
  3656. case $depmode in
  3657. gcc)
  3658. # This depmode causes a compiler race in universal mode.
  3659. test "$am__universal" = false || continue
  3660. ;;
  3661. nosideeffect)
  3662. # After this tag, mechanisms are not by side-effect, so they'll
  3663. # only be used when explicitly requested.
  3664. if test "x$enable_dependency_tracking" = xyes; then
  3665. continue
  3666. else
  3667. break
  3668. fi
  3669. ;;
  3670. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3671. # This compiler won't grok '-c -o', but also, the minuso test has
  3672. # not run yet. These depmodes are late enough in the game, and
  3673. # so weak that their functioning should not be impacted.
  3674. am__obj=conftest.${OBJEXT-o}
  3675. am__minus_obj=
  3676. ;;
  3677. none) break ;;
  3678. esac
  3679. if depmode=$depmode \
  3680. source=sub/conftest.c object=$am__obj \
  3681. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3682. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3683. >/dev/null 2>conftest.err &&
  3684. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3685. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3686. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3687. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3688. # icc doesn't choke on unknown options, it will just issue warnings
  3689. # or remarks (even with -Werror). So we grep stderr for any message
  3690. # that says an option was ignored or not supported.
  3691. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3692. # icc: Command line warning: ignoring option '-M'; no argument required
  3693. # The diagnosis changed in icc 8.0:
  3694. # icc: Command line remark: option '-MP' not supported
  3695. if (grep 'ignoring option' conftest.err ||
  3696. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3697. am_cv_CXX_dependencies_compiler_type=$depmode
  3698. break
  3699. fi
  3700. fi
  3701. done
  3702. cd ..
  3703. rm -rf conftest.dir
  3704. else
  3705. am_cv_CXX_dependencies_compiler_type=none
  3706. fi
  3707. fi
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3709. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3710. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3711. if
  3712. test "x$enable_dependency_tracking" != xno \
  3713. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3714. am__fastdepCXX_TRUE=
  3715. am__fastdepCXX_FALSE='#'
  3716. else
  3717. am__fastdepCXX_TRUE='#'
  3718. am__fastdepCXX_FALSE=
  3719. fi
  3720. ac_ext=c
  3721. ac_cpp='$CPP $CPPFLAGS'
  3722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3725. if test -n "$ac_tool_prefix"; then
  3726. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3727. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3729. $as_echo_n "checking for $ac_word... " >&6; }
  3730. if ${ac_cv_prog_CC+:} false; then :
  3731. $as_echo_n "(cached) " >&6
  3732. else
  3733. if test -n "$CC"; then
  3734. ac_cv_prog_CC="$CC" # Let the user override the test.
  3735. else
  3736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3737. for as_dir in $PATH
  3738. do
  3739. IFS=$as_save_IFS
  3740. test -z "$as_dir" && as_dir=.
  3741. for ac_exec_ext in '' $ac_executable_extensions; do
  3742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3743. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3745. break 2
  3746. fi
  3747. done
  3748. done
  3749. IFS=$as_save_IFS
  3750. fi
  3751. fi
  3752. CC=$ac_cv_prog_CC
  3753. if test -n "$CC"; then
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3755. $as_echo "$CC" >&6; }
  3756. else
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3758. $as_echo "no" >&6; }
  3759. fi
  3760. fi
  3761. if test -z "$ac_cv_prog_CC"; then
  3762. ac_ct_CC=$CC
  3763. # Extract the first word of "gcc", so it can be a program name with args.
  3764. set dummy gcc; ac_word=$2
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3766. $as_echo_n "checking for $ac_word... " >&6; }
  3767. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. if test -n "$ac_ct_CC"; then
  3771. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3772. else
  3773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3774. for as_dir in $PATH
  3775. do
  3776. IFS=$as_save_IFS
  3777. test -z "$as_dir" && as_dir=.
  3778. for ac_exec_ext in '' $ac_executable_extensions; do
  3779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3780. ac_cv_prog_ac_ct_CC="gcc"
  3781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3782. break 2
  3783. fi
  3784. done
  3785. done
  3786. IFS=$as_save_IFS
  3787. fi
  3788. fi
  3789. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3790. if test -n "$ac_ct_CC"; then
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3792. $as_echo "$ac_ct_CC" >&6; }
  3793. else
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3795. $as_echo "no" >&6; }
  3796. fi
  3797. if test "x$ac_ct_CC" = x; then
  3798. CC=""
  3799. else
  3800. case $cross_compiling:$ac_tool_warned in
  3801. yes:)
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3804. ac_tool_warned=yes ;;
  3805. esac
  3806. CC=$ac_ct_CC
  3807. fi
  3808. else
  3809. CC="$ac_cv_prog_CC"
  3810. fi
  3811. if test -z "$CC"; then
  3812. if test -n "$ac_tool_prefix"; then
  3813. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3814. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3816. $as_echo_n "checking for $ac_word... " >&6; }
  3817. if ${ac_cv_prog_CC+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. if test -n "$CC"; then
  3821. ac_cv_prog_CC="$CC" # Let the user override the test.
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. for ac_exec_ext in '' $ac_executable_extensions; do
  3829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3830. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3832. break 2
  3833. fi
  3834. done
  3835. done
  3836. IFS=$as_save_IFS
  3837. fi
  3838. fi
  3839. CC=$ac_cv_prog_CC
  3840. if test -n "$CC"; then
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3842. $as_echo "$CC" >&6; }
  3843. else
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3845. $as_echo "no" >&6; }
  3846. fi
  3847. fi
  3848. fi
  3849. if test -z "$CC"; then
  3850. # Extract the first word of "cc", so it can be a program name with args.
  3851. set dummy cc; ac_word=$2
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3853. $as_echo_n "checking for $ac_word... " >&6; }
  3854. if ${ac_cv_prog_CC+:} false; then :
  3855. $as_echo_n "(cached) " >&6
  3856. else
  3857. if test -n "$CC"; then
  3858. ac_cv_prog_CC="$CC" # Let the user override the test.
  3859. else
  3860. ac_prog_rejected=no
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. for ac_exec_ext in '' $ac_executable_extensions; do
  3867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3868. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3869. ac_prog_rejected=yes
  3870. continue
  3871. fi
  3872. ac_cv_prog_CC="cc"
  3873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3874. break 2
  3875. fi
  3876. done
  3877. done
  3878. IFS=$as_save_IFS
  3879. if test $ac_prog_rejected = yes; then
  3880. # We found a bogon in the path, so make sure we never use it.
  3881. set dummy $ac_cv_prog_CC
  3882. shift
  3883. if test $# != 0; then
  3884. # We chose a different compiler from the bogus one.
  3885. # However, it has the same basename, so the bogon will be chosen
  3886. # first if we set CC to just the basename; use the full file name.
  3887. shift
  3888. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3889. fi
  3890. fi
  3891. fi
  3892. fi
  3893. CC=$ac_cv_prog_CC
  3894. if test -n "$CC"; then
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3896. $as_echo "$CC" >&6; }
  3897. else
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3899. $as_echo "no" >&6; }
  3900. fi
  3901. fi
  3902. if test -z "$CC"; then
  3903. if test -n "$ac_tool_prefix"; then
  3904. for ac_prog in cl.exe
  3905. do
  3906. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3907. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3909. $as_echo_n "checking for $ac_word... " >&6; }
  3910. if ${ac_cv_prog_CC+:} false; then :
  3911. $as_echo_n "(cached) " >&6
  3912. else
  3913. if test -n "$CC"; then
  3914. ac_cv_prog_CC="$CC" # Let the user override the test.
  3915. else
  3916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3917. for as_dir in $PATH
  3918. do
  3919. IFS=$as_save_IFS
  3920. test -z "$as_dir" && as_dir=.
  3921. for ac_exec_ext in '' $ac_executable_extensions; do
  3922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3923. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3925. break 2
  3926. fi
  3927. done
  3928. done
  3929. IFS=$as_save_IFS
  3930. fi
  3931. fi
  3932. CC=$ac_cv_prog_CC
  3933. if test -n "$CC"; then
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3935. $as_echo "$CC" >&6; }
  3936. else
  3937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3938. $as_echo "no" >&6; }
  3939. fi
  3940. test -n "$CC" && break
  3941. done
  3942. fi
  3943. if test -z "$CC"; then
  3944. ac_ct_CC=$CC
  3945. for ac_prog in cl.exe
  3946. do
  3947. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3948. set dummy $ac_prog; ac_word=$2
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3950. $as_echo_n "checking for $ac_word... " >&6; }
  3951. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3952. $as_echo_n "(cached) " >&6
  3953. else
  3954. if test -n "$ac_ct_CC"; then
  3955. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3956. else
  3957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3958. for as_dir in $PATH
  3959. do
  3960. IFS=$as_save_IFS
  3961. test -z "$as_dir" && as_dir=.
  3962. for ac_exec_ext in '' $ac_executable_extensions; do
  3963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3964. ac_cv_prog_ac_ct_CC="$ac_prog"
  3965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3966. break 2
  3967. fi
  3968. done
  3969. done
  3970. IFS=$as_save_IFS
  3971. fi
  3972. fi
  3973. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3974. if test -n "$ac_ct_CC"; then
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3976. $as_echo "$ac_ct_CC" >&6; }
  3977. else
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3979. $as_echo "no" >&6; }
  3980. fi
  3981. test -n "$ac_ct_CC" && break
  3982. done
  3983. if test "x$ac_ct_CC" = x; then
  3984. CC=""
  3985. else
  3986. case $cross_compiling:$ac_tool_warned in
  3987. yes:)
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3990. ac_tool_warned=yes ;;
  3991. esac
  3992. CC=$ac_ct_CC
  3993. fi
  3994. fi
  3995. fi
  3996. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3998. as_fn_error $? "no acceptable C compiler found in \$PATH
  3999. See \`config.log' for more details" "$LINENO" 5; }
  4000. # Provide some information about the compiler.
  4001. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4002. set X $ac_compile
  4003. ac_compiler=$2
  4004. for ac_option in --version -v -V -qversion; do
  4005. { { ac_try="$ac_compiler $ac_option >&5"
  4006. case "(($ac_try" in
  4007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4008. *) ac_try_echo=$ac_try;;
  4009. esac
  4010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4011. $as_echo "$ac_try_echo"; } >&5
  4012. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4013. ac_status=$?
  4014. if test -s conftest.err; then
  4015. sed '10a\
  4016. ... rest of stderr output deleted ...
  4017. 10q' conftest.err >conftest.er1
  4018. cat conftest.er1 >&5
  4019. fi
  4020. rm -f conftest.er1 conftest.err
  4021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4022. test $ac_status = 0; }
  4023. done
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4025. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4026. if ${ac_cv_c_compiler_gnu+:} false; then :
  4027. $as_echo_n "(cached) " >&6
  4028. else
  4029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4030. /* end confdefs.h. */
  4031. int
  4032. main ()
  4033. {
  4034. #ifndef __GNUC__
  4035. choke me
  4036. #endif
  4037. ;
  4038. return 0;
  4039. }
  4040. _ACEOF
  4041. if ac_fn_c_try_compile "$LINENO"; then :
  4042. ac_compiler_gnu=yes
  4043. else
  4044. ac_compiler_gnu=no
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4047. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4050. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4051. if test $ac_compiler_gnu = yes; then
  4052. GCC=yes
  4053. else
  4054. GCC=
  4055. fi
  4056. ac_test_CFLAGS=${CFLAGS+set}
  4057. ac_save_CFLAGS=$CFLAGS
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4059. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4060. if ${ac_cv_prog_cc_g+:} false; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. ac_save_c_werror_flag=$ac_c_werror_flag
  4064. ac_c_werror_flag=yes
  4065. ac_cv_prog_cc_g=no
  4066. CFLAGS="-g"
  4067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4068. /* end confdefs.h. */
  4069. int
  4070. main ()
  4071. {
  4072. ;
  4073. return 0;
  4074. }
  4075. _ACEOF
  4076. if ac_fn_c_try_compile "$LINENO"; then :
  4077. ac_cv_prog_cc_g=yes
  4078. else
  4079. CFLAGS=""
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. int
  4083. main ()
  4084. {
  4085. ;
  4086. return 0;
  4087. }
  4088. _ACEOF
  4089. if ac_fn_c_try_compile "$LINENO"; then :
  4090. else
  4091. ac_c_werror_flag=$ac_save_c_werror_flag
  4092. CFLAGS="-g"
  4093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4094. /* end confdefs.h. */
  4095. int
  4096. main ()
  4097. {
  4098. ;
  4099. return 0;
  4100. }
  4101. _ACEOF
  4102. if ac_fn_c_try_compile "$LINENO"; then :
  4103. ac_cv_prog_cc_g=yes
  4104. fi
  4105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4106. fi
  4107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4108. fi
  4109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4110. ac_c_werror_flag=$ac_save_c_werror_flag
  4111. fi
  4112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4113. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4114. if test "$ac_test_CFLAGS" = set; then
  4115. CFLAGS=$ac_save_CFLAGS
  4116. elif test $ac_cv_prog_cc_g = yes; then
  4117. if test "$GCC" = yes; then
  4118. CFLAGS="-g -O2"
  4119. else
  4120. CFLAGS="-g"
  4121. fi
  4122. else
  4123. if test "$GCC" = yes; then
  4124. CFLAGS="-O2"
  4125. else
  4126. CFLAGS=
  4127. fi
  4128. fi
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4130. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4131. if ${ac_cv_prog_cc_c89+:} false; then :
  4132. $as_echo_n "(cached) " >&6
  4133. else
  4134. ac_cv_prog_cc_c89=no
  4135. ac_save_CC=$CC
  4136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4137. /* end confdefs.h. */
  4138. #include <stdarg.h>
  4139. #include <stdio.h>
  4140. struct stat;
  4141. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4142. struct buf { int x; };
  4143. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4144. static char *e (p, i)
  4145. char **p;
  4146. int i;
  4147. {
  4148. return p[i];
  4149. }
  4150. static char *f (char * (*g) (char **, int), char **p, ...)
  4151. {
  4152. char *s;
  4153. va_list v;
  4154. va_start (v,p);
  4155. s = g (p, va_arg (v,int));
  4156. va_end (v);
  4157. return s;
  4158. }
  4159. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4160. function prototypes and stuff, but not '\xHH' hex character constants.
  4161. These don't provoke an error unfortunately, instead are silently treated
  4162. as 'x'. The following induces an error, until -std is added to get
  4163. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4164. array size at least. It's necessary to write '\x00'==0 to get something
  4165. that's true only with -std. */
  4166. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4167. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4168. inside strings and character constants. */
  4169. #define FOO(x) 'x'
  4170. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4171. int test (int i, double x);
  4172. struct s1 {int (*f) (int a);};
  4173. struct s2 {int (*f) (double a);};
  4174. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4175. int argc;
  4176. char **argv;
  4177. int
  4178. main ()
  4179. {
  4180. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4181. ;
  4182. return 0;
  4183. }
  4184. _ACEOF
  4185. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4186. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4187. do
  4188. CC="$ac_save_CC $ac_arg"
  4189. if ac_fn_c_try_compile "$LINENO"; then :
  4190. ac_cv_prog_cc_c89=$ac_arg
  4191. fi
  4192. rm -f core conftest.err conftest.$ac_objext
  4193. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4194. done
  4195. rm -f conftest.$ac_ext
  4196. CC=$ac_save_CC
  4197. fi
  4198. # AC_CACHE_VAL
  4199. case "x$ac_cv_prog_cc_c89" in
  4200. x)
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4202. $as_echo "none needed" >&6; } ;;
  4203. xno)
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4205. $as_echo "unsupported" >&6; } ;;
  4206. *)
  4207. CC="$CC $ac_cv_prog_cc_c89"
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4209. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4210. esac
  4211. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4212. fi
  4213. ac_ext=c
  4214. ac_cpp='$CPP $CPPFLAGS'
  4215. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4216. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4217. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4218. depcc="$CC" am_compiler_list=
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4220. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4221. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4225. # We make a subdir and do the tests there. Otherwise we can end up
  4226. # making bogus files that we don't know about and never remove. For
  4227. # instance it was reported that on HP-UX the gcc test will end up
  4228. # making a dummy file named 'D' -- because '-MD' means "put the output
  4229. # in D".
  4230. rm -rf conftest.dir
  4231. mkdir conftest.dir
  4232. # Copy depcomp to subdir because otherwise we won't find it if we're
  4233. # using a relative directory.
  4234. cp "$am_depcomp" conftest.dir
  4235. cd conftest.dir
  4236. # We will build objects and dependencies in a subdirectory because
  4237. # it helps to detect inapplicable dependency modes. For instance
  4238. # both Tru64's cc and ICC support -MD to output dependencies as a
  4239. # side effect of compilation, but ICC will put the dependencies in
  4240. # the current directory while Tru64 will put them in the object
  4241. # directory.
  4242. mkdir sub
  4243. am_cv_CC_dependencies_compiler_type=none
  4244. if test "$am_compiler_list" = ""; then
  4245. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4246. fi
  4247. am__universal=false
  4248. case " $depcc " in #(
  4249. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4250. esac
  4251. for depmode in $am_compiler_list; do
  4252. # Setup a source with many dependencies, because some compilers
  4253. # like to wrap large dependency lists on column 80 (with \), and
  4254. # we should not choose a depcomp mode which is confused by this.
  4255. #
  4256. # We need to recreate these files for each test, as the compiler may
  4257. # overwrite some of them when testing with obscure command lines.
  4258. # This happens at least with the AIX C compiler.
  4259. : > sub/conftest.c
  4260. for i in 1 2 3 4 5 6; do
  4261. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4262. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4263. # Solaris 10 /bin/sh.
  4264. echo '/* dummy */' > sub/conftst$i.h
  4265. done
  4266. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4267. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4268. # mode. It turns out that the SunPro C++ compiler does not properly
  4269. # handle '-M -o', and we need to detect this. Also, some Intel
  4270. # versions had trouble with output in subdirs.
  4271. am__obj=sub/conftest.${OBJEXT-o}
  4272. am__minus_obj="-o $am__obj"
  4273. case $depmode in
  4274. gcc)
  4275. # This depmode causes a compiler race in universal mode.
  4276. test "$am__universal" = false || continue
  4277. ;;
  4278. nosideeffect)
  4279. # After this tag, mechanisms are not by side-effect, so they'll
  4280. # only be used when explicitly requested.
  4281. if test "x$enable_dependency_tracking" = xyes; then
  4282. continue
  4283. else
  4284. break
  4285. fi
  4286. ;;
  4287. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4288. # This compiler won't grok '-c -o', but also, the minuso test has
  4289. # not run yet. These depmodes are late enough in the game, and
  4290. # so weak that their functioning should not be impacted.
  4291. am__obj=conftest.${OBJEXT-o}
  4292. am__minus_obj=
  4293. ;;
  4294. none) break ;;
  4295. esac
  4296. if depmode=$depmode \
  4297. source=sub/conftest.c object=$am__obj \
  4298. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4299. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4300. >/dev/null 2>conftest.err &&
  4301. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4302. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4303. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4304. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4305. # icc doesn't choke on unknown options, it will just issue warnings
  4306. # or remarks (even with -Werror). So we grep stderr for any message
  4307. # that says an option was ignored or not supported.
  4308. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4309. # icc: Command line warning: ignoring option '-M'; no argument required
  4310. # The diagnosis changed in icc 8.0:
  4311. # icc: Command line remark: option '-MP' not supported
  4312. if (grep 'ignoring option' conftest.err ||
  4313. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4314. am_cv_CC_dependencies_compiler_type=$depmode
  4315. break
  4316. fi
  4317. fi
  4318. done
  4319. cd ..
  4320. rm -rf conftest.dir
  4321. else
  4322. am_cv_CC_dependencies_compiler_type=none
  4323. fi
  4324. fi
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4326. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4327. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4328. if
  4329. test "x$enable_dependency_tracking" != xno \
  4330. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4331. am__fastdepCC_TRUE=
  4332. am__fastdepCC_FALSE='#'
  4333. else
  4334. am__fastdepCC_TRUE='#'
  4335. am__fastdepCC_FALSE=
  4336. fi
  4337. if test "x$CC" != xcc; then
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4339. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4340. else
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4342. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4343. fi
  4344. set dummy $CC; ac_cc=`$as_echo "$2" |
  4345. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4346. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4347. $as_echo_n "(cached) " >&6
  4348. else
  4349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4350. /* end confdefs.h. */
  4351. int
  4352. main ()
  4353. {
  4354. ;
  4355. return 0;
  4356. }
  4357. _ACEOF
  4358. # Make sure it works both with $CC and with simple cc.
  4359. # We do the test twice because some compilers refuse to overwrite an
  4360. # existing .o file with -o, though they will create one.
  4361. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4362. rm -f conftest2.*
  4363. if { { case "(($ac_try" in
  4364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4365. *) ac_try_echo=$ac_try;;
  4366. esac
  4367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4368. $as_echo "$ac_try_echo"; } >&5
  4369. (eval "$ac_try") 2>&5
  4370. ac_status=$?
  4371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4372. test $ac_status = 0; } &&
  4373. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4375. *) ac_try_echo=$ac_try;;
  4376. esac
  4377. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4378. $as_echo "$ac_try_echo"; } >&5
  4379. (eval "$ac_try") 2>&5
  4380. ac_status=$?
  4381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4382. test $ac_status = 0; };
  4383. then
  4384. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4385. if test "x$CC" != xcc; then
  4386. # Test first that cc exists at all.
  4387. if { ac_try='cc -c conftest.$ac_ext >&5'
  4388. { { case "(($ac_try" in
  4389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4390. *) ac_try_echo=$ac_try;;
  4391. esac
  4392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4393. $as_echo "$ac_try_echo"; } >&5
  4394. (eval "$ac_try") 2>&5
  4395. ac_status=$?
  4396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4397. test $ac_status = 0; }; }; then
  4398. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4399. rm -f conftest2.*
  4400. if { { case "(($ac_try" in
  4401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4402. *) ac_try_echo=$ac_try;;
  4403. esac
  4404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4405. $as_echo "$ac_try_echo"; } >&5
  4406. (eval "$ac_try") 2>&5
  4407. ac_status=$?
  4408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4409. test $ac_status = 0; } &&
  4410. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4412. *) ac_try_echo=$ac_try;;
  4413. esac
  4414. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4415. $as_echo "$ac_try_echo"; } >&5
  4416. (eval "$ac_try") 2>&5
  4417. ac_status=$?
  4418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4419. test $ac_status = 0; };
  4420. then
  4421. # cc works too.
  4422. :
  4423. else
  4424. # cc exists but doesn't like -o.
  4425. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4426. fi
  4427. fi
  4428. fi
  4429. else
  4430. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4431. fi
  4432. rm -f core conftest*
  4433. fi
  4434. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4436. $as_echo "yes" >&6; }
  4437. else
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4439. $as_echo "no" >&6; }
  4440. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4441. fi
  4442. # FIXME: we rely on the cache variable name because
  4443. # there is no other way.
  4444. set dummy $CC
  4445. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4446. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4447. if test "$am_t" != yes; then
  4448. # Losing compiler, so override with the script.
  4449. # FIXME: It is wrong to rewrite CC.
  4450. # But if we don't then we get into trouble of one sort or another.
  4451. # A longer-term fix would be to have automake use am__CC in this case,
  4452. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4453. CC="$am_aux_dir/compile $CC"
  4454. fi
  4455. # By default we simply use the C compiler to build assembly code.
  4456. test "${CCAS+set}" = set || CCAS=$CC
  4457. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4458. depcc="$CCAS" am_compiler_list=
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4460. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4461. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4465. # We make a subdir and do the tests there. Otherwise we can end up
  4466. # making bogus files that we don't know about and never remove. For
  4467. # instance it was reported that on HP-UX the gcc test will end up
  4468. # making a dummy file named 'D' -- because '-MD' means "put the output
  4469. # in D".
  4470. rm -rf conftest.dir
  4471. mkdir conftest.dir
  4472. # Copy depcomp to subdir because otherwise we won't find it if we're
  4473. # using a relative directory.
  4474. cp "$am_depcomp" conftest.dir
  4475. cd conftest.dir
  4476. # We will build objects and dependencies in a subdirectory because
  4477. # it helps to detect inapplicable dependency modes. For instance
  4478. # both Tru64's cc and ICC support -MD to output dependencies as a
  4479. # side effect of compilation, but ICC will put the dependencies in
  4480. # the current directory while Tru64 will put them in the object
  4481. # directory.
  4482. mkdir sub
  4483. am_cv_CCAS_dependencies_compiler_type=none
  4484. if test "$am_compiler_list" = ""; then
  4485. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4486. fi
  4487. am__universal=false
  4488. for depmode in $am_compiler_list; do
  4489. # Setup a source with many dependencies, because some compilers
  4490. # like to wrap large dependency lists on column 80 (with \), and
  4491. # we should not choose a depcomp mode which is confused by this.
  4492. #
  4493. # We need to recreate these files for each test, as the compiler may
  4494. # overwrite some of them when testing with obscure command lines.
  4495. # This happens at least with the AIX C compiler.
  4496. : > sub/conftest.c
  4497. for i in 1 2 3 4 5 6; do
  4498. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4499. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4500. # Solaris 10 /bin/sh.
  4501. echo '/* dummy */' > sub/conftst$i.h
  4502. done
  4503. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4504. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4505. # mode. It turns out that the SunPro C++ compiler does not properly
  4506. # handle '-M -o', and we need to detect this. Also, some Intel
  4507. # versions had trouble with output in subdirs.
  4508. am__obj=sub/conftest.${OBJEXT-o}
  4509. am__minus_obj="-o $am__obj"
  4510. case $depmode in
  4511. gcc)
  4512. # This depmode causes a compiler race in universal mode.
  4513. test "$am__universal" = false || continue
  4514. ;;
  4515. nosideeffect)
  4516. # After this tag, mechanisms are not by side-effect, so they'll
  4517. # only be used when explicitly requested.
  4518. if test "x$enable_dependency_tracking" = xyes; then
  4519. continue
  4520. else
  4521. break
  4522. fi
  4523. ;;
  4524. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4525. # This compiler won't grok '-c -o', but also, the minuso test has
  4526. # not run yet. These depmodes are late enough in the game, and
  4527. # so weak that their functioning should not be impacted.
  4528. am__obj=conftest.${OBJEXT-o}
  4529. am__minus_obj=
  4530. ;;
  4531. none) break ;;
  4532. esac
  4533. if depmode=$depmode \
  4534. source=sub/conftest.c object=$am__obj \
  4535. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4536. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4537. >/dev/null 2>conftest.err &&
  4538. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4539. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4540. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4541. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4542. # icc doesn't choke on unknown options, it will just issue warnings
  4543. # or remarks (even with -Werror). So we grep stderr for any message
  4544. # that says an option was ignored or not supported.
  4545. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4546. # icc: Command line warning: ignoring option '-M'; no argument required
  4547. # The diagnosis changed in icc 8.0:
  4548. # icc: Command line remark: option '-MP' not supported
  4549. if (grep 'ignoring option' conftest.err ||
  4550. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4551. am_cv_CCAS_dependencies_compiler_type=$depmode
  4552. break
  4553. fi
  4554. fi
  4555. done
  4556. cd ..
  4557. rm -rf conftest.dir
  4558. else
  4559. am_cv_CCAS_dependencies_compiler_type=none
  4560. fi
  4561. fi
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4563. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4564. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4565. if
  4566. test "x$enable_dependency_tracking" != xno \
  4567. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4568. am__fastdepCCAS_TRUE=
  4569. am__fastdepCCAS_FALSE='#'
  4570. else
  4571. am__fastdepCCAS_TRUE='#'
  4572. am__fastdepCCAS_FALSE=
  4573. fi
  4574. # disable static libs by default - we only use a couple
  4575. # Check whether --enable-static was given.
  4576. if test "${enable_static+set}" = set; then :
  4577. enableval=$enable_static; p=${PACKAGE-default}
  4578. case $enableval in
  4579. yes) enable_static=yes ;;
  4580. no) enable_static=no ;;
  4581. *)
  4582. enable_static=no
  4583. # Look at the argument we got. We use all the common list separators.
  4584. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4585. for pkg in $enableval; do
  4586. IFS="$lt_save_ifs"
  4587. if test "X$pkg" = "X$p"; then
  4588. enable_static=yes
  4589. fi
  4590. done
  4591. IFS="$lt_save_ifs"
  4592. ;;
  4593. esac
  4594. else
  4595. enable_static=no
  4596. fi
  4597. case `pwd` in
  4598. *\ * | *\ *)
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4600. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4601. esac
  4602. macro_version='2.4.2'
  4603. macro_revision='1.3337'
  4604. ltmain="$ac_aux_dir/ltmain.sh"
  4605. # Backslashify metacharacters that are still active within
  4606. # double-quoted strings.
  4607. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4608. # Same as above, but do not quote variable references.
  4609. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4610. # Sed substitution to delay expansion of an escaped shell variable in a
  4611. # double_quote_subst'ed string.
  4612. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4613. # Sed substitution to delay expansion of an escaped single quote.
  4614. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4615. # Sed substitution to avoid accidental globbing in evaled expressions
  4616. no_glob_subst='s/\*/\\\*/g'
  4617. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4618. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4619. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4621. $as_echo_n "checking how to print strings... " >&6; }
  4622. # Test print first, because it will be a builtin if present.
  4623. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4624. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4625. ECHO='print -r --'
  4626. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4627. ECHO='printf %s\n'
  4628. else
  4629. # Use this function as a fallback that always works.
  4630. func_fallback_echo ()
  4631. {
  4632. eval 'cat <<_LTECHO_EOF
  4633. $1
  4634. _LTECHO_EOF'
  4635. }
  4636. ECHO='func_fallback_echo'
  4637. fi
  4638. # func_echo_all arg...
  4639. # Invoke $ECHO with all args, space-separated.
  4640. func_echo_all ()
  4641. {
  4642. $ECHO ""
  4643. }
  4644. case "$ECHO" in
  4645. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4646. $as_echo "printf" >&6; } ;;
  4647. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4648. $as_echo "print -r" >&6; } ;;
  4649. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4650. $as_echo "cat" >&6; } ;;
  4651. esac
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4653. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4654. if ${ac_cv_path_SED+:} false; then :
  4655. $as_echo_n "(cached) " >&6
  4656. else
  4657. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4658. for ac_i in 1 2 3 4 5 6 7; do
  4659. ac_script="$ac_script$as_nl$ac_script"
  4660. done
  4661. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4662. { ac_script=; unset ac_script;}
  4663. if test -z "$SED"; then
  4664. ac_path_SED_found=false
  4665. # Loop through the user's path and test for each of PROGNAME-LIST
  4666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4667. for as_dir in $PATH
  4668. do
  4669. IFS=$as_save_IFS
  4670. test -z "$as_dir" && as_dir=.
  4671. for ac_prog in sed gsed; do
  4672. for ac_exec_ext in '' $ac_executable_extensions; do
  4673. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4674. as_fn_executable_p "$ac_path_SED" || continue
  4675. # Check for GNU ac_path_SED and select it if it is found.
  4676. # Check for GNU $ac_path_SED
  4677. case `"$ac_path_SED" --version 2>&1` in
  4678. *GNU*)
  4679. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4680. *)
  4681. ac_count=0
  4682. $as_echo_n 0123456789 >"conftest.in"
  4683. while :
  4684. do
  4685. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4686. mv "conftest.tmp" "conftest.in"
  4687. cp "conftest.in" "conftest.nl"
  4688. $as_echo '' >> "conftest.nl"
  4689. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4690. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4691. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4692. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4693. # Best one so far, save it but keep looking for a better one
  4694. ac_cv_path_SED="$ac_path_SED"
  4695. ac_path_SED_max=$ac_count
  4696. fi
  4697. # 10*(2^10) chars as input seems more than enough
  4698. test $ac_count -gt 10 && break
  4699. done
  4700. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4701. esac
  4702. $ac_path_SED_found && break 3
  4703. done
  4704. done
  4705. done
  4706. IFS=$as_save_IFS
  4707. if test -z "$ac_cv_path_SED"; then
  4708. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4709. fi
  4710. else
  4711. ac_cv_path_SED=$SED
  4712. fi
  4713. fi
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4715. $as_echo "$ac_cv_path_SED" >&6; }
  4716. SED="$ac_cv_path_SED"
  4717. rm -f conftest.sed
  4718. test -z "$SED" && SED=sed
  4719. Xsed="$SED -e 1s/^X//"
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4721. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4722. if ${ac_cv_path_GREP+:} false; then :
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. if test -z "$GREP"; then
  4726. ac_path_GREP_found=false
  4727. # Loop through the user's path and test for each of PROGNAME-LIST
  4728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4729. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4730. do
  4731. IFS=$as_save_IFS
  4732. test -z "$as_dir" && as_dir=.
  4733. for ac_prog in grep ggrep; do
  4734. for ac_exec_ext in '' $ac_executable_extensions; do
  4735. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4736. as_fn_executable_p "$ac_path_GREP" || continue
  4737. # Check for GNU ac_path_GREP and select it if it is found.
  4738. # Check for GNU $ac_path_GREP
  4739. case `"$ac_path_GREP" --version 2>&1` in
  4740. *GNU*)
  4741. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4742. *)
  4743. ac_count=0
  4744. $as_echo_n 0123456789 >"conftest.in"
  4745. while :
  4746. do
  4747. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4748. mv "conftest.tmp" "conftest.in"
  4749. cp "conftest.in" "conftest.nl"
  4750. $as_echo 'GREP' >> "conftest.nl"
  4751. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4752. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4753. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4754. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4755. # Best one so far, save it but keep looking for a better one
  4756. ac_cv_path_GREP="$ac_path_GREP"
  4757. ac_path_GREP_max=$ac_count
  4758. fi
  4759. # 10*(2^10) chars as input seems more than enough
  4760. test $ac_count -gt 10 && break
  4761. done
  4762. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4763. esac
  4764. $ac_path_GREP_found && break 3
  4765. done
  4766. done
  4767. done
  4768. IFS=$as_save_IFS
  4769. if test -z "$ac_cv_path_GREP"; then
  4770. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4771. fi
  4772. else
  4773. ac_cv_path_GREP=$GREP
  4774. fi
  4775. fi
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4777. $as_echo "$ac_cv_path_GREP" >&6; }
  4778. GREP="$ac_cv_path_GREP"
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4780. $as_echo_n "checking for egrep... " >&6; }
  4781. if ${ac_cv_path_EGREP+:} false; then :
  4782. $as_echo_n "(cached) " >&6
  4783. else
  4784. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4785. then ac_cv_path_EGREP="$GREP -E"
  4786. else
  4787. if test -z "$EGREP"; then
  4788. ac_path_EGREP_found=false
  4789. # Loop through the user's path and test for each of PROGNAME-LIST
  4790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4791. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4792. do
  4793. IFS=$as_save_IFS
  4794. test -z "$as_dir" && as_dir=.
  4795. for ac_prog in egrep; do
  4796. for ac_exec_ext in '' $ac_executable_extensions; do
  4797. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4798. as_fn_executable_p "$ac_path_EGREP" || continue
  4799. # Check for GNU ac_path_EGREP and select it if it is found.
  4800. # Check for GNU $ac_path_EGREP
  4801. case `"$ac_path_EGREP" --version 2>&1` in
  4802. *GNU*)
  4803. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4804. *)
  4805. ac_count=0
  4806. $as_echo_n 0123456789 >"conftest.in"
  4807. while :
  4808. do
  4809. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4810. mv "conftest.tmp" "conftest.in"
  4811. cp "conftest.in" "conftest.nl"
  4812. $as_echo 'EGREP' >> "conftest.nl"
  4813. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4814. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4815. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4816. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4817. # Best one so far, save it but keep looking for a better one
  4818. ac_cv_path_EGREP="$ac_path_EGREP"
  4819. ac_path_EGREP_max=$ac_count
  4820. fi
  4821. # 10*(2^10) chars as input seems more than enough
  4822. test $ac_count -gt 10 && break
  4823. done
  4824. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4825. esac
  4826. $ac_path_EGREP_found && break 3
  4827. done
  4828. done
  4829. done
  4830. IFS=$as_save_IFS
  4831. if test -z "$ac_cv_path_EGREP"; then
  4832. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4833. fi
  4834. else
  4835. ac_cv_path_EGREP=$EGREP
  4836. fi
  4837. fi
  4838. fi
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4840. $as_echo "$ac_cv_path_EGREP" >&6; }
  4841. EGREP="$ac_cv_path_EGREP"
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4843. $as_echo_n "checking for fgrep... " >&6; }
  4844. if ${ac_cv_path_FGREP+:} false; then :
  4845. $as_echo_n "(cached) " >&6
  4846. else
  4847. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4848. then ac_cv_path_FGREP="$GREP -F"
  4849. else
  4850. if test -z "$FGREP"; then
  4851. ac_path_FGREP_found=false
  4852. # Loop through the user's path and test for each of PROGNAME-LIST
  4853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4854. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4855. do
  4856. IFS=$as_save_IFS
  4857. test -z "$as_dir" && as_dir=.
  4858. for ac_prog in fgrep; do
  4859. for ac_exec_ext in '' $ac_executable_extensions; do
  4860. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4861. as_fn_executable_p "$ac_path_FGREP" || continue
  4862. # Check for GNU ac_path_FGREP and select it if it is found.
  4863. # Check for GNU $ac_path_FGREP
  4864. case `"$ac_path_FGREP" --version 2>&1` in
  4865. *GNU*)
  4866. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4867. *)
  4868. ac_count=0
  4869. $as_echo_n 0123456789 >"conftest.in"
  4870. while :
  4871. do
  4872. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4873. mv "conftest.tmp" "conftest.in"
  4874. cp "conftest.in" "conftest.nl"
  4875. $as_echo 'FGREP' >> "conftest.nl"
  4876. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4877. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4878. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4879. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4880. # Best one so far, save it but keep looking for a better one
  4881. ac_cv_path_FGREP="$ac_path_FGREP"
  4882. ac_path_FGREP_max=$ac_count
  4883. fi
  4884. # 10*(2^10) chars as input seems more than enough
  4885. test $ac_count -gt 10 && break
  4886. done
  4887. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4888. esac
  4889. $ac_path_FGREP_found && break 3
  4890. done
  4891. done
  4892. done
  4893. IFS=$as_save_IFS
  4894. if test -z "$ac_cv_path_FGREP"; then
  4895. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4896. fi
  4897. else
  4898. ac_cv_path_FGREP=$FGREP
  4899. fi
  4900. fi
  4901. fi
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4903. $as_echo "$ac_cv_path_FGREP" >&6; }
  4904. FGREP="$ac_cv_path_FGREP"
  4905. test -z "$GREP" && GREP=grep
  4906. # Check whether --with-gnu-ld was given.
  4907. if test "${with_gnu_ld+set}" = set; then :
  4908. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4909. else
  4910. with_gnu_ld=no
  4911. fi
  4912. ac_prog=ld
  4913. if test "$GCC" = yes; then
  4914. # Check if gcc -print-prog-name=ld gives a path.
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4916. $as_echo_n "checking for ld used by $CC... " >&6; }
  4917. case $host in
  4918. *-*-mingw*)
  4919. # gcc leaves a trailing carriage return which upsets mingw
  4920. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4921. *)
  4922. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4923. esac
  4924. case $ac_prog in
  4925. # Accept absolute paths.
  4926. [\\/]* | ?:[\\/]*)
  4927. re_direlt='/[^/][^/]*/\.\./'
  4928. # Canonicalize the pathname of ld
  4929. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4930. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4931. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4932. done
  4933. test -z "$LD" && LD="$ac_prog"
  4934. ;;
  4935. "")
  4936. # If it fails, then pretend we aren't using GCC.
  4937. ac_prog=ld
  4938. ;;
  4939. *)
  4940. # If it is relative, then search for the first ld in PATH.
  4941. with_gnu_ld=unknown
  4942. ;;
  4943. esac
  4944. elif test "$with_gnu_ld" = yes; then
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4946. $as_echo_n "checking for GNU ld... " >&6; }
  4947. else
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4949. $as_echo_n "checking for non-GNU ld... " >&6; }
  4950. fi
  4951. if ${lt_cv_path_LD+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. if test -z "$LD"; then
  4955. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4956. for ac_dir in $PATH; do
  4957. IFS="$lt_save_ifs"
  4958. test -z "$ac_dir" && ac_dir=.
  4959. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4960. lt_cv_path_LD="$ac_dir/$ac_prog"
  4961. # Check to see if the program is GNU ld. I'd rather use --version,
  4962. # but apparently some variants of GNU ld only accept -v.
  4963. # Break only if it was the GNU/non-GNU ld that we prefer.
  4964. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4965. *GNU* | *'with BFD'*)
  4966. test "$with_gnu_ld" != no && break
  4967. ;;
  4968. *)
  4969. test "$with_gnu_ld" != yes && break
  4970. ;;
  4971. esac
  4972. fi
  4973. done
  4974. IFS="$lt_save_ifs"
  4975. else
  4976. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4977. fi
  4978. fi
  4979. LD="$lt_cv_path_LD"
  4980. if test -n "$LD"; then
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4982. $as_echo "$LD" >&6; }
  4983. else
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4985. $as_echo "no" >&6; }
  4986. fi
  4987. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4989. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4990. if ${lt_cv_prog_gnu_ld+:} false; then :
  4991. $as_echo_n "(cached) " >&6
  4992. else
  4993. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4994. case `$LD -v 2>&1 </dev/null` in
  4995. *GNU* | *'with BFD'*)
  4996. lt_cv_prog_gnu_ld=yes
  4997. ;;
  4998. *)
  4999. lt_cv_prog_gnu_ld=no
  5000. ;;
  5001. esac
  5002. fi
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5004. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5005. with_gnu_ld=$lt_cv_prog_gnu_ld
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5007. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5008. if ${lt_cv_path_NM+:} false; then :
  5009. $as_echo_n "(cached) " >&6
  5010. else
  5011. if test -n "$NM"; then
  5012. # Let the user override the test.
  5013. lt_cv_path_NM="$NM"
  5014. else
  5015. lt_nm_to_check="${ac_tool_prefix}nm"
  5016. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5017. lt_nm_to_check="$lt_nm_to_check nm"
  5018. fi
  5019. for lt_tmp_nm in $lt_nm_to_check; do
  5020. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5021. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5022. IFS="$lt_save_ifs"
  5023. test -z "$ac_dir" && ac_dir=.
  5024. tmp_nm="$ac_dir/$lt_tmp_nm"
  5025. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5026. # Check to see if the nm accepts a BSD-compat flag.
  5027. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5028. # nm: unknown option "B" ignored
  5029. # Tru64's nm complains that /dev/null is an invalid object file
  5030. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5031. */dev/null* | *'Invalid file or object type'*)
  5032. lt_cv_path_NM="$tmp_nm -B"
  5033. break
  5034. ;;
  5035. *)
  5036. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5037. */dev/null*)
  5038. lt_cv_path_NM="$tmp_nm -p"
  5039. break
  5040. ;;
  5041. *)
  5042. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5043. continue # so that we can try to find one that supports BSD flags
  5044. ;;
  5045. esac
  5046. ;;
  5047. esac
  5048. fi
  5049. done
  5050. IFS="$lt_save_ifs"
  5051. done
  5052. : ${lt_cv_path_NM=no}
  5053. fi
  5054. fi
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5056. $as_echo "$lt_cv_path_NM" >&6; }
  5057. if test "$lt_cv_path_NM" != "no"; then
  5058. NM="$lt_cv_path_NM"
  5059. else
  5060. # Didn't find any BSD compatible name lister, look for dumpbin.
  5061. if test -n "$DUMPBIN"; then :
  5062. # Let the user override the test.
  5063. else
  5064. if test -n "$ac_tool_prefix"; then
  5065. for ac_prog in dumpbin "link -dump"
  5066. do
  5067. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5068. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5070. $as_echo_n "checking for $ac_word... " >&6; }
  5071. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5072. $as_echo_n "(cached) " >&6
  5073. else
  5074. if test -n "$DUMPBIN"; then
  5075. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5076. else
  5077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5078. for as_dir in $PATH
  5079. do
  5080. IFS=$as_save_IFS
  5081. test -z "$as_dir" && as_dir=.
  5082. for ac_exec_ext in '' $ac_executable_extensions; do
  5083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5084. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5086. break 2
  5087. fi
  5088. done
  5089. done
  5090. IFS=$as_save_IFS
  5091. fi
  5092. fi
  5093. DUMPBIN=$ac_cv_prog_DUMPBIN
  5094. if test -n "$DUMPBIN"; then
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5096. $as_echo "$DUMPBIN" >&6; }
  5097. else
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5099. $as_echo "no" >&6; }
  5100. fi
  5101. test -n "$DUMPBIN" && break
  5102. done
  5103. fi
  5104. if test -z "$DUMPBIN"; then
  5105. ac_ct_DUMPBIN=$DUMPBIN
  5106. for ac_prog in dumpbin "link -dump"
  5107. do
  5108. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5109. set dummy $ac_prog; ac_word=$2
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5111. $as_echo_n "checking for $ac_word... " >&6; }
  5112. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. if test -n "$ac_ct_DUMPBIN"; then
  5116. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5117. else
  5118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5119. for as_dir in $PATH
  5120. do
  5121. IFS=$as_save_IFS
  5122. test -z "$as_dir" && as_dir=.
  5123. for ac_exec_ext in '' $ac_executable_extensions; do
  5124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5125. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5127. break 2
  5128. fi
  5129. done
  5130. done
  5131. IFS=$as_save_IFS
  5132. fi
  5133. fi
  5134. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5135. if test -n "$ac_ct_DUMPBIN"; then
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5137. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5138. else
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5140. $as_echo "no" >&6; }
  5141. fi
  5142. test -n "$ac_ct_DUMPBIN" && break
  5143. done
  5144. if test "x$ac_ct_DUMPBIN" = x; then
  5145. DUMPBIN=":"
  5146. else
  5147. case $cross_compiling:$ac_tool_warned in
  5148. yes:)
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5151. ac_tool_warned=yes ;;
  5152. esac
  5153. DUMPBIN=$ac_ct_DUMPBIN
  5154. fi
  5155. fi
  5156. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5157. *COFF*)
  5158. DUMPBIN="$DUMPBIN -symbols"
  5159. ;;
  5160. *)
  5161. DUMPBIN=:
  5162. ;;
  5163. esac
  5164. fi
  5165. if test "$DUMPBIN" != ":"; then
  5166. NM="$DUMPBIN"
  5167. fi
  5168. fi
  5169. test -z "$NM" && NM=nm
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5171. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5172. if ${lt_cv_nm_interface+:} false; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. lt_cv_nm_interface="BSD nm"
  5176. echo "int some_variable = 0;" > conftest.$ac_ext
  5177. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5178. (eval "$ac_compile" 2>conftest.err)
  5179. cat conftest.err >&5
  5180. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5181. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5182. cat conftest.err >&5
  5183. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5184. cat conftest.out >&5
  5185. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5186. lt_cv_nm_interface="MS dumpbin"
  5187. fi
  5188. rm -f conftest*
  5189. fi
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5191. $as_echo "$lt_cv_nm_interface" >&6; }
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5193. $as_echo_n "checking whether ln -s works... " >&6; }
  5194. LN_S=$as_ln_s
  5195. if test "$LN_S" = "ln -s"; then
  5196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5197. $as_echo "yes" >&6; }
  5198. else
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5200. $as_echo "no, using $LN_S" >&6; }
  5201. fi
  5202. # find the maximum length of command line arguments
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5204. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5205. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. i=0
  5209. teststring="ABCD"
  5210. case $build_os in
  5211. msdosdjgpp*)
  5212. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5213. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5214. # during glob expansion). Even if it were fixed, the result of this
  5215. # check would be larger than it should be.
  5216. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5217. ;;
  5218. gnu*)
  5219. # Under GNU Hurd, this test is not required because there is
  5220. # no limit to the length of command line arguments.
  5221. # Libtool will interpret -1 as no limit whatsoever
  5222. lt_cv_sys_max_cmd_len=-1;
  5223. ;;
  5224. cygwin* | mingw* | cegcc*)
  5225. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5226. # about 5 minutes as the teststring grows exponentially.
  5227. # Worse, since 9x/ME are not pre-emptively multitasking,
  5228. # you end up with a "frozen" computer, even though with patience
  5229. # the test eventually succeeds (with a max line length of 256k).
  5230. # Instead, let's just punt: use the minimum linelength reported by
  5231. # all of the supported platforms: 8192 (on NT/2K/XP).
  5232. lt_cv_sys_max_cmd_len=8192;
  5233. ;;
  5234. mint*)
  5235. # On MiNT this can take a long time and run out of memory.
  5236. lt_cv_sys_max_cmd_len=8192;
  5237. ;;
  5238. amigaos*)
  5239. # On AmigaOS with pdksh, this test takes hours, literally.
  5240. # So we just punt and use a minimum line length of 8192.
  5241. lt_cv_sys_max_cmd_len=8192;
  5242. ;;
  5243. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5244. # This has been around since 386BSD, at least. Likely further.
  5245. if test -x /sbin/sysctl; then
  5246. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5247. elif test -x /usr/sbin/sysctl; then
  5248. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5249. else
  5250. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5251. fi
  5252. # And add a safety zone
  5253. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5254. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5255. ;;
  5256. interix*)
  5257. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5258. lt_cv_sys_max_cmd_len=196608
  5259. ;;
  5260. os2*)
  5261. # The test takes a long time on OS/2.
  5262. lt_cv_sys_max_cmd_len=8192
  5263. ;;
  5264. osf*)
  5265. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5266. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5267. # nice to cause kernel panics so lets avoid the loop below.
  5268. # First set a reasonable default.
  5269. lt_cv_sys_max_cmd_len=16384
  5270. #
  5271. if test -x /sbin/sysconfig; then
  5272. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5273. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5274. esac
  5275. fi
  5276. ;;
  5277. sco3.2v5*)
  5278. lt_cv_sys_max_cmd_len=102400
  5279. ;;
  5280. sysv5* | sco5v6* | sysv4.2uw2*)
  5281. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5282. if test -n "$kargmax"; then
  5283. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5284. else
  5285. lt_cv_sys_max_cmd_len=32768
  5286. fi
  5287. ;;
  5288. *)
  5289. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5290. if test -n "$lt_cv_sys_max_cmd_len"; then
  5291. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5292. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5293. else
  5294. # Make teststring a little bigger before we do anything with it.
  5295. # a 1K string should be a reasonable start.
  5296. for i in 1 2 3 4 5 6 7 8 ; do
  5297. teststring=$teststring$teststring
  5298. done
  5299. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5300. # If test is not a shell built-in, we'll probably end up computing a
  5301. # maximum length that is only half of the actual maximum length, but
  5302. # we can't tell.
  5303. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5304. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5305. test $i != 17 # 1/2 MB should be enough
  5306. do
  5307. i=`expr $i + 1`
  5308. teststring=$teststring$teststring
  5309. done
  5310. # Only check the string length outside the loop.
  5311. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5312. teststring=
  5313. # Add a significant safety factor because C++ compilers can tack on
  5314. # massive amounts of additional arguments before passing them to the
  5315. # linker. It appears as though 1/2 is a usable value.
  5316. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5317. fi
  5318. ;;
  5319. esac
  5320. fi
  5321. if test -n $lt_cv_sys_max_cmd_len ; then
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5323. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5324. else
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5326. $as_echo "none" >&6; }
  5327. fi
  5328. max_cmd_len=$lt_cv_sys_max_cmd_len
  5329. : ${CP="cp -f"}
  5330. : ${MV="mv -f"}
  5331. : ${RM="rm -f"}
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5333. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5334. # Try some XSI features
  5335. xsi_shell=no
  5336. ( _lt_dummy="a/b/c"
  5337. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5338. = c,a/b,b/c, \
  5339. && eval 'test $(( 1 + 1 )) -eq 2 \
  5340. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5341. && xsi_shell=yes
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5343. $as_echo "$xsi_shell" >&6; }
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5345. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5346. lt_shell_append=no
  5347. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5348. >/dev/null 2>&1 \
  5349. && lt_shell_append=yes
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5351. $as_echo "$lt_shell_append" >&6; }
  5352. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5353. lt_unset=unset
  5354. else
  5355. lt_unset=false
  5356. fi
  5357. # test EBCDIC or ASCII
  5358. case `echo X|tr X '\101'` in
  5359. A) # ASCII based system
  5360. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5361. lt_SP2NL='tr \040 \012'
  5362. lt_NL2SP='tr \015\012 \040\040'
  5363. ;;
  5364. *) # EBCDIC based system
  5365. lt_SP2NL='tr \100 \n'
  5366. lt_NL2SP='tr \r\n \100\100'
  5367. ;;
  5368. esac
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5370. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5371. if ${lt_cv_to_host_file_cmd+:} false; then :
  5372. $as_echo_n "(cached) " >&6
  5373. else
  5374. case $host in
  5375. *-*-mingw* )
  5376. case $build in
  5377. *-*-mingw* ) # actually msys
  5378. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5379. ;;
  5380. *-*-cygwin* )
  5381. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5382. ;;
  5383. * ) # otherwise, assume *nix
  5384. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5385. ;;
  5386. esac
  5387. ;;
  5388. *-*-cygwin* )
  5389. case $build in
  5390. *-*-mingw* ) # actually msys
  5391. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5392. ;;
  5393. *-*-cygwin* )
  5394. lt_cv_to_host_file_cmd=func_convert_file_noop
  5395. ;;
  5396. * ) # otherwise, assume *nix
  5397. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5398. ;;
  5399. esac
  5400. ;;
  5401. * ) # unhandled hosts (and "normal" native builds)
  5402. lt_cv_to_host_file_cmd=func_convert_file_noop
  5403. ;;
  5404. esac
  5405. fi
  5406. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5408. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5410. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5411. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5412. $as_echo_n "(cached) " >&6
  5413. else
  5414. #assume ordinary cross tools, or native build.
  5415. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5416. case $host in
  5417. *-*-mingw* )
  5418. case $build in
  5419. *-*-mingw* ) # actually msys
  5420. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5421. ;;
  5422. esac
  5423. ;;
  5424. esac
  5425. fi
  5426. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5428. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5430. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5431. if ${lt_cv_ld_reload_flag+:} false; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. lt_cv_ld_reload_flag='-r'
  5435. fi
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5437. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5438. reload_flag=$lt_cv_ld_reload_flag
  5439. case $reload_flag in
  5440. "" | " "*) ;;
  5441. *) reload_flag=" $reload_flag" ;;
  5442. esac
  5443. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5444. case $host_os in
  5445. cygwin* | mingw* | pw32* | cegcc*)
  5446. if test "$GCC" != yes; then
  5447. reload_cmds=false
  5448. fi
  5449. ;;
  5450. darwin*)
  5451. if test "$GCC" = yes; then
  5452. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5453. else
  5454. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5455. fi
  5456. ;;
  5457. esac
  5458. if test -n "$ac_tool_prefix"; then
  5459. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5460. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5462. $as_echo_n "checking for $ac_word... " >&6; }
  5463. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5464. $as_echo_n "(cached) " >&6
  5465. else
  5466. if test -n "$OBJDUMP"; then
  5467. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5468. else
  5469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5470. for as_dir in $PATH
  5471. do
  5472. IFS=$as_save_IFS
  5473. test -z "$as_dir" && as_dir=.
  5474. for ac_exec_ext in '' $ac_executable_extensions; do
  5475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5476. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5478. break 2
  5479. fi
  5480. done
  5481. done
  5482. IFS=$as_save_IFS
  5483. fi
  5484. fi
  5485. OBJDUMP=$ac_cv_prog_OBJDUMP
  5486. if test -n "$OBJDUMP"; then
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5488. $as_echo "$OBJDUMP" >&6; }
  5489. else
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5491. $as_echo "no" >&6; }
  5492. fi
  5493. fi
  5494. if test -z "$ac_cv_prog_OBJDUMP"; then
  5495. ac_ct_OBJDUMP=$OBJDUMP
  5496. # Extract the first word of "objdump", so it can be a program name with args.
  5497. set dummy objdump; ac_word=$2
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5499. $as_echo_n "checking for $ac_word... " >&6; }
  5500. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. if test -n "$ac_ct_OBJDUMP"; then
  5504. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5505. else
  5506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5507. for as_dir in $PATH
  5508. do
  5509. IFS=$as_save_IFS
  5510. test -z "$as_dir" && as_dir=.
  5511. for ac_exec_ext in '' $ac_executable_extensions; do
  5512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5513. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5515. break 2
  5516. fi
  5517. done
  5518. done
  5519. IFS=$as_save_IFS
  5520. fi
  5521. fi
  5522. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5523. if test -n "$ac_ct_OBJDUMP"; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5525. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5526. else
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5528. $as_echo "no" >&6; }
  5529. fi
  5530. if test "x$ac_ct_OBJDUMP" = x; then
  5531. OBJDUMP="false"
  5532. else
  5533. case $cross_compiling:$ac_tool_warned in
  5534. yes:)
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5536. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5537. ac_tool_warned=yes ;;
  5538. esac
  5539. OBJDUMP=$ac_ct_OBJDUMP
  5540. fi
  5541. else
  5542. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5543. fi
  5544. test -z "$OBJDUMP" && OBJDUMP=objdump
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5546. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5547. if ${lt_cv_deplibs_check_method+:} false; then :
  5548. $as_echo_n "(cached) " >&6
  5549. else
  5550. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5551. lt_cv_file_magic_test_file=
  5552. lt_cv_deplibs_check_method='unknown'
  5553. # Need to set the preceding variable on all platforms that support
  5554. # interlibrary dependencies.
  5555. # 'none' -- dependencies not supported.
  5556. # `unknown' -- same as none, but documents that we really don't know.
  5557. # 'pass_all' -- all dependencies passed with no checks.
  5558. # 'test_compile' -- check by making test program.
  5559. # 'file_magic [[regex]]' -- check by looking for files in library path
  5560. # which responds to the $file_magic_cmd with a given extended regex.
  5561. # If you have `file' or equivalent on your system and you're not sure
  5562. # whether `pass_all' will *always* work, you probably want this one.
  5563. case $host_os in
  5564. aix[4-9]*)
  5565. lt_cv_deplibs_check_method=pass_all
  5566. ;;
  5567. beos*)
  5568. lt_cv_deplibs_check_method=pass_all
  5569. ;;
  5570. bsdi[45]*)
  5571. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5572. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5573. lt_cv_file_magic_test_file=/shlib/libc.so
  5574. ;;
  5575. cygwin*)
  5576. # func_win32_libid is a shell function defined in ltmain.sh
  5577. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5578. lt_cv_file_magic_cmd='func_win32_libid'
  5579. ;;
  5580. mingw* | pw32*)
  5581. # Base MSYS/MinGW do not provide the 'file' command needed by
  5582. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5583. # unless we find 'file', for example because we are cross-compiling.
  5584. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5585. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5586. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5587. lt_cv_file_magic_cmd='func_win32_libid'
  5588. else
  5589. # Keep this pattern in sync with the one in func_win32_libid.
  5590. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5591. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5592. fi
  5593. ;;
  5594. cegcc*)
  5595. # use the weaker test based on 'objdump'. See mingw*.
  5596. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5597. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5598. ;;
  5599. darwin* | rhapsody*)
  5600. lt_cv_deplibs_check_method=pass_all
  5601. ;;
  5602. freebsd* | dragonfly*)
  5603. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5604. case $host_cpu in
  5605. i*86 )
  5606. # Not sure whether the presence of OpenBSD here was a mistake.
  5607. # Let's accept both of them until this is cleared up.
  5608. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5609. lt_cv_file_magic_cmd=/usr/bin/file
  5610. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5611. ;;
  5612. esac
  5613. else
  5614. lt_cv_deplibs_check_method=pass_all
  5615. fi
  5616. ;;
  5617. gnu*)
  5618. lt_cv_deplibs_check_method=pass_all
  5619. ;;
  5620. haiku*)
  5621. lt_cv_deplibs_check_method=pass_all
  5622. ;;
  5623. hpux10.20* | hpux11*)
  5624. lt_cv_file_magic_cmd=/usr/bin/file
  5625. case $host_cpu in
  5626. ia64*)
  5627. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5628. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5629. ;;
  5630. hppa*64*)
  5631. 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]'
  5632. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5633. ;;
  5634. *)
  5635. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5636. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5637. ;;
  5638. esac
  5639. ;;
  5640. interix[3-9]*)
  5641. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5642. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5643. ;;
  5644. irix5* | irix6* | nonstopux*)
  5645. case $LD in
  5646. *-32|*"-32 ") libmagic=32-bit;;
  5647. *-n32|*"-n32 ") libmagic=N32;;
  5648. *-64|*"-64 ") libmagic=64-bit;;
  5649. *) libmagic=never-match;;
  5650. esac
  5651. lt_cv_deplibs_check_method=pass_all
  5652. ;;
  5653. # This must be glibc/ELF.
  5654. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5655. lt_cv_deplibs_check_method=pass_all
  5656. ;;
  5657. netbsd*)
  5658. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5659. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5660. else
  5661. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5662. fi
  5663. ;;
  5664. newos6*)
  5665. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5666. lt_cv_file_magic_cmd=/usr/bin/file
  5667. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5668. ;;
  5669. *nto* | *qnx*)
  5670. lt_cv_deplibs_check_method=pass_all
  5671. ;;
  5672. openbsd*)
  5673. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5674. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5675. else
  5676. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5677. fi
  5678. ;;
  5679. osf3* | osf4* | osf5*)
  5680. lt_cv_deplibs_check_method=pass_all
  5681. ;;
  5682. rdos*)
  5683. lt_cv_deplibs_check_method=pass_all
  5684. ;;
  5685. solaris*)
  5686. lt_cv_deplibs_check_method=pass_all
  5687. ;;
  5688. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5689. lt_cv_deplibs_check_method=pass_all
  5690. ;;
  5691. sysv4 | sysv4.3*)
  5692. case $host_vendor in
  5693. motorola)
  5694. 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]'
  5695. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5696. ;;
  5697. ncr)
  5698. lt_cv_deplibs_check_method=pass_all
  5699. ;;
  5700. sequent)
  5701. lt_cv_file_magic_cmd='/bin/file'
  5702. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5703. ;;
  5704. sni)
  5705. lt_cv_file_magic_cmd='/bin/file'
  5706. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5707. lt_cv_file_magic_test_file=/lib/libc.so
  5708. ;;
  5709. siemens)
  5710. lt_cv_deplibs_check_method=pass_all
  5711. ;;
  5712. pc)
  5713. lt_cv_deplibs_check_method=pass_all
  5714. ;;
  5715. esac
  5716. ;;
  5717. tpf*)
  5718. lt_cv_deplibs_check_method=pass_all
  5719. ;;
  5720. esac
  5721. fi
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5723. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5724. file_magic_glob=
  5725. want_nocaseglob=no
  5726. if test "$build" = "$host"; then
  5727. case $host_os in
  5728. mingw* | pw32*)
  5729. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5730. want_nocaseglob=yes
  5731. else
  5732. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5733. fi
  5734. ;;
  5735. esac
  5736. fi
  5737. file_magic_cmd=$lt_cv_file_magic_cmd
  5738. deplibs_check_method=$lt_cv_deplibs_check_method
  5739. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5740. if test -n "$ac_tool_prefix"; then
  5741. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5742. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5744. $as_echo_n "checking for $ac_word... " >&6; }
  5745. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5746. $as_echo_n "(cached) " >&6
  5747. else
  5748. if test -n "$DLLTOOL"; then
  5749. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5750. else
  5751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5752. for as_dir in $PATH
  5753. do
  5754. IFS=$as_save_IFS
  5755. test -z "$as_dir" && as_dir=.
  5756. for ac_exec_ext in '' $ac_executable_extensions; do
  5757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5758. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5760. break 2
  5761. fi
  5762. done
  5763. done
  5764. IFS=$as_save_IFS
  5765. fi
  5766. fi
  5767. DLLTOOL=$ac_cv_prog_DLLTOOL
  5768. if test -n "$DLLTOOL"; then
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5770. $as_echo "$DLLTOOL" >&6; }
  5771. else
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5773. $as_echo "no" >&6; }
  5774. fi
  5775. fi
  5776. if test -z "$ac_cv_prog_DLLTOOL"; then
  5777. ac_ct_DLLTOOL=$DLLTOOL
  5778. # Extract the first word of "dlltool", so it can be a program name with args.
  5779. set dummy dlltool; ac_word=$2
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5781. $as_echo_n "checking for $ac_word... " >&6; }
  5782. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. if test -n "$ac_ct_DLLTOOL"; then
  5786. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5787. else
  5788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5789. for as_dir in $PATH
  5790. do
  5791. IFS=$as_save_IFS
  5792. test -z "$as_dir" && as_dir=.
  5793. for ac_exec_ext in '' $ac_executable_extensions; do
  5794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5795. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5797. break 2
  5798. fi
  5799. done
  5800. done
  5801. IFS=$as_save_IFS
  5802. fi
  5803. fi
  5804. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5805. if test -n "$ac_ct_DLLTOOL"; then
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5807. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5808. else
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5810. $as_echo "no" >&6; }
  5811. fi
  5812. if test "x$ac_ct_DLLTOOL" = x; then
  5813. DLLTOOL="false"
  5814. else
  5815. case $cross_compiling:$ac_tool_warned in
  5816. yes:)
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5819. ac_tool_warned=yes ;;
  5820. esac
  5821. DLLTOOL=$ac_ct_DLLTOOL
  5822. fi
  5823. else
  5824. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5825. fi
  5826. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5828. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5829. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5830. $as_echo_n "(cached) " >&6
  5831. else
  5832. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5833. case $host_os in
  5834. cygwin* | mingw* | pw32* | cegcc*)
  5835. # two different shell functions defined in ltmain.sh
  5836. # decide which to use based on capabilities of $DLLTOOL
  5837. case `$DLLTOOL --help 2>&1` in
  5838. *--identify-strict*)
  5839. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5840. ;;
  5841. *)
  5842. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5843. ;;
  5844. esac
  5845. ;;
  5846. *)
  5847. # fallback: assume linklib IS sharedlib
  5848. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5849. ;;
  5850. esac
  5851. fi
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5853. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5854. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5855. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5856. if test -n "$ac_tool_prefix"; then
  5857. for ac_prog in ar
  5858. do
  5859. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5860. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5862. $as_echo_n "checking for $ac_word... " >&6; }
  5863. if ${ac_cv_prog_AR+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. if test -n "$AR"; then
  5867. ac_cv_prog_AR="$AR" # Let the user override the test.
  5868. else
  5869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5870. for as_dir in $PATH
  5871. do
  5872. IFS=$as_save_IFS
  5873. test -z "$as_dir" && as_dir=.
  5874. for ac_exec_ext in '' $ac_executable_extensions; do
  5875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5876. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5878. break 2
  5879. fi
  5880. done
  5881. done
  5882. IFS=$as_save_IFS
  5883. fi
  5884. fi
  5885. AR=$ac_cv_prog_AR
  5886. if test -n "$AR"; then
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5888. $as_echo "$AR" >&6; }
  5889. else
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5891. $as_echo "no" >&6; }
  5892. fi
  5893. test -n "$AR" && break
  5894. done
  5895. fi
  5896. if test -z "$AR"; then
  5897. ac_ct_AR=$AR
  5898. for ac_prog in ar
  5899. do
  5900. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5901. set dummy $ac_prog; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$ac_ct_AR"; then
  5908. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_ac_ct_AR="$ac_prog"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5927. if test -n "$ac_ct_AR"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5929. $as_echo "$ac_ct_AR" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. test -n "$ac_ct_AR" && break
  5935. done
  5936. if test "x$ac_ct_AR" = x; then
  5937. AR="false"
  5938. else
  5939. case $cross_compiling:$ac_tool_warned in
  5940. yes:)
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5943. ac_tool_warned=yes ;;
  5944. esac
  5945. AR=$ac_ct_AR
  5946. fi
  5947. fi
  5948. : ${AR=ar}
  5949. : ${AR_FLAGS=cru}
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5951. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5952. if ${lt_cv_ar_at_file+:} false; then :
  5953. $as_echo_n "(cached) " >&6
  5954. else
  5955. lt_cv_ar_at_file=no
  5956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5957. /* end confdefs.h. */
  5958. int
  5959. main ()
  5960. {
  5961. ;
  5962. return 0;
  5963. }
  5964. _ACEOF
  5965. if ac_fn_c_try_compile "$LINENO"; then :
  5966. echo conftest.$ac_objext > conftest.lst
  5967. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5968. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5969. (eval $lt_ar_try) 2>&5
  5970. ac_status=$?
  5971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5972. test $ac_status = 0; }
  5973. if test "$ac_status" -eq 0; then
  5974. # Ensure the archiver fails upon bogus file names.
  5975. rm -f conftest.$ac_objext libconftest.a
  5976. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5977. (eval $lt_ar_try) 2>&5
  5978. ac_status=$?
  5979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5980. test $ac_status = 0; }
  5981. if test "$ac_status" -ne 0; then
  5982. lt_cv_ar_at_file=@
  5983. fi
  5984. fi
  5985. rm -f conftest.* libconftest.a
  5986. fi
  5987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5988. fi
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5990. $as_echo "$lt_cv_ar_at_file" >&6; }
  5991. if test "x$lt_cv_ar_at_file" = xno; then
  5992. archiver_list_spec=
  5993. else
  5994. archiver_list_spec=$lt_cv_ar_at_file
  5995. fi
  5996. if test -n "$ac_tool_prefix"; then
  5997. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5998. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6000. $as_echo_n "checking for $ac_word... " >&6; }
  6001. if ${ac_cv_prog_STRIP+:} false; then :
  6002. $as_echo_n "(cached) " >&6
  6003. else
  6004. if test -n "$STRIP"; then
  6005. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6006. else
  6007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6008. for as_dir in $PATH
  6009. do
  6010. IFS=$as_save_IFS
  6011. test -z "$as_dir" && as_dir=.
  6012. for ac_exec_ext in '' $ac_executable_extensions; do
  6013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6014. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6016. break 2
  6017. fi
  6018. done
  6019. done
  6020. IFS=$as_save_IFS
  6021. fi
  6022. fi
  6023. STRIP=$ac_cv_prog_STRIP
  6024. if test -n "$STRIP"; then
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6026. $as_echo "$STRIP" >&6; }
  6027. else
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6029. $as_echo "no" >&6; }
  6030. fi
  6031. fi
  6032. if test -z "$ac_cv_prog_STRIP"; then
  6033. ac_ct_STRIP=$STRIP
  6034. # Extract the first word of "strip", so it can be a program name with args.
  6035. set dummy strip; ac_word=$2
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6037. $as_echo_n "checking for $ac_word... " >&6; }
  6038. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. if test -n "$ac_ct_STRIP"; then
  6042. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6043. else
  6044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6045. for as_dir in $PATH
  6046. do
  6047. IFS=$as_save_IFS
  6048. test -z "$as_dir" && as_dir=.
  6049. for ac_exec_ext in '' $ac_executable_extensions; do
  6050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6051. ac_cv_prog_ac_ct_STRIP="strip"
  6052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6053. break 2
  6054. fi
  6055. done
  6056. done
  6057. IFS=$as_save_IFS
  6058. fi
  6059. fi
  6060. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6061. if test -n "$ac_ct_STRIP"; then
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6063. $as_echo "$ac_ct_STRIP" >&6; }
  6064. else
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068. if test "x$ac_ct_STRIP" = x; then
  6069. STRIP=":"
  6070. else
  6071. case $cross_compiling:$ac_tool_warned in
  6072. yes:)
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6074. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6075. ac_tool_warned=yes ;;
  6076. esac
  6077. STRIP=$ac_ct_STRIP
  6078. fi
  6079. else
  6080. STRIP="$ac_cv_prog_STRIP"
  6081. fi
  6082. test -z "$STRIP" && STRIP=:
  6083. if test -n "$ac_tool_prefix"; then
  6084. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6085. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6087. $as_echo_n "checking for $ac_word... " >&6; }
  6088. if ${ac_cv_prog_RANLIB+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. if test -n "$RANLIB"; then
  6092. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6093. else
  6094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6095. for as_dir in $PATH
  6096. do
  6097. IFS=$as_save_IFS
  6098. test -z "$as_dir" && as_dir=.
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6101. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi
  6109. fi
  6110. RANLIB=$ac_cv_prog_RANLIB
  6111. if test -n "$RANLIB"; then
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6113. $as_echo "$RANLIB" >&6; }
  6114. else
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6116. $as_echo "no" >&6; }
  6117. fi
  6118. fi
  6119. if test -z "$ac_cv_prog_RANLIB"; then
  6120. ac_ct_RANLIB=$RANLIB
  6121. # Extract the first word of "ranlib", so it can be a program name with args.
  6122. set dummy ranlib; ac_word=$2
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6124. $as_echo_n "checking for $ac_word... " >&6; }
  6125. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. if test -n "$ac_ct_RANLIB"; then
  6129. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6130. else
  6131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6132. for as_dir in $PATH
  6133. do
  6134. IFS=$as_save_IFS
  6135. test -z "$as_dir" && as_dir=.
  6136. for ac_exec_ext in '' $ac_executable_extensions; do
  6137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6138. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6140. break 2
  6141. fi
  6142. done
  6143. done
  6144. IFS=$as_save_IFS
  6145. fi
  6146. fi
  6147. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6148. if test -n "$ac_ct_RANLIB"; then
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6150. $as_echo "$ac_ct_RANLIB" >&6; }
  6151. else
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155. if test "x$ac_ct_RANLIB" = x; then
  6156. RANLIB=":"
  6157. else
  6158. case $cross_compiling:$ac_tool_warned in
  6159. yes:)
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6161. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6162. ac_tool_warned=yes ;;
  6163. esac
  6164. RANLIB=$ac_ct_RANLIB
  6165. fi
  6166. else
  6167. RANLIB="$ac_cv_prog_RANLIB"
  6168. fi
  6169. test -z "$RANLIB" && RANLIB=:
  6170. # Determine commands to create old-style static archives.
  6171. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6172. old_postinstall_cmds='chmod 644 $oldlib'
  6173. old_postuninstall_cmds=
  6174. if test -n "$RANLIB"; then
  6175. case $host_os in
  6176. openbsd*)
  6177. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6178. ;;
  6179. *)
  6180. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6181. ;;
  6182. esac
  6183. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6184. fi
  6185. case $host_os in
  6186. darwin*)
  6187. lock_old_archive_extraction=yes ;;
  6188. *)
  6189. lock_old_archive_extraction=no ;;
  6190. esac
  6191. # If no C compiler was specified, use CC.
  6192. LTCC=${LTCC-"$CC"}
  6193. # If no C compiler flags were specified, use CFLAGS.
  6194. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6195. # Allow CC to be a program name with arguments.
  6196. compiler=$CC
  6197. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6199. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6200. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. # These are sane defaults that work on at least a few old systems.
  6204. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6205. # Character class describing NM global symbol codes.
  6206. symcode='[BCDEGRST]'
  6207. # Regexp to match symbols that can be accessed directly from C.
  6208. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6209. # Define system-specific variables.
  6210. case $host_os in
  6211. aix*)
  6212. symcode='[BCDT]'
  6213. ;;
  6214. cygwin* | mingw* | pw32* | cegcc*)
  6215. symcode='[ABCDGISTW]'
  6216. ;;
  6217. hpux*)
  6218. if test "$host_cpu" = ia64; then
  6219. symcode='[ABCDEGRST]'
  6220. fi
  6221. ;;
  6222. irix* | nonstopux*)
  6223. symcode='[BCDEGRST]'
  6224. ;;
  6225. osf*)
  6226. symcode='[BCDEGQRST]'
  6227. ;;
  6228. solaris*)
  6229. symcode='[BDRT]'
  6230. ;;
  6231. sco3.2v5*)
  6232. symcode='[DT]'
  6233. ;;
  6234. sysv4.2uw2*)
  6235. symcode='[DT]'
  6236. ;;
  6237. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6238. symcode='[ABDT]'
  6239. ;;
  6240. sysv4)
  6241. symcode='[DFNSTU]'
  6242. ;;
  6243. esac
  6244. # If we're using GNU nm, then use its standard symbol codes.
  6245. case `$NM -V 2>&1` in
  6246. *GNU* | *'with BFD'*)
  6247. symcode='[ABCDGIRSTW]' ;;
  6248. esac
  6249. # Transform an extracted symbol line into a proper C declaration.
  6250. # Some systems (esp. on ia64) link data and code symbols differently,
  6251. # so use this general approach.
  6252. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6253. # Transform an extracted symbol line into symbol name and symbol address
  6254. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6255. 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'"
  6256. # Handle CRLF in mingw tool chain
  6257. opt_cr=
  6258. case $build_os in
  6259. mingw*)
  6260. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6261. ;;
  6262. esac
  6263. # Try without a prefix underscore, then with it.
  6264. for ac_symprfx in "" "_"; do
  6265. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6266. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6267. # Write the raw and C identifiers.
  6268. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6269. # Fake it for dumpbin and say T for any non-static function
  6270. # and D for any global variable.
  6271. # Also find C++ and __fastcall symbols from MSVC++,
  6272. # which start with @ or ?.
  6273. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6274. " {last_section=section; section=\$ 3};"\
  6275. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6276. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6277. " \$ 0!~/External *\|/{next};"\
  6278. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6279. " {if(hide[section]) next};"\
  6280. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6281. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6282. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6283. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6284. " ' prfx=^$ac_symprfx"
  6285. else
  6286. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6287. fi
  6288. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6289. # Check to see that the pipe works correctly.
  6290. pipe_works=no
  6291. rm -f conftest*
  6292. cat > conftest.$ac_ext <<_LT_EOF
  6293. #ifdef __cplusplus
  6294. extern "C" {
  6295. #endif
  6296. char nm_test_var;
  6297. void nm_test_func(void);
  6298. void nm_test_func(void){}
  6299. #ifdef __cplusplus
  6300. }
  6301. #endif
  6302. int main(){nm_test_var='a';nm_test_func();return(0);}
  6303. _LT_EOF
  6304. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6305. (eval $ac_compile) 2>&5
  6306. ac_status=$?
  6307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6308. test $ac_status = 0; }; then
  6309. # Now try to grab the symbols.
  6310. nlist=conftest.nm
  6311. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6312. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6313. ac_status=$?
  6314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6315. test $ac_status = 0; } && test -s "$nlist"; then
  6316. # Try sorting and uniquifying the output.
  6317. if sort "$nlist" | uniq > "$nlist"T; then
  6318. mv -f "$nlist"T "$nlist"
  6319. else
  6320. rm -f "$nlist"T
  6321. fi
  6322. # Make sure that we snagged all the symbols we need.
  6323. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6324. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6325. cat <<_LT_EOF > conftest.$ac_ext
  6326. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6327. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6328. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6329. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6330. # define LT_DLSYM_CONST
  6331. #elif defined(__osf__)
  6332. /* This system does not cope well with relocations in const data. */
  6333. # define LT_DLSYM_CONST
  6334. #else
  6335. # define LT_DLSYM_CONST const
  6336. #endif
  6337. #ifdef __cplusplus
  6338. extern "C" {
  6339. #endif
  6340. _LT_EOF
  6341. # Now generate the symbol file.
  6342. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6343. cat <<_LT_EOF >> conftest.$ac_ext
  6344. /* The mapping between symbol names and symbols. */
  6345. LT_DLSYM_CONST struct {
  6346. const char *name;
  6347. void *address;
  6348. }
  6349. lt__PROGRAM__LTX_preloaded_symbols[] =
  6350. {
  6351. { "@PROGRAM@", (void *) 0 },
  6352. _LT_EOF
  6353. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6354. cat <<\_LT_EOF >> conftest.$ac_ext
  6355. {0, (void *) 0}
  6356. };
  6357. /* This works around a problem in FreeBSD linker */
  6358. #ifdef FREEBSD_WORKAROUND
  6359. static const void *lt_preloaded_setup() {
  6360. return lt__PROGRAM__LTX_preloaded_symbols;
  6361. }
  6362. #endif
  6363. #ifdef __cplusplus
  6364. }
  6365. #endif
  6366. _LT_EOF
  6367. # Now try linking the two files.
  6368. mv conftest.$ac_objext conftstm.$ac_objext
  6369. lt_globsym_save_LIBS=$LIBS
  6370. lt_globsym_save_CFLAGS=$CFLAGS
  6371. LIBS="conftstm.$ac_objext"
  6372. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6373. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6374. (eval $ac_link) 2>&5
  6375. ac_status=$?
  6376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6377. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6378. pipe_works=yes
  6379. fi
  6380. LIBS=$lt_globsym_save_LIBS
  6381. CFLAGS=$lt_globsym_save_CFLAGS
  6382. else
  6383. echo "cannot find nm_test_func in $nlist" >&5
  6384. fi
  6385. else
  6386. echo "cannot find nm_test_var in $nlist" >&5
  6387. fi
  6388. else
  6389. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6390. fi
  6391. else
  6392. echo "$progname: failed program was:" >&5
  6393. cat conftest.$ac_ext >&5
  6394. fi
  6395. rm -rf conftest* conftst*
  6396. # Do not use the global_symbol_pipe unless it works.
  6397. if test "$pipe_works" = yes; then
  6398. break
  6399. else
  6400. lt_cv_sys_global_symbol_pipe=
  6401. fi
  6402. done
  6403. fi
  6404. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6405. lt_cv_sys_global_symbol_to_cdecl=
  6406. fi
  6407. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6409. $as_echo "failed" >&6; }
  6410. else
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6412. $as_echo "ok" >&6; }
  6413. fi
  6414. # Response file support.
  6415. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6416. nm_file_list_spec='@'
  6417. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6418. nm_file_list_spec='@'
  6419. fi
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6421. $as_echo_n "checking for sysroot... " >&6; }
  6422. # Check whether --with-sysroot was given.
  6423. if test "${with_sysroot+set}" = set; then :
  6424. withval=$with_sysroot;
  6425. else
  6426. with_sysroot=no
  6427. fi
  6428. lt_sysroot=
  6429. case ${with_sysroot} in #(
  6430. yes)
  6431. if test "$GCC" = yes; then
  6432. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6433. fi
  6434. ;; #(
  6435. /*)
  6436. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6437. ;; #(
  6438. no|'')
  6439. ;; #(
  6440. *)
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6442. $as_echo "${with_sysroot}" >&6; }
  6443. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6444. ;;
  6445. esac
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6447. $as_echo "${lt_sysroot:-no}" >&6; }
  6448. # Check whether --enable-libtool-lock was given.
  6449. if test "${enable_libtool_lock+set}" = set; then :
  6450. enableval=$enable_libtool_lock;
  6451. fi
  6452. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6453. # Some flags need to be propagated to the compiler or linker for good
  6454. # libtool support.
  6455. case $host in
  6456. ia64-*-hpux*)
  6457. # Find out which ABI we are using.
  6458. echo 'int i;' > conftest.$ac_ext
  6459. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6460. (eval $ac_compile) 2>&5
  6461. ac_status=$?
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6463. test $ac_status = 0; }; then
  6464. case `/usr/bin/file conftest.$ac_objext` in
  6465. *ELF-32*)
  6466. HPUX_IA64_MODE="32"
  6467. ;;
  6468. *ELF-64*)
  6469. HPUX_IA64_MODE="64"
  6470. ;;
  6471. esac
  6472. fi
  6473. rm -rf conftest*
  6474. ;;
  6475. *-*-irix6*)
  6476. # Find out which ABI we are using.
  6477. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6479. (eval $ac_compile) 2>&5
  6480. ac_status=$?
  6481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6482. test $ac_status = 0; }; then
  6483. if test "$lt_cv_prog_gnu_ld" = yes; then
  6484. case `/usr/bin/file conftest.$ac_objext` in
  6485. *32-bit*)
  6486. LD="${LD-ld} -melf32bsmip"
  6487. ;;
  6488. *N32*)
  6489. LD="${LD-ld} -melf32bmipn32"
  6490. ;;
  6491. *64-bit*)
  6492. LD="${LD-ld} -melf64bmip"
  6493. ;;
  6494. esac
  6495. else
  6496. case `/usr/bin/file conftest.$ac_objext` in
  6497. *32-bit*)
  6498. LD="${LD-ld} -32"
  6499. ;;
  6500. *N32*)
  6501. LD="${LD-ld} -n32"
  6502. ;;
  6503. *64-bit*)
  6504. LD="${LD-ld} -64"
  6505. ;;
  6506. esac
  6507. fi
  6508. fi
  6509. rm -rf conftest*
  6510. ;;
  6511. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6512. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6513. # Find out which ABI we are using.
  6514. echo 'int i;' > conftest.$ac_ext
  6515. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6516. (eval $ac_compile) 2>&5
  6517. ac_status=$?
  6518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6519. test $ac_status = 0; }; then
  6520. case `/usr/bin/file conftest.o` in
  6521. *32-bit*)
  6522. case $host in
  6523. x86_64-*kfreebsd*-gnu)
  6524. LD="${LD-ld} -m elf_i386_fbsd"
  6525. ;;
  6526. x86_64-*linux*)
  6527. LD="${LD-ld} -m elf_i386"
  6528. ;;
  6529. ppc64-*linux*|powerpc64-*linux*)
  6530. LD="${LD-ld} -m elf32ppclinux"
  6531. ;;
  6532. s390x-*linux*)
  6533. LD="${LD-ld} -m elf_s390"
  6534. ;;
  6535. sparc64-*linux*)
  6536. LD="${LD-ld} -m elf32_sparc"
  6537. ;;
  6538. esac
  6539. ;;
  6540. *64-bit*)
  6541. case $host in
  6542. x86_64-*kfreebsd*-gnu)
  6543. LD="${LD-ld} -m elf_x86_64_fbsd"
  6544. ;;
  6545. x86_64-*linux*)
  6546. LD="${LD-ld} -m elf_x86_64"
  6547. ;;
  6548. ppc*-*linux*|powerpc*-*linux*)
  6549. LD="${LD-ld} -m elf64ppc"
  6550. ;;
  6551. s390*-*linux*|s390*-*tpf*)
  6552. LD="${LD-ld} -m elf64_s390"
  6553. ;;
  6554. sparc*-*linux*)
  6555. LD="${LD-ld} -m elf64_sparc"
  6556. ;;
  6557. esac
  6558. ;;
  6559. esac
  6560. fi
  6561. rm -rf conftest*
  6562. ;;
  6563. *-*-sco3.2v5*)
  6564. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6565. SAVE_CFLAGS="$CFLAGS"
  6566. CFLAGS="$CFLAGS -belf"
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6568. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6569. if ${lt_cv_cc_needs_belf+:} false; then :
  6570. $as_echo_n "(cached) " >&6
  6571. else
  6572. ac_ext=c
  6573. ac_cpp='$CPP $CPPFLAGS'
  6574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6578. /* end confdefs.h. */
  6579. int
  6580. main ()
  6581. {
  6582. ;
  6583. return 0;
  6584. }
  6585. _ACEOF
  6586. if ac_fn_c_try_link "$LINENO"; then :
  6587. lt_cv_cc_needs_belf=yes
  6588. else
  6589. lt_cv_cc_needs_belf=no
  6590. fi
  6591. rm -f core conftest.err conftest.$ac_objext \
  6592. conftest$ac_exeext conftest.$ac_ext
  6593. ac_ext=c
  6594. ac_cpp='$CPP $CPPFLAGS'
  6595. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6596. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6597. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6598. fi
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6600. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6601. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6602. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6603. CFLAGS="$SAVE_CFLAGS"
  6604. fi
  6605. ;;
  6606. *-*solaris*)
  6607. # Find out which ABI we are using.
  6608. echo 'int i;' > conftest.$ac_ext
  6609. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6610. (eval $ac_compile) 2>&5
  6611. ac_status=$?
  6612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6613. test $ac_status = 0; }; then
  6614. case `/usr/bin/file conftest.o` in
  6615. *64-bit*)
  6616. case $lt_cv_prog_gnu_ld in
  6617. yes*)
  6618. case $host in
  6619. i?86-*-solaris*)
  6620. LD="${LD-ld} -m elf_x86_64"
  6621. ;;
  6622. sparc*-*-solaris*)
  6623. LD="${LD-ld} -m elf64_sparc"
  6624. ;;
  6625. esac
  6626. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6627. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6628. LD="${LD-ld}_sol2"
  6629. fi
  6630. ;;
  6631. *)
  6632. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6633. LD="${LD-ld} -64"
  6634. fi
  6635. ;;
  6636. esac
  6637. ;;
  6638. esac
  6639. fi
  6640. rm -rf conftest*
  6641. ;;
  6642. esac
  6643. need_locks="$enable_libtool_lock"
  6644. if test -n "$ac_tool_prefix"; then
  6645. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6646. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6648. $as_echo_n "checking for $ac_word... " >&6; }
  6649. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. if test -n "$MANIFEST_TOOL"; then
  6653. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6654. else
  6655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6656. for as_dir in $PATH
  6657. do
  6658. IFS=$as_save_IFS
  6659. test -z "$as_dir" && as_dir=.
  6660. for ac_exec_ext in '' $ac_executable_extensions; do
  6661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6662. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6664. break 2
  6665. fi
  6666. done
  6667. done
  6668. IFS=$as_save_IFS
  6669. fi
  6670. fi
  6671. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6672. if test -n "$MANIFEST_TOOL"; then
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6674. $as_echo "$MANIFEST_TOOL" >&6; }
  6675. else
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6677. $as_echo "no" >&6; }
  6678. fi
  6679. fi
  6680. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6681. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6682. # Extract the first word of "mt", so it can be a program name with args.
  6683. set dummy mt; ac_word=$2
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6685. $as_echo_n "checking for $ac_word... " >&6; }
  6686. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6690. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6691. else
  6692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6693. for as_dir in $PATH
  6694. do
  6695. IFS=$as_save_IFS
  6696. test -z "$as_dir" && as_dir=.
  6697. for ac_exec_ext in '' $ac_executable_extensions; do
  6698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6699. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6701. break 2
  6702. fi
  6703. done
  6704. done
  6705. IFS=$as_save_IFS
  6706. fi
  6707. fi
  6708. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6709. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6711. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6714. $as_echo "no" >&6; }
  6715. fi
  6716. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6717. MANIFEST_TOOL=":"
  6718. else
  6719. case $cross_compiling:$ac_tool_warned in
  6720. yes:)
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6722. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6723. ac_tool_warned=yes ;;
  6724. esac
  6725. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6726. fi
  6727. else
  6728. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6729. fi
  6730. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6732. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6733. if ${lt_cv_path_mainfest_tool+:} false; then :
  6734. $as_echo_n "(cached) " >&6
  6735. else
  6736. lt_cv_path_mainfest_tool=no
  6737. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6738. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6739. cat conftest.err >&5
  6740. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6741. lt_cv_path_mainfest_tool=yes
  6742. fi
  6743. rm -f conftest*
  6744. fi
  6745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6746. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6747. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6748. MANIFEST_TOOL=:
  6749. fi
  6750. case $host_os in
  6751. rhapsody* | darwin*)
  6752. if test -n "$ac_tool_prefix"; then
  6753. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6754. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6756. $as_echo_n "checking for $ac_word... " >&6; }
  6757. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6758. $as_echo_n "(cached) " >&6
  6759. else
  6760. if test -n "$DSYMUTIL"; then
  6761. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6762. else
  6763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6764. for as_dir in $PATH
  6765. do
  6766. IFS=$as_save_IFS
  6767. test -z "$as_dir" && as_dir=.
  6768. for ac_exec_ext in '' $ac_executable_extensions; do
  6769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6770. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6772. break 2
  6773. fi
  6774. done
  6775. done
  6776. IFS=$as_save_IFS
  6777. fi
  6778. fi
  6779. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6780. if test -n "$DSYMUTIL"; then
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6782. $as_echo "$DSYMUTIL" >&6; }
  6783. else
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6785. $as_echo "no" >&6; }
  6786. fi
  6787. fi
  6788. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6789. ac_ct_DSYMUTIL=$DSYMUTIL
  6790. # Extract the first word of "dsymutil", so it can be a program name with args.
  6791. set dummy dsymutil; ac_word=$2
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6793. $as_echo_n "checking for $ac_word... " >&6; }
  6794. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6795. $as_echo_n "(cached) " >&6
  6796. else
  6797. if test -n "$ac_ct_DSYMUTIL"; then
  6798. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6799. else
  6800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6801. for as_dir in $PATH
  6802. do
  6803. IFS=$as_save_IFS
  6804. test -z "$as_dir" && as_dir=.
  6805. for ac_exec_ext in '' $ac_executable_extensions; do
  6806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6807. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6809. break 2
  6810. fi
  6811. done
  6812. done
  6813. IFS=$as_save_IFS
  6814. fi
  6815. fi
  6816. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6817. if test -n "$ac_ct_DSYMUTIL"; then
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6819. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6820. else
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6822. $as_echo "no" >&6; }
  6823. fi
  6824. if test "x$ac_ct_DSYMUTIL" = x; then
  6825. DSYMUTIL=":"
  6826. else
  6827. case $cross_compiling:$ac_tool_warned in
  6828. yes:)
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6830. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6831. ac_tool_warned=yes ;;
  6832. esac
  6833. DSYMUTIL=$ac_ct_DSYMUTIL
  6834. fi
  6835. else
  6836. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6837. fi
  6838. if test -n "$ac_tool_prefix"; then
  6839. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6840. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6842. $as_echo_n "checking for $ac_word... " >&6; }
  6843. if ${ac_cv_prog_NMEDIT+:} false; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. if test -n "$NMEDIT"; then
  6847. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6848. else
  6849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6850. for as_dir in $PATH
  6851. do
  6852. IFS=$as_save_IFS
  6853. test -z "$as_dir" && as_dir=.
  6854. for ac_exec_ext in '' $ac_executable_extensions; do
  6855. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6856. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6858. break 2
  6859. fi
  6860. done
  6861. done
  6862. IFS=$as_save_IFS
  6863. fi
  6864. fi
  6865. NMEDIT=$ac_cv_prog_NMEDIT
  6866. if test -n "$NMEDIT"; then
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6868. $as_echo "$NMEDIT" >&6; }
  6869. else
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6871. $as_echo "no" >&6; }
  6872. fi
  6873. fi
  6874. if test -z "$ac_cv_prog_NMEDIT"; then
  6875. ac_ct_NMEDIT=$NMEDIT
  6876. # Extract the first word of "nmedit", so it can be a program name with args.
  6877. set dummy nmedit; ac_word=$2
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6879. $as_echo_n "checking for $ac_word... " >&6; }
  6880. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. if test -n "$ac_ct_NMEDIT"; then
  6884. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6885. else
  6886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6887. for as_dir in $PATH
  6888. do
  6889. IFS=$as_save_IFS
  6890. test -z "$as_dir" && as_dir=.
  6891. for ac_exec_ext in '' $ac_executable_extensions; do
  6892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6893. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6895. break 2
  6896. fi
  6897. done
  6898. done
  6899. IFS=$as_save_IFS
  6900. fi
  6901. fi
  6902. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6903. if test -n "$ac_ct_NMEDIT"; then
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6905. $as_echo "$ac_ct_NMEDIT" >&6; }
  6906. else
  6907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6908. $as_echo "no" >&6; }
  6909. fi
  6910. if test "x$ac_ct_NMEDIT" = x; then
  6911. NMEDIT=":"
  6912. else
  6913. case $cross_compiling:$ac_tool_warned in
  6914. yes:)
  6915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6917. ac_tool_warned=yes ;;
  6918. esac
  6919. NMEDIT=$ac_ct_NMEDIT
  6920. fi
  6921. else
  6922. NMEDIT="$ac_cv_prog_NMEDIT"
  6923. fi
  6924. if test -n "$ac_tool_prefix"; then
  6925. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6926. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6928. $as_echo_n "checking for $ac_word... " >&6; }
  6929. if ${ac_cv_prog_LIPO+:} false; then :
  6930. $as_echo_n "(cached) " >&6
  6931. else
  6932. if test -n "$LIPO"; then
  6933. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6934. else
  6935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6936. for as_dir in $PATH
  6937. do
  6938. IFS=$as_save_IFS
  6939. test -z "$as_dir" && as_dir=.
  6940. for ac_exec_ext in '' $ac_executable_extensions; do
  6941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6942. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6944. break 2
  6945. fi
  6946. done
  6947. done
  6948. IFS=$as_save_IFS
  6949. fi
  6950. fi
  6951. LIPO=$ac_cv_prog_LIPO
  6952. if test -n "$LIPO"; then
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6954. $as_echo "$LIPO" >&6; }
  6955. else
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6957. $as_echo "no" >&6; }
  6958. fi
  6959. fi
  6960. if test -z "$ac_cv_prog_LIPO"; then
  6961. ac_ct_LIPO=$LIPO
  6962. # Extract the first word of "lipo", so it can be a program name with args.
  6963. set dummy lipo; ac_word=$2
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6965. $as_echo_n "checking for $ac_word... " >&6; }
  6966. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6967. $as_echo_n "(cached) " >&6
  6968. else
  6969. if test -n "$ac_ct_LIPO"; then
  6970. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6971. else
  6972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6973. for as_dir in $PATH
  6974. do
  6975. IFS=$as_save_IFS
  6976. test -z "$as_dir" && as_dir=.
  6977. for ac_exec_ext in '' $ac_executable_extensions; do
  6978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6979. ac_cv_prog_ac_ct_LIPO="lipo"
  6980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6981. break 2
  6982. fi
  6983. done
  6984. done
  6985. IFS=$as_save_IFS
  6986. fi
  6987. fi
  6988. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6989. if test -n "$ac_ct_LIPO"; then
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6991. $as_echo "$ac_ct_LIPO" >&6; }
  6992. else
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6994. $as_echo "no" >&6; }
  6995. fi
  6996. if test "x$ac_ct_LIPO" = x; then
  6997. LIPO=":"
  6998. else
  6999. case $cross_compiling:$ac_tool_warned in
  7000. yes:)
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7003. ac_tool_warned=yes ;;
  7004. esac
  7005. LIPO=$ac_ct_LIPO
  7006. fi
  7007. else
  7008. LIPO="$ac_cv_prog_LIPO"
  7009. fi
  7010. if test -n "$ac_tool_prefix"; then
  7011. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7012. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7014. $as_echo_n "checking for $ac_word... " >&6; }
  7015. if ${ac_cv_prog_OTOOL+:} false; then :
  7016. $as_echo_n "(cached) " >&6
  7017. else
  7018. if test -n "$OTOOL"; then
  7019. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7020. else
  7021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7022. for as_dir in $PATH
  7023. do
  7024. IFS=$as_save_IFS
  7025. test -z "$as_dir" && as_dir=.
  7026. for ac_exec_ext in '' $ac_executable_extensions; do
  7027. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7028. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7030. break 2
  7031. fi
  7032. done
  7033. done
  7034. IFS=$as_save_IFS
  7035. fi
  7036. fi
  7037. OTOOL=$ac_cv_prog_OTOOL
  7038. if test -n "$OTOOL"; then
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7040. $as_echo "$OTOOL" >&6; }
  7041. else
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7043. $as_echo "no" >&6; }
  7044. fi
  7045. fi
  7046. if test -z "$ac_cv_prog_OTOOL"; then
  7047. ac_ct_OTOOL=$OTOOL
  7048. # Extract the first word of "otool", so it can be a program name with args.
  7049. set dummy otool; ac_word=$2
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7051. $as_echo_n "checking for $ac_word... " >&6; }
  7052. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7053. $as_echo_n "(cached) " >&6
  7054. else
  7055. if test -n "$ac_ct_OTOOL"; then
  7056. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7057. else
  7058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7059. for as_dir in $PATH
  7060. do
  7061. IFS=$as_save_IFS
  7062. test -z "$as_dir" && as_dir=.
  7063. for ac_exec_ext in '' $ac_executable_extensions; do
  7064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7065. ac_cv_prog_ac_ct_OTOOL="otool"
  7066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7067. break 2
  7068. fi
  7069. done
  7070. done
  7071. IFS=$as_save_IFS
  7072. fi
  7073. fi
  7074. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7075. if test -n "$ac_ct_OTOOL"; then
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7077. $as_echo "$ac_ct_OTOOL" >&6; }
  7078. else
  7079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7080. $as_echo "no" >&6; }
  7081. fi
  7082. if test "x$ac_ct_OTOOL" = x; then
  7083. OTOOL=":"
  7084. else
  7085. case $cross_compiling:$ac_tool_warned in
  7086. yes:)
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7089. ac_tool_warned=yes ;;
  7090. esac
  7091. OTOOL=$ac_ct_OTOOL
  7092. fi
  7093. else
  7094. OTOOL="$ac_cv_prog_OTOOL"
  7095. fi
  7096. if test -n "$ac_tool_prefix"; then
  7097. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7098. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7100. $as_echo_n "checking for $ac_word... " >&6; }
  7101. if ${ac_cv_prog_OTOOL64+:} false; then :
  7102. $as_echo_n "(cached) " >&6
  7103. else
  7104. if test -n "$OTOOL64"; then
  7105. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7106. else
  7107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7108. for as_dir in $PATH
  7109. do
  7110. IFS=$as_save_IFS
  7111. test -z "$as_dir" && as_dir=.
  7112. for ac_exec_ext in '' $ac_executable_extensions; do
  7113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7114. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7116. break 2
  7117. fi
  7118. done
  7119. done
  7120. IFS=$as_save_IFS
  7121. fi
  7122. fi
  7123. OTOOL64=$ac_cv_prog_OTOOL64
  7124. if test -n "$OTOOL64"; then
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7126. $as_echo "$OTOOL64" >&6; }
  7127. else
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7129. $as_echo "no" >&6; }
  7130. fi
  7131. fi
  7132. if test -z "$ac_cv_prog_OTOOL64"; then
  7133. ac_ct_OTOOL64=$OTOOL64
  7134. # Extract the first word of "otool64", so it can be a program name with args.
  7135. set dummy otool64; ac_word=$2
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7137. $as_echo_n "checking for $ac_word... " >&6; }
  7138. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7139. $as_echo_n "(cached) " >&6
  7140. else
  7141. if test -n "$ac_ct_OTOOL64"; then
  7142. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7143. else
  7144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7145. for as_dir in $PATH
  7146. do
  7147. IFS=$as_save_IFS
  7148. test -z "$as_dir" && as_dir=.
  7149. for ac_exec_ext in '' $ac_executable_extensions; do
  7150. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7151. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7153. break 2
  7154. fi
  7155. done
  7156. done
  7157. IFS=$as_save_IFS
  7158. fi
  7159. fi
  7160. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7161. if test -n "$ac_ct_OTOOL64"; then
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7163. $as_echo "$ac_ct_OTOOL64" >&6; }
  7164. else
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7166. $as_echo "no" >&6; }
  7167. fi
  7168. if test "x$ac_ct_OTOOL64" = x; then
  7169. OTOOL64=":"
  7170. else
  7171. case $cross_compiling:$ac_tool_warned in
  7172. yes:)
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7174. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7175. ac_tool_warned=yes ;;
  7176. esac
  7177. OTOOL64=$ac_ct_OTOOL64
  7178. fi
  7179. else
  7180. OTOOL64="$ac_cv_prog_OTOOL64"
  7181. fi
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7183. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7184. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7185. $as_echo_n "(cached) " >&6
  7186. else
  7187. lt_cv_apple_cc_single_mod=no
  7188. if test -z "${LT_MULTI_MODULE}"; then
  7189. # By default we will add the -single_module flag. You can override
  7190. # by either setting the environment variable LT_MULTI_MODULE
  7191. # non-empty at configure time, or by adding -multi_module to the
  7192. # link flags.
  7193. rm -rf libconftest.dylib*
  7194. echo "int foo(void){return 1;}" > conftest.c
  7195. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7196. -dynamiclib -Wl,-single_module conftest.c" >&5
  7197. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7198. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7199. _lt_result=$?
  7200. # If there is a non-empty error log, and "single_module"
  7201. # appears in it, assume the flag caused a linker warning
  7202. if test -s conftest.err && $GREP single_module conftest.err; then
  7203. cat conftest.err >&5
  7204. # Otherwise, if the output was created with a 0 exit code from
  7205. # the compiler, it worked.
  7206. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7207. lt_cv_apple_cc_single_mod=yes
  7208. else
  7209. cat conftest.err >&5
  7210. fi
  7211. rm -rf libconftest.dylib*
  7212. rm -f conftest.*
  7213. fi
  7214. fi
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7216. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7218. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7219. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. lt_cv_ld_exported_symbols_list=no
  7223. save_LDFLAGS=$LDFLAGS
  7224. echo "_main" > conftest.sym
  7225. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7227. /* end confdefs.h. */
  7228. int
  7229. main ()
  7230. {
  7231. ;
  7232. return 0;
  7233. }
  7234. _ACEOF
  7235. if ac_fn_c_try_link "$LINENO"; then :
  7236. lt_cv_ld_exported_symbols_list=yes
  7237. else
  7238. lt_cv_ld_exported_symbols_list=no
  7239. fi
  7240. rm -f core conftest.err conftest.$ac_objext \
  7241. conftest$ac_exeext conftest.$ac_ext
  7242. LDFLAGS="$save_LDFLAGS"
  7243. fi
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7245. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7247. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7248. if ${lt_cv_ld_force_load+:} false; then :
  7249. $as_echo_n "(cached) " >&6
  7250. else
  7251. lt_cv_ld_force_load=no
  7252. cat > conftest.c << _LT_EOF
  7253. int forced_loaded() { return 2;}
  7254. _LT_EOF
  7255. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7256. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7257. echo "$AR cru libconftest.a conftest.o" >&5
  7258. $AR cru libconftest.a conftest.o 2>&5
  7259. echo "$RANLIB libconftest.a" >&5
  7260. $RANLIB libconftest.a 2>&5
  7261. cat > conftest.c << _LT_EOF
  7262. int main() { return 0;}
  7263. _LT_EOF
  7264. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7265. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7266. _lt_result=$?
  7267. if test -s conftest.err && $GREP force_load conftest.err; then
  7268. cat conftest.err >&5
  7269. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7270. lt_cv_ld_force_load=yes
  7271. else
  7272. cat conftest.err >&5
  7273. fi
  7274. rm -f conftest.err libconftest.a conftest conftest.c
  7275. rm -rf conftest.dSYM
  7276. fi
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7278. $as_echo "$lt_cv_ld_force_load" >&6; }
  7279. case $host_os in
  7280. rhapsody* | darwin1.[012])
  7281. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7282. darwin1.*)
  7283. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7284. darwin*) # darwin 5.x on
  7285. # if running on 10.5 or later, the deployment target defaults
  7286. # to the OS version, if on x86, and 10.4, the deployment
  7287. # target defaults to 10.4. Don't you love it?
  7288. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7289. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7290. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7291. 10.[012]*)
  7292. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7293. 10.*)
  7294. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7295. esac
  7296. ;;
  7297. esac
  7298. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7299. _lt_dar_single_mod='$single_module'
  7300. fi
  7301. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7302. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7303. else
  7304. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7305. fi
  7306. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7307. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7308. else
  7309. _lt_dsymutil=
  7310. fi
  7311. ;;
  7312. esac
  7313. ac_ext=c
  7314. ac_cpp='$CPP $CPPFLAGS'
  7315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7319. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7320. # On Suns, sometimes $CPP names a directory.
  7321. if test -n "$CPP" && test -d "$CPP"; then
  7322. CPP=
  7323. fi
  7324. if test -z "$CPP"; then
  7325. if ${ac_cv_prog_CPP+:} false; then :
  7326. $as_echo_n "(cached) " >&6
  7327. else
  7328. # Double quotes because CPP needs to be expanded
  7329. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7330. do
  7331. ac_preproc_ok=false
  7332. for ac_c_preproc_warn_flag in '' yes
  7333. do
  7334. # Use a header file that comes with gcc, so configuring glibc
  7335. # with a fresh cross-compiler works.
  7336. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7337. # <limits.h> exists even on freestanding compilers.
  7338. # On the NeXT, cc -E runs the code through the compiler's parser,
  7339. # not just through cpp. "Syntax error" is here to catch this case.
  7340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7341. /* end confdefs.h. */
  7342. #ifdef __STDC__
  7343. # include <limits.h>
  7344. #else
  7345. # include <assert.h>
  7346. #endif
  7347. Syntax error
  7348. _ACEOF
  7349. if ac_fn_c_try_cpp "$LINENO"; then :
  7350. else
  7351. # Broken: fails on valid input.
  7352. continue
  7353. fi
  7354. rm -f conftest.err conftest.i conftest.$ac_ext
  7355. # OK, works on sane cases. Now check whether nonexistent headers
  7356. # can be detected and how.
  7357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7358. /* end confdefs.h. */
  7359. #include <ac_nonexistent.h>
  7360. _ACEOF
  7361. if ac_fn_c_try_cpp "$LINENO"; then :
  7362. # Broken: success on invalid input.
  7363. continue
  7364. else
  7365. # Passes both tests.
  7366. ac_preproc_ok=:
  7367. break
  7368. fi
  7369. rm -f conftest.err conftest.i conftest.$ac_ext
  7370. done
  7371. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7372. rm -f conftest.i conftest.err conftest.$ac_ext
  7373. if $ac_preproc_ok; then :
  7374. break
  7375. fi
  7376. done
  7377. ac_cv_prog_CPP=$CPP
  7378. fi
  7379. CPP=$ac_cv_prog_CPP
  7380. else
  7381. ac_cv_prog_CPP=$CPP
  7382. fi
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7384. $as_echo "$CPP" >&6; }
  7385. ac_preproc_ok=false
  7386. for ac_c_preproc_warn_flag in '' yes
  7387. do
  7388. # Use a header file that comes with gcc, so configuring glibc
  7389. # with a fresh cross-compiler works.
  7390. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7391. # <limits.h> exists even on freestanding compilers.
  7392. # On the NeXT, cc -E runs the code through the compiler's parser,
  7393. # not just through cpp. "Syntax error" is here to catch this case.
  7394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7395. /* end confdefs.h. */
  7396. #ifdef __STDC__
  7397. # include <limits.h>
  7398. #else
  7399. # include <assert.h>
  7400. #endif
  7401. Syntax error
  7402. _ACEOF
  7403. if ac_fn_c_try_cpp "$LINENO"; then :
  7404. else
  7405. # Broken: fails on valid input.
  7406. continue
  7407. fi
  7408. rm -f conftest.err conftest.i conftest.$ac_ext
  7409. # OK, works on sane cases. Now check whether nonexistent headers
  7410. # can be detected and how.
  7411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7412. /* end confdefs.h. */
  7413. #include <ac_nonexistent.h>
  7414. _ACEOF
  7415. if ac_fn_c_try_cpp "$LINENO"; then :
  7416. # Broken: success on invalid input.
  7417. continue
  7418. else
  7419. # Passes both tests.
  7420. ac_preproc_ok=:
  7421. break
  7422. fi
  7423. rm -f conftest.err conftest.i conftest.$ac_ext
  7424. done
  7425. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7426. rm -f conftest.i conftest.err conftest.$ac_ext
  7427. if $ac_preproc_ok; then :
  7428. else
  7429. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7431. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7432. See \`config.log' for more details" "$LINENO" 5; }
  7433. fi
  7434. ac_ext=c
  7435. ac_cpp='$CPP $CPPFLAGS'
  7436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7440. $as_echo_n "checking for ANSI C header files... " >&6; }
  7441. if ${ac_cv_header_stdc+:} false; then :
  7442. $as_echo_n "(cached) " >&6
  7443. else
  7444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7445. /* end confdefs.h. */
  7446. #include <stdlib.h>
  7447. #include <stdarg.h>
  7448. #include <string.h>
  7449. #include <float.h>
  7450. int
  7451. main ()
  7452. {
  7453. ;
  7454. return 0;
  7455. }
  7456. _ACEOF
  7457. if ac_fn_c_try_compile "$LINENO"; then :
  7458. ac_cv_header_stdc=yes
  7459. else
  7460. ac_cv_header_stdc=no
  7461. fi
  7462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7463. if test $ac_cv_header_stdc = yes; then
  7464. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7466. /* end confdefs.h. */
  7467. #include <string.h>
  7468. _ACEOF
  7469. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7470. $EGREP "memchr" >/dev/null 2>&1; then :
  7471. else
  7472. ac_cv_header_stdc=no
  7473. fi
  7474. rm -f conftest*
  7475. fi
  7476. if test $ac_cv_header_stdc = yes; then
  7477. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7479. /* end confdefs.h. */
  7480. #include <stdlib.h>
  7481. _ACEOF
  7482. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7483. $EGREP "free" >/dev/null 2>&1; then :
  7484. else
  7485. ac_cv_header_stdc=no
  7486. fi
  7487. rm -f conftest*
  7488. fi
  7489. if test $ac_cv_header_stdc = yes; then
  7490. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7491. if test "$cross_compiling" = yes; then :
  7492. :
  7493. else
  7494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7495. /* end confdefs.h. */
  7496. #include <ctype.h>
  7497. #include <stdlib.h>
  7498. #if ((' ' & 0x0FF) == 0x020)
  7499. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7500. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7501. #else
  7502. # define ISLOWER(c) \
  7503. (('a' <= (c) && (c) <= 'i') \
  7504. || ('j' <= (c) && (c) <= 'r') \
  7505. || ('s' <= (c) && (c) <= 'z'))
  7506. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7507. #endif
  7508. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7509. int
  7510. main ()
  7511. {
  7512. int i;
  7513. for (i = 0; i < 256; i++)
  7514. if (XOR (islower (i), ISLOWER (i))
  7515. || toupper (i) != TOUPPER (i))
  7516. return 2;
  7517. return 0;
  7518. }
  7519. _ACEOF
  7520. if ac_fn_c_try_run "$LINENO"; then :
  7521. else
  7522. ac_cv_header_stdc=no
  7523. fi
  7524. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7525. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7526. fi
  7527. fi
  7528. fi
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7530. $as_echo "$ac_cv_header_stdc" >&6; }
  7531. if test $ac_cv_header_stdc = yes; then
  7532. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7533. fi
  7534. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7535. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7536. inttypes.h stdint.h unistd.h
  7537. do :
  7538. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7539. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7540. "
  7541. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7542. cat >>confdefs.h <<_ACEOF
  7543. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7544. _ACEOF
  7545. fi
  7546. done
  7547. for ac_header in dlfcn.h
  7548. do :
  7549. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7550. "
  7551. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7552. cat >>confdefs.h <<_ACEOF
  7553. #define HAVE_DLFCN_H 1
  7554. _ACEOF
  7555. fi
  7556. done
  7557. func_stripname_cnf ()
  7558. {
  7559. case ${2} in
  7560. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7561. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7562. esac
  7563. } # func_stripname_cnf
  7564. # Set options
  7565. enable_dlopen=no
  7566. enable_win32_dll=no
  7567. # Check whether --enable-shared was given.
  7568. if test "${enable_shared+set}" = set; then :
  7569. enableval=$enable_shared; p=${PACKAGE-default}
  7570. case $enableval in
  7571. yes) enable_shared=yes ;;
  7572. no) enable_shared=no ;;
  7573. *)
  7574. enable_shared=no
  7575. # Look at the argument we got. We use all the common list separators.
  7576. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7577. for pkg in $enableval; do
  7578. IFS="$lt_save_ifs"
  7579. if test "X$pkg" = "X$p"; then
  7580. enable_shared=yes
  7581. fi
  7582. done
  7583. IFS="$lt_save_ifs"
  7584. ;;
  7585. esac
  7586. else
  7587. enable_shared=yes
  7588. fi
  7589. # Check whether --with-pic was given.
  7590. if test "${with_pic+set}" = set; then :
  7591. withval=$with_pic; lt_p=${PACKAGE-default}
  7592. case $withval in
  7593. yes|no) pic_mode=$withval ;;
  7594. *)
  7595. pic_mode=default
  7596. # Look at the argument we got. We use all the common list separators.
  7597. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7598. for lt_pkg in $withval; do
  7599. IFS="$lt_save_ifs"
  7600. if test "X$lt_pkg" = "X$lt_p"; then
  7601. pic_mode=yes
  7602. fi
  7603. done
  7604. IFS="$lt_save_ifs"
  7605. ;;
  7606. esac
  7607. else
  7608. pic_mode=default
  7609. fi
  7610. test -z "$pic_mode" && pic_mode=default
  7611. # Check whether --enable-fast-install was given.
  7612. if test "${enable_fast_install+set}" = set; then :
  7613. enableval=$enable_fast_install; p=${PACKAGE-default}
  7614. case $enableval in
  7615. yes) enable_fast_install=yes ;;
  7616. no) enable_fast_install=no ;;
  7617. *)
  7618. enable_fast_install=no
  7619. # Look at the argument we got. We use all the common list separators.
  7620. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7621. for pkg in $enableval; do
  7622. IFS="$lt_save_ifs"
  7623. if test "X$pkg" = "X$p"; then
  7624. enable_fast_install=yes
  7625. fi
  7626. done
  7627. IFS="$lt_save_ifs"
  7628. ;;
  7629. esac
  7630. else
  7631. enable_fast_install=yes
  7632. fi
  7633. # This can be used to rebuild libtool when needed
  7634. LIBTOOL_DEPS="$ltmain"
  7635. # Always use our own libtool.
  7636. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7637. test -z "$LN_S" && LN_S="ln -s"
  7638. if test -n "${ZSH_VERSION+set}" ; then
  7639. setopt NO_GLOB_SUBST
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7642. $as_echo_n "checking for objdir... " >&6; }
  7643. if ${lt_cv_objdir+:} false; then :
  7644. $as_echo_n "(cached) " >&6
  7645. else
  7646. rm -f .libs 2>/dev/null
  7647. mkdir .libs 2>/dev/null
  7648. if test -d .libs; then
  7649. lt_cv_objdir=.libs
  7650. else
  7651. # MS-DOS does not allow filenames that begin with a dot.
  7652. lt_cv_objdir=_libs
  7653. fi
  7654. rmdir .libs 2>/dev/null
  7655. fi
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7657. $as_echo "$lt_cv_objdir" >&6; }
  7658. objdir=$lt_cv_objdir
  7659. cat >>confdefs.h <<_ACEOF
  7660. #define LT_OBJDIR "$lt_cv_objdir/"
  7661. _ACEOF
  7662. case $host_os in
  7663. aix3*)
  7664. # AIX sometimes has problems with the GCC collect2 program. For some
  7665. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7666. # vanish in a puff of smoke.
  7667. if test "X${COLLECT_NAMES+set}" != Xset; then
  7668. COLLECT_NAMES=
  7669. export COLLECT_NAMES
  7670. fi
  7671. ;;
  7672. esac
  7673. # Global variables:
  7674. ofile=libtool
  7675. can_build_shared=yes
  7676. # All known linkers require a `.a' archive for static linking (except MSVC,
  7677. # which needs '.lib').
  7678. libext=a
  7679. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7680. old_CC="$CC"
  7681. old_CFLAGS="$CFLAGS"
  7682. # Set sane defaults for various variables
  7683. test -z "$CC" && CC=cc
  7684. test -z "$LTCC" && LTCC=$CC
  7685. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7686. test -z "$LD" && LD=ld
  7687. test -z "$ac_objext" && ac_objext=o
  7688. for cc_temp in $compiler""; do
  7689. case $cc_temp in
  7690. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7691. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7692. \-*) ;;
  7693. *) break;;
  7694. esac
  7695. done
  7696. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7697. # Only perform the check for file, if the check method requires it
  7698. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7699. case $deplibs_check_method in
  7700. file_magic*)
  7701. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7703. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7704. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7705. $as_echo_n "(cached) " >&6
  7706. else
  7707. case $MAGIC_CMD in
  7708. [\\/*] | ?:[\\/]*)
  7709. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7710. ;;
  7711. *)
  7712. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7714. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7715. for ac_dir in $ac_dummy; do
  7716. IFS="$lt_save_ifs"
  7717. test -z "$ac_dir" && ac_dir=.
  7718. if test -f $ac_dir/${ac_tool_prefix}file; then
  7719. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7720. if test -n "$file_magic_test_file"; then
  7721. case $deplibs_check_method in
  7722. "file_magic "*)
  7723. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7724. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7725. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7726. $EGREP "$file_magic_regex" > /dev/null; then
  7727. :
  7728. else
  7729. cat <<_LT_EOF 1>&2
  7730. *** Warning: the command libtool uses to detect shared libraries,
  7731. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7732. *** The result is that libtool may fail to recognize shared libraries
  7733. *** as such. This will affect the creation of libtool libraries that
  7734. *** depend on shared libraries, but programs linked with such libtool
  7735. *** libraries will work regardless of this problem. Nevertheless, you
  7736. *** may want to report the problem to your system manager and/or to
  7737. *** [email protected]
  7738. _LT_EOF
  7739. fi ;;
  7740. esac
  7741. fi
  7742. break
  7743. fi
  7744. done
  7745. IFS="$lt_save_ifs"
  7746. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7747. ;;
  7748. esac
  7749. fi
  7750. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7751. if test -n "$MAGIC_CMD"; then
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7753. $as_echo "$MAGIC_CMD" >&6; }
  7754. else
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7756. $as_echo "no" >&6; }
  7757. fi
  7758. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7759. if test -n "$ac_tool_prefix"; then
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7761. $as_echo_n "checking for file... " >&6; }
  7762. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. case $MAGIC_CMD in
  7766. [\\/*] | ?:[\\/]*)
  7767. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7768. ;;
  7769. *)
  7770. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7771. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7772. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7773. for ac_dir in $ac_dummy; do
  7774. IFS="$lt_save_ifs"
  7775. test -z "$ac_dir" && ac_dir=.
  7776. if test -f $ac_dir/file; then
  7777. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7778. if test -n "$file_magic_test_file"; then
  7779. case $deplibs_check_method in
  7780. "file_magic "*)
  7781. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7782. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7783. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7784. $EGREP "$file_magic_regex" > /dev/null; then
  7785. :
  7786. else
  7787. cat <<_LT_EOF 1>&2
  7788. *** Warning: the command libtool uses to detect shared libraries,
  7789. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7790. *** The result is that libtool may fail to recognize shared libraries
  7791. *** as such. This will affect the creation of libtool libraries that
  7792. *** depend on shared libraries, but programs linked with such libtool
  7793. *** libraries will work regardless of this problem. Nevertheless, you
  7794. *** may want to report the problem to your system manager and/or to
  7795. *** [email protected]
  7796. _LT_EOF
  7797. fi ;;
  7798. esac
  7799. fi
  7800. break
  7801. fi
  7802. done
  7803. IFS="$lt_save_ifs"
  7804. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7805. ;;
  7806. esac
  7807. fi
  7808. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7809. if test -n "$MAGIC_CMD"; then
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7811. $as_echo "$MAGIC_CMD" >&6; }
  7812. else
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7814. $as_echo "no" >&6; }
  7815. fi
  7816. else
  7817. MAGIC_CMD=:
  7818. fi
  7819. fi
  7820. fi
  7821. ;;
  7822. esac
  7823. # Use C for the default configuration in the libtool script
  7824. lt_save_CC="$CC"
  7825. ac_ext=c
  7826. ac_cpp='$CPP $CPPFLAGS'
  7827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7830. # Source file extension for C test sources.
  7831. ac_ext=c
  7832. # Object file extension for compiled C test sources.
  7833. objext=o
  7834. objext=$objext
  7835. # Code to be used in simple compile tests
  7836. lt_simple_compile_test_code="int some_variable = 0;"
  7837. # Code to be used in simple link tests
  7838. lt_simple_link_test_code='int main(){return(0);}'
  7839. # If no C compiler was specified, use CC.
  7840. LTCC=${LTCC-"$CC"}
  7841. # If no C compiler flags were specified, use CFLAGS.
  7842. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7843. # Allow CC to be a program name with arguments.
  7844. compiler=$CC
  7845. # Save the default compiler, since it gets overwritten when the other
  7846. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7847. compiler_DEFAULT=$CC
  7848. # save warnings/boilerplate of simple test code
  7849. ac_outfile=conftest.$ac_objext
  7850. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7851. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7852. _lt_compiler_boilerplate=`cat conftest.err`
  7853. $RM conftest*
  7854. ac_outfile=conftest.$ac_objext
  7855. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7856. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7857. _lt_linker_boilerplate=`cat conftest.err`
  7858. $RM -r conftest*
  7859. ## CAVEAT EMPTOR:
  7860. ## There is no encapsulation within the following macros, do not change
  7861. ## the running order or otherwise move them around unless you know exactly
  7862. ## what you are doing...
  7863. if test -n "$compiler"; then
  7864. lt_prog_compiler_no_builtin_flag=
  7865. if test "$GCC" = yes; then
  7866. case $cc_basename in
  7867. nvcc*)
  7868. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7869. *)
  7870. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7871. esac
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7873. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7874. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7875. $as_echo_n "(cached) " >&6
  7876. else
  7877. lt_cv_prog_compiler_rtti_exceptions=no
  7878. ac_outfile=conftest.$ac_objext
  7879. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7880. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7881. # Insert the option either (1) after the last *FLAGS variable, or
  7882. # (2) before a word containing "conftest.", or (3) at the end.
  7883. # Note that $ac_compile itself does not contain backslashes and begins
  7884. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7885. # The option is referenced via a variable to avoid confusing sed.
  7886. lt_compile=`echo "$ac_compile" | $SED \
  7887. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7888. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7889. -e 's:$: $lt_compiler_flag:'`
  7890. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7891. (eval "$lt_compile" 2>conftest.err)
  7892. ac_status=$?
  7893. cat conftest.err >&5
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. if (exit $ac_status) && test -s "$ac_outfile"; then
  7896. # The compiler can only warn and ignore the option if not recognized
  7897. # So say no if there are warnings other than the usual output.
  7898. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7899. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7900. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7901. lt_cv_prog_compiler_rtti_exceptions=yes
  7902. fi
  7903. fi
  7904. $RM conftest*
  7905. fi
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7907. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7908. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7909. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7910. else
  7911. :
  7912. fi
  7913. fi
  7914. lt_prog_compiler_wl=
  7915. lt_prog_compiler_pic=
  7916. lt_prog_compiler_static=
  7917. if test "$GCC" = yes; then
  7918. lt_prog_compiler_wl='-Wl,'
  7919. lt_prog_compiler_static='-static'
  7920. case $host_os in
  7921. aix*)
  7922. # All AIX code is PIC.
  7923. if test "$host_cpu" = ia64; then
  7924. # AIX 5 now supports IA64 processor
  7925. lt_prog_compiler_static='-Bstatic'
  7926. fi
  7927. ;;
  7928. amigaos*)
  7929. case $host_cpu in
  7930. powerpc)
  7931. # see comment about AmigaOS4 .so support
  7932. lt_prog_compiler_pic='-fPIC'
  7933. ;;
  7934. m68k)
  7935. # FIXME: we need at least 68020 code to build shared libraries, but
  7936. # adding the `-m68020' flag to GCC prevents building anything better,
  7937. # like `-m68040'.
  7938. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7939. ;;
  7940. esac
  7941. ;;
  7942. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7943. # PIC is the default for these OSes.
  7944. ;;
  7945. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7946. # This hack is so that the source file can tell whether it is being
  7947. # built for inclusion in a dll (and should export symbols for example).
  7948. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7949. # (--disable-auto-import) libraries
  7950. lt_prog_compiler_pic='-DDLL_EXPORT'
  7951. ;;
  7952. darwin* | rhapsody*)
  7953. # PIC is the default on this platform
  7954. # Common symbols not allowed in MH_DYLIB files
  7955. lt_prog_compiler_pic='-fno-common'
  7956. ;;
  7957. haiku*)
  7958. # PIC is the default for Haiku.
  7959. # The "-static" flag exists, but is broken.
  7960. lt_prog_compiler_static=
  7961. ;;
  7962. hpux*)
  7963. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7964. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7965. # sets the default TLS model and affects inlining.
  7966. case $host_cpu in
  7967. hppa*64*)
  7968. # +Z the default
  7969. ;;
  7970. *)
  7971. lt_prog_compiler_pic='-fPIC'
  7972. ;;
  7973. esac
  7974. ;;
  7975. interix[3-9]*)
  7976. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7977. # Instead, we relocate shared libraries at runtime.
  7978. ;;
  7979. msdosdjgpp*)
  7980. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7981. # on systems that don't support them.
  7982. lt_prog_compiler_can_build_shared=no
  7983. enable_shared=no
  7984. ;;
  7985. *nto* | *qnx*)
  7986. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7987. # it will coredump.
  7988. lt_prog_compiler_pic='-fPIC -shared'
  7989. ;;
  7990. sysv4*MP*)
  7991. if test -d /usr/nec; then
  7992. lt_prog_compiler_pic=-Kconform_pic
  7993. fi
  7994. ;;
  7995. *)
  7996. lt_prog_compiler_pic='-fPIC'
  7997. ;;
  7998. esac
  7999. case $cc_basename in
  8000. nvcc*) # Cuda Compiler Driver 2.2
  8001. lt_prog_compiler_wl='-Xlinker '
  8002. if test -n "$lt_prog_compiler_pic"; then
  8003. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8004. fi
  8005. ;;
  8006. esac
  8007. else
  8008. # PORTME Check for flag to pass linker flags through the system compiler.
  8009. case $host_os in
  8010. aix*)
  8011. lt_prog_compiler_wl='-Wl,'
  8012. if test "$host_cpu" = ia64; then
  8013. # AIX 5 now supports IA64 processor
  8014. lt_prog_compiler_static='-Bstatic'
  8015. else
  8016. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8017. fi
  8018. ;;
  8019. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8020. # This hack is so that the source file can tell whether it is being
  8021. # built for inclusion in a dll (and should export symbols for example).
  8022. lt_prog_compiler_pic='-DDLL_EXPORT'
  8023. ;;
  8024. hpux9* | hpux10* | hpux11*)
  8025. lt_prog_compiler_wl='-Wl,'
  8026. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8027. # not for PA HP-UX.
  8028. case $host_cpu in
  8029. hppa*64*|ia64*)
  8030. # +Z the default
  8031. ;;
  8032. *)
  8033. lt_prog_compiler_pic='+Z'
  8034. ;;
  8035. esac
  8036. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8037. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8038. ;;
  8039. irix5* | irix6* | nonstopux*)
  8040. lt_prog_compiler_wl='-Wl,'
  8041. # PIC (with -KPIC) is the default.
  8042. lt_prog_compiler_static='-non_shared'
  8043. ;;
  8044. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8045. case $cc_basename in
  8046. # old Intel for x86_64 which still supported -KPIC.
  8047. ecc*)
  8048. lt_prog_compiler_wl='-Wl,'
  8049. lt_prog_compiler_pic='-KPIC'
  8050. lt_prog_compiler_static='-static'
  8051. ;;
  8052. # icc used to be incompatible with GCC.
  8053. # ICC 10 doesn't accept -KPIC any more.
  8054. icc* | ifort*)
  8055. lt_prog_compiler_wl='-Wl,'
  8056. lt_prog_compiler_pic='-fPIC'
  8057. lt_prog_compiler_static='-static'
  8058. ;;
  8059. # Lahey Fortran 8.1.
  8060. lf95*)
  8061. lt_prog_compiler_wl='-Wl,'
  8062. lt_prog_compiler_pic='--shared'
  8063. lt_prog_compiler_static='--static'
  8064. ;;
  8065. nagfor*)
  8066. # NAG Fortran compiler
  8067. lt_prog_compiler_wl='-Wl,-Wl,,'
  8068. lt_prog_compiler_pic='-PIC'
  8069. lt_prog_compiler_static='-Bstatic'
  8070. ;;
  8071. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8072. # Portland Group compilers (*not* the Pentium gcc compiler,
  8073. # which looks to be a dead project)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. lt_prog_compiler_pic='-fpic'
  8076. lt_prog_compiler_static='-Bstatic'
  8077. ;;
  8078. ccc*)
  8079. lt_prog_compiler_wl='-Wl,'
  8080. # All Alpha code is PIC.
  8081. lt_prog_compiler_static='-non_shared'
  8082. ;;
  8083. xl* | bgxl* | bgf* | mpixl*)
  8084. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8085. lt_prog_compiler_wl='-Wl,'
  8086. lt_prog_compiler_pic='-qpic'
  8087. lt_prog_compiler_static='-qstaticlink'
  8088. ;;
  8089. *)
  8090. case `$CC -V 2>&1 | sed 5q` in
  8091. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8092. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8093. lt_prog_compiler_pic='-KPIC'
  8094. lt_prog_compiler_static='-Bstatic'
  8095. lt_prog_compiler_wl=''
  8096. ;;
  8097. *Sun\ F* | *Sun*Fortran*)
  8098. lt_prog_compiler_pic='-KPIC'
  8099. lt_prog_compiler_static='-Bstatic'
  8100. lt_prog_compiler_wl='-Qoption ld '
  8101. ;;
  8102. *Sun\ C*)
  8103. # Sun C 5.9
  8104. lt_prog_compiler_pic='-KPIC'
  8105. lt_prog_compiler_static='-Bstatic'
  8106. lt_prog_compiler_wl='-Wl,'
  8107. ;;
  8108. *Intel*\ [CF]*Compiler*)
  8109. lt_prog_compiler_wl='-Wl,'
  8110. lt_prog_compiler_pic='-fPIC'
  8111. lt_prog_compiler_static='-static'
  8112. ;;
  8113. *Portland\ Group*)
  8114. lt_prog_compiler_wl='-Wl,'
  8115. lt_prog_compiler_pic='-fpic'
  8116. lt_prog_compiler_static='-Bstatic'
  8117. ;;
  8118. esac
  8119. ;;
  8120. esac
  8121. ;;
  8122. newsos6)
  8123. lt_prog_compiler_pic='-KPIC'
  8124. lt_prog_compiler_static='-Bstatic'
  8125. ;;
  8126. *nto* | *qnx*)
  8127. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8128. # it will coredump.
  8129. lt_prog_compiler_pic='-fPIC -shared'
  8130. ;;
  8131. osf3* | osf4* | osf5*)
  8132. lt_prog_compiler_wl='-Wl,'
  8133. # All OSF/1 code is PIC.
  8134. lt_prog_compiler_static='-non_shared'
  8135. ;;
  8136. rdos*)
  8137. lt_prog_compiler_static='-non_shared'
  8138. ;;
  8139. solaris*)
  8140. lt_prog_compiler_pic='-KPIC'
  8141. lt_prog_compiler_static='-Bstatic'
  8142. case $cc_basename in
  8143. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8144. lt_prog_compiler_wl='-Qoption ld ';;
  8145. *)
  8146. lt_prog_compiler_wl='-Wl,';;
  8147. esac
  8148. ;;
  8149. sunos4*)
  8150. lt_prog_compiler_wl='-Qoption ld '
  8151. lt_prog_compiler_pic='-PIC'
  8152. lt_prog_compiler_static='-Bstatic'
  8153. ;;
  8154. sysv4 | sysv4.2uw2* | sysv4.3*)
  8155. lt_prog_compiler_wl='-Wl,'
  8156. lt_prog_compiler_pic='-KPIC'
  8157. lt_prog_compiler_static='-Bstatic'
  8158. ;;
  8159. sysv4*MP*)
  8160. if test -d /usr/nec ;then
  8161. lt_prog_compiler_pic='-Kconform_pic'
  8162. lt_prog_compiler_static='-Bstatic'
  8163. fi
  8164. ;;
  8165. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8166. lt_prog_compiler_wl='-Wl,'
  8167. lt_prog_compiler_pic='-KPIC'
  8168. lt_prog_compiler_static='-Bstatic'
  8169. ;;
  8170. unicos*)
  8171. lt_prog_compiler_wl='-Wl,'
  8172. lt_prog_compiler_can_build_shared=no
  8173. ;;
  8174. uts4*)
  8175. lt_prog_compiler_pic='-pic'
  8176. lt_prog_compiler_static='-Bstatic'
  8177. ;;
  8178. *)
  8179. lt_prog_compiler_can_build_shared=no
  8180. ;;
  8181. esac
  8182. fi
  8183. case $host_os in
  8184. # For platforms which do not support PIC, -DPIC is meaningless:
  8185. *djgpp*)
  8186. lt_prog_compiler_pic=
  8187. ;;
  8188. *)
  8189. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8190. ;;
  8191. esac
  8192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8193. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8194. if ${lt_cv_prog_compiler_pic+:} false; then :
  8195. $as_echo_n "(cached) " >&6
  8196. else
  8197. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8198. fi
  8199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8200. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8201. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8202. #
  8203. # Check to make sure the PIC flag actually works.
  8204. #
  8205. if test -n "$lt_prog_compiler_pic"; then
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8207. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8208. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8209. $as_echo_n "(cached) " >&6
  8210. else
  8211. lt_cv_prog_compiler_pic_works=no
  8212. ac_outfile=conftest.$ac_objext
  8213. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8214. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8215. # Insert the option either (1) after the last *FLAGS variable, or
  8216. # (2) before a word containing "conftest.", or (3) at the end.
  8217. # Note that $ac_compile itself does not contain backslashes and begins
  8218. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8219. # The option is referenced via a variable to avoid confusing sed.
  8220. lt_compile=`echo "$ac_compile" | $SED \
  8221. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8222. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8223. -e 's:$: $lt_compiler_flag:'`
  8224. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8225. (eval "$lt_compile" 2>conftest.err)
  8226. ac_status=$?
  8227. cat conftest.err >&5
  8228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. if (exit $ac_status) && test -s "$ac_outfile"; then
  8230. # The compiler can only warn and ignore the option if not recognized
  8231. # So say no if there are warnings other than the usual output.
  8232. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8233. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8234. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8235. lt_cv_prog_compiler_pic_works=yes
  8236. fi
  8237. fi
  8238. $RM conftest*
  8239. fi
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8241. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8242. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8243. case $lt_prog_compiler_pic in
  8244. "" | " "*) ;;
  8245. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8246. esac
  8247. else
  8248. lt_prog_compiler_pic=
  8249. lt_prog_compiler_can_build_shared=no
  8250. fi
  8251. fi
  8252. #
  8253. # Check to make sure the static flag actually works.
  8254. #
  8255. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8257. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8258. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8259. $as_echo_n "(cached) " >&6
  8260. else
  8261. lt_cv_prog_compiler_static_works=no
  8262. save_LDFLAGS="$LDFLAGS"
  8263. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8264. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8265. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8266. # The linker can only warn and ignore the option if not recognized
  8267. # So say no if there are warnings
  8268. if test -s conftest.err; then
  8269. # Append any errors to the config.log.
  8270. cat conftest.err 1>&5
  8271. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8272. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8273. if diff conftest.exp conftest.er2 >/dev/null; then
  8274. lt_cv_prog_compiler_static_works=yes
  8275. fi
  8276. else
  8277. lt_cv_prog_compiler_static_works=yes
  8278. fi
  8279. fi
  8280. $RM -r conftest*
  8281. LDFLAGS="$save_LDFLAGS"
  8282. fi
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8284. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8285. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8286. :
  8287. else
  8288. lt_prog_compiler_static=
  8289. fi
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8291. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8292. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8293. $as_echo_n "(cached) " >&6
  8294. else
  8295. lt_cv_prog_compiler_c_o=no
  8296. $RM -r conftest 2>/dev/null
  8297. mkdir conftest
  8298. cd conftest
  8299. mkdir out
  8300. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8301. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8302. # Insert the option either (1) after the last *FLAGS variable, or
  8303. # (2) before a word containing "conftest.", or (3) at the end.
  8304. # Note that $ac_compile itself does not contain backslashes and begins
  8305. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8306. lt_compile=`echo "$ac_compile" | $SED \
  8307. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8308. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8309. -e 's:$: $lt_compiler_flag:'`
  8310. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8311. (eval "$lt_compile" 2>out/conftest.err)
  8312. ac_status=$?
  8313. cat out/conftest.err >&5
  8314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8315. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8316. then
  8317. # The compiler can only warn and ignore the option if not recognized
  8318. # So say no if there are warnings
  8319. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8320. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8321. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8322. lt_cv_prog_compiler_c_o=yes
  8323. fi
  8324. fi
  8325. chmod u+w . 2>&5
  8326. $RM conftest*
  8327. # SGI C++ compiler will create directory out/ii_files/ for
  8328. # template instantiation
  8329. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8330. $RM out/* && rmdir out
  8331. cd ..
  8332. $RM -r conftest
  8333. $RM conftest*
  8334. fi
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8336. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8338. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8339. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8340. $as_echo_n "(cached) " >&6
  8341. else
  8342. lt_cv_prog_compiler_c_o=no
  8343. $RM -r conftest 2>/dev/null
  8344. mkdir conftest
  8345. cd conftest
  8346. mkdir out
  8347. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8348. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8349. # Insert the option either (1) after the last *FLAGS variable, or
  8350. # (2) before a word containing "conftest.", or (3) at the end.
  8351. # Note that $ac_compile itself does not contain backslashes and begins
  8352. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8353. lt_compile=`echo "$ac_compile" | $SED \
  8354. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8355. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8356. -e 's:$: $lt_compiler_flag:'`
  8357. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8358. (eval "$lt_compile" 2>out/conftest.err)
  8359. ac_status=$?
  8360. cat out/conftest.err >&5
  8361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8362. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8363. then
  8364. # The compiler can only warn and ignore the option if not recognized
  8365. # So say no if there are warnings
  8366. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8367. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8368. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8369. lt_cv_prog_compiler_c_o=yes
  8370. fi
  8371. fi
  8372. chmod u+w . 2>&5
  8373. $RM conftest*
  8374. # SGI C++ compiler will create directory out/ii_files/ for
  8375. # template instantiation
  8376. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8377. $RM out/* && rmdir out
  8378. cd ..
  8379. $RM -r conftest
  8380. $RM conftest*
  8381. fi
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8383. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8384. hard_links="nottested"
  8385. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8386. # do not overwrite the value of need_locks provided by the user
  8387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8388. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8389. hard_links=yes
  8390. $RM conftest*
  8391. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8392. touch conftest.a
  8393. ln conftest.a conftest.b 2>&5 || hard_links=no
  8394. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8396. $as_echo "$hard_links" >&6; }
  8397. if test "$hard_links" = no; then
  8398. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8399. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8400. need_locks=warn
  8401. fi
  8402. else
  8403. need_locks=no
  8404. fi
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8406. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8407. runpath_var=
  8408. allow_undefined_flag=
  8409. always_export_symbols=no
  8410. archive_cmds=
  8411. archive_expsym_cmds=
  8412. compiler_needs_object=no
  8413. enable_shared_with_static_runtimes=no
  8414. export_dynamic_flag_spec=
  8415. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8416. hardcode_automatic=no
  8417. hardcode_direct=no
  8418. hardcode_direct_absolute=no
  8419. hardcode_libdir_flag_spec=
  8420. hardcode_libdir_separator=
  8421. hardcode_minus_L=no
  8422. hardcode_shlibpath_var=unsupported
  8423. inherit_rpath=no
  8424. link_all_deplibs=unknown
  8425. module_cmds=
  8426. module_expsym_cmds=
  8427. old_archive_from_new_cmds=
  8428. old_archive_from_expsyms_cmds=
  8429. thread_safe_flag_spec=
  8430. whole_archive_flag_spec=
  8431. # include_expsyms should be a list of space-separated symbols to be *always*
  8432. # included in the symbol list
  8433. include_expsyms=
  8434. # exclude_expsyms can be an extended regexp of symbols to exclude
  8435. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8436. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8437. # as well as any symbol that contains `d'.
  8438. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8439. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8440. # platforms (ab)use it in PIC code, but their linkers get confused if
  8441. # the symbol is explicitly referenced. Since portable code cannot
  8442. # rely on this symbol name, it's probably fine to never include it in
  8443. # preloaded symbol tables.
  8444. # Exclude shared library initialization/finalization symbols.
  8445. extract_expsyms_cmds=
  8446. case $host_os in
  8447. cygwin* | mingw* | pw32* | cegcc*)
  8448. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8449. # When not using gcc, we currently assume that we are using
  8450. # Microsoft Visual C++.
  8451. if test "$GCC" != yes; then
  8452. with_gnu_ld=no
  8453. fi
  8454. ;;
  8455. interix*)
  8456. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8457. with_gnu_ld=yes
  8458. ;;
  8459. openbsd*)
  8460. with_gnu_ld=no
  8461. ;;
  8462. esac
  8463. ld_shlibs=yes
  8464. # On some targets, GNU ld is compatible enough with the native linker
  8465. # that we're better off using the native interface for both.
  8466. lt_use_gnu_ld_interface=no
  8467. if test "$with_gnu_ld" = yes; then
  8468. case $host_os in
  8469. aix*)
  8470. # The AIX port of GNU ld has always aspired to compatibility
  8471. # with the native linker. However, as the warning in the GNU ld
  8472. # block says, versions before 2.19.5* couldn't really create working
  8473. # shared libraries, regardless of the interface used.
  8474. case `$LD -v 2>&1` in
  8475. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8476. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8477. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8478. *)
  8479. lt_use_gnu_ld_interface=yes
  8480. ;;
  8481. esac
  8482. ;;
  8483. *)
  8484. lt_use_gnu_ld_interface=yes
  8485. ;;
  8486. esac
  8487. fi
  8488. if test "$lt_use_gnu_ld_interface" = yes; then
  8489. # If archive_cmds runs LD, not CC, wlarc should be empty
  8490. wlarc='${wl}'
  8491. # Set some defaults for GNU ld with shared library support. These
  8492. # are reset later if shared libraries are not supported. Putting them
  8493. # here allows them to be overridden if necessary.
  8494. runpath_var=LD_RUN_PATH
  8495. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8496. export_dynamic_flag_spec='${wl}--export-dynamic'
  8497. # ancient GNU ld didn't support --whole-archive et. al.
  8498. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8499. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8500. else
  8501. whole_archive_flag_spec=
  8502. fi
  8503. supports_anon_versioning=no
  8504. case `$LD -v 2>&1` in
  8505. *GNU\ gold*) supports_anon_versioning=yes ;;
  8506. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8507. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8508. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8509. *\ 2.11.*) ;; # other 2.11 versions
  8510. *) supports_anon_versioning=yes ;;
  8511. esac
  8512. # See if GNU ld supports shared libraries.
  8513. case $host_os in
  8514. aix[3-9]*)
  8515. # On AIX/PPC, the GNU linker is very broken
  8516. if test "$host_cpu" != ia64; then
  8517. ld_shlibs=no
  8518. cat <<_LT_EOF 1>&2
  8519. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8520. *** to be unable to reliably create shared libraries on AIX.
  8521. *** Therefore, libtool is disabling shared libraries support. If you
  8522. *** really care for shared libraries, you may want to install binutils
  8523. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8524. *** You will then need to restart the configuration process.
  8525. _LT_EOF
  8526. fi
  8527. ;;
  8528. amigaos*)
  8529. case $host_cpu in
  8530. powerpc)
  8531. # see comment about AmigaOS4 .so support
  8532. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8533. archive_expsym_cmds=''
  8534. ;;
  8535. m68k)
  8536. 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)'
  8537. hardcode_libdir_flag_spec='-L$libdir'
  8538. hardcode_minus_L=yes
  8539. ;;
  8540. esac
  8541. ;;
  8542. beos*)
  8543. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8544. allow_undefined_flag=unsupported
  8545. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8546. # support --undefined. This deserves some investigation. FIXME
  8547. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8548. else
  8549. ld_shlibs=no
  8550. fi
  8551. ;;
  8552. cygwin* | mingw* | pw32* | cegcc*)
  8553. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8554. # as there is no search path for DLLs.
  8555. hardcode_libdir_flag_spec='-L$libdir'
  8556. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8557. allow_undefined_flag=unsupported
  8558. always_export_symbols=no
  8559. enable_shared_with_static_runtimes=yes
  8560. 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'
  8561. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8562. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8563. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8564. # If the export-symbols file already is a .def file (1st line
  8565. # is EXPORTS), use it as is; otherwise, prepend...
  8566. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8567. cp $export_symbols $output_objdir/$soname.def;
  8568. else
  8569. echo EXPORTS > $output_objdir/$soname.def;
  8570. cat $export_symbols >> $output_objdir/$soname.def;
  8571. fi~
  8572. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8573. else
  8574. ld_shlibs=no
  8575. fi
  8576. ;;
  8577. haiku*)
  8578. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8579. link_all_deplibs=yes
  8580. ;;
  8581. interix[3-9]*)
  8582. hardcode_direct=no
  8583. hardcode_shlibpath_var=no
  8584. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8585. export_dynamic_flag_spec='${wl}-E'
  8586. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8587. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8588. # default) and relocated if they conflict, which is a slow very memory
  8589. # consuming and fragmenting process. To avoid this, we pick a random,
  8590. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8591. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8592. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8593. 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'
  8594. ;;
  8595. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8596. tmp_diet=no
  8597. if test "$host_os" = linux-dietlibc; then
  8598. case $cc_basename in
  8599. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8600. esac
  8601. fi
  8602. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8603. && test "$tmp_diet" = no
  8604. then
  8605. tmp_addflag=' $pic_flag'
  8606. tmp_sharedflag='-shared'
  8607. case $cc_basename,$host_cpu in
  8608. pgcc*) # Portland Group C compiler
  8609. 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'
  8610. tmp_addflag=' $pic_flag'
  8611. ;;
  8612. pgf77* | pgf90* | pgf95* | pgfortran*)
  8613. # Portland Group f77 and f90 compilers
  8614. 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'
  8615. tmp_addflag=' $pic_flag -Mnomain' ;;
  8616. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8617. tmp_addflag=' -i_dynamic' ;;
  8618. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8619. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8620. ifc* | ifort*) # Intel Fortran compiler
  8621. tmp_addflag=' -nofor_main' ;;
  8622. lf95*) # Lahey Fortran 8.1
  8623. whole_archive_flag_spec=
  8624. tmp_sharedflag='--shared' ;;
  8625. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8626. tmp_sharedflag='-qmkshrobj'
  8627. tmp_addflag= ;;
  8628. nvcc*) # Cuda Compiler Driver 2.2
  8629. 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'
  8630. compiler_needs_object=yes
  8631. ;;
  8632. esac
  8633. case `$CC -V 2>&1 | sed 5q` in
  8634. *Sun\ C*) # Sun C 5.9
  8635. 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'
  8636. compiler_needs_object=yes
  8637. tmp_sharedflag='-G' ;;
  8638. *Sun\ F*) # Sun Fortran 8.3
  8639. tmp_sharedflag='-G' ;;
  8640. esac
  8641. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8642. if test "x$supports_anon_versioning" = xyes; then
  8643. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8644. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8645. echo "local: *; };" >> $output_objdir/$libname.ver~
  8646. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8647. fi
  8648. case $cc_basename in
  8649. xlf* | bgf* | bgxlf* | mpixlf*)
  8650. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8651. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8652. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8653. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8654. if test "x$supports_anon_versioning" = xyes; then
  8655. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8656. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8657. echo "local: *; };" >> $output_objdir/$libname.ver~
  8658. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8659. fi
  8660. ;;
  8661. esac
  8662. else
  8663. ld_shlibs=no
  8664. fi
  8665. ;;
  8666. netbsd*)
  8667. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8668. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8669. wlarc=
  8670. else
  8671. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8672. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8673. fi
  8674. ;;
  8675. solaris*)
  8676. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8677. ld_shlibs=no
  8678. cat <<_LT_EOF 1>&2
  8679. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8680. *** create shared libraries on Solaris systems. Therefore, libtool
  8681. *** is disabling shared libraries support. We urge you to upgrade GNU
  8682. *** binutils to release 2.9.1 or newer. Another option is to modify
  8683. *** your PATH or compiler configuration so that the native linker is
  8684. *** used, and then restart.
  8685. _LT_EOF
  8686. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8687. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8688. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8689. else
  8690. ld_shlibs=no
  8691. fi
  8692. ;;
  8693. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8694. case `$LD -v 2>&1` in
  8695. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8696. ld_shlibs=no
  8697. cat <<_LT_EOF 1>&2
  8698. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8699. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8700. *** is disabling shared libraries support. We urge you to upgrade GNU
  8701. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8702. *** your PATH or compiler configuration so that the native linker is
  8703. *** used, and then restart.
  8704. _LT_EOF
  8705. ;;
  8706. *)
  8707. # For security reasons, it is highly recommended that you always
  8708. # use absolute paths for naming shared libraries, and exclude the
  8709. # DT_RUNPATH tag from executables and libraries. But doing so
  8710. # requires that you compile everything twice, which is a pain.
  8711. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8712. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8713. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8714. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8715. else
  8716. ld_shlibs=no
  8717. fi
  8718. ;;
  8719. esac
  8720. ;;
  8721. sunos4*)
  8722. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8723. wlarc=
  8724. hardcode_direct=yes
  8725. hardcode_shlibpath_var=no
  8726. ;;
  8727. *)
  8728. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8729. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8730. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8731. else
  8732. ld_shlibs=no
  8733. fi
  8734. ;;
  8735. esac
  8736. if test "$ld_shlibs" = no; then
  8737. runpath_var=
  8738. hardcode_libdir_flag_spec=
  8739. export_dynamic_flag_spec=
  8740. whole_archive_flag_spec=
  8741. fi
  8742. else
  8743. # PORTME fill in a description of your system's linker (not GNU ld)
  8744. case $host_os in
  8745. aix3*)
  8746. allow_undefined_flag=unsupported
  8747. always_export_symbols=yes
  8748. 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'
  8749. # Note: this linker hardcodes the directories in LIBPATH if there
  8750. # are no directories specified by -L.
  8751. hardcode_minus_L=yes
  8752. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8753. # Neither direct hardcoding nor static linking is supported with a
  8754. # broken collect2.
  8755. hardcode_direct=unsupported
  8756. fi
  8757. ;;
  8758. aix[4-9]*)
  8759. if test "$host_cpu" = ia64; then
  8760. # On IA64, the linker does run time linking by default, so we don't
  8761. # have to do anything special.
  8762. aix_use_runtimelinking=no
  8763. exp_sym_flag='-Bexport'
  8764. no_entry_flag=""
  8765. else
  8766. # If we're using GNU nm, then we don't want the "-C" option.
  8767. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8768. # Also, AIX nm treats weak defined symbols like other global
  8769. # defined symbols, whereas GNU nm marks them as "W".
  8770. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8771. 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'
  8772. else
  8773. 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'
  8774. fi
  8775. aix_use_runtimelinking=no
  8776. # Test if we are trying to use run time linking or normal
  8777. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8778. # need to do runtime linking.
  8779. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8780. for ld_flag in $LDFLAGS; do
  8781. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8782. aix_use_runtimelinking=yes
  8783. break
  8784. fi
  8785. done
  8786. ;;
  8787. esac
  8788. exp_sym_flag='-bexport'
  8789. no_entry_flag='-bnoentry'
  8790. fi
  8791. # When large executables or shared objects are built, AIX ld can
  8792. # have problems creating the table of contents. If linking a library
  8793. # or program results in "error TOC overflow" add -mminimal-toc to
  8794. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8795. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8796. archive_cmds=''
  8797. hardcode_direct=yes
  8798. hardcode_direct_absolute=yes
  8799. hardcode_libdir_separator=':'
  8800. link_all_deplibs=yes
  8801. file_list_spec='${wl}-f,'
  8802. if test "$GCC" = yes; then
  8803. case $host_os in aix4.[012]|aix4.[012].*)
  8804. # We only want to do this on AIX 4.2 and lower, the check
  8805. # below for broken collect2 doesn't work under 4.3+
  8806. collect2name=`${CC} -print-prog-name=collect2`
  8807. if test -f "$collect2name" &&
  8808. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8809. then
  8810. # We have reworked collect2
  8811. :
  8812. else
  8813. # We have old collect2
  8814. hardcode_direct=unsupported
  8815. # It fails to find uninstalled libraries when the uninstalled
  8816. # path is not listed in the libpath. Setting hardcode_minus_L
  8817. # to unsupported forces relinking
  8818. hardcode_minus_L=yes
  8819. hardcode_libdir_flag_spec='-L$libdir'
  8820. hardcode_libdir_separator=
  8821. fi
  8822. ;;
  8823. esac
  8824. shared_flag='-shared'
  8825. if test "$aix_use_runtimelinking" = yes; then
  8826. shared_flag="$shared_flag "'${wl}-G'
  8827. fi
  8828. else
  8829. # not using gcc
  8830. if test "$host_cpu" = ia64; then
  8831. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8832. # chokes on -Wl,-G. The following line is correct:
  8833. shared_flag='-G'
  8834. else
  8835. if test "$aix_use_runtimelinking" = yes; then
  8836. shared_flag='${wl}-G'
  8837. else
  8838. shared_flag='${wl}-bM:SRE'
  8839. fi
  8840. fi
  8841. fi
  8842. export_dynamic_flag_spec='${wl}-bexpall'
  8843. # It seems that -bexpall does not export symbols beginning with
  8844. # underscore (_), so it is better to generate a list of symbols to export.
  8845. always_export_symbols=yes
  8846. if test "$aix_use_runtimelinking" = yes; then
  8847. # Warning - without using the other runtime loading flags (-brtl),
  8848. # -berok will link without error, but may produce a broken library.
  8849. allow_undefined_flag='-berok'
  8850. # Determine the default libpath from the value encoded in an
  8851. # empty executable.
  8852. if test "${lt_cv_aix_libpath+set}" = set; then
  8853. aix_libpath=$lt_cv_aix_libpath
  8854. else
  8855. if ${lt_cv_aix_libpath_+:} false; then :
  8856. $as_echo_n "(cached) " >&6
  8857. else
  8858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8859. /* end confdefs.h. */
  8860. int
  8861. main ()
  8862. {
  8863. ;
  8864. return 0;
  8865. }
  8866. _ACEOF
  8867. if ac_fn_c_try_link "$LINENO"; then :
  8868. lt_aix_libpath_sed='
  8869. /Import File Strings/,/^$/ {
  8870. /^0/ {
  8871. s/^0 *\([^ ]*\) *$/\1/
  8872. p
  8873. }
  8874. }'
  8875. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8876. # Check for a 64-bit object if we didn't find anything.
  8877. if test -z "$lt_cv_aix_libpath_"; then
  8878. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8879. fi
  8880. fi
  8881. rm -f core conftest.err conftest.$ac_objext \
  8882. conftest$ac_exeext conftest.$ac_ext
  8883. if test -z "$lt_cv_aix_libpath_"; then
  8884. lt_cv_aix_libpath_="/usr/lib:/lib"
  8885. fi
  8886. fi
  8887. aix_libpath=$lt_cv_aix_libpath_
  8888. fi
  8889. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8890. 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"
  8891. else
  8892. if test "$host_cpu" = ia64; then
  8893. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8894. allow_undefined_flag="-z nodefs"
  8895. 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"
  8896. else
  8897. # Determine the default libpath from the value encoded in an
  8898. # empty executable.
  8899. if test "${lt_cv_aix_libpath+set}" = set; then
  8900. aix_libpath=$lt_cv_aix_libpath
  8901. else
  8902. if ${lt_cv_aix_libpath_+:} false; then :
  8903. $as_echo_n "(cached) " >&6
  8904. else
  8905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8906. /* end confdefs.h. */
  8907. int
  8908. main ()
  8909. {
  8910. ;
  8911. return 0;
  8912. }
  8913. _ACEOF
  8914. if ac_fn_c_try_link "$LINENO"; then :
  8915. lt_aix_libpath_sed='
  8916. /Import File Strings/,/^$/ {
  8917. /^0/ {
  8918. s/^0 *\([^ ]*\) *$/\1/
  8919. p
  8920. }
  8921. }'
  8922. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8923. # Check for a 64-bit object if we didn't find anything.
  8924. if test -z "$lt_cv_aix_libpath_"; then
  8925. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8926. fi
  8927. fi
  8928. rm -f core conftest.err conftest.$ac_objext \
  8929. conftest$ac_exeext conftest.$ac_ext
  8930. if test -z "$lt_cv_aix_libpath_"; then
  8931. lt_cv_aix_libpath_="/usr/lib:/lib"
  8932. fi
  8933. fi
  8934. aix_libpath=$lt_cv_aix_libpath_
  8935. fi
  8936. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8937. # Warning - without using the other run time loading flags,
  8938. # -berok will link without error, but may produce a broken library.
  8939. no_undefined_flag=' ${wl}-bernotok'
  8940. allow_undefined_flag=' ${wl}-berok'
  8941. if test "$with_gnu_ld" = yes; then
  8942. # We only use this code for GNU lds that support --whole-archive.
  8943. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8944. else
  8945. # Exported symbols can be pulled into shared objects from archives
  8946. whole_archive_flag_spec='$convenience'
  8947. fi
  8948. archive_cmds_need_lc=yes
  8949. # This is similar to how AIX traditionally builds its shared libraries.
  8950. 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'
  8951. fi
  8952. fi
  8953. ;;
  8954. amigaos*)
  8955. case $host_cpu in
  8956. powerpc)
  8957. # see comment about AmigaOS4 .so support
  8958. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8959. archive_expsym_cmds=''
  8960. ;;
  8961. m68k)
  8962. 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)'
  8963. hardcode_libdir_flag_spec='-L$libdir'
  8964. hardcode_minus_L=yes
  8965. ;;
  8966. esac
  8967. ;;
  8968. bsdi[45]*)
  8969. export_dynamic_flag_spec=-rdynamic
  8970. ;;
  8971. cygwin* | mingw* | pw32* | cegcc*)
  8972. # When not using gcc, we currently assume that we are using
  8973. # Microsoft Visual C++.
  8974. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8975. # no search path for DLLs.
  8976. case $cc_basename in
  8977. cl*)
  8978. # Native MSVC
  8979. hardcode_libdir_flag_spec=' '
  8980. allow_undefined_flag=unsupported
  8981. always_export_symbols=yes
  8982. file_list_spec='@'
  8983. # Tell ltmain to make .lib files, not .a files.
  8984. libext=lib
  8985. # Tell ltmain to make .dll files, not .so files.
  8986. shrext_cmds=".dll"
  8987. # FIXME: Setting linknames here is a bad hack.
  8988. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8989. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8990. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8991. else
  8992. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8993. fi~
  8994. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8995. linknames='
  8996. # The linker will not automatically build a static lib if we build a DLL.
  8997. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8998. enable_shared_with_static_runtimes=yes
  8999. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9000. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9001. # Don't use ranlib
  9002. old_postinstall_cmds='chmod 644 $oldlib'
  9003. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9004. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9005. case $lt_outputfile in
  9006. *.exe|*.EXE) ;;
  9007. *)
  9008. lt_outputfile="$lt_outputfile.exe"
  9009. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9010. ;;
  9011. esac~
  9012. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9013. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9014. $RM "$lt_outputfile.manifest";
  9015. fi'
  9016. ;;
  9017. *)
  9018. # Assume MSVC wrapper
  9019. hardcode_libdir_flag_spec=' '
  9020. allow_undefined_flag=unsupported
  9021. # Tell ltmain to make .lib files, not .a files.
  9022. libext=lib
  9023. # Tell ltmain to make .dll files, not .so files.
  9024. shrext_cmds=".dll"
  9025. # FIXME: Setting linknames here is a bad hack.
  9026. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9027. # The linker will automatically build a .lib file if we build a DLL.
  9028. old_archive_from_new_cmds='true'
  9029. # FIXME: Should let the user specify the lib program.
  9030. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9031. enable_shared_with_static_runtimes=yes
  9032. ;;
  9033. esac
  9034. ;;
  9035. darwin* | rhapsody*)
  9036. archive_cmds_need_lc=no
  9037. hardcode_direct=no
  9038. hardcode_automatic=yes
  9039. hardcode_shlibpath_var=unsupported
  9040. if test "$lt_cv_ld_force_load" = "yes"; then
  9041. 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\"`'
  9042. else
  9043. whole_archive_flag_spec=''
  9044. fi
  9045. link_all_deplibs=yes
  9046. allow_undefined_flag="$_lt_dar_allow_undefined"
  9047. case $cc_basename in
  9048. ifort*) _lt_dar_can_shared=yes ;;
  9049. *) _lt_dar_can_shared=$GCC ;;
  9050. esac
  9051. if test "$_lt_dar_can_shared" = "yes"; then
  9052. output_verbose_link_cmd=func_echo_all
  9053. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9054. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9055. 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}"
  9056. 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}"
  9057. else
  9058. ld_shlibs=no
  9059. fi
  9060. ;;
  9061. dgux*)
  9062. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9063. hardcode_libdir_flag_spec='-L$libdir'
  9064. hardcode_shlibpath_var=no
  9065. ;;
  9066. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9067. # support. Future versions do this automatically, but an explicit c++rt0.o
  9068. # does not break anything, and helps significantly (at the cost of a little
  9069. # extra space).
  9070. freebsd2.2*)
  9071. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9072. hardcode_libdir_flag_spec='-R$libdir'
  9073. hardcode_direct=yes
  9074. hardcode_shlibpath_var=no
  9075. ;;
  9076. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9077. freebsd2.*)
  9078. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9079. hardcode_direct=yes
  9080. hardcode_minus_L=yes
  9081. hardcode_shlibpath_var=no
  9082. ;;
  9083. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9084. freebsd* | dragonfly*)
  9085. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9086. hardcode_libdir_flag_spec='-R$libdir'
  9087. hardcode_direct=yes
  9088. hardcode_shlibpath_var=no
  9089. ;;
  9090. hpux9*)
  9091. if test "$GCC" = yes; then
  9092. 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'
  9093. else
  9094. 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'
  9095. fi
  9096. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9097. hardcode_libdir_separator=:
  9098. hardcode_direct=yes
  9099. # hardcode_minus_L: Not really in the search PATH,
  9100. # but as the default location of the library.
  9101. hardcode_minus_L=yes
  9102. export_dynamic_flag_spec='${wl}-E'
  9103. ;;
  9104. hpux10*)
  9105. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9106. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9107. else
  9108. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9109. fi
  9110. if test "$with_gnu_ld" = no; then
  9111. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9112. hardcode_libdir_separator=:
  9113. hardcode_direct=yes
  9114. hardcode_direct_absolute=yes
  9115. export_dynamic_flag_spec='${wl}-E'
  9116. # hardcode_minus_L: Not really in the search PATH,
  9117. # but as the default location of the library.
  9118. hardcode_minus_L=yes
  9119. fi
  9120. ;;
  9121. hpux11*)
  9122. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9123. case $host_cpu in
  9124. hppa*64*)
  9125. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9126. ;;
  9127. ia64*)
  9128. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9129. ;;
  9130. *)
  9131. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9132. ;;
  9133. esac
  9134. else
  9135. case $host_cpu in
  9136. hppa*64*)
  9137. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9138. ;;
  9139. ia64*)
  9140. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9141. ;;
  9142. *)
  9143. # Older versions of the 11.00 compiler do not understand -b yet
  9144. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9146. $as_echo_n "checking if $CC understands -b... " >&6; }
  9147. if ${lt_cv_prog_compiler__b+:} false; then :
  9148. $as_echo_n "(cached) " >&6
  9149. else
  9150. lt_cv_prog_compiler__b=no
  9151. save_LDFLAGS="$LDFLAGS"
  9152. LDFLAGS="$LDFLAGS -b"
  9153. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9154. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9155. # The linker can only warn and ignore the option if not recognized
  9156. # So say no if there are warnings
  9157. if test -s conftest.err; then
  9158. # Append any errors to the config.log.
  9159. cat conftest.err 1>&5
  9160. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9161. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9162. if diff conftest.exp conftest.er2 >/dev/null; then
  9163. lt_cv_prog_compiler__b=yes
  9164. fi
  9165. else
  9166. lt_cv_prog_compiler__b=yes
  9167. fi
  9168. fi
  9169. $RM -r conftest*
  9170. LDFLAGS="$save_LDFLAGS"
  9171. fi
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9173. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9174. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9175. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9176. else
  9177. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9178. fi
  9179. ;;
  9180. esac
  9181. fi
  9182. if test "$with_gnu_ld" = no; then
  9183. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9184. hardcode_libdir_separator=:
  9185. case $host_cpu in
  9186. hppa*64*|ia64*)
  9187. hardcode_direct=no
  9188. hardcode_shlibpath_var=no
  9189. ;;
  9190. *)
  9191. hardcode_direct=yes
  9192. hardcode_direct_absolute=yes
  9193. export_dynamic_flag_spec='${wl}-E'
  9194. # hardcode_minus_L: Not really in the search PATH,
  9195. # but as the default location of the library.
  9196. hardcode_minus_L=yes
  9197. ;;
  9198. esac
  9199. fi
  9200. ;;
  9201. irix5* | irix6* | nonstopux*)
  9202. if test "$GCC" = yes; then
  9203. 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'
  9204. # Try to use the -exported_symbol ld option, if it does not
  9205. # work, assume that -exports_file does not work either and
  9206. # implicitly export all symbols.
  9207. # This should be the same for all languages, so no per-tag cache variable.
  9208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9209. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9210. if ${lt_cv_irix_exported_symbol+:} false; then :
  9211. $as_echo_n "(cached) " >&6
  9212. else
  9213. save_LDFLAGS="$LDFLAGS"
  9214. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9216. /* end confdefs.h. */
  9217. int foo (void) { return 0; }
  9218. _ACEOF
  9219. if ac_fn_c_try_link "$LINENO"; then :
  9220. lt_cv_irix_exported_symbol=yes
  9221. else
  9222. lt_cv_irix_exported_symbol=no
  9223. fi
  9224. rm -f core conftest.err conftest.$ac_objext \
  9225. conftest$ac_exeext conftest.$ac_ext
  9226. LDFLAGS="$save_LDFLAGS"
  9227. fi
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9229. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9230. if test "$lt_cv_irix_exported_symbol" = yes; then
  9231. 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'
  9232. fi
  9233. else
  9234. 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'
  9235. 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'
  9236. fi
  9237. archive_cmds_need_lc='no'
  9238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9239. hardcode_libdir_separator=:
  9240. inherit_rpath=yes
  9241. link_all_deplibs=yes
  9242. ;;
  9243. netbsd*)
  9244. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9245. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9246. else
  9247. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9248. fi
  9249. hardcode_libdir_flag_spec='-R$libdir'
  9250. hardcode_direct=yes
  9251. hardcode_shlibpath_var=no
  9252. ;;
  9253. newsos6)
  9254. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9255. hardcode_direct=yes
  9256. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9257. hardcode_libdir_separator=:
  9258. hardcode_shlibpath_var=no
  9259. ;;
  9260. *nto* | *qnx*)
  9261. ;;
  9262. openbsd*)
  9263. if test -f /usr/libexec/ld.so; then
  9264. hardcode_direct=yes
  9265. hardcode_shlibpath_var=no
  9266. hardcode_direct_absolute=yes
  9267. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9268. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9269. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9270. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9271. export_dynamic_flag_spec='${wl}-E'
  9272. else
  9273. case $host_os in
  9274. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9275. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9276. hardcode_libdir_flag_spec='-R$libdir'
  9277. ;;
  9278. *)
  9279. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9280. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9281. ;;
  9282. esac
  9283. fi
  9284. else
  9285. ld_shlibs=no
  9286. fi
  9287. ;;
  9288. os2*)
  9289. hardcode_libdir_flag_spec='-L$libdir'
  9290. hardcode_minus_L=yes
  9291. allow_undefined_flag=unsupported
  9292. 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'
  9293. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9294. ;;
  9295. osf3*)
  9296. if test "$GCC" = yes; then
  9297. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9298. 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'
  9299. else
  9300. allow_undefined_flag=' -expect_unresolved \*'
  9301. 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'
  9302. fi
  9303. archive_cmds_need_lc='no'
  9304. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9305. hardcode_libdir_separator=:
  9306. ;;
  9307. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9308. if test "$GCC" = yes; then
  9309. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9310. 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'
  9311. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9312. else
  9313. allow_undefined_flag=' -expect_unresolved \*'
  9314. 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'
  9315. 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~
  9316. $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'
  9317. # Both c and cxx compiler support -rpath directly
  9318. hardcode_libdir_flag_spec='-rpath $libdir'
  9319. fi
  9320. archive_cmds_need_lc='no'
  9321. hardcode_libdir_separator=:
  9322. ;;
  9323. solaris*)
  9324. no_undefined_flag=' -z defs'
  9325. if test "$GCC" = yes; then
  9326. wlarc='${wl}'
  9327. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9328. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9329. $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'
  9330. else
  9331. case `$CC -V 2>&1` in
  9332. *"Compilers 5.0"*)
  9333. wlarc=''
  9334. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9335. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9336. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9337. ;;
  9338. *)
  9339. wlarc='${wl}'
  9340. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9341. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9342. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9343. ;;
  9344. esac
  9345. fi
  9346. hardcode_libdir_flag_spec='-R$libdir'
  9347. hardcode_shlibpath_var=no
  9348. case $host_os in
  9349. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9350. *)
  9351. # The compiler driver will combine and reorder linker options,
  9352. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9353. # but is careful enough not to reorder.
  9354. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9355. if test "$GCC" = yes; then
  9356. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9357. else
  9358. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9359. fi
  9360. ;;
  9361. esac
  9362. link_all_deplibs=yes
  9363. ;;
  9364. sunos4*)
  9365. if test "x$host_vendor" = xsequent; then
  9366. # Use $CC to link under sequent, because it throws in some extra .o
  9367. # files that make .init and .fini sections work.
  9368. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9369. else
  9370. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9371. fi
  9372. hardcode_libdir_flag_spec='-L$libdir'
  9373. hardcode_direct=yes
  9374. hardcode_minus_L=yes
  9375. hardcode_shlibpath_var=no
  9376. ;;
  9377. sysv4)
  9378. case $host_vendor in
  9379. sni)
  9380. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9381. hardcode_direct=yes # is this really true???
  9382. ;;
  9383. siemens)
  9384. ## LD is ld it makes a PLAMLIB
  9385. ## CC just makes a GrossModule.
  9386. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9387. reload_cmds='$CC -r -o $output$reload_objs'
  9388. hardcode_direct=no
  9389. ;;
  9390. motorola)
  9391. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9392. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9393. ;;
  9394. esac
  9395. runpath_var='LD_RUN_PATH'
  9396. hardcode_shlibpath_var=no
  9397. ;;
  9398. sysv4.3*)
  9399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9400. hardcode_shlibpath_var=no
  9401. export_dynamic_flag_spec='-Bexport'
  9402. ;;
  9403. sysv4*MP*)
  9404. if test -d /usr/nec; then
  9405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9406. hardcode_shlibpath_var=no
  9407. runpath_var=LD_RUN_PATH
  9408. hardcode_runpath_var=yes
  9409. ld_shlibs=yes
  9410. fi
  9411. ;;
  9412. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9413. no_undefined_flag='${wl}-z,text'
  9414. archive_cmds_need_lc=no
  9415. hardcode_shlibpath_var=no
  9416. runpath_var='LD_RUN_PATH'
  9417. if test "$GCC" = yes; then
  9418. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9419. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9420. else
  9421. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9422. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9423. fi
  9424. ;;
  9425. sysv5* | sco3.2v5* | sco5v6*)
  9426. # Note: We can NOT use -z defs as we might desire, because we do not
  9427. # link with -lc, and that would cause any symbols used from libc to
  9428. # always be unresolved, which means just about no library would
  9429. # ever link correctly. If we're not using GNU ld we use -z text
  9430. # though, which does catch some bad symbols but isn't as heavy-handed
  9431. # as -z defs.
  9432. no_undefined_flag='${wl}-z,text'
  9433. allow_undefined_flag='${wl}-z,nodefs'
  9434. archive_cmds_need_lc=no
  9435. hardcode_shlibpath_var=no
  9436. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9437. hardcode_libdir_separator=':'
  9438. link_all_deplibs=yes
  9439. export_dynamic_flag_spec='${wl}-Bexport'
  9440. runpath_var='LD_RUN_PATH'
  9441. if test "$GCC" = yes; then
  9442. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9443. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9444. else
  9445. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9446. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9447. fi
  9448. ;;
  9449. uts4*)
  9450. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9451. hardcode_libdir_flag_spec='-L$libdir'
  9452. hardcode_shlibpath_var=no
  9453. ;;
  9454. *)
  9455. ld_shlibs=no
  9456. ;;
  9457. esac
  9458. if test x$host_vendor = xsni; then
  9459. case $host in
  9460. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9461. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9462. ;;
  9463. esac
  9464. fi
  9465. fi
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9467. $as_echo "$ld_shlibs" >&6; }
  9468. test "$ld_shlibs" = no && can_build_shared=no
  9469. with_gnu_ld=$with_gnu_ld
  9470. #
  9471. # Do we need to explicitly link libc?
  9472. #
  9473. case "x$archive_cmds_need_lc" in
  9474. x|xyes)
  9475. # Assume -lc should be added
  9476. archive_cmds_need_lc=yes
  9477. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9478. case $archive_cmds in
  9479. *'~'*)
  9480. # FIXME: we may have to deal with multi-command sequences.
  9481. ;;
  9482. '$CC '*)
  9483. # Test whether the compiler implicitly links with -lc since on some
  9484. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9485. # to ld, don't add -lc before -lgcc.
  9486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9487. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9488. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9489. $as_echo_n "(cached) " >&6
  9490. else
  9491. $RM conftest*
  9492. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9493. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9494. (eval $ac_compile) 2>&5
  9495. ac_status=$?
  9496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9497. test $ac_status = 0; } 2>conftest.err; then
  9498. soname=conftest
  9499. lib=conftest
  9500. libobjs=conftest.$ac_objext
  9501. deplibs=
  9502. wl=$lt_prog_compiler_wl
  9503. pic_flag=$lt_prog_compiler_pic
  9504. compiler_flags=-v
  9505. linker_flags=-v
  9506. verstring=
  9507. output_objdir=.
  9508. libname=conftest
  9509. lt_save_allow_undefined_flag=$allow_undefined_flag
  9510. allow_undefined_flag=
  9511. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9512. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9513. ac_status=$?
  9514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9515. test $ac_status = 0; }
  9516. then
  9517. lt_cv_archive_cmds_need_lc=no
  9518. else
  9519. lt_cv_archive_cmds_need_lc=yes
  9520. fi
  9521. allow_undefined_flag=$lt_save_allow_undefined_flag
  9522. else
  9523. cat conftest.err 1>&5
  9524. fi
  9525. $RM conftest*
  9526. fi
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9528. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9529. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9530. ;;
  9531. esac
  9532. fi
  9533. ;;
  9534. esac
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9536. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9537. if test "$GCC" = yes; then
  9538. case $host_os in
  9539. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9540. *) lt_awk_arg="/^libraries:/" ;;
  9541. esac
  9542. case $host_os in
  9543. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9544. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9545. esac
  9546. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9547. case $lt_search_path_spec in
  9548. *\;*)
  9549. # if the path contains ";" then we assume it to be the separator
  9550. # otherwise default to the standard path separator (i.e. ":") - it is
  9551. # assumed that no part of a normal pathname contains ";" but that should
  9552. # okay in the real world where ";" in dirpaths is itself problematic.
  9553. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9554. ;;
  9555. *)
  9556. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9557. ;;
  9558. esac
  9559. # Ok, now we have the path, separated by spaces, we can step through it
  9560. # and add multilib dir if necessary.
  9561. lt_tmp_lt_search_path_spec=
  9562. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9563. for lt_sys_path in $lt_search_path_spec; do
  9564. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9565. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9566. else
  9567. test -d "$lt_sys_path" && \
  9568. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9569. fi
  9570. done
  9571. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9572. BEGIN {RS=" "; FS="/|\n";} {
  9573. lt_foo="";
  9574. lt_count=0;
  9575. for (lt_i = NF; lt_i > 0; lt_i--) {
  9576. if ($lt_i != "" && $lt_i != ".") {
  9577. if ($lt_i == "..") {
  9578. lt_count++;
  9579. } else {
  9580. if (lt_count == 0) {
  9581. lt_foo="/" $lt_i lt_foo;
  9582. } else {
  9583. lt_count--;
  9584. }
  9585. }
  9586. }
  9587. }
  9588. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9589. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9590. }'`
  9591. # AWK program above erroneously prepends '/' to C:/dos/paths
  9592. # for these hosts.
  9593. case $host_os in
  9594. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9595. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9596. esac
  9597. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9598. else
  9599. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9600. fi
  9601. library_names_spec=
  9602. libname_spec='lib$name'
  9603. soname_spec=
  9604. shrext_cmds=".so"
  9605. postinstall_cmds=
  9606. postuninstall_cmds=
  9607. finish_cmds=
  9608. finish_eval=
  9609. shlibpath_var=
  9610. shlibpath_overrides_runpath=unknown
  9611. version_type=none
  9612. dynamic_linker="$host_os ld.so"
  9613. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9614. need_lib_prefix=unknown
  9615. hardcode_into_libs=no
  9616. # when you set need_version to no, make sure it does not cause -set_version
  9617. # flags to be left without arguments
  9618. need_version=unknown
  9619. case $host_os in
  9620. aix3*)
  9621. version_type=linux # correct to gnu/linux during the next big refactor
  9622. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9623. shlibpath_var=LIBPATH
  9624. # AIX 3 has no versioning support, so we append a major version to the name.
  9625. soname_spec='${libname}${release}${shared_ext}$major'
  9626. ;;
  9627. aix[4-9]*)
  9628. version_type=linux # correct to gnu/linux during the next big refactor
  9629. need_lib_prefix=no
  9630. need_version=no
  9631. hardcode_into_libs=yes
  9632. if test "$host_cpu" = ia64; then
  9633. # AIX 5 supports IA64
  9634. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9635. shlibpath_var=LD_LIBRARY_PATH
  9636. else
  9637. # With GCC up to 2.95.x, collect2 would create an import file
  9638. # for dependence libraries. The import file would start with
  9639. # the line `#! .'. This would cause the generated library to
  9640. # depend on `.', always an invalid library. This was fixed in
  9641. # development snapshots of GCC prior to 3.0.
  9642. case $host_os in
  9643. aix4 | aix4.[01] | aix4.[01].*)
  9644. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9645. echo ' yes '
  9646. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9647. :
  9648. else
  9649. can_build_shared=no
  9650. fi
  9651. ;;
  9652. esac
  9653. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9654. # soname into executable. Probably we can add versioning support to
  9655. # collect2, so additional links can be useful in future.
  9656. if test "$aix_use_runtimelinking" = yes; then
  9657. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9658. # instead of lib<name>.a to let people know that these are not
  9659. # typical AIX shared libraries.
  9660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9661. else
  9662. # We preserve .a as extension for shared libraries through AIX4.2
  9663. # and later when we are not doing run time linking.
  9664. library_names_spec='${libname}${release}.a $libname.a'
  9665. soname_spec='${libname}${release}${shared_ext}$major'
  9666. fi
  9667. shlibpath_var=LIBPATH
  9668. fi
  9669. ;;
  9670. amigaos*)
  9671. case $host_cpu in
  9672. powerpc)
  9673. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9674. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9676. ;;
  9677. m68k)
  9678. library_names_spec='$libname.ixlibrary $libname.a'
  9679. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9680. 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'
  9681. ;;
  9682. esac
  9683. ;;
  9684. beos*)
  9685. library_names_spec='${libname}${shared_ext}'
  9686. dynamic_linker="$host_os ld.so"
  9687. shlibpath_var=LIBRARY_PATH
  9688. ;;
  9689. bsdi[45]*)
  9690. version_type=linux # correct to gnu/linux during the next big refactor
  9691. need_version=no
  9692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9693. soname_spec='${libname}${release}${shared_ext}$major'
  9694. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9695. shlibpath_var=LD_LIBRARY_PATH
  9696. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9697. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9698. # the default ld.so.conf also contains /usr/contrib/lib and
  9699. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9700. # libtool to hard-code these into programs
  9701. ;;
  9702. cygwin* | mingw* | pw32* | cegcc*)
  9703. version_type=windows
  9704. shrext_cmds=".dll"
  9705. need_version=no
  9706. need_lib_prefix=no
  9707. case $GCC,$cc_basename in
  9708. yes,*)
  9709. # gcc
  9710. library_names_spec='$libname.dll.a'
  9711. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9712. postinstall_cmds='base_file=`basename \${file}`~
  9713. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9714. dldir=$destdir/`dirname \$dlpath`~
  9715. test -d \$dldir || mkdir -p \$dldir~
  9716. $install_prog $dir/$dlname \$dldir/$dlname~
  9717. chmod a+x \$dldir/$dlname~
  9718. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9719. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9720. fi'
  9721. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9722. dlpath=$dir/\$dldll~
  9723. $RM \$dlpath'
  9724. shlibpath_overrides_runpath=yes
  9725. case $host_os in
  9726. cygwin*)
  9727. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9728. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9729. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9730. ;;
  9731. mingw* | cegcc*)
  9732. # MinGW DLLs use traditional 'lib' prefix
  9733. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9734. ;;
  9735. pw32*)
  9736. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9737. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9738. ;;
  9739. esac
  9740. dynamic_linker='Win32 ld.exe'
  9741. ;;
  9742. *,cl*)
  9743. # Native MSVC
  9744. libname_spec='$name'
  9745. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9746. library_names_spec='${libname}.dll.lib'
  9747. case $build_os in
  9748. mingw*)
  9749. sys_lib_search_path_spec=
  9750. lt_save_ifs=$IFS
  9751. IFS=';'
  9752. for lt_path in $LIB
  9753. do
  9754. IFS=$lt_save_ifs
  9755. # Let DOS variable expansion print the short 8.3 style file name.
  9756. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9757. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9758. done
  9759. IFS=$lt_save_ifs
  9760. # Convert to MSYS style.
  9761. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9762. ;;
  9763. cygwin*)
  9764. # Convert to unix form, then to dos form, then back to unix form
  9765. # but this time dos style (no spaces!) so that the unix form looks
  9766. # like /cygdrive/c/PROGRA~1:/cygdr...
  9767. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9768. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9769. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9770. ;;
  9771. *)
  9772. sys_lib_search_path_spec="$LIB"
  9773. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9774. # It is most probably a Windows format PATH.
  9775. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9776. else
  9777. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9778. fi
  9779. # FIXME: find the short name or the path components, as spaces are
  9780. # common. (e.g. "Program Files" -> "PROGRA~1")
  9781. ;;
  9782. esac
  9783. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9784. postinstall_cmds='base_file=`basename \${file}`~
  9785. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9786. dldir=$destdir/`dirname \$dlpath`~
  9787. test -d \$dldir || mkdir -p \$dldir~
  9788. $install_prog $dir/$dlname \$dldir/$dlname'
  9789. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9790. dlpath=$dir/\$dldll~
  9791. $RM \$dlpath'
  9792. shlibpath_overrides_runpath=yes
  9793. dynamic_linker='Win32 link.exe'
  9794. ;;
  9795. *)
  9796. # Assume MSVC wrapper
  9797. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9798. dynamic_linker='Win32 ld.exe'
  9799. ;;
  9800. esac
  9801. # FIXME: first we should search . and the directory the executable is in
  9802. shlibpath_var=PATH
  9803. ;;
  9804. darwin* | rhapsody*)
  9805. dynamic_linker="$host_os dyld"
  9806. version_type=darwin
  9807. need_lib_prefix=no
  9808. need_version=no
  9809. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9810. soname_spec='${libname}${release}${major}$shared_ext'
  9811. shlibpath_overrides_runpath=yes
  9812. shlibpath_var=DYLD_LIBRARY_PATH
  9813. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9814. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9815. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9816. ;;
  9817. dgux*)
  9818. version_type=linux # correct to gnu/linux during the next big refactor
  9819. need_lib_prefix=no
  9820. need_version=no
  9821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9822. soname_spec='${libname}${release}${shared_ext}$major'
  9823. shlibpath_var=LD_LIBRARY_PATH
  9824. ;;
  9825. freebsd* | dragonfly*)
  9826. # DragonFly does not have aout. When/if they implement a new
  9827. # versioning mechanism, adjust this.
  9828. if test -x /usr/bin/objformat; then
  9829. objformat=`/usr/bin/objformat`
  9830. else
  9831. case $host_os in
  9832. freebsd[23].*) objformat=aout ;;
  9833. *) objformat=elf ;;
  9834. esac
  9835. fi
  9836. version_type=freebsd-$objformat
  9837. case $version_type in
  9838. freebsd-elf*)
  9839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9840. need_version=no
  9841. need_lib_prefix=no
  9842. ;;
  9843. freebsd-*)
  9844. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9845. need_version=yes
  9846. ;;
  9847. esac
  9848. shlibpath_var=LD_LIBRARY_PATH
  9849. case $host_os in
  9850. freebsd2.*)
  9851. shlibpath_overrides_runpath=yes
  9852. ;;
  9853. freebsd3.[01]* | freebsdelf3.[01]*)
  9854. shlibpath_overrides_runpath=yes
  9855. hardcode_into_libs=yes
  9856. ;;
  9857. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9858. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9859. shlibpath_overrides_runpath=no
  9860. hardcode_into_libs=yes
  9861. ;;
  9862. *) # from 4.6 on, and DragonFly
  9863. shlibpath_overrides_runpath=yes
  9864. hardcode_into_libs=yes
  9865. ;;
  9866. esac
  9867. ;;
  9868. gnu*)
  9869. version_type=linux # correct to gnu/linux during the next big refactor
  9870. need_lib_prefix=no
  9871. need_version=no
  9872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9873. soname_spec='${libname}${release}${shared_ext}$major'
  9874. shlibpath_var=LD_LIBRARY_PATH
  9875. shlibpath_overrides_runpath=no
  9876. hardcode_into_libs=yes
  9877. ;;
  9878. haiku*)
  9879. version_type=linux # correct to gnu/linux during the next big refactor
  9880. need_lib_prefix=no
  9881. need_version=no
  9882. dynamic_linker="$host_os runtime_loader"
  9883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9884. soname_spec='${libname}${release}${shared_ext}$major'
  9885. shlibpath_var=LIBRARY_PATH
  9886. shlibpath_overrides_runpath=yes
  9887. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9888. hardcode_into_libs=yes
  9889. ;;
  9890. hpux9* | hpux10* | hpux11*)
  9891. # Give a soname corresponding to the major version so that dld.sl refuses to
  9892. # link against other versions.
  9893. version_type=sunos
  9894. need_lib_prefix=no
  9895. need_version=no
  9896. case $host_cpu in
  9897. ia64*)
  9898. shrext_cmds='.so'
  9899. hardcode_into_libs=yes
  9900. dynamic_linker="$host_os dld.so"
  9901. shlibpath_var=LD_LIBRARY_PATH
  9902. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9903. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9904. soname_spec='${libname}${release}${shared_ext}$major'
  9905. if test "X$HPUX_IA64_MODE" = X32; then
  9906. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9907. else
  9908. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9909. fi
  9910. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9911. ;;
  9912. hppa*64*)
  9913. shrext_cmds='.sl'
  9914. hardcode_into_libs=yes
  9915. dynamic_linker="$host_os dld.sl"
  9916. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9917. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9919. soname_spec='${libname}${release}${shared_ext}$major'
  9920. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9921. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9922. ;;
  9923. *)
  9924. shrext_cmds='.sl'
  9925. dynamic_linker="$host_os dld.sl"
  9926. shlibpath_var=SHLIB_PATH
  9927. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9929. soname_spec='${libname}${release}${shared_ext}$major'
  9930. ;;
  9931. esac
  9932. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9933. postinstall_cmds='chmod 555 $lib'
  9934. # or fails outright, so override atomically:
  9935. install_override_mode=555
  9936. ;;
  9937. interix[3-9]*)
  9938. version_type=linux # correct to gnu/linux during the next big refactor
  9939. need_lib_prefix=no
  9940. need_version=no
  9941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9942. soname_spec='${libname}${release}${shared_ext}$major'
  9943. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9944. shlibpath_var=LD_LIBRARY_PATH
  9945. shlibpath_overrides_runpath=no
  9946. hardcode_into_libs=yes
  9947. ;;
  9948. irix5* | irix6* | nonstopux*)
  9949. case $host_os in
  9950. nonstopux*) version_type=nonstopux ;;
  9951. *)
  9952. if test "$lt_cv_prog_gnu_ld" = yes; then
  9953. version_type=linux # correct to gnu/linux during the next big refactor
  9954. else
  9955. version_type=irix
  9956. fi ;;
  9957. esac
  9958. need_lib_prefix=no
  9959. need_version=no
  9960. soname_spec='${libname}${release}${shared_ext}$major'
  9961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9962. case $host_os in
  9963. irix5* | nonstopux*)
  9964. libsuff= shlibsuff=
  9965. ;;
  9966. *)
  9967. case $LD in # libtool.m4 will add one of these switches to LD
  9968. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9969. libsuff= shlibsuff= libmagic=32-bit;;
  9970. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9971. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9972. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9973. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9974. *) libsuff= shlibsuff= libmagic=never-match;;
  9975. esac
  9976. ;;
  9977. esac
  9978. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9979. shlibpath_overrides_runpath=no
  9980. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9981. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9982. hardcode_into_libs=yes
  9983. ;;
  9984. # No shared lib support for Linux oldld, aout, or coff.
  9985. linux*oldld* | linux*aout* | linux*coff*)
  9986. dynamic_linker=no
  9987. ;;
  9988. # This must be glibc/ELF.
  9989. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9990. version_type=linux # correct to gnu/linux during the next big refactor
  9991. need_lib_prefix=no
  9992. need_version=no
  9993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9994. soname_spec='${libname}${release}${shared_ext}$major'
  9995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. shlibpath_overrides_runpath=no
  9998. # Some binutils ld are patched to set DT_RUNPATH
  9999. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10000. $as_echo_n "(cached) " >&6
  10001. else
  10002. lt_cv_shlibpath_overrides_runpath=no
  10003. save_LDFLAGS=$LDFLAGS
  10004. save_libdir=$libdir
  10005. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10006. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10008. /* end confdefs.h. */
  10009. int
  10010. main ()
  10011. {
  10012. ;
  10013. return 0;
  10014. }
  10015. _ACEOF
  10016. if ac_fn_c_try_link "$LINENO"; then :
  10017. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10018. lt_cv_shlibpath_overrides_runpath=yes
  10019. fi
  10020. fi
  10021. rm -f core conftest.err conftest.$ac_objext \
  10022. conftest$ac_exeext conftest.$ac_ext
  10023. LDFLAGS=$save_LDFLAGS
  10024. libdir=$save_libdir
  10025. fi
  10026. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10027. # This implies no fast_install, which is unacceptable.
  10028. # Some rework will be needed to allow for fast_install
  10029. # before this can be enabled.
  10030. hardcode_into_libs=yes
  10031. # Add ABI-specific directories to the system library path.
  10032. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10033. # Append ld.so.conf contents to the search path
  10034. if test -f /etc/ld.so.conf; then
  10035. 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' ' '`
  10036. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10037. fi
  10038. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10039. # powerpc, because MkLinux only supported shared libraries with the
  10040. # GNU dynamic linker. Since this was broken with cross compilers,
  10041. # most powerpc-linux boxes support dynamic linking these days and
  10042. # people can always --disable-shared, the test was removed, and we
  10043. # assume the GNU/Linux dynamic linker is in use.
  10044. dynamic_linker='GNU/Linux ld.so'
  10045. ;;
  10046. netbsd*)
  10047. version_type=sunos
  10048. need_lib_prefix=no
  10049. need_version=no
  10050. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10052. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10053. dynamic_linker='NetBSD (a.out) ld.so'
  10054. else
  10055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10056. soname_spec='${libname}${release}${shared_ext}$major'
  10057. dynamic_linker='NetBSD ld.elf_so'
  10058. fi
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. shlibpath_overrides_runpath=yes
  10061. hardcode_into_libs=yes
  10062. ;;
  10063. newsos6)
  10064. version_type=linux # correct to gnu/linux during the next big refactor
  10065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10066. shlibpath_var=LD_LIBRARY_PATH
  10067. shlibpath_overrides_runpath=yes
  10068. ;;
  10069. *nto* | *qnx*)
  10070. version_type=qnx
  10071. need_lib_prefix=no
  10072. need_version=no
  10073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10074. soname_spec='${libname}${release}${shared_ext}$major'
  10075. shlibpath_var=LD_LIBRARY_PATH
  10076. shlibpath_overrides_runpath=no
  10077. hardcode_into_libs=yes
  10078. dynamic_linker='ldqnx.so'
  10079. ;;
  10080. openbsd*)
  10081. version_type=sunos
  10082. sys_lib_dlsearch_path_spec="/usr/lib"
  10083. need_lib_prefix=no
  10084. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10085. case $host_os in
  10086. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10087. *) need_version=no ;;
  10088. esac
  10089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10090. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10091. shlibpath_var=LD_LIBRARY_PATH
  10092. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10093. case $host_os in
  10094. openbsd2.[89] | openbsd2.[89].*)
  10095. shlibpath_overrides_runpath=no
  10096. ;;
  10097. *)
  10098. shlibpath_overrides_runpath=yes
  10099. ;;
  10100. esac
  10101. else
  10102. shlibpath_overrides_runpath=yes
  10103. fi
  10104. ;;
  10105. os2*)
  10106. libname_spec='$name'
  10107. shrext_cmds=".dll"
  10108. need_lib_prefix=no
  10109. library_names_spec='$libname${shared_ext} $libname.a'
  10110. dynamic_linker='OS/2 ld.exe'
  10111. shlibpath_var=LIBPATH
  10112. ;;
  10113. osf3* | osf4* | osf5*)
  10114. version_type=osf
  10115. need_lib_prefix=no
  10116. need_version=no
  10117. soname_spec='${libname}${release}${shared_ext}$major'
  10118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10119. shlibpath_var=LD_LIBRARY_PATH
  10120. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10121. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10122. ;;
  10123. rdos*)
  10124. dynamic_linker=no
  10125. ;;
  10126. solaris*)
  10127. version_type=linux # correct to gnu/linux during the next big refactor
  10128. need_lib_prefix=no
  10129. need_version=no
  10130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10131. soname_spec='${libname}${release}${shared_ext}$major'
  10132. shlibpath_var=LD_LIBRARY_PATH
  10133. shlibpath_overrides_runpath=yes
  10134. hardcode_into_libs=yes
  10135. # ldd complains unless libraries are executable
  10136. postinstall_cmds='chmod +x $lib'
  10137. ;;
  10138. sunos4*)
  10139. version_type=sunos
  10140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10141. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10142. shlibpath_var=LD_LIBRARY_PATH
  10143. shlibpath_overrides_runpath=yes
  10144. if test "$with_gnu_ld" = yes; then
  10145. need_lib_prefix=no
  10146. fi
  10147. need_version=yes
  10148. ;;
  10149. sysv4 | sysv4.3*)
  10150. version_type=linux # correct to gnu/linux during the next big refactor
  10151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10152. soname_spec='${libname}${release}${shared_ext}$major'
  10153. shlibpath_var=LD_LIBRARY_PATH
  10154. case $host_vendor in
  10155. sni)
  10156. shlibpath_overrides_runpath=no
  10157. need_lib_prefix=no
  10158. runpath_var=LD_RUN_PATH
  10159. ;;
  10160. siemens)
  10161. need_lib_prefix=no
  10162. ;;
  10163. motorola)
  10164. need_lib_prefix=no
  10165. need_version=no
  10166. shlibpath_overrides_runpath=no
  10167. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10168. ;;
  10169. esac
  10170. ;;
  10171. sysv4*MP*)
  10172. if test -d /usr/nec ;then
  10173. version_type=linux # correct to gnu/linux during the next big refactor
  10174. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10175. soname_spec='$libname${shared_ext}.$major'
  10176. shlibpath_var=LD_LIBRARY_PATH
  10177. fi
  10178. ;;
  10179. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10180. version_type=freebsd-elf
  10181. need_lib_prefix=no
  10182. need_version=no
  10183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10184. soname_spec='${libname}${release}${shared_ext}$major'
  10185. shlibpath_var=LD_LIBRARY_PATH
  10186. shlibpath_overrides_runpath=yes
  10187. hardcode_into_libs=yes
  10188. if test "$with_gnu_ld" = yes; then
  10189. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10190. else
  10191. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10192. case $host_os in
  10193. sco3.2v5*)
  10194. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10195. ;;
  10196. esac
  10197. fi
  10198. sys_lib_dlsearch_path_spec='/usr/lib'
  10199. ;;
  10200. tpf*)
  10201. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10202. version_type=linux # correct to gnu/linux during the next big refactor
  10203. need_lib_prefix=no
  10204. need_version=no
  10205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. shlibpath_overrides_runpath=no
  10208. hardcode_into_libs=yes
  10209. ;;
  10210. uts4*)
  10211. version_type=linux # correct to gnu/linux during the next big refactor
  10212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10213. soname_spec='${libname}${release}${shared_ext}$major'
  10214. shlibpath_var=LD_LIBRARY_PATH
  10215. ;;
  10216. *)
  10217. dynamic_linker=no
  10218. ;;
  10219. esac
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10221. $as_echo "$dynamic_linker" >&6; }
  10222. test "$dynamic_linker" = no && can_build_shared=no
  10223. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10224. if test "$GCC" = yes; then
  10225. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10226. fi
  10227. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10228. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10229. fi
  10230. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10231. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10232. fi
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10234. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10235. hardcode_action=
  10236. if test -n "$hardcode_libdir_flag_spec" ||
  10237. test -n "$runpath_var" ||
  10238. test "X$hardcode_automatic" = "Xyes" ; then
  10239. # We can hardcode non-existent directories.
  10240. if test "$hardcode_direct" != no &&
  10241. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10242. # have to relink, otherwise we might link with an installed library
  10243. # when we should be linking with a yet-to-be-installed one
  10244. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10245. test "$hardcode_minus_L" != no; then
  10246. # Linking always hardcodes the temporary library directory.
  10247. hardcode_action=relink
  10248. else
  10249. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10250. hardcode_action=immediate
  10251. fi
  10252. else
  10253. # We cannot hardcode anything, or else we can only hardcode existing
  10254. # directories.
  10255. hardcode_action=unsupported
  10256. fi
  10257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10258. $as_echo "$hardcode_action" >&6; }
  10259. if test "$hardcode_action" = relink ||
  10260. test "$inherit_rpath" = yes; then
  10261. # Fast installation is not supported
  10262. enable_fast_install=no
  10263. elif test "$shlibpath_overrides_runpath" = yes ||
  10264. test "$enable_shared" = no; then
  10265. # Fast installation is not necessary
  10266. enable_fast_install=needless
  10267. fi
  10268. if test "x$enable_dlopen" != xyes; then
  10269. enable_dlopen=unknown
  10270. enable_dlopen_self=unknown
  10271. enable_dlopen_self_static=unknown
  10272. else
  10273. lt_cv_dlopen=no
  10274. lt_cv_dlopen_libs=
  10275. case $host_os in
  10276. beos*)
  10277. lt_cv_dlopen="load_add_on"
  10278. lt_cv_dlopen_libs=
  10279. lt_cv_dlopen_self=yes
  10280. ;;
  10281. mingw* | pw32* | cegcc*)
  10282. lt_cv_dlopen="LoadLibrary"
  10283. lt_cv_dlopen_libs=
  10284. ;;
  10285. cygwin*)
  10286. lt_cv_dlopen="dlopen"
  10287. lt_cv_dlopen_libs=
  10288. ;;
  10289. darwin*)
  10290. # if libdl is installed we need to link against it
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10292. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10293. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. ac_check_lib_save_LIBS=$LIBS
  10297. LIBS="-ldl $LIBS"
  10298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10299. /* end confdefs.h. */
  10300. /* Override any GCC internal prototype to avoid an error.
  10301. Use char because int might match the return type of a GCC
  10302. builtin and then its argument prototype would still apply. */
  10303. #ifdef __cplusplus
  10304. extern "C"
  10305. #endif
  10306. char dlopen ();
  10307. int
  10308. main ()
  10309. {
  10310. return dlopen ();
  10311. ;
  10312. return 0;
  10313. }
  10314. _ACEOF
  10315. if ac_fn_c_try_link "$LINENO"; then :
  10316. ac_cv_lib_dl_dlopen=yes
  10317. else
  10318. ac_cv_lib_dl_dlopen=no
  10319. fi
  10320. rm -f core conftest.err conftest.$ac_objext \
  10321. conftest$ac_exeext conftest.$ac_ext
  10322. LIBS=$ac_check_lib_save_LIBS
  10323. fi
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10325. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10326. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10327. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10328. else
  10329. lt_cv_dlopen="dyld"
  10330. lt_cv_dlopen_libs=
  10331. lt_cv_dlopen_self=yes
  10332. fi
  10333. ;;
  10334. *)
  10335. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10336. if test "x$ac_cv_func_shl_load" = xyes; then :
  10337. lt_cv_dlopen="shl_load"
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10340. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10341. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. ac_check_lib_save_LIBS=$LIBS
  10345. LIBS="-ldld $LIBS"
  10346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10347. /* end confdefs.h. */
  10348. /* Override any GCC internal prototype to avoid an error.
  10349. Use char because int might match the return type of a GCC
  10350. builtin and then its argument prototype would still apply. */
  10351. #ifdef __cplusplus
  10352. extern "C"
  10353. #endif
  10354. char shl_load ();
  10355. int
  10356. main ()
  10357. {
  10358. return shl_load ();
  10359. ;
  10360. return 0;
  10361. }
  10362. _ACEOF
  10363. if ac_fn_c_try_link "$LINENO"; then :
  10364. ac_cv_lib_dld_shl_load=yes
  10365. else
  10366. ac_cv_lib_dld_shl_load=no
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. LIBS=$ac_check_lib_save_LIBS
  10371. fi
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10373. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10374. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10375. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10376. else
  10377. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10378. if test "x$ac_cv_func_dlopen" = xyes; then :
  10379. lt_cv_dlopen="dlopen"
  10380. else
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10382. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10383. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10384. $as_echo_n "(cached) " >&6
  10385. else
  10386. ac_check_lib_save_LIBS=$LIBS
  10387. LIBS="-ldl $LIBS"
  10388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10389. /* end confdefs.h. */
  10390. /* Override any GCC internal prototype to avoid an error.
  10391. Use char because int might match the return type of a GCC
  10392. builtin and then its argument prototype would still apply. */
  10393. #ifdef __cplusplus
  10394. extern "C"
  10395. #endif
  10396. char dlopen ();
  10397. int
  10398. main ()
  10399. {
  10400. return dlopen ();
  10401. ;
  10402. return 0;
  10403. }
  10404. _ACEOF
  10405. if ac_fn_c_try_link "$LINENO"; then :
  10406. ac_cv_lib_dl_dlopen=yes
  10407. else
  10408. ac_cv_lib_dl_dlopen=no
  10409. fi
  10410. rm -f core conftest.err conftest.$ac_objext \
  10411. conftest$ac_exeext conftest.$ac_ext
  10412. LIBS=$ac_check_lib_save_LIBS
  10413. fi
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10415. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10416. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10417. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10418. else
  10419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10420. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10421. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10422. $as_echo_n "(cached) " >&6
  10423. else
  10424. ac_check_lib_save_LIBS=$LIBS
  10425. LIBS="-lsvld $LIBS"
  10426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10427. /* end confdefs.h. */
  10428. /* Override any GCC internal prototype to avoid an error.
  10429. Use char because int might match the return type of a GCC
  10430. builtin and then its argument prototype would still apply. */
  10431. #ifdef __cplusplus
  10432. extern "C"
  10433. #endif
  10434. char dlopen ();
  10435. int
  10436. main ()
  10437. {
  10438. return dlopen ();
  10439. ;
  10440. return 0;
  10441. }
  10442. _ACEOF
  10443. if ac_fn_c_try_link "$LINENO"; then :
  10444. ac_cv_lib_svld_dlopen=yes
  10445. else
  10446. ac_cv_lib_svld_dlopen=no
  10447. fi
  10448. rm -f core conftest.err conftest.$ac_objext \
  10449. conftest$ac_exeext conftest.$ac_ext
  10450. LIBS=$ac_check_lib_save_LIBS
  10451. fi
  10452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10453. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10454. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10455. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10456. else
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10458. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10459. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. ac_check_lib_save_LIBS=$LIBS
  10463. LIBS="-ldld $LIBS"
  10464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10465. /* end confdefs.h. */
  10466. /* Override any GCC internal prototype to avoid an error.
  10467. Use char because int might match the return type of a GCC
  10468. builtin and then its argument prototype would still apply. */
  10469. #ifdef __cplusplus
  10470. extern "C"
  10471. #endif
  10472. char dld_link ();
  10473. int
  10474. main ()
  10475. {
  10476. return dld_link ();
  10477. ;
  10478. return 0;
  10479. }
  10480. _ACEOF
  10481. if ac_fn_c_try_link "$LINENO"; then :
  10482. ac_cv_lib_dld_dld_link=yes
  10483. else
  10484. ac_cv_lib_dld_dld_link=no
  10485. fi
  10486. rm -f core conftest.err conftest.$ac_objext \
  10487. conftest$ac_exeext conftest.$ac_ext
  10488. LIBS=$ac_check_lib_save_LIBS
  10489. fi
  10490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10491. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10492. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10493. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10494. fi
  10495. fi
  10496. fi
  10497. fi
  10498. fi
  10499. fi
  10500. ;;
  10501. esac
  10502. if test "x$lt_cv_dlopen" != xno; then
  10503. enable_dlopen=yes
  10504. else
  10505. enable_dlopen=no
  10506. fi
  10507. case $lt_cv_dlopen in
  10508. dlopen)
  10509. save_CPPFLAGS="$CPPFLAGS"
  10510. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10511. save_LDFLAGS="$LDFLAGS"
  10512. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10513. save_LIBS="$LIBS"
  10514. LIBS="$lt_cv_dlopen_libs $LIBS"
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10516. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10517. if ${lt_cv_dlopen_self+:} false; then :
  10518. $as_echo_n "(cached) " >&6
  10519. else
  10520. if test "$cross_compiling" = yes; then :
  10521. lt_cv_dlopen_self=cross
  10522. else
  10523. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10524. lt_status=$lt_dlunknown
  10525. cat > conftest.$ac_ext <<_LT_EOF
  10526. #line $LINENO "configure"
  10527. #include "confdefs.h"
  10528. #if HAVE_DLFCN_H
  10529. #include <dlfcn.h>
  10530. #endif
  10531. #include <stdio.h>
  10532. #ifdef RTLD_GLOBAL
  10533. # define LT_DLGLOBAL RTLD_GLOBAL
  10534. #else
  10535. # ifdef DL_GLOBAL
  10536. # define LT_DLGLOBAL DL_GLOBAL
  10537. # else
  10538. # define LT_DLGLOBAL 0
  10539. # endif
  10540. #endif
  10541. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10542. find out it does not work in some platform. */
  10543. #ifndef LT_DLLAZY_OR_NOW
  10544. # ifdef RTLD_LAZY
  10545. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10546. # else
  10547. # ifdef DL_LAZY
  10548. # define LT_DLLAZY_OR_NOW DL_LAZY
  10549. # else
  10550. # ifdef RTLD_NOW
  10551. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10552. # else
  10553. # ifdef DL_NOW
  10554. # define LT_DLLAZY_OR_NOW DL_NOW
  10555. # else
  10556. # define LT_DLLAZY_OR_NOW 0
  10557. # endif
  10558. # endif
  10559. # endif
  10560. # endif
  10561. #endif
  10562. /* When -fvisbility=hidden is used, assume the code has been annotated
  10563. correspondingly for the symbols needed. */
  10564. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10565. int fnord () __attribute__((visibility("default")));
  10566. #endif
  10567. int fnord () { return 42; }
  10568. int main ()
  10569. {
  10570. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10571. int status = $lt_dlunknown;
  10572. if (self)
  10573. {
  10574. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10575. else
  10576. {
  10577. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10578. else puts (dlerror ());
  10579. }
  10580. /* dlclose (self); */
  10581. }
  10582. else
  10583. puts (dlerror ());
  10584. return status;
  10585. }
  10586. _LT_EOF
  10587. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10588. (eval $ac_link) 2>&5
  10589. ac_status=$?
  10590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10591. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10592. (./conftest; exit; ) >&5 2>/dev/null
  10593. lt_status=$?
  10594. case x$lt_status in
  10595. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10596. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10597. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10598. esac
  10599. else :
  10600. # compilation failed
  10601. lt_cv_dlopen_self=no
  10602. fi
  10603. fi
  10604. rm -fr conftest*
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10607. $as_echo "$lt_cv_dlopen_self" >&6; }
  10608. if test "x$lt_cv_dlopen_self" = xyes; then
  10609. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10611. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10612. if ${lt_cv_dlopen_self_static+:} false; then :
  10613. $as_echo_n "(cached) " >&6
  10614. else
  10615. if test "$cross_compiling" = yes; then :
  10616. lt_cv_dlopen_self_static=cross
  10617. else
  10618. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10619. lt_status=$lt_dlunknown
  10620. cat > conftest.$ac_ext <<_LT_EOF
  10621. #line $LINENO "configure"
  10622. #include "confdefs.h"
  10623. #if HAVE_DLFCN_H
  10624. #include <dlfcn.h>
  10625. #endif
  10626. #include <stdio.h>
  10627. #ifdef RTLD_GLOBAL
  10628. # define LT_DLGLOBAL RTLD_GLOBAL
  10629. #else
  10630. # ifdef DL_GLOBAL
  10631. # define LT_DLGLOBAL DL_GLOBAL
  10632. # else
  10633. # define LT_DLGLOBAL 0
  10634. # endif
  10635. #endif
  10636. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10637. find out it does not work in some platform. */
  10638. #ifndef LT_DLLAZY_OR_NOW
  10639. # ifdef RTLD_LAZY
  10640. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10641. # else
  10642. # ifdef DL_LAZY
  10643. # define LT_DLLAZY_OR_NOW DL_LAZY
  10644. # else
  10645. # ifdef RTLD_NOW
  10646. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10647. # else
  10648. # ifdef DL_NOW
  10649. # define LT_DLLAZY_OR_NOW DL_NOW
  10650. # else
  10651. # define LT_DLLAZY_OR_NOW 0
  10652. # endif
  10653. # endif
  10654. # endif
  10655. # endif
  10656. #endif
  10657. /* When -fvisbility=hidden is used, assume the code has been annotated
  10658. correspondingly for the symbols needed. */
  10659. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10660. int fnord () __attribute__((visibility("default")));
  10661. #endif
  10662. int fnord () { return 42; }
  10663. int main ()
  10664. {
  10665. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10666. int status = $lt_dlunknown;
  10667. if (self)
  10668. {
  10669. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10670. else
  10671. {
  10672. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10673. else puts (dlerror ());
  10674. }
  10675. /* dlclose (self); */
  10676. }
  10677. else
  10678. puts (dlerror ());
  10679. return status;
  10680. }
  10681. _LT_EOF
  10682. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10683. (eval $ac_link) 2>&5
  10684. ac_status=$?
  10685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10686. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10687. (./conftest; exit; ) >&5 2>/dev/null
  10688. lt_status=$?
  10689. case x$lt_status in
  10690. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10691. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10692. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10693. esac
  10694. else :
  10695. # compilation failed
  10696. lt_cv_dlopen_self_static=no
  10697. fi
  10698. fi
  10699. rm -fr conftest*
  10700. fi
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10702. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10703. fi
  10704. CPPFLAGS="$save_CPPFLAGS"
  10705. LDFLAGS="$save_LDFLAGS"
  10706. LIBS="$save_LIBS"
  10707. ;;
  10708. esac
  10709. case $lt_cv_dlopen_self in
  10710. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10711. *) enable_dlopen_self=unknown ;;
  10712. esac
  10713. case $lt_cv_dlopen_self_static in
  10714. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10715. *) enable_dlopen_self_static=unknown ;;
  10716. esac
  10717. fi
  10718. striplib=
  10719. old_striplib=
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10721. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10722. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10723. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10724. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10726. $as_echo "yes" >&6; }
  10727. else
  10728. # FIXME - insert some real tests, host_os isn't really good enough
  10729. case $host_os in
  10730. darwin*)
  10731. if test -n "$STRIP" ; then
  10732. striplib="$STRIP -x"
  10733. old_striplib="$STRIP -S"
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10735. $as_echo "yes" >&6; }
  10736. else
  10737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10738. $as_echo "no" >&6; }
  10739. fi
  10740. ;;
  10741. *)
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10743. $as_echo "no" >&6; }
  10744. ;;
  10745. esac
  10746. fi
  10747. # Report which library types will actually be built
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10749. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10751. $as_echo "$can_build_shared" >&6; }
  10752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10753. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10754. test "$can_build_shared" = "no" && enable_shared=no
  10755. # On AIX, shared libraries and static libraries use the same namespace, and
  10756. # are all built from PIC.
  10757. case $host_os in
  10758. aix3*)
  10759. test "$enable_shared" = yes && enable_static=no
  10760. if test -n "$RANLIB"; then
  10761. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10762. postinstall_cmds='$RANLIB $lib'
  10763. fi
  10764. ;;
  10765. aix[4-9]*)
  10766. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10767. test "$enable_shared" = yes && enable_static=no
  10768. fi
  10769. ;;
  10770. esac
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10772. $as_echo "$enable_shared" >&6; }
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10774. $as_echo_n "checking whether to build static libraries... " >&6; }
  10775. # Make sure either enable_shared or enable_static is yes.
  10776. test "$enable_shared" = yes || enable_static=yes
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10778. $as_echo "$enable_static" >&6; }
  10779. fi
  10780. ac_ext=c
  10781. ac_cpp='$CPP $CPPFLAGS'
  10782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10785. CC="$lt_save_CC"
  10786. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10787. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10788. (test "X$CXX" != "Xg++"))) ; then
  10789. ac_ext=cpp
  10790. ac_cpp='$CXXCPP $CPPFLAGS'
  10791. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10792. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10793. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10795. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10796. if test -z "$CXXCPP"; then
  10797. if ${ac_cv_prog_CXXCPP+:} false; then :
  10798. $as_echo_n "(cached) " >&6
  10799. else
  10800. # Double quotes because CXXCPP needs to be expanded
  10801. for CXXCPP in "$CXX -E" "/lib/cpp"
  10802. do
  10803. ac_preproc_ok=false
  10804. for ac_cxx_preproc_warn_flag in '' yes
  10805. do
  10806. # Use a header file that comes with gcc, so configuring glibc
  10807. # with a fresh cross-compiler works.
  10808. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10809. # <limits.h> exists even on freestanding compilers.
  10810. # On the NeXT, cc -E runs the code through the compiler's parser,
  10811. # not just through cpp. "Syntax error" is here to catch this case.
  10812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10813. /* end confdefs.h. */
  10814. #ifdef __STDC__
  10815. # include <limits.h>
  10816. #else
  10817. # include <assert.h>
  10818. #endif
  10819. Syntax error
  10820. _ACEOF
  10821. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10822. else
  10823. # Broken: fails on valid input.
  10824. continue
  10825. fi
  10826. rm -f conftest.err conftest.i conftest.$ac_ext
  10827. # OK, works on sane cases. Now check whether nonexistent headers
  10828. # can be detected and how.
  10829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10830. /* end confdefs.h. */
  10831. #include <ac_nonexistent.h>
  10832. _ACEOF
  10833. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10834. # Broken: success on invalid input.
  10835. continue
  10836. else
  10837. # Passes both tests.
  10838. ac_preproc_ok=:
  10839. break
  10840. fi
  10841. rm -f conftest.err conftest.i conftest.$ac_ext
  10842. done
  10843. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10844. rm -f conftest.i conftest.err conftest.$ac_ext
  10845. if $ac_preproc_ok; then :
  10846. break
  10847. fi
  10848. done
  10849. ac_cv_prog_CXXCPP=$CXXCPP
  10850. fi
  10851. CXXCPP=$ac_cv_prog_CXXCPP
  10852. else
  10853. ac_cv_prog_CXXCPP=$CXXCPP
  10854. fi
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10856. $as_echo "$CXXCPP" >&6; }
  10857. ac_preproc_ok=false
  10858. for ac_cxx_preproc_warn_flag in '' yes
  10859. do
  10860. # Use a header file that comes with gcc, so configuring glibc
  10861. # with a fresh cross-compiler works.
  10862. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10863. # <limits.h> exists even on freestanding compilers.
  10864. # On the NeXT, cc -E runs the code through the compiler's parser,
  10865. # not just through cpp. "Syntax error" is here to catch this case.
  10866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10867. /* end confdefs.h. */
  10868. #ifdef __STDC__
  10869. # include <limits.h>
  10870. #else
  10871. # include <assert.h>
  10872. #endif
  10873. Syntax error
  10874. _ACEOF
  10875. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10876. else
  10877. # Broken: fails on valid input.
  10878. continue
  10879. fi
  10880. rm -f conftest.err conftest.i conftest.$ac_ext
  10881. # OK, works on sane cases. Now check whether nonexistent headers
  10882. # can be detected and how.
  10883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10884. /* end confdefs.h. */
  10885. #include <ac_nonexistent.h>
  10886. _ACEOF
  10887. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10888. # Broken: success on invalid input.
  10889. continue
  10890. else
  10891. # Passes both tests.
  10892. ac_preproc_ok=:
  10893. break
  10894. fi
  10895. rm -f conftest.err conftest.i conftest.$ac_ext
  10896. done
  10897. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10898. rm -f conftest.i conftest.err conftest.$ac_ext
  10899. if $ac_preproc_ok; then :
  10900. else
  10901. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10903. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10904. See \`config.log' for more details" "$LINENO" 5; }
  10905. fi
  10906. ac_ext=c
  10907. ac_cpp='$CPP $CPPFLAGS'
  10908. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10909. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10910. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10911. else
  10912. _lt_caught_CXX_error=yes
  10913. fi
  10914. ac_ext=cpp
  10915. ac_cpp='$CXXCPP $CPPFLAGS'
  10916. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10917. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10918. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10919. archive_cmds_need_lc_CXX=no
  10920. allow_undefined_flag_CXX=
  10921. always_export_symbols_CXX=no
  10922. archive_expsym_cmds_CXX=
  10923. compiler_needs_object_CXX=no
  10924. export_dynamic_flag_spec_CXX=
  10925. hardcode_direct_CXX=no
  10926. hardcode_direct_absolute_CXX=no
  10927. hardcode_libdir_flag_spec_CXX=
  10928. hardcode_libdir_separator_CXX=
  10929. hardcode_minus_L_CXX=no
  10930. hardcode_shlibpath_var_CXX=unsupported
  10931. hardcode_automatic_CXX=no
  10932. inherit_rpath_CXX=no
  10933. module_cmds_CXX=
  10934. module_expsym_cmds_CXX=
  10935. link_all_deplibs_CXX=unknown
  10936. old_archive_cmds_CXX=$old_archive_cmds
  10937. reload_flag_CXX=$reload_flag
  10938. reload_cmds_CXX=$reload_cmds
  10939. no_undefined_flag_CXX=
  10940. whole_archive_flag_spec_CXX=
  10941. enable_shared_with_static_runtimes_CXX=no
  10942. # Source file extension for C++ test sources.
  10943. ac_ext=cpp
  10944. # Object file extension for compiled C++ test sources.
  10945. objext=o
  10946. objext_CXX=$objext
  10947. # No sense in running all these tests if we already determined that
  10948. # the CXX compiler isn't working. Some variables (like enable_shared)
  10949. # are currently assumed to apply to all compilers on this platform,
  10950. # and will be corrupted by setting them based on a non-working compiler.
  10951. if test "$_lt_caught_CXX_error" != yes; then
  10952. # Code to be used in simple compile tests
  10953. lt_simple_compile_test_code="int some_variable = 0;"
  10954. # Code to be used in simple link tests
  10955. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10956. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10957. # If no C compiler was specified, use CC.
  10958. LTCC=${LTCC-"$CC"}
  10959. # If no C compiler flags were specified, use CFLAGS.
  10960. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10961. # Allow CC to be a program name with arguments.
  10962. compiler=$CC
  10963. # save warnings/boilerplate of simple test code
  10964. ac_outfile=conftest.$ac_objext
  10965. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10966. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10967. _lt_compiler_boilerplate=`cat conftest.err`
  10968. $RM conftest*
  10969. ac_outfile=conftest.$ac_objext
  10970. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10971. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10972. _lt_linker_boilerplate=`cat conftest.err`
  10973. $RM -r conftest*
  10974. # Allow CC to be a program name with arguments.
  10975. lt_save_CC=$CC
  10976. lt_save_CFLAGS=$CFLAGS
  10977. lt_save_LD=$LD
  10978. lt_save_GCC=$GCC
  10979. GCC=$GXX
  10980. lt_save_with_gnu_ld=$with_gnu_ld
  10981. lt_save_path_LD=$lt_cv_path_LD
  10982. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10983. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10984. else
  10985. $as_unset lt_cv_prog_gnu_ld
  10986. fi
  10987. if test -n "${lt_cv_path_LDCXX+set}"; then
  10988. lt_cv_path_LD=$lt_cv_path_LDCXX
  10989. else
  10990. $as_unset lt_cv_path_LD
  10991. fi
  10992. test -z "${LDCXX+set}" || LD=$LDCXX
  10993. CC=${CXX-"c++"}
  10994. CFLAGS=$CXXFLAGS
  10995. compiler=$CC
  10996. compiler_CXX=$CC
  10997. for cc_temp in $compiler""; do
  10998. case $cc_temp in
  10999. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11000. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11001. \-*) ;;
  11002. *) break;;
  11003. esac
  11004. done
  11005. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11006. if test -n "$compiler"; then
  11007. # We don't want -fno-exception when compiling C++ code, so set the
  11008. # no_builtin_flag separately
  11009. if test "$GXX" = yes; then
  11010. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11011. else
  11012. lt_prog_compiler_no_builtin_flag_CXX=
  11013. fi
  11014. if test "$GXX" = yes; then
  11015. # Set up default GNU C++ configuration
  11016. # Check whether --with-gnu-ld was given.
  11017. if test "${with_gnu_ld+set}" = set; then :
  11018. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11019. else
  11020. with_gnu_ld=no
  11021. fi
  11022. ac_prog=ld
  11023. if test "$GCC" = yes; then
  11024. # Check if gcc -print-prog-name=ld gives a path.
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11026. $as_echo_n "checking for ld used by $CC... " >&6; }
  11027. case $host in
  11028. *-*-mingw*)
  11029. # gcc leaves a trailing carriage return which upsets mingw
  11030. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11031. *)
  11032. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11033. esac
  11034. case $ac_prog in
  11035. # Accept absolute paths.
  11036. [\\/]* | ?:[\\/]*)
  11037. re_direlt='/[^/][^/]*/\.\./'
  11038. # Canonicalize the pathname of ld
  11039. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11040. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11041. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11042. done
  11043. test -z "$LD" && LD="$ac_prog"
  11044. ;;
  11045. "")
  11046. # If it fails, then pretend we aren't using GCC.
  11047. ac_prog=ld
  11048. ;;
  11049. *)
  11050. # If it is relative, then search for the first ld in PATH.
  11051. with_gnu_ld=unknown
  11052. ;;
  11053. esac
  11054. elif test "$with_gnu_ld" = yes; then
  11055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11056. $as_echo_n "checking for GNU ld... " >&6; }
  11057. else
  11058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11059. $as_echo_n "checking for non-GNU ld... " >&6; }
  11060. fi
  11061. if ${lt_cv_path_LD+:} false; then :
  11062. $as_echo_n "(cached) " >&6
  11063. else
  11064. if test -z "$LD"; then
  11065. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11066. for ac_dir in $PATH; do
  11067. IFS="$lt_save_ifs"
  11068. test -z "$ac_dir" && ac_dir=.
  11069. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11070. lt_cv_path_LD="$ac_dir/$ac_prog"
  11071. # Check to see if the program is GNU ld. I'd rather use --version,
  11072. # but apparently some variants of GNU ld only accept -v.
  11073. # Break only if it was the GNU/non-GNU ld that we prefer.
  11074. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11075. *GNU* | *'with BFD'*)
  11076. test "$with_gnu_ld" != no && break
  11077. ;;
  11078. *)
  11079. test "$with_gnu_ld" != yes && break
  11080. ;;
  11081. esac
  11082. fi
  11083. done
  11084. IFS="$lt_save_ifs"
  11085. else
  11086. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11087. fi
  11088. fi
  11089. LD="$lt_cv_path_LD"
  11090. if test -n "$LD"; then
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11092. $as_echo "$LD" >&6; }
  11093. else
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11095. $as_echo "no" >&6; }
  11096. fi
  11097. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11099. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11100. if ${lt_cv_prog_gnu_ld+:} false; then :
  11101. $as_echo_n "(cached) " >&6
  11102. else
  11103. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11104. case `$LD -v 2>&1 </dev/null` in
  11105. *GNU* | *'with BFD'*)
  11106. lt_cv_prog_gnu_ld=yes
  11107. ;;
  11108. *)
  11109. lt_cv_prog_gnu_ld=no
  11110. ;;
  11111. esac
  11112. fi
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11114. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11115. with_gnu_ld=$lt_cv_prog_gnu_ld
  11116. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11117. # archiving commands below assume that GNU ld is being used.
  11118. if test "$with_gnu_ld" = yes; then
  11119. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11120. 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'
  11121. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11122. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11123. # If archive_cmds runs LD, not CC, wlarc should be empty
  11124. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11125. # investigate it a little bit more. (MM)
  11126. wlarc='${wl}'
  11127. # ancient GNU ld didn't support --whole-archive et. al.
  11128. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11129. $GREP 'no-whole-archive' > /dev/null; then
  11130. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11131. else
  11132. whole_archive_flag_spec_CXX=
  11133. fi
  11134. else
  11135. with_gnu_ld=no
  11136. wlarc=
  11137. # A generic and very simple default shared library creation
  11138. # command for GNU C++ for the case where it uses the native
  11139. # linker, instead of GNU ld. If possible, this setting should
  11140. # overridden to take advantage of the native linker features on
  11141. # the platform it is being used on.
  11142. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11143. fi
  11144. # Commands to make compiler produce verbose output that lists
  11145. # what "hidden" libraries, object files and flags are used when
  11146. # linking a shared library.
  11147. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11148. else
  11149. GXX=no
  11150. with_gnu_ld=no
  11151. wlarc=
  11152. fi
  11153. # PORTME: fill in a description of your system's C++ link characteristics
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11155. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11156. ld_shlibs_CXX=yes
  11157. case $host_os in
  11158. aix3*)
  11159. # FIXME: insert proper C++ library support
  11160. ld_shlibs_CXX=no
  11161. ;;
  11162. aix[4-9]*)
  11163. if test "$host_cpu" = ia64; then
  11164. # On IA64, the linker does run time linking by default, so we don't
  11165. # have to do anything special.
  11166. aix_use_runtimelinking=no
  11167. exp_sym_flag='-Bexport'
  11168. no_entry_flag=""
  11169. else
  11170. aix_use_runtimelinking=no
  11171. # Test if we are trying to use run time linking or normal
  11172. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11173. # need to do runtime linking.
  11174. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11175. for ld_flag in $LDFLAGS; do
  11176. case $ld_flag in
  11177. *-brtl*)
  11178. aix_use_runtimelinking=yes
  11179. break
  11180. ;;
  11181. esac
  11182. done
  11183. ;;
  11184. esac
  11185. exp_sym_flag='-bexport'
  11186. no_entry_flag='-bnoentry'
  11187. fi
  11188. # When large executables or shared objects are built, AIX ld can
  11189. # have problems creating the table of contents. If linking a library
  11190. # or program results in "error TOC overflow" add -mminimal-toc to
  11191. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11192. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11193. archive_cmds_CXX=''
  11194. hardcode_direct_CXX=yes
  11195. hardcode_direct_absolute_CXX=yes
  11196. hardcode_libdir_separator_CXX=':'
  11197. link_all_deplibs_CXX=yes
  11198. file_list_spec_CXX='${wl}-f,'
  11199. if test "$GXX" = yes; then
  11200. case $host_os in aix4.[012]|aix4.[012].*)
  11201. # We only want to do this on AIX 4.2 and lower, the check
  11202. # below for broken collect2 doesn't work under 4.3+
  11203. collect2name=`${CC} -print-prog-name=collect2`
  11204. if test -f "$collect2name" &&
  11205. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11206. then
  11207. # We have reworked collect2
  11208. :
  11209. else
  11210. # We have old collect2
  11211. hardcode_direct_CXX=unsupported
  11212. # It fails to find uninstalled libraries when the uninstalled
  11213. # path is not listed in the libpath. Setting hardcode_minus_L
  11214. # to unsupported forces relinking
  11215. hardcode_minus_L_CXX=yes
  11216. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11217. hardcode_libdir_separator_CXX=
  11218. fi
  11219. esac
  11220. shared_flag='-shared'
  11221. if test "$aix_use_runtimelinking" = yes; then
  11222. shared_flag="$shared_flag "'${wl}-G'
  11223. fi
  11224. else
  11225. # not using gcc
  11226. if test "$host_cpu" = ia64; then
  11227. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11228. # chokes on -Wl,-G. The following line is correct:
  11229. shared_flag='-G'
  11230. else
  11231. if test "$aix_use_runtimelinking" = yes; then
  11232. shared_flag='${wl}-G'
  11233. else
  11234. shared_flag='${wl}-bM:SRE'
  11235. fi
  11236. fi
  11237. fi
  11238. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11239. # It seems that -bexpall does not export symbols beginning with
  11240. # underscore (_), so it is better to generate a list of symbols to
  11241. # export.
  11242. always_export_symbols_CXX=yes
  11243. if test "$aix_use_runtimelinking" = yes; then
  11244. # Warning - without using the other runtime loading flags (-brtl),
  11245. # -berok will link without error, but may produce a broken library.
  11246. allow_undefined_flag_CXX='-berok'
  11247. # Determine the default libpath from the value encoded in an empty
  11248. # executable.
  11249. if test "${lt_cv_aix_libpath+set}" = set; then
  11250. aix_libpath=$lt_cv_aix_libpath
  11251. else
  11252. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11253. $as_echo_n "(cached) " >&6
  11254. else
  11255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11256. /* end confdefs.h. */
  11257. int
  11258. main ()
  11259. {
  11260. ;
  11261. return 0;
  11262. }
  11263. _ACEOF
  11264. if ac_fn_cxx_try_link "$LINENO"; then :
  11265. lt_aix_libpath_sed='
  11266. /Import File Strings/,/^$/ {
  11267. /^0/ {
  11268. s/^0 *\([^ ]*\) *$/\1/
  11269. p
  11270. }
  11271. }'
  11272. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11273. # Check for a 64-bit object if we didn't find anything.
  11274. if test -z "$lt_cv_aix_libpath__CXX"; then
  11275. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11276. fi
  11277. fi
  11278. rm -f core conftest.err conftest.$ac_objext \
  11279. conftest$ac_exeext conftest.$ac_ext
  11280. if test -z "$lt_cv_aix_libpath__CXX"; then
  11281. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11282. fi
  11283. fi
  11284. aix_libpath=$lt_cv_aix_libpath__CXX
  11285. fi
  11286. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11287. 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"
  11288. else
  11289. if test "$host_cpu" = ia64; then
  11290. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11291. allow_undefined_flag_CXX="-z nodefs"
  11292. 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"
  11293. else
  11294. # Determine the default libpath from the value encoded in an
  11295. # empty executable.
  11296. if test "${lt_cv_aix_libpath+set}" = set; then
  11297. aix_libpath=$lt_cv_aix_libpath
  11298. else
  11299. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11300. $as_echo_n "(cached) " >&6
  11301. else
  11302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11303. /* end confdefs.h. */
  11304. int
  11305. main ()
  11306. {
  11307. ;
  11308. return 0;
  11309. }
  11310. _ACEOF
  11311. if ac_fn_cxx_try_link "$LINENO"; then :
  11312. lt_aix_libpath_sed='
  11313. /Import File Strings/,/^$/ {
  11314. /^0/ {
  11315. s/^0 *\([^ ]*\) *$/\1/
  11316. p
  11317. }
  11318. }'
  11319. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11320. # Check for a 64-bit object if we didn't find anything.
  11321. if test -z "$lt_cv_aix_libpath__CXX"; then
  11322. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11323. fi
  11324. fi
  11325. rm -f core conftest.err conftest.$ac_objext \
  11326. conftest$ac_exeext conftest.$ac_ext
  11327. if test -z "$lt_cv_aix_libpath__CXX"; then
  11328. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11329. fi
  11330. fi
  11331. aix_libpath=$lt_cv_aix_libpath__CXX
  11332. fi
  11333. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11334. # Warning - without using the other run time loading flags,
  11335. # -berok will link without error, but may produce a broken library.
  11336. no_undefined_flag_CXX=' ${wl}-bernotok'
  11337. allow_undefined_flag_CXX=' ${wl}-berok'
  11338. if test "$with_gnu_ld" = yes; then
  11339. # We only use this code for GNU lds that support --whole-archive.
  11340. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11341. else
  11342. # Exported symbols can be pulled into shared objects from archives
  11343. whole_archive_flag_spec_CXX='$convenience'
  11344. fi
  11345. archive_cmds_need_lc_CXX=yes
  11346. # This is similar to how AIX traditionally builds its shared
  11347. # libraries.
  11348. 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'
  11349. fi
  11350. fi
  11351. ;;
  11352. beos*)
  11353. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11354. allow_undefined_flag_CXX=unsupported
  11355. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11356. # support --undefined. This deserves some investigation. FIXME
  11357. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11358. else
  11359. ld_shlibs_CXX=no
  11360. fi
  11361. ;;
  11362. chorus*)
  11363. case $cc_basename in
  11364. *)
  11365. # FIXME: insert proper C++ library support
  11366. ld_shlibs_CXX=no
  11367. ;;
  11368. esac
  11369. ;;
  11370. cygwin* | mingw* | pw32* | cegcc*)
  11371. case $GXX,$cc_basename in
  11372. ,cl* | no,cl*)
  11373. # Native MSVC
  11374. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11375. # no search path for DLLs.
  11376. hardcode_libdir_flag_spec_CXX=' '
  11377. allow_undefined_flag_CXX=unsupported
  11378. always_export_symbols_CXX=yes
  11379. file_list_spec_CXX='@'
  11380. # Tell ltmain to make .lib files, not .a files.
  11381. libext=lib
  11382. # Tell ltmain to make .dll files, not .so files.
  11383. shrext_cmds=".dll"
  11384. # FIXME: Setting linknames here is a bad hack.
  11385. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11386. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11387. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11388. else
  11389. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11390. fi~
  11391. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11392. linknames='
  11393. # The linker will not automatically build a static lib if we build a DLL.
  11394. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11395. enable_shared_with_static_runtimes_CXX=yes
  11396. # Don't use ranlib
  11397. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11398. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11399. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11400. case $lt_outputfile in
  11401. *.exe|*.EXE) ;;
  11402. *)
  11403. lt_outputfile="$lt_outputfile.exe"
  11404. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11405. ;;
  11406. esac~
  11407. func_to_tool_file "$lt_outputfile"~
  11408. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11409. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11410. $RM "$lt_outputfile.manifest";
  11411. fi'
  11412. ;;
  11413. *)
  11414. # g++
  11415. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11416. # as there is no search path for DLLs.
  11417. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11418. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11419. allow_undefined_flag_CXX=unsupported
  11420. always_export_symbols_CXX=no
  11421. enable_shared_with_static_runtimes_CXX=yes
  11422. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11423. 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'
  11424. # If the export-symbols file already is a .def file (1st line
  11425. # is EXPORTS), use it as is; otherwise, prepend...
  11426. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11427. cp $export_symbols $output_objdir/$soname.def;
  11428. else
  11429. echo EXPORTS > $output_objdir/$soname.def;
  11430. cat $export_symbols >> $output_objdir/$soname.def;
  11431. fi~
  11432. $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'
  11433. else
  11434. ld_shlibs_CXX=no
  11435. fi
  11436. ;;
  11437. esac
  11438. ;;
  11439. darwin* | rhapsody*)
  11440. archive_cmds_need_lc_CXX=no
  11441. hardcode_direct_CXX=no
  11442. hardcode_automatic_CXX=yes
  11443. hardcode_shlibpath_var_CXX=unsupported
  11444. if test "$lt_cv_ld_force_load" = "yes"; then
  11445. 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\"`'
  11446. else
  11447. whole_archive_flag_spec_CXX=''
  11448. fi
  11449. link_all_deplibs_CXX=yes
  11450. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11451. case $cc_basename in
  11452. ifort*) _lt_dar_can_shared=yes ;;
  11453. *) _lt_dar_can_shared=$GCC ;;
  11454. esac
  11455. if test "$_lt_dar_can_shared" = "yes"; then
  11456. output_verbose_link_cmd=func_echo_all
  11457. 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}"
  11458. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11459. 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}"
  11460. 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}"
  11461. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11462. 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}"
  11463. 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}"
  11464. fi
  11465. else
  11466. ld_shlibs_CXX=no
  11467. fi
  11468. ;;
  11469. dgux*)
  11470. case $cc_basename in
  11471. ec++*)
  11472. # FIXME: insert proper C++ library support
  11473. ld_shlibs_CXX=no
  11474. ;;
  11475. ghcx*)
  11476. # Green Hills C++ Compiler
  11477. # FIXME: insert proper C++ library support
  11478. ld_shlibs_CXX=no
  11479. ;;
  11480. *)
  11481. # FIXME: insert proper C++ library support
  11482. ld_shlibs_CXX=no
  11483. ;;
  11484. esac
  11485. ;;
  11486. freebsd2.*)
  11487. # C++ shared libraries reported to be fairly broken before
  11488. # switch to ELF
  11489. ld_shlibs_CXX=no
  11490. ;;
  11491. freebsd-elf*)
  11492. archive_cmds_need_lc_CXX=no
  11493. ;;
  11494. freebsd* | dragonfly*)
  11495. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11496. # conventions
  11497. ld_shlibs_CXX=yes
  11498. ;;
  11499. gnu*)
  11500. ;;
  11501. haiku*)
  11502. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11503. link_all_deplibs_CXX=yes
  11504. ;;
  11505. hpux9*)
  11506. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11507. hardcode_libdir_separator_CXX=:
  11508. export_dynamic_flag_spec_CXX='${wl}-E'
  11509. hardcode_direct_CXX=yes
  11510. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11511. # but as the default
  11512. # location of the library.
  11513. case $cc_basename in
  11514. CC*)
  11515. # FIXME: insert proper C++ library support
  11516. ld_shlibs_CXX=no
  11517. ;;
  11518. aCC*)
  11519. 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'
  11520. # Commands to make compiler produce verbose output that lists
  11521. # what "hidden" libraries, object files and flags are used when
  11522. # linking a shared library.
  11523. #
  11524. # There doesn't appear to be a way to prevent this compiler from
  11525. # explicitly linking system object files so we need to strip them
  11526. # from the output so that they don't get included in the library
  11527. # dependencies.
  11528. 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"'
  11529. ;;
  11530. *)
  11531. if test "$GXX" = yes; then
  11532. 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'
  11533. else
  11534. # FIXME: insert proper C++ library support
  11535. ld_shlibs_CXX=no
  11536. fi
  11537. ;;
  11538. esac
  11539. ;;
  11540. hpux10*|hpux11*)
  11541. if test $with_gnu_ld = no; then
  11542. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11543. hardcode_libdir_separator_CXX=:
  11544. case $host_cpu in
  11545. hppa*64*|ia64*)
  11546. ;;
  11547. *)
  11548. export_dynamic_flag_spec_CXX='${wl}-E'
  11549. ;;
  11550. esac
  11551. fi
  11552. case $host_cpu in
  11553. hppa*64*|ia64*)
  11554. hardcode_direct_CXX=no
  11555. hardcode_shlibpath_var_CXX=no
  11556. ;;
  11557. *)
  11558. hardcode_direct_CXX=yes
  11559. hardcode_direct_absolute_CXX=yes
  11560. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11561. # but as the default
  11562. # location of the library.
  11563. ;;
  11564. esac
  11565. case $cc_basename in
  11566. CC*)
  11567. # FIXME: insert proper C++ library support
  11568. ld_shlibs_CXX=no
  11569. ;;
  11570. aCC*)
  11571. case $host_cpu in
  11572. hppa*64*)
  11573. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11574. ;;
  11575. ia64*)
  11576. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11577. ;;
  11578. *)
  11579. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11580. ;;
  11581. esac
  11582. # Commands to make compiler produce verbose output that lists
  11583. # what "hidden" libraries, object files and flags are used when
  11584. # linking a shared library.
  11585. #
  11586. # There doesn't appear to be a way to prevent this compiler from
  11587. # explicitly linking system object files so we need to strip them
  11588. # from the output so that they don't get included in the library
  11589. # dependencies.
  11590. 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"'
  11591. ;;
  11592. *)
  11593. if test "$GXX" = yes; then
  11594. if test $with_gnu_ld = no; then
  11595. case $host_cpu in
  11596. hppa*64*)
  11597. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11598. ;;
  11599. ia64*)
  11600. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11601. ;;
  11602. *)
  11603. 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'
  11604. ;;
  11605. esac
  11606. fi
  11607. else
  11608. # FIXME: insert proper C++ library support
  11609. ld_shlibs_CXX=no
  11610. fi
  11611. ;;
  11612. esac
  11613. ;;
  11614. interix[3-9]*)
  11615. hardcode_direct_CXX=no
  11616. hardcode_shlibpath_var_CXX=no
  11617. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11618. export_dynamic_flag_spec_CXX='${wl}-E'
  11619. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11620. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11621. # default) and relocated if they conflict, which is a slow very memory
  11622. # consuming and fragmenting process. To avoid this, we pick a random,
  11623. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11624. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11625. 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'
  11626. 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'
  11627. ;;
  11628. irix5* | irix6*)
  11629. case $cc_basename in
  11630. CC*)
  11631. # SGI C++
  11632. 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'
  11633. # Archives containing C++ object files must be created using
  11634. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11635. # necessary to make sure instantiated templates are included
  11636. # in the archive.
  11637. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11638. ;;
  11639. *)
  11640. if test "$GXX" = yes; then
  11641. if test "$with_gnu_ld" = no; then
  11642. 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'
  11643. else
  11644. 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'
  11645. fi
  11646. fi
  11647. link_all_deplibs_CXX=yes
  11648. ;;
  11649. esac
  11650. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11651. hardcode_libdir_separator_CXX=:
  11652. inherit_rpath_CXX=yes
  11653. ;;
  11654. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11655. case $cc_basename in
  11656. KCC*)
  11657. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11658. # KCC will only create a shared library if the output file
  11659. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11660. # to its proper name (with version) after linking.
  11661. 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'
  11662. 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'
  11663. # Commands to make compiler produce verbose output that lists
  11664. # what "hidden" libraries, object files and flags are used when
  11665. # linking a shared library.
  11666. #
  11667. # There doesn't appear to be a way to prevent this compiler from
  11668. # explicitly linking system object files so we need to strip them
  11669. # from the output so that they don't get included in the library
  11670. # dependencies.
  11671. 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"'
  11672. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11673. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11674. # Archives containing C++ object files must be created using
  11675. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11676. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11677. ;;
  11678. icpc* | ecpc* )
  11679. # Intel C++
  11680. with_gnu_ld=yes
  11681. # version 8.0 and above of icpc choke on multiply defined symbols
  11682. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11683. # earlier do not add the objects themselves.
  11684. case `$CC -V 2>&1` in
  11685. *"Version 7."*)
  11686. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11687. 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'
  11688. ;;
  11689. *) # Version 8.0 or newer
  11690. tmp_idyn=
  11691. case $host_cpu in
  11692. ia64*) tmp_idyn=' -i_dynamic';;
  11693. esac
  11694. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11695. 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'
  11696. ;;
  11697. esac
  11698. archive_cmds_need_lc_CXX=no
  11699. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11700. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11701. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11702. ;;
  11703. pgCC* | pgcpp*)
  11704. # Portland Group C++ compiler
  11705. case `$CC -V` in
  11706. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11707. prelink_cmds_CXX='tpldir=Template.dir~
  11708. rm -rf $tpldir~
  11709. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11710. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11711. old_archive_cmds_CXX='tpldir=Template.dir~
  11712. rm -rf $tpldir~
  11713. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11714. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11715. $RANLIB $oldlib'
  11716. archive_cmds_CXX='tpldir=Template.dir~
  11717. rm -rf $tpldir~
  11718. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11719. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11720. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11721. rm -rf $tpldir~
  11722. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11723. $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'
  11724. ;;
  11725. *) # Version 6 and above use weak symbols
  11726. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11727. 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'
  11728. ;;
  11729. esac
  11730. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11731. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11732. 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'
  11733. ;;
  11734. cxx*)
  11735. # Compaq C++
  11736. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11737. 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'
  11738. runpath_var=LD_RUN_PATH
  11739. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11740. hardcode_libdir_separator_CXX=:
  11741. # Commands to make compiler produce verbose output that lists
  11742. # what "hidden" libraries, object files and flags are used when
  11743. # linking a shared library.
  11744. #
  11745. # There doesn't appear to be a way to prevent this compiler from
  11746. # explicitly linking system object files so we need to strip them
  11747. # from the output so that they don't get included in the library
  11748. # dependencies.
  11749. 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'
  11750. ;;
  11751. xl* | mpixl* | bgxl*)
  11752. # IBM XL 8.0 on PPC, with GNU ld
  11753. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11754. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11755. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11756. if test "x$supports_anon_versioning" = xyes; then
  11757. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11758. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11759. echo "local: *; };" >> $output_objdir/$libname.ver~
  11760. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11761. fi
  11762. ;;
  11763. *)
  11764. case `$CC -V 2>&1 | sed 5q` in
  11765. *Sun\ C*)
  11766. # Sun C++ 5.9
  11767. no_undefined_flag_CXX=' -zdefs'
  11768. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11769. 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'
  11770. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11771. 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'
  11772. compiler_needs_object_CXX=yes
  11773. # Not sure whether something based on
  11774. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11775. # would be better.
  11776. output_verbose_link_cmd='func_echo_all'
  11777. # Archives containing C++ object files must be created using
  11778. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11779. # necessary to make sure instantiated templates are included
  11780. # in the archive.
  11781. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11782. ;;
  11783. esac
  11784. ;;
  11785. esac
  11786. ;;
  11787. lynxos*)
  11788. # FIXME: insert proper C++ library support
  11789. ld_shlibs_CXX=no
  11790. ;;
  11791. m88k*)
  11792. # FIXME: insert proper C++ library support
  11793. ld_shlibs_CXX=no
  11794. ;;
  11795. mvs*)
  11796. case $cc_basename in
  11797. cxx*)
  11798. # FIXME: insert proper C++ library support
  11799. ld_shlibs_CXX=no
  11800. ;;
  11801. *)
  11802. # FIXME: insert proper C++ library support
  11803. ld_shlibs_CXX=no
  11804. ;;
  11805. esac
  11806. ;;
  11807. netbsd*)
  11808. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11809. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11810. wlarc=
  11811. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11812. hardcode_direct_CXX=yes
  11813. hardcode_shlibpath_var_CXX=no
  11814. fi
  11815. # Workaround some broken pre-1.5 toolchains
  11816. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11817. ;;
  11818. *nto* | *qnx*)
  11819. ld_shlibs_CXX=yes
  11820. ;;
  11821. openbsd2*)
  11822. # C++ shared libraries are fairly broken
  11823. ld_shlibs_CXX=no
  11824. ;;
  11825. openbsd*)
  11826. if test -f /usr/libexec/ld.so; then
  11827. hardcode_direct_CXX=yes
  11828. hardcode_shlibpath_var_CXX=no
  11829. hardcode_direct_absolute_CXX=yes
  11830. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11831. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11832. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11833. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11834. export_dynamic_flag_spec_CXX='${wl}-E'
  11835. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11836. fi
  11837. output_verbose_link_cmd=func_echo_all
  11838. else
  11839. ld_shlibs_CXX=no
  11840. fi
  11841. ;;
  11842. osf3* | osf4* | osf5*)
  11843. case $cc_basename in
  11844. KCC*)
  11845. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11846. # KCC will only create a shared library if the output file
  11847. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11848. # to its proper name (with version) after linking.
  11849. 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'
  11850. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11851. hardcode_libdir_separator_CXX=:
  11852. # Archives containing C++ object files must be created using
  11853. # the KAI C++ compiler.
  11854. case $host in
  11855. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11856. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11857. esac
  11858. ;;
  11859. RCC*)
  11860. # Rational C++ 2.4.1
  11861. # FIXME: insert proper C++ library support
  11862. ld_shlibs_CXX=no
  11863. ;;
  11864. cxx*)
  11865. case $host in
  11866. osf3*)
  11867. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11868. 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'
  11869. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11870. ;;
  11871. *)
  11872. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11873. 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'
  11874. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11875. echo "-hidden">> $lib.exp~
  11876. $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~
  11877. $RM $lib.exp'
  11878. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11879. ;;
  11880. esac
  11881. hardcode_libdir_separator_CXX=:
  11882. # Commands to make compiler produce verbose output that lists
  11883. # what "hidden" libraries, object files and flags are used when
  11884. # linking a shared library.
  11885. #
  11886. # There doesn't appear to be a way to prevent this compiler from
  11887. # explicitly linking system object files so we need to strip them
  11888. # from the output so that they don't get included in the library
  11889. # dependencies.
  11890. 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"'
  11891. ;;
  11892. *)
  11893. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11894. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11895. case $host in
  11896. osf3*)
  11897. 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'
  11898. ;;
  11899. *)
  11900. 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'
  11901. ;;
  11902. esac
  11903. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11904. hardcode_libdir_separator_CXX=:
  11905. # Commands to make compiler produce verbose output that lists
  11906. # what "hidden" libraries, object files and flags are used when
  11907. # linking a shared library.
  11908. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11909. else
  11910. # FIXME: insert proper C++ library support
  11911. ld_shlibs_CXX=no
  11912. fi
  11913. ;;
  11914. esac
  11915. ;;
  11916. psos*)
  11917. # FIXME: insert proper C++ library support
  11918. ld_shlibs_CXX=no
  11919. ;;
  11920. sunos4*)
  11921. case $cc_basename in
  11922. CC*)
  11923. # Sun C++ 4.x
  11924. # FIXME: insert proper C++ library support
  11925. ld_shlibs_CXX=no
  11926. ;;
  11927. lcc*)
  11928. # Lucid
  11929. # FIXME: insert proper C++ library support
  11930. ld_shlibs_CXX=no
  11931. ;;
  11932. *)
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. ;;
  11936. esac
  11937. ;;
  11938. solaris*)
  11939. case $cc_basename in
  11940. CC* | sunCC*)
  11941. # Sun C++ 4.2, 5.x and Centerline C++
  11942. archive_cmds_need_lc_CXX=yes
  11943. no_undefined_flag_CXX=' -zdefs'
  11944. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11945. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11946. $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'
  11947. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11948. hardcode_shlibpath_var_CXX=no
  11949. case $host_os in
  11950. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11951. *)
  11952. # The compiler driver will combine and reorder linker options,
  11953. # but understands `-z linker_flag'.
  11954. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11955. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11956. ;;
  11957. esac
  11958. link_all_deplibs_CXX=yes
  11959. output_verbose_link_cmd='func_echo_all'
  11960. # Archives containing C++ object files must be created using
  11961. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11962. # necessary to make sure instantiated templates are included
  11963. # in the archive.
  11964. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11965. ;;
  11966. gcx*)
  11967. # Green Hills C++ Compiler
  11968. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11969. # The C++ compiler must be used to create the archive.
  11970. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11971. ;;
  11972. *)
  11973. # GNU C++ compiler with Solaris linker
  11974. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11975. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11976. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11977. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11978. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11979. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11980. # Commands to make compiler produce verbose output that lists
  11981. # what "hidden" libraries, object files and flags are used when
  11982. # linking a shared library.
  11983. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11984. else
  11985. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11986. # platform.
  11987. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11988. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11989. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11990. # Commands to make compiler produce verbose output that lists
  11991. # what "hidden" libraries, object files and flags are used when
  11992. # linking a shared library.
  11993. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11994. fi
  11995. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11996. case $host_os in
  11997. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11998. *)
  11999. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12000. ;;
  12001. esac
  12002. fi
  12003. ;;
  12004. esac
  12005. ;;
  12006. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12007. no_undefined_flag_CXX='${wl}-z,text'
  12008. archive_cmds_need_lc_CXX=no
  12009. hardcode_shlibpath_var_CXX=no
  12010. runpath_var='LD_RUN_PATH'
  12011. case $cc_basename in
  12012. CC*)
  12013. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12014. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12015. ;;
  12016. *)
  12017. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12018. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12019. ;;
  12020. esac
  12021. ;;
  12022. sysv5* | sco3.2v5* | sco5v6*)
  12023. # Note: We can NOT use -z defs as we might desire, because we do not
  12024. # link with -lc, and that would cause any symbols used from libc to
  12025. # always be unresolved, which means just about no library would
  12026. # ever link correctly. If we're not using GNU ld we use -z text
  12027. # though, which does catch some bad symbols but isn't as heavy-handed
  12028. # as -z defs.
  12029. no_undefined_flag_CXX='${wl}-z,text'
  12030. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12031. archive_cmds_need_lc_CXX=no
  12032. hardcode_shlibpath_var_CXX=no
  12033. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12034. hardcode_libdir_separator_CXX=':'
  12035. link_all_deplibs_CXX=yes
  12036. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12037. runpath_var='LD_RUN_PATH'
  12038. case $cc_basename in
  12039. CC*)
  12040. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12043. '"$old_archive_cmds_CXX"
  12044. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12045. '"$reload_cmds_CXX"
  12046. ;;
  12047. *)
  12048. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12049. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12050. ;;
  12051. esac
  12052. ;;
  12053. tandem*)
  12054. case $cc_basename in
  12055. NCC*)
  12056. # NonStop-UX NCC 3.20
  12057. # FIXME: insert proper C++ library support
  12058. ld_shlibs_CXX=no
  12059. ;;
  12060. *)
  12061. # FIXME: insert proper C++ library support
  12062. ld_shlibs_CXX=no
  12063. ;;
  12064. esac
  12065. ;;
  12066. vxworks*)
  12067. # FIXME: insert proper C++ library support
  12068. ld_shlibs_CXX=no
  12069. ;;
  12070. *)
  12071. # FIXME: insert proper C++ library support
  12072. ld_shlibs_CXX=no
  12073. ;;
  12074. esac
  12075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12076. $as_echo "$ld_shlibs_CXX" >&6; }
  12077. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12078. GCC_CXX="$GXX"
  12079. LD_CXX="$LD"
  12080. ## CAVEAT EMPTOR:
  12081. ## There is no encapsulation within the following macros, do not change
  12082. ## the running order or otherwise move them around unless you know exactly
  12083. ## what you are doing...
  12084. # Dependencies to place before and after the object being linked:
  12085. predep_objects_CXX=
  12086. postdep_objects_CXX=
  12087. predeps_CXX=
  12088. postdeps_CXX=
  12089. compiler_lib_search_path_CXX=
  12090. cat > conftest.$ac_ext <<_LT_EOF
  12091. class Foo
  12092. {
  12093. public:
  12094. Foo (void) { a = 0; }
  12095. private:
  12096. int a;
  12097. };
  12098. _LT_EOF
  12099. _lt_libdeps_save_CFLAGS=$CFLAGS
  12100. case "$CC $CFLAGS " in #(
  12101. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12102. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12103. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12104. esac
  12105. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12106. (eval $ac_compile) 2>&5
  12107. ac_status=$?
  12108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12109. test $ac_status = 0; }; then
  12110. # Parse the compiler output and extract the necessary
  12111. # objects, libraries and library flags.
  12112. # Sentinel used to keep track of whether or not we are before
  12113. # the conftest object file.
  12114. pre_test_object_deps_done=no
  12115. for p in `eval "$output_verbose_link_cmd"`; do
  12116. case ${prev}${p} in
  12117. -L* | -R* | -l*)
  12118. # Some compilers place space between "-{L,R}" and the path.
  12119. # Remove the space.
  12120. if test $p = "-L" ||
  12121. test $p = "-R"; then
  12122. prev=$p
  12123. continue
  12124. fi
  12125. # Expand the sysroot to ease extracting the directories later.
  12126. if test -z "$prev"; then
  12127. case $p in
  12128. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12129. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12130. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12131. esac
  12132. fi
  12133. case $p in
  12134. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12135. esac
  12136. if test "$pre_test_object_deps_done" = no; then
  12137. case ${prev} in
  12138. -L | -R)
  12139. # Internal compiler library paths should come after those
  12140. # provided the user. The postdeps already come after the
  12141. # user supplied libs so there is no need to process them.
  12142. if test -z "$compiler_lib_search_path_CXX"; then
  12143. compiler_lib_search_path_CXX="${prev}${p}"
  12144. else
  12145. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12146. fi
  12147. ;;
  12148. # The "-l" case would never come before the object being
  12149. # linked, so don't bother handling this case.
  12150. esac
  12151. else
  12152. if test -z "$postdeps_CXX"; then
  12153. postdeps_CXX="${prev}${p}"
  12154. else
  12155. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12156. fi
  12157. fi
  12158. prev=
  12159. ;;
  12160. *.lto.$objext) ;; # Ignore GCC LTO objects
  12161. *.$objext)
  12162. # This assumes that the test object file only shows up
  12163. # once in the compiler output.
  12164. if test "$p" = "conftest.$objext"; then
  12165. pre_test_object_deps_done=yes
  12166. continue
  12167. fi
  12168. if test "$pre_test_object_deps_done" = no; then
  12169. if test -z "$predep_objects_CXX"; then
  12170. predep_objects_CXX="$p"
  12171. else
  12172. predep_objects_CXX="$predep_objects_CXX $p"
  12173. fi
  12174. else
  12175. if test -z "$postdep_objects_CXX"; then
  12176. postdep_objects_CXX="$p"
  12177. else
  12178. postdep_objects_CXX="$postdep_objects_CXX $p"
  12179. fi
  12180. fi
  12181. ;;
  12182. *) ;; # Ignore the rest.
  12183. esac
  12184. done
  12185. # Clean up.
  12186. rm -f a.out a.exe
  12187. else
  12188. echo "libtool.m4: error: problem compiling CXX test program"
  12189. fi
  12190. $RM -f confest.$objext
  12191. CFLAGS=$_lt_libdeps_save_CFLAGS
  12192. # PORTME: override above test on systems where it is broken
  12193. case $host_os in
  12194. interix[3-9]*)
  12195. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12196. # hack all around it, let's just trust "g++" to DTRT.
  12197. predep_objects_CXX=
  12198. postdep_objects_CXX=
  12199. postdeps_CXX=
  12200. ;;
  12201. linux*)
  12202. case `$CC -V 2>&1 | sed 5q` in
  12203. *Sun\ C*)
  12204. # Sun C++ 5.9
  12205. # The more standards-conforming stlport4 library is
  12206. # incompatible with the Cstd library. Avoid specifying
  12207. # it if it's in CXXFLAGS. Ignore libCrun as
  12208. # -library=stlport4 depends on it.
  12209. case " $CXX $CXXFLAGS " in
  12210. *" -library=stlport4 "*)
  12211. solaris_use_stlport4=yes
  12212. ;;
  12213. esac
  12214. if test "$solaris_use_stlport4" != yes; then
  12215. postdeps_CXX='-library=Cstd -library=Crun'
  12216. fi
  12217. ;;
  12218. esac
  12219. ;;
  12220. solaris*)
  12221. case $cc_basename in
  12222. CC* | sunCC*)
  12223. # The more standards-conforming stlport4 library is
  12224. # incompatible with the Cstd library. Avoid specifying
  12225. # it if it's in CXXFLAGS. Ignore libCrun as
  12226. # -library=stlport4 depends on it.
  12227. case " $CXX $CXXFLAGS " in
  12228. *" -library=stlport4 "*)
  12229. solaris_use_stlport4=yes
  12230. ;;
  12231. esac
  12232. # Adding this requires a known-good setup of shared libraries for
  12233. # Sun compiler versions before 5.6, else PIC objects from an old
  12234. # archive will be linked into the output, leading to subtle bugs.
  12235. if test "$solaris_use_stlport4" != yes; then
  12236. postdeps_CXX='-library=Cstd -library=Crun'
  12237. fi
  12238. ;;
  12239. esac
  12240. ;;
  12241. esac
  12242. case " $postdeps_CXX " in
  12243. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12244. esac
  12245. compiler_lib_search_dirs_CXX=
  12246. if test -n "${compiler_lib_search_path_CXX}"; then
  12247. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12248. fi
  12249. lt_prog_compiler_wl_CXX=
  12250. lt_prog_compiler_pic_CXX=
  12251. lt_prog_compiler_static_CXX=
  12252. # C++ specific cases for pic, static, wl, etc.
  12253. if test "$GXX" = yes; then
  12254. lt_prog_compiler_wl_CXX='-Wl,'
  12255. lt_prog_compiler_static_CXX='-static'
  12256. case $host_os in
  12257. aix*)
  12258. # All AIX code is PIC.
  12259. if test "$host_cpu" = ia64; then
  12260. # AIX 5 now supports IA64 processor
  12261. lt_prog_compiler_static_CXX='-Bstatic'
  12262. fi
  12263. ;;
  12264. amigaos*)
  12265. case $host_cpu in
  12266. powerpc)
  12267. # see comment about AmigaOS4 .so support
  12268. lt_prog_compiler_pic_CXX='-fPIC'
  12269. ;;
  12270. m68k)
  12271. # FIXME: we need at least 68020 code to build shared libraries, but
  12272. # adding the `-m68020' flag to GCC prevents building anything better,
  12273. # like `-m68040'.
  12274. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12275. ;;
  12276. esac
  12277. ;;
  12278. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12279. # PIC is the default for these OSes.
  12280. ;;
  12281. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12282. # This hack is so that the source file can tell whether it is being
  12283. # built for inclusion in a dll (and should export symbols for example).
  12284. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12285. # (--disable-auto-import) libraries
  12286. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12287. ;;
  12288. darwin* | rhapsody*)
  12289. # PIC is the default on this platform
  12290. # Common symbols not allowed in MH_DYLIB files
  12291. lt_prog_compiler_pic_CXX='-fno-common'
  12292. ;;
  12293. *djgpp*)
  12294. # DJGPP does not support shared libraries at all
  12295. lt_prog_compiler_pic_CXX=
  12296. ;;
  12297. haiku*)
  12298. # PIC is the default for Haiku.
  12299. # The "-static" flag exists, but is broken.
  12300. lt_prog_compiler_static_CXX=
  12301. ;;
  12302. interix[3-9]*)
  12303. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12304. # Instead, we relocate shared libraries at runtime.
  12305. ;;
  12306. sysv4*MP*)
  12307. if test -d /usr/nec; then
  12308. lt_prog_compiler_pic_CXX=-Kconform_pic
  12309. fi
  12310. ;;
  12311. hpux*)
  12312. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12313. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12314. # sets the default TLS model and affects inlining.
  12315. case $host_cpu in
  12316. hppa*64*)
  12317. ;;
  12318. *)
  12319. lt_prog_compiler_pic_CXX='-fPIC'
  12320. ;;
  12321. esac
  12322. ;;
  12323. *qnx* | *nto*)
  12324. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12325. # it will coredump.
  12326. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12327. ;;
  12328. *)
  12329. lt_prog_compiler_pic_CXX='-fPIC'
  12330. ;;
  12331. esac
  12332. else
  12333. case $host_os in
  12334. aix[4-9]*)
  12335. # All AIX code is PIC.
  12336. if test "$host_cpu" = ia64; then
  12337. # AIX 5 now supports IA64 processor
  12338. lt_prog_compiler_static_CXX='-Bstatic'
  12339. else
  12340. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12341. fi
  12342. ;;
  12343. chorus*)
  12344. case $cc_basename in
  12345. cxch68*)
  12346. # Green Hills C++ Compiler
  12347. # _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"
  12348. ;;
  12349. esac
  12350. ;;
  12351. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12352. # This hack is so that the source file can tell whether it is being
  12353. # built for inclusion in a dll (and should export symbols for example).
  12354. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12355. ;;
  12356. dgux*)
  12357. case $cc_basename in
  12358. ec++*)
  12359. lt_prog_compiler_pic_CXX='-KPIC'
  12360. ;;
  12361. ghcx*)
  12362. # Green Hills C++ Compiler
  12363. lt_prog_compiler_pic_CXX='-pic'
  12364. ;;
  12365. *)
  12366. ;;
  12367. esac
  12368. ;;
  12369. freebsd* | dragonfly*)
  12370. # FreeBSD uses GNU C++
  12371. ;;
  12372. hpux9* | hpux10* | hpux11*)
  12373. case $cc_basename in
  12374. CC*)
  12375. lt_prog_compiler_wl_CXX='-Wl,'
  12376. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12377. if test "$host_cpu" != ia64; then
  12378. lt_prog_compiler_pic_CXX='+Z'
  12379. fi
  12380. ;;
  12381. aCC*)
  12382. lt_prog_compiler_wl_CXX='-Wl,'
  12383. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12384. case $host_cpu in
  12385. hppa*64*|ia64*)
  12386. # +Z the default
  12387. ;;
  12388. *)
  12389. lt_prog_compiler_pic_CXX='+Z'
  12390. ;;
  12391. esac
  12392. ;;
  12393. *)
  12394. ;;
  12395. esac
  12396. ;;
  12397. interix*)
  12398. # This is c89, which is MS Visual C++ (no shared libs)
  12399. # Anyone wants to do a port?
  12400. ;;
  12401. irix5* | irix6* | nonstopux*)
  12402. case $cc_basename in
  12403. CC*)
  12404. lt_prog_compiler_wl_CXX='-Wl,'
  12405. lt_prog_compiler_static_CXX='-non_shared'
  12406. # CC pic flag -KPIC is the default.
  12407. ;;
  12408. *)
  12409. ;;
  12410. esac
  12411. ;;
  12412. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12413. case $cc_basename in
  12414. KCC*)
  12415. # KAI C++ Compiler
  12416. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12417. lt_prog_compiler_pic_CXX='-fPIC'
  12418. ;;
  12419. ecpc* )
  12420. # old Intel C++ for x86_64 which still supported -KPIC.
  12421. lt_prog_compiler_wl_CXX='-Wl,'
  12422. lt_prog_compiler_pic_CXX='-KPIC'
  12423. lt_prog_compiler_static_CXX='-static'
  12424. ;;
  12425. icpc* )
  12426. # Intel C++, used to be incompatible with GCC.
  12427. # ICC 10 doesn't accept -KPIC any more.
  12428. lt_prog_compiler_wl_CXX='-Wl,'
  12429. lt_prog_compiler_pic_CXX='-fPIC'
  12430. lt_prog_compiler_static_CXX='-static'
  12431. ;;
  12432. pgCC* | pgcpp*)
  12433. # Portland Group C++ compiler
  12434. lt_prog_compiler_wl_CXX='-Wl,'
  12435. lt_prog_compiler_pic_CXX='-fpic'
  12436. lt_prog_compiler_static_CXX='-Bstatic'
  12437. ;;
  12438. cxx*)
  12439. # Compaq C++
  12440. # Make sure the PIC flag is empty. It appears that all Alpha
  12441. # Linux and Compaq Tru64 Unix objects are PIC.
  12442. lt_prog_compiler_pic_CXX=
  12443. lt_prog_compiler_static_CXX='-non_shared'
  12444. ;;
  12445. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12446. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12447. lt_prog_compiler_wl_CXX='-Wl,'
  12448. lt_prog_compiler_pic_CXX='-qpic'
  12449. lt_prog_compiler_static_CXX='-qstaticlink'
  12450. ;;
  12451. *)
  12452. case `$CC -V 2>&1 | sed 5q` in
  12453. *Sun\ C*)
  12454. # Sun C++ 5.9
  12455. lt_prog_compiler_pic_CXX='-KPIC'
  12456. lt_prog_compiler_static_CXX='-Bstatic'
  12457. lt_prog_compiler_wl_CXX='-Qoption ld '
  12458. ;;
  12459. esac
  12460. ;;
  12461. esac
  12462. ;;
  12463. lynxos*)
  12464. ;;
  12465. m88k*)
  12466. ;;
  12467. mvs*)
  12468. case $cc_basename in
  12469. cxx*)
  12470. lt_prog_compiler_pic_CXX='-W c,exportall'
  12471. ;;
  12472. *)
  12473. ;;
  12474. esac
  12475. ;;
  12476. netbsd*)
  12477. ;;
  12478. *qnx* | *nto*)
  12479. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12480. # it will coredump.
  12481. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12482. ;;
  12483. osf3* | osf4* | osf5*)
  12484. case $cc_basename in
  12485. KCC*)
  12486. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12487. ;;
  12488. RCC*)
  12489. # Rational C++ 2.4.1
  12490. lt_prog_compiler_pic_CXX='-pic'
  12491. ;;
  12492. cxx*)
  12493. # Digital/Compaq C++
  12494. lt_prog_compiler_wl_CXX='-Wl,'
  12495. # Make sure the PIC flag is empty. It appears that all Alpha
  12496. # Linux and Compaq Tru64 Unix objects are PIC.
  12497. lt_prog_compiler_pic_CXX=
  12498. lt_prog_compiler_static_CXX='-non_shared'
  12499. ;;
  12500. *)
  12501. ;;
  12502. esac
  12503. ;;
  12504. psos*)
  12505. ;;
  12506. solaris*)
  12507. case $cc_basename in
  12508. CC* | sunCC*)
  12509. # Sun C++ 4.2, 5.x and Centerline C++
  12510. lt_prog_compiler_pic_CXX='-KPIC'
  12511. lt_prog_compiler_static_CXX='-Bstatic'
  12512. lt_prog_compiler_wl_CXX='-Qoption ld '
  12513. ;;
  12514. gcx*)
  12515. # Green Hills C++ Compiler
  12516. lt_prog_compiler_pic_CXX='-PIC'
  12517. ;;
  12518. *)
  12519. ;;
  12520. esac
  12521. ;;
  12522. sunos4*)
  12523. case $cc_basename in
  12524. CC*)
  12525. # Sun C++ 4.x
  12526. lt_prog_compiler_pic_CXX='-pic'
  12527. lt_prog_compiler_static_CXX='-Bstatic'
  12528. ;;
  12529. lcc*)
  12530. # Lucid
  12531. lt_prog_compiler_pic_CXX='-pic'
  12532. ;;
  12533. *)
  12534. ;;
  12535. esac
  12536. ;;
  12537. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12538. case $cc_basename in
  12539. CC*)
  12540. lt_prog_compiler_wl_CXX='-Wl,'
  12541. lt_prog_compiler_pic_CXX='-KPIC'
  12542. lt_prog_compiler_static_CXX='-Bstatic'
  12543. ;;
  12544. esac
  12545. ;;
  12546. tandem*)
  12547. case $cc_basename in
  12548. NCC*)
  12549. # NonStop-UX NCC 3.20
  12550. lt_prog_compiler_pic_CXX='-KPIC'
  12551. ;;
  12552. *)
  12553. ;;
  12554. esac
  12555. ;;
  12556. vxworks*)
  12557. ;;
  12558. *)
  12559. lt_prog_compiler_can_build_shared_CXX=no
  12560. ;;
  12561. esac
  12562. fi
  12563. case $host_os in
  12564. # For platforms which do not support PIC, -DPIC is meaningless:
  12565. *djgpp*)
  12566. lt_prog_compiler_pic_CXX=
  12567. ;;
  12568. *)
  12569. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12570. ;;
  12571. esac
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12573. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12574. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12575. $as_echo_n "(cached) " >&6
  12576. else
  12577. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12578. fi
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12580. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12581. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12582. #
  12583. # Check to make sure the PIC flag actually works.
  12584. #
  12585. if test -n "$lt_prog_compiler_pic_CXX"; then
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12587. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12588. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12589. $as_echo_n "(cached) " >&6
  12590. else
  12591. lt_cv_prog_compiler_pic_works_CXX=no
  12592. ac_outfile=conftest.$ac_objext
  12593. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12594. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12595. # Insert the option either (1) after the last *FLAGS variable, or
  12596. # (2) before a word containing "conftest.", or (3) at the end.
  12597. # Note that $ac_compile itself does not contain backslashes and begins
  12598. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12599. # The option is referenced via a variable to avoid confusing sed.
  12600. lt_compile=`echo "$ac_compile" | $SED \
  12601. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12602. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12603. -e 's:$: $lt_compiler_flag:'`
  12604. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12605. (eval "$lt_compile" 2>conftest.err)
  12606. ac_status=$?
  12607. cat conftest.err >&5
  12608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12609. if (exit $ac_status) && test -s "$ac_outfile"; then
  12610. # The compiler can only warn and ignore the option if not recognized
  12611. # So say no if there are warnings other than the usual output.
  12612. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12613. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12614. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12615. lt_cv_prog_compiler_pic_works_CXX=yes
  12616. fi
  12617. fi
  12618. $RM conftest*
  12619. fi
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12621. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12622. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12623. case $lt_prog_compiler_pic_CXX in
  12624. "" | " "*) ;;
  12625. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12626. esac
  12627. else
  12628. lt_prog_compiler_pic_CXX=
  12629. lt_prog_compiler_can_build_shared_CXX=no
  12630. fi
  12631. fi
  12632. #
  12633. # Check to make sure the static flag actually works.
  12634. #
  12635. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12637. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12638. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12639. $as_echo_n "(cached) " >&6
  12640. else
  12641. lt_cv_prog_compiler_static_works_CXX=no
  12642. save_LDFLAGS="$LDFLAGS"
  12643. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12644. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12645. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12646. # The linker can only warn and ignore the option if not recognized
  12647. # So say no if there are warnings
  12648. if test -s conftest.err; then
  12649. # Append any errors to the config.log.
  12650. cat conftest.err 1>&5
  12651. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12652. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12653. if diff conftest.exp conftest.er2 >/dev/null; then
  12654. lt_cv_prog_compiler_static_works_CXX=yes
  12655. fi
  12656. else
  12657. lt_cv_prog_compiler_static_works_CXX=yes
  12658. fi
  12659. fi
  12660. $RM -r conftest*
  12661. LDFLAGS="$save_LDFLAGS"
  12662. fi
  12663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12664. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12665. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12666. :
  12667. else
  12668. lt_prog_compiler_static_CXX=
  12669. fi
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12671. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12672. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12673. $as_echo_n "(cached) " >&6
  12674. else
  12675. lt_cv_prog_compiler_c_o_CXX=no
  12676. $RM -r conftest 2>/dev/null
  12677. mkdir conftest
  12678. cd conftest
  12679. mkdir out
  12680. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12681. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12682. # Insert the option either (1) after the last *FLAGS variable, or
  12683. # (2) before a word containing "conftest.", or (3) at the end.
  12684. # Note that $ac_compile itself does not contain backslashes and begins
  12685. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12686. lt_compile=`echo "$ac_compile" | $SED \
  12687. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12688. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12689. -e 's:$: $lt_compiler_flag:'`
  12690. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12691. (eval "$lt_compile" 2>out/conftest.err)
  12692. ac_status=$?
  12693. cat out/conftest.err >&5
  12694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12695. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12696. then
  12697. # The compiler can only warn and ignore the option if not recognized
  12698. # So say no if there are warnings
  12699. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12700. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12701. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12702. lt_cv_prog_compiler_c_o_CXX=yes
  12703. fi
  12704. fi
  12705. chmod u+w . 2>&5
  12706. $RM conftest*
  12707. # SGI C++ compiler will create directory out/ii_files/ for
  12708. # template instantiation
  12709. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12710. $RM out/* && rmdir out
  12711. cd ..
  12712. $RM -r conftest
  12713. $RM conftest*
  12714. fi
  12715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12716. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12718. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12719. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12720. $as_echo_n "(cached) " >&6
  12721. else
  12722. lt_cv_prog_compiler_c_o_CXX=no
  12723. $RM -r conftest 2>/dev/null
  12724. mkdir conftest
  12725. cd conftest
  12726. mkdir out
  12727. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12728. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12729. # Insert the option either (1) after the last *FLAGS variable, or
  12730. # (2) before a word containing "conftest.", or (3) at the end.
  12731. # Note that $ac_compile itself does not contain backslashes and begins
  12732. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12733. lt_compile=`echo "$ac_compile" | $SED \
  12734. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12735. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12736. -e 's:$: $lt_compiler_flag:'`
  12737. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12738. (eval "$lt_compile" 2>out/conftest.err)
  12739. ac_status=$?
  12740. cat out/conftest.err >&5
  12741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12742. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12743. then
  12744. # The compiler can only warn and ignore the option if not recognized
  12745. # So say no if there are warnings
  12746. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12747. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12748. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12749. lt_cv_prog_compiler_c_o_CXX=yes
  12750. fi
  12751. fi
  12752. chmod u+w . 2>&5
  12753. $RM conftest*
  12754. # SGI C++ compiler will create directory out/ii_files/ for
  12755. # template instantiation
  12756. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12757. $RM out/* && rmdir out
  12758. cd ..
  12759. $RM -r conftest
  12760. $RM conftest*
  12761. fi
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12763. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12764. hard_links="nottested"
  12765. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12766. # do not overwrite the value of need_locks provided by the user
  12767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12768. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12769. hard_links=yes
  12770. $RM conftest*
  12771. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12772. touch conftest.a
  12773. ln conftest.a conftest.b 2>&5 || hard_links=no
  12774. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12776. $as_echo "$hard_links" >&6; }
  12777. if test "$hard_links" = no; then
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12779. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12780. need_locks=warn
  12781. fi
  12782. else
  12783. need_locks=no
  12784. fi
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12786. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12787. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12788. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12789. case $host_os in
  12790. aix[4-9]*)
  12791. # If we're using GNU nm, then we don't want the "-C" option.
  12792. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12793. # Also, AIX nm treats weak defined symbols like other global defined
  12794. # symbols, whereas GNU nm marks them as "W".
  12795. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12796. 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'
  12797. else
  12798. 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'
  12799. fi
  12800. ;;
  12801. pw32*)
  12802. export_symbols_cmds_CXX="$ltdll_cmds"
  12803. ;;
  12804. cygwin* | mingw* | cegcc*)
  12805. case $cc_basename in
  12806. cl*)
  12807. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12808. ;;
  12809. *)
  12810. 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'
  12811. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12812. ;;
  12813. esac
  12814. ;;
  12815. *)
  12816. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12817. ;;
  12818. esac
  12819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12820. $as_echo "$ld_shlibs_CXX" >&6; }
  12821. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12822. with_gnu_ld_CXX=$with_gnu_ld
  12823. #
  12824. # Do we need to explicitly link libc?
  12825. #
  12826. case "x$archive_cmds_need_lc_CXX" in
  12827. x|xyes)
  12828. # Assume -lc should be added
  12829. archive_cmds_need_lc_CXX=yes
  12830. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12831. case $archive_cmds_CXX in
  12832. *'~'*)
  12833. # FIXME: we may have to deal with multi-command sequences.
  12834. ;;
  12835. '$CC '*)
  12836. # Test whether the compiler implicitly links with -lc since on some
  12837. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12838. # to ld, don't add -lc before -lgcc.
  12839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12840. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12841. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12842. $as_echo_n "(cached) " >&6
  12843. else
  12844. $RM conftest*
  12845. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12846. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12847. (eval $ac_compile) 2>&5
  12848. ac_status=$?
  12849. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12850. test $ac_status = 0; } 2>conftest.err; then
  12851. soname=conftest
  12852. lib=conftest
  12853. libobjs=conftest.$ac_objext
  12854. deplibs=
  12855. wl=$lt_prog_compiler_wl_CXX
  12856. pic_flag=$lt_prog_compiler_pic_CXX
  12857. compiler_flags=-v
  12858. linker_flags=-v
  12859. verstring=
  12860. output_objdir=.
  12861. libname=conftest
  12862. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12863. allow_undefined_flag_CXX=
  12864. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12865. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12866. ac_status=$?
  12867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12868. test $ac_status = 0; }
  12869. then
  12870. lt_cv_archive_cmds_need_lc_CXX=no
  12871. else
  12872. lt_cv_archive_cmds_need_lc_CXX=yes
  12873. fi
  12874. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12875. else
  12876. cat conftest.err 1>&5
  12877. fi
  12878. $RM conftest*
  12879. fi
  12880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12881. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12882. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12883. ;;
  12884. esac
  12885. fi
  12886. ;;
  12887. esac
  12888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12889. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12890. library_names_spec=
  12891. libname_spec='lib$name'
  12892. soname_spec=
  12893. shrext_cmds=".so"
  12894. postinstall_cmds=
  12895. postuninstall_cmds=
  12896. finish_cmds=
  12897. finish_eval=
  12898. shlibpath_var=
  12899. shlibpath_overrides_runpath=unknown
  12900. version_type=none
  12901. dynamic_linker="$host_os ld.so"
  12902. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12903. need_lib_prefix=unknown
  12904. hardcode_into_libs=no
  12905. # when you set need_version to no, make sure it does not cause -set_version
  12906. # flags to be left without arguments
  12907. need_version=unknown
  12908. case $host_os in
  12909. aix3*)
  12910. version_type=linux # correct to gnu/linux during the next big refactor
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12912. shlibpath_var=LIBPATH
  12913. # AIX 3 has no versioning support, so we append a major version to the name.
  12914. soname_spec='${libname}${release}${shared_ext}$major'
  12915. ;;
  12916. aix[4-9]*)
  12917. version_type=linux # correct to gnu/linux during the next big refactor
  12918. need_lib_prefix=no
  12919. need_version=no
  12920. hardcode_into_libs=yes
  12921. if test "$host_cpu" = ia64; then
  12922. # AIX 5 supports IA64
  12923. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12924. shlibpath_var=LD_LIBRARY_PATH
  12925. else
  12926. # With GCC up to 2.95.x, collect2 would create an import file
  12927. # for dependence libraries. The import file would start with
  12928. # the line `#! .'. This would cause the generated library to
  12929. # depend on `.', always an invalid library. This was fixed in
  12930. # development snapshots of GCC prior to 3.0.
  12931. case $host_os in
  12932. aix4 | aix4.[01] | aix4.[01].*)
  12933. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12934. echo ' yes '
  12935. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12936. :
  12937. else
  12938. can_build_shared=no
  12939. fi
  12940. ;;
  12941. esac
  12942. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12943. # soname into executable. Probably we can add versioning support to
  12944. # collect2, so additional links can be useful in future.
  12945. if test "$aix_use_runtimelinking" = yes; then
  12946. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12947. # instead of lib<name>.a to let people know that these are not
  12948. # typical AIX shared libraries.
  12949. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12950. else
  12951. # We preserve .a as extension for shared libraries through AIX4.2
  12952. # and later when we are not doing run time linking.
  12953. library_names_spec='${libname}${release}.a $libname.a'
  12954. soname_spec='${libname}${release}${shared_ext}$major'
  12955. fi
  12956. shlibpath_var=LIBPATH
  12957. fi
  12958. ;;
  12959. amigaos*)
  12960. case $host_cpu in
  12961. powerpc)
  12962. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12963. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12965. ;;
  12966. m68k)
  12967. library_names_spec='$libname.ixlibrary $libname.a'
  12968. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12969. 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'
  12970. ;;
  12971. esac
  12972. ;;
  12973. beos*)
  12974. library_names_spec='${libname}${shared_ext}'
  12975. dynamic_linker="$host_os ld.so"
  12976. shlibpath_var=LIBRARY_PATH
  12977. ;;
  12978. bsdi[45]*)
  12979. version_type=linux # correct to gnu/linux during the next big refactor
  12980. need_version=no
  12981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12982. soname_spec='${libname}${release}${shared_ext}$major'
  12983. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12984. shlibpath_var=LD_LIBRARY_PATH
  12985. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12986. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12987. # the default ld.so.conf also contains /usr/contrib/lib and
  12988. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12989. # libtool to hard-code these into programs
  12990. ;;
  12991. cygwin* | mingw* | pw32* | cegcc*)
  12992. version_type=windows
  12993. shrext_cmds=".dll"
  12994. need_version=no
  12995. need_lib_prefix=no
  12996. case $GCC,$cc_basename in
  12997. yes,*)
  12998. # gcc
  12999. library_names_spec='$libname.dll.a'
  13000. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13001. postinstall_cmds='base_file=`basename \${file}`~
  13002. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13003. dldir=$destdir/`dirname \$dlpath`~
  13004. test -d \$dldir || mkdir -p \$dldir~
  13005. $install_prog $dir/$dlname \$dldir/$dlname~
  13006. chmod a+x \$dldir/$dlname~
  13007. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13008. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13009. fi'
  13010. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13011. dlpath=$dir/\$dldll~
  13012. $RM \$dlpath'
  13013. shlibpath_overrides_runpath=yes
  13014. case $host_os in
  13015. cygwin*)
  13016. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13017. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13018. ;;
  13019. mingw* | cegcc*)
  13020. # MinGW DLLs use traditional 'lib' prefix
  13021. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13022. ;;
  13023. pw32*)
  13024. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13025. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13026. ;;
  13027. esac
  13028. dynamic_linker='Win32 ld.exe'
  13029. ;;
  13030. *,cl*)
  13031. # Native MSVC
  13032. libname_spec='$name'
  13033. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13034. library_names_spec='${libname}.dll.lib'
  13035. case $build_os in
  13036. mingw*)
  13037. sys_lib_search_path_spec=
  13038. lt_save_ifs=$IFS
  13039. IFS=';'
  13040. for lt_path in $LIB
  13041. do
  13042. IFS=$lt_save_ifs
  13043. # Let DOS variable expansion print the short 8.3 style file name.
  13044. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13045. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13046. done
  13047. IFS=$lt_save_ifs
  13048. # Convert to MSYS style.
  13049. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13050. ;;
  13051. cygwin*)
  13052. # Convert to unix form, then to dos form, then back to unix form
  13053. # but this time dos style (no spaces!) so that the unix form looks
  13054. # like /cygdrive/c/PROGRA~1:/cygdr...
  13055. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13056. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13057. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13058. ;;
  13059. *)
  13060. sys_lib_search_path_spec="$LIB"
  13061. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13062. # It is most probably a Windows format PATH.
  13063. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13064. else
  13065. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13066. fi
  13067. # FIXME: find the short name or the path components, as spaces are
  13068. # common. (e.g. "Program Files" -> "PROGRA~1")
  13069. ;;
  13070. esac
  13071. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13072. postinstall_cmds='base_file=`basename \${file}`~
  13073. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13074. dldir=$destdir/`dirname \$dlpath`~
  13075. test -d \$dldir || mkdir -p \$dldir~
  13076. $install_prog $dir/$dlname \$dldir/$dlname'
  13077. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13078. dlpath=$dir/\$dldll~
  13079. $RM \$dlpath'
  13080. shlibpath_overrides_runpath=yes
  13081. dynamic_linker='Win32 link.exe'
  13082. ;;
  13083. *)
  13084. # Assume MSVC wrapper
  13085. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13086. dynamic_linker='Win32 ld.exe'
  13087. ;;
  13088. esac
  13089. # FIXME: first we should search . and the directory the executable is in
  13090. shlibpath_var=PATH
  13091. ;;
  13092. darwin* | rhapsody*)
  13093. dynamic_linker="$host_os dyld"
  13094. version_type=darwin
  13095. need_lib_prefix=no
  13096. need_version=no
  13097. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13098. soname_spec='${libname}${release}${major}$shared_ext'
  13099. shlibpath_overrides_runpath=yes
  13100. shlibpath_var=DYLD_LIBRARY_PATH
  13101. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13102. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13103. ;;
  13104. dgux*)
  13105. version_type=linux # correct to gnu/linux during the next big refactor
  13106. need_lib_prefix=no
  13107. need_version=no
  13108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13109. soname_spec='${libname}${release}${shared_ext}$major'
  13110. shlibpath_var=LD_LIBRARY_PATH
  13111. ;;
  13112. freebsd* | dragonfly*)
  13113. # DragonFly does not have aout. When/if they implement a new
  13114. # versioning mechanism, adjust this.
  13115. if test -x /usr/bin/objformat; then
  13116. objformat=`/usr/bin/objformat`
  13117. else
  13118. case $host_os in
  13119. freebsd[23].*) objformat=aout ;;
  13120. *) objformat=elf ;;
  13121. esac
  13122. fi
  13123. version_type=freebsd-$objformat
  13124. case $version_type in
  13125. freebsd-elf*)
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13127. need_version=no
  13128. need_lib_prefix=no
  13129. ;;
  13130. freebsd-*)
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13132. need_version=yes
  13133. ;;
  13134. esac
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. case $host_os in
  13137. freebsd2.*)
  13138. shlibpath_overrides_runpath=yes
  13139. ;;
  13140. freebsd3.[01]* | freebsdelf3.[01]*)
  13141. shlibpath_overrides_runpath=yes
  13142. hardcode_into_libs=yes
  13143. ;;
  13144. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13145. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13146. shlibpath_overrides_runpath=no
  13147. hardcode_into_libs=yes
  13148. ;;
  13149. *) # from 4.6 on, and DragonFly
  13150. shlibpath_overrides_runpath=yes
  13151. hardcode_into_libs=yes
  13152. ;;
  13153. esac
  13154. ;;
  13155. gnu*)
  13156. version_type=linux # correct to gnu/linux during the next big refactor
  13157. need_lib_prefix=no
  13158. need_version=no
  13159. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13160. soname_spec='${libname}${release}${shared_ext}$major'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. shlibpath_overrides_runpath=no
  13163. hardcode_into_libs=yes
  13164. ;;
  13165. haiku*)
  13166. version_type=linux # correct to gnu/linux during the next big refactor
  13167. need_lib_prefix=no
  13168. need_version=no
  13169. dynamic_linker="$host_os runtime_loader"
  13170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13171. soname_spec='${libname}${release}${shared_ext}$major'
  13172. shlibpath_var=LIBRARY_PATH
  13173. shlibpath_overrides_runpath=yes
  13174. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13175. hardcode_into_libs=yes
  13176. ;;
  13177. hpux9* | hpux10* | hpux11*)
  13178. # Give a soname corresponding to the major version so that dld.sl refuses to
  13179. # link against other versions.
  13180. version_type=sunos
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. case $host_cpu in
  13184. ia64*)
  13185. shrext_cmds='.so'
  13186. hardcode_into_libs=yes
  13187. dynamic_linker="$host_os dld.so"
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. if test "X$HPUX_IA64_MODE" = X32; then
  13193. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13194. else
  13195. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13196. fi
  13197. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13198. ;;
  13199. hppa*64*)
  13200. shrext_cmds='.sl'
  13201. hardcode_into_libs=yes
  13202. dynamic_linker="$host_os dld.sl"
  13203. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13204. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13206. soname_spec='${libname}${release}${shared_ext}$major'
  13207. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13208. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13209. ;;
  13210. *)
  13211. shrext_cmds='.sl'
  13212. dynamic_linker="$host_os dld.sl"
  13213. shlibpath_var=SHLIB_PATH
  13214. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13216. soname_spec='${libname}${release}${shared_ext}$major'
  13217. ;;
  13218. esac
  13219. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13220. postinstall_cmds='chmod 555 $lib'
  13221. # or fails outright, so override atomically:
  13222. install_override_mode=555
  13223. ;;
  13224. interix[3-9]*)
  13225. version_type=linux # correct to gnu/linux during the next big refactor
  13226. need_lib_prefix=no
  13227. need_version=no
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13229. soname_spec='${libname}${release}${shared_ext}$major'
  13230. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13231. shlibpath_var=LD_LIBRARY_PATH
  13232. shlibpath_overrides_runpath=no
  13233. hardcode_into_libs=yes
  13234. ;;
  13235. irix5* | irix6* | nonstopux*)
  13236. case $host_os in
  13237. nonstopux*) version_type=nonstopux ;;
  13238. *)
  13239. if test "$lt_cv_prog_gnu_ld" = yes; then
  13240. version_type=linux # correct to gnu/linux during the next big refactor
  13241. else
  13242. version_type=irix
  13243. fi ;;
  13244. esac
  13245. need_lib_prefix=no
  13246. need_version=no
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13249. case $host_os in
  13250. irix5* | nonstopux*)
  13251. libsuff= shlibsuff=
  13252. ;;
  13253. *)
  13254. case $LD in # libtool.m4 will add one of these switches to LD
  13255. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13256. libsuff= shlibsuff= libmagic=32-bit;;
  13257. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13258. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13259. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13260. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13261. *) libsuff= shlibsuff= libmagic=never-match;;
  13262. esac
  13263. ;;
  13264. esac
  13265. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13266. shlibpath_overrides_runpath=no
  13267. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13268. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13269. hardcode_into_libs=yes
  13270. ;;
  13271. # No shared lib support for Linux oldld, aout, or coff.
  13272. linux*oldld* | linux*aout* | linux*coff*)
  13273. dynamic_linker=no
  13274. ;;
  13275. # This must be glibc/ELF.
  13276. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13277. version_type=linux # correct to gnu/linux during the next big refactor
  13278. need_lib_prefix=no
  13279. need_version=no
  13280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13281. soname_spec='${libname}${release}${shared_ext}$major'
  13282. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. shlibpath_overrides_runpath=no
  13285. # Some binutils ld are patched to set DT_RUNPATH
  13286. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13287. $as_echo_n "(cached) " >&6
  13288. else
  13289. lt_cv_shlibpath_overrides_runpath=no
  13290. save_LDFLAGS=$LDFLAGS
  13291. save_libdir=$libdir
  13292. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13293. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13295. /* end confdefs.h. */
  13296. int
  13297. main ()
  13298. {
  13299. ;
  13300. return 0;
  13301. }
  13302. _ACEOF
  13303. if ac_fn_cxx_try_link "$LINENO"; then :
  13304. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13305. lt_cv_shlibpath_overrides_runpath=yes
  13306. fi
  13307. fi
  13308. rm -f core conftest.err conftest.$ac_objext \
  13309. conftest$ac_exeext conftest.$ac_ext
  13310. LDFLAGS=$save_LDFLAGS
  13311. libdir=$save_libdir
  13312. fi
  13313. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13314. # This implies no fast_install, which is unacceptable.
  13315. # Some rework will be needed to allow for fast_install
  13316. # before this can be enabled.
  13317. hardcode_into_libs=yes
  13318. # Add ABI-specific directories to the system library path.
  13319. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13320. # Append ld.so.conf contents to the search path
  13321. if test -f /etc/ld.so.conf; then
  13322. 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' ' '`
  13323. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13324. fi
  13325. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13326. # powerpc, because MkLinux only supported shared libraries with the
  13327. # GNU dynamic linker. Since this was broken with cross compilers,
  13328. # most powerpc-linux boxes support dynamic linking these days and
  13329. # people can always --disable-shared, the test was removed, and we
  13330. # assume the GNU/Linux dynamic linker is in use.
  13331. dynamic_linker='GNU/Linux ld.so'
  13332. ;;
  13333. netbsd*)
  13334. version_type=sunos
  13335. need_lib_prefix=no
  13336. need_version=no
  13337. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13339. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13340. dynamic_linker='NetBSD (a.out) ld.so'
  13341. else
  13342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13343. soname_spec='${libname}${release}${shared_ext}$major'
  13344. dynamic_linker='NetBSD ld.elf_so'
  13345. fi
  13346. shlibpath_var=LD_LIBRARY_PATH
  13347. shlibpath_overrides_runpath=yes
  13348. hardcode_into_libs=yes
  13349. ;;
  13350. newsos6)
  13351. version_type=linux # correct to gnu/linux during the next big refactor
  13352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13353. shlibpath_var=LD_LIBRARY_PATH
  13354. shlibpath_overrides_runpath=yes
  13355. ;;
  13356. *nto* | *qnx*)
  13357. version_type=qnx
  13358. need_lib_prefix=no
  13359. need_version=no
  13360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13361. soname_spec='${libname}${release}${shared_ext}$major'
  13362. shlibpath_var=LD_LIBRARY_PATH
  13363. shlibpath_overrides_runpath=no
  13364. hardcode_into_libs=yes
  13365. dynamic_linker='ldqnx.so'
  13366. ;;
  13367. openbsd*)
  13368. version_type=sunos
  13369. sys_lib_dlsearch_path_spec="/usr/lib"
  13370. need_lib_prefix=no
  13371. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13372. case $host_os in
  13373. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13374. *) need_version=no ;;
  13375. esac
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13377. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13378. shlibpath_var=LD_LIBRARY_PATH
  13379. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13380. case $host_os in
  13381. openbsd2.[89] | openbsd2.[89].*)
  13382. shlibpath_overrides_runpath=no
  13383. ;;
  13384. *)
  13385. shlibpath_overrides_runpath=yes
  13386. ;;
  13387. esac
  13388. else
  13389. shlibpath_overrides_runpath=yes
  13390. fi
  13391. ;;
  13392. os2*)
  13393. libname_spec='$name'
  13394. shrext_cmds=".dll"
  13395. need_lib_prefix=no
  13396. library_names_spec='$libname${shared_ext} $libname.a'
  13397. dynamic_linker='OS/2 ld.exe'
  13398. shlibpath_var=LIBPATH
  13399. ;;
  13400. osf3* | osf4* | osf5*)
  13401. version_type=osf
  13402. need_lib_prefix=no
  13403. need_version=no
  13404. soname_spec='${libname}${release}${shared_ext}$major'
  13405. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13406. shlibpath_var=LD_LIBRARY_PATH
  13407. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13408. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13409. ;;
  13410. rdos*)
  13411. dynamic_linker=no
  13412. ;;
  13413. solaris*)
  13414. version_type=linux # correct to gnu/linux during the next big refactor
  13415. need_lib_prefix=no
  13416. need_version=no
  13417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13418. soname_spec='${libname}${release}${shared_ext}$major'
  13419. shlibpath_var=LD_LIBRARY_PATH
  13420. shlibpath_overrides_runpath=yes
  13421. hardcode_into_libs=yes
  13422. # ldd complains unless libraries are executable
  13423. postinstall_cmds='chmod +x $lib'
  13424. ;;
  13425. sunos4*)
  13426. version_type=sunos
  13427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13428. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13429. shlibpath_var=LD_LIBRARY_PATH
  13430. shlibpath_overrides_runpath=yes
  13431. if test "$with_gnu_ld" = yes; then
  13432. need_lib_prefix=no
  13433. fi
  13434. need_version=yes
  13435. ;;
  13436. sysv4 | sysv4.3*)
  13437. version_type=linux # correct to gnu/linux during the next big refactor
  13438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13439. soname_spec='${libname}${release}${shared_ext}$major'
  13440. shlibpath_var=LD_LIBRARY_PATH
  13441. case $host_vendor in
  13442. sni)
  13443. shlibpath_overrides_runpath=no
  13444. need_lib_prefix=no
  13445. runpath_var=LD_RUN_PATH
  13446. ;;
  13447. siemens)
  13448. need_lib_prefix=no
  13449. ;;
  13450. motorola)
  13451. need_lib_prefix=no
  13452. need_version=no
  13453. shlibpath_overrides_runpath=no
  13454. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13455. ;;
  13456. esac
  13457. ;;
  13458. sysv4*MP*)
  13459. if test -d /usr/nec ;then
  13460. version_type=linux # correct to gnu/linux during the next big refactor
  13461. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13462. soname_spec='$libname${shared_ext}.$major'
  13463. shlibpath_var=LD_LIBRARY_PATH
  13464. fi
  13465. ;;
  13466. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13467. version_type=freebsd-elf
  13468. need_lib_prefix=no
  13469. need_version=no
  13470. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13471. soname_spec='${libname}${release}${shared_ext}$major'
  13472. shlibpath_var=LD_LIBRARY_PATH
  13473. shlibpath_overrides_runpath=yes
  13474. hardcode_into_libs=yes
  13475. if test "$with_gnu_ld" = yes; then
  13476. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13477. else
  13478. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13479. case $host_os in
  13480. sco3.2v5*)
  13481. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13482. ;;
  13483. esac
  13484. fi
  13485. sys_lib_dlsearch_path_spec='/usr/lib'
  13486. ;;
  13487. tpf*)
  13488. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13489. version_type=linux # correct to gnu/linux during the next big refactor
  13490. need_lib_prefix=no
  13491. need_version=no
  13492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13493. shlibpath_var=LD_LIBRARY_PATH
  13494. shlibpath_overrides_runpath=no
  13495. hardcode_into_libs=yes
  13496. ;;
  13497. uts4*)
  13498. version_type=linux # correct to gnu/linux during the next big refactor
  13499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13500. soname_spec='${libname}${release}${shared_ext}$major'
  13501. shlibpath_var=LD_LIBRARY_PATH
  13502. ;;
  13503. *)
  13504. dynamic_linker=no
  13505. ;;
  13506. esac
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13508. $as_echo "$dynamic_linker" >&6; }
  13509. test "$dynamic_linker" = no && can_build_shared=no
  13510. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13511. if test "$GCC" = yes; then
  13512. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13513. fi
  13514. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13515. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13516. fi
  13517. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13518. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13519. fi
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13521. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13522. hardcode_action_CXX=
  13523. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13524. test -n "$runpath_var_CXX" ||
  13525. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13526. # We can hardcode non-existent directories.
  13527. if test "$hardcode_direct_CXX" != no &&
  13528. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13529. # have to relink, otherwise we might link with an installed library
  13530. # when we should be linking with a yet-to-be-installed one
  13531. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13532. test "$hardcode_minus_L_CXX" != no; then
  13533. # Linking always hardcodes the temporary library directory.
  13534. hardcode_action_CXX=relink
  13535. else
  13536. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13537. hardcode_action_CXX=immediate
  13538. fi
  13539. else
  13540. # We cannot hardcode anything, or else we can only hardcode existing
  13541. # directories.
  13542. hardcode_action_CXX=unsupported
  13543. fi
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13545. $as_echo "$hardcode_action_CXX" >&6; }
  13546. if test "$hardcode_action_CXX" = relink ||
  13547. test "$inherit_rpath_CXX" = yes; then
  13548. # Fast installation is not supported
  13549. enable_fast_install=no
  13550. elif test "$shlibpath_overrides_runpath" = yes ||
  13551. test "$enable_shared" = no; then
  13552. # Fast installation is not necessary
  13553. enable_fast_install=needless
  13554. fi
  13555. fi # test -n "$compiler"
  13556. CC=$lt_save_CC
  13557. CFLAGS=$lt_save_CFLAGS
  13558. LDCXX=$LD
  13559. LD=$lt_save_LD
  13560. GCC=$lt_save_GCC
  13561. with_gnu_ld=$lt_save_with_gnu_ld
  13562. lt_cv_path_LDCXX=$lt_cv_path_LD
  13563. lt_cv_path_LD=$lt_save_path_LD
  13564. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13565. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13566. fi # test "$_lt_caught_CXX_error" != yes
  13567. ac_ext=c
  13568. ac_cpp='$CPP $CPPFLAGS'
  13569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13572. ac_config_commands="$ac_config_commands libtool"
  13573. # Only expand once:
  13574. # Checks for header files.
  13575. ac_header_dirent=no
  13576. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13577. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13579. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13580. if eval \${$as_ac_Header+:} false; then :
  13581. $as_echo_n "(cached) " >&6
  13582. else
  13583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13584. /* end confdefs.h. */
  13585. #include <sys/types.h>
  13586. #include <$ac_hdr>
  13587. int
  13588. main ()
  13589. {
  13590. if ((DIR *) 0)
  13591. return 0;
  13592. ;
  13593. return 0;
  13594. }
  13595. _ACEOF
  13596. if ac_fn_c_try_compile "$LINENO"; then :
  13597. eval "$as_ac_Header=yes"
  13598. else
  13599. eval "$as_ac_Header=no"
  13600. fi
  13601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13602. fi
  13603. eval ac_res=\$$as_ac_Header
  13604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13605. $as_echo "$ac_res" >&6; }
  13606. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13607. cat >>confdefs.h <<_ACEOF
  13608. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13609. _ACEOF
  13610. ac_header_dirent=$ac_hdr; break
  13611. fi
  13612. done
  13613. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13614. if test $ac_header_dirent = dirent.h; then
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13616. $as_echo_n "checking for library containing opendir... " >&6; }
  13617. if ${ac_cv_search_opendir+:} false; then :
  13618. $as_echo_n "(cached) " >&6
  13619. else
  13620. ac_func_search_save_LIBS=$LIBS
  13621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13622. /* end confdefs.h. */
  13623. /* Override any GCC internal prototype to avoid an error.
  13624. Use char because int might match the return type of a GCC
  13625. builtin and then its argument prototype would still apply. */
  13626. #ifdef __cplusplus
  13627. extern "C"
  13628. #endif
  13629. char opendir ();
  13630. int
  13631. main ()
  13632. {
  13633. return opendir ();
  13634. ;
  13635. return 0;
  13636. }
  13637. _ACEOF
  13638. for ac_lib in '' dir; do
  13639. if test -z "$ac_lib"; then
  13640. ac_res="none required"
  13641. else
  13642. ac_res=-l$ac_lib
  13643. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13644. fi
  13645. if ac_fn_c_try_link "$LINENO"; then :
  13646. ac_cv_search_opendir=$ac_res
  13647. fi
  13648. rm -f core conftest.err conftest.$ac_objext \
  13649. conftest$ac_exeext
  13650. if ${ac_cv_search_opendir+:} false; then :
  13651. break
  13652. fi
  13653. done
  13654. if ${ac_cv_search_opendir+:} false; then :
  13655. else
  13656. ac_cv_search_opendir=no
  13657. fi
  13658. rm conftest.$ac_ext
  13659. LIBS=$ac_func_search_save_LIBS
  13660. fi
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13662. $as_echo "$ac_cv_search_opendir" >&6; }
  13663. ac_res=$ac_cv_search_opendir
  13664. if test "$ac_res" != no; then :
  13665. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13666. fi
  13667. else
  13668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13669. $as_echo_n "checking for library containing opendir... " >&6; }
  13670. if ${ac_cv_search_opendir+:} false; then :
  13671. $as_echo_n "(cached) " >&6
  13672. else
  13673. ac_func_search_save_LIBS=$LIBS
  13674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13675. /* end confdefs.h. */
  13676. /* Override any GCC internal prototype to avoid an error.
  13677. Use char because int might match the return type of a GCC
  13678. builtin and then its argument prototype would still apply. */
  13679. #ifdef __cplusplus
  13680. extern "C"
  13681. #endif
  13682. char opendir ();
  13683. int
  13684. main ()
  13685. {
  13686. return opendir ();
  13687. ;
  13688. return 0;
  13689. }
  13690. _ACEOF
  13691. for ac_lib in '' x; do
  13692. if test -z "$ac_lib"; then
  13693. ac_res="none required"
  13694. else
  13695. ac_res=-l$ac_lib
  13696. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13697. fi
  13698. if ac_fn_c_try_link "$LINENO"; then :
  13699. ac_cv_search_opendir=$ac_res
  13700. fi
  13701. rm -f core conftest.err conftest.$ac_objext \
  13702. conftest$ac_exeext
  13703. if ${ac_cv_search_opendir+:} false; then :
  13704. break
  13705. fi
  13706. done
  13707. if ${ac_cv_search_opendir+:} false; then :
  13708. else
  13709. ac_cv_search_opendir=no
  13710. fi
  13711. rm conftest.$ac_ext
  13712. LIBS=$ac_func_search_save_LIBS
  13713. fi
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13715. $as_echo "$ac_cv_search_opendir" >&6; }
  13716. ac_res=$ac_cv_search_opendir
  13717. if test "$ac_res" != no; then :
  13718. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13719. fi
  13720. fi
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13722. $as_echo_n "checking for ANSI C header files... " >&6; }
  13723. if ${ac_cv_header_stdc+:} false; then :
  13724. $as_echo_n "(cached) " >&6
  13725. else
  13726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13727. /* end confdefs.h. */
  13728. #include <stdlib.h>
  13729. #include <stdarg.h>
  13730. #include <string.h>
  13731. #include <float.h>
  13732. int
  13733. main ()
  13734. {
  13735. ;
  13736. return 0;
  13737. }
  13738. _ACEOF
  13739. if ac_fn_c_try_compile "$LINENO"; then :
  13740. ac_cv_header_stdc=yes
  13741. else
  13742. ac_cv_header_stdc=no
  13743. fi
  13744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13745. if test $ac_cv_header_stdc = yes; then
  13746. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13748. /* end confdefs.h. */
  13749. #include <string.h>
  13750. _ACEOF
  13751. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13752. $EGREP "memchr" >/dev/null 2>&1; then :
  13753. else
  13754. ac_cv_header_stdc=no
  13755. fi
  13756. rm -f conftest*
  13757. fi
  13758. if test $ac_cv_header_stdc = yes; then
  13759. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13761. /* end confdefs.h. */
  13762. #include <stdlib.h>
  13763. _ACEOF
  13764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13765. $EGREP "free" >/dev/null 2>&1; then :
  13766. else
  13767. ac_cv_header_stdc=no
  13768. fi
  13769. rm -f conftest*
  13770. fi
  13771. if test $ac_cv_header_stdc = yes; then
  13772. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13773. if test "$cross_compiling" = yes; then :
  13774. :
  13775. else
  13776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13777. /* end confdefs.h. */
  13778. #include <ctype.h>
  13779. #include <stdlib.h>
  13780. #if ((' ' & 0x0FF) == 0x020)
  13781. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13782. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13783. #else
  13784. # define ISLOWER(c) \
  13785. (('a' <= (c) && (c) <= 'i') \
  13786. || ('j' <= (c) && (c) <= 'r') \
  13787. || ('s' <= (c) && (c) <= 'z'))
  13788. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13789. #endif
  13790. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13791. int
  13792. main ()
  13793. {
  13794. int i;
  13795. for (i = 0; i < 256; i++)
  13796. if (XOR (islower (i), ISLOWER (i))
  13797. || toupper (i) != TOUPPER (i))
  13798. return 2;
  13799. return 0;
  13800. }
  13801. _ACEOF
  13802. if ac_fn_c_try_run "$LINENO"; then :
  13803. else
  13804. ac_cv_header_stdc=no
  13805. fi
  13806. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13807. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13808. fi
  13809. fi
  13810. fi
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13812. $as_echo "$ac_cv_header_stdc" >&6; }
  13813. if test $ac_cv_header_stdc = yes; then
  13814. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13815. fi
  13816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13817. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13818. if ${ac_cv_header_sys_wait_h+:} false; then :
  13819. $as_echo_n "(cached) " >&6
  13820. else
  13821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13822. /* end confdefs.h. */
  13823. #include <sys/types.h>
  13824. #include <sys/wait.h>
  13825. #ifndef WEXITSTATUS
  13826. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13827. #endif
  13828. #ifndef WIFEXITED
  13829. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13830. #endif
  13831. int
  13832. main ()
  13833. {
  13834. int s;
  13835. wait (&s);
  13836. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13837. ;
  13838. return 0;
  13839. }
  13840. _ACEOF
  13841. if ac_fn_c_try_compile "$LINENO"; then :
  13842. ac_cv_header_sys_wait_h=yes
  13843. else
  13844. ac_cv_header_sys_wait_h=no
  13845. fi
  13846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13847. fi
  13848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13849. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13850. if test $ac_cv_header_sys_wait_h = yes; then
  13851. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13852. fi
  13853. 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
  13854. do :
  13855. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13856. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13857. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13858. cat >>confdefs.h <<_ACEOF
  13859. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13860. _ACEOF
  13861. fi
  13862. done
  13863. # Checks for typedefs, structures, and compiler characteristics.
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13865. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13866. if ${ac_cv_header_stat_broken+:} false; then :
  13867. $as_echo_n "(cached) " >&6
  13868. else
  13869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13870. /* end confdefs.h. */
  13871. #include <sys/types.h>
  13872. #include <sys/stat.h>
  13873. #if defined S_ISBLK && defined S_IFDIR
  13874. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13875. #endif
  13876. #if defined S_ISBLK && defined S_IFCHR
  13877. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13878. #endif
  13879. #if defined S_ISLNK && defined S_IFREG
  13880. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13881. #endif
  13882. #if defined S_ISSOCK && defined S_IFREG
  13883. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13884. #endif
  13885. _ACEOF
  13886. if ac_fn_c_try_compile "$LINENO"; then :
  13887. ac_cv_header_stat_broken=no
  13888. else
  13889. ac_cv_header_stat_broken=yes
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13892. fi
  13893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13894. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13895. if test $ac_cv_header_stat_broken = yes; then
  13896. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13897. fi
  13898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13899. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13900. if ${ac_cv_c_const+:} false; then :
  13901. $as_echo_n "(cached) " >&6
  13902. else
  13903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13904. /* end confdefs.h. */
  13905. int
  13906. main ()
  13907. {
  13908. #ifndef __cplusplus
  13909. /* Ultrix mips cc rejects this sort of thing. */
  13910. typedef int charset[2];
  13911. const charset cs = { 0, 0 };
  13912. /* SunOS 4.1.1 cc rejects this. */
  13913. char const *const *pcpcc;
  13914. char **ppc;
  13915. /* NEC SVR4.0.2 mips cc rejects this. */
  13916. struct point {int x, y;};
  13917. static struct point const zero = {0,0};
  13918. /* AIX XL C 1.02.0.0 rejects this.
  13919. It does not let you subtract one const X* pointer from another in
  13920. an arm of an if-expression whose if-part is not a constant
  13921. expression */
  13922. const char *g = "string";
  13923. pcpcc = &g + (g ? g-g : 0);
  13924. /* HPUX 7.0 cc rejects these. */
  13925. ++pcpcc;
  13926. ppc = (char**) pcpcc;
  13927. pcpcc = (char const *const *) ppc;
  13928. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13929. char tx;
  13930. char *t = &tx;
  13931. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13932. *t++ = 0;
  13933. if (s) return 0;
  13934. }
  13935. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13936. int x[] = {25, 17};
  13937. const int *foo = &x[0];
  13938. ++foo;
  13939. }
  13940. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13941. typedef const int *iptr;
  13942. iptr p = 0;
  13943. ++p;
  13944. }
  13945. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13946. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13947. struct s { int j; const int *ap[3]; } bx;
  13948. struct s *b = &bx; b->j = 5;
  13949. }
  13950. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13951. const int foo = 10;
  13952. if (!foo) return 0;
  13953. }
  13954. return !cs[0] && !zero.x;
  13955. #endif
  13956. ;
  13957. return 0;
  13958. }
  13959. _ACEOF
  13960. if ac_fn_c_try_compile "$LINENO"; then :
  13961. ac_cv_c_const=yes
  13962. else
  13963. ac_cv_c_const=no
  13964. fi
  13965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13966. fi
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13968. $as_echo "$ac_cv_c_const" >&6; }
  13969. if test $ac_cv_c_const = no; then
  13970. $as_echo "#define const /**/" >>confdefs.h
  13971. fi
  13972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  13973. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  13974. if ${ac_cv_header_stdbool_h+:} false; then :
  13975. $as_echo_n "(cached) " >&6
  13976. else
  13977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13978. /* end confdefs.h. */
  13979. #include <stdbool.h>
  13980. #ifndef bool
  13981. "error: bool is not defined"
  13982. #endif
  13983. #ifndef false
  13984. "error: false is not defined"
  13985. #endif
  13986. #if false
  13987. "error: false is not 0"
  13988. #endif
  13989. #ifndef true
  13990. "error: true is not defined"
  13991. #endif
  13992. #if true != 1
  13993. "error: true is not 1"
  13994. #endif
  13995. #ifndef __bool_true_false_are_defined
  13996. "error: __bool_true_false_are_defined is not defined"
  13997. #endif
  13998. struct s { _Bool s: 1; _Bool t; } s;
  13999. char a[true == 1 ? 1 : -1];
  14000. char b[false == 0 ? 1 : -1];
  14001. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14002. char d[(bool) 0.5 == true ? 1 : -1];
  14003. /* See body of main program for 'e'. */
  14004. char f[(_Bool) 0.0 == false ? 1 : -1];
  14005. char g[true];
  14006. char h[sizeof (_Bool)];
  14007. char i[sizeof s.t];
  14008. enum { j = false, k = true, l = false * true, m = true * 256 };
  14009. /* The following fails for
  14010. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14011. _Bool n[m];
  14012. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14013. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14014. /* Catch a bug in an HP-UX C compiler. See
  14015. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14016. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14017. */
  14018. _Bool q = true;
  14019. _Bool *pq = &q;
  14020. int
  14021. main ()
  14022. {
  14023. bool e = &s;
  14024. *pq |= q;
  14025. *pq |= ! q;
  14026. /* Refer to every declared value, to avoid compiler optimizations. */
  14027. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14028. + !m + !n + !o + !p + !q + !pq);
  14029. ;
  14030. return 0;
  14031. }
  14032. _ACEOF
  14033. if ac_fn_c_try_compile "$LINENO"; then :
  14034. ac_cv_header_stdbool_h=yes
  14035. else
  14036. ac_cv_header_stdbool_h=no
  14037. fi
  14038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14039. fi
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14041. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14042. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14043. if test "x$ac_cv_type__Bool" = xyes; then :
  14044. cat >>confdefs.h <<_ACEOF
  14045. #define HAVE__BOOL 1
  14046. _ACEOF
  14047. fi
  14048. if test $ac_cv_header_stdbool_h = yes; then
  14049. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14052. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14053. if ${ac_cv_type_uid_t+:} false; then :
  14054. $as_echo_n "(cached) " >&6
  14055. else
  14056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14057. /* end confdefs.h. */
  14058. #include <sys/types.h>
  14059. _ACEOF
  14060. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14061. $EGREP "uid_t" >/dev/null 2>&1; then :
  14062. ac_cv_type_uid_t=yes
  14063. else
  14064. ac_cv_type_uid_t=no
  14065. fi
  14066. rm -f conftest*
  14067. fi
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14069. $as_echo "$ac_cv_type_uid_t" >&6; }
  14070. if test $ac_cv_type_uid_t = no; then
  14071. $as_echo "#define uid_t int" >>confdefs.h
  14072. $as_echo "#define gid_t int" >>confdefs.h
  14073. fi
  14074. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14075. if test "x$ac_cv_type_pid_t" = xyes; then :
  14076. else
  14077. cat >>confdefs.h <<_ACEOF
  14078. #define pid_t int
  14079. _ACEOF
  14080. fi
  14081. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14082. if test "x$ac_cv_type_size_t" = xyes; then :
  14083. else
  14084. cat >>confdefs.h <<_ACEOF
  14085. #define size_t unsigned int
  14086. _ACEOF
  14087. fi
  14088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14089. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14090. if ${ac_cv_header_time+:} false; then :
  14091. $as_echo_n "(cached) " >&6
  14092. else
  14093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14094. /* end confdefs.h. */
  14095. #include <sys/types.h>
  14096. #include <sys/time.h>
  14097. #include <time.h>
  14098. int
  14099. main ()
  14100. {
  14101. if ((struct tm *) 0)
  14102. return 0;
  14103. ;
  14104. return 0;
  14105. }
  14106. _ACEOF
  14107. if ac_fn_c_try_compile "$LINENO"; then :
  14108. ac_cv_header_time=yes
  14109. else
  14110. ac_cv_header_time=no
  14111. fi
  14112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14113. fi
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14115. $as_echo "$ac_cv_header_time" >&6; }
  14116. if test $ac_cv_header_time = yes; then
  14117. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14118. fi
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14120. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14121. if ${ac_cv_struct_tm+:} false; then :
  14122. $as_echo_n "(cached) " >&6
  14123. else
  14124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14125. /* end confdefs.h. */
  14126. #include <sys/types.h>
  14127. #include <time.h>
  14128. int
  14129. main ()
  14130. {
  14131. struct tm tm;
  14132. int *p = &tm.tm_sec;
  14133. return !p;
  14134. ;
  14135. return 0;
  14136. }
  14137. _ACEOF
  14138. if ac_fn_c_try_compile "$LINENO"; then :
  14139. ac_cv_struct_tm=time.h
  14140. else
  14141. ac_cv_struct_tm=sys/time.h
  14142. fi
  14143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14144. fi
  14145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14146. $as_echo "$ac_cv_struct_tm" >&6; }
  14147. if test $ac_cv_struct_tm = sys/time.h; then
  14148. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14149. fi
  14150. # Checks for library functions.
  14151. for ac_header in unistd.h
  14152. do :
  14153. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14154. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14155. cat >>confdefs.h <<_ACEOF
  14156. #define HAVE_UNISTD_H 1
  14157. _ACEOF
  14158. fi
  14159. done
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14161. $as_echo_n "checking for working chown... " >&6; }
  14162. if ${ac_cv_func_chown_works+:} false; then :
  14163. $as_echo_n "(cached) " >&6
  14164. else
  14165. if test "$cross_compiling" = yes; then :
  14166. ac_cv_func_chown_works=no
  14167. else
  14168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14169. /* end confdefs.h. */
  14170. $ac_includes_default
  14171. #include <fcntl.h>
  14172. int
  14173. main ()
  14174. {
  14175. char *f = "conftest.chown";
  14176. struct stat before, after;
  14177. if (creat (f, 0600) < 0)
  14178. return 1;
  14179. if (stat (f, &before) < 0)
  14180. return 1;
  14181. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14182. return 1;
  14183. if (stat (f, &after) < 0)
  14184. return 1;
  14185. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14186. ;
  14187. return 0;
  14188. }
  14189. _ACEOF
  14190. if ac_fn_c_try_run "$LINENO"; then :
  14191. ac_cv_func_chown_works=yes
  14192. else
  14193. ac_cv_func_chown_works=no
  14194. fi
  14195. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14196. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14197. fi
  14198. rm -f conftest.chown
  14199. fi
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14201. $as_echo "$ac_cv_func_chown_works" >&6; }
  14202. if test $ac_cv_func_chown_works = yes; then
  14203. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14204. fi
  14205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14206. $as_echo_n "checking whether closedir returns void... " >&6; }
  14207. if ${ac_cv_func_closedir_void+:} false; then :
  14208. $as_echo_n "(cached) " >&6
  14209. else
  14210. if test "$cross_compiling" = yes; then :
  14211. ac_cv_func_closedir_void=yes
  14212. else
  14213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14214. /* end confdefs.h. */
  14215. $ac_includes_default
  14216. #include <$ac_header_dirent>
  14217. #ifndef __cplusplus
  14218. int closedir ();
  14219. #endif
  14220. int
  14221. main ()
  14222. {
  14223. return closedir (opendir (".")) != 0;
  14224. ;
  14225. return 0;
  14226. }
  14227. _ACEOF
  14228. if ac_fn_c_try_run "$LINENO"; then :
  14229. ac_cv_func_closedir_void=no
  14230. else
  14231. ac_cv_func_closedir_void=yes
  14232. fi
  14233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14234. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14235. fi
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14238. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14239. if test $ac_cv_func_closedir_void = yes; then
  14240. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14241. fi
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14243. $as_echo_n "checking for error_at_line... " >&6; }
  14244. if ${ac_cv_lib_error_at_line+:} false; then :
  14245. $as_echo_n "(cached) " >&6
  14246. else
  14247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14248. /* end confdefs.h. */
  14249. #include <error.h>
  14250. int
  14251. main ()
  14252. {
  14253. error_at_line (0, 0, "", 0, "an error occurred");
  14254. ;
  14255. return 0;
  14256. }
  14257. _ACEOF
  14258. if ac_fn_c_try_link "$LINENO"; then :
  14259. ac_cv_lib_error_at_line=yes
  14260. else
  14261. ac_cv_lib_error_at_line=no
  14262. fi
  14263. rm -f core conftest.err conftest.$ac_objext \
  14264. conftest$ac_exeext conftest.$ac_ext
  14265. fi
  14266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14267. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14268. if test $ac_cv_lib_error_at_line = no; then
  14269. case " $LIBOBJS " in
  14270. *" error.$ac_objext "* ) ;;
  14271. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14272. ;;
  14273. esac
  14274. fi
  14275. for ac_header in vfork.h
  14276. do :
  14277. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14278. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14279. cat >>confdefs.h <<_ACEOF
  14280. #define HAVE_VFORK_H 1
  14281. _ACEOF
  14282. fi
  14283. done
  14284. for ac_func in fork vfork
  14285. do :
  14286. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14287. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14288. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14289. cat >>confdefs.h <<_ACEOF
  14290. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14291. _ACEOF
  14292. fi
  14293. done
  14294. if test "x$ac_cv_func_fork" = xyes; then
  14295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14296. $as_echo_n "checking for working fork... " >&6; }
  14297. if ${ac_cv_func_fork_works+:} false; then :
  14298. $as_echo_n "(cached) " >&6
  14299. else
  14300. if test "$cross_compiling" = yes; then :
  14301. ac_cv_func_fork_works=cross
  14302. else
  14303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14304. /* end confdefs.h. */
  14305. $ac_includes_default
  14306. int
  14307. main ()
  14308. {
  14309. /* By Ruediger Kuhlmann. */
  14310. return fork () < 0;
  14311. ;
  14312. return 0;
  14313. }
  14314. _ACEOF
  14315. if ac_fn_c_try_run "$LINENO"; then :
  14316. ac_cv_func_fork_works=yes
  14317. else
  14318. ac_cv_func_fork_works=no
  14319. fi
  14320. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14321. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14322. fi
  14323. fi
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14325. $as_echo "$ac_cv_func_fork_works" >&6; }
  14326. else
  14327. ac_cv_func_fork_works=$ac_cv_func_fork
  14328. fi
  14329. if test "x$ac_cv_func_fork_works" = xcross; then
  14330. case $host in
  14331. *-*-amigaos* | *-*-msdosdjgpp*)
  14332. # Override, as these systems have only a dummy fork() stub
  14333. ac_cv_func_fork_works=no
  14334. ;;
  14335. *)
  14336. ac_cv_func_fork_works=yes
  14337. ;;
  14338. esac
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14340. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14341. fi
  14342. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14343. if test "x$ac_cv_func_vfork" = xyes; then
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14345. $as_echo_n "checking for working vfork... " >&6; }
  14346. if ${ac_cv_func_vfork_works+:} false; then :
  14347. $as_echo_n "(cached) " >&6
  14348. else
  14349. if test "$cross_compiling" = yes; then :
  14350. ac_cv_func_vfork_works=cross
  14351. else
  14352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14353. /* end confdefs.h. */
  14354. /* Thanks to Paul Eggert for this test. */
  14355. $ac_includes_default
  14356. #include <sys/wait.h>
  14357. #ifdef HAVE_VFORK_H
  14358. # include <vfork.h>
  14359. #endif
  14360. /* On some sparc systems, changes by the child to local and incoming
  14361. argument registers are propagated back to the parent. The compiler
  14362. is told about this with #include <vfork.h>, but some compilers
  14363. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14364. static variable whose address is put into a register that is
  14365. clobbered by the vfork. */
  14366. static void
  14367. #ifdef __cplusplus
  14368. sparc_address_test (int arg)
  14369. # else
  14370. sparc_address_test (arg) int arg;
  14371. #endif
  14372. {
  14373. static pid_t child;
  14374. if (!child) {
  14375. child = vfork ();
  14376. if (child < 0) {
  14377. perror ("vfork");
  14378. _exit(2);
  14379. }
  14380. if (!child) {
  14381. arg = getpid();
  14382. write(-1, "", 0);
  14383. _exit (arg);
  14384. }
  14385. }
  14386. }
  14387. int
  14388. main ()
  14389. {
  14390. pid_t parent = getpid ();
  14391. pid_t child;
  14392. sparc_address_test (0);
  14393. child = vfork ();
  14394. if (child == 0) {
  14395. /* Here is another test for sparc vfork register problems. This
  14396. test uses lots of local variables, at least as many local
  14397. variables as main has allocated so far including compiler
  14398. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14399. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14400. reuse the register of parent for one of the local variables,
  14401. since it will think that parent can't possibly be used any more
  14402. in this routine. Assigning to the local variable will thus
  14403. munge parent in the parent process. */
  14404. pid_t
  14405. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14406. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14407. /* Convince the compiler that p..p7 are live; otherwise, it might
  14408. use the same hardware register for all 8 local variables. */
  14409. if (p != p1 || p != p2 || p != p3 || p != p4
  14410. || p != p5 || p != p6 || p != p7)
  14411. _exit(1);
  14412. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14413. from child file descriptors. If the child closes a descriptor
  14414. before it execs or exits, this munges the parent's descriptor
  14415. as well. Test for this by closing stdout in the child. */
  14416. _exit(close(fileno(stdout)) != 0);
  14417. } else {
  14418. int status;
  14419. struct stat st;
  14420. while (wait(&status) != child)
  14421. ;
  14422. return (
  14423. /* Was there some problem with vforking? */
  14424. child < 0
  14425. /* Did the child fail? (This shouldn't happen.) */
  14426. || status
  14427. /* Did the vfork/compiler bug occur? */
  14428. || parent != getpid()
  14429. /* Did the file descriptor bug occur? */
  14430. || fstat(fileno(stdout), &st) != 0
  14431. );
  14432. }
  14433. }
  14434. _ACEOF
  14435. if ac_fn_c_try_run "$LINENO"; then :
  14436. ac_cv_func_vfork_works=yes
  14437. else
  14438. ac_cv_func_vfork_works=no
  14439. fi
  14440. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14441. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14442. fi
  14443. fi
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14445. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14446. fi;
  14447. if test "x$ac_cv_func_fork_works" = xcross; then
  14448. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14450. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14451. fi
  14452. if test "x$ac_cv_func_vfork_works" = xyes; then
  14453. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14454. else
  14455. $as_echo "#define vfork fork" >>confdefs.h
  14456. fi
  14457. if test "x$ac_cv_func_fork_works" = xyes; then
  14458. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14459. fi
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14461. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14462. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14463. $as_echo_n "(cached) " >&6
  14464. else
  14465. rm -f conftest.sym conftest.file
  14466. echo >conftest.file
  14467. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14468. if test "$cross_compiling" = yes; then :
  14469. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14470. else
  14471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14472. /* end confdefs.h. */
  14473. $ac_includes_default
  14474. int
  14475. main ()
  14476. {
  14477. struct stat sbuf;
  14478. /* Linux will dereference the symlink and fail, as required by POSIX.
  14479. That is better in the sense that it means we will not
  14480. have to compile and use the lstat wrapper. */
  14481. return lstat ("conftest.sym/", &sbuf) == 0;
  14482. ;
  14483. return 0;
  14484. }
  14485. _ACEOF
  14486. if ac_fn_c_try_run "$LINENO"; then :
  14487. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14488. else
  14489. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14490. fi
  14491. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14492. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14493. fi
  14494. else
  14495. # If the `ln -s' command failed, then we probably don't even
  14496. # have an lstat function.
  14497. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14498. fi
  14499. rm -f conftest.sym conftest.file
  14500. fi
  14501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14502. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14503. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14504. cat >>confdefs.h <<_ACEOF
  14505. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14506. _ACEOF
  14507. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14508. case " $LIBOBJS " in
  14509. *" lstat.$ac_objext "* ) ;;
  14510. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14511. ;;
  14512. esac
  14513. fi
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14515. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14516. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14517. $as_echo_n "(cached) " >&6
  14518. else
  14519. if test "$cross_compiling" = yes; then :
  14520. ac_cv_func_lstat_empty_string_bug=yes
  14521. else
  14522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14523. /* end confdefs.h. */
  14524. $ac_includes_default
  14525. int
  14526. main ()
  14527. {
  14528. struct stat sbuf;
  14529. return lstat ("", &sbuf) == 0;
  14530. ;
  14531. return 0;
  14532. }
  14533. _ACEOF
  14534. if ac_fn_c_try_run "$LINENO"; then :
  14535. ac_cv_func_lstat_empty_string_bug=no
  14536. else
  14537. ac_cv_func_lstat_empty_string_bug=yes
  14538. fi
  14539. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14540. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14541. fi
  14542. fi
  14543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14544. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14545. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14546. case " $LIBOBJS " in
  14547. *" lstat.$ac_objext "* ) ;;
  14548. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14549. ;;
  14550. esac
  14551. cat >>confdefs.h <<_ACEOF
  14552. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14553. _ACEOF
  14554. fi
  14555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14556. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14557. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14558. $as_echo_n "(cached) " >&6
  14559. else
  14560. rm -f conftest.sym conftest.file
  14561. echo >conftest.file
  14562. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14563. if test "$cross_compiling" = yes; then :
  14564. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14565. else
  14566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14567. /* end confdefs.h. */
  14568. $ac_includes_default
  14569. int
  14570. main ()
  14571. {
  14572. struct stat sbuf;
  14573. /* Linux will dereference the symlink and fail, as required by POSIX.
  14574. That is better in the sense that it means we will not
  14575. have to compile and use the lstat wrapper. */
  14576. return lstat ("conftest.sym/", &sbuf) == 0;
  14577. ;
  14578. return 0;
  14579. }
  14580. _ACEOF
  14581. if ac_fn_c_try_run "$LINENO"; then :
  14582. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14583. else
  14584. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14585. fi
  14586. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14587. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14588. fi
  14589. else
  14590. # If the `ln -s' command failed, then we probably don't even
  14591. # have an lstat function.
  14592. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14593. fi
  14594. rm -f conftest.sym conftest.file
  14595. fi
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14597. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14598. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14599. cat >>confdefs.h <<_ACEOF
  14600. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14601. _ACEOF
  14602. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14603. case " $LIBOBJS " in
  14604. *" lstat.$ac_objext "* ) ;;
  14605. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14606. ;;
  14607. esac
  14608. fi
  14609. for ac_header in stdlib.h
  14610. do :
  14611. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14612. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14613. cat >>confdefs.h <<_ACEOF
  14614. #define HAVE_STDLIB_H 1
  14615. _ACEOF
  14616. fi
  14617. done
  14618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14619. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14620. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14621. $as_echo_n "(cached) " >&6
  14622. else
  14623. if test "$cross_compiling" = yes; then :
  14624. ac_cv_func_malloc_0_nonnull=no
  14625. else
  14626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14627. /* end confdefs.h. */
  14628. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14629. # include <stdlib.h>
  14630. #else
  14631. char *malloc ();
  14632. #endif
  14633. int
  14634. main ()
  14635. {
  14636. return ! malloc (0);
  14637. ;
  14638. return 0;
  14639. }
  14640. _ACEOF
  14641. if ac_fn_c_try_run "$LINENO"; then :
  14642. ac_cv_func_malloc_0_nonnull=yes
  14643. else
  14644. ac_cv_func_malloc_0_nonnull=no
  14645. fi
  14646. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14647. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14648. fi
  14649. fi
  14650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14651. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14652. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14653. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14654. else
  14655. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14656. case " $LIBOBJS " in
  14657. *" malloc.$ac_objext "* ) ;;
  14658. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14659. ;;
  14660. esac
  14661. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14662. fi
  14663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14664. $as_echo_n "checking for working memcmp... " >&6; }
  14665. if ${ac_cv_func_memcmp_working+:} false; then :
  14666. $as_echo_n "(cached) " >&6
  14667. else
  14668. if test "$cross_compiling" = yes; then :
  14669. ac_cv_func_memcmp_working=no
  14670. else
  14671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14672. /* end confdefs.h. */
  14673. $ac_includes_default
  14674. int
  14675. main ()
  14676. {
  14677. /* Some versions of memcmp are not 8-bit clean. */
  14678. char c0 = '\100', c1 = '\200', c2 = '\201';
  14679. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14680. return 1;
  14681. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14682. or more and with at least one buffer not starting on a 4-byte boundary.
  14683. William Lewis provided this test program. */
  14684. {
  14685. char foo[21];
  14686. char bar[21];
  14687. int i;
  14688. for (i = 0; i < 4; i++)
  14689. {
  14690. char *a = foo + i;
  14691. char *b = bar + i;
  14692. strcpy (a, "--------01111111");
  14693. strcpy (b, "--------10000000");
  14694. if (memcmp (a, b, 16) >= 0)
  14695. return 1;
  14696. }
  14697. return 0;
  14698. }
  14699. ;
  14700. return 0;
  14701. }
  14702. _ACEOF
  14703. if ac_fn_c_try_run "$LINENO"; then :
  14704. ac_cv_func_memcmp_working=yes
  14705. else
  14706. ac_cv_func_memcmp_working=no
  14707. fi
  14708. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14709. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14710. fi
  14711. fi
  14712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14713. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14714. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14715. *" memcmp.$ac_objext "* ) ;;
  14716. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14717. ;;
  14718. esac
  14719. for ac_header in $ac_header_list
  14720. do :
  14721. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14722. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14723. "
  14724. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14725. cat >>confdefs.h <<_ACEOF
  14726. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14727. _ACEOF
  14728. fi
  14729. done
  14730. for ac_func in getpagesize
  14731. do :
  14732. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14733. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14734. cat >>confdefs.h <<_ACEOF
  14735. #define HAVE_GETPAGESIZE 1
  14736. _ACEOF
  14737. fi
  14738. done
  14739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14740. $as_echo_n "checking for working mmap... " >&6; }
  14741. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14742. $as_echo_n "(cached) " >&6
  14743. else
  14744. if test "$cross_compiling" = yes; then :
  14745. ac_cv_func_mmap_fixed_mapped=no
  14746. else
  14747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14748. /* end confdefs.h. */
  14749. $ac_includes_default
  14750. /* malloc might have been renamed as rpl_malloc. */
  14751. #undef malloc
  14752. /* Thanks to Mike Haertel and Jim Avera for this test.
  14753. Here is a matrix of mmap possibilities:
  14754. mmap private not fixed
  14755. mmap private fixed at somewhere currently unmapped
  14756. mmap private fixed at somewhere already mapped
  14757. mmap shared not fixed
  14758. mmap shared fixed at somewhere currently unmapped
  14759. mmap shared fixed at somewhere already mapped
  14760. For private mappings, we should verify that changes cannot be read()
  14761. back from the file, nor mmap's back from the file at a different
  14762. address. (There have been systems where private was not correctly
  14763. implemented like the infamous i386 svr4.0, and systems where the
  14764. VM page cache was not coherent with the file system buffer cache
  14765. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14766. For shared mappings, we should conversely verify that changes get
  14767. propagated back to all the places they're supposed to be.
  14768. Grep wants private fixed already mapped.
  14769. The main things grep needs to know about mmap are:
  14770. * does it exist and is it safe to write into the mmap'd area
  14771. * how to use it (BSD variants) */
  14772. #include <fcntl.h>
  14773. #include <sys/mman.h>
  14774. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14775. char *malloc ();
  14776. #endif
  14777. /* This mess was copied from the GNU getpagesize.h. */
  14778. #ifndef HAVE_GETPAGESIZE
  14779. # ifdef _SC_PAGESIZE
  14780. # define getpagesize() sysconf(_SC_PAGESIZE)
  14781. # else /* no _SC_PAGESIZE */
  14782. # ifdef HAVE_SYS_PARAM_H
  14783. # include <sys/param.h>
  14784. # ifdef EXEC_PAGESIZE
  14785. # define getpagesize() EXEC_PAGESIZE
  14786. # else /* no EXEC_PAGESIZE */
  14787. # ifdef NBPG
  14788. # define getpagesize() NBPG * CLSIZE
  14789. # ifndef CLSIZE
  14790. # define CLSIZE 1
  14791. # endif /* no CLSIZE */
  14792. # else /* no NBPG */
  14793. # ifdef NBPC
  14794. # define getpagesize() NBPC
  14795. # else /* no NBPC */
  14796. # ifdef PAGESIZE
  14797. # define getpagesize() PAGESIZE
  14798. # endif /* PAGESIZE */
  14799. # endif /* no NBPC */
  14800. # endif /* no NBPG */
  14801. # endif /* no EXEC_PAGESIZE */
  14802. # else /* no HAVE_SYS_PARAM_H */
  14803. # define getpagesize() 8192 /* punt totally */
  14804. # endif /* no HAVE_SYS_PARAM_H */
  14805. # endif /* no _SC_PAGESIZE */
  14806. #endif /* no HAVE_GETPAGESIZE */
  14807. int
  14808. main ()
  14809. {
  14810. char *data, *data2, *data3;
  14811. const char *cdata2;
  14812. int i, pagesize;
  14813. int fd, fd2;
  14814. pagesize = getpagesize ();
  14815. /* First, make a file with some known garbage in it. */
  14816. data = (char *) malloc (pagesize);
  14817. if (!data)
  14818. return 1;
  14819. for (i = 0; i < pagesize; ++i)
  14820. *(data + i) = rand ();
  14821. umask (0);
  14822. fd = creat ("conftest.mmap", 0600);
  14823. if (fd < 0)
  14824. return 2;
  14825. if (write (fd, data, pagesize) != pagesize)
  14826. return 3;
  14827. close (fd);
  14828. /* Next, check that the tail of a page is zero-filled. File must have
  14829. non-zero length, otherwise we risk SIGBUS for entire page. */
  14830. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14831. if (fd2 < 0)
  14832. return 4;
  14833. cdata2 = "";
  14834. if (write (fd2, cdata2, 1) != 1)
  14835. return 5;
  14836. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14837. if (data2 == MAP_FAILED)
  14838. return 6;
  14839. for (i = 0; i < pagesize; ++i)
  14840. if (*(data2 + i))
  14841. return 7;
  14842. close (fd2);
  14843. if (munmap (data2, pagesize))
  14844. return 8;
  14845. /* Next, try to mmap the file at a fixed address which already has
  14846. something else allocated at it. If we can, also make sure that
  14847. we see the same garbage. */
  14848. fd = open ("conftest.mmap", O_RDWR);
  14849. if (fd < 0)
  14850. return 9;
  14851. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14852. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14853. return 10;
  14854. for (i = 0; i < pagesize; ++i)
  14855. if (*(data + i) != *(data2 + i))
  14856. return 11;
  14857. /* Finally, make sure that changes to the mapped area do not
  14858. percolate back to the file as seen by read(). (This is a bug on
  14859. some variants of i386 svr4.0.) */
  14860. for (i = 0; i < pagesize; ++i)
  14861. *(data2 + i) = *(data2 + i) + 1;
  14862. data3 = (char *) malloc (pagesize);
  14863. if (!data3)
  14864. return 12;
  14865. if (read (fd, data3, pagesize) != pagesize)
  14866. return 13;
  14867. for (i = 0; i < pagesize; ++i)
  14868. if (*(data + i) != *(data3 + i))
  14869. return 14;
  14870. close (fd);
  14871. return 0;
  14872. }
  14873. _ACEOF
  14874. if ac_fn_c_try_run "$LINENO"; then :
  14875. ac_cv_func_mmap_fixed_mapped=yes
  14876. else
  14877. ac_cv_func_mmap_fixed_mapped=no
  14878. fi
  14879. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14880. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14881. fi
  14882. fi
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14884. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14885. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14886. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14887. fi
  14888. rm -f conftest.mmap conftest.txt
  14889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14890. $as_echo_n "checking return type of signal handlers... " >&6; }
  14891. if ${ac_cv_type_signal+:} false; then :
  14892. $as_echo_n "(cached) " >&6
  14893. else
  14894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14895. /* end confdefs.h. */
  14896. #include <sys/types.h>
  14897. #include <signal.h>
  14898. int
  14899. main ()
  14900. {
  14901. return *(signal (0, 0)) (0) == 1;
  14902. ;
  14903. return 0;
  14904. }
  14905. _ACEOF
  14906. if ac_fn_c_try_compile "$LINENO"; then :
  14907. ac_cv_type_signal=int
  14908. else
  14909. ac_cv_type_signal=void
  14910. fi
  14911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14912. fi
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14914. $as_echo "$ac_cv_type_signal" >&6; }
  14915. cat >>confdefs.h <<_ACEOF
  14916. #define RETSIGTYPE $ac_cv_type_signal
  14917. _ACEOF
  14918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14919. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14920. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  14921. $as_echo_n "(cached) " >&6
  14922. else
  14923. if test "$cross_compiling" = yes; then :
  14924. ac_cv_func_stat_empty_string_bug=yes
  14925. else
  14926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14927. /* end confdefs.h. */
  14928. $ac_includes_default
  14929. int
  14930. main ()
  14931. {
  14932. struct stat sbuf;
  14933. return stat ("", &sbuf) == 0;
  14934. ;
  14935. return 0;
  14936. }
  14937. _ACEOF
  14938. if ac_fn_c_try_run "$LINENO"; then :
  14939. ac_cv_func_stat_empty_string_bug=no
  14940. else
  14941. ac_cv_func_stat_empty_string_bug=yes
  14942. fi
  14943. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14944. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14945. fi
  14946. fi
  14947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  14948. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  14949. if test $ac_cv_func_stat_empty_string_bug = yes; then
  14950. case " $LIBOBJS " in
  14951. *" stat.$ac_objext "* ) ;;
  14952. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  14953. ;;
  14954. esac
  14955. cat >>confdefs.h <<_ACEOF
  14956. #define HAVE_STAT_EMPTY_STRING_BUG 1
  14957. _ACEOF
  14958. fi
  14959. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  14960. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  14961. ac_have_decl=1
  14962. else
  14963. ac_have_decl=0
  14964. fi
  14965. cat >>confdefs.h <<_ACEOF
  14966. #define HAVE_DECL_STRERROR_R $ac_have_decl
  14967. _ACEOF
  14968. for ac_func in strerror_r
  14969. do :
  14970. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  14971. if test "x$ac_cv_func_strerror_r" = xyes; then :
  14972. cat >>confdefs.h <<_ACEOF
  14973. #define HAVE_STRERROR_R 1
  14974. _ACEOF
  14975. fi
  14976. done
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  14978. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  14979. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  14980. $as_echo_n "(cached) " >&6
  14981. else
  14982. ac_cv_func_strerror_r_char_p=no
  14983. if test $ac_cv_have_decl_strerror_r = yes; then
  14984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14985. /* end confdefs.h. */
  14986. $ac_includes_default
  14987. int
  14988. main ()
  14989. {
  14990. char buf[100];
  14991. char x = *strerror_r (0, buf, sizeof buf);
  14992. char *p = strerror_r (0, buf, sizeof buf);
  14993. return !p || x;
  14994. ;
  14995. return 0;
  14996. }
  14997. _ACEOF
  14998. if ac_fn_c_try_compile "$LINENO"; then :
  14999. ac_cv_func_strerror_r_char_p=yes
  15000. fi
  15001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15002. else
  15003. # strerror_r is not declared. Choose between
  15004. # systems that have relatively inaccessible declarations for the
  15005. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15006. # former has a strerror_r that returns char*, while the latter
  15007. # has a strerror_r that returns `int'.
  15008. # This test should segfault on the DEC system.
  15009. if test "$cross_compiling" = yes; then :
  15010. :
  15011. else
  15012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15013. /* end confdefs.h. */
  15014. $ac_includes_default
  15015. extern char *strerror_r ();
  15016. int
  15017. main ()
  15018. {
  15019. char buf[100];
  15020. char x = *strerror_r (0, buf, sizeof buf);
  15021. return ! isalpha (x);
  15022. ;
  15023. return 0;
  15024. }
  15025. _ACEOF
  15026. if ac_fn_c_try_run "$LINENO"; then :
  15027. ac_cv_func_strerror_r_char_p=yes
  15028. fi
  15029. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15030. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15031. fi
  15032. fi
  15033. fi
  15034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15035. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15036. if test $ac_cv_func_strerror_r_char_p = yes; then
  15037. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15038. fi
  15039. for ac_func in strftime
  15040. do :
  15041. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15042. if test "x$ac_cv_func_strftime" = xyes; then :
  15043. cat >>confdefs.h <<_ACEOF
  15044. #define HAVE_STRFTIME 1
  15045. _ACEOF
  15046. else
  15047. # strftime is in -lintl on SCO UNIX.
  15048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15049. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15050. if ${ac_cv_lib_intl_strftime+:} false; then :
  15051. $as_echo_n "(cached) " >&6
  15052. else
  15053. ac_check_lib_save_LIBS=$LIBS
  15054. LIBS="-lintl $LIBS"
  15055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15056. /* end confdefs.h. */
  15057. /* Override any GCC internal prototype to avoid an error.
  15058. Use char because int might match the return type of a GCC
  15059. builtin and then its argument prototype would still apply. */
  15060. #ifdef __cplusplus
  15061. extern "C"
  15062. #endif
  15063. char strftime ();
  15064. int
  15065. main ()
  15066. {
  15067. return strftime ();
  15068. ;
  15069. return 0;
  15070. }
  15071. _ACEOF
  15072. if ac_fn_c_try_link "$LINENO"; then :
  15073. ac_cv_lib_intl_strftime=yes
  15074. else
  15075. ac_cv_lib_intl_strftime=no
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext \
  15078. conftest$ac_exeext conftest.$ac_ext
  15079. LIBS=$ac_check_lib_save_LIBS
  15080. fi
  15081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15082. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15083. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15084. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15085. LIBS="-lintl $LIBS"
  15086. fi
  15087. fi
  15088. done
  15089. for ac_func in vprintf
  15090. do :
  15091. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15092. if test "x$ac_cv_func_vprintf" = xyes; then :
  15093. cat >>confdefs.h <<_ACEOF
  15094. #define HAVE_VPRINTF 1
  15095. _ACEOF
  15096. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15097. if test "x$ac_cv_func__doprnt" = xyes; then :
  15098. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15099. fi
  15100. fi
  15101. done
  15102. 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
  15103. do :
  15104. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15105. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15106. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15107. cat >>confdefs.h <<_ACEOF
  15108. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15109. _ACEOF
  15110. fi
  15111. done
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15113. $as_echo_n "checking for --enable-debug... " >&6; }
  15114. # Check whether --enable-debug was given.
  15115. if test "${enable_debug+set}" = set; then :
  15116. enableval=$enable_debug;
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15118. $as_echo "yes" >&6; }
  15119. debug_defs="-DDEBUG -DMCC_DEBUG"
  15120. else
  15121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15122. $as_echo "no" >&6; }
  15123. debug_defs=""
  15124. fi
  15125. # Used for legacy style packaging where we bundle all of the dependencies.
  15126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15127. $as_echo_n "checking for --enable-bundle... " >&6; }
  15128. # Check whether --enable-bundle was given.
  15129. if test "${enable_bundle+set}" = set; then :
  15130. enableval=$enable_bundle;
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15132. $as_echo "yes" >&6; }
  15133. bundle="1";
  15134. else
  15135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15136. $as_echo "no" >&6; }
  15137. bundle="";
  15138. fi
  15139. if test "$bundle" = "1"; then
  15140. BUNDLE_TRUE=
  15141. BUNDLE_FALSE='#'
  15142. else
  15143. BUNDLE_TRUE='#'
  15144. BUNDLE_FALSE=
  15145. fi
  15146. # these enables are for optional or experimental features
  15147. if test -z "$enable_pam_passthru" ; then
  15148. enable_pam_passthru=yes # if not set on cmdline, set default
  15149. fi
  15150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15151. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15152. # Check whether --enable-pam-passthru was given.
  15153. if test "${enable_pam_passthru+set}" = set; then :
  15154. enableval=$enable_pam_passthru;
  15155. fi
  15156. if test "$enable_pam_passthru" = yes ; then
  15157. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15158. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15159. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15160. else
  15161. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15162. fi
  15163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15164. $as_echo "yes" >&6; }
  15165. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15166. else
  15167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15168. $as_echo "no" >&6; }
  15169. fi
  15170. if test "$enable_pam_passthru" = "yes"; then
  15171. enable_pam_passthru_TRUE=
  15172. enable_pam_passthru_FALSE='#'
  15173. else
  15174. enable_pam_passthru_TRUE='#'
  15175. enable_pam_passthru_FALSE=
  15176. fi
  15177. if test -z "$enable_dna" ; then
  15178. enable_dna=yes # if not set on cmdline, set default
  15179. fi
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15181. $as_echo_n "checking for --enable-dna... " >&6; }
  15182. # Check whether --enable-dna was given.
  15183. if test "${enable_dna+set}" = set; then :
  15184. enableval=$enable_dna;
  15185. fi
  15186. if test "$enable_dna" = yes ; then
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15188. $as_echo "yes" >&6; }
  15189. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15190. else
  15191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15192. $as_echo "no" >&6; }
  15193. fi
  15194. if test "$enable_dna" = "yes"; then
  15195. enable_dna_TRUE=
  15196. enable_dna_FALSE='#'
  15197. else
  15198. enable_dna_TRUE='#'
  15199. enable_dna_FALSE=
  15200. fi
  15201. if test -z "$enable_ldapi" ; then
  15202. enable_ldapi=yes # if not set on cmdline, set default
  15203. fi
  15204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15205. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15206. # Check whether --enable-ldapi was given.
  15207. if test "${enable_ldapi+set}" = set; then :
  15208. enableval=$enable_ldapi;
  15209. fi
  15210. if test "$enable_ldapi" = yes ; then
  15211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15212. $as_echo "yes" >&6; }
  15213. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15214. else
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15216. $as_echo "no" >&6; }
  15217. fi
  15218. if test "$enable_ldapi" = "yes"; then
  15219. enable_ldapi_TRUE=
  15220. enable_ldapi_FALSE='#'
  15221. else
  15222. enable_ldapi_TRUE='#'
  15223. enable_ldapi_FALSE=
  15224. fi
  15225. if test -z "$enable_autobind" ; then
  15226. enable_autobind=no # if not set on cmdline, set default
  15227. fi
  15228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15229. $as_echo_n "checking for --enable-autobind... " >&6; }
  15230. # Check whether --enable-autobind was given.
  15231. if test "${enable_autobind+set}" = set; then :
  15232. enableval=$enable_autobind;
  15233. fi
  15234. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15236. $as_echo "yes" >&6; }
  15237. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15238. else
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15240. $as_echo "no" >&6; }
  15241. fi
  15242. if test "$enable_autobind" = "yes"; then
  15243. enable_autobind_TRUE=
  15244. enable_autobind_FALSE='#'
  15245. else
  15246. enable_autobind_TRUE='#'
  15247. enable_autobind_FALSE=
  15248. fi
  15249. if test -z "$enable_auto_dn_suffix" ; then
  15250. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15251. fi
  15252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15253. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15254. # Check whether --enable-autobind was given.
  15255. if test "${enable_autobind+set}" = set; then :
  15256. enableval=$enable_autobind;
  15257. fi
  15258. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15260. $as_echo "yes" >&6; }
  15261. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15262. else
  15263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15264. $as_echo "no" >&6; }
  15265. fi
  15266. if test "$enable_auto_dn_suffix" = "yes"; then
  15267. enable_auto_dn_suffix_TRUE=
  15268. enable_auto_dn_suffix_FALSE='#'
  15269. else
  15270. enable_auto_dn_suffix_TRUE='#'
  15271. enable_auto_dn_suffix_FALSE=
  15272. fi
  15273. if test -z "$enable_bitwise" ; then
  15274. enable_bitwise=yes # if not set on cmdline, set default
  15275. fi
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15277. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15278. # Check whether --enable-bitwise was given.
  15279. if test "${enable_bitwise+set}" = set; then :
  15280. enableval=$enable_bitwise;
  15281. fi
  15282. if test "$enable_bitwise" = yes ; then
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15284. $as_echo "yes" >&6; }
  15285. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15286. else
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15288. $as_echo "no" >&6; }
  15289. fi
  15290. if test "$enable_bitwise" = "yes"; then
  15291. enable_bitwise_TRUE=
  15292. enable_bitwise_FALSE='#'
  15293. else
  15294. enable_bitwise_TRUE='#'
  15295. enable_bitwise_FALSE=
  15296. fi
  15297. if test -z "$enable_presence" ; then
  15298. enable_presence=no # if not set on cmdline, set default
  15299. fi
  15300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15301. $as_echo_n "checking for --enable-presence... " >&6; }
  15302. # Check whether --enable-presence was given.
  15303. if test "${enable_presence+set}" = set; then :
  15304. enableval=$enable_presence;
  15305. fi
  15306. if test "$enable_presence" = yes ; then
  15307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15308. $as_echo "yes" >&6; }
  15309. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15310. else
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15312. $as_echo "no" >&6; }
  15313. fi
  15314. if test "$enable_presence" = "yes"; then
  15315. enable_presence_TRUE=
  15316. enable_presence_FALSE='#'
  15317. else
  15318. enable_presence_TRUE='#'
  15319. enable_presence_FALSE=
  15320. fi
  15321. if test -z "$enable_acctpolicy" ; then
  15322. enable_acctpolicy=yes # if not set on cmdline, set default
  15323. fi
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15325. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15326. # Check whether --enable-acctpolicy was given.
  15327. if test "${enable_acctpolicy+set}" = set; then :
  15328. enableval=$enable_acctpolicy;
  15329. fi
  15330. if test "$enable_acctpolicy" = yes ; then
  15331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15332. $as_echo "yes" >&6; }
  15333. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15334. else
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15336. $as_echo "no" >&6; }
  15337. fi
  15338. if test "$enable_acctpolicy" = "yes"; then
  15339. enable_acctpolicy_TRUE=
  15340. enable_acctpolicy_FALSE='#'
  15341. else
  15342. enable_acctpolicy_TRUE='#'
  15343. enable_acctpolicy_FALSE=
  15344. fi
  15345. if test -z "$enable_posix_winsync" ; then
  15346. enable_posix_winsync=yes # if not set on cmdline, set default
  15347. fi
  15348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15349. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15350. # Check whether --enable-posix_winsync was given.
  15351. if test "${enable_posix_winsync+set}" = set; then :
  15352. enableval=$enable_posix_winsync;
  15353. fi
  15354. if test "$enable_posix_winsync" = yes ; then
  15355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15356. $as_echo "yes" >&6; }
  15357. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15358. else
  15359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15360. $as_echo "no" >&6; }
  15361. fi
  15362. if test "$enable_posix_winsync" = "yes"; then
  15363. enable_posix_winsync_TRUE=
  15364. enable_posix_winsync_FALSE='#'
  15365. else
  15366. enable_posix_winsync_TRUE='#'
  15367. enable_posix_winsync_FALSE=
  15368. fi
  15369. # the default prefix - override with --prefix or --with-fhs
  15370. # BEGIN COPYRIGHT BLOCK
  15371. # Copyright (C) 2006 Red Hat, Inc.
  15372. # All rights reserved.
  15373. #
  15374. # This program is free software; you can redistribute it and/or
  15375. # modify it under the terms of the GNU General Public License
  15376. # as published by the Free Software Foundation; either version 2
  15377. # of the License, or (at your option) any later version.
  15378. #
  15379. # This program is distributed in the hope that it will be useful,
  15380. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15381. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15382. # GNU General Public License for more details.
  15383. #
  15384. # You should have received a copy of the GNU General Public License
  15385. # along with this program; if not, write to the Free Software
  15386. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15387. #
  15388. # END COPYRIGHT BLOCK
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15390. $as_echo "$as_me: checking for FHS..." >&6;}
  15391. # check for --with-fhs
  15392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15393. $as_echo_n "checking for --with-fhs... " >&6; }
  15394. # Check whether --with-fhs was given.
  15395. if test "${with_fhs+set}" = set; then :
  15396. withval=$with_fhs;
  15397. with_fhs=yes
  15398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15399. $as_echo "yes" >&6; }
  15400. else
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15402. $as_echo "no" >&6; }
  15403. fi
  15404. if test "$with_fhs" = "yes"; then
  15405. $as_echo "#define IS_FHS 1" >>confdefs.h
  15406. fi
  15407. # check for --with-fhs-opt
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15409. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15410. # Check whether --with-fhs-opt was given.
  15411. if test "${with_fhs_opt+set}" = set; then :
  15412. withval=$with_fhs_opt;
  15413. with_fhs_opt=yes
  15414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15415. $as_echo "yes" >&6; }
  15416. else
  15417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15418. $as_echo "no" >&6; }
  15419. fi
  15420. if test "$with_fhs_opt" = "yes"; then
  15421. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15422. fi
  15423. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15424. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15425. fi
  15426. # installation paths - by default, we store everything
  15427. # under the prefix. The with-fhs option will use /usr,
  15428. # /etc, and /var. The with-fhs-opt option will use the
  15429. # prefix, but it's sysconfdir and localstatedir will be
  15430. # /etc/opt, and /var/opt.
  15431. if test "$with_fhs_opt" = "yes"; then
  15432. # Override sysconfdir and localstatedir if FHS optional
  15433. # package was requested.
  15434. sysconfdir='/etc/opt'
  15435. localstatedir='/var/opt'
  15436. # relative to datadir
  15437. sampledatadir=/data
  15438. # relative to datadir
  15439. scripttemplatedir=/script-templates
  15440. # relative to datadir
  15441. updatedir=/updates
  15442. # relative to libdir
  15443. serverdir=
  15444. # relative to includedir
  15445. serverincdir=
  15446. # relative to libdir
  15447. serverplugindir=/plugins
  15448. # relative to datadir
  15449. infdir=/inf
  15450. # relative to datadir
  15451. mibdir=/mibs
  15452. # location of property/resource files, relative to datadir
  15453. propertydir=/properties
  15454. # relative to libdir
  15455. perldir=/perl
  15456. else
  15457. if test "$with_fhs" = "yes"; then
  15458. ac_default_prefix=/usr
  15459. prefix=$ac_default_prefix
  15460. exec_prefix=$prefix
  15461. sysconfdir='/etc'
  15462. localstatedir='/var'
  15463. fi
  15464. # relative to datadir
  15465. sampledatadir=/$PACKAGE_NAME/data
  15466. # relative to datadir
  15467. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15468. # relative to datadir
  15469. updatedir=/$PACKAGE_NAME/updates
  15470. # relative to libdir
  15471. serverdir=/$PACKAGE_NAME
  15472. # relative to includedir
  15473. serverincdir=/$PACKAGE_NAME
  15474. # relative to libdir
  15475. serverplugindir=/$PACKAGE_NAME/plugins
  15476. # relative to datadir
  15477. infdir=/$PACKAGE_NAME/inf
  15478. # relative to datadir
  15479. mibdir=/$PACKAGE_NAME/mibs
  15480. # location of property/resource files, relative to datadir
  15481. propertydir=/$PACKAGE_NAME/properties
  15482. # relative to libdir
  15483. perldir=/$PACKAGE_NAME/perl
  15484. fi
  15485. # if mandir is the default value, override it
  15486. # otherwise, the user must have set it - just use it
  15487. if test X"$mandir" = X'${prefix}/man' ; then
  15488. mandir='$(datadir)/man'
  15489. fi
  15490. # Shared paths for all layouts
  15491. # relative to sysconfdir
  15492. configdir=/$PACKAGE_NAME/config
  15493. # relative to sysconfdir
  15494. schemadir=/$PACKAGE_NAME/schema
  15495. # default user, group
  15496. defaultuser=nobody
  15497. defaultgroup=nobody
  15498. if test -z "$with_tmpfiles_d" ; then
  15499. if test -d $sysconfdir/tmpfiles.d ; then
  15500. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15501. fi
  15502. fi
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15504. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15505. # Check whether --with-tmpfiles-d was given.
  15506. if test "${with_tmpfiles_d+set}" = set; then :
  15507. withval=$with_tmpfiles_d;
  15508. fi
  15509. if test "$with_tmpfiles_d" = yes ; then
  15510. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15511. elif test "$with_tmpfiles_d" = no ; then
  15512. with_tmpfiles_d=
  15513. else
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15515. $as_echo "$with_tmpfiles_d" >&6; }
  15516. fi
  15517. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15518. if test -n "$ac_tool_prefix"; then
  15519. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15520. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15522. $as_echo_n "checking for $ac_word... " >&6; }
  15523. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15524. $as_echo_n "(cached) " >&6
  15525. else
  15526. case $PKG_CONFIG in
  15527. [\\/]* | ?:[\\/]*)
  15528. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15529. ;;
  15530. *)
  15531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15532. for as_dir in $PATH
  15533. do
  15534. IFS=$as_save_IFS
  15535. test -z "$as_dir" && as_dir=.
  15536. for ac_exec_ext in '' $ac_executable_extensions; do
  15537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15538. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15540. break 2
  15541. fi
  15542. done
  15543. done
  15544. IFS=$as_save_IFS
  15545. ;;
  15546. esac
  15547. fi
  15548. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15549. if test -n "$PKG_CONFIG"; then
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15551. $as_echo "$PKG_CONFIG" >&6; }
  15552. else
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15554. $as_echo "no" >&6; }
  15555. fi
  15556. fi
  15557. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15558. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15559. # Extract the first word of "pkg-config", so it can be a program name with args.
  15560. set dummy pkg-config; ac_word=$2
  15561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15562. $as_echo_n "checking for $ac_word... " >&6; }
  15563. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15564. $as_echo_n "(cached) " >&6
  15565. else
  15566. case $ac_pt_PKG_CONFIG in
  15567. [\\/]* | ?:[\\/]*)
  15568. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15569. ;;
  15570. *)
  15571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15572. for as_dir in $PATH
  15573. do
  15574. IFS=$as_save_IFS
  15575. test -z "$as_dir" && as_dir=.
  15576. for ac_exec_ext in '' $ac_executable_extensions; do
  15577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15578. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15580. break 2
  15581. fi
  15582. done
  15583. done
  15584. IFS=$as_save_IFS
  15585. ;;
  15586. esac
  15587. fi
  15588. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15589. if test -n "$ac_pt_PKG_CONFIG"; then
  15590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15591. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15592. else
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15594. $as_echo "no" >&6; }
  15595. fi
  15596. if test "x$ac_pt_PKG_CONFIG" = x; then
  15597. PKG_CONFIG=""
  15598. else
  15599. case $cross_compiling:$ac_tool_warned in
  15600. yes:)
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15602. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15603. ac_tool_warned=yes ;;
  15604. esac
  15605. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15606. fi
  15607. else
  15608. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15609. fi
  15610. fi
  15611. if test -n "$PKG_CONFIG"; then
  15612. _pkg_min_version=0.9.0
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15614. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15615. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15617. $as_echo "yes" >&6; }
  15618. else
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15620. $as_echo "no" >&6; }
  15621. PKG_CONFIG=""
  15622. fi
  15623. fi
  15624. if test -n "$PKG_CONFIG" ; then
  15625. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15626. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15627. fi
  15628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15629. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15630. # Check whether --with-systemdsystemunitdir was given.
  15631. if test "${with_systemdsystemunitdir+set}" = set; then :
  15632. withval=$with_systemdsystemunitdir;
  15633. fi
  15634. if test "$with_systemdsystemunitdir" = yes ; then
  15635. if test -n "$default_systemdsystemunitdir" ; then
  15636. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15638. $as_echo "$with_systemdsystemunitdir" >&6; }
  15639. else
  15640. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15641. fi
  15642. elif test "$with_systemdsystemunitdir" = no ; then
  15643. with_systemdsystemunitdir=
  15644. else
  15645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15646. $as_echo "$with_systemdsystemunitdir" >&6; }
  15647. fi
  15648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15649. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15650. # Check whether --with-systemdsystemconfdir was given.
  15651. if test "${with_systemdsystemconfdir+set}" = set; then :
  15652. withval=$with_systemdsystemconfdir;
  15653. fi
  15654. if test "$with_systemdsystemconfdir" = yes ; then
  15655. if test -n "$default_systemdsystemconfdir" ; then
  15656. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15658. $as_echo "$with_systemdsystemconfdir" >&6; }
  15659. else
  15660. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15661. fi
  15662. elif test "$with_systemdsystemconfdir" = no ; then
  15663. with_systemdsystemconfdir=
  15664. else
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15666. $as_echo "$with_systemdsystemconfdir" >&6; }
  15667. fi
  15668. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15669. if test -z "$with_systemdgroupname" ; then
  15670. with_systemdgroupname=$PACKAGE_NAME.target
  15671. fi
  15672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15673. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15674. # Check whether --with-systemdgroupname was given.
  15675. if test "${with_systemdgroupname+set}" = set; then :
  15676. withval=$with_systemdgroupname;
  15677. fi
  15678. if test "$with_systemdgroupname" = yes ; then
  15679. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15680. elif test "$with_systemdgroupname" = no ; then
  15681. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15682. else
  15683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15684. $as_echo "$with_systemdgroupname" >&6; }
  15685. fi
  15686. fi
  15687. # check for --with-instconfigdir
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15689. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15690. # Check whether --with-instconfigdir was given.
  15691. if test "${with_instconfigdir+set}" = set; then :
  15692. withval=$with_instconfigdir;
  15693. if test $withval = yes ; then
  15694. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15695. fi
  15696. instconfigdir="$withval"
  15697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15698. $as_echo "$withval" >&6; }
  15699. else
  15700. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15702. $as_echo "no" >&6; }
  15703. fi
  15704. # WINNT should be true if building on Windows system not using
  15705. # cygnus, mingw, or the like and using cmd.exe as the shell
  15706. if false; then
  15707. WINNT_TRUE=
  15708. WINNT_FALSE='#'
  15709. else
  15710. WINNT_TRUE='#'
  15711. WINNT_FALSE=
  15712. fi
  15713. # Deal with platform dependent defines
  15714. # initdir is the location for the SysV init scripts - very heavily platform
  15715. # dependent and not specified in fhs or lsb
  15716. # and not used if systemd is used
  15717. initdir='$(sysconfdir)/rc.d'
  15718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15719. $as_echo_n "checking for --with-initddir... " >&6; }
  15720. # Check whether --with-initddir was given.
  15721. if test "${with_initddir+set}" = set; then :
  15722. withval=$with_initddir;
  15723. if test "$withval" = yes -o "$withval" = no ; then
  15724. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15725. fi
  15726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15727. $as_echo "$withval" >&6; }
  15728. else
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15730. $as_echo "no" >&6; }
  15731. fi
  15732. # on most platforms, we will just use perl from PATH
  15733. # On some platforms, we cannot. Why not just use any old
  15734. # perl? Because of perldap. We use a perldap that is
  15735. # compiled to either 32bit or 64bit, so we must use a native
  15736. # perl binary compiled with the same bitsize. On Solaris
  15737. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15738. # those with our 64 bit compiled product.
  15739. perlexec='/usr/bin/env perl'
  15740. # we use stty in perl scripts to disable password echo
  15741. # this doesn't work unless the full absolute path of the
  15742. # stty command is used e.g. system("stty -echo") does not
  15743. # work but system("/bin/stty -echo") does work
  15744. # since the path of stty may not be the same on all
  15745. # platforms, we set the default here to /bin/stty and
  15746. # allow that value to be overridden in the platform
  15747. # specific section below
  15748. sttyexec=/bin/stty
  15749. case $host in
  15750. *-*-linux*)
  15751. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15752. $as_echo "#define Linux 1" >>confdefs.h
  15753. $as_echo "#define LINUX 1" >>confdefs.h
  15754. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15755. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15756. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15757. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15758. platform="linux"
  15759. initdir='$(sysconfdir)/rc.d/init.d'
  15760. # do arch specific linux stuff here
  15761. case $host in
  15762. i*86-*-linux*)
  15763. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15764. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15765. ;;
  15766. x86_64-*-linux*)
  15767. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15768. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15769. ;;
  15770. esac
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15772. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15774. /* end confdefs.h. */
  15775. int
  15776. main ()
  15777. {
  15778. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15779. ;
  15780. return 0;
  15781. }
  15782. _ACEOF
  15783. if ac_fn_c_try_link "$LINENO"; then :
  15784. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15786. $as_echo "yes" >&6; }
  15787. else
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15789. $as_echo "no" >&6; }
  15790. fi
  15791. rm -f core conftest.err conftest.$ac_objext \
  15792. conftest$ac_exeext conftest.$ac_ext
  15793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15794. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15796. /* end confdefs.h. */
  15797. int
  15798. main ()
  15799. {
  15800. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15801. ;
  15802. return 0;
  15803. }
  15804. _ACEOF
  15805. if ac_fn_c_try_link "$LINENO"; then :
  15806. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15808. $as_echo "yes" >&6; }
  15809. else
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15811. $as_echo "no" >&6; }
  15812. fi
  15813. rm -f core conftest.err conftest.$ac_objext \
  15814. conftest$ac_exeext conftest.$ac_ext
  15815. # some programs use the native thread library directly
  15816. THREADLIB=-lpthread
  15817. THREADLIB=$THREADLIB
  15818. LIBCRYPT=-lcrypt
  15819. LIBCRYPT=$LIBCRYPT
  15820. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15821. ;;
  15822. ia64-hp-hpux*)
  15823. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15824. $as_echo "#define hpux 1" >>confdefs.h
  15825. $as_echo "#define HPUX 1" >>confdefs.h
  15826. $as_echo "#define HPUX11 1" >>confdefs.h
  15827. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15828. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15829. $as_echo "#define OS_hpux 1" >>confdefs.h
  15830. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15831. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15832. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15833. # assume 64 bit
  15834. perlexec='/opt/perl_64/bin/perl'
  15835. platform="hpux"
  15836. initconfigdir="/$PACKAGE_NAME/config"
  15837. # HPUX doesn't use /etc for this
  15838. initdir=/init.d
  15839. ;;
  15840. hppa*-hp-hpux*)
  15841. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15842. $as_echo "#define hpux 1" >>confdefs.h
  15843. $as_echo "#define HPUX 1" >>confdefs.h
  15844. $as_echo "#define HPUX11 1" >>confdefs.h
  15845. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15846. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15847. $as_echo "#define OS_hpux 1" >>confdefs.h
  15848. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15849. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15850. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15851. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15852. # assume 64 bit
  15853. initconfigdir="/$PACKAGE_NAME/config"
  15854. perlexec='/opt/perl_64/bin/perl'
  15855. platform="hpux"
  15856. # HPUX doesn't use /etc for this
  15857. initdir=/init.d
  15858. ;;
  15859. *-*-solaris*)
  15860. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15861. $as_echo "#define SVR4 1" >>confdefs.h
  15862. $as_echo "#define __svr4 1" >>confdefs.h
  15863. $as_echo "#define __svr4__ 1" >>confdefs.h
  15864. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15865. $as_echo "#define SOLARIS 1" >>confdefs.h
  15866. $as_echo "#define OS_solaris 1" >>confdefs.h
  15867. $as_echo "#define sunos5 1" >>confdefs.h
  15868. $as_echo "#define OSVERSION 509" >>confdefs.h
  15869. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15870. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15871. LIBSOCKET=-lsocket
  15872. LIBSOCKET=$LIBSOCKET
  15873. LIBNSL=-lnsl
  15874. LIBNSL=$LIBNSL
  15875. LIBDL=-ldl
  15876. LIBDL=$LIBDL
  15877. LIBCSTD=-lCstd
  15878. LIBCSTD=$LIBCSTD
  15879. LIBCRUN=-lCrun
  15880. LIBCRUN=$LIBCRUN
  15881. platform="solaris"
  15882. initdir='$(sysconfdir)/init.d'
  15883. case $host in
  15884. i?86-*-solaris2.1[0-9]*)
  15885. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  15886. ;;
  15887. sparc-*-solaris*)
  15888. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15889. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  15890. TARGET='SPARC'
  15891. ;;
  15892. esac
  15893. ;;
  15894. *)
  15895. platform=""
  15896. ;;
  15897. esac
  15898. # cmd line overrides default setting above
  15899. if test -n "$with_initddir" ; then
  15900. initdir="$with_initddir"
  15901. fi
  15902. # sysv init scripts not used when systemd is used
  15903. # set default initconfigdir if not already set
  15904. # value will be set so as to be relative to $(sysconfdir)
  15905. if test -z "$initconfigdir" ; then
  15906. if test -d /etc/sysconfig ; then
  15907. initconfigdir=/sysconfig
  15908. elif test -d /etc/default ; then
  15909. initconfigdir=/default
  15910. else
  15911. initconfigdir="/$PACKAGE_NAME/config"
  15912. fi
  15913. fi
  15914. if test "$platform" = "hpux"; then
  15915. HPUX_TRUE=
  15916. HPUX_FALSE='#'
  15917. else
  15918. HPUX_TRUE='#'
  15919. HPUX_FALSE=
  15920. fi
  15921. if test "$platform" = "solaris"; then
  15922. SOLARIS_TRUE=
  15923. SOLARIS_FALSE='#'
  15924. else
  15925. SOLARIS_TRUE='#'
  15926. SOLARIS_FALSE=
  15927. fi
  15928. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  15929. SYSTEMD_TRUE=
  15930. SYSTEMD_FALSE='#'
  15931. else
  15932. SYSTEMD_TRUE='#'
  15933. SYSTEMD_FALSE=
  15934. fi
  15935. # Check for library dependencies
  15936. # BEGIN COPYRIGHT BLOCK
  15937. # Copyright (C) 2007 Red Hat, Inc.
  15938. # All rights reserved.
  15939. #
  15940. # This program is free software; you can redistribute it and/or
  15941. # modify it under the terms of the GNU General Public License
  15942. # as published by the Free Software Foundation; either version 2
  15943. # of the License, or (at your option) any later version.
  15944. #
  15945. # This program is distributed in the hope that it will be useful,
  15946. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15947. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15948. # GNU General Public License for more details.
  15949. #
  15950. # You should have received a copy of the GNU General Public License
  15951. # along with this program; if not, write to the Free Software
  15952. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15953. #
  15954. # END COPYRIGHT BLOCK
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  15956. $as_echo "$as_me: checking for NSPR..." >&6;}
  15957. # check for --with-nspr
  15958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  15959. $as_echo_n "checking for --with-nspr... " >&6; }
  15960. # Check whether --with-nspr was given.
  15961. if test "${with_nspr+set}" = set; then :
  15962. withval=$with_nspr;
  15963. if test "$withval" = "yes"
  15964. then
  15965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15966. $as_echo "yes" >&6; }
  15967. elif test "$withval" = "no"
  15968. then
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15970. $as_echo "no" >&6; }
  15971. as_fn_error $? "NSPR is required." "$LINENO" 5
  15972. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  15973. then
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15975. $as_echo "using $withval" >&6; }
  15976. NSPRDIR=$withval
  15977. nspr_inc="-I$NSPRDIR/include"
  15978. nspr_lib="-L$NSPRDIR/lib"
  15979. nspr_libdir="$NSPRDIR/lib"
  15980. else
  15981. echo
  15982. as_fn_error $? "$withval not found" "$LINENO" 5
  15983. fi
  15984. else
  15985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15986. $as_echo "yes" >&6; }
  15987. fi
  15988. # check for --with-nspr-inc
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  15990. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  15991. # Check whether --with-nspr-inc was given.
  15992. if test "${with_nspr_inc+set}" = set; then :
  15993. withval=$with_nspr_inc;
  15994. if test -e "$withval"/nspr.h
  15995. then
  15996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15997. $as_echo "using $withval" >&6; }
  15998. nspr_inc="-I$withval"
  15999. else
  16000. echo
  16001. as_fn_error $? "$withval not found" "$LINENO" 5
  16002. fi
  16003. else
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16005. $as_echo "no" >&6; }
  16006. fi
  16007. # check for --with-nspr-lib
  16008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16009. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16010. # Check whether --with-nspr-lib was given.
  16011. if test "${with_nspr_lib+set}" = set; then :
  16012. withval=$with_nspr_lib;
  16013. if test -d "$withval"
  16014. then
  16015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16016. $as_echo "using $withval" >&6; }
  16017. nspr_lib="-L$withval"
  16018. nspr_libdir="$withval"
  16019. else
  16020. echo
  16021. as_fn_error $? "$withval not found" "$LINENO" 5
  16022. fi
  16023. else
  16024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16025. $as_echo "no" >&6; }
  16026. fi
  16027. # if NSPR is not found yet, try pkg-config
  16028. # last resort
  16029. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16030. # Extract the first word of "pkg-config", so it can be a program name with args.
  16031. set dummy pkg-config; ac_word=$2
  16032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16033. $as_echo_n "checking for $ac_word... " >&6; }
  16034. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16035. $as_echo_n "(cached) " >&6
  16036. else
  16037. case $PKG_CONFIG in
  16038. [\\/]* | ?:[\\/]*)
  16039. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16040. ;;
  16041. *)
  16042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16043. for as_dir in $PATH
  16044. do
  16045. IFS=$as_save_IFS
  16046. test -z "$as_dir" && as_dir=.
  16047. for ac_exec_ext in '' $ac_executable_extensions; do
  16048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16049. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16051. break 2
  16052. fi
  16053. done
  16054. done
  16055. IFS=$as_save_IFS
  16056. ;;
  16057. esac
  16058. fi
  16059. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16060. if test -n "$PKG_CONFIG"; then
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16062. $as_echo "$PKG_CONFIG" >&6; }
  16063. else
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16065. $as_echo "no" >&6; }
  16066. fi
  16067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16068. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16069. if test -n "$PKG_CONFIG"; then
  16070. if $PKG_CONFIG --exists nspr; then
  16071. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16072. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16073. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16075. $as_echo "using system NSPR" >&6; }
  16076. elif $PKG_CONFIG --exists dirsec-nspr; then
  16077. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16078. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16079. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16081. $as_echo "using system dirsec NSPR" >&6; }
  16082. else
  16083. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16084. fi
  16085. fi
  16086. fi
  16087. # BEGIN COPYRIGHT BLOCK
  16088. # Copyright (C) 2007 Red Hat, Inc.
  16089. # All rights reserved.
  16090. #
  16091. # This program is free software; you can redistribute it and/or
  16092. # modify it under the terms of the GNU General Public License
  16093. # as published by the Free Software Foundation; either version 2
  16094. # of the License, or (at your option) any later version.
  16095. #
  16096. # This program is distributed in the hope that it will be useful,
  16097. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16098. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16099. # GNU General Public License for more details.
  16100. #
  16101. # You should have received a copy of the GNU General Public License
  16102. # along with this program; if not, write to the Free Software
  16103. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16104. #
  16105. # END COPYRIGHT BLOCK
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16107. $as_echo "$as_me: checking for NSS..." >&6;}
  16108. # check for --with-nss
  16109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16110. $as_echo_n "checking for --with-nss... " >&6; }
  16111. # Check whether --with-nss was given.
  16112. if test "${with_nss+set}" = set; then :
  16113. withval=$with_nss;
  16114. if test "$withval" = "yes"
  16115. then
  16116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16117. $as_echo "yes" >&6; }
  16118. elif test "$withval" = "no"
  16119. then
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16121. $as_echo "no" >&6; }
  16122. as_fn_error $? "NSS is required." "$LINENO" 5
  16123. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16124. then
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16126. $as_echo "using $withval" >&6; }
  16127. NSSDIR=$withval
  16128. nss_inc="-I$NSSDIR/include"
  16129. nss_lib="-L$NSSDIR/lib"
  16130. nss_libdir="$NSSDIR/lib"
  16131. else
  16132. echo
  16133. as_fn_error $? "$withval not found" "$LINENO" 5
  16134. fi
  16135. else
  16136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16137. $as_echo "yes" >&6; }
  16138. fi
  16139. # check for --with-nss-inc
  16140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16141. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16142. # Check whether --with-nss-inc was given.
  16143. if test "${with_nss_inc+set}" = set; then :
  16144. withval=$with_nss_inc;
  16145. if test -e "$withval"/nss.h
  16146. then
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16148. $as_echo "using $withval" >&6; }
  16149. nss_inc="-I$withval"
  16150. else
  16151. echo
  16152. as_fn_error $? "$withval not found" "$LINENO" 5
  16153. fi
  16154. else
  16155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16156. $as_echo "no" >&6; }
  16157. fi
  16158. # check for --with-nss-lib
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16160. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16161. # Check whether --with-nss-lib was given.
  16162. if test "${with_nss_lib+set}" = set; then :
  16163. withval=$with_nss_lib;
  16164. if test -d "$withval"
  16165. then
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16167. $as_echo "using $withval" >&6; }
  16168. nss_lib="-L$withval"
  16169. nss_libdir="$withval"
  16170. else
  16171. echo
  16172. as_fn_error $? "$withval not found" "$LINENO" 5
  16173. fi
  16174. else
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16176. $as_echo "no" >&6; }
  16177. fi
  16178. # if NSS is not found yet, try pkg-config
  16179. # last resort
  16180. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16181. # Extract the first word of "pkg-config", so it can be a program name with args.
  16182. set dummy pkg-config; ac_word=$2
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16184. $as_echo_n "checking for $ac_word... " >&6; }
  16185. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16186. $as_echo_n "(cached) " >&6
  16187. else
  16188. case $PKG_CONFIG in
  16189. [\\/]* | ?:[\\/]*)
  16190. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16191. ;;
  16192. *)
  16193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16194. for as_dir in $PATH
  16195. do
  16196. IFS=$as_save_IFS
  16197. test -z "$as_dir" && as_dir=.
  16198. for ac_exec_ext in '' $ac_executable_extensions; do
  16199. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16200. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16202. break 2
  16203. fi
  16204. done
  16205. done
  16206. IFS=$as_save_IFS
  16207. ;;
  16208. esac
  16209. fi
  16210. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16211. if test -n "$PKG_CONFIG"; then
  16212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16213. $as_echo "$PKG_CONFIG" >&6; }
  16214. else
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16216. $as_echo "no" >&6; }
  16217. fi
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16219. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16220. if test -n "$PKG_CONFIG"; then
  16221. if $PKG_CONFIG --exists nss; then
  16222. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16223. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16224. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16226. $as_echo "using system NSS" >&6; }
  16227. elif $PKG_CONFIG --exists dirsec-nss; then
  16228. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16229. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16230. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16232. $as_echo "using system dirsec NSS" >&6; }
  16233. else
  16234. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16235. fi
  16236. fi
  16237. fi
  16238. # BEGIN COPYRIGHT BLOCK
  16239. # Copyright (C) 2009 Red Hat, Inc.
  16240. # All rights reserved.
  16241. #
  16242. # This program is free software; you can redistribute it and/or
  16243. # modify it under the terms of the GNU General Public License
  16244. # as published by the Free Software Foundation; either version 2
  16245. # of the License, or (at your option) any later version.
  16246. #
  16247. # This program is distributed in the hope that it will be useful,
  16248. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16249. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16250. # GNU General Public License for more details.
  16251. #
  16252. # You should have received a copy of the GNU General Public License
  16253. # along with this program; if not, write to the Free Software
  16254. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16255. #
  16256. # END COPYRIGHT BLOCK
  16257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16258. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16259. # check for --with-openldap
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16261. $as_echo_n "checking for --with-openldap... " >&6; }
  16262. # Check whether --with-openldap was given.
  16263. if test "${with_openldap+set}" = set; then :
  16264. withval=$with_openldap;
  16265. if test "$withval" = yes
  16266. then
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16268. $as_echo "using system OpenLDAP" >&6; }
  16269. elif test "$withval" = no
  16270. then
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16272. $as_echo "no" >&6; }
  16273. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16274. then
  16275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16276. $as_echo "using $withval" >&6; }
  16277. OPENLDAPDIR=$withval
  16278. openldap_incdir="$OPENLDAPDIR/include"
  16279. openldap_inc="-I$openldap_incdir"
  16280. openldap_lib="-L$OPENLDAPDIR/lib"
  16281. openldap_libdir="$OPENLDAPDIR/lib"
  16282. openldap_bindir="$OPENLDAPDIR/bin"
  16283. with_openldap=yes
  16284. else
  16285. echo
  16286. as_fn_error $? "$withval not found" "$LINENO" 5
  16287. fi
  16288. else
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16290. $as_echo "no" >&6; }
  16291. fi
  16292. # check for --with-openldap-inc
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16294. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16295. # Check whether --with-openldap-inc was given.
  16296. if test "${with_openldap_inc+set}" = set; then :
  16297. withval=$with_openldap_inc;
  16298. if test -e "$withval"/ldap.h
  16299. then
  16300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16301. $as_echo "using $withval" >&6; }
  16302. openldap_incdir="$withval"
  16303. openldap_inc="-I$withval"
  16304. with_openldap=yes
  16305. else
  16306. echo
  16307. as_fn_error $? "$withval not found" "$LINENO" 5
  16308. fi
  16309. else
  16310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16311. $as_echo "no" >&6; }
  16312. fi
  16313. # check for --with-openldap-lib
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16315. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16316. # Check whether --with-openldap-lib was given.
  16317. if test "${with_openldap_lib+set}" = set; then :
  16318. withval=$with_openldap_lib;
  16319. if test -d "$withval"
  16320. then
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16322. $as_echo "using $withval" >&6; }
  16323. openldap_lib="-L$withval"
  16324. openldap_libdir="$withval"
  16325. with_openldap=yes
  16326. else
  16327. echo
  16328. as_fn_error $? "$withval not found" "$LINENO" 5
  16329. fi
  16330. else
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16332. $as_echo "no" >&6; }
  16333. fi
  16334. # check for --with-openldap-bin
  16335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16336. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16337. # Check whether --with-openldap-bin was given.
  16338. if test "${with_openldap_bin+set}" = set; then :
  16339. withval=$with_openldap_bin;
  16340. if test -d "$withval"
  16341. then
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16343. $as_echo "using $withval" >&6; }
  16344. openldap_bindir="$withval"
  16345. with_openldap=yes
  16346. else
  16347. echo
  16348. as_fn_error $? "$withval not found" "$LINENO" 5
  16349. fi
  16350. else
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16352. $as_echo "no" >&6; }
  16353. fi
  16354. # if OPENLDAP is not found yet, try pkg-config
  16355. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16356. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16357. # Extract the first word of "pkg-config", so it can be a program name with args.
  16358. set dummy pkg-config; ac_word=$2
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16360. $as_echo_n "checking for $ac_word... " >&6; }
  16361. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16362. $as_echo_n "(cached) " >&6
  16363. else
  16364. case $PKG_CONFIG in
  16365. [\\/]* | ?:[\\/]*)
  16366. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16367. ;;
  16368. *)
  16369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16370. for as_dir in $PATH
  16371. do
  16372. IFS=$as_save_IFS
  16373. test -z "$as_dir" && as_dir=.
  16374. for ac_exec_ext in '' $ac_executable_extensions; do
  16375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16376. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16378. break 2
  16379. fi
  16380. done
  16381. done
  16382. IFS=$as_save_IFS
  16383. ;;
  16384. esac
  16385. fi
  16386. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16387. if test -n "$PKG_CONFIG"; then
  16388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16389. $as_echo "$PKG_CONFIG" >&6; }
  16390. else
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16392. $as_echo "no" >&6; }
  16393. fi
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16395. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16396. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16397. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16398. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16399. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16400. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16401. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16403. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16404. else
  16405. openldap_incdir="/usr/include"
  16406. openldap_inc="-I$openldap_incdir"
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16408. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16409. fi
  16410. fi
  16411. fi
  16412. if test "$with_openldap" = yes ; then
  16413. save_cppflags="$CPPFLAGS"
  16414. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16415. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16416. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16417. else
  16418. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16419. fi
  16420. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16421. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16422. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16423. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16424. save_ldflags="$LDFLAGS"
  16425. LDFLAGS="$openldap_lib $LDFLAGS"
  16426. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16428. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16429. if eval \${$as_ac_Lib+:} false; then :
  16430. $as_echo_n "(cached) " >&6
  16431. else
  16432. ac_check_lib_save_LIBS=$LIBS
  16433. LIBS="-lldap$ol_libver $LIBS"
  16434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16435. /* end confdefs.h. */
  16436. /* Override any GCC internal prototype to avoid an error.
  16437. Use char because int might match the return type of a GCC
  16438. builtin and then its argument prototype would still apply. */
  16439. #ifdef __cplusplus
  16440. extern "C"
  16441. #endif
  16442. char ldap_initialize ();
  16443. int
  16444. main ()
  16445. {
  16446. return ldap_initialize ();
  16447. ;
  16448. return 0;
  16449. }
  16450. _ACEOF
  16451. if ac_fn_c_try_link "$LINENO"; then :
  16452. eval "$as_ac_Lib=yes"
  16453. else
  16454. eval "$as_ac_Lib=no"
  16455. fi
  16456. rm -f core conftest.err conftest.$ac_objext \
  16457. conftest$ac_exeext conftest.$ac_ext
  16458. LIBS=$ac_check_lib_save_LIBS
  16459. fi
  16460. eval ac_res=\$$as_ac_Lib
  16461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16462. $as_echo "$ac_res" >&6; }
  16463. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16464. have_ldap_lib=1
  16465. fi
  16466. if test -z "$have_ldap_lib" ; then
  16467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16468. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16469. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16470. $as_echo_n "(cached) " >&6
  16471. else
  16472. ac_check_lib_save_LIBS=$LIBS
  16473. LIBS="-lldap $LIBS"
  16474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16475. /* end confdefs.h. */
  16476. /* Override any GCC internal prototype to avoid an error.
  16477. Use char because int might match the return type of a GCC
  16478. builtin and then its argument prototype would still apply. */
  16479. #ifdef __cplusplus
  16480. extern "C"
  16481. #endif
  16482. char ldap_initialize ();
  16483. int
  16484. main ()
  16485. {
  16486. return ldap_initialize ();
  16487. ;
  16488. return 0;
  16489. }
  16490. _ACEOF
  16491. if ac_fn_c_try_link "$LINENO"; then :
  16492. ac_cv_lib_ldap_ldap_initialize=yes
  16493. else
  16494. ac_cv_lib_ldap_ldap_initialize=no
  16495. fi
  16496. rm -f core conftest.err conftest.$ac_objext \
  16497. conftest$ac_exeext conftest.$ac_ext
  16498. LIBS=$ac_check_lib_save_LIBS
  16499. fi
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16501. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16502. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16503. unset ol_libver
  16504. else
  16505. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16506. fi
  16507. fi
  16508. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16510. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16511. if eval \${$as_ac_Lib+:} false; then :
  16512. $as_echo_n "(cached) " >&6
  16513. else
  16514. ac_check_lib_save_LIBS=$LIBS
  16515. LIBS="-lldap$ol_libver $LIBS"
  16516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16517. /* end confdefs.h. */
  16518. /* Override any GCC internal prototype to avoid an error.
  16519. Use char because int might match the return type of a GCC
  16520. builtin and then its argument prototype would still apply. */
  16521. #ifdef __cplusplus
  16522. extern "C"
  16523. #endif
  16524. char ldap_url_parse_ext ();
  16525. int
  16526. main ()
  16527. {
  16528. return ldap_url_parse_ext ();
  16529. ;
  16530. return 0;
  16531. }
  16532. _ACEOF
  16533. if ac_fn_c_try_link "$LINENO"; then :
  16534. eval "$as_ac_Lib=yes"
  16535. else
  16536. eval "$as_ac_Lib=no"
  16537. fi
  16538. rm -f core conftest.err conftest.$ac_objext \
  16539. conftest$ac_exeext conftest.$ac_ext
  16540. LIBS=$ac_check_lib_save_LIBS
  16541. fi
  16542. eval ac_res=\$$as_ac_Lib
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16544. $as_echo "$ac_res" >&6; }
  16545. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16546. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16547. fi
  16548. ldap_lib_ldif=""
  16549. LDFLAGS="$LDFLAGS"
  16550. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldif_open" | $as_tr_sh`
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldif_open in -lldap$ol_libver" >&5
  16552. $as_echo_n "checking for ldif_open in -lldap$ol_libver... " >&6; }
  16553. if eval \${$as_ac_Lib+:} false; then :
  16554. $as_echo_n "(cached) " >&6
  16555. else
  16556. ac_check_lib_save_LIBS=$LIBS
  16557. LIBS="-lldap$ol_libver $LIBS"
  16558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16559. /* end confdefs.h. */
  16560. /* Override any GCC internal prototype to avoid an error.
  16561. Use char because int might match the return type of a GCC
  16562. builtin and then its argument prototype would still apply. */
  16563. #ifdef __cplusplus
  16564. extern "C"
  16565. #endif
  16566. char ldif_open ();
  16567. int
  16568. main ()
  16569. {
  16570. return ldif_open ();
  16571. ;
  16572. return 0;
  16573. }
  16574. _ACEOF
  16575. if ac_fn_c_try_link "$LINENO"; then :
  16576. eval "$as_ac_Lib=yes"
  16577. else
  16578. eval "$as_ac_Lib=no"
  16579. fi
  16580. rm -f core conftest.err conftest.$ac_objext \
  16581. conftest$ac_exeext conftest.$ac_ext
  16582. LIBS=$ac_check_lib_save_LIBS
  16583. fi
  16584. eval ac_res=\$$as_ac_Lib
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16586. $as_echo "$ac_res" >&6; }
  16587. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16588. ldap_lib_ldif=
  16589. else
  16590. ldap_lib_ldif=-lldif$ol_libver
  16591. fi
  16592. LDFLAGS="$save_ldflags"
  16593. CPPFLAGS="$save_cppflags"
  16594. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16595. # where to find ldapsearch, et. al.
  16596. ldaptool_bindir=$openldap_bindir
  16597. # default options to pass to the tools
  16598. # use -x because all of our scripts use simple bind
  16599. ldaptool_opts=-x
  16600. # get plain output from ldapsearch - no version, no comments
  16601. plainldif_opts=-LLL
  16602. fi
  16603. # BEGIN COPYRIGHT BLOCK
  16604. # Copyright (C) 2007 Red Hat, Inc.
  16605. # All rights reserved.
  16606. #
  16607. # This program is free software; you can redistribute it and/or
  16608. # modify it under the terms of the GNU General Public License
  16609. # as published by the Free Software Foundation; either version 2
  16610. # of the License, or (at your option) any later version.
  16611. #
  16612. # This program is distributed in the hope that it will be useful,
  16613. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16614. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16615. # GNU General Public License for more details.
  16616. #
  16617. # You should have received a copy of the GNU General Public License
  16618. # along with this program; if not, write to the Free Software
  16619. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16620. #
  16621. # END COPYRIGHT BLOCK
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16623. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16624. # check for --with-ldapsdk
  16625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16626. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16627. # Check whether --with-ldapsdk was given.
  16628. if test "${with_ldapsdk+set}" = set; then :
  16629. withval=$with_ldapsdk;
  16630. if test "$withval" = yes
  16631. then
  16632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16633. $as_echo "yes" >&6; }
  16634. elif test "$withval" = no
  16635. then
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16637. $as_echo "no" >&6; }
  16638. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16639. then
  16640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16641. $as_echo "using $withval" >&6; }
  16642. LDAPSDKDIR=$withval
  16643. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16644. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16645. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16646. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16647. with_ldapsdk=yes
  16648. else
  16649. echo
  16650. as_fn_error $? "$withval not found" "$LINENO" 5
  16651. fi
  16652. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16653. then
  16654. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16655. fi
  16656. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16657. then
  16658. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16659. fi
  16660. else
  16661. if test "$with_openldap" = yes
  16662. then
  16663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16664. $as_echo "no" >&6; }
  16665. else
  16666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16667. $as_echo "yes" >&6; }
  16668. with_ldapsdk=yes
  16669. fi
  16670. fi
  16671. # check for --with-ldapsdk-inc
  16672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16673. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16674. # Check whether --with-ldapsdk-inc was given.
  16675. if test "${with_ldapsdk_inc+set}" = set; then :
  16676. withval=$with_ldapsdk_inc;
  16677. if test -e "$withval"/ldap.h
  16678. then
  16679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16680. $as_echo "using $withval" >&6; }
  16681. ldapsdk_inc="-I$withval"
  16682. with_ldapsdk=yes
  16683. else
  16684. echo
  16685. as_fn_error $? "$withval not found" "$LINENO" 5
  16686. fi
  16687. else
  16688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16689. $as_echo "no" >&6; }
  16690. fi
  16691. # check for --with-ldapsdk-lib
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16693. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16694. # Check whether --with-ldapsdk-lib was given.
  16695. if test "${with_ldapsdk_lib+set}" = set; then :
  16696. withval=$with_ldapsdk_lib;
  16697. if test -d "$withval"
  16698. then
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16700. $as_echo "using $withval" >&6; }
  16701. ldapsdk_lib="-L$withval"
  16702. ldapsdk_libdir="$withval"
  16703. with_ldapsdk=yes
  16704. else
  16705. echo
  16706. as_fn_error $? "$withval not found" "$LINENO" 5
  16707. fi
  16708. else
  16709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16710. $as_echo "no" >&6; }
  16711. fi
  16712. # check for --with-ldapsdk-bin
  16713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16714. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16715. # Check whether --with-ldapsdk-bin was given.
  16716. if test "${with_ldapsdk_bin+set}" = set; then :
  16717. withval=$with_ldapsdk_bin;
  16718. if test -d "$withval"
  16719. then
  16720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16721. $as_echo "using $withval" >&6; }
  16722. ldapsdk_bindir="$withval"
  16723. with_ldapsdk=yes
  16724. else
  16725. echo
  16726. as_fn_error $? "$withval not found" "$LINENO" 5
  16727. fi
  16728. else
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16730. $as_echo "no" >&6; }
  16731. fi
  16732. # if LDAPSDK is not found yet, try pkg-config
  16733. # last resort
  16734. if test "$with_ldapsdk" = yes ; then
  16735. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16736. # Extract the first word of "pkg-config", so it can be a program name with args.
  16737. set dummy pkg-config; ac_word=$2
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16739. $as_echo_n "checking for $ac_word... " >&6; }
  16740. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16741. $as_echo_n "(cached) " >&6
  16742. else
  16743. case $PKG_CONFIG in
  16744. [\\/]* | ?:[\\/]*)
  16745. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16746. ;;
  16747. *)
  16748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16749. for as_dir in $PATH
  16750. do
  16751. IFS=$as_save_IFS
  16752. test -z "$as_dir" && as_dir=.
  16753. for ac_exec_ext in '' $ac_executable_extensions; do
  16754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16755. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16757. break 2
  16758. fi
  16759. done
  16760. done
  16761. IFS=$as_save_IFS
  16762. ;;
  16763. esac
  16764. fi
  16765. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16766. if test -n "$PKG_CONFIG"; then
  16767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16768. $as_echo "$PKG_CONFIG" >&6; }
  16769. else
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16771. $as_echo "no" >&6; }
  16772. fi
  16773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16774. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16775. if test -n "$PKG_CONFIG"; then
  16776. if $PKG_CONFIG --exists mozldap6; then
  16777. mozldappkg=mozldap6
  16778. elif $PKG_CONFIG --exists mozldap; then
  16779. mozldappkg=mozldap
  16780. else
  16781. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16782. fi
  16783. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16784. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16785. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16786. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16788. $as_echo "using system $mozldappkg" >&6; }
  16789. fi
  16790. fi
  16791. fi
  16792. if test "$with_ldapsdk" = yes ; then
  16793. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16794. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16795. fi
  16796. if test -z "$ldapsdk_bindir" ; then
  16797. if -d $libdir/mozldap6 ; then
  16798. ldapsdk_bindir=$libdir/mozldap6
  16799. else
  16800. ldapsdk_bindir=$libdir/mozldap
  16801. fi
  16802. fi
  16803. save_cppflags="$CPPFLAGS"
  16804. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16805. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16806. #if LDAP_VENDOR_VERSION < 600
  16807. #error The LDAP C SDK version is not supported
  16808. #endif
  16809. "
  16810. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16811. isversion6=1
  16812. else
  16813. isversion6=
  16814. fi
  16815. CPPFLAGS="$save_cppflags"
  16816. if test -z "$isversion6" ; then
  16817. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16818. fi
  16819. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16820. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16821. # where to find ldapsearch, et. al.
  16822. ldaptool_bindir=$ldapsdk_bindir
  16823. # default options to pass to the tools
  16824. ldaptool_opts=
  16825. # get plain output from ldapsearch - no version
  16826. plainldif_opts=-1
  16827. fi
  16828. # BEGIN COPYRIGHT BLOCK
  16829. # Copyright (C) 2007 Red Hat, Inc.
  16830. # All rights reserved.
  16831. #
  16832. # This program is free software; you can redistribute it and/or
  16833. # modify it under the terms of the GNU General Public License
  16834. # as published by the Free Software Foundation; either version 2
  16835. # of the License, or (at your option) any later version.
  16836. #
  16837. # This program is distributed in the hope that it will be useful,
  16838. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16839. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16840. # GNU General Public License for more details.
  16841. #
  16842. # You should have received a copy of the GNU General Public License
  16843. # along with this program; if not, write to the Free Software
  16844. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16845. #
  16846. # END COPYRIGHT BLOCK
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16848. $as_echo "$as_me: checking for db..." >&6;}
  16849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16850. $as_echo_n "checking for --with-db... " >&6; }
  16851. # Check whether --with-db was given.
  16852. if test "${with_db+set}" = set; then :
  16853. withval=$with_db;
  16854. if test "$withval" = "yes"; then
  16855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16856. $as_echo "yes" >&6; }
  16857. elif test "$withval" = "no"; then
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16859. $as_echo "no" >&6; }
  16860. as_fn_error $? "db is required." "$LINENO" 5
  16861. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16863. $as_echo "using $withval" >&6; }
  16864. DBDIR=$withval
  16865. db_lib="-L$DBDIR/lib"
  16866. db_libdir="$DBDIR/lib"
  16867. db_incdir="$DBDIR/include"
  16868. if ! test -e "$db_incdir/db.h" ; then
  16869. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16870. fi
  16871. db_inc="-I$db_incdir"
  16872. else
  16873. echo
  16874. as_fn_error $? "$withval not found" "$LINENO" 5
  16875. fi
  16876. else
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16878. $as_echo "yes" >&6; }
  16879. fi
  16880. # check for --with-db-inc
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16882. $as_echo_n "checking for --with-db-inc... " >&6; }
  16883. # Check whether --with-db-inc was given.
  16884. if test "${with_db_inc+set}" = set; then :
  16885. withval=$with_db_inc;
  16886. if test -e "$withval"/db.h
  16887. then
  16888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16889. $as_echo "using $withval" >&6; }
  16890. db_incdir="$withval"
  16891. db_inc="-I$withval"
  16892. else
  16893. echo
  16894. as_fn_error $? "$withval not found" "$LINENO" 5
  16895. fi
  16896. else
  16897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16898. $as_echo "no" >&6; }
  16899. fi
  16900. # check for --with-db-lib
  16901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  16902. $as_echo_n "checking for --with-db-lib... " >&6; }
  16903. # Check whether --with-db-lib was given.
  16904. if test "${with_db_lib+set}" = set; then :
  16905. withval=$with_db_lib;
  16906. if test -d "$withval"
  16907. then
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16909. $as_echo "using $withval" >&6; }
  16910. db_lib="-L$withval"
  16911. db_libdir="$withval"
  16912. else
  16913. echo
  16914. as_fn_error $? "$withval not found" "$LINENO" 5
  16915. fi
  16916. else
  16917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16918. $as_echo "no" >&6; }
  16919. fi
  16920. if test -z "$db_inc"; then
  16921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  16922. $as_echo_n "checking for db.h... " >&6; }
  16923. if test -f "/usr/include/db4/db.h"; then
  16924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  16925. $as_echo "using /usr/include/db4/db.h" >&6; }
  16926. db_incdir="/usr/include/db4"
  16927. db_inc="-I/usr/include/db4"
  16928. db_lib='-L$(libdir)'
  16929. db_libdir='$(libdir)'
  16930. elif test -f "/usr/include/libdb/db.h"; then
  16931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  16932. $as_echo "using /usr/include/libdb/db.h" >&6; }
  16933. db_incdir="/usr/include/libdb"
  16934. db_inc="-I/usr/include/libdb"
  16935. db_lib='-L$(libdir)'
  16936. db_libdir='$(libdir)'
  16937. elif test -f "/usr/include/db.h"; then
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  16939. $as_echo "using /usr/include/db.h" >&6; }
  16940. db_incdir="/usr/include"
  16941. db_inc="-I/usr/include"
  16942. db_lib='-L$(libdir)'
  16943. db_libdir='$(libdir)'
  16944. else
  16945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16946. $as_echo "no" >&6; }
  16947. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  16948. fi
  16949. fi
  16950. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  16951. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  16952. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  16953. db_libver=${db_ver_maj}.${db_ver_min}
  16954. save_ldflags="$LDFLAGS"
  16955. LDFLAGS="$db_lib $LDFLAGS"
  16956. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  16957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  16958. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  16959. if eval \${$as_ac_Lib+:} false; then :
  16960. $as_echo_n "(cached) " >&6
  16961. else
  16962. ac_check_lib_save_LIBS=$LIBS
  16963. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  16964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16965. /* end confdefs.h. */
  16966. /* Override any GCC internal prototype to avoid an error.
  16967. Use char because int might match the return type of a GCC
  16968. builtin and then its argument prototype would still apply. */
  16969. #ifdef __cplusplus
  16970. extern "C"
  16971. #endif
  16972. char db_create ();
  16973. int
  16974. main ()
  16975. {
  16976. return db_create ();
  16977. ;
  16978. return 0;
  16979. }
  16980. _ACEOF
  16981. if ac_fn_c_try_link "$LINENO"; then :
  16982. eval "$as_ac_Lib=yes"
  16983. else
  16984. eval "$as_ac_Lib=no"
  16985. fi
  16986. rm -f core conftest.err conftest.$ac_objext \
  16987. conftest$ac_exeext conftest.$ac_ext
  16988. LIBS=$ac_check_lib_save_LIBS
  16989. fi
  16990. eval ac_res=\$$as_ac_Lib
  16991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16992. $as_echo "$ac_res" >&6; }
  16993. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16994. true
  16995. else
  16996. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  16997. fi
  16998. LDFLAGS="$save_ldflags"
  16999. # if DB is not found yet, try pkg-config
  17000. # last resort
  17001. # Although the other db_* variables are correctly assigned at this point,
  17002. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17003. if test -n "$PKG_CONFIG"; then
  17004. if $PKG_CONFIG --exists db; then
  17005. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17006. else
  17007. db_bindir=/usr/bin
  17008. fi
  17009. else
  17010. db_bindir=/usr/bin
  17011. fi
  17012. # BEGIN COPYRIGHT BLOCK
  17013. # Copyright (C) 2007 Red Hat, Inc.
  17014. # All rights reserved.
  17015. #
  17016. # This program is free software; you can redistribute it and/or
  17017. # modify it under the terms of the GNU General Public License
  17018. # as published by the Free Software Foundation; either version 2
  17019. # of the License, or (at your option) any later version.
  17020. #
  17021. # This program is distributed in the hope that it will be useful,
  17022. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17023. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17024. # GNU General Public License for more details.
  17025. #
  17026. # You should have received a copy of the GNU General Public License
  17027. # along with this program; if not, write to the Free Software
  17028. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17029. #
  17030. # END COPYRIGHT BLOCK
  17031. # -*- tab-width: 4; -*-
  17032. # Configure paths for SASL
  17033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17034. $as_echo "$as_me: checking for SASL..." >&6;}
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17036. $as_echo_n "checking for --with-sasl... " >&6; }
  17037. # Check whether --with-sasl was given.
  17038. if test "${with_sasl+set}" = set; then :
  17039. withval=$with_sasl;
  17040. if test "$withval" = "yes"; then
  17041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17042. $as_echo "yes" >&6; }
  17043. elif test "$withval" = "no"; then
  17044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17045. $as_echo "no" >&6; }
  17046. as_fn_error $? "SASL is required." "$LINENO" 5
  17047. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17049. $as_echo "using $withval" >&6; }
  17050. if test -f "$withval/include/sasl/sasl.h"; then
  17051. sasl_inc="-I$withval/include/sasl"
  17052. elif test -f "$withval/include/sasl.h"; then
  17053. sasl_inc="-I$withval/include"
  17054. else
  17055. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17056. fi
  17057. sasl_lib="-L$withval/lib"
  17058. sasl_libdir="$withval/lib"
  17059. else
  17060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17061. $as_echo "yes" >&6; }
  17062. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17063. fi
  17064. else
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17066. $as_echo "yes" >&6; }
  17067. fi
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17069. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17070. # Check whether --with-sasl-inc was given.
  17071. if test "${with_sasl_inc+set}" = set; then :
  17072. withval=$with_sasl_inc;
  17073. if test -f "$withval"/sasl.h; then
  17074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17075. $as_echo "using $withval" >&6; }
  17076. sasl_inc="-I$withval"
  17077. else
  17078. echo
  17079. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17080. fi
  17081. else
  17082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17083. $as_echo "no" >&6; }
  17084. fi
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17086. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17087. # Check whether --with-sasl-lib was given.
  17088. if test "${with_sasl_lib+set}" = set; then :
  17089. withval=$with_sasl_lib;
  17090. if test -d "$withval"; then
  17091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17092. $as_echo "using $withval" >&6; }
  17093. sasl_lib="-L$withval"
  17094. sasl_libdir="$withval"
  17095. else
  17096. echo
  17097. as_fn_error $? "$withval not found" "$LINENO" 5
  17098. fi
  17099. else
  17100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17101. $as_echo "no" >&6; }
  17102. fi
  17103. if test -z "$sasl_inc"; then
  17104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17105. $as_echo_n "checking for sasl.h... " >&6; }
  17106. if test -f /usr/include/sasl/sasl.h; then
  17107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17108. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17109. sasl_inc="-I/usr/include/sasl"
  17110. elif test -f /usr/include/sasl.h; then
  17111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17112. $as_echo "using /usr/include/sasl.h" >&6; }
  17113. sasl_inc="-I/usr/include"
  17114. else
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17116. $as_echo "no" >&6; }
  17117. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17118. fi
  17119. fi
  17120. # BEGIN COPYRIGHT BLOCK
  17121. # Copyright (C) 2007 Red Hat, Inc.
  17122. # All rights reserved.
  17123. #
  17124. # This program is free software; you can redistribute it and/or
  17125. # modify it under the terms of the GNU General Public License
  17126. # as published by the Free Software Foundation; either version 2
  17127. # of the License, or (at your option) any later version.
  17128. #
  17129. # This program is distributed in the hope that it will be useful,
  17130. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17131. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17132. # GNU General Public License for more details.
  17133. #
  17134. # You should have received a copy of the GNU General Public License
  17135. # along with this program; if not, write to the Free Software
  17136. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17137. #
  17138. # END COPYRIGHT BLOCK
  17139. #
  17140. # Configure paths for SVRCORE
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17142. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17144. $as_echo_n "checking for --with-svrcore... " >&6; }
  17145. # Check whether --with-svrcore was given.
  17146. if test "${with_svrcore+set}" = set; then :
  17147. withval=$with_svrcore;
  17148. if test "$withval" = "yes"; then
  17149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17150. $as_echo "yes" >&6; }
  17151. elif test "$withval" = "no"; then
  17152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17153. $as_echo "no" >&6; }
  17154. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17155. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17157. $as_echo "using $withval" >&6; }
  17158. if test -f "$withval/include/svrcore.h"; then
  17159. svrcore_inc="-I$withval/include"
  17160. else
  17161. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17162. fi
  17163. svrcore_lib="-L$withval/lib"
  17164. else
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17166. $as_echo "yes" >&6; }
  17167. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17168. fi
  17169. else
  17170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17171. $as_echo "yes" >&6; }
  17172. fi
  17173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17174. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17175. # Check whether --with-svrcore-inc was given.
  17176. if test "${with_svrcore_inc+set}" = set; then :
  17177. withval=$with_svrcore_inc;
  17178. if test -f "$withval"/svrcore.h; then
  17179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17180. $as_echo "using $withval" >&6; }
  17181. svrcore_inc="-I$withval"
  17182. else
  17183. echo
  17184. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17185. fi
  17186. else
  17187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17188. $as_echo "no" >&6; }
  17189. fi
  17190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17191. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17192. # Check whether --with-svrcore-lib was given.
  17193. if test "${with_svrcore_lib+set}" = set; then :
  17194. withval=$with_svrcore_lib;
  17195. if test -d "$withval"; then
  17196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17197. $as_echo "using $withval" >&6; }
  17198. svrcore_lib="-L$withval"
  17199. else
  17200. echo
  17201. as_fn_error $? "$withval not found" "$LINENO" 5
  17202. fi
  17203. else
  17204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17205. $as_echo "no" >&6; }
  17206. fi
  17207. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17208. # Extract the first word of "pkg-config", so it can be a program name with args.
  17209. set dummy pkg-config; ac_word=$2
  17210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17211. $as_echo_n "checking for $ac_word... " >&6; }
  17212. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17213. $as_echo_n "(cached) " >&6
  17214. else
  17215. case $PKG_CONFIG in
  17216. [\\/]* | ?:[\\/]*)
  17217. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17218. ;;
  17219. *)
  17220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17221. for as_dir in $PATH
  17222. do
  17223. IFS=$as_save_IFS
  17224. test -z "$as_dir" && as_dir=.
  17225. for ac_exec_ext in '' $ac_executable_extensions; do
  17226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17227. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17229. break 2
  17230. fi
  17231. done
  17232. done
  17233. IFS=$as_save_IFS
  17234. ;;
  17235. esac
  17236. fi
  17237. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17238. if test -n "$PKG_CONFIG"; then
  17239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17240. $as_echo "$PKG_CONFIG" >&6; }
  17241. else
  17242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17243. $as_echo "no" >&6; }
  17244. fi
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17246. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17247. if test -n "$PKG_CONFIG"; then
  17248. if $PKG_CONFIG --exists svrcore; then
  17249. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17250. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17252. $as_echo "using system svrcore" >&6; }
  17253. fi
  17254. fi
  17255. fi
  17256. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17258. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17259. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17260. $as_echo_n "(cached) " >&6
  17261. else
  17262. ac_check_lib_save_LIBS=$LIBS
  17263. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17265. /* end confdefs.h. */
  17266. /* Override any GCC internal prototype to avoid an error.
  17267. Use char because int might match the return type of a GCC
  17268. builtin and then its argument prototype would still apply. */
  17269. #ifdef __cplusplus
  17270. extern "C"
  17271. #endif
  17272. char SVRCORE_GetRegisteredPinObj ();
  17273. int
  17274. main ()
  17275. {
  17276. return SVRCORE_GetRegisteredPinObj ();
  17277. ;
  17278. return 0;
  17279. }
  17280. _ACEOF
  17281. if ac_fn_c_try_link "$LINENO"; then :
  17282. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17283. else
  17284. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17285. fi
  17286. rm -f core conftest.err conftest.$ac_objext \
  17287. conftest$ac_exeext conftest.$ac_ext
  17288. LIBS=$ac_check_lib_save_LIBS
  17289. fi
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17291. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17292. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17293. havesvrcore=1
  17294. fi
  17295. if test -n "$havesvrcore" ; then
  17296. save_cppflags="$CPPFLAGS"
  17297. CPPFLAGS="$nss_inc $nspr_inc"
  17298. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17299. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17300. havesvrcore=1
  17301. else
  17302. havesvrcore=
  17303. fi
  17304. CPPFLAGS="$save_cppflags"
  17305. fi
  17306. if test -z "$havesvrcore" ; then
  17307. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17308. fi
  17309. fi
  17310. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17311. if test -f /usr/include/svrcore.h; then
  17312. svrcore_inc="-I/usr/include"
  17313. svrcore_lib="-L/usr/lib"
  17314. else
  17315. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17316. fi
  17317. fi
  17318. # BEGIN COPYRIGHT BLOCK
  17319. # Copyright (C) 2006 Red Hat, Inc.
  17320. # All rights reserved.
  17321. #
  17322. # This program is free software; you can redistribute it and/or
  17323. # modify it under the terms of the GNU General Public License
  17324. # as published by the Free Software Foundation; either version 2
  17325. # of the License, or (at your option) any later version.
  17326. #
  17327. # This program is distributed in the hope that it will be useful,
  17328. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17329. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17330. # GNU General Public License for more details.
  17331. #
  17332. # You should have received a copy of the GNU General Public License
  17333. # along with this program; if not, write to the Free Software
  17334. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17335. #
  17336. # END COPYRIGHT BLOCK
  17337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17338. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17339. # check for --with-icu
  17340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17341. $as_echo_n "checking for --with-icu... " >&6; }
  17342. # Check whether --with-icu was given.
  17343. if test "${with_icu+set}" = set; then :
  17344. withval=$with_icu;
  17345. if test "$withval" = "yes"
  17346. then
  17347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17348. $as_echo "yes" >&6; }
  17349. elif test "$withval" = "no"
  17350. then
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17352. $as_echo "no" >&6; }
  17353. as_fn_error $? "ICU is required." "$LINENO" 5
  17354. elif test -d "$withval"/lib
  17355. then
  17356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17357. $as_echo "using $withval" >&6; }
  17358. ICUDIR=$withval
  17359. icu_lib="-L$ICUDIR/lib"
  17360. icu_inc="-I$withval/include"
  17361. icu_bin="$withval/bin"
  17362. else
  17363. echo
  17364. as_fn_error $? "$withval not found" "$LINENO" 5
  17365. fi
  17366. else
  17367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17368. $as_echo "yes" >&6; }
  17369. fi
  17370. # check for --with-icu-inc
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17372. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17373. # Check whether --with-icu-inc was given.
  17374. if test "${with_icu_inc+set}" = set; then :
  17375. withval=$with_icu_inc;
  17376. if test -d "$withval"
  17377. then
  17378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17379. $as_echo "using $withval" >&6; }
  17380. icu_inc="-I$withval"
  17381. else
  17382. echo
  17383. as_fn_error $? "$withval not found" "$LINENO" 5
  17384. fi
  17385. else
  17386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17387. $as_echo "no" >&6; }
  17388. fi
  17389. # check for --with-icu-lib
  17390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17391. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17392. # Check whether --with-icu-lib was given.
  17393. if test "${with_icu_lib+set}" = set; then :
  17394. withval=$with_icu_lib;
  17395. if test -d "$withval"
  17396. then
  17397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17398. $as_echo "using $withval" >&6; }
  17399. icu_lib="-L$withval"
  17400. else
  17401. echo
  17402. as_fn_error $? "$withval not found" "$LINENO" 5
  17403. fi
  17404. else
  17405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17406. $as_echo "no" >&6; }
  17407. fi
  17408. # check for --with-icu-bin
  17409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17410. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17411. # Check whether --with-icu-bin was given.
  17412. if test "${with_icu_bin+set}" = set; then :
  17413. withval=$with_icu_bin;
  17414. if test -d "$withval"
  17415. then
  17416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17417. $as_echo "using $withval" >&6; }
  17418. icu_bin="$withval"
  17419. else
  17420. echo
  17421. as_fn_error $? "$withval not found" "$LINENO" 5
  17422. fi
  17423. else
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17425. $as_echo "no" >&6; }
  17426. fi
  17427. # if ICU is not found yet, try pkg-config
  17428. # last resort
  17429. if test -z "$icu_lib"; then
  17430. # Extract the first word of "icu-config", so it can be a program name with args.
  17431. set dummy icu-config; ac_word=$2
  17432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17433. $as_echo_n "checking for $ac_word... " >&6; }
  17434. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17435. $as_echo_n "(cached) " >&6
  17436. else
  17437. case $ICU_CONFIG in
  17438. [\\/]* | ?:[\\/]*)
  17439. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17440. ;;
  17441. *)
  17442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17443. for as_dir in $PATH
  17444. do
  17445. IFS=$as_save_IFS
  17446. test -z "$as_dir" && as_dir=.
  17447. for ac_exec_ext in '' $ac_executable_extensions; do
  17448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17449. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17451. break 2
  17452. fi
  17453. done
  17454. done
  17455. IFS=$as_save_IFS
  17456. ;;
  17457. esac
  17458. fi
  17459. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17460. if test -n "$ICU_CONFIG"; then
  17461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17462. $as_echo "$ICU_CONFIG" >&6; }
  17463. else
  17464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17465. $as_echo "no" >&6; }
  17466. fi
  17467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17468. $as_echo_n "checking for icu with icu-config... " >&6; }
  17469. if test -n "$ICU_CONFIG"; then
  17470. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17471. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17472. icu_bin=`$ICU_CONFIG --bindir`
  17473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17474. $as_echo "using system ICU" >&6; }
  17475. else
  17476. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17477. fi
  17478. fi
  17479. # BEGIN COPYRIGHT BLOCK
  17480. # Copyright (C) 2006 Red Hat, Inc.
  17481. # All rights reserved.
  17482. #
  17483. # This program is free software; you can redistribute it and/or
  17484. # modify it under the terms of the GNU General Public License
  17485. # as published by the Free Software Foundation; either version 2
  17486. # of the License, or (at your option) any later version.
  17487. #
  17488. # This program is distributed in the hope that it will be useful,
  17489. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17490. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17491. # GNU General Public License for more details.
  17492. #
  17493. # You should have received a copy of the GNU General Public License
  17494. # along with this program; if not, write to the Free Software
  17495. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17496. #
  17497. # END COPYRIGHT BLOCK
  17498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17499. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17501. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17502. # Check whether --with-netsnmp was given.
  17503. if test "${with_netsnmp+set}" = set; then :
  17504. withval=$with_netsnmp;
  17505. if test "$withval" = "yes"; then
  17506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17507. $as_echo "yes" >&6; }
  17508. elif test "$withval" = "no"; then
  17509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17510. $as_echo "no" >&6; }
  17511. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17512. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17514. $as_echo "using $withval" >&6; }
  17515. NETSNMPDIR=$withval
  17516. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17517. netsnmp_inc="-I$withval/include"
  17518. else
  17519. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17520. fi
  17521. netsnmp_lib="-L$withval/lib"
  17522. netsnmp_libdir="$withval/lib"
  17523. else
  17524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17525. $as_echo "yes" >&6; }
  17526. as_fn_error $? "$withval not found" "$LINENO" 5
  17527. fi
  17528. else
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17530. $as_echo "yes" >&6; }
  17531. fi
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17533. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17534. # Check whether --with-netsnmp-inc was given.
  17535. if test "${with_netsnmp_inc+set}" = set; then :
  17536. withval=$with_netsnmp_inc;
  17537. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17539. $as_echo "using $withval" >&6; }
  17540. netsnmp_inc="-I$withval"
  17541. else
  17542. echo
  17543. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17544. fi
  17545. else
  17546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17547. $as_echo "no" >&6; }
  17548. fi
  17549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17550. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17551. # Check whether --with-netsnmp-lib was given.
  17552. if test "${with_netsnmp_lib+set}" = set; then :
  17553. withval=$with_netsnmp_lib;
  17554. if test -d "$withval"
  17555. then
  17556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17557. $as_echo "using $withval" >&6; }
  17558. netsnmp_lib="-L$withval"
  17559. netsnmp_libdir="$withval"
  17560. else
  17561. echo
  17562. as_fn_error $? "$withval not found" "$LINENO" 5
  17563. fi
  17564. else
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17566. $as_echo "no" >&6; }
  17567. fi
  17568. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17570. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17571. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17573. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17574. netsnmp_inc="-I/usr/include"
  17575. else
  17576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17577. $as_echo "no" >&6; }
  17578. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17579. fi
  17580. fi
  17581. if test -n "$netsnmp_inc"; then
  17582. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17583. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17584. else
  17585. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17586. set dummy net-snmp-config; ac_word=$2
  17587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17588. $as_echo_n "checking for $ac_word... " >&6; }
  17589. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17590. $as_echo_n "(cached) " >&6
  17591. else
  17592. case $NETSNMP_CONFIG in
  17593. [\\/]* | ?:[\\/]*)
  17594. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17595. ;;
  17596. *)
  17597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17598. for as_dir in $PATH
  17599. do
  17600. IFS=$as_save_IFS
  17601. test -z "$as_dir" && as_dir=.
  17602. for ac_exec_ext in '' $ac_executable_extensions; do
  17603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17604. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17606. break 2
  17607. fi
  17608. done
  17609. done
  17610. IFS=$as_save_IFS
  17611. ;;
  17612. esac
  17613. fi
  17614. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17615. if test -n "$NETSNMP_CONFIG"; then
  17616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17617. $as_echo "$NETSNMP_CONFIG" >&6; }
  17618. else
  17619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17620. $as_echo "no" >&6; }
  17621. fi
  17622. fi
  17623. if test -n "$NETSNMP_CONFIG"; then
  17624. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17625. else
  17626. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17627. fi
  17628. else
  17629. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17630. fi
  17631. # BEGIN COPYRIGHT BLOCK
  17632. # Copyright (C) 2008 Red Hat, Inc.
  17633. # All rights reserved.
  17634. #
  17635. # This program is free software; you can redistribute it and/or
  17636. # modify it under the terms of the GNU General Public License
  17637. # as published by the Free Software Foundation; either version 2
  17638. # of the License, or (at your option) any later version.
  17639. #
  17640. # This program is distributed in the hope that it will be useful,
  17641. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17642. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17643. # GNU General Public License for more details.
  17644. #
  17645. # You should have received a copy of the GNU General Public License
  17646. # along with this program; if not, write to the Free Software
  17647. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17648. #
  17649. # END COPYRIGHT BLOCK
  17650. # -*- tab-width: 4; -*-
  17651. # Configure paths for Kerberos
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17653. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17654. if test -z "$with_kerberos" ; then
  17655. with_kerberos=yes # if not set on cmdline, set default
  17656. fi
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17658. $as_echo_n "checking for --with-kerberos... " >&6; }
  17659. # Check whether --with-kerberos was given.
  17660. if test "${with_kerberos+set}" = set; then :
  17661. withval=$with_kerberos;
  17662. if test "x$withval" = "xyes"; then
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17664. $as_echo "yes" >&6; }
  17665. elif test "x$withval" = "xno"; then
  17666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17667. $as_echo "no" >&6; }
  17668. with_kerberos=
  17669. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17671. $as_echo "using $withval" >&6; }
  17672. kerberos_incdir="$withval/include"
  17673. kerberos_libdir="$withval/lib"
  17674. else
  17675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17676. $as_echo "yes" >&6; }
  17677. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17678. fi
  17679. else
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17681. $as_echo "no" >&6; }
  17682. with_kerberos=
  17683. fi
  17684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17685. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17686. # Check whether --with-kerberos-inc was given.
  17687. if test "${with_kerberos_inc+set}" = set; then :
  17688. withval=$with_kerberos_inc;
  17689. if test -f "$withval"/krb5.h; then
  17690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17691. $as_echo "using $withval" >&6; }
  17692. kerberos_incdir="$withval"
  17693. with_kerberos=yes # implies use of kerberos
  17694. else
  17695. echo
  17696. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17697. fi
  17698. else
  17699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17700. $as_echo "no" >&6; }
  17701. fi
  17702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17703. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17704. # Check whether --with-kerberos-lib was given.
  17705. if test "${with_kerberos_lib+set}" = set; then :
  17706. withval=$with_kerberos_lib;
  17707. if test -d "$withval"; then
  17708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17709. $as_echo "using $withval" >&6; }
  17710. kerberos_libdir="$withval"
  17711. with_kerberos=yes # implies use of kerberos
  17712. else
  17713. echo
  17714. as_fn_error $? "$withval not found" "$LINENO" 5
  17715. fi
  17716. else
  17717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17718. $as_echo "no" >&6; }
  17719. fi
  17720. if test -n "$with_kerberos" ; then
  17721. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17722. if test -z "$KRB5_CONFIG_BIN" ; then
  17723. # Extract the first word of "krb5-config", so it can be a program name with args.
  17724. set dummy krb5-config; ac_word=$2
  17725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17726. $as_echo_n "checking for $ac_word... " >&6; }
  17727. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17728. $as_echo_n "(cached) " >&6
  17729. else
  17730. case $KRB5_CONFIG_BIN in
  17731. [\\/]* | ?:[\\/]*)
  17732. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17733. ;;
  17734. *)
  17735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17736. for as_dir in $PATH
  17737. do
  17738. IFS=$as_save_IFS
  17739. test -z "$as_dir" && as_dir=.
  17740. for ac_exec_ext in '' $ac_executable_extensions; do
  17741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17742. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17744. break 2
  17745. fi
  17746. done
  17747. done
  17748. IFS=$as_save_IFS
  17749. ;;
  17750. esac
  17751. fi
  17752. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17753. if test -n "$KRB5_CONFIG_BIN"; then
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17755. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17756. else
  17757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17758. $as_echo "no" >&6; }
  17759. fi
  17760. fi
  17761. if test -n "$KRB5_CONFIG_BIN" ; then
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17763. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17764. if test -z "$kerberos_libdir" ; then
  17765. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17766. fi
  17767. if test -z "$kerberos_incdir" ; then
  17768. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17769. fi
  17770. if test -n "$kerberos_lib" ; then
  17771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17772. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17773. have_krb5=yes
  17774. fi
  17775. fi
  17776. fi
  17777. fi
  17778. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17779. # save these in order to set them to use the check macros below
  17780. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17781. save_CPPFLAGS="$CPPFLAGS"
  17782. if test -n "$kerberos_incdir" ; then
  17783. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17784. fi
  17785. save_LDFLAGS="$LDFLAGS"
  17786. if test -n "$kerberos_libdir" ; then
  17787. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17788. fi
  17789. krb5_impl=mit
  17790. for ac_header in heim_err.h
  17791. do :
  17792. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17793. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17794. cat >>confdefs.h <<_ACEOF
  17795. #define HAVE_HEIM_ERR_H 1
  17796. _ACEOF
  17797. fi
  17798. done
  17799. if test $ac_cv_header_heim_err_h = yes ; then
  17800. krb5_impl=heimdal
  17801. fi
  17802. if test "x$krb5_impl" = "xmit"; then
  17803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17804. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17805. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17806. $as_echo_n "(cached) " >&6
  17807. else
  17808. ac_check_lib_save_LIBS=$LIBS
  17809. LIBS="-lk5crypto $LIBS"
  17810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17811. /* end confdefs.h. */
  17812. int
  17813. main ()
  17814. {
  17815. return main ();
  17816. ;
  17817. return 0;
  17818. }
  17819. _ACEOF
  17820. if ac_fn_c_try_link "$LINENO"; then :
  17821. ac_cv_lib_k5crypto_main=yes
  17822. else
  17823. ac_cv_lib_k5crypto_main=no
  17824. fi
  17825. rm -f core conftest.err conftest.$ac_objext \
  17826. conftest$ac_exeext conftest.$ac_ext
  17827. LIBS=$ac_check_lib_save_LIBS
  17828. fi
  17829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17830. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17831. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17832. krb5crypto=k5crypto
  17833. else
  17834. krb5crypto=crypto
  17835. fi
  17836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17837. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17838. if ${ac_cv_lib_krb5_main+:} false; then :
  17839. $as_echo_n "(cached) " >&6
  17840. else
  17841. ac_check_lib_save_LIBS=$LIBS
  17842. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17844. /* end confdefs.h. */
  17845. int
  17846. main ()
  17847. {
  17848. return main ();
  17849. ;
  17850. return 0;
  17851. }
  17852. _ACEOF
  17853. if ac_fn_c_try_link "$LINENO"; then :
  17854. ac_cv_lib_krb5_main=yes
  17855. else
  17856. ac_cv_lib_krb5_main=no
  17857. fi
  17858. rm -f core conftest.err conftest.$ac_objext \
  17859. conftest$ac_exeext conftest.$ac_ext
  17860. LIBS=$ac_check_lib_save_LIBS
  17861. fi
  17862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17863. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17864. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17865. have_krb5=yes
  17866. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17867. else
  17868. have_krb5=no
  17869. fi
  17870. elif test "x$krb5_impl" = "xheimdal"; then
  17871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17872. $as_echo_n "checking for main in -ldes... " >&6; }
  17873. if ${ac_cv_lib_des_main+:} false; then :
  17874. $as_echo_n "(cached) " >&6
  17875. else
  17876. ac_check_lib_save_LIBS=$LIBS
  17877. LIBS="-ldes $LIBS"
  17878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17879. /* end confdefs.h. */
  17880. int
  17881. main ()
  17882. {
  17883. return main ();
  17884. ;
  17885. return 0;
  17886. }
  17887. _ACEOF
  17888. if ac_fn_c_try_link "$LINENO"; then :
  17889. ac_cv_lib_des_main=yes
  17890. else
  17891. ac_cv_lib_des_main=no
  17892. fi
  17893. rm -f core conftest.err conftest.$ac_objext \
  17894. conftest$ac_exeext conftest.$ac_ext
  17895. LIBS=$ac_check_lib_save_LIBS
  17896. fi
  17897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17898. $as_echo "$ac_cv_lib_des_main" >&6; }
  17899. if test "x$ac_cv_lib_des_main" = xyes; then :
  17900. krb5crypto=des
  17901. else
  17902. krb5crypto=crypto
  17903. fi
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17905. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17906. if ${ac_cv_lib_krb5_main+:} false; then :
  17907. $as_echo_n "(cached) " >&6
  17908. else
  17909. ac_check_lib_save_LIBS=$LIBS
  17910. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17912. /* end confdefs.h. */
  17913. int
  17914. main ()
  17915. {
  17916. return main ();
  17917. ;
  17918. return 0;
  17919. }
  17920. _ACEOF
  17921. if ac_fn_c_try_link "$LINENO"; then :
  17922. ac_cv_lib_krb5_main=yes
  17923. else
  17924. ac_cv_lib_krb5_main=no
  17925. fi
  17926. rm -f core conftest.err conftest.$ac_objext \
  17927. conftest$ac_exeext conftest.$ac_ext
  17928. LIBS=$ac_check_lib_save_LIBS
  17929. fi
  17930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17931. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17932. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17933. have_krb5=yes
  17934. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  17935. else
  17936. have_krb5=no
  17937. fi
  17938. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  17939. else
  17940. have_krb5=no
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  17942. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  17943. fi
  17944. # reset to original values
  17945. CPPFLAGS="$save_CPPFLAGS"
  17946. LDFLAGS="$save_LDFLAGS"
  17947. if test -n "$kerberos_incdir" ; then
  17948. kerberos_inc="-I$kerberos_incdir"
  17949. fi
  17950. if test -n "$kerberos_libdir" ; then
  17951. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  17952. fi
  17953. fi
  17954. if test -n "$with_kerberos" ; then
  17955. if test "x$have_krb5" = "xyes" ; then
  17956. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  17957. else
  17958. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  17959. fi
  17960. save_LIBS="$LIBS"
  17961. LIBS="$kerberos_lib"
  17962. save_CPPFLAGS="$CPPFLAGS"
  17963. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  17964. for ac_func in krb5_cc_new_unique
  17965. do :
  17966. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  17967. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  17968. cat >>confdefs.h <<_ACEOF
  17969. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  17970. _ACEOF
  17971. fi
  17972. done
  17973. LIBS="$save_LIBS"
  17974. CPPFLAGS="$save_CPPFLAGS"
  17975. fi
  17976. # BEGIN COPYRIGHT BLOCK
  17977. # Copyright (C) 2007 Red Hat, Inc.
  17978. # All rights reserved.
  17979. #
  17980. # This program is free software; you can redistribute it and/or
  17981. # modify it under the terms of the GNU General Public License
  17982. # as published by the Free Software Foundation; either version 2
  17983. # of the License, or (at your option) any later version.
  17984. #
  17985. # This program is distributed in the hope that it will be useful,
  17986. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17987. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17988. # GNU General Public License for more details.
  17989. #
  17990. # You should have received a copy of the GNU General Public License
  17991. # along with this program; if not, write to the Free Software
  17992. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17993. #
  17994. # END COPYRIGHT BLOCK
  17995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  17996. $as_echo "$as_me: checking for PCRE..." >&6;}
  17997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  17998. $as_echo_n "checking for --with-pcre... " >&6; }
  17999. # Check whether --with-pcre was given.
  18000. if test "${with_pcre+set}" = set; then :
  18001. withval=$with_pcre;
  18002. if test "$withval" = "yes"; then
  18003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18004. $as_echo "yes" >&6; }
  18005. elif test "$withval" = "no"; then
  18006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18007. $as_echo "no" >&6; }
  18008. as_fn_error $? "PCRE is required." "$LINENO" 5
  18009. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18011. $as_echo "using $withval" >&6; }
  18012. PCREDIR=$withval
  18013. pcre_lib="-L$PCREDIR/lib"
  18014. pcre_libdir="$PCREDIR/lib"
  18015. pcre_incdir="$PCREDIR/include"
  18016. if ! test -e "$pcre_incdir/pcre.h" ; then
  18017. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18018. fi
  18019. pcre_inc="-I$pcre_incdir"
  18020. else
  18021. echo
  18022. as_fn_error $? "$withval not found" "$LINENO" 5
  18023. fi
  18024. else
  18025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18026. $as_echo "yes" >&6; }
  18027. fi
  18028. #
  18029. # if PCRE is not found yet, try pkg-config
  18030. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18031. # Extract the first word of "pkg-config", so it can be a program name with args.
  18032. set dummy pkg-config; ac_word=$2
  18033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18034. $as_echo_n "checking for $ac_word... " >&6; }
  18035. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18036. $as_echo_n "(cached) " >&6
  18037. else
  18038. case $PKG_CONFIG in
  18039. [\\/]* | ?:[\\/]*)
  18040. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18041. ;;
  18042. *)
  18043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18044. for as_dir in $PATH
  18045. do
  18046. IFS=$as_save_IFS
  18047. test -z "$as_dir" && as_dir=.
  18048. for ac_exec_ext in '' $ac_executable_extensions; do
  18049. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18050. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18052. break 2
  18053. fi
  18054. done
  18055. done
  18056. IFS=$as_save_IFS
  18057. ;;
  18058. esac
  18059. fi
  18060. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18061. if test -n "$PKG_CONFIG"; then
  18062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18063. $as_echo "$PKG_CONFIG" >&6; }
  18064. else
  18065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18066. $as_echo "no" >&6; }
  18067. fi
  18068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18069. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18070. if test -n "$PKG_CONFIG"; then
  18071. if $PKG_CONFIG --exists pcre; then
  18072. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18073. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18074. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18076. $as_echo "using system PCRE" >&6; }
  18077. elif $PKG_CONFIG --exists libpcre; then
  18078. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18079. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18080. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18082. $as_echo "using system PCRE" >&6; }
  18083. else
  18084. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18085. fi
  18086. fi
  18087. fi
  18088. if test -z "$pcre_inc"; then
  18089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18090. $as_echo_n "checking for pcre.h... " >&6; }
  18091. if test -f "/usr/include/pcre/pcre.h"; then
  18092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18093. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18094. pcre_incdir="/usr/include/pcre"
  18095. pcre_inc="-I/usr/include/pcre"
  18096. pcre_lib='-L$(libdir)'
  18097. pcre_libdir='$(libdir)'
  18098. elif test -f "/usr/include/pcre.h"; then
  18099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18100. $as_echo "using /usr/include/pcre.h" >&6; }
  18101. pcre_incdir="/usr/include"
  18102. pcre_inc="-I/usr/include"
  18103. pcre_lib='-L$(libdir)'
  18104. pcre_libdir='$(libdir)'
  18105. else
  18106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18107. $as_echo "no" >&6; }
  18108. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18109. fi
  18110. fi
  18111. # BEGIN COPYRIGHT BLOCK
  18112. # Copyright (C) 2009 Red Hat, Inc.
  18113. # All rights reserved.
  18114. #
  18115. # This program is free software; you can redistribute it and/or
  18116. # modify it under the terms of the GNU General Public License
  18117. # as published by the Free Software Foundation; either version 2
  18118. # of the License, or (at your option) any later version.
  18119. #
  18120. # This program is distributed in the hope that it will be useful,
  18121. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18122. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18123. # GNU General Public License for more details.
  18124. #
  18125. # You should have received a copy of the GNU General Public License
  18126. # along with this program; if not, write to the Free Software
  18127. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18128. #
  18129. # END COPYRIGHT BLOCK
  18130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18131. $as_echo "$as_me: checking for SELinux..." >&6;}
  18132. # check for --with-selinux
  18133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18134. $as_echo_n "checking for --with-selinux... " >&6; }
  18135. # Check whether --with-selinux was given.
  18136. if test "${with_selinux+set}" = set; then :
  18137. withval=$with_selinux;
  18138. if test "$withval" = "no"; then
  18139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18140. $as_echo "no" >&6; }
  18141. else
  18142. with_selinux=yes
  18143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18144. $as_echo "yes" >&6; }
  18145. fi
  18146. else
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18148. $as_echo "no" >&6; }
  18149. fi
  18150. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18151. # set sasl_path for wrapper scripts
  18152. if test -z "$sasl_libdir" ; then
  18153. sasl_path="$libdir/sasl2"
  18154. else
  18155. sasl_path="$sasl_libdir/sasl2"
  18156. fi
  18157. if test "$with_selinux" = "yes"; then
  18158. SELINUX_TRUE=
  18159. SELINUX_FALSE='#'
  18160. else
  18161. SELINUX_TRUE='#'
  18162. SELINUX_FALSE=
  18163. fi
  18164. if test "$with_openldap" = "yes"; then
  18165. OPENLDAP_TRUE=
  18166. OPENLDAP_FALSE='#'
  18167. else
  18168. OPENLDAP_TRUE='#'
  18169. OPENLDAP_FALSE=
  18170. fi
  18171. if test "$platform" = "solaris"; then
  18172. SOLARIS_TRUE=
  18173. SOLARIS_FALSE='#'
  18174. else
  18175. SOLARIS_TRUE='#'
  18176. SOLARIS_FALSE=
  18177. fi
  18178. if test "x$TARGET" = xSPARC; then
  18179. SPARC_TRUE=
  18180. SPARC_FALSE='#'
  18181. else
  18182. SPARC_TRUE='#'
  18183. SPARC_FALSE=
  18184. fi
  18185. # write out paths for binary components
  18186. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18187. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18188. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18189. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18190. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18191. # we remove them here
  18192. if test "$GCC" != yes ; then
  18193. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18194. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18195. cp -p libtool libtool.orig
  18196. cp -p libtool libtool.tmp
  18197. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18198. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18199. # perl produced write-only code . . .
  18200. sed -e '/^gcc_dir/ d' \
  18201. -e '/^gcc_ver/ d' \
  18202. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18203. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18204. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18205. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18206. libtool > libtool.tmp
  18207. cp -p libtool.tmp libtool
  18208. rm -f libtool.tmp
  18209. fi
  18210. ac_config_files="$ac_config_files Makefile"
  18211. cat >confcache <<\_ACEOF
  18212. # This file is a shell script that caches the results of configure
  18213. # tests run on this system so they can be shared between configure
  18214. # scripts and configure runs, see configure's option --config-cache.
  18215. # It is not useful on other systems. If it contains results you don't
  18216. # want to keep, you may remove or edit it.
  18217. #
  18218. # config.status only pays attention to the cache file if you give it
  18219. # the --recheck option to rerun configure.
  18220. #
  18221. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18222. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18223. # following values.
  18224. _ACEOF
  18225. # The following way of writing the cache mishandles newlines in values,
  18226. # but we know of no workaround that is simple, portable, and efficient.
  18227. # So, we kill variables containing newlines.
  18228. # Ultrix sh set writes to stderr and can't be redirected directly,
  18229. # and sets the high bit in the cache file unless we assign to the vars.
  18230. (
  18231. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18232. eval ac_val=\$$ac_var
  18233. case $ac_val in #(
  18234. *${as_nl}*)
  18235. case $ac_var in #(
  18236. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18237. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18238. esac
  18239. case $ac_var in #(
  18240. _ | IFS | as_nl) ;; #(
  18241. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18242. *) { eval $ac_var=; unset $ac_var;} ;;
  18243. esac ;;
  18244. esac
  18245. done
  18246. (set) 2>&1 |
  18247. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18248. *${as_nl}ac_space=\ *)
  18249. # `set' does not quote correctly, so add quotes: double-quote
  18250. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18251. sed -n \
  18252. "s/'/'\\\\''/g;
  18253. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18254. ;; #(
  18255. *)
  18256. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18257. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18258. ;;
  18259. esac |
  18260. sort
  18261. ) |
  18262. sed '
  18263. /^ac_cv_env_/b end
  18264. t clear
  18265. :clear
  18266. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18267. t end
  18268. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18269. :end' >>confcache
  18270. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18271. if test -w "$cache_file"; then
  18272. if test "x$cache_file" != "x/dev/null"; then
  18273. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18274. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18275. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18276. cat confcache >"$cache_file"
  18277. else
  18278. case $cache_file in #(
  18279. */* | ?:*)
  18280. mv -f confcache "$cache_file"$$ &&
  18281. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18282. *)
  18283. mv -f confcache "$cache_file" ;;
  18284. esac
  18285. fi
  18286. fi
  18287. else
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18289. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18290. fi
  18291. fi
  18292. rm -f confcache
  18293. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18294. # Let make expand exec_prefix.
  18295. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18296. DEFS=-DHAVE_CONFIG_H
  18297. ac_libobjs=
  18298. ac_ltlibobjs=
  18299. U=
  18300. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18301. # 1. Remove the extension, and $U if already installed.
  18302. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18303. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18304. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18305. # will be set to the directory where LIBOBJS objects are built.
  18306. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18307. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18308. done
  18309. LIBOBJS=$ac_libobjs
  18310. LTLIBOBJS=$ac_ltlibobjs
  18311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18312. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18313. if test -n "$am_sleep_pid"; then
  18314. # Hide warnings about reused PIDs.
  18315. wait $am_sleep_pid 2>/dev/null
  18316. fi
  18317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18318. $as_echo "done" >&6; }
  18319. if test -n "$EXEEXT"; then
  18320. am__EXEEXT_TRUE=
  18321. am__EXEEXT_FALSE='#'
  18322. else
  18323. am__EXEEXT_TRUE='#'
  18324. am__EXEEXT_FALSE=
  18325. fi
  18326. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18327. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18328. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18329. fi
  18330. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18331. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18332. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18333. fi
  18334. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18335. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18336. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18337. fi
  18338. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18339. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18340. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18341. fi
  18342. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18343. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18344. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18345. fi
  18346. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18347. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18348. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18349. fi
  18350. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18351. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18352. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18353. fi
  18354. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18355. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18356. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18357. fi
  18358. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18359. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18360. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18361. fi
  18362. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18363. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18364. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18365. fi
  18366. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18367. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18368. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18369. fi
  18370. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18371. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18372. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18373. fi
  18374. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18375. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18376. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18377. fi
  18378. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18379. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18380. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18381. fi
  18382. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18383. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18384. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18385. fi
  18386. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18387. as_fn_error $? "conditional \"WINNT\" was never defined.
  18388. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18389. fi
  18390. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18391. as_fn_error $? "conditional \"HPUX\" was never defined.
  18392. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18393. fi
  18394. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18395. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18396. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18397. fi
  18398. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18399. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18400. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18401. fi
  18402. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18403. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18404. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18405. fi
  18406. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18407. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18408. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18409. fi
  18410. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18411. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18412. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18413. fi
  18414. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18415. as_fn_error $? "conditional \"SPARC\" was never defined.
  18416. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18417. fi
  18418. : "${CONFIG_STATUS=./config.status}"
  18419. ac_write_fail=0
  18420. ac_clean_files_save=$ac_clean_files
  18421. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18422. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18423. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18424. as_write_fail=0
  18425. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18426. #! $SHELL
  18427. # Generated by $as_me.
  18428. # Run this file to recreate the current configuration.
  18429. # Compiler output produced by configure, useful for debugging
  18430. # configure, is in config.log if it exists.
  18431. debug=false
  18432. ac_cs_recheck=false
  18433. ac_cs_silent=false
  18434. SHELL=\${CONFIG_SHELL-$SHELL}
  18435. export SHELL
  18436. _ASEOF
  18437. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18438. ## -------------------- ##
  18439. ## M4sh Initialization. ##
  18440. ## -------------------- ##
  18441. # Be more Bourne compatible
  18442. DUALCASE=1; export DUALCASE # for MKS sh
  18443. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18444. emulate sh
  18445. NULLCMD=:
  18446. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18447. # is contrary to our usage. Disable this feature.
  18448. alias -g '${1+"$@"}'='"$@"'
  18449. setopt NO_GLOB_SUBST
  18450. else
  18451. case `(set -o) 2>/dev/null` in #(
  18452. *posix*) :
  18453. set -o posix ;; #(
  18454. *) :
  18455. ;;
  18456. esac
  18457. fi
  18458. as_nl='
  18459. '
  18460. export as_nl
  18461. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18462. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18463. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18464. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18465. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18466. # but without wasting forks for bash or zsh.
  18467. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18468. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18469. as_echo='print -r --'
  18470. as_echo_n='print -rn --'
  18471. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18472. as_echo='printf %s\n'
  18473. as_echo_n='printf %s'
  18474. else
  18475. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18476. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18477. as_echo_n='/usr/ucb/echo -n'
  18478. else
  18479. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18480. as_echo_n_body='eval
  18481. arg=$1;
  18482. case $arg in #(
  18483. *"$as_nl"*)
  18484. expr "X$arg" : "X\\(.*\\)$as_nl";
  18485. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18486. esac;
  18487. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18488. '
  18489. export as_echo_n_body
  18490. as_echo_n='sh -c $as_echo_n_body as_echo'
  18491. fi
  18492. export as_echo_body
  18493. as_echo='sh -c $as_echo_body as_echo'
  18494. fi
  18495. # The user is always right.
  18496. if test "${PATH_SEPARATOR+set}" != set; then
  18497. PATH_SEPARATOR=:
  18498. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18499. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18500. PATH_SEPARATOR=';'
  18501. }
  18502. fi
  18503. # IFS
  18504. # We need space, tab and new line, in precisely that order. Quoting is
  18505. # there to prevent editors from complaining about space-tab.
  18506. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18507. # splitting by setting IFS to empty value.)
  18508. IFS=" "" $as_nl"
  18509. # Find who we are. Look in the path if we contain no directory separator.
  18510. as_myself=
  18511. case $0 in #((
  18512. *[\\/]* ) as_myself=$0 ;;
  18513. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18514. for as_dir in $PATH
  18515. do
  18516. IFS=$as_save_IFS
  18517. test -z "$as_dir" && as_dir=.
  18518. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18519. done
  18520. IFS=$as_save_IFS
  18521. ;;
  18522. esac
  18523. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18524. # in which case we are not to be found in the path.
  18525. if test "x$as_myself" = x; then
  18526. as_myself=$0
  18527. fi
  18528. if test ! -f "$as_myself"; then
  18529. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18530. exit 1
  18531. fi
  18532. # Unset variables that we do not need and which cause bugs (e.g. in
  18533. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18534. # suppresses any "Segmentation fault" message there. '((' could
  18535. # trigger a bug in pdksh 5.2.14.
  18536. for as_var in BASH_ENV ENV MAIL MAILPATH
  18537. do eval test x\${$as_var+set} = xset \
  18538. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18539. done
  18540. PS1='$ '
  18541. PS2='> '
  18542. PS4='+ '
  18543. # NLS nuisances.
  18544. LC_ALL=C
  18545. export LC_ALL
  18546. LANGUAGE=C
  18547. export LANGUAGE
  18548. # CDPATH.
  18549. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18550. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18551. # ----------------------------------------
  18552. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18553. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18554. # script with STATUS, using 1 if that was 0.
  18555. as_fn_error ()
  18556. {
  18557. as_status=$1; test $as_status -eq 0 && as_status=1
  18558. if test "$4"; then
  18559. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18560. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18561. fi
  18562. $as_echo "$as_me: error: $2" >&2
  18563. as_fn_exit $as_status
  18564. } # as_fn_error
  18565. # as_fn_set_status STATUS
  18566. # -----------------------
  18567. # Set $? to STATUS, without forking.
  18568. as_fn_set_status ()
  18569. {
  18570. return $1
  18571. } # as_fn_set_status
  18572. # as_fn_exit STATUS
  18573. # -----------------
  18574. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18575. as_fn_exit ()
  18576. {
  18577. set +e
  18578. as_fn_set_status $1
  18579. exit $1
  18580. } # as_fn_exit
  18581. # as_fn_unset VAR
  18582. # ---------------
  18583. # Portably unset VAR.
  18584. as_fn_unset ()
  18585. {
  18586. { eval $1=; unset $1;}
  18587. }
  18588. as_unset=as_fn_unset
  18589. # as_fn_append VAR VALUE
  18590. # ----------------------
  18591. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18592. # advantage of any shell optimizations that allow amortized linear growth over
  18593. # repeated appends, instead of the typical quadratic growth present in naive
  18594. # implementations.
  18595. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18596. eval 'as_fn_append ()
  18597. {
  18598. eval $1+=\$2
  18599. }'
  18600. else
  18601. as_fn_append ()
  18602. {
  18603. eval $1=\$$1\$2
  18604. }
  18605. fi # as_fn_append
  18606. # as_fn_arith ARG...
  18607. # ------------------
  18608. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18609. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18610. # must be portable across $(()) and expr.
  18611. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18612. eval 'as_fn_arith ()
  18613. {
  18614. as_val=$(( $* ))
  18615. }'
  18616. else
  18617. as_fn_arith ()
  18618. {
  18619. as_val=`expr "$@" || test $? -eq 1`
  18620. }
  18621. fi # as_fn_arith
  18622. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18623. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18624. as_expr=expr
  18625. else
  18626. as_expr=false
  18627. fi
  18628. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18629. as_basename=basename
  18630. else
  18631. as_basename=false
  18632. fi
  18633. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18634. as_dirname=dirname
  18635. else
  18636. as_dirname=false
  18637. fi
  18638. as_me=`$as_basename -- "$0" ||
  18639. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18640. X"$0" : 'X\(//\)$' \| \
  18641. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18642. $as_echo X/"$0" |
  18643. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18644. s//\1/
  18645. q
  18646. }
  18647. /^X\/\(\/\/\)$/{
  18648. s//\1/
  18649. q
  18650. }
  18651. /^X\/\(\/\).*/{
  18652. s//\1/
  18653. q
  18654. }
  18655. s/.*/./; q'`
  18656. # Avoid depending upon Character Ranges.
  18657. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18658. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18659. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18660. as_cr_digits='0123456789'
  18661. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18662. ECHO_C= ECHO_N= ECHO_T=
  18663. case `echo -n x` in #(((((
  18664. -n*)
  18665. case `echo 'xy\c'` in
  18666. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18667. xy) ECHO_C='\c';;
  18668. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18669. ECHO_T=' ';;
  18670. esac;;
  18671. *)
  18672. ECHO_N='-n';;
  18673. esac
  18674. rm -f conf$$ conf$$.exe conf$$.file
  18675. if test -d conf$$.dir; then
  18676. rm -f conf$$.dir/conf$$.file
  18677. else
  18678. rm -f conf$$.dir
  18679. mkdir conf$$.dir 2>/dev/null
  18680. fi
  18681. if (echo >conf$$.file) 2>/dev/null; then
  18682. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18683. as_ln_s='ln -s'
  18684. # ... but there are two gotchas:
  18685. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18686. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18687. # In both cases, we have to default to `cp -pR'.
  18688. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18689. as_ln_s='cp -pR'
  18690. elif ln conf$$.file conf$$ 2>/dev/null; then
  18691. as_ln_s=ln
  18692. else
  18693. as_ln_s='cp -pR'
  18694. fi
  18695. else
  18696. as_ln_s='cp -pR'
  18697. fi
  18698. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18699. rmdir conf$$.dir 2>/dev/null
  18700. # as_fn_mkdir_p
  18701. # -------------
  18702. # Create "$as_dir" as a directory, including parents if necessary.
  18703. as_fn_mkdir_p ()
  18704. {
  18705. case $as_dir in #(
  18706. -*) as_dir=./$as_dir;;
  18707. esac
  18708. test -d "$as_dir" || eval $as_mkdir_p || {
  18709. as_dirs=
  18710. while :; do
  18711. case $as_dir in #(
  18712. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18713. *) as_qdir=$as_dir;;
  18714. esac
  18715. as_dirs="'$as_qdir' $as_dirs"
  18716. as_dir=`$as_dirname -- "$as_dir" ||
  18717. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18718. X"$as_dir" : 'X\(//\)[^/]' \| \
  18719. X"$as_dir" : 'X\(//\)$' \| \
  18720. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18721. $as_echo X"$as_dir" |
  18722. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18723. s//\1/
  18724. q
  18725. }
  18726. /^X\(\/\/\)[^/].*/{
  18727. s//\1/
  18728. q
  18729. }
  18730. /^X\(\/\/\)$/{
  18731. s//\1/
  18732. q
  18733. }
  18734. /^X\(\/\).*/{
  18735. s//\1/
  18736. q
  18737. }
  18738. s/.*/./; q'`
  18739. test -d "$as_dir" && break
  18740. done
  18741. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18742. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18743. } # as_fn_mkdir_p
  18744. if mkdir -p . 2>/dev/null; then
  18745. as_mkdir_p='mkdir -p "$as_dir"'
  18746. else
  18747. test -d ./-p && rmdir ./-p
  18748. as_mkdir_p=false
  18749. fi
  18750. # as_fn_executable_p FILE
  18751. # -----------------------
  18752. # Test if FILE is an executable regular file.
  18753. as_fn_executable_p ()
  18754. {
  18755. test -f "$1" && test -x "$1"
  18756. } # as_fn_executable_p
  18757. as_test_x='test -x'
  18758. as_executable_p=as_fn_executable_p
  18759. # Sed expression to map a string onto a valid CPP name.
  18760. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18761. # Sed expression to map a string onto a valid variable name.
  18762. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18763. exec 6>&1
  18764. ## ----------------------------------- ##
  18765. ## Main body of $CONFIG_STATUS script. ##
  18766. ## ----------------------------------- ##
  18767. _ASEOF
  18768. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18769. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18770. # Save the log message, to keep $0 and so on meaningful, and to
  18771. # report actual input values of CONFIG_FILES etc. instead of their
  18772. # values after options handling.
  18773. ac_log="
  18774. This file was extended by dirsrv $as_me 1.0, which was
  18775. generated by GNU Autoconf 2.69. Invocation command line was
  18776. CONFIG_FILES = $CONFIG_FILES
  18777. CONFIG_HEADERS = $CONFIG_HEADERS
  18778. CONFIG_LINKS = $CONFIG_LINKS
  18779. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18780. $ $0 $@
  18781. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18782. "
  18783. _ACEOF
  18784. case $ac_config_files in *"
  18785. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18786. esac
  18787. case $ac_config_headers in *"
  18788. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18789. esac
  18790. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18791. # Files that config.status was made for.
  18792. config_files="$ac_config_files"
  18793. config_headers="$ac_config_headers"
  18794. config_commands="$ac_config_commands"
  18795. _ACEOF
  18796. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18797. ac_cs_usage="\
  18798. \`$as_me' instantiates files and other configuration actions
  18799. from templates according to the current configuration. Unless the files
  18800. and actions are specified as TAGs, all are instantiated by default.
  18801. Usage: $0 [OPTION]... [TAG]...
  18802. -h, --help print this help, then exit
  18803. -V, --version print version number and configuration settings, then exit
  18804. --config print configuration, then exit
  18805. -q, --quiet, --silent
  18806. do not print progress messages
  18807. -d, --debug don't remove temporary files
  18808. --recheck update $as_me by reconfiguring in the same conditions
  18809. --file=FILE[:TEMPLATE]
  18810. instantiate the configuration file FILE
  18811. --header=FILE[:TEMPLATE]
  18812. instantiate the configuration header FILE
  18813. Configuration files:
  18814. $config_files
  18815. Configuration headers:
  18816. $config_headers
  18817. Configuration commands:
  18818. $config_commands
  18819. Report bugs to <http://bugzilla.redhat.com/>."
  18820. _ACEOF
  18821. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18822. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18823. ac_cs_version="\\
  18824. dirsrv config.status 1.0
  18825. configured by $0, generated by GNU Autoconf 2.69,
  18826. with options \\"\$ac_cs_config\\"
  18827. Copyright (C) 2012 Free Software Foundation, Inc.
  18828. This config.status script is free software; the Free Software Foundation
  18829. gives unlimited permission to copy, distribute and modify it."
  18830. ac_pwd='$ac_pwd'
  18831. srcdir='$srcdir'
  18832. INSTALL='$INSTALL'
  18833. MKDIR_P='$MKDIR_P'
  18834. AWK='$AWK'
  18835. test -n "\$AWK" || AWK=awk
  18836. _ACEOF
  18837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18838. # The default lists apply if the user does not specify any file.
  18839. ac_need_defaults=:
  18840. while test $# != 0
  18841. do
  18842. case $1 in
  18843. --*=?*)
  18844. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18845. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18846. ac_shift=:
  18847. ;;
  18848. --*=)
  18849. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18850. ac_optarg=
  18851. ac_shift=:
  18852. ;;
  18853. *)
  18854. ac_option=$1
  18855. ac_optarg=$2
  18856. ac_shift=shift
  18857. ;;
  18858. esac
  18859. case $ac_option in
  18860. # Handling of the options.
  18861. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18862. ac_cs_recheck=: ;;
  18863. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18864. $as_echo "$ac_cs_version"; exit ;;
  18865. --config | --confi | --conf | --con | --co | --c )
  18866. $as_echo "$ac_cs_config"; exit ;;
  18867. --debug | --debu | --deb | --de | --d | -d )
  18868. debug=: ;;
  18869. --file | --fil | --fi | --f )
  18870. $ac_shift
  18871. case $ac_optarg in
  18872. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18873. '') as_fn_error $? "missing file argument" ;;
  18874. esac
  18875. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18876. ac_need_defaults=false;;
  18877. --header | --heade | --head | --hea )
  18878. $ac_shift
  18879. case $ac_optarg in
  18880. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18881. esac
  18882. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18883. ac_need_defaults=false;;
  18884. --he | --h)
  18885. # Conflict between --help and --header
  18886. as_fn_error $? "ambiguous option: \`$1'
  18887. Try \`$0 --help' for more information.";;
  18888. --help | --hel | -h )
  18889. $as_echo "$ac_cs_usage"; exit ;;
  18890. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18891. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18892. ac_cs_silent=: ;;
  18893. # This is an error.
  18894. -*) as_fn_error $? "unrecognized option: \`$1'
  18895. Try \`$0 --help' for more information." ;;
  18896. *) as_fn_append ac_config_targets " $1"
  18897. ac_need_defaults=false ;;
  18898. esac
  18899. shift
  18900. done
  18901. ac_configure_extra_args=
  18902. if $ac_cs_silent; then
  18903. exec 6>/dev/null
  18904. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18905. fi
  18906. _ACEOF
  18907. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18908. if \$ac_cs_recheck; then
  18909. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18910. shift
  18911. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18912. CONFIG_SHELL='$SHELL'
  18913. export CONFIG_SHELL
  18914. exec "\$@"
  18915. fi
  18916. _ACEOF
  18917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18918. exec 5>>config.log
  18919. {
  18920. echo
  18921. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18922. ## Running $as_me. ##
  18923. _ASBOX
  18924. $as_echo "$ac_log"
  18925. } >&5
  18926. _ACEOF
  18927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18928. #
  18929. # INIT-COMMANDS
  18930. #
  18931. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18932. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18933. # if CDPATH is set.
  18934. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18935. sed_quote_subst='$sed_quote_subst'
  18936. double_quote_subst='$double_quote_subst'
  18937. delay_variable_subst='$delay_variable_subst'
  18938. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18939. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18940. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18941. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18942. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18943. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18944. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18945. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18946. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18947. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18948. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18949. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18950. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18951. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18952. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18953. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18954. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18955. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18956. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18957. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18958. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18959. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18960. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18961. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18962. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18963. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18964. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18965. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18966. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18967. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18968. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18969. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18970. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18971. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18972. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18973. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18974. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18975. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18976. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18977. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18978. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18979. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18980. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18981. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18982. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18983. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18984. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18985. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18986. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18987. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18988. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18989. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18990. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18991. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18992. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18993. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18994. 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"`'
  18995. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18996. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18997. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18998. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18999. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19000. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19001. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19002. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19003. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19004. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19005. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19006. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19007. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19008. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19009. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19010. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19011. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19012. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19013. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19014. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19015. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19016. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19017. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19018. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19019. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19020. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19021. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19022. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19023. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19024. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19025. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19026. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19027. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19028. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19029. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19030. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19031. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19032. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19033. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19034. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19035. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19036. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19037. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19038. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19039. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19040. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19041. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19042. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19043. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19044. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19045. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19046. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19047. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19048. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19049. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19050. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19051. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19052. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19053. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19054. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19055. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19056. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19057. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19058. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19059. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19060. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19061. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19062. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19063. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19064. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19065. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19066. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19067. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19068. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19069. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19070. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19071. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19072. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19073. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19074. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19075. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19076. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19077. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19078. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19079. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19080. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19081. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19082. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19083. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19084. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19085. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19086. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19087. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19088. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19089. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19090. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19091. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19092. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19093. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19094. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19095. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19096. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19097. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19098. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19099. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19100. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19101. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19102. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19103. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19104. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19105. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19106. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19107. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19108. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19109. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19110. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19111. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19112. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19113. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19114. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19115. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19116. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19117. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19118. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19119. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19120. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19121. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19122. LTCC='$LTCC'
  19123. LTCFLAGS='$LTCFLAGS'
  19124. compiler='$compiler_DEFAULT'
  19125. # A function that is used when there is no print builtin or printf.
  19126. func_fallback_echo ()
  19127. {
  19128. eval 'cat <<_LTECHO_EOF
  19129. \$1
  19130. _LTECHO_EOF'
  19131. }
  19132. # Quote evaled strings.
  19133. for var in SHELL \
  19134. ECHO \
  19135. PATH_SEPARATOR \
  19136. SED \
  19137. GREP \
  19138. EGREP \
  19139. FGREP \
  19140. LD \
  19141. NM \
  19142. LN_S \
  19143. lt_SP2NL \
  19144. lt_NL2SP \
  19145. reload_flag \
  19146. OBJDUMP \
  19147. deplibs_check_method \
  19148. file_magic_cmd \
  19149. file_magic_glob \
  19150. want_nocaseglob \
  19151. DLLTOOL \
  19152. sharedlib_from_linklib_cmd \
  19153. AR \
  19154. AR_FLAGS \
  19155. archiver_list_spec \
  19156. STRIP \
  19157. RANLIB \
  19158. CC \
  19159. CFLAGS \
  19160. compiler \
  19161. lt_cv_sys_global_symbol_pipe \
  19162. lt_cv_sys_global_symbol_to_cdecl \
  19163. lt_cv_sys_global_symbol_to_c_name_address \
  19164. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19165. nm_file_list_spec \
  19166. lt_prog_compiler_no_builtin_flag \
  19167. lt_prog_compiler_pic \
  19168. lt_prog_compiler_wl \
  19169. lt_prog_compiler_static \
  19170. lt_cv_prog_compiler_c_o \
  19171. need_locks \
  19172. MANIFEST_TOOL \
  19173. DSYMUTIL \
  19174. NMEDIT \
  19175. LIPO \
  19176. OTOOL \
  19177. OTOOL64 \
  19178. shrext_cmds \
  19179. export_dynamic_flag_spec \
  19180. whole_archive_flag_spec \
  19181. compiler_needs_object \
  19182. with_gnu_ld \
  19183. allow_undefined_flag \
  19184. no_undefined_flag \
  19185. hardcode_libdir_flag_spec \
  19186. hardcode_libdir_separator \
  19187. exclude_expsyms \
  19188. include_expsyms \
  19189. file_list_spec \
  19190. variables_saved_for_relink \
  19191. libname_spec \
  19192. library_names_spec \
  19193. soname_spec \
  19194. install_override_mode \
  19195. finish_eval \
  19196. old_striplib \
  19197. striplib \
  19198. compiler_lib_search_dirs \
  19199. predep_objects \
  19200. postdep_objects \
  19201. predeps \
  19202. postdeps \
  19203. compiler_lib_search_path \
  19204. LD_CXX \
  19205. reload_flag_CXX \
  19206. compiler_CXX \
  19207. lt_prog_compiler_no_builtin_flag_CXX \
  19208. lt_prog_compiler_pic_CXX \
  19209. lt_prog_compiler_wl_CXX \
  19210. lt_prog_compiler_static_CXX \
  19211. lt_cv_prog_compiler_c_o_CXX \
  19212. export_dynamic_flag_spec_CXX \
  19213. whole_archive_flag_spec_CXX \
  19214. compiler_needs_object_CXX \
  19215. with_gnu_ld_CXX \
  19216. allow_undefined_flag_CXX \
  19217. no_undefined_flag_CXX \
  19218. hardcode_libdir_flag_spec_CXX \
  19219. hardcode_libdir_separator_CXX \
  19220. exclude_expsyms_CXX \
  19221. include_expsyms_CXX \
  19222. file_list_spec_CXX \
  19223. compiler_lib_search_dirs_CXX \
  19224. predep_objects_CXX \
  19225. postdep_objects_CXX \
  19226. predeps_CXX \
  19227. postdeps_CXX \
  19228. compiler_lib_search_path_CXX; do
  19229. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19230. *[\\\\\\\`\\"\\\$]*)
  19231. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19232. ;;
  19233. *)
  19234. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19235. ;;
  19236. esac
  19237. done
  19238. # Double-quote double-evaled strings.
  19239. for var in reload_cmds \
  19240. old_postinstall_cmds \
  19241. old_postuninstall_cmds \
  19242. old_archive_cmds \
  19243. extract_expsyms_cmds \
  19244. old_archive_from_new_cmds \
  19245. old_archive_from_expsyms_cmds \
  19246. archive_cmds \
  19247. archive_expsym_cmds \
  19248. module_cmds \
  19249. module_expsym_cmds \
  19250. export_symbols_cmds \
  19251. prelink_cmds \
  19252. postlink_cmds \
  19253. postinstall_cmds \
  19254. postuninstall_cmds \
  19255. finish_cmds \
  19256. sys_lib_search_path_spec \
  19257. sys_lib_dlsearch_path_spec \
  19258. reload_cmds_CXX \
  19259. old_archive_cmds_CXX \
  19260. old_archive_from_new_cmds_CXX \
  19261. old_archive_from_expsyms_cmds_CXX \
  19262. archive_cmds_CXX \
  19263. archive_expsym_cmds_CXX \
  19264. module_cmds_CXX \
  19265. module_expsym_cmds_CXX \
  19266. export_symbols_cmds_CXX \
  19267. prelink_cmds_CXX \
  19268. postlink_cmds_CXX; do
  19269. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19270. *[\\\\\\\`\\"\\\$]*)
  19271. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19272. ;;
  19273. *)
  19274. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19275. ;;
  19276. esac
  19277. done
  19278. ac_aux_dir='$ac_aux_dir'
  19279. xsi_shell='$xsi_shell'
  19280. lt_shell_append='$lt_shell_append'
  19281. # See if we are running on zsh, and set the options which allow our
  19282. # commands through without removal of \ escapes INIT.
  19283. if test -n "\${ZSH_VERSION+set}" ; then
  19284. setopt NO_GLOB_SUBST
  19285. fi
  19286. PACKAGE='$PACKAGE'
  19287. VERSION='$VERSION'
  19288. TIMESTAMP='$TIMESTAMP'
  19289. RM='$RM'
  19290. ofile='$ofile'
  19291. _ACEOF
  19292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19293. # Handling of arguments.
  19294. for ac_config_target in $ac_config_targets
  19295. do
  19296. case $ac_config_target in
  19297. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19298. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19299. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19300. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19301. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19302. esac
  19303. done
  19304. # If the user did not use the arguments to specify the items to instantiate,
  19305. # then the envvar interface is used. Set only those that are not.
  19306. # We use the long form for the default assignment because of an extremely
  19307. # bizarre bug on SunOS 4.1.3.
  19308. if $ac_need_defaults; then
  19309. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19310. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19311. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19312. fi
  19313. # Have a temporary directory for convenience. Make it in the build tree
  19314. # simply because there is no reason against having it here, and in addition,
  19315. # creating and moving files from /tmp can sometimes cause problems.
  19316. # Hook for its removal unless debugging.
  19317. # Note that there is a small window in which the directory will not be cleaned:
  19318. # after its creation but before its name has been assigned to `$tmp'.
  19319. $debug ||
  19320. {
  19321. tmp= ac_tmp=
  19322. trap 'exit_status=$?
  19323. : "${ac_tmp:=$tmp}"
  19324. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19325. ' 0
  19326. trap 'as_fn_exit 1' 1 2 13 15
  19327. }
  19328. # Create a (secure) tmp directory for tmp files.
  19329. {
  19330. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19331. test -d "$tmp"
  19332. } ||
  19333. {
  19334. tmp=./conf$$-$RANDOM
  19335. (umask 077 && mkdir "$tmp")
  19336. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19337. ac_tmp=$tmp
  19338. # Set up the scripts for CONFIG_FILES section.
  19339. # No need to generate them if there are no CONFIG_FILES.
  19340. # This happens for instance with `./config.status config.h'.
  19341. if test -n "$CONFIG_FILES"; then
  19342. ac_cr=`echo X | tr X '\015'`
  19343. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19344. # But we know of no other shell where ac_cr would be empty at this
  19345. # point, so we can use a bashism as a fallback.
  19346. if test "x$ac_cr" = x; then
  19347. eval ac_cr=\$\'\\r\'
  19348. fi
  19349. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19350. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19351. ac_cs_awk_cr='\\r'
  19352. else
  19353. ac_cs_awk_cr=$ac_cr
  19354. fi
  19355. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19356. _ACEOF
  19357. {
  19358. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19359. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19360. echo "_ACEOF"
  19361. } >conf$$subs.sh ||
  19362. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19363. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19364. ac_delim='%!_!# '
  19365. for ac_last_try in false false false false false :; do
  19366. . ./conf$$subs.sh ||
  19367. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19368. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19369. if test $ac_delim_n = $ac_delim_num; then
  19370. break
  19371. elif $ac_last_try; then
  19372. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19373. else
  19374. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19375. fi
  19376. done
  19377. rm -f conf$$subs.sh
  19378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19379. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19380. _ACEOF
  19381. sed -n '
  19382. h
  19383. s/^/S["/; s/!.*/"]=/
  19384. p
  19385. g
  19386. s/^[^!]*!//
  19387. :repl
  19388. t repl
  19389. s/'"$ac_delim"'$//
  19390. t delim
  19391. :nl
  19392. h
  19393. s/\(.\{148\}\)..*/\1/
  19394. t more1
  19395. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19396. p
  19397. n
  19398. b repl
  19399. :more1
  19400. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19401. p
  19402. g
  19403. s/.\{148\}//
  19404. t nl
  19405. :delim
  19406. h
  19407. s/\(.\{148\}\)..*/\1/
  19408. t more2
  19409. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19410. p
  19411. b
  19412. :more2
  19413. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19414. p
  19415. g
  19416. s/.\{148\}//
  19417. t delim
  19418. ' <conf$$subs.awk | sed '
  19419. /^[^""]/{
  19420. N
  19421. s/\n//
  19422. }
  19423. ' >>$CONFIG_STATUS || ac_write_fail=1
  19424. rm -f conf$$subs.awk
  19425. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19426. _ACAWK
  19427. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19428. for (key in S) S_is_set[key] = 1
  19429. FS = ""
  19430. }
  19431. {
  19432. line = $ 0
  19433. nfields = split(line, field, "@")
  19434. substed = 0
  19435. len = length(field[1])
  19436. for (i = 2; i < nfields; i++) {
  19437. key = field[i]
  19438. keylen = length(key)
  19439. if (S_is_set[key]) {
  19440. value = S[key]
  19441. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19442. len += length(value) + length(field[++i])
  19443. substed = 1
  19444. } else
  19445. len += 1 + keylen
  19446. }
  19447. print line
  19448. }
  19449. _ACAWK
  19450. _ACEOF
  19451. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19452. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19453. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19454. else
  19455. cat
  19456. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19457. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19458. _ACEOF
  19459. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19460. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19461. # trailing colons and then remove the whole line if VPATH becomes empty
  19462. # (actually we leave an empty line to preserve line numbers).
  19463. if test "x$srcdir" = x.; then
  19464. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19465. h
  19466. s///
  19467. s/^/:/
  19468. s/[ ]*$/:/
  19469. s/:\$(srcdir):/:/g
  19470. s/:\${srcdir}:/:/g
  19471. s/:@srcdir@:/:/g
  19472. s/^:*//
  19473. s/:*$//
  19474. x
  19475. s/\(=[ ]*\).*/\1/
  19476. G
  19477. s/\n//
  19478. s/^[^=]*=[ ]*$//
  19479. }'
  19480. fi
  19481. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19482. fi # test -n "$CONFIG_FILES"
  19483. # Set up the scripts for CONFIG_HEADERS section.
  19484. # No need to generate them if there are no CONFIG_HEADERS.
  19485. # This happens for instance with `./config.status Makefile'.
  19486. if test -n "$CONFIG_HEADERS"; then
  19487. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19488. BEGIN {
  19489. _ACEOF
  19490. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19491. # here-document in config.status, that substitutes the proper values into
  19492. # config.h.in to produce config.h.
  19493. # Create a delimiter string that does not exist in confdefs.h, to ease
  19494. # handling of long lines.
  19495. ac_delim='%!_!# '
  19496. for ac_last_try in false false :; do
  19497. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19498. if test -z "$ac_tt"; then
  19499. break
  19500. elif $ac_last_try; then
  19501. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19502. else
  19503. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19504. fi
  19505. done
  19506. # For the awk script, D is an array of macro values keyed by name,
  19507. # likewise P contains macro parameters if any. Preserve backslash
  19508. # newline sequences.
  19509. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19510. sed -n '
  19511. s/.\{148\}/&'"$ac_delim"'/g
  19512. t rset
  19513. :rset
  19514. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19515. t def
  19516. d
  19517. :def
  19518. s/\\$//
  19519. t bsnl
  19520. s/["\\]/\\&/g
  19521. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19522. D["\1"]=" \3"/p
  19523. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19524. d
  19525. :bsnl
  19526. s/["\\]/\\&/g
  19527. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19528. D["\1"]=" \3\\\\\\n"\\/p
  19529. t cont
  19530. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19531. t cont
  19532. d
  19533. :cont
  19534. n
  19535. s/.\{148\}/&'"$ac_delim"'/g
  19536. t clear
  19537. :clear
  19538. s/\\$//
  19539. t bsnlc
  19540. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19541. d
  19542. :bsnlc
  19543. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19544. b cont
  19545. ' <confdefs.h | sed '
  19546. s/'"$ac_delim"'/"\\\
  19547. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19548. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19549. for (key in D) D_is_set[key] = 1
  19550. FS = ""
  19551. }
  19552. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19553. line = \$ 0
  19554. split(line, arg, " ")
  19555. if (arg[1] == "#") {
  19556. defundef = arg[2]
  19557. mac1 = arg[3]
  19558. } else {
  19559. defundef = substr(arg[1], 2)
  19560. mac1 = arg[2]
  19561. }
  19562. split(mac1, mac2, "(") #)
  19563. macro = mac2[1]
  19564. prefix = substr(line, 1, index(line, defundef) - 1)
  19565. if (D_is_set[macro]) {
  19566. # Preserve the white space surrounding the "#".
  19567. print prefix "define", macro P[macro] D[macro]
  19568. next
  19569. } else {
  19570. # Replace #undef with comments. This is necessary, for example,
  19571. # in the case of _POSIX_SOURCE, which is predefined and required
  19572. # on some systems where configure will not decide to define it.
  19573. if (defundef == "undef") {
  19574. print "/*", prefix defundef, macro, "*/"
  19575. next
  19576. }
  19577. }
  19578. }
  19579. { print }
  19580. _ACAWK
  19581. _ACEOF
  19582. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19583. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19584. fi # test -n "$CONFIG_HEADERS"
  19585. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19586. shift
  19587. for ac_tag
  19588. do
  19589. case $ac_tag in
  19590. :[FHLC]) ac_mode=$ac_tag; continue;;
  19591. esac
  19592. case $ac_mode$ac_tag in
  19593. :[FHL]*:*);;
  19594. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19595. :[FH]-) ac_tag=-:-;;
  19596. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19597. esac
  19598. ac_save_IFS=$IFS
  19599. IFS=:
  19600. set x $ac_tag
  19601. IFS=$ac_save_IFS
  19602. shift
  19603. ac_file=$1
  19604. shift
  19605. case $ac_mode in
  19606. :L) ac_source=$1;;
  19607. :[FH])
  19608. ac_file_inputs=
  19609. for ac_f
  19610. do
  19611. case $ac_f in
  19612. -) ac_f="$ac_tmp/stdin";;
  19613. *) # Look for the file first in the build tree, then in the source tree
  19614. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19615. # because $ac_f cannot contain `:'.
  19616. test -f "$ac_f" ||
  19617. case $ac_f in
  19618. [\\/$]*) false;;
  19619. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19620. esac ||
  19621. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19622. esac
  19623. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19624. as_fn_append ac_file_inputs " '$ac_f'"
  19625. done
  19626. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19627. # use $as_me), people would be surprised to read:
  19628. # /* config.h. Generated by config.status. */
  19629. configure_input='Generated from '`
  19630. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19631. `' by configure.'
  19632. if test x"$ac_file" != x-; then
  19633. configure_input="$ac_file. $configure_input"
  19634. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19635. $as_echo "$as_me: creating $ac_file" >&6;}
  19636. fi
  19637. # Neutralize special characters interpreted by sed in replacement strings.
  19638. case $configure_input in #(
  19639. *\&* | *\|* | *\\* )
  19640. ac_sed_conf_input=`$as_echo "$configure_input" |
  19641. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19642. *) ac_sed_conf_input=$configure_input;;
  19643. esac
  19644. case $ac_tag in
  19645. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19646. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19647. esac
  19648. ;;
  19649. esac
  19650. ac_dir=`$as_dirname -- "$ac_file" ||
  19651. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19652. X"$ac_file" : 'X\(//\)[^/]' \| \
  19653. X"$ac_file" : 'X\(//\)$' \| \
  19654. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19655. $as_echo X"$ac_file" |
  19656. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19657. s//\1/
  19658. q
  19659. }
  19660. /^X\(\/\/\)[^/].*/{
  19661. s//\1/
  19662. q
  19663. }
  19664. /^X\(\/\/\)$/{
  19665. s//\1/
  19666. q
  19667. }
  19668. /^X\(\/\).*/{
  19669. s//\1/
  19670. q
  19671. }
  19672. s/.*/./; q'`
  19673. as_dir="$ac_dir"; as_fn_mkdir_p
  19674. ac_builddir=.
  19675. case "$ac_dir" in
  19676. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19677. *)
  19678. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19679. # A ".." for each directory in $ac_dir_suffix.
  19680. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19681. case $ac_top_builddir_sub in
  19682. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19683. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19684. esac ;;
  19685. esac
  19686. ac_abs_top_builddir=$ac_pwd
  19687. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19688. # for backward compatibility:
  19689. ac_top_builddir=$ac_top_build_prefix
  19690. case $srcdir in
  19691. .) # We are building in place.
  19692. ac_srcdir=.
  19693. ac_top_srcdir=$ac_top_builddir_sub
  19694. ac_abs_top_srcdir=$ac_pwd ;;
  19695. [\\/]* | ?:[\\/]* ) # Absolute name.
  19696. ac_srcdir=$srcdir$ac_dir_suffix;
  19697. ac_top_srcdir=$srcdir
  19698. ac_abs_top_srcdir=$srcdir ;;
  19699. *) # Relative name.
  19700. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19701. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19702. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19703. esac
  19704. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19705. case $ac_mode in
  19706. :F)
  19707. #
  19708. # CONFIG_FILE
  19709. #
  19710. case $INSTALL in
  19711. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19712. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19713. esac
  19714. ac_MKDIR_P=$MKDIR_P
  19715. case $MKDIR_P in
  19716. [\\/$]* | ?:[\\/]* ) ;;
  19717. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19718. esac
  19719. _ACEOF
  19720. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19721. # If the template does not know about datarootdir, expand it.
  19722. # FIXME: This hack should be removed a few years after 2.60.
  19723. ac_datarootdir_hack=; ac_datarootdir_seen=
  19724. ac_sed_dataroot='
  19725. /datarootdir/ {
  19726. p
  19727. q
  19728. }
  19729. /@datadir@/p
  19730. /@docdir@/p
  19731. /@infodir@/p
  19732. /@localedir@/p
  19733. /@mandir@/p'
  19734. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19735. *datarootdir*) ac_datarootdir_seen=yes;;
  19736. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19738. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19739. _ACEOF
  19740. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19741. ac_datarootdir_hack='
  19742. s&@datadir@&$datadir&g
  19743. s&@docdir@&$docdir&g
  19744. s&@infodir@&$infodir&g
  19745. s&@localedir@&$localedir&g
  19746. s&@mandir@&$mandir&g
  19747. s&\\\${datarootdir}&$datarootdir&g' ;;
  19748. esac
  19749. _ACEOF
  19750. # Neutralize VPATH when `$srcdir' = `.'.
  19751. # Shell code in configure.ac might set extrasub.
  19752. # FIXME: do we really want to maintain this feature?
  19753. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19754. ac_sed_extra="$ac_vpsub
  19755. $extrasub
  19756. _ACEOF
  19757. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19758. :t
  19759. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19760. s|@configure_input@|$ac_sed_conf_input|;t t
  19761. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19762. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19763. s&@srcdir@&$ac_srcdir&;t t
  19764. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19765. s&@top_srcdir@&$ac_top_srcdir&;t t
  19766. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19767. s&@builddir@&$ac_builddir&;t t
  19768. s&@abs_builddir@&$ac_abs_builddir&;t t
  19769. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19770. s&@INSTALL@&$ac_INSTALL&;t t
  19771. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19772. $ac_datarootdir_hack
  19773. "
  19774. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19775. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19776. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19777. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19778. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19779. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19781. which seems to be undefined. Please make sure it is defined" >&5
  19782. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19783. which seems to be undefined. Please make sure it is defined" >&2;}
  19784. rm -f "$ac_tmp/stdin"
  19785. case $ac_file in
  19786. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19787. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19788. esac \
  19789. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19790. ;;
  19791. :H)
  19792. #
  19793. # CONFIG_HEADER
  19794. #
  19795. if test x"$ac_file" != x-; then
  19796. {
  19797. $as_echo "/* $configure_input */" \
  19798. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19799. } >"$ac_tmp/config.h" \
  19800. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19801. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19802. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19803. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19804. else
  19805. rm -f "$ac_file"
  19806. mv "$ac_tmp/config.h" "$ac_file" \
  19807. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19808. fi
  19809. else
  19810. $as_echo "/* $configure_input */" \
  19811. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19812. || as_fn_error $? "could not create -" "$LINENO" 5
  19813. fi
  19814. # Compute "$ac_file"'s index in $config_headers.
  19815. _am_arg="$ac_file"
  19816. _am_stamp_count=1
  19817. for _am_header in $config_headers :; do
  19818. case $_am_header in
  19819. $_am_arg | $_am_arg:* )
  19820. break ;;
  19821. * )
  19822. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19823. esac
  19824. done
  19825. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19826. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19827. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19828. X"$_am_arg" : 'X\(//\)$' \| \
  19829. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19830. $as_echo X"$_am_arg" |
  19831. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19832. s//\1/
  19833. q
  19834. }
  19835. /^X\(\/\/\)[^/].*/{
  19836. s//\1/
  19837. q
  19838. }
  19839. /^X\(\/\/\)$/{
  19840. s//\1/
  19841. q
  19842. }
  19843. /^X\(\/\).*/{
  19844. s//\1/
  19845. q
  19846. }
  19847. s/.*/./; q'`/stamp-h$_am_stamp_count
  19848. ;;
  19849. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19850. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19851. ;;
  19852. esac
  19853. case $ac_file$ac_mode in
  19854. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19855. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19856. # are listed without --file. Let's play safe and only enable the eval
  19857. # if we detect the quoting.
  19858. case $CONFIG_FILES in
  19859. *\'*) eval set x "$CONFIG_FILES" ;;
  19860. *) set x $CONFIG_FILES ;;
  19861. esac
  19862. shift
  19863. for mf
  19864. do
  19865. # Strip MF so we end up with the name of the file.
  19866. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19867. # Check whether this is an Automake generated Makefile or not.
  19868. # We used to match only the files named 'Makefile.in', but
  19869. # some people rename them; so instead we look at the file content.
  19870. # Grep'ing the first line is not enough: some people post-process
  19871. # each Makefile.in and add a new line on top of each file to say so.
  19872. # Grep'ing the whole file is not good either: AIX grep has a line
  19873. # limit of 2048, but all sed's we know have understand at least 4000.
  19874. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19875. dirpart=`$as_dirname -- "$mf" ||
  19876. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19877. X"$mf" : 'X\(//\)[^/]' \| \
  19878. X"$mf" : 'X\(//\)$' \| \
  19879. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19880. $as_echo X"$mf" |
  19881. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19882. s//\1/
  19883. q
  19884. }
  19885. /^X\(\/\/\)[^/].*/{
  19886. s//\1/
  19887. q
  19888. }
  19889. /^X\(\/\/\)$/{
  19890. s//\1/
  19891. q
  19892. }
  19893. /^X\(\/\).*/{
  19894. s//\1/
  19895. q
  19896. }
  19897. s/.*/./; q'`
  19898. else
  19899. continue
  19900. fi
  19901. # Extract the definition of DEPDIR, am__include, and am__quote
  19902. # from the Makefile without running 'make'.
  19903. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19904. test -z "$DEPDIR" && continue
  19905. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19906. test -z "am__include" && continue
  19907. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19908. # Find all dependency output files, they are included files with
  19909. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19910. # simplest approach to changing $(DEPDIR) to its actual value in the
  19911. # expansion.
  19912. for file in `sed -n "
  19913. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19914. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19915. # Make sure the directory exists.
  19916. test -f "$dirpart/$file" && continue
  19917. fdir=`$as_dirname -- "$file" ||
  19918. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19919. X"$file" : 'X\(//\)[^/]' \| \
  19920. X"$file" : 'X\(//\)$' \| \
  19921. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19922. $as_echo X"$file" |
  19923. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19924. s//\1/
  19925. q
  19926. }
  19927. /^X\(\/\/\)[^/].*/{
  19928. s//\1/
  19929. q
  19930. }
  19931. /^X\(\/\/\)$/{
  19932. s//\1/
  19933. q
  19934. }
  19935. /^X\(\/\).*/{
  19936. s//\1/
  19937. q
  19938. }
  19939. s/.*/./; q'`
  19940. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19941. # echo "creating $dirpart/$file"
  19942. echo '# dummy' > "$dirpart/$file"
  19943. done
  19944. done
  19945. }
  19946. ;;
  19947. "libtool":C)
  19948. # See if we are running on zsh, and set the options which allow our
  19949. # commands through without removal of \ escapes.
  19950. if test -n "${ZSH_VERSION+set}" ; then
  19951. setopt NO_GLOB_SUBST
  19952. fi
  19953. cfgfile="${ofile}T"
  19954. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19955. $RM "$cfgfile"
  19956. cat <<_LT_EOF >> "$cfgfile"
  19957. #! $SHELL
  19958. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19959. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19960. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19961. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19962. #
  19963. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19964. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  19965. # Foundation, Inc.
  19966. # Written by Gordon Matzigkeit, 1996
  19967. #
  19968. # This file is part of GNU Libtool.
  19969. #
  19970. # GNU Libtool is free software; you can redistribute it and/or
  19971. # modify it under the terms of the GNU General Public License as
  19972. # published by the Free Software Foundation; either version 2 of
  19973. # the License, or (at your option) any later version.
  19974. #
  19975. # As a special exception to the GNU General Public License,
  19976. # if you distribute this file as part of a program or library that
  19977. # is built using GNU Libtool, you may include this file under the
  19978. # same distribution terms that you use for the rest of that program.
  19979. #
  19980. # GNU Libtool is distributed in the hope that it will be useful,
  19981. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19982. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19983. # GNU General Public License for more details.
  19984. #
  19985. # You should have received a copy of the GNU General Public License
  19986. # along with GNU Libtool; see the file COPYING. If not, a copy
  19987. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19988. # obtained by writing to the Free Software Foundation, Inc.,
  19989. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19990. # The names of the tagged configurations supported by this script.
  19991. available_tags="CXX "
  19992. # ### BEGIN LIBTOOL CONFIG
  19993. # Whether or not to build static libraries.
  19994. build_old_libs=$enable_static
  19995. # Which release of libtool.m4 was used?
  19996. macro_version=$macro_version
  19997. macro_revision=$macro_revision
  19998. # Whether or not to build shared libraries.
  19999. build_libtool_libs=$enable_shared
  20000. # What type of objects to build.
  20001. pic_mode=$pic_mode
  20002. # Whether or not to optimize for fast installation.
  20003. fast_install=$enable_fast_install
  20004. # Shell to use when invoking shell scripts.
  20005. SHELL=$lt_SHELL
  20006. # An echo program that protects backslashes.
  20007. ECHO=$lt_ECHO
  20008. # The PATH separator for the build system.
  20009. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20010. # The host system.
  20011. host_alias=$host_alias
  20012. host=$host
  20013. host_os=$host_os
  20014. # The build system.
  20015. build_alias=$build_alias
  20016. build=$build
  20017. build_os=$build_os
  20018. # A sed program that does not truncate output.
  20019. SED=$lt_SED
  20020. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20021. Xsed="\$SED -e 1s/^X//"
  20022. # A grep program that handles long lines.
  20023. GREP=$lt_GREP
  20024. # An ERE matcher.
  20025. EGREP=$lt_EGREP
  20026. # A literal string matcher.
  20027. FGREP=$lt_FGREP
  20028. # A BSD- or MS-compatible name lister.
  20029. NM=$lt_NM
  20030. # Whether we need soft or hard links.
  20031. LN_S=$lt_LN_S
  20032. # What is the maximum length of a command?
  20033. max_cmd_len=$max_cmd_len
  20034. # Object file suffix (normally "o").
  20035. objext=$ac_objext
  20036. # Executable file suffix (normally "").
  20037. exeext=$exeext
  20038. # whether the shell understands "unset".
  20039. lt_unset=$lt_unset
  20040. # turn spaces into newlines.
  20041. SP2NL=$lt_lt_SP2NL
  20042. # turn newlines into spaces.
  20043. NL2SP=$lt_lt_NL2SP
  20044. # convert \$build file names to \$host format.
  20045. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20046. # convert \$build files to toolchain format.
  20047. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20048. # An object symbol dumper.
  20049. OBJDUMP=$lt_OBJDUMP
  20050. # Method to check whether dependent libraries are shared objects.
  20051. deplibs_check_method=$lt_deplibs_check_method
  20052. # Command to use when deplibs_check_method = "file_magic".
  20053. file_magic_cmd=$lt_file_magic_cmd
  20054. # How to find potential files when deplibs_check_method = "file_magic".
  20055. file_magic_glob=$lt_file_magic_glob
  20056. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20057. want_nocaseglob=$lt_want_nocaseglob
  20058. # DLL creation program.
  20059. DLLTOOL=$lt_DLLTOOL
  20060. # Command to associate shared and link libraries.
  20061. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20062. # The archiver.
  20063. AR=$lt_AR
  20064. # Flags to create an archive.
  20065. AR_FLAGS=$lt_AR_FLAGS
  20066. # How to feed a file listing to the archiver.
  20067. archiver_list_spec=$lt_archiver_list_spec
  20068. # A symbol stripping program.
  20069. STRIP=$lt_STRIP
  20070. # Commands used to install an old-style archive.
  20071. RANLIB=$lt_RANLIB
  20072. old_postinstall_cmds=$lt_old_postinstall_cmds
  20073. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20074. # Whether to use a lock for old archive extraction.
  20075. lock_old_archive_extraction=$lock_old_archive_extraction
  20076. # A C compiler.
  20077. LTCC=$lt_CC
  20078. # LTCC compiler flags.
  20079. LTCFLAGS=$lt_CFLAGS
  20080. # Take the output of nm and produce a listing of raw symbols and C names.
  20081. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20082. # Transform the output of nm in a proper C declaration.
  20083. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20084. # Transform the output of nm in a C name address pair.
  20085. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20086. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20087. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20088. # Specify filename containing input files for \$NM.
  20089. nm_file_list_spec=$lt_nm_file_list_spec
  20090. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20091. lt_sysroot=$lt_sysroot
  20092. # The name of the directory that contains temporary libtool files.
  20093. objdir=$objdir
  20094. # Used to examine libraries when file_magic_cmd begins with "file".
  20095. MAGIC_CMD=$MAGIC_CMD
  20096. # Must we lock files when doing compilation?
  20097. need_locks=$lt_need_locks
  20098. # Manifest tool.
  20099. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20100. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20101. DSYMUTIL=$lt_DSYMUTIL
  20102. # Tool to change global to local symbols on Mac OS X.
  20103. NMEDIT=$lt_NMEDIT
  20104. # Tool to manipulate fat objects and archives on Mac OS X.
  20105. LIPO=$lt_LIPO
  20106. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20107. OTOOL=$lt_OTOOL
  20108. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20109. OTOOL64=$lt_OTOOL64
  20110. # Old archive suffix (normally "a").
  20111. libext=$libext
  20112. # Shared library suffix (normally ".so").
  20113. shrext_cmds=$lt_shrext_cmds
  20114. # The commands to extract the exported symbol list from a shared archive.
  20115. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20116. # Variables whose values should be saved in libtool wrapper scripts and
  20117. # restored at link time.
  20118. variables_saved_for_relink=$lt_variables_saved_for_relink
  20119. # Do we need the "lib" prefix for modules?
  20120. need_lib_prefix=$need_lib_prefix
  20121. # Do we need a version for libraries?
  20122. need_version=$need_version
  20123. # Library versioning type.
  20124. version_type=$version_type
  20125. # Shared library runtime path variable.
  20126. runpath_var=$runpath_var
  20127. # Shared library path variable.
  20128. shlibpath_var=$shlibpath_var
  20129. # Is shlibpath searched before the hard-coded library search path?
  20130. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20131. # Format of library name prefix.
  20132. libname_spec=$lt_libname_spec
  20133. # List of archive names. First name is the real one, the rest are links.
  20134. # The last name is the one that the linker finds with -lNAME
  20135. library_names_spec=$lt_library_names_spec
  20136. # The coded name of the library, if different from the real name.
  20137. soname_spec=$lt_soname_spec
  20138. # Permission mode override for installation of shared libraries.
  20139. install_override_mode=$lt_install_override_mode
  20140. # Command to use after installation of a shared archive.
  20141. postinstall_cmds=$lt_postinstall_cmds
  20142. # Command to use after uninstallation of a shared archive.
  20143. postuninstall_cmds=$lt_postuninstall_cmds
  20144. # Commands used to finish a libtool library installation in a directory.
  20145. finish_cmds=$lt_finish_cmds
  20146. # As "finish_cmds", except a single script fragment to be evaled but
  20147. # not shown.
  20148. finish_eval=$lt_finish_eval
  20149. # Whether we should hardcode library paths into libraries.
  20150. hardcode_into_libs=$hardcode_into_libs
  20151. # Compile-time system search path for libraries.
  20152. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20153. # Run-time system search path for libraries.
  20154. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20155. # Whether dlopen is supported.
  20156. dlopen_support=$enable_dlopen
  20157. # Whether dlopen of programs is supported.
  20158. dlopen_self=$enable_dlopen_self
  20159. # Whether dlopen of statically linked programs is supported.
  20160. dlopen_self_static=$enable_dlopen_self_static
  20161. # Commands to strip libraries.
  20162. old_striplib=$lt_old_striplib
  20163. striplib=$lt_striplib
  20164. # The linker used to build libraries.
  20165. LD=$lt_LD
  20166. # How to create reloadable object files.
  20167. reload_flag=$lt_reload_flag
  20168. reload_cmds=$lt_reload_cmds
  20169. # Commands used to build an old-style archive.
  20170. old_archive_cmds=$lt_old_archive_cmds
  20171. # A language specific compiler.
  20172. CC=$lt_compiler
  20173. # Is the compiler the GNU compiler?
  20174. with_gcc=$GCC
  20175. # Compiler flag to turn off builtin functions.
  20176. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20177. # Additional compiler flags for building library objects.
  20178. pic_flag=$lt_lt_prog_compiler_pic
  20179. # How to pass a linker flag through the compiler.
  20180. wl=$lt_lt_prog_compiler_wl
  20181. # Compiler flag to prevent dynamic linking.
  20182. link_static_flag=$lt_lt_prog_compiler_static
  20183. # Does compiler simultaneously support -c and -o options?
  20184. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20185. # Whether or not to add -lc for building shared libraries.
  20186. build_libtool_need_lc=$archive_cmds_need_lc
  20187. # Whether or not to disallow shared libs when runtime libs are static.
  20188. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20189. # Compiler flag to allow reflexive dlopens.
  20190. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20191. # Compiler flag to generate shared objects directly from archives.
  20192. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20193. # Whether the compiler copes with passing no objects directly.
  20194. compiler_needs_object=$lt_compiler_needs_object
  20195. # Create an old-style archive from a shared archive.
  20196. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20197. # Create a temporary old-style archive to link instead of a shared archive.
  20198. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20199. # Commands used to build a shared archive.
  20200. archive_cmds=$lt_archive_cmds
  20201. archive_expsym_cmds=$lt_archive_expsym_cmds
  20202. # Commands used to build a loadable module if different from building
  20203. # a shared archive.
  20204. module_cmds=$lt_module_cmds
  20205. module_expsym_cmds=$lt_module_expsym_cmds
  20206. # Whether we are building with GNU ld or not.
  20207. with_gnu_ld=$lt_with_gnu_ld
  20208. # Flag that allows shared libraries with undefined symbols to be built.
  20209. allow_undefined_flag=$lt_allow_undefined_flag
  20210. # Flag that enforces no undefined symbols.
  20211. no_undefined_flag=$lt_no_undefined_flag
  20212. # Flag to hardcode \$libdir into a binary during linking.
  20213. # This must work even if \$libdir does not exist
  20214. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20215. # Whether we need a single "-rpath" flag with a separated argument.
  20216. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20217. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20218. # DIR into the resulting binary.
  20219. hardcode_direct=$hardcode_direct
  20220. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20221. # DIR into the resulting binary and the resulting library dependency is
  20222. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20223. # library is relocated.
  20224. hardcode_direct_absolute=$hardcode_direct_absolute
  20225. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20226. # into the resulting binary.
  20227. hardcode_minus_L=$hardcode_minus_L
  20228. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20229. # into the resulting binary.
  20230. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20231. # Set to "yes" if building a shared library automatically hardcodes DIR
  20232. # into the library and all subsequent libraries and executables linked
  20233. # against it.
  20234. hardcode_automatic=$hardcode_automatic
  20235. # Set to yes if linker adds runtime paths of dependent libraries
  20236. # to runtime path list.
  20237. inherit_rpath=$inherit_rpath
  20238. # Whether libtool must link a program against all its dependency libraries.
  20239. link_all_deplibs=$link_all_deplibs
  20240. # Set to "yes" if exported symbols are required.
  20241. always_export_symbols=$always_export_symbols
  20242. # The commands to list exported symbols.
  20243. export_symbols_cmds=$lt_export_symbols_cmds
  20244. # Symbols that should not be listed in the preloaded symbols.
  20245. exclude_expsyms=$lt_exclude_expsyms
  20246. # Symbols that must always be exported.
  20247. include_expsyms=$lt_include_expsyms
  20248. # Commands necessary for linking programs (against libraries) with templates.
  20249. prelink_cmds=$lt_prelink_cmds
  20250. # Commands necessary for finishing linking programs.
  20251. postlink_cmds=$lt_postlink_cmds
  20252. # Specify filename containing input files.
  20253. file_list_spec=$lt_file_list_spec
  20254. # How to hardcode a shared library path into an executable.
  20255. hardcode_action=$hardcode_action
  20256. # The directories searched by this compiler when creating a shared library.
  20257. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20258. # Dependencies to place before and after the objects being linked to
  20259. # create a shared library.
  20260. predep_objects=$lt_predep_objects
  20261. postdep_objects=$lt_postdep_objects
  20262. predeps=$lt_predeps
  20263. postdeps=$lt_postdeps
  20264. # The library search path used internally by the compiler when linking
  20265. # a shared library.
  20266. compiler_lib_search_path=$lt_compiler_lib_search_path
  20267. # ### END LIBTOOL CONFIG
  20268. _LT_EOF
  20269. case $host_os in
  20270. aix3*)
  20271. cat <<\_LT_EOF >> "$cfgfile"
  20272. # AIX sometimes has problems with the GCC collect2 program. For some
  20273. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20274. # vanish in a puff of smoke.
  20275. if test "X${COLLECT_NAMES+set}" != Xset; then
  20276. COLLECT_NAMES=
  20277. export COLLECT_NAMES
  20278. fi
  20279. _LT_EOF
  20280. ;;
  20281. esac
  20282. ltmain="$ac_aux_dir/ltmain.sh"
  20283. # We use sed instead of cat because bash on DJGPP gets confused if
  20284. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20285. # text mode, it properly converts lines to CR/LF. This bash problem
  20286. # is reportedly fixed, but why not run on old versions too?
  20287. sed '$q' "$ltmain" >> "$cfgfile" \
  20288. || (rm -f "$cfgfile"; exit 1)
  20289. if test x"$xsi_shell" = xyes; then
  20290. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20291. func_dirname ()\
  20292. {\
  20293. \ case ${1} in\
  20294. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20295. \ * ) func_dirname_result="${3}" ;;\
  20296. \ esac\
  20297. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20298. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20299. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20300. test 0 -eq $? || _lt_function_replace_fail=:
  20301. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20302. func_basename ()\
  20303. {\
  20304. \ func_basename_result="${1##*/}"\
  20305. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20306. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20307. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20308. test 0 -eq $? || _lt_function_replace_fail=:
  20309. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20310. func_dirname_and_basename ()\
  20311. {\
  20312. \ case ${1} in\
  20313. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20314. \ * ) func_dirname_result="${3}" ;;\
  20315. \ esac\
  20316. \ func_basename_result="${1##*/}"\
  20317. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20318. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20319. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20320. test 0 -eq $? || _lt_function_replace_fail=:
  20321. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20322. func_stripname ()\
  20323. {\
  20324. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20325. \ # positional parameters, so assign one to ordinary parameter first.\
  20326. \ func_stripname_result=${3}\
  20327. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20328. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20329. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20330. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20331. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20332. test 0 -eq $? || _lt_function_replace_fail=:
  20333. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20334. func_split_long_opt ()\
  20335. {\
  20336. \ func_split_long_opt_name=${1%%=*}\
  20337. \ func_split_long_opt_arg=${1#*=}\
  20338. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20339. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20340. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20341. test 0 -eq $? || _lt_function_replace_fail=:
  20342. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20343. func_split_short_opt ()\
  20344. {\
  20345. \ func_split_short_opt_arg=${1#??}\
  20346. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20347. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20348. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20349. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20350. test 0 -eq $? || _lt_function_replace_fail=:
  20351. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20352. func_lo2o ()\
  20353. {\
  20354. \ case ${1} in\
  20355. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20356. \ *) func_lo2o_result=${1} ;;\
  20357. \ esac\
  20358. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20359. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20360. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20361. test 0 -eq $? || _lt_function_replace_fail=:
  20362. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20363. func_xform ()\
  20364. {\
  20365. func_xform_result=${1%.*}.lo\
  20366. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20367. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20368. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20369. test 0 -eq $? || _lt_function_replace_fail=:
  20370. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20371. func_arith ()\
  20372. {\
  20373. func_arith_result=$(( $* ))\
  20374. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20375. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20376. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20377. test 0 -eq $? || _lt_function_replace_fail=:
  20378. sed -e '/^func_len ()$/,/^} # func_len /c\
  20379. func_len ()\
  20380. {\
  20381. func_len_result=${#1}\
  20382. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20383. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20384. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20385. test 0 -eq $? || _lt_function_replace_fail=:
  20386. fi
  20387. if test x"$lt_shell_append" = xyes; then
  20388. sed -e '/^func_append ()$/,/^} # func_append /c\
  20389. func_append ()\
  20390. {\
  20391. eval "${1}+=\\${2}"\
  20392. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20393. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20394. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20395. test 0 -eq $? || _lt_function_replace_fail=:
  20396. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20397. func_append_quoted ()\
  20398. {\
  20399. \ func_quote_for_eval "${2}"\
  20400. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20401. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20402. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20403. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20404. test 0 -eq $? || _lt_function_replace_fail=:
  20405. # Save a `func_append' function call where possible by direct use of '+='
  20406. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20407. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20408. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20409. test 0 -eq $? || _lt_function_replace_fail=:
  20410. else
  20411. # Save a `func_append' function call even when '+=' is not available
  20412. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20413. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20414. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20415. test 0 -eq $? || _lt_function_replace_fail=:
  20416. fi
  20417. if test x"$_lt_function_replace_fail" = x":"; then
  20418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20419. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20420. fi
  20421. mv -f "$cfgfile" "$ofile" ||
  20422. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20423. chmod +x "$ofile"
  20424. cat <<_LT_EOF >> "$ofile"
  20425. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20426. # The linker used to build libraries.
  20427. LD=$lt_LD_CXX
  20428. # How to create reloadable object files.
  20429. reload_flag=$lt_reload_flag_CXX
  20430. reload_cmds=$lt_reload_cmds_CXX
  20431. # Commands used to build an old-style archive.
  20432. old_archive_cmds=$lt_old_archive_cmds_CXX
  20433. # A language specific compiler.
  20434. CC=$lt_compiler_CXX
  20435. # Is the compiler the GNU compiler?
  20436. with_gcc=$GCC_CXX
  20437. # Compiler flag to turn off builtin functions.
  20438. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20439. # Additional compiler flags for building library objects.
  20440. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20441. # How to pass a linker flag through the compiler.
  20442. wl=$lt_lt_prog_compiler_wl_CXX
  20443. # Compiler flag to prevent dynamic linking.
  20444. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20445. # Does compiler simultaneously support -c and -o options?
  20446. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20447. # Whether or not to add -lc for building shared libraries.
  20448. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20449. # Whether or not to disallow shared libs when runtime libs are static.
  20450. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20451. # Compiler flag to allow reflexive dlopens.
  20452. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20453. # Compiler flag to generate shared objects directly from archives.
  20454. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20455. # Whether the compiler copes with passing no objects directly.
  20456. compiler_needs_object=$lt_compiler_needs_object_CXX
  20457. # Create an old-style archive from a shared archive.
  20458. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20459. # Create a temporary old-style archive to link instead of a shared archive.
  20460. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20461. # Commands used to build a shared archive.
  20462. archive_cmds=$lt_archive_cmds_CXX
  20463. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20464. # Commands used to build a loadable module if different from building
  20465. # a shared archive.
  20466. module_cmds=$lt_module_cmds_CXX
  20467. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20468. # Whether we are building with GNU ld or not.
  20469. with_gnu_ld=$lt_with_gnu_ld_CXX
  20470. # Flag that allows shared libraries with undefined symbols to be built.
  20471. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20472. # Flag that enforces no undefined symbols.
  20473. no_undefined_flag=$lt_no_undefined_flag_CXX
  20474. # Flag to hardcode \$libdir into a binary during linking.
  20475. # This must work even if \$libdir does not exist
  20476. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20477. # Whether we need a single "-rpath" flag with a separated argument.
  20478. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20479. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20480. # DIR into the resulting binary.
  20481. hardcode_direct=$hardcode_direct_CXX
  20482. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20483. # DIR into the resulting binary and the resulting library dependency is
  20484. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20485. # library is relocated.
  20486. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20487. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20488. # into the resulting binary.
  20489. hardcode_minus_L=$hardcode_minus_L_CXX
  20490. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20491. # into the resulting binary.
  20492. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20493. # Set to "yes" if building a shared library automatically hardcodes DIR
  20494. # into the library and all subsequent libraries and executables linked
  20495. # against it.
  20496. hardcode_automatic=$hardcode_automatic_CXX
  20497. # Set to yes if linker adds runtime paths of dependent libraries
  20498. # to runtime path list.
  20499. inherit_rpath=$inherit_rpath_CXX
  20500. # Whether libtool must link a program against all its dependency libraries.
  20501. link_all_deplibs=$link_all_deplibs_CXX
  20502. # Set to "yes" if exported symbols are required.
  20503. always_export_symbols=$always_export_symbols_CXX
  20504. # The commands to list exported symbols.
  20505. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20506. # Symbols that should not be listed in the preloaded symbols.
  20507. exclude_expsyms=$lt_exclude_expsyms_CXX
  20508. # Symbols that must always be exported.
  20509. include_expsyms=$lt_include_expsyms_CXX
  20510. # Commands necessary for linking programs (against libraries) with templates.
  20511. prelink_cmds=$lt_prelink_cmds_CXX
  20512. # Commands necessary for finishing linking programs.
  20513. postlink_cmds=$lt_postlink_cmds_CXX
  20514. # Specify filename containing input files.
  20515. file_list_spec=$lt_file_list_spec_CXX
  20516. # How to hardcode a shared library path into an executable.
  20517. hardcode_action=$hardcode_action_CXX
  20518. # The directories searched by this compiler when creating a shared library.
  20519. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20520. # Dependencies to place before and after the objects being linked to
  20521. # create a shared library.
  20522. predep_objects=$lt_predep_objects_CXX
  20523. postdep_objects=$lt_postdep_objects_CXX
  20524. predeps=$lt_predeps_CXX
  20525. postdeps=$lt_postdeps_CXX
  20526. # The library search path used internally by the compiler when linking
  20527. # a shared library.
  20528. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20529. # ### END LIBTOOL TAG CONFIG: CXX
  20530. _LT_EOF
  20531. ;;
  20532. esac
  20533. done # for ac_tag
  20534. as_fn_exit 0
  20535. _ACEOF
  20536. ac_clean_files=$ac_clean_files_save
  20537. test $ac_write_fail = 0 ||
  20538. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20539. # configure is writing to config.log, and then calls config.status.
  20540. # config.status does its own redirection, appending to config.log.
  20541. # Unfortunately, on DOS this fails, as config.log is still kept open
  20542. # by configure, so config.status won't be able to write to it; its
  20543. # output is simply discarded. So we exec the FD to /dev/null,
  20544. # effectively closing config.log, so it can be properly (re)opened and
  20545. # appended to by config.status. When coming back to configure, we
  20546. # need to make the FD available again.
  20547. if test "$no_create" != yes; then
  20548. ac_cs_success=:
  20549. ac_config_status_args=
  20550. test "$silent" = yes &&
  20551. ac_config_status_args="$ac_config_status_args --quiet"
  20552. exec 5>/dev/null
  20553. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20554. exec 5>>config.log
  20555. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20556. # would make configure fail if this is the last instruction.
  20557. $ac_cs_success || as_fn_exit 1
  20558. fi
  20559. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20561. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20562. fi