configure 718 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: http://bugzilla.redhat.com/ about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='dirsrv'
  542. PACKAGE_TARNAME='dirsrv'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='dirsrv 1.0'
  545. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_default_prefix=/opt/$PACKAGE_NAME
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. vendor
  588. capbrand
  589. brand
  590. localrundir
  591. nunc_stans_libdir
  592. nunc_stans_lib
  593. nunc_stans_inc
  594. pcre_libdir
  595. pcre_lib
  596. pcre_inc
  597. netsnmp_link
  598. netsnmp_libdir
  599. netsnmp_lib
  600. netsnmp_inc
  601. icu_bin
  602. icu_inc
  603. icu_lib
  604. svrcore_lib
  605. svrcore_inc
  606. sasl_path
  607. sasl_libdir
  608. sasl_lib
  609. sasl_inc
  610. db_libver
  611. db_bindir
  612. db_libdir
  613. db_lib
  614. db_incdir
  615. db_inc
  616. ol_libver
  617. plainldif_opts
  618. ldaptool_opts
  619. ldaptool_bindir
  620. openldap_bindir
  621. openldap_libdir
  622. openldap_lib
  623. openldap_inc
  624. ldapsdk_bindir
  625. ldapsdk_libdir
  626. ldapsdk_lib
  627. ldapsdk_inc
  628. nss_libdir
  629. nss_lib
  630. nss_inc
  631. nspr_libdir
  632. nspr_lib
  633. nspr_inc
  634. SPARC_FALSE
  635. SPARC_TRUE
  636. OPENLDAP_FALSE
  637. OPENLDAP_TRUE
  638. SELINUX_FALSE
  639. SELINUX_TRUE
  640. PACKAGE_BASE_VERSION
  641. with_selinux
  642. kerberos_libdir
  643. kerberos_lib
  644. kerberos_inc
  645. KRB5_CONFIG_BIN
  646. NETSNMP_CONFIG
  647. ICU_CONFIG
  648. ldap_lib_ldif
  649. SYSTEMD_FALSE
  650. SYSTEMD_TRUE
  651. SOLARIS_FALSE
  652. SOLARIS_TRUE
  653. HPUX_FALSE
  654. HPUX_TRUE
  655. initconfigdir
  656. sttyexec
  657. perlexec
  658. initdir
  659. LIBCRUN
  660. LIBCSTD
  661. LIBDL
  662. LIBNSL
  663. LIBSOCKET
  664. LIBCRYPT
  665. THREADLIB
  666. WINNT_FALSE
  667. WINNT_TRUE
  668. instconfigdir
  669. defaultgroup
  670. defaultuser
  671. updatedir
  672. mibdir
  673. infdir
  674. pythondir
  675. perldir
  676. scripttemplatedir
  677. serverplugindir
  678. serverincdir
  679. serverdir
  680. schemadir
  681. propertydir
  682. sampledatadir
  683. configdir
  684. with_systemdgroupname
  685. with_systemdsystemconfdir
  686. with_systemdsystemunitdir
  687. PKG_CONFIG_LIBDIR
  688. PKG_CONFIG_PATH
  689. PKG_CONFIG
  690. with_tmpfiles_d
  691. with_fhs_opt
  692. enable_nunc_stans_FALSE
  693. enable_nunc_stans_TRUE
  694. enable_posix_winsync_FALSE
  695. enable_posix_winsync_TRUE
  696. enable_acctpolicy_FALSE
  697. enable_acctpolicy_TRUE
  698. enable_presence_FALSE
  699. enable_presence_TRUE
  700. enable_bitwise_FALSE
  701. enable_bitwise_TRUE
  702. enable_auto_dn_suffix_FALSE
  703. enable_auto_dn_suffix_TRUE
  704. enable_autobind_FALSE
  705. enable_autobind_TRUE
  706. enable_ldapi_FALSE
  707. enable_ldapi_TRUE
  708. enable_dna_FALSE
  709. enable_dna_TRUE
  710. enable_pam_passthru_FALSE
  711. enable_pam_passthru_TRUE
  712. BUNDLE_FALSE
  713. BUNDLE_TRUE
  714. debug_defs
  715. LIBOBJS
  716. CXXCPP
  717. CPP
  718. OTOOL64
  719. OTOOL
  720. LIPO
  721. NMEDIT
  722. DSYMUTIL
  723. MANIFEST_TOOL
  724. RANLIB
  725. ac_ct_AR
  726. AR
  727. DLLTOOL
  728. OBJDUMP
  729. LN_S
  730. NM
  731. ac_ct_DUMPBIN
  732. DUMPBIN
  733. LD
  734. FGREP
  735. EGREP
  736. GREP
  737. SED
  738. LIBTOOL
  739. am__fastdepCCAS_FALSE
  740. am__fastdepCCAS_TRUE
  741. CCASDEPMODE
  742. CCASFLAGS
  743. CCAS
  744. am__fastdepCC_FALSE
  745. am__fastdepCC_TRUE
  746. CCDEPMODE
  747. ac_ct_CC
  748. CFLAGS
  749. CC
  750. am__fastdepCXX_FALSE
  751. am__fastdepCXX_TRUE
  752. CXXDEPMODE
  753. am__nodep
  754. AMDEPBACKSLASH
  755. AMDEP_FALSE
  756. AMDEP_TRUE
  757. am__quote
  758. am__include
  759. DEPDIR
  760. OBJEXT
  761. EXEEXT
  762. ac_ct_CXX
  763. CPPFLAGS
  764. LDFLAGS
  765. CXXFLAGS
  766. CXX
  767. host_os
  768. host_vendor
  769. host_cpu
  770. host
  771. build_os
  772. build_vendor
  773. build_cpu
  774. build
  775. MAINT
  776. MAINTAINER_MODE_FALSE
  777. MAINTAINER_MODE_TRUE
  778. CONSOLE_VERSION
  779. AM_BACKSLASH
  780. AM_DEFAULT_VERBOSITY
  781. AM_DEFAULT_V
  782. AM_V
  783. am__untar
  784. am__tar
  785. AMTAR
  786. am__leading_dot
  787. SET_MAKE
  788. AWK
  789. mkdir_p
  790. MKDIR_P
  791. INSTALL_STRIP_PROGRAM
  792. STRIP
  793. install_sh
  794. MAKEINFO
  795. AUTOHEADER
  796. AUTOMAKE
  797. AUTOCONF
  798. ACLOCAL
  799. VERSION
  800. PACKAGE
  801. CYGPATH_W
  802. am__isrc
  803. INSTALL_DATA
  804. INSTALL_SCRIPT
  805. INSTALL_PROGRAM
  806. target_alias
  807. host_alias
  808. build_alias
  809. LIBS
  810. ECHO_T
  811. ECHO_N
  812. ECHO_C
  813. DEFS
  814. mandir
  815. localedir
  816. libdir
  817. psdir
  818. pdfdir
  819. dvidir
  820. htmldir
  821. infodir
  822. docdir
  823. oldincludedir
  824. includedir
  825. localstatedir
  826. sharedstatedir
  827. sysconfdir
  828. datadir
  829. datarootdir
  830. libexecdir
  831. sbindir
  832. bindir
  833. program_transform_name
  834. prefix
  835. exec_prefix
  836. PACKAGE_URL
  837. PACKAGE_BUGREPORT
  838. PACKAGE_STRING
  839. PACKAGE_VERSION
  840. PACKAGE_TARNAME
  841. PACKAGE_NAME
  842. PATH_SEPARATOR
  843. SHELL'
  844. ac_subst_files=''
  845. ac_user_opts='
  846. enable_option_checking
  847. enable_silent_rules
  848. enable_maintainer_mode
  849. enable_dependency_tracking
  850. enable_static
  851. enable_shared
  852. with_pic
  853. enable_fast_install
  854. with_gnu_ld
  855. with_sysroot
  856. enable_libtool_lock
  857. enable_debug
  858. enable_bundle
  859. enable_pam_passthru
  860. enable_dna
  861. enable_ldapi
  862. enable_autobind
  863. enable_bitwise
  864. enable_presence
  865. enable_acctpolicy
  866. enable_posix_winsync
  867. enable_nunc_stans
  868. with_fhs
  869. with_fhs_opt
  870. with_tmpfiles_d
  871. with_perldir
  872. with_pythondir
  873. with_systemdsystemunitdir
  874. with_systemdsystemconfdir
  875. with_systemdgroupname
  876. with_instconfigdir
  877. with_initddir
  878. with_nspr
  879. with_nspr_inc
  880. with_nspr_lib
  881. with_nss
  882. with_nss_inc
  883. with_nss_lib
  884. with_openldap
  885. with_openldap_inc
  886. with_openldap_lib
  887. with_openldap_bin
  888. with_ldapsdk
  889. with_ldapsdk_inc
  890. with_ldapsdk_lib
  891. with_ldapsdk_bin
  892. with_db
  893. with_db_inc
  894. with_db_lib
  895. with_sasl
  896. with_sasl_inc
  897. with_sasl_lib
  898. with_svrcore
  899. with_svrcore_inc
  900. with_svrcore_lib
  901. with_icu
  902. with_icu_inc
  903. with_icu_lib
  904. with_icu_bin
  905. with_netsnmp
  906. with_netsnmp_inc
  907. with_netsnmp_lib
  908. with_kerberos
  909. with_kerberos_inc
  910. with_kerberos_lib
  911. with_pcre
  912. with_selinux
  913. with_nunc_stans
  914. with_nunc_stans_inc
  915. with_nunc_stans_lib
  916. '
  917. ac_precious_vars='build_alias
  918. host_alias
  919. target_alias
  920. CXX
  921. CXXFLAGS
  922. LDFLAGS
  923. LIBS
  924. CPPFLAGS
  925. CCC
  926. CC
  927. CFLAGS
  928. CCAS
  929. CCASFLAGS
  930. CPP
  931. CXXCPP
  932. PKG_CONFIG
  933. PKG_CONFIG_PATH
  934. PKG_CONFIG_LIBDIR'
  935. # Initialize some variables set by options.
  936. ac_init_help=
  937. ac_init_version=false
  938. ac_unrecognized_opts=
  939. ac_unrecognized_sep=
  940. # The variables have the same names as the options, with
  941. # dashes changed to underlines.
  942. cache_file=/dev/null
  943. exec_prefix=NONE
  944. no_create=
  945. no_recursion=
  946. prefix=NONE
  947. program_prefix=NONE
  948. program_suffix=NONE
  949. program_transform_name=s,x,x,
  950. silent=
  951. site=
  952. srcdir=
  953. verbose=
  954. x_includes=NONE
  955. x_libraries=NONE
  956. # Installation directory options.
  957. # These are left unexpanded so users can "make install exec_prefix=/foo"
  958. # and all the variables that are supposed to be based on exec_prefix
  959. # by default will actually change.
  960. # Use braces instead of parens because sh, perl, etc. also accept them.
  961. # (The list follows the same order as the GNU Coding Standards.)
  962. bindir='${exec_prefix}/bin'
  963. sbindir='${exec_prefix}/sbin'
  964. libexecdir='${exec_prefix}/libexec'
  965. datarootdir='${prefix}/share'
  966. datadir='${datarootdir}'
  967. sysconfdir='${prefix}/etc'
  968. sharedstatedir='${prefix}/com'
  969. localstatedir='${prefix}/var'
  970. includedir='${prefix}/include'
  971. oldincludedir='/usr/include'
  972. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  973. infodir='${datarootdir}/info'
  974. htmldir='${docdir}'
  975. dvidir='${docdir}'
  976. pdfdir='${docdir}'
  977. psdir='${docdir}'
  978. libdir='${exec_prefix}/lib'
  979. localedir='${datarootdir}/locale'
  980. mandir='${datarootdir}/man'
  981. ac_prev=
  982. ac_dashdash=
  983. for ac_option
  984. do
  985. # If the previous option needs an argument, assign it.
  986. if test -n "$ac_prev"; then
  987. eval $ac_prev=\$ac_option
  988. ac_prev=
  989. continue
  990. fi
  991. case $ac_option in
  992. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  993. *=) ac_optarg= ;;
  994. *) ac_optarg=yes ;;
  995. esac
  996. # Accept the important Cygnus configure options, so we can diagnose typos.
  997. case $ac_dashdash$ac_option in
  998. --)
  999. ac_dashdash=yes ;;
  1000. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1001. ac_prev=bindir ;;
  1002. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1003. bindir=$ac_optarg ;;
  1004. -build | --build | --buil | --bui | --bu)
  1005. ac_prev=build_alias ;;
  1006. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1007. build_alias=$ac_optarg ;;
  1008. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1009. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1010. ac_prev=cache_file ;;
  1011. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1012. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1013. cache_file=$ac_optarg ;;
  1014. --config-cache | -C)
  1015. cache_file=config.cache ;;
  1016. -datadir | --datadir | --datadi | --datad)
  1017. ac_prev=datadir ;;
  1018. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1019. datadir=$ac_optarg ;;
  1020. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1021. | --dataroo | --dataro | --datar)
  1022. ac_prev=datarootdir ;;
  1023. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1024. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1025. datarootdir=$ac_optarg ;;
  1026. -disable-* | --disable-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid feature name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "enable_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval enable_$ac_useropt=no ;;
  1041. -docdir | --docdir | --docdi | --doc | --do)
  1042. ac_prev=docdir ;;
  1043. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1044. docdir=$ac_optarg ;;
  1045. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1046. ac_prev=dvidir ;;
  1047. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1048. dvidir=$ac_optarg ;;
  1049. -enable-* | --enable-*)
  1050. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1051. # Reject names that are not valid shell variable names.
  1052. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1053. as_fn_error $? "invalid feature name: $ac_useropt"
  1054. ac_useropt_orig=$ac_useropt
  1055. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1056. case $ac_user_opts in
  1057. *"
  1058. "enable_$ac_useropt"
  1059. "*) ;;
  1060. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1061. ac_unrecognized_sep=', ';;
  1062. esac
  1063. eval enable_$ac_useropt=\$ac_optarg ;;
  1064. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1065. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1066. | --exec | --exe | --ex)
  1067. ac_prev=exec_prefix ;;
  1068. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1069. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1070. | --exec=* | --exe=* | --ex=*)
  1071. exec_prefix=$ac_optarg ;;
  1072. -gas | --gas | --ga | --g)
  1073. # Obsolete; use --with-gas.
  1074. with_gas=yes ;;
  1075. -help | --help | --hel | --he | -h)
  1076. ac_init_help=long ;;
  1077. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1078. ac_init_help=recursive ;;
  1079. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1080. ac_init_help=short ;;
  1081. -host | --host | --hos | --ho)
  1082. ac_prev=host_alias ;;
  1083. -host=* | --host=* | --hos=* | --ho=*)
  1084. host_alias=$ac_optarg ;;
  1085. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1086. ac_prev=htmldir ;;
  1087. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1088. | --ht=*)
  1089. htmldir=$ac_optarg ;;
  1090. -includedir | --includedir | --includedi | --included | --include \
  1091. | --includ | --inclu | --incl | --inc)
  1092. ac_prev=includedir ;;
  1093. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1094. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1095. includedir=$ac_optarg ;;
  1096. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1097. ac_prev=infodir ;;
  1098. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1099. infodir=$ac_optarg ;;
  1100. -libdir | --libdir | --libdi | --libd)
  1101. ac_prev=libdir ;;
  1102. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1103. libdir=$ac_optarg ;;
  1104. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1105. | --libexe | --libex | --libe)
  1106. ac_prev=libexecdir ;;
  1107. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1108. | --libexe=* | --libex=* | --libe=*)
  1109. libexecdir=$ac_optarg ;;
  1110. -localedir | --localedir | --localedi | --localed | --locale)
  1111. ac_prev=localedir ;;
  1112. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1113. localedir=$ac_optarg ;;
  1114. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1115. | --localstate | --localstat | --localsta | --localst | --locals)
  1116. ac_prev=localstatedir ;;
  1117. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1118. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1119. localstatedir=$ac_optarg ;;
  1120. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1121. ac_prev=mandir ;;
  1122. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1123. mandir=$ac_optarg ;;
  1124. -nfp | --nfp | --nf)
  1125. # Obsolete; use --without-fp.
  1126. with_fp=no ;;
  1127. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1128. | --no-cr | --no-c | -n)
  1129. no_create=yes ;;
  1130. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1131. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1132. no_recursion=yes ;;
  1133. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1134. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1135. | --oldin | --oldi | --old | --ol | --o)
  1136. ac_prev=oldincludedir ;;
  1137. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1138. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1139. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1140. oldincludedir=$ac_optarg ;;
  1141. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1142. ac_prev=prefix ;;
  1143. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1144. prefix=$ac_optarg ;;
  1145. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1146. | --program-pre | --program-pr | --program-p)
  1147. ac_prev=program_prefix ;;
  1148. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1149. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1150. program_prefix=$ac_optarg ;;
  1151. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1152. | --program-suf | --program-su | --program-s)
  1153. ac_prev=program_suffix ;;
  1154. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1155. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1156. program_suffix=$ac_optarg ;;
  1157. -program-transform-name | --program-transform-name \
  1158. | --program-transform-nam | --program-transform-na \
  1159. | --program-transform-n | --program-transform- \
  1160. | --program-transform | --program-transfor \
  1161. | --program-transfo | --program-transf \
  1162. | --program-trans | --program-tran \
  1163. | --progr-tra | --program-tr | --program-t)
  1164. ac_prev=program_transform_name ;;
  1165. -program-transform-name=* | --program-transform-name=* \
  1166. | --program-transform-nam=* | --program-transform-na=* \
  1167. | --program-transform-n=* | --program-transform-=* \
  1168. | --program-transform=* | --program-transfor=* \
  1169. | --program-transfo=* | --program-transf=* \
  1170. | --program-trans=* | --program-tran=* \
  1171. | --progr-tra=* | --program-tr=* | --program-t=*)
  1172. program_transform_name=$ac_optarg ;;
  1173. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1174. ac_prev=pdfdir ;;
  1175. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1176. pdfdir=$ac_optarg ;;
  1177. -psdir | --psdir | --psdi | --psd | --ps)
  1178. ac_prev=psdir ;;
  1179. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1180. psdir=$ac_optarg ;;
  1181. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1182. | -silent | --silent | --silen | --sile | --sil)
  1183. silent=yes ;;
  1184. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1185. ac_prev=sbindir ;;
  1186. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1187. | --sbi=* | --sb=*)
  1188. sbindir=$ac_optarg ;;
  1189. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1190. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1191. | --sharedst | --shareds | --shared | --share | --shar \
  1192. | --sha | --sh)
  1193. ac_prev=sharedstatedir ;;
  1194. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1195. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1196. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1197. | --sha=* | --sh=*)
  1198. sharedstatedir=$ac_optarg ;;
  1199. -site | --site | --sit)
  1200. ac_prev=site ;;
  1201. -site=* | --site=* | --sit=*)
  1202. site=$ac_optarg ;;
  1203. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1204. ac_prev=srcdir ;;
  1205. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1206. srcdir=$ac_optarg ;;
  1207. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1208. | --syscon | --sysco | --sysc | --sys | --sy)
  1209. ac_prev=sysconfdir ;;
  1210. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1211. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1212. sysconfdir=$ac_optarg ;;
  1213. -target | --target | --targe | --targ | --tar | --ta | --t)
  1214. ac_prev=target_alias ;;
  1215. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1216. target_alias=$ac_optarg ;;
  1217. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1218. verbose=yes ;;
  1219. -version | --version | --versio | --versi | --vers | -V)
  1220. ac_init_version=: ;;
  1221. -with-* | --with-*)
  1222. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1223. # Reject names that are not valid shell variable names.
  1224. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1225. as_fn_error $? "invalid package name: $ac_useropt"
  1226. ac_useropt_orig=$ac_useropt
  1227. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1228. case $ac_user_opts in
  1229. *"
  1230. "with_$ac_useropt"
  1231. "*) ;;
  1232. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1233. ac_unrecognized_sep=', ';;
  1234. esac
  1235. eval with_$ac_useropt=\$ac_optarg ;;
  1236. -without-* | --without-*)
  1237. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1238. # Reject names that are not valid shell variable names.
  1239. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1240. as_fn_error $? "invalid package name: $ac_useropt"
  1241. ac_useropt_orig=$ac_useropt
  1242. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1243. case $ac_user_opts in
  1244. *"
  1245. "with_$ac_useropt"
  1246. "*) ;;
  1247. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1248. ac_unrecognized_sep=', ';;
  1249. esac
  1250. eval with_$ac_useropt=no ;;
  1251. --x)
  1252. # Obsolete; use --with-x.
  1253. with_x=yes ;;
  1254. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1255. | --x-incl | --x-inc | --x-in | --x-i)
  1256. ac_prev=x_includes ;;
  1257. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1258. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1259. x_includes=$ac_optarg ;;
  1260. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1261. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1262. ac_prev=x_libraries ;;
  1263. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1264. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1265. x_libraries=$ac_optarg ;;
  1266. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1267. Try \`$0 --help' for more information"
  1268. ;;
  1269. *=*)
  1270. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1271. # Reject names that are not valid shell variable names.
  1272. case $ac_envvar in #(
  1273. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1274. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1275. esac
  1276. eval $ac_envvar=\$ac_optarg
  1277. export $ac_envvar ;;
  1278. *)
  1279. # FIXME: should be removed in autoconf 3.0.
  1280. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1281. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1282. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1283. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1284. ;;
  1285. esac
  1286. done
  1287. if test -n "$ac_prev"; then
  1288. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1289. as_fn_error $? "missing argument to $ac_option"
  1290. fi
  1291. if test -n "$ac_unrecognized_opts"; then
  1292. case $enable_option_checking in
  1293. no) ;;
  1294. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1295. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1296. esac
  1297. fi
  1298. # Check all directory arguments for consistency.
  1299. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1300. datadir sysconfdir sharedstatedir localstatedir includedir \
  1301. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1302. libdir localedir mandir
  1303. do
  1304. eval ac_val=\$$ac_var
  1305. # Remove trailing slashes.
  1306. case $ac_val in
  1307. */ )
  1308. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1309. eval $ac_var=\$ac_val;;
  1310. esac
  1311. # Be sure to have absolute directory names.
  1312. case $ac_val in
  1313. [\\/$]* | ?:[\\/]* ) continue;;
  1314. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1315. esac
  1316. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1317. done
  1318. # There might be people who depend on the old broken behavior: `$host'
  1319. # used to hold the argument of --host etc.
  1320. # FIXME: To remove some day.
  1321. build=$build_alias
  1322. host=$host_alias
  1323. target=$target_alias
  1324. # FIXME: To remove some day.
  1325. if test "x$host_alias" != x; then
  1326. if test "x$build_alias" = x; then
  1327. cross_compiling=maybe
  1328. elif test "x$build_alias" != "x$host_alias"; then
  1329. cross_compiling=yes
  1330. fi
  1331. fi
  1332. ac_tool_prefix=
  1333. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1334. test "$silent" = yes && exec 6>/dev/null
  1335. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1336. ac_ls_di=`ls -di .` &&
  1337. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1338. as_fn_error $? "working directory cannot be determined"
  1339. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1340. as_fn_error $? "pwd does not report name of working directory"
  1341. # Find the source files, if location was not specified.
  1342. if test -z "$srcdir"; then
  1343. ac_srcdir_defaulted=yes
  1344. # Try the directory containing this script, then the parent directory.
  1345. ac_confdir=`$as_dirname -- "$as_myself" ||
  1346. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1347. X"$as_myself" : 'X\(//\)[^/]' \| \
  1348. X"$as_myself" : 'X\(//\)$' \| \
  1349. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1350. $as_echo X"$as_myself" |
  1351. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1352. s//\1/
  1353. q
  1354. }
  1355. /^X\(\/\/\)[^/].*/{
  1356. s//\1/
  1357. q
  1358. }
  1359. /^X\(\/\/\)$/{
  1360. s//\1/
  1361. q
  1362. }
  1363. /^X\(\/\).*/{
  1364. s//\1/
  1365. q
  1366. }
  1367. s/.*/./; q'`
  1368. srcdir=$ac_confdir
  1369. if test ! -r "$srcdir/$ac_unique_file"; then
  1370. srcdir=..
  1371. fi
  1372. else
  1373. ac_srcdir_defaulted=no
  1374. fi
  1375. if test ! -r "$srcdir/$ac_unique_file"; then
  1376. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1377. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1378. fi
  1379. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1380. ac_abs_confdir=`(
  1381. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1382. pwd)`
  1383. # When building in place, set srcdir=.
  1384. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1385. srcdir=.
  1386. fi
  1387. # Remove unnecessary trailing slashes from srcdir.
  1388. # Double slashes in file names in object file debugging info
  1389. # mess up M-x gdb in Emacs.
  1390. case $srcdir in
  1391. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1392. esac
  1393. for ac_var in $ac_precious_vars; do
  1394. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1395. eval ac_env_${ac_var}_value=\$${ac_var}
  1396. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1397. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1398. done
  1399. #
  1400. # Report the --help message.
  1401. #
  1402. if test "$ac_init_help" = "long"; then
  1403. # Omit some internal or obsolete options to make the list less imposing.
  1404. # This message is too long to be a string in the A/UX 3.1 sh.
  1405. cat <<_ACEOF
  1406. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1407. Usage: $0 [OPTION]... [VAR=VALUE]...
  1408. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1409. VAR=VALUE. See below for descriptions of some of the useful variables.
  1410. Defaults for the options are specified in brackets.
  1411. Configuration:
  1412. -h, --help display this help and exit
  1413. --help=short display options specific to this package
  1414. --help=recursive display the short help of all the included packages
  1415. -V, --version display version information and exit
  1416. -q, --quiet, --silent do not print \`checking ...' messages
  1417. --cache-file=FILE cache test results in FILE [disabled]
  1418. -C, --config-cache alias for \`--cache-file=config.cache'
  1419. -n, --no-create do not create output files
  1420. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1421. Installation directories:
  1422. --prefix=PREFIX install architecture-independent files in PREFIX
  1423. [$ac_default_prefix]
  1424. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1425. [PREFIX]
  1426. By default, \`make install' will install all the files in
  1427. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1428. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1429. for instance \`--prefix=\$HOME'.
  1430. For better control, use the options below.
  1431. Fine tuning of the installation directories:
  1432. --bindir=DIR user executables [EPREFIX/bin]
  1433. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1434. --libexecdir=DIR program executables [EPREFIX/libexec]
  1435. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1436. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1437. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1438. --libdir=DIR object code libraries [EPREFIX/lib]
  1439. --includedir=DIR C header files [PREFIX/include]
  1440. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1441. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1442. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1443. --infodir=DIR info documentation [DATAROOTDIR/info]
  1444. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1445. --mandir=DIR man documentation [DATAROOTDIR/man]
  1446. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1447. --htmldir=DIR html documentation [DOCDIR]
  1448. --dvidir=DIR dvi documentation [DOCDIR]
  1449. --pdfdir=DIR pdf documentation [DOCDIR]
  1450. --psdir=DIR ps documentation [DOCDIR]
  1451. _ACEOF
  1452. cat <<\_ACEOF
  1453. Program names:
  1454. --program-prefix=PREFIX prepend PREFIX to installed program names
  1455. --program-suffix=SUFFIX append SUFFIX to installed program names
  1456. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1457. System types:
  1458. --build=BUILD configure for building on BUILD [guessed]
  1459. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1460. _ACEOF
  1461. fi
  1462. if test -n "$ac_init_help"; then
  1463. case $ac_init_help in
  1464. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1465. esac
  1466. cat <<\_ACEOF
  1467. Optional Features:
  1468. --disable-option-checking ignore unrecognized --enable/--with options
  1469. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1470. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1471. --enable-silent-rules less verbose build output (undo: "make V=1")
  1472. --disable-silent-rules verbose build output (undo: "make V=0")
  1473. --enable-maintainer-mode
  1474. enable make rules and dependencies not useful (and
  1475. sometimes confusing) to the casual installer
  1476. --enable-dependency-tracking
  1477. do not reject slow dependency extractors
  1478. --disable-dependency-tracking
  1479. speeds up one-time build
  1480. --enable-static[=PKGS] build static libraries [default=no]
  1481. --enable-shared[=PKGS] build shared libraries [default=yes]
  1482. --enable-fast-install[=PKGS]
  1483. optimize for fast installation [default=yes]
  1484. --disable-libtool-lock avoid locking (might break parallel builds)
  1485. --enable-debug Enable debug features (default: no)
  1486. --enable-bundle Enable bundled dependencies (default: no)
  1487. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1488. yes)
  1489. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1490. plugin (default: yes)
  1491. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1492. (default: yes)
  1493. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1494. support (default: no)
  1495. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1496. domain socket (LDAPI) support (default: no)
  1497. --enable-bitwise enable the bitwise matching rule plugin (default:
  1498. yes)
  1499. --enable-presence enable the presence plugin (default: no)
  1500. --enable-acctpolicy enable the account policy plugin (default: yes)
  1501. --enable-posix-winsync enable support for POSIX user/group attributes in
  1502. winsync (default: yes)
  1503. --enable-nunc-stans enable support for nunc-stans event framework
  1504. (default: no)
  1505. Optional Packages:
  1506. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1507. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1508. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1509. both]
  1510. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1511. --with-sysroot=DIR Search for dependent libraries within DIR
  1512. (or the compiler's sysroot if not specified).
  1513. --with-fhs Use FHS layout
  1514. --with-fhs-opt Use FHS optional layout
  1515. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1516. (default: $with_tmpfiles_d)
  1517. --with-perldir=PATH Directory for perl)
  1518. --with-pythondir=PATH Directory for python)
  1519. --with-systemdsystemunitdir=PATH
  1520. Directory for systemd service files (default:
  1521. $with_systemdsystemunitdir)
  1522. --with-systemdsystemconfdir=PATH
  1523. Directory for systemd service files (default:
  1524. $with_systemdsystemconfdir)
  1525. --with-systemdgroupname=NAME
  1526. Name of group target for all instances (default:
  1527. $with_systemdgroupname)
  1528. --with-instconfigdir=/path
  1529. Base directory for instance specific writable
  1530. configuration directories (default
  1531. $sysconfdir/$PACKAGE_NAME)
  1532. --with-initddir=/path Absolute path (not relative like some of the other
  1533. options) that should contain the SysV init scripts
  1534. (default '$(sysconfdir)/rc.d')
  1535. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1536. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1537. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1538. --with-nss[=PATH] Network Security Services (NSS) directory
  1539. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1540. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1541. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1542. --with-openldap-inc=PATH
  1543. OpenLDAP SDK include directory
  1544. --with-openldap-lib=PATH
  1545. OpenLDAP SDK library directory
  1546. --with-openldap-bin=PATH
  1547. OpenLDAP SDK binary directory
  1548. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1549. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1550. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1551. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1552. --with-db[=PATH] Berkeley DB directory
  1553. --with-db-inc=PATH Berkeley DB include file directory
  1554. --with-db-lib=PATH Berkeley DB library directory
  1555. --with-sasl[=PATH] Use SASL from supplied path
  1556. --with-sasl-inc=PATH SASL include file directory
  1557. --with-sasl-lib=PATH SASL library directory
  1558. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1559. SVRCORE
  1560. --with-svrcore-inc=PATH SVRCORE include file directory
  1561. --with-svrcore-lib=PATH SVRCORE library directory
  1562. --with-icu[=PATH] ICU directory
  1563. --with-icu-inc=PATH ICU include directory
  1564. --with-icu-lib=PATH ICU library directory
  1565. --with-icu-bin=PATH ICU binary directory
  1566. --with-netsnmp[=PATH] Net-SNMP directory
  1567. --with-netsnmp-inc=PATH Net-SNMP include directory
  1568. --with-netsnmp-lib=PATH Net-SNMP library directory
  1569. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1570. the server to authenticate directly with a keytab -
  1571. otherwise, SASL/GSSAPI auth depends on underlying
  1572. SASL libraries and external kinit with a keytab - if
  1573. PATH is not specified, look for kerberos in the
  1574. system locations. This will attempt to use
  1575. krb5-config from the PATH to find the libs and
  1576. include dirs - you can specify KRB5_CONFIG_BIN to
  1577. specify a different filename or absolute path. If
  1578. krb5-config does not work, this will attempt to look
  1579. in various system directories
  1580. --with-kerberos-inc=PATH
  1581. Allows you to explicitly set the directory
  1582. containing the kerberos include files - implies use
  1583. of kerberos
  1584. --with-kerberos-lib=PATH
  1585. Allows you to explicitly set the directory
  1586. containing the kerberos libraries - implies use of
  1587. kerberos
  1588. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1589. --with-selinux Support SELinux policy
  1590. --with-nunc-stans[=PATH]
  1591. nunc-stans directory
  1592. --with-nunc-stans-inc=PATH
  1593. nunc-stans include file directory
  1594. --with-nunc-stans-lib=PATH
  1595. nunc-stans library directory
  1596. Some influential environment variables:
  1597. CXX C++ compiler command
  1598. CXXFLAGS C++ compiler flags
  1599. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1600. nonstandard directory <lib dir>
  1601. LIBS libraries to pass to the linker, e.g. -l<library>
  1602. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1603. you have headers in a nonstandard directory <include dir>
  1604. CC C compiler command
  1605. CFLAGS C compiler flags
  1606. CCAS assembler compiler command (defaults to CC)
  1607. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1608. CPP C preprocessor
  1609. CXXCPP C++ preprocessor
  1610. PKG_CONFIG path to pkg-config utility
  1611. PKG_CONFIG_PATH
  1612. directories to add to pkg-config's search path
  1613. PKG_CONFIG_LIBDIR
  1614. path overriding pkg-config's built-in search path
  1615. Use these variables to override the choices made by `configure' or to help
  1616. it to find libraries and programs with nonstandard names/locations.
  1617. Report bugs to <http://bugzilla.redhat.com/>.
  1618. _ACEOF
  1619. ac_status=$?
  1620. fi
  1621. if test "$ac_init_help" = "recursive"; then
  1622. # If there are subdirs, report their specific --help.
  1623. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1624. test -d "$ac_dir" ||
  1625. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1626. continue
  1627. ac_builddir=.
  1628. case "$ac_dir" in
  1629. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1630. *)
  1631. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1632. # A ".." for each directory in $ac_dir_suffix.
  1633. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1634. case $ac_top_builddir_sub in
  1635. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1636. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1637. esac ;;
  1638. esac
  1639. ac_abs_top_builddir=$ac_pwd
  1640. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1641. # for backward compatibility:
  1642. ac_top_builddir=$ac_top_build_prefix
  1643. case $srcdir in
  1644. .) # We are building in place.
  1645. ac_srcdir=.
  1646. ac_top_srcdir=$ac_top_builddir_sub
  1647. ac_abs_top_srcdir=$ac_pwd ;;
  1648. [\\/]* | ?:[\\/]* ) # Absolute name.
  1649. ac_srcdir=$srcdir$ac_dir_suffix;
  1650. ac_top_srcdir=$srcdir
  1651. ac_abs_top_srcdir=$srcdir ;;
  1652. *) # Relative name.
  1653. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1654. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1655. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1656. esac
  1657. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1658. cd "$ac_dir" || { ac_status=$?; continue; }
  1659. # Check for guested configure.
  1660. if test -f "$ac_srcdir/configure.gnu"; then
  1661. echo &&
  1662. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1663. elif test -f "$ac_srcdir/configure"; then
  1664. echo &&
  1665. $SHELL "$ac_srcdir/configure" --help=recursive
  1666. else
  1667. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1668. fi || ac_status=$?
  1669. cd "$ac_pwd" || { ac_status=$?; break; }
  1670. done
  1671. fi
  1672. test -n "$ac_init_help" && exit $ac_status
  1673. if $ac_init_version; then
  1674. cat <<\_ACEOF
  1675. dirsrv configure 1.0
  1676. generated by GNU Autoconf 2.69
  1677. Copyright (C) 2012 Free Software Foundation, Inc.
  1678. This configure script is free software; the Free Software Foundation
  1679. gives unlimited permission to copy, distribute and modify it.
  1680. _ACEOF
  1681. exit
  1682. fi
  1683. ## ------------------------ ##
  1684. ## Autoconf initialization. ##
  1685. ## ------------------------ ##
  1686. # ac_fn_cxx_try_compile LINENO
  1687. # ----------------------------
  1688. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1689. ac_fn_cxx_try_compile ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. rm -f conftest.$ac_objext
  1693. if { { ac_try="$ac_compile"
  1694. case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_compile") 2>conftest.err
  1701. ac_status=$?
  1702. if test -s conftest.err; then
  1703. grep -v '^ *+' conftest.err >conftest.er1
  1704. cat conftest.er1 >&5
  1705. mv -f conftest.er1 conftest.err
  1706. fi
  1707. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1708. test $ac_status = 0; } && {
  1709. test -z "$ac_cxx_werror_flag" ||
  1710. test ! -s conftest.err
  1711. } && test -s conftest.$ac_objext; then :
  1712. ac_retval=0
  1713. else
  1714. $as_echo "$as_me: failed program was:" >&5
  1715. sed 's/^/| /' conftest.$ac_ext >&5
  1716. ac_retval=1
  1717. fi
  1718. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719. as_fn_set_status $ac_retval
  1720. } # ac_fn_cxx_try_compile
  1721. # ac_fn_c_try_compile LINENO
  1722. # --------------------------
  1723. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1724. ac_fn_c_try_compile ()
  1725. {
  1726. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1727. rm -f conftest.$ac_objext
  1728. if { { ac_try="$ac_compile"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_compile") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } && {
  1744. test -z "$ac_c_werror_flag" ||
  1745. test ! -s conftest.err
  1746. } && test -s conftest.$ac_objext; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=1
  1752. fi
  1753. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754. as_fn_set_status $ac_retval
  1755. } # ac_fn_c_try_compile
  1756. # ac_fn_c_try_link LINENO
  1757. # -----------------------
  1758. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1759. ac_fn_c_try_link ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. rm -f conftest.$ac_objext conftest$ac_exeext
  1763. if { { ac_try="$ac_link"
  1764. case "(($ac_try" in
  1765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1766. *) ac_try_echo=$ac_try;;
  1767. esac
  1768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1769. $as_echo "$ac_try_echo"; } >&5
  1770. (eval "$ac_link") 2>conftest.err
  1771. ac_status=$?
  1772. if test -s conftest.err; then
  1773. grep -v '^ *+' conftest.err >conftest.er1
  1774. cat conftest.er1 >&5
  1775. mv -f conftest.er1 conftest.err
  1776. fi
  1777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1778. test $ac_status = 0; } && {
  1779. test -z "$ac_c_werror_flag" ||
  1780. test ! -s conftest.err
  1781. } && test -s conftest$ac_exeext && {
  1782. test "$cross_compiling" = yes ||
  1783. test -x conftest$ac_exeext
  1784. }; then :
  1785. ac_retval=0
  1786. else
  1787. $as_echo "$as_me: failed program was:" >&5
  1788. sed 's/^/| /' conftest.$ac_ext >&5
  1789. ac_retval=1
  1790. fi
  1791. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1792. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1793. # interfere with the next link command; also delete a directory that is
  1794. # left behind by Apple's compiler. We do this before executing the actions.
  1795. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_c_try_link
  1799. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1800. # -------------------------------------------------------
  1801. # Tests whether HEADER exists and can be compiled using the include files in
  1802. # INCLUDES, setting the cache variable VAR accordingly.
  1803. ac_fn_c_check_header_compile ()
  1804. {
  1805. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1807. $as_echo_n "checking for $2... " >&6; }
  1808. if eval \${$3+:} false; then :
  1809. $as_echo_n "(cached) " >&6
  1810. else
  1811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1812. /* end confdefs.h. */
  1813. $4
  1814. #include <$2>
  1815. _ACEOF
  1816. if ac_fn_c_try_compile "$LINENO"; then :
  1817. eval "$3=yes"
  1818. else
  1819. eval "$3=no"
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_header_compile
  1828. # ac_fn_c_try_cpp LINENO
  1829. # ----------------------
  1830. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1831. ac_fn_c_try_cpp ()
  1832. {
  1833. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1834. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1835. case "(($ac_try" in
  1836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1837. *) ac_try_echo=$ac_try;;
  1838. esac
  1839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1840. $as_echo "$ac_try_echo"; } >&5
  1841. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1842. ac_status=$?
  1843. if test -s conftest.err; then
  1844. grep -v '^ *+' conftest.err >conftest.er1
  1845. cat conftest.er1 >&5
  1846. mv -f conftest.er1 conftest.err
  1847. fi
  1848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1849. test $ac_status = 0; } > conftest.i && {
  1850. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1851. test ! -s conftest.err
  1852. }; then :
  1853. ac_retval=0
  1854. else
  1855. $as_echo "$as_me: failed program was:" >&5
  1856. sed 's/^/| /' conftest.$ac_ext >&5
  1857. ac_retval=1
  1858. fi
  1859. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1860. as_fn_set_status $ac_retval
  1861. } # ac_fn_c_try_cpp
  1862. # ac_fn_c_try_run LINENO
  1863. # ----------------------
  1864. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1865. # that executables *can* be run.
  1866. ac_fn_c_try_run ()
  1867. {
  1868. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1869. if { { ac_try="$ac_link"
  1870. case "(($ac_try" in
  1871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1872. *) ac_try_echo=$ac_try;;
  1873. esac
  1874. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1875. $as_echo "$ac_try_echo"; } >&5
  1876. (eval "$ac_link") 2>&5
  1877. ac_status=$?
  1878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1879. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1880. { { case "(($ac_try" in
  1881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1882. *) ac_try_echo=$ac_try;;
  1883. esac
  1884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1885. $as_echo "$ac_try_echo"; } >&5
  1886. (eval "$ac_try") 2>&5
  1887. ac_status=$?
  1888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1889. test $ac_status = 0; }; }; then :
  1890. ac_retval=0
  1891. else
  1892. $as_echo "$as_me: program exited with status $ac_status" >&5
  1893. $as_echo "$as_me: failed program was:" >&5
  1894. sed 's/^/| /' conftest.$ac_ext >&5
  1895. ac_retval=$ac_status
  1896. fi
  1897. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1898. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1899. as_fn_set_status $ac_retval
  1900. } # ac_fn_c_try_run
  1901. # ac_fn_c_check_func LINENO FUNC VAR
  1902. # ----------------------------------
  1903. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1904. ac_fn_c_check_func ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. $as_echo_n "checking for $2... " >&6; }
  1909. if eval \${$3+:} false; then :
  1910. $as_echo_n "(cached) " >&6
  1911. else
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1915. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1916. #define $2 innocuous_$2
  1917. /* System header to define __stub macros and hopefully few prototypes,
  1918. which can conflict with char $2 (); below.
  1919. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1920. <limits.h> exists even on freestanding compilers. */
  1921. #ifdef __STDC__
  1922. # include <limits.h>
  1923. #else
  1924. # include <assert.h>
  1925. #endif
  1926. #undef $2
  1927. /* Override any GCC internal prototype to avoid an error.
  1928. Use char because int might match the return type of a GCC
  1929. builtin and then its argument prototype would still apply. */
  1930. #ifdef __cplusplus
  1931. extern "C"
  1932. #endif
  1933. char $2 ();
  1934. /* The GNU C library defines this for functions which it implements
  1935. to always fail with ENOSYS. Some functions are actually named
  1936. something starting with __ and the normal name is an alias. */
  1937. #if defined __stub_$2 || defined __stub___$2
  1938. choke me
  1939. #endif
  1940. int
  1941. main ()
  1942. {
  1943. return $2 ();
  1944. ;
  1945. return 0;
  1946. }
  1947. _ACEOF
  1948. if ac_fn_c_try_link "$LINENO"; then :
  1949. eval "$3=yes"
  1950. else
  1951. eval "$3=no"
  1952. fi
  1953. rm -f core conftest.err conftest.$ac_objext \
  1954. conftest$ac_exeext conftest.$ac_ext
  1955. fi
  1956. eval ac_res=\$$3
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1958. $as_echo "$ac_res" >&6; }
  1959. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1960. } # ac_fn_c_check_func
  1961. # ac_fn_cxx_try_cpp LINENO
  1962. # ------------------------
  1963. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1964. ac_fn_cxx_try_cpp ()
  1965. {
  1966. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1967. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1968. case "(($ac_try" in
  1969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1970. *) ac_try_echo=$ac_try;;
  1971. esac
  1972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1973. $as_echo "$ac_try_echo"; } >&5
  1974. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1975. ac_status=$?
  1976. if test -s conftest.err; then
  1977. grep -v '^ *+' conftest.err >conftest.er1
  1978. cat conftest.er1 >&5
  1979. mv -f conftest.er1 conftest.err
  1980. fi
  1981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1982. test $ac_status = 0; } > conftest.i && {
  1983. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1984. test ! -s conftest.err
  1985. }; then :
  1986. ac_retval=0
  1987. else
  1988. $as_echo "$as_me: failed program was:" >&5
  1989. sed 's/^/| /' conftest.$ac_ext >&5
  1990. ac_retval=1
  1991. fi
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. as_fn_set_status $ac_retval
  1994. } # ac_fn_cxx_try_cpp
  1995. # ac_fn_cxx_try_link LINENO
  1996. # -------------------------
  1997. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1998. ac_fn_cxx_try_link ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. rm -f conftest.$ac_objext conftest$ac_exeext
  2002. if { { ac_try="$ac_link"
  2003. case "(($ac_try" in
  2004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2005. *) ac_try_echo=$ac_try;;
  2006. esac
  2007. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2008. $as_echo "$ac_try_echo"; } >&5
  2009. (eval "$ac_link") 2>conftest.err
  2010. ac_status=$?
  2011. if test -s conftest.err; then
  2012. grep -v '^ *+' conftest.err >conftest.er1
  2013. cat conftest.er1 >&5
  2014. mv -f conftest.er1 conftest.err
  2015. fi
  2016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2017. test $ac_status = 0; } && {
  2018. test -z "$ac_cxx_werror_flag" ||
  2019. test ! -s conftest.err
  2020. } && test -s conftest$ac_exeext && {
  2021. test "$cross_compiling" = yes ||
  2022. test -x conftest$ac_exeext
  2023. }; then :
  2024. ac_retval=0
  2025. else
  2026. $as_echo "$as_me: failed program was:" >&5
  2027. sed 's/^/| /' conftest.$ac_ext >&5
  2028. ac_retval=1
  2029. fi
  2030. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2031. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2032. # interfere with the next link command; also delete a directory that is
  2033. # left behind by Apple's compiler. We do this before executing the actions.
  2034. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2035. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2036. as_fn_set_status $ac_retval
  2037. } # ac_fn_cxx_try_link
  2038. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2039. # -------------------------------------------------------
  2040. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2041. # the include files in INCLUDES and setting the cache variable VAR
  2042. # accordingly.
  2043. ac_fn_c_check_header_mongrel ()
  2044. {
  2045. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2046. if eval \${$3+:} false; then :
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2048. $as_echo_n "checking for $2... " >&6; }
  2049. if eval \${$3+:} false; then :
  2050. $as_echo_n "(cached) " >&6
  2051. fi
  2052. eval ac_res=\$$3
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2054. $as_echo "$ac_res" >&6; }
  2055. else
  2056. # Is the header compilable?
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2058. $as_echo_n "checking $2 usability... " >&6; }
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $4
  2062. #include <$2>
  2063. _ACEOF
  2064. if ac_fn_c_try_compile "$LINENO"; then :
  2065. ac_header_compiler=yes
  2066. else
  2067. ac_header_compiler=no
  2068. fi
  2069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2071. $as_echo "$ac_header_compiler" >&6; }
  2072. # Is the header present?
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2074. $as_echo_n "checking $2 presence... " >&6; }
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. #include <$2>
  2078. _ACEOF
  2079. if ac_fn_c_try_cpp "$LINENO"; then :
  2080. ac_header_preproc=yes
  2081. else
  2082. ac_header_preproc=no
  2083. fi
  2084. rm -f conftest.err conftest.i conftest.$ac_ext
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2086. $as_echo "$ac_header_preproc" >&6; }
  2087. # So? What about this header?
  2088. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2089. yes:no: )
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2091. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2093. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2094. ;;
  2095. no:yes:* )
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2097. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2099. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2101. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2103. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2105. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2106. ( $as_echo "## ------------------------------------------ ##
  2107. ## Report this to http://bugzilla.redhat.com/ ##
  2108. ## ------------------------------------------ ##"
  2109. ) | sed "s/^/$as_me: WARNING: /" >&2
  2110. ;;
  2111. esac
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2113. $as_echo_n "checking for $2... " >&6; }
  2114. if eval \${$3+:} false; then :
  2115. $as_echo_n "(cached) " >&6
  2116. else
  2117. eval "$3=\$ac_header_compiler"
  2118. fi
  2119. eval ac_res=\$$3
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2121. $as_echo "$ac_res" >&6; }
  2122. fi
  2123. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2124. } # ac_fn_c_check_header_mongrel
  2125. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2126. # -------------------------------------------
  2127. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2128. # variable VAR accordingly.
  2129. ac_fn_c_check_type ()
  2130. {
  2131. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2133. $as_echo_n "checking for $2... " >&6; }
  2134. if eval \${$3+:} false; then :
  2135. $as_echo_n "(cached) " >&6
  2136. else
  2137. eval "$3=no"
  2138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2139. /* end confdefs.h. */
  2140. $4
  2141. int
  2142. main ()
  2143. {
  2144. if (sizeof ($2))
  2145. return 0;
  2146. ;
  2147. return 0;
  2148. }
  2149. _ACEOF
  2150. if ac_fn_c_try_compile "$LINENO"; then :
  2151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2152. /* end confdefs.h. */
  2153. $4
  2154. int
  2155. main ()
  2156. {
  2157. if (sizeof (($2)))
  2158. return 0;
  2159. ;
  2160. return 0;
  2161. }
  2162. _ACEOF
  2163. if ac_fn_c_try_compile "$LINENO"; then :
  2164. else
  2165. eval "$3=yes"
  2166. fi
  2167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2168. fi
  2169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2170. fi
  2171. eval ac_res=\$$3
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2173. $as_echo "$ac_res" >&6; }
  2174. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2175. } # ac_fn_c_check_type
  2176. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2177. # ---------------------------------------------
  2178. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2179. # accordingly.
  2180. ac_fn_c_check_decl ()
  2181. {
  2182. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2183. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2184. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2186. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2187. if eval \${$3+:} false; then :
  2188. $as_echo_n "(cached) " >&6
  2189. else
  2190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2191. /* end confdefs.h. */
  2192. $4
  2193. int
  2194. main ()
  2195. {
  2196. #ifndef $as_decl_name
  2197. #ifdef __cplusplus
  2198. (void) $as_decl_use;
  2199. #else
  2200. (void) $as_decl_name;
  2201. #endif
  2202. #endif
  2203. ;
  2204. return 0;
  2205. }
  2206. _ACEOF
  2207. if ac_fn_c_try_compile "$LINENO"; then :
  2208. eval "$3=yes"
  2209. else
  2210. eval "$3=no"
  2211. fi
  2212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2213. fi
  2214. eval ac_res=\$$3
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2216. $as_echo "$ac_res" >&6; }
  2217. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2218. } # ac_fn_c_check_decl
  2219. cat >config.log <<_ACEOF
  2220. This file contains any messages produced by compilers while
  2221. running configure, to aid debugging if configure makes a mistake.
  2222. It was created by dirsrv $as_me 1.0, which was
  2223. generated by GNU Autoconf 2.69. Invocation command line was
  2224. $ $0 $@
  2225. _ACEOF
  2226. exec 5>>config.log
  2227. {
  2228. cat <<_ASUNAME
  2229. ## --------- ##
  2230. ## Platform. ##
  2231. ## --------- ##
  2232. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2233. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2234. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2235. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2236. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2237. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2238. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2239. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2240. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2241. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2242. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2243. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2244. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2245. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2246. _ASUNAME
  2247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2248. for as_dir in $PATH
  2249. do
  2250. IFS=$as_save_IFS
  2251. test -z "$as_dir" && as_dir=.
  2252. $as_echo "PATH: $as_dir"
  2253. done
  2254. IFS=$as_save_IFS
  2255. } >&5
  2256. cat >&5 <<_ACEOF
  2257. ## ----------- ##
  2258. ## Core tests. ##
  2259. ## ----------- ##
  2260. _ACEOF
  2261. # Keep a trace of the command line.
  2262. # Strip out --no-create and --no-recursion so they do not pile up.
  2263. # Strip out --silent because we don't want to record it for future runs.
  2264. # Also quote any args containing shell meta-characters.
  2265. # Make two passes to allow for proper duplicate-argument suppression.
  2266. ac_configure_args=
  2267. ac_configure_args0=
  2268. ac_configure_args1=
  2269. ac_must_keep_next=false
  2270. for ac_pass in 1 2
  2271. do
  2272. for ac_arg
  2273. do
  2274. case $ac_arg in
  2275. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2276. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2277. | -silent | --silent | --silen | --sile | --sil)
  2278. continue ;;
  2279. *\'*)
  2280. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2281. esac
  2282. case $ac_pass in
  2283. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2284. 2)
  2285. as_fn_append ac_configure_args1 " '$ac_arg'"
  2286. if test $ac_must_keep_next = true; then
  2287. ac_must_keep_next=false # Got value, back to normal.
  2288. else
  2289. case $ac_arg in
  2290. *=* | --config-cache | -C | -disable-* | --disable-* \
  2291. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2292. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2293. | -with-* | --with-* | -without-* | --without-* | --x)
  2294. case "$ac_configure_args0 " in
  2295. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2296. esac
  2297. ;;
  2298. -* ) ac_must_keep_next=true ;;
  2299. esac
  2300. fi
  2301. as_fn_append ac_configure_args " '$ac_arg'"
  2302. ;;
  2303. esac
  2304. done
  2305. done
  2306. { ac_configure_args0=; unset ac_configure_args0;}
  2307. { ac_configure_args1=; unset ac_configure_args1;}
  2308. # When interrupted or exit'd, cleanup temporary files, and complete
  2309. # config.log. We remove comments because anyway the quotes in there
  2310. # would cause problems or look ugly.
  2311. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2312. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2313. trap 'exit_status=$?
  2314. # Save into config.log some information that might help in debugging.
  2315. {
  2316. echo
  2317. $as_echo "## ---------------- ##
  2318. ## Cache variables. ##
  2319. ## ---------------- ##"
  2320. echo
  2321. # The following way of writing the cache mishandles newlines in values,
  2322. (
  2323. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2324. eval ac_val=\$$ac_var
  2325. case $ac_val in #(
  2326. *${as_nl}*)
  2327. case $ac_var in #(
  2328. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2329. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2330. esac
  2331. case $ac_var in #(
  2332. _ | IFS | as_nl) ;; #(
  2333. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2334. *) { eval $ac_var=; unset $ac_var;} ;;
  2335. esac ;;
  2336. esac
  2337. done
  2338. (set) 2>&1 |
  2339. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2340. *${as_nl}ac_space=\ *)
  2341. sed -n \
  2342. "s/'\''/'\''\\\\'\'''\''/g;
  2343. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2344. ;; #(
  2345. *)
  2346. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2347. ;;
  2348. esac |
  2349. sort
  2350. )
  2351. echo
  2352. $as_echo "## ----------------- ##
  2353. ## Output variables. ##
  2354. ## ----------------- ##"
  2355. echo
  2356. for ac_var in $ac_subst_vars
  2357. do
  2358. eval ac_val=\$$ac_var
  2359. case $ac_val in
  2360. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2361. esac
  2362. $as_echo "$ac_var='\''$ac_val'\''"
  2363. done | sort
  2364. echo
  2365. if test -n "$ac_subst_files"; then
  2366. $as_echo "## ------------------- ##
  2367. ## File substitutions. ##
  2368. ## ------------------- ##"
  2369. echo
  2370. for ac_var in $ac_subst_files
  2371. do
  2372. eval ac_val=\$$ac_var
  2373. case $ac_val in
  2374. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2375. esac
  2376. $as_echo "$ac_var='\''$ac_val'\''"
  2377. done | sort
  2378. echo
  2379. fi
  2380. if test -s confdefs.h; then
  2381. $as_echo "## ----------- ##
  2382. ## confdefs.h. ##
  2383. ## ----------- ##"
  2384. echo
  2385. cat confdefs.h
  2386. echo
  2387. fi
  2388. test "$ac_signal" != 0 &&
  2389. $as_echo "$as_me: caught signal $ac_signal"
  2390. $as_echo "$as_me: exit $exit_status"
  2391. } >&5
  2392. rm -f core *.core core.conftest.* &&
  2393. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2394. exit $exit_status
  2395. ' 0
  2396. for ac_signal in 1 2 13 15; do
  2397. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2398. done
  2399. ac_signal=0
  2400. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2401. rm -f -r conftest* confdefs.h
  2402. $as_echo "/* confdefs.h */" > confdefs.h
  2403. # Predefined preprocessor variables.
  2404. cat >>confdefs.h <<_ACEOF
  2405. #define PACKAGE_NAME "$PACKAGE_NAME"
  2406. _ACEOF
  2407. cat >>confdefs.h <<_ACEOF
  2408. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2409. _ACEOF
  2410. cat >>confdefs.h <<_ACEOF
  2411. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2412. _ACEOF
  2413. cat >>confdefs.h <<_ACEOF
  2414. #define PACKAGE_STRING "$PACKAGE_STRING"
  2415. _ACEOF
  2416. cat >>confdefs.h <<_ACEOF
  2417. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2418. _ACEOF
  2419. cat >>confdefs.h <<_ACEOF
  2420. #define PACKAGE_URL "$PACKAGE_URL"
  2421. _ACEOF
  2422. # Let the site file select an alternate cache file if it wants to.
  2423. # Prefer an explicitly selected file to automatically selected ones.
  2424. ac_site_file1=NONE
  2425. ac_site_file2=NONE
  2426. if test -n "$CONFIG_SITE"; then
  2427. # We do not want a PATH search for config.site.
  2428. case $CONFIG_SITE in #((
  2429. -*) ac_site_file1=./$CONFIG_SITE;;
  2430. */*) ac_site_file1=$CONFIG_SITE;;
  2431. *) ac_site_file1=./$CONFIG_SITE;;
  2432. esac
  2433. elif test "x$prefix" != xNONE; then
  2434. ac_site_file1=$prefix/share/config.site
  2435. ac_site_file2=$prefix/etc/config.site
  2436. else
  2437. ac_site_file1=$ac_default_prefix/share/config.site
  2438. ac_site_file2=$ac_default_prefix/etc/config.site
  2439. fi
  2440. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2441. do
  2442. test "x$ac_site_file" = xNONE && continue
  2443. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2445. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2446. sed 's/^/| /' "$ac_site_file" >&5
  2447. . "$ac_site_file" \
  2448. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2449. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2450. as_fn_error $? "failed to load site script $ac_site_file
  2451. See \`config.log' for more details" "$LINENO" 5; }
  2452. fi
  2453. done
  2454. if test -r "$cache_file"; then
  2455. # Some versions of bash will fail to source /dev/null (special files
  2456. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2457. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2458. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2459. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2460. case $cache_file in
  2461. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2462. *) . "./$cache_file";;
  2463. esac
  2464. fi
  2465. else
  2466. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2467. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2468. >$cache_file
  2469. fi
  2470. as_fn_append ac_header_list " stdlib.h"
  2471. as_fn_append ac_header_list " unistd.h"
  2472. as_fn_append ac_header_list " sys/param.h"
  2473. # Check that the precious variables saved in the cache have kept the same
  2474. # value.
  2475. ac_cache_corrupted=false
  2476. for ac_var in $ac_precious_vars; do
  2477. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2478. eval ac_new_set=\$ac_env_${ac_var}_set
  2479. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2480. eval ac_new_val=\$ac_env_${ac_var}_value
  2481. case $ac_old_set,$ac_new_set in
  2482. set,)
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2484. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2485. ac_cache_corrupted=: ;;
  2486. ,set)
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2488. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2489. ac_cache_corrupted=: ;;
  2490. ,);;
  2491. *)
  2492. if test "x$ac_old_val" != "x$ac_new_val"; then
  2493. # differences in whitespace do not lead to failure.
  2494. ac_old_val_w=`echo x $ac_old_val`
  2495. ac_new_val_w=`echo x $ac_new_val`
  2496. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2498. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2499. ac_cache_corrupted=:
  2500. else
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2502. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2503. eval $ac_var=\$ac_old_val
  2504. fi
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2506. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2508. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2509. fi;;
  2510. esac
  2511. # Pass precious variables to config.status.
  2512. if test "$ac_new_set" = set; then
  2513. case $ac_new_val in
  2514. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2515. *) ac_arg=$ac_var=$ac_new_val ;;
  2516. esac
  2517. case " $ac_configure_args " in
  2518. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2519. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2520. esac
  2521. fi
  2522. done
  2523. if $ac_cache_corrupted; then
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2525. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2527. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2528. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2529. fi
  2530. ## -------------------- ##
  2531. ## Main body of script. ##
  2532. ## -------------------- ##
  2533. ac_ext=c
  2534. ac_cpp='$CPP $CPPFLAGS'
  2535. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2536. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2537. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2538. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2539. ac_config_headers="$ac_config_headers config.h"
  2540. # include the version information
  2541. . $srcdir/VERSION.sh
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2543. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2544. cat >>confdefs.h <<_ACEOF
  2545. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2546. _ACEOF
  2547. cat >>confdefs.h <<_ACEOF
  2548. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2549. _ACEOF
  2550. cat >>confdefs.h <<_ACEOF
  2551. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2552. _ACEOF
  2553. cat >>confdefs.h <<_ACEOF
  2554. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2555. _ACEOF
  2556. am__api_version='1.13'
  2557. ac_aux_dir=
  2558. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2559. if test -f "$ac_dir/install-sh"; then
  2560. ac_aux_dir=$ac_dir
  2561. ac_install_sh="$ac_aux_dir/install-sh -c"
  2562. break
  2563. elif test -f "$ac_dir/install.sh"; then
  2564. ac_aux_dir=$ac_dir
  2565. ac_install_sh="$ac_aux_dir/install.sh -c"
  2566. break
  2567. elif test -f "$ac_dir/shtool"; then
  2568. ac_aux_dir=$ac_dir
  2569. ac_install_sh="$ac_aux_dir/shtool install -c"
  2570. break
  2571. fi
  2572. done
  2573. if test -z "$ac_aux_dir"; then
  2574. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2575. fi
  2576. # These three variables are undocumented and unsupported,
  2577. # and are intended to be withdrawn in a future Autoconf release.
  2578. # They can cause serious problems if a builder's source tree is in a directory
  2579. # whose full name contains unusual characters.
  2580. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2581. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2582. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2583. # Find a good install program. We prefer a C program (faster),
  2584. # so one script is as good as another. But avoid the broken or
  2585. # incompatible versions:
  2586. # SysV /etc/install, /usr/sbin/install
  2587. # SunOS /usr/etc/install
  2588. # IRIX /sbin/install
  2589. # AIX /bin/install
  2590. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2591. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2592. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2593. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2594. # OS/2's system install, which has a completely different semantic
  2595. # ./install, which can be erroneously created by make from ./install.sh.
  2596. # Reject install programs that cannot install multiple files.
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2598. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2599. if test -z "$INSTALL"; then
  2600. if ${ac_cv_path_install+:} false; then :
  2601. $as_echo_n "(cached) " >&6
  2602. else
  2603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2604. for as_dir in $PATH
  2605. do
  2606. IFS=$as_save_IFS
  2607. test -z "$as_dir" && as_dir=.
  2608. # Account for people who put trailing slashes in PATH elements.
  2609. case $as_dir/ in #((
  2610. ./ | .// | /[cC]/* | \
  2611. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2612. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2613. /usr/ucb/* ) ;;
  2614. *)
  2615. # OSF1 and SCO ODT 3.0 have their own names for install.
  2616. # Don't use installbsd from OSF since it installs stuff as root
  2617. # by default.
  2618. for ac_prog in ginstall scoinst install; do
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2621. if test $ac_prog = install &&
  2622. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2623. # AIX install. It has an incompatible calling convention.
  2624. :
  2625. elif test $ac_prog = install &&
  2626. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2627. # program-specific install script used by HP pwplus--don't use.
  2628. :
  2629. else
  2630. rm -rf conftest.one conftest.two conftest.dir
  2631. echo one > conftest.one
  2632. echo two > conftest.two
  2633. mkdir conftest.dir
  2634. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2635. test -s conftest.one && test -s conftest.two &&
  2636. test -s conftest.dir/conftest.one &&
  2637. test -s conftest.dir/conftest.two
  2638. then
  2639. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2640. break 3
  2641. fi
  2642. fi
  2643. fi
  2644. done
  2645. done
  2646. ;;
  2647. esac
  2648. done
  2649. IFS=$as_save_IFS
  2650. rm -rf conftest.one conftest.two conftest.dir
  2651. fi
  2652. if test "${ac_cv_path_install+set}" = set; then
  2653. INSTALL=$ac_cv_path_install
  2654. else
  2655. # As a last resort, use the slow shell script. Don't cache a
  2656. # value for INSTALL within a source directory, because that will
  2657. # break other packages using the cache if that directory is
  2658. # removed, or if the value is a relative name.
  2659. INSTALL=$ac_install_sh
  2660. fi
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2663. $as_echo "$INSTALL" >&6; }
  2664. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2665. # It thinks the first close brace ends the variable substitution.
  2666. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2667. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2668. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2670. $as_echo_n "checking whether build environment is sane... " >&6; }
  2671. # Reject unsafe characters in $srcdir or the absolute working directory
  2672. # name. Accept space and tab only in the latter.
  2673. am_lf='
  2674. '
  2675. case `pwd` in
  2676. *[\\\"\#\$\&\'\`$am_lf]*)
  2677. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2678. esac
  2679. case $srcdir in
  2680. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2681. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2682. esac
  2683. # Do 'set' in a subshell so we don't clobber the current shell's
  2684. # arguments. Must try -L first in case configure is actually a
  2685. # symlink; some systems play weird games with the mod time of symlinks
  2686. # (eg FreeBSD returns the mod time of the symlink's containing
  2687. # directory).
  2688. if (
  2689. am_has_slept=no
  2690. for am_try in 1 2; do
  2691. echo "timestamp, slept: $am_has_slept" > conftest.file
  2692. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2693. if test "$*" = "X"; then
  2694. # -L didn't work.
  2695. set X `ls -t "$srcdir/configure" conftest.file`
  2696. fi
  2697. if test "$*" != "X $srcdir/configure conftest.file" \
  2698. && test "$*" != "X conftest.file $srcdir/configure"; then
  2699. # If neither matched, then we have a broken ls. This can happen
  2700. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2701. # broken ls alias from the environment. This has actually
  2702. # happened. Such a system could not be considered "sane".
  2703. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2704. alias in your environment" "$LINENO" 5
  2705. fi
  2706. if test "$2" = conftest.file || test $am_try -eq 2; then
  2707. break
  2708. fi
  2709. # Just in case.
  2710. sleep 1
  2711. am_has_slept=yes
  2712. done
  2713. test "$2" = conftest.file
  2714. )
  2715. then
  2716. # Ok.
  2717. :
  2718. else
  2719. as_fn_error $? "newly created file is older than distributed files!
  2720. Check your system clock" "$LINENO" 5
  2721. fi
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2723. $as_echo "yes" >&6; }
  2724. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2725. # generated files are strictly newer.
  2726. am_sleep_pid=
  2727. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2728. ( sleep 1 ) &
  2729. am_sleep_pid=$!
  2730. fi
  2731. rm -f conftest.file
  2732. test "$program_prefix" != NONE &&
  2733. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2734. # Use a double $ so make ignores it.
  2735. test "$program_suffix" != NONE &&
  2736. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2737. # Double any \ or $.
  2738. # By default was `s,x,x', remove it if useless.
  2739. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2740. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2741. # expand $ac_aux_dir to an absolute path
  2742. am_aux_dir=`cd $ac_aux_dir && pwd`
  2743. if test x"${MISSING+set}" != xset; then
  2744. case $am_aux_dir in
  2745. *\ * | *\ *)
  2746. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2747. *)
  2748. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2749. esac
  2750. fi
  2751. # Use eval to expand $SHELL
  2752. if eval "$MISSING --is-lightweight"; then
  2753. am_missing_run="$MISSING "
  2754. else
  2755. am_missing_run=
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2757. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2758. fi
  2759. if test x"${install_sh}" != xset; then
  2760. case $am_aux_dir in
  2761. *\ * | *\ *)
  2762. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2763. *)
  2764. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2765. esac
  2766. fi
  2767. # Installed binaries are usually stripped using 'strip' when the user
  2768. # run "make install-strip". However 'strip' might not be the right
  2769. # tool to use in cross-compilation environments, therefore Automake
  2770. # will honor the 'STRIP' environment variable to overrule this program.
  2771. if test "$cross_compiling" != no; then
  2772. if test -n "$ac_tool_prefix"; then
  2773. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2774. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2776. $as_echo_n "checking for $ac_word... " >&6; }
  2777. if ${ac_cv_prog_STRIP+:} false; then :
  2778. $as_echo_n "(cached) " >&6
  2779. else
  2780. if test -n "$STRIP"; then
  2781. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2782. else
  2783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2784. for as_dir in $PATH
  2785. do
  2786. IFS=$as_save_IFS
  2787. test -z "$as_dir" && as_dir=.
  2788. for ac_exec_ext in '' $ac_executable_extensions; do
  2789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2790. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2792. break 2
  2793. fi
  2794. done
  2795. done
  2796. IFS=$as_save_IFS
  2797. fi
  2798. fi
  2799. STRIP=$ac_cv_prog_STRIP
  2800. if test -n "$STRIP"; then
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2802. $as_echo "$STRIP" >&6; }
  2803. else
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2805. $as_echo "no" >&6; }
  2806. fi
  2807. fi
  2808. if test -z "$ac_cv_prog_STRIP"; then
  2809. ac_ct_STRIP=$STRIP
  2810. # Extract the first word of "strip", so it can be a program name with args.
  2811. set dummy strip; ac_word=$2
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2813. $as_echo_n "checking for $ac_word... " >&6; }
  2814. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2815. $as_echo_n "(cached) " >&6
  2816. else
  2817. if test -n "$ac_ct_STRIP"; then
  2818. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2819. else
  2820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2821. for as_dir in $PATH
  2822. do
  2823. IFS=$as_save_IFS
  2824. test -z "$as_dir" && as_dir=.
  2825. for ac_exec_ext in '' $ac_executable_extensions; do
  2826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2827. ac_cv_prog_ac_ct_STRIP="strip"
  2828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2829. break 2
  2830. fi
  2831. done
  2832. done
  2833. IFS=$as_save_IFS
  2834. fi
  2835. fi
  2836. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2837. if test -n "$ac_ct_STRIP"; then
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2839. $as_echo "$ac_ct_STRIP" >&6; }
  2840. else
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2842. $as_echo "no" >&6; }
  2843. fi
  2844. if test "x$ac_ct_STRIP" = x; then
  2845. STRIP=":"
  2846. else
  2847. case $cross_compiling:$ac_tool_warned in
  2848. yes:)
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2851. ac_tool_warned=yes ;;
  2852. esac
  2853. STRIP=$ac_ct_STRIP
  2854. fi
  2855. else
  2856. STRIP="$ac_cv_prog_STRIP"
  2857. fi
  2858. fi
  2859. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2861. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2862. if test -z "$MKDIR_P"; then
  2863. if ${ac_cv_path_mkdir+:} false; then :
  2864. $as_echo_n "(cached) " >&6
  2865. else
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_prog in mkdir gmkdir; do
  2872. for ac_exec_ext in '' $ac_executable_extensions; do
  2873. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2874. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2875. 'mkdir (GNU coreutils) '* | \
  2876. 'mkdir (coreutils) '* | \
  2877. 'mkdir (fileutils) '4.1*)
  2878. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2879. break 3;;
  2880. esac
  2881. done
  2882. done
  2883. done
  2884. IFS=$as_save_IFS
  2885. fi
  2886. test -d ./--version && rmdir ./--version
  2887. if test "${ac_cv_path_mkdir+set}" = set; then
  2888. MKDIR_P="$ac_cv_path_mkdir -p"
  2889. else
  2890. # As a last resort, use the slow shell script. Don't cache a
  2891. # value for MKDIR_P within a source directory, because that will
  2892. # break other packages using the cache if that directory is
  2893. # removed, or if the value is a relative name.
  2894. MKDIR_P="$ac_install_sh -d"
  2895. fi
  2896. fi
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2898. $as_echo "$MKDIR_P" >&6; }
  2899. for ac_prog in gawk mawk nawk awk
  2900. do
  2901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if ${ac_cv_prog_AWK+:} false; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$AWK"; then
  2909. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2918. ac_cv_prog_AWK="$ac_prog"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. AWK=$ac_cv_prog_AWK
  2928. if test -n "$AWK"; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2930. $as_echo "$AWK" >&6; }
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$AWK" && break
  2936. done
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2938. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2939. set x ${MAKE-make}
  2940. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2941. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. cat >conftest.make <<\_ACEOF
  2945. SHELL = /bin/sh
  2946. all:
  2947. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2948. _ACEOF
  2949. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2950. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2951. *@@@%%%=?*=@@@%%%*)
  2952. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2953. *)
  2954. eval ac_cv_prog_make_${ac_make}_set=no;;
  2955. esac
  2956. rm -f conftest.make
  2957. fi
  2958. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2960. $as_echo "yes" >&6; }
  2961. SET_MAKE=
  2962. else
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2964. $as_echo "no" >&6; }
  2965. SET_MAKE="MAKE=${MAKE-make}"
  2966. fi
  2967. rm -rf .tst 2>/dev/null
  2968. mkdir .tst 2>/dev/null
  2969. if test -d .tst; then
  2970. am__leading_dot=.
  2971. else
  2972. am__leading_dot=_
  2973. fi
  2974. rmdir .tst 2>/dev/null
  2975. # Check whether --enable-silent-rules was given.
  2976. if test "${enable_silent_rules+set}" = set; then :
  2977. enableval=$enable_silent_rules;
  2978. fi
  2979. case $enable_silent_rules in # (((
  2980. yes) AM_DEFAULT_VERBOSITY=0;;
  2981. no) AM_DEFAULT_VERBOSITY=1;;
  2982. *) AM_DEFAULT_VERBOSITY=1;;
  2983. esac
  2984. am_make=${MAKE-make}
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2986. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2987. if ${am_cv_make_support_nested_variables+:} false; then :
  2988. $as_echo_n "(cached) " >&6
  2989. else
  2990. if $as_echo 'TRUE=$(BAR$(V))
  2991. BAR0=false
  2992. BAR1=true
  2993. V=1
  2994. am__doit:
  2995. @$(TRUE)
  2996. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2997. am_cv_make_support_nested_variables=yes
  2998. else
  2999. am_cv_make_support_nested_variables=no
  3000. fi
  3001. fi
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3003. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3004. if test $am_cv_make_support_nested_variables = yes; then
  3005. AM_V='$(V)'
  3006. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3007. else
  3008. AM_V=$AM_DEFAULT_VERBOSITY
  3009. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3010. fi
  3011. AM_BACKSLASH='\'
  3012. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3013. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3014. # is not polluted with repeated "-I."
  3015. am__isrc=' -I$(srcdir)'
  3016. # test to see if srcdir already configured
  3017. if test -f $srcdir/config.status; then
  3018. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3019. fi
  3020. fi
  3021. # test whether we have cygpath
  3022. if test -z "$CYGPATH_W"; then
  3023. if (cygpath --version) >/dev/null 2>/dev/null; then
  3024. CYGPATH_W='cygpath -w'
  3025. else
  3026. CYGPATH_W=echo
  3027. fi
  3028. fi
  3029. # Define the identity of the package.
  3030. PACKAGE='dirsrv'
  3031. VERSION='1.0'
  3032. # Some tools Automake needs.
  3033. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3034. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3035. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3036. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3037. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3038. # For better backward compatibility. To be removed once Automake 1.9.x
  3039. # dies out for good. For more background, see:
  3040. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3041. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3042. mkdir_p='$(MKDIR_P)'
  3043. # We need awk for the "check" target. The system "awk" is bad on
  3044. # some platforms.
  3045. # Always define AMTAR for backward compatibility. Yes, it's still used
  3046. # in the wild :-( We should find a proper way to deprecate it ...
  3047. AMTAR='$${TAR-tar}'
  3048. # We'll loop over all known methods to create a tar archive until one works.
  3049. _am_tools='gnutar pax cpio none'
  3050. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3051. # define these for automake distdir
  3052. VERSION=$PACKAGE_VERSION
  3053. PACKAGE=$PACKAGE_TARNAME
  3054. cat >>confdefs.h <<_ACEOF
  3055. #define VERSION "$VERSION"
  3056. _ACEOF
  3057. cat >>confdefs.h <<_ACEOF
  3058. #define PACKAGE "$PACKAGE"
  3059. _ACEOF
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3061. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3062. # Check whether --enable-maintainer-mode was given.
  3063. if test "${enable_maintainer_mode+set}" = set; then :
  3064. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3065. else
  3066. USE_MAINTAINER_MODE=no
  3067. fi
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3069. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3070. if test $USE_MAINTAINER_MODE = yes; then
  3071. MAINTAINER_MODE_TRUE=
  3072. MAINTAINER_MODE_FALSE='#'
  3073. else
  3074. MAINTAINER_MODE_TRUE='#'
  3075. MAINTAINER_MODE_FALSE=
  3076. fi
  3077. MAINT=$MAINTAINER_MODE_TRUE
  3078. # Make sure we can run config.sub.
  3079. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3080. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3082. $as_echo_n "checking build system type... " >&6; }
  3083. if ${ac_cv_build+:} false; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. ac_build_alias=$build_alias
  3087. test "x$ac_build_alias" = x &&
  3088. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3089. test "x$ac_build_alias" = x &&
  3090. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3091. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3092. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3093. fi
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3095. $as_echo "$ac_cv_build" >&6; }
  3096. case $ac_cv_build in
  3097. *-*-*) ;;
  3098. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3099. esac
  3100. build=$ac_cv_build
  3101. ac_save_IFS=$IFS; IFS='-'
  3102. set x $ac_cv_build
  3103. shift
  3104. build_cpu=$1
  3105. build_vendor=$2
  3106. shift; shift
  3107. # Remember, the first character of IFS is used to create $*,
  3108. # except with old shells:
  3109. build_os=$*
  3110. IFS=$ac_save_IFS
  3111. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3113. $as_echo_n "checking host system type... " >&6; }
  3114. if ${ac_cv_host+:} false; then :
  3115. $as_echo_n "(cached) " >&6
  3116. else
  3117. if test "x$host_alias" = x; then
  3118. ac_cv_host=$ac_cv_build
  3119. else
  3120. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3121. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3122. fi
  3123. fi
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3125. $as_echo "$ac_cv_host" >&6; }
  3126. case $ac_cv_host in
  3127. *-*-*) ;;
  3128. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3129. esac
  3130. host=$ac_cv_host
  3131. ac_save_IFS=$IFS; IFS='-'
  3132. set x $ac_cv_host
  3133. shift
  3134. host_cpu=$1
  3135. host_vendor=$2
  3136. shift; shift
  3137. # Remember, the first character of IFS is used to create $*,
  3138. # except with old shells:
  3139. host_os=$*
  3140. IFS=$ac_save_IFS
  3141. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3142. # Checks for programs.
  3143. ac_ext=cpp
  3144. ac_cpp='$CXXCPP $CPPFLAGS'
  3145. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3146. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3147. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3148. if test -z "$CXX"; then
  3149. if test -n "$CCC"; then
  3150. CXX=$CCC
  3151. else
  3152. if test -n "$ac_tool_prefix"; then
  3153. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3154. do
  3155. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3156. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3158. $as_echo_n "checking for $ac_word... " >&6; }
  3159. if ${ac_cv_prog_CXX+:} false; then :
  3160. $as_echo_n "(cached) " >&6
  3161. else
  3162. if test -n "$CXX"; then
  3163. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3164. else
  3165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3166. for as_dir in $PATH
  3167. do
  3168. IFS=$as_save_IFS
  3169. test -z "$as_dir" && as_dir=.
  3170. for ac_exec_ext in '' $ac_executable_extensions; do
  3171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3172. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3174. break 2
  3175. fi
  3176. done
  3177. done
  3178. IFS=$as_save_IFS
  3179. fi
  3180. fi
  3181. CXX=$ac_cv_prog_CXX
  3182. if test -n "$CXX"; then
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3184. $as_echo "$CXX" >&6; }
  3185. else
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3187. $as_echo "no" >&6; }
  3188. fi
  3189. test -n "$CXX" && break
  3190. done
  3191. fi
  3192. if test -z "$CXX"; then
  3193. ac_ct_CXX=$CXX
  3194. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3195. do
  3196. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3197. set dummy $ac_prog; ac_word=$2
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3199. $as_echo_n "checking for $ac_word... " >&6; }
  3200. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3201. $as_echo_n "(cached) " >&6
  3202. else
  3203. if test -n "$ac_ct_CXX"; then
  3204. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3205. else
  3206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3207. for as_dir in $PATH
  3208. do
  3209. IFS=$as_save_IFS
  3210. test -z "$as_dir" && as_dir=.
  3211. for ac_exec_ext in '' $ac_executable_extensions; do
  3212. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3213. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3215. break 2
  3216. fi
  3217. done
  3218. done
  3219. IFS=$as_save_IFS
  3220. fi
  3221. fi
  3222. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3223. if test -n "$ac_ct_CXX"; then
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3225. $as_echo "$ac_ct_CXX" >&6; }
  3226. else
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3228. $as_echo "no" >&6; }
  3229. fi
  3230. test -n "$ac_ct_CXX" && break
  3231. done
  3232. if test "x$ac_ct_CXX" = x; then
  3233. CXX="g++"
  3234. else
  3235. case $cross_compiling:$ac_tool_warned in
  3236. yes:)
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3239. ac_tool_warned=yes ;;
  3240. esac
  3241. CXX=$ac_ct_CXX
  3242. fi
  3243. fi
  3244. fi
  3245. fi
  3246. # Provide some information about the compiler.
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3248. set X $ac_compile
  3249. ac_compiler=$2
  3250. for ac_option in --version -v -V -qversion; do
  3251. { { ac_try="$ac_compiler $ac_option >&5"
  3252. case "(($ac_try" in
  3253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3254. *) ac_try_echo=$ac_try;;
  3255. esac
  3256. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3257. $as_echo "$ac_try_echo"; } >&5
  3258. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3259. ac_status=$?
  3260. if test -s conftest.err; then
  3261. sed '10a\
  3262. ... rest of stderr output deleted ...
  3263. 10q' conftest.err >conftest.er1
  3264. cat conftest.er1 >&5
  3265. fi
  3266. rm -f conftest.er1 conftest.err
  3267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3268. test $ac_status = 0; }
  3269. done
  3270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3271. /* end confdefs.h. */
  3272. int
  3273. main ()
  3274. {
  3275. ;
  3276. return 0;
  3277. }
  3278. _ACEOF
  3279. ac_clean_files_save=$ac_clean_files
  3280. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3281. # Try to create an executable without -o first, disregard a.out.
  3282. # It will help us diagnose broken compilers, and finding out an intuition
  3283. # of exeext.
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3285. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3286. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3287. # The possible output files:
  3288. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3289. ac_rmfiles=
  3290. for ac_file in $ac_files
  3291. do
  3292. case $ac_file in
  3293. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3294. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3295. esac
  3296. done
  3297. rm -f $ac_rmfiles
  3298. if { { ac_try="$ac_link_default"
  3299. case "(($ac_try" in
  3300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3301. *) ac_try_echo=$ac_try;;
  3302. esac
  3303. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3304. $as_echo "$ac_try_echo"; } >&5
  3305. (eval "$ac_link_default") 2>&5
  3306. ac_status=$?
  3307. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3308. test $ac_status = 0; }; then :
  3309. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3310. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3311. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3312. # so that the user can short-circuit this test for compilers unknown to
  3313. # Autoconf.
  3314. for ac_file in $ac_files ''
  3315. do
  3316. test -f "$ac_file" || continue
  3317. case $ac_file in
  3318. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3319. ;;
  3320. [ab].out )
  3321. # We found the default executable, but exeext='' is most
  3322. # certainly right.
  3323. break;;
  3324. *.* )
  3325. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3326. then :; else
  3327. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3328. fi
  3329. # We set ac_cv_exeext here because the later test for it is not
  3330. # safe: cross compilers may not add the suffix if given an `-o'
  3331. # argument, so we may need to know it at that point already.
  3332. # Even if this section looks crufty: it has the advantage of
  3333. # actually working.
  3334. break;;
  3335. * )
  3336. break;;
  3337. esac
  3338. done
  3339. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3340. else
  3341. ac_file=''
  3342. fi
  3343. if test -z "$ac_file"; then :
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3345. $as_echo "no" >&6; }
  3346. $as_echo "$as_me: failed program was:" >&5
  3347. sed 's/^/| /' conftest.$ac_ext >&5
  3348. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3350. as_fn_error 77 "C++ compiler cannot create executables
  3351. See \`config.log' for more details" "$LINENO" 5; }
  3352. else
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3354. $as_echo "yes" >&6; }
  3355. fi
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3357. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3359. $as_echo "$ac_file" >&6; }
  3360. ac_exeext=$ac_cv_exeext
  3361. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3362. ac_clean_files=$ac_clean_files_save
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3364. $as_echo_n "checking for suffix of executables... " >&6; }
  3365. if { { ac_try="$ac_link"
  3366. case "(($ac_try" in
  3367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3368. *) ac_try_echo=$ac_try;;
  3369. esac
  3370. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3371. $as_echo "$ac_try_echo"; } >&5
  3372. (eval "$ac_link") 2>&5
  3373. ac_status=$?
  3374. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3375. test $ac_status = 0; }; then :
  3376. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3377. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3378. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3379. # `rm'.
  3380. for ac_file in conftest.exe conftest conftest.*; do
  3381. test -f "$ac_file" || continue
  3382. case $ac_file in
  3383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3384. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3385. break;;
  3386. * ) break;;
  3387. esac
  3388. done
  3389. else
  3390. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3391. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3392. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3393. See \`config.log' for more details" "$LINENO" 5; }
  3394. fi
  3395. rm -f conftest conftest$ac_cv_exeext
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3397. $as_echo "$ac_cv_exeext" >&6; }
  3398. rm -f conftest.$ac_ext
  3399. EXEEXT=$ac_cv_exeext
  3400. ac_exeext=$EXEEXT
  3401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3402. /* end confdefs.h. */
  3403. #include <stdio.h>
  3404. int
  3405. main ()
  3406. {
  3407. FILE *f = fopen ("conftest.out", "w");
  3408. return ferror (f) || fclose (f) != 0;
  3409. ;
  3410. return 0;
  3411. }
  3412. _ACEOF
  3413. ac_clean_files="$ac_clean_files conftest.out"
  3414. # Check that the compiler produces executables we can run. If not, either
  3415. # the compiler is broken, or we cross compile.
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3417. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3418. if test "$cross_compiling" != yes; then
  3419. { { ac_try="$ac_link"
  3420. case "(($ac_try" in
  3421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3422. *) ac_try_echo=$ac_try;;
  3423. esac
  3424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3425. $as_echo "$ac_try_echo"; } >&5
  3426. (eval "$ac_link") 2>&5
  3427. ac_status=$?
  3428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3429. test $ac_status = 0; }
  3430. if { ac_try='./conftest$ac_cv_exeext'
  3431. { { case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3436. $as_echo "$ac_try_echo"; } >&5
  3437. (eval "$ac_try") 2>&5
  3438. ac_status=$?
  3439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3440. test $ac_status = 0; }; }; then
  3441. cross_compiling=no
  3442. else
  3443. if test "$cross_compiling" = maybe; then
  3444. cross_compiling=yes
  3445. else
  3446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3448. as_fn_error $? "cannot run C++ compiled programs.
  3449. If you meant to cross compile, use \`--host'.
  3450. See \`config.log' for more details" "$LINENO" 5; }
  3451. fi
  3452. fi
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3455. $as_echo "$cross_compiling" >&6; }
  3456. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3457. ac_clean_files=$ac_clean_files_save
  3458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3459. $as_echo_n "checking for suffix of object files... " >&6; }
  3460. if ${ac_cv_objext+:} false; then :
  3461. $as_echo_n "(cached) " >&6
  3462. else
  3463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3464. /* end confdefs.h. */
  3465. int
  3466. main ()
  3467. {
  3468. ;
  3469. return 0;
  3470. }
  3471. _ACEOF
  3472. rm -f conftest.o conftest.obj
  3473. if { { ac_try="$ac_compile"
  3474. case "(($ac_try" in
  3475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3476. *) ac_try_echo=$ac_try;;
  3477. esac
  3478. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3479. $as_echo "$ac_try_echo"; } >&5
  3480. (eval "$ac_compile") 2>&5
  3481. ac_status=$?
  3482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3483. test $ac_status = 0; }; then :
  3484. for ac_file in conftest.o conftest.obj conftest.*; do
  3485. test -f "$ac_file" || continue;
  3486. case $ac_file in
  3487. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3488. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3489. break;;
  3490. esac
  3491. done
  3492. else
  3493. $as_echo "$as_me: failed program was:" >&5
  3494. sed 's/^/| /' conftest.$ac_ext >&5
  3495. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3496. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3497. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3498. See \`config.log' for more details" "$LINENO" 5; }
  3499. fi
  3500. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3501. fi
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3503. $as_echo "$ac_cv_objext" >&6; }
  3504. OBJEXT=$ac_cv_objext
  3505. ac_objext=$OBJEXT
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3507. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3508. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3512. /* end confdefs.h. */
  3513. int
  3514. main ()
  3515. {
  3516. #ifndef __GNUC__
  3517. choke me
  3518. #endif
  3519. ;
  3520. return 0;
  3521. }
  3522. _ACEOF
  3523. if ac_fn_cxx_try_compile "$LINENO"; then :
  3524. ac_compiler_gnu=yes
  3525. else
  3526. ac_compiler_gnu=no
  3527. fi
  3528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3529. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3530. fi
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3532. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3533. if test $ac_compiler_gnu = yes; then
  3534. GXX=yes
  3535. else
  3536. GXX=
  3537. fi
  3538. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3539. ac_save_CXXFLAGS=$CXXFLAGS
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3541. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3542. if ${ac_cv_prog_cxx_g+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3546. ac_cxx_werror_flag=yes
  3547. ac_cv_prog_cxx_g=no
  3548. CXXFLAGS="-g"
  3549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3550. /* end confdefs.h. */
  3551. int
  3552. main ()
  3553. {
  3554. ;
  3555. return 0;
  3556. }
  3557. _ACEOF
  3558. if ac_fn_cxx_try_compile "$LINENO"; then :
  3559. ac_cv_prog_cxx_g=yes
  3560. else
  3561. CXXFLAGS=""
  3562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3563. /* end confdefs.h. */
  3564. int
  3565. main ()
  3566. {
  3567. ;
  3568. return 0;
  3569. }
  3570. _ACEOF
  3571. if ac_fn_cxx_try_compile "$LINENO"; then :
  3572. else
  3573. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3574. CXXFLAGS="-g"
  3575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3576. /* end confdefs.h. */
  3577. int
  3578. main ()
  3579. {
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. if ac_fn_cxx_try_compile "$LINENO"; then :
  3585. ac_cv_prog_cxx_g=yes
  3586. fi
  3587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3588. fi
  3589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3590. fi
  3591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3592. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3593. fi
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3595. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3596. if test "$ac_test_CXXFLAGS" = set; then
  3597. CXXFLAGS=$ac_save_CXXFLAGS
  3598. elif test $ac_cv_prog_cxx_g = yes; then
  3599. if test "$GXX" = yes; then
  3600. CXXFLAGS="-g -O2"
  3601. else
  3602. CXXFLAGS="-g"
  3603. fi
  3604. else
  3605. if test "$GXX" = yes; then
  3606. CXXFLAGS="-O2"
  3607. else
  3608. CXXFLAGS=
  3609. fi
  3610. fi
  3611. ac_ext=c
  3612. ac_cpp='$CPP $CPPFLAGS'
  3613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3616. DEPDIR="${am__leading_dot}deps"
  3617. ac_config_commands="$ac_config_commands depfiles"
  3618. am_make=${MAKE-make}
  3619. cat > confinc << 'END'
  3620. am__doit:
  3621. @echo this is the am__doit target
  3622. .PHONY: am__doit
  3623. END
  3624. # If we don't find an include directive, just comment out the code.
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3626. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3627. am__include="#"
  3628. am__quote=
  3629. _am_result=none
  3630. # First try GNU make style include.
  3631. echo "include confinc" > confmf
  3632. # Ignore all kinds of additional output from 'make'.
  3633. case `$am_make -s -f confmf 2> /dev/null` in #(
  3634. *the\ am__doit\ target*)
  3635. am__include=include
  3636. am__quote=
  3637. _am_result=GNU
  3638. ;;
  3639. esac
  3640. # Now try BSD make style include.
  3641. if test "$am__include" = "#"; then
  3642. echo '.include "confinc"' > confmf
  3643. case `$am_make -s -f confmf 2> /dev/null` in #(
  3644. *the\ am__doit\ target*)
  3645. am__include=.include
  3646. am__quote="\""
  3647. _am_result=BSD
  3648. ;;
  3649. esac
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3652. $as_echo "$_am_result" >&6; }
  3653. rm -f confinc confmf
  3654. # Check whether --enable-dependency-tracking was given.
  3655. if test "${enable_dependency_tracking+set}" = set; then :
  3656. enableval=$enable_dependency_tracking;
  3657. fi
  3658. if test "x$enable_dependency_tracking" != xno; then
  3659. am_depcomp="$ac_aux_dir/depcomp"
  3660. AMDEPBACKSLASH='\'
  3661. am__nodep='_no'
  3662. fi
  3663. if test "x$enable_dependency_tracking" != xno; then
  3664. AMDEP_TRUE=
  3665. AMDEP_FALSE='#'
  3666. else
  3667. AMDEP_TRUE='#'
  3668. AMDEP_FALSE=
  3669. fi
  3670. depcc="$CXX" am_compiler_list=
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3672. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3673. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3677. # We make a subdir and do the tests there. Otherwise we can end up
  3678. # making bogus files that we don't know about and never remove. For
  3679. # instance it was reported that on HP-UX the gcc test will end up
  3680. # making a dummy file named 'D' -- because '-MD' means "put the output
  3681. # in D".
  3682. rm -rf conftest.dir
  3683. mkdir conftest.dir
  3684. # Copy depcomp to subdir because otherwise we won't find it if we're
  3685. # using a relative directory.
  3686. cp "$am_depcomp" conftest.dir
  3687. cd conftest.dir
  3688. # We will build objects and dependencies in a subdirectory because
  3689. # it helps to detect inapplicable dependency modes. For instance
  3690. # both Tru64's cc and ICC support -MD to output dependencies as a
  3691. # side effect of compilation, but ICC will put the dependencies in
  3692. # the current directory while Tru64 will put them in the object
  3693. # directory.
  3694. mkdir sub
  3695. am_cv_CXX_dependencies_compiler_type=none
  3696. if test "$am_compiler_list" = ""; then
  3697. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3698. fi
  3699. am__universal=false
  3700. case " $depcc " in #(
  3701. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3702. esac
  3703. for depmode in $am_compiler_list; do
  3704. # Setup a source with many dependencies, because some compilers
  3705. # like to wrap large dependency lists on column 80 (with \), and
  3706. # we should not choose a depcomp mode which is confused by this.
  3707. #
  3708. # We need to recreate these files for each test, as the compiler may
  3709. # overwrite some of them when testing with obscure command lines.
  3710. # This happens at least with the AIX C compiler.
  3711. : > sub/conftest.c
  3712. for i in 1 2 3 4 5 6; do
  3713. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3714. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3715. # Solaris 10 /bin/sh.
  3716. echo '/* dummy */' > sub/conftst$i.h
  3717. done
  3718. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3719. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3720. # mode. It turns out that the SunPro C++ compiler does not properly
  3721. # handle '-M -o', and we need to detect this. Also, some Intel
  3722. # versions had trouble with output in subdirs.
  3723. am__obj=sub/conftest.${OBJEXT-o}
  3724. am__minus_obj="-o $am__obj"
  3725. case $depmode in
  3726. gcc)
  3727. # This depmode causes a compiler race in universal mode.
  3728. test "$am__universal" = false || continue
  3729. ;;
  3730. nosideeffect)
  3731. # After this tag, mechanisms are not by side-effect, so they'll
  3732. # only be used when explicitly requested.
  3733. if test "x$enable_dependency_tracking" = xyes; then
  3734. continue
  3735. else
  3736. break
  3737. fi
  3738. ;;
  3739. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3740. # This compiler won't grok '-c -o', but also, the minuso test has
  3741. # not run yet. These depmodes are late enough in the game, and
  3742. # so weak that their functioning should not be impacted.
  3743. am__obj=conftest.${OBJEXT-o}
  3744. am__minus_obj=
  3745. ;;
  3746. none) break ;;
  3747. esac
  3748. if depmode=$depmode \
  3749. source=sub/conftest.c object=$am__obj \
  3750. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3751. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3752. >/dev/null 2>conftest.err &&
  3753. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3754. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3755. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3756. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3757. # icc doesn't choke on unknown options, it will just issue warnings
  3758. # or remarks (even with -Werror). So we grep stderr for any message
  3759. # that says an option was ignored or not supported.
  3760. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3761. # icc: Command line warning: ignoring option '-M'; no argument required
  3762. # The diagnosis changed in icc 8.0:
  3763. # icc: Command line remark: option '-MP' not supported
  3764. if (grep 'ignoring option' conftest.err ||
  3765. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3766. am_cv_CXX_dependencies_compiler_type=$depmode
  3767. break
  3768. fi
  3769. fi
  3770. done
  3771. cd ..
  3772. rm -rf conftest.dir
  3773. else
  3774. am_cv_CXX_dependencies_compiler_type=none
  3775. fi
  3776. fi
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3778. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3779. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3780. if
  3781. test "x$enable_dependency_tracking" != xno \
  3782. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3783. am__fastdepCXX_TRUE=
  3784. am__fastdepCXX_FALSE='#'
  3785. else
  3786. am__fastdepCXX_TRUE='#'
  3787. am__fastdepCXX_FALSE=
  3788. fi
  3789. ac_ext=c
  3790. ac_cpp='$CPP $CPPFLAGS'
  3791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3794. if test -n "$ac_tool_prefix"; then
  3795. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3796. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3798. $as_echo_n "checking for $ac_word... " >&6; }
  3799. if ${ac_cv_prog_CC+:} false; then :
  3800. $as_echo_n "(cached) " >&6
  3801. else
  3802. if test -n "$CC"; then
  3803. ac_cv_prog_CC="$CC" # Let the user override the test.
  3804. else
  3805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3806. for as_dir in $PATH
  3807. do
  3808. IFS=$as_save_IFS
  3809. test -z "$as_dir" && as_dir=.
  3810. for ac_exec_ext in '' $ac_executable_extensions; do
  3811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3812. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3814. break 2
  3815. fi
  3816. done
  3817. done
  3818. IFS=$as_save_IFS
  3819. fi
  3820. fi
  3821. CC=$ac_cv_prog_CC
  3822. if test -n "$CC"; then
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3824. $as_echo "$CC" >&6; }
  3825. else
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3827. $as_echo "no" >&6; }
  3828. fi
  3829. fi
  3830. if test -z "$ac_cv_prog_CC"; then
  3831. ac_ct_CC=$CC
  3832. # Extract the first word of "gcc", so it can be a program name with args.
  3833. set dummy gcc; ac_word=$2
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3835. $as_echo_n "checking for $ac_word... " >&6; }
  3836. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3837. $as_echo_n "(cached) " >&6
  3838. else
  3839. if test -n "$ac_ct_CC"; then
  3840. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3841. else
  3842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3843. for as_dir in $PATH
  3844. do
  3845. IFS=$as_save_IFS
  3846. test -z "$as_dir" && as_dir=.
  3847. for ac_exec_ext in '' $ac_executable_extensions; do
  3848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3849. ac_cv_prog_ac_ct_CC="gcc"
  3850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3851. break 2
  3852. fi
  3853. done
  3854. done
  3855. IFS=$as_save_IFS
  3856. fi
  3857. fi
  3858. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3859. if test -n "$ac_ct_CC"; then
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3861. $as_echo "$ac_ct_CC" >&6; }
  3862. else
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3864. $as_echo "no" >&6; }
  3865. fi
  3866. if test "x$ac_ct_CC" = x; then
  3867. CC=""
  3868. else
  3869. case $cross_compiling:$ac_tool_warned in
  3870. yes:)
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3873. ac_tool_warned=yes ;;
  3874. esac
  3875. CC=$ac_ct_CC
  3876. fi
  3877. else
  3878. CC="$ac_cv_prog_CC"
  3879. fi
  3880. if test -z "$CC"; then
  3881. if test -n "$ac_tool_prefix"; then
  3882. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3883. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3885. $as_echo_n "checking for $ac_word... " >&6; }
  3886. if ${ac_cv_prog_CC+:} false; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. if test -n "$CC"; then
  3890. ac_cv_prog_CC="$CC" # Let the user override the test.
  3891. else
  3892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3893. for as_dir in $PATH
  3894. do
  3895. IFS=$as_save_IFS
  3896. test -z "$as_dir" && as_dir=.
  3897. for ac_exec_ext in '' $ac_executable_extensions; do
  3898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3899. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3901. break 2
  3902. fi
  3903. done
  3904. done
  3905. IFS=$as_save_IFS
  3906. fi
  3907. fi
  3908. CC=$ac_cv_prog_CC
  3909. if test -n "$CC"; then
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3911. $as_echo "$CC" >&6; }
  3912. else
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3914. $as_echo "no" >&6; }
  3915. fi
  3916. fi
  3917. fi
  3918. if test -z "$CC"; then
  3919. # Extract the first word of "cc", so it can be a program name with args.
  3920. set dummy cc; ac_word=$2
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. $as_echo_n "checking for $ac_word... " >&6; }
  3923. if ${ac_cv_prog_CC+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. if test -n "$CC"; then
  3927. ac_cv_prog_CC="$CC" # Let the user override the test.
  3928. else
  3929. ac_prog_rejected=no
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_exec_ext in '' $ac_executable_extensions; do
  3936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3937. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3938. ac_prog_rejected=yes
  3939. continue
  3940. fi
  3941. ac_cv_prog_CC="cc"
  3942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3943. break 2
  3944. fi
  3945. done
  3946. done
  3947. IFS=$as_save_IFS
  3948. if test $ac_prog_rejected = yes; then
  3949. # We found a bogon in the path, so make sure we never use it.
  3950. set dummy $ac_cv_prog_CC
  3951. shift
  3952. if test $# != 0; then
  3953. # We chose a different compiler from the bogus one.
  3954. # However, it has the same basename, so the bogon will be chosen
  3955. # first if we set CC to just the basename; use the full file name.
  3956. shift
  3957. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3958. fi
  3959. fi
  3960. fi
  3961. fi
  3962. CC=$ac_cv_prog_CC
  3963. if test -n "$CC"; then
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3965. $as_echo "$CC" >&6; }
  3966. else
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3968. $as_echo "no" >&6; }
  3969. fi
  3970. fi
  3971. if test -z "$CC"; then
  3972. if test -n "$ac_tool_prefix"; then
  3973. for ac_prog in cl.exe
  3974. do
  3975. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3976. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3978. $as_echo_n "checking for $ac_word... " >&6; }
  3979. if ${ac_cv_prog_CC+:} false; then :
  3980. $as_echo_n "(cached) " >&6
  3981. else
  3982. if test -n "$CC"; then
  3983. ac_cv_prog_CC="$CC" # Let the user override the test.
  3984. else
  3985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3986. for as_dir in $PATH
  3987. do
  3988. IFS=$as_save_IFS
  3989. test -z "$as_dir" && as_dir=.
  3990. for ac_exec_ext in '' $ac_executable_extensions; do
  3991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3992. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3994. break 2
  3995. fi
  3996. done
  3997. done
  3998. IFS=$as_save_IFS
  3999. fi
  4000. fi
  4001. CC=$ac_cv_prog_CC
  4002. if test -n "$CC"; then
  4003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4004. $as_echo "$CC" >&6; }
  4005. else
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4007. $as_echo "no" >&6; }
  4008. fi
  4009. test -n "$CC" && break
  4010. done
  4011. fi
  4012. if test -z "$CC"; then
  4013. ac_ct_CC=$CC
  4014. for ac_prog in cl.exe
  4015. do
  4016. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4017. set dummy $ac_prog; ac_word=$2
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4019. $as_echo_n "checking for $ac_word... " >&6; }
  4020. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4021. $as_echo_n "(cached) " >&6
  4022. else
  4023. if test -n "$ac_ct_CC"; then
  4024. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4025. else
  4026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4027. for as_dir in $PATH
  4028. do
  4029. IFS=$as_save_IFS
  4030. test -z "$as_dir" && as_dir=.
  4031. for ac_exec_ext in '' $ac_executable_extensions; do
  4032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4033. ac_cv_prog_ac_ct_CC="$ac_prog"
  4034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4035. break 2
  4036. fi
  4037. done
  4038. done
  4039. IFS=$as_save_IFS
  4040. fi
  4041. fi
  4042. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4043. if test -n "$ac_ct_CC"; then
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4045. $as_echo "$ac_ct_CC" >&6; }
  4046. else
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4048. $as_echo "no" >&6; }
  4049. fi
  4050. test -n "$ac_ct_CC" && break
  4051. done
  4052. if test "x$ac_ct_CC" = x; then
  4053. CC=""
  4054. else
  4055. case $cross_compiling:$ac_tool_warned in
  4056. yes:)
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4058. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4059. ac_tool_warned=yes ;;
  4060. esac
  4061. CC=$ac_ct_CC
  4062. fi
  4063. fi
  4064. fi
  4065. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4066. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4067. as_fn_error $? "no acceptable C compiler found in \$PATH
  4068. See \`config.log' for more details" "$LINENO" 5; }
  4069. # Provide some information about the compiler.
  4070. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4071. set X $ac_compile
  4072. ac_compiler=$2
  4073. for ac_option in --version -v -V -qversion; do
  4074. { { ac_try="$ac_compiler $ac_option >&5"
  4075. case "(($ac_try" in
  4076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4077. *) ac_try_echo=$ac_try;;
  4078. esac
  4079. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4080. $as_echo "$ac_try_echo"; } >&5
  4081. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4082. ac_status=$?
  4083. if test -s conftest.err; then
  4084. sed '10a\
  4085. ... rest of stderr output deleted ...
  4086. 10q' conftest.err >conftest.er1
  4087. cat conftest.er1 >&5
  4088. fi
  4089. rm -f conftest.er1 conftest.err
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4091. test $ac_status = 0; }
  4092. done
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4094. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4095. if ${ac_cv_c_compiler_gnu+:} false; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4099. /* end confdefs.h. */
  4100. int
  4101. main ()
  4102. {
  4103. #ifndef __GNUC__
  4104. choke me
  4105. #endif
  4106. ;
  4107. return 0;
  4108. }
  4109. _ACEOF
  4110. if ac_fn_c_try_compile "$LINENO"; then :
  4111. ac_compiler_gnu=yes
  4112. else
  4113. ac_compiler_gnu=no
  4114. fi
  4115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4116. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4117. fi
  4118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4119. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4120. if test $ac_compiler_gnu = yes; then
  4121. GCC=yes
  4122. else
  4123. GCC=
  4124. fi
  4125. ac_test_CFLAGS=${CFLAGS+set}
  4126. ac_save_CFLAGS=$CFLAGS
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4128. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4129. if ${ac_cv_prog_cc_g+:} false; then :
  4130. $as_echo_n "(cached) " >&6
  4131. else
  4132. ac_save_c_werror_flag=$ac_c_werror_flag
  4133. ac_c_werror_flag=yes
  4134. ac_cv_prog_cc_g=no
  4135. CFLAGS="-g"
  4136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4137. /* end confdefs.h. */
  4138. int
  4139. main ()
  4140. {
  4141. ;
  4142. return 0;
  4143. }
  4144. _ACEOF
  4145. if ac_fn_c_try_compile "$LINENO"; then :
  4146. ac_cv_prog_cc_g=yes
  4147. else
  4148. CFLAGS=""
  4149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4150. /* end confdefs.h. */
  4151. int
  4152. main ()
  4153. {
  4154. ;
  4155. return 0;
  4156. }
  4157. _ACEOF
  4158. if ac_fn_c_try_compile "$LINENO"; then :
  4159. else
  4160. ac_c_werror_flag=$ac_save_c_werror_flag
  4161. CFLAGS="-g"
  4162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4163. /* end confdefs.h. */
  4164. int
  4165. main ()
  4166. {
  4167. ;
  4168. return 0;
  4169. }
  4170. _ACEOF
  4171. if ac_fn_c_try_compile "$LINENO"; then :
  4172. ac_cv_prog_cc_g=yes
  4173. fi
  4174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4175. fi
  4176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4177. fi
  4178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4179. ac_c_werror_flag=$ac_save_c_werror_flag
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4182. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4183. if test "$ac_test_CFLAGS" = set; then
  4184. CFLAGS=$ac_save_CFLAGS
  4185. elif test $ac_cv_prog_cc_g = yes; then
  4186. if test "$GCC" = yes; then
  4187. CFLAGS="-g -O2"
  4188. else
  4189. CFLAGS="-g"
  4190. fi
  4191. else
  4192. if test "$GCC" = yes; then
  4193. CFLAGS="-O2"
  4194. else
  4195. CFLAGS=
  4196. fi
  4197. fi
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4199. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4200. if ${ac_cv_prog_cc_c89+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. ac_cv_prog_cc_c89=no
  4204. ac_save_CC=$CC
  4205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4206. /* end confdefs.h. */
  4207. #include <stdarg.h>
  4208. #include <stdio.h>
  4209. struct stat;
  4210. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4211. struct buf { int x; };
  4212. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4213. static char *e (p, i)
  4214. char **p;
  4215. int i;
  4216. {
  4217. return p[i];
  4218. }
  4219. static char *f (char * (*g) (char **, int), char **p, ...)
  4220. {
  4221. char *s;
  4222. va_list v;
  4223. va_start (v,p);
  4224. s = g (p, va_arg (v,int));
  4225. va_end (v);
  4226. return s;
  4227. }
  4228. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4229. function prototypes and stuff, but not '\xHH' hex character constants.
  4230. These don't provoke an error unfortunately, instead are silently treated
  4231. as 'x'. The following induces an error, until -std is added to get
  4232. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4233. array size at least. It's necessary to write '\x00'==0 to get something
  4234. that's true only with -std. */
  4235. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4236. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4237. inside strings and character constants. */
  4238. #define FOO(x) 'x'
  4239. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4240. int test (int i, double x);
  4241. struct s1 {int (*f) (int a);};
  4242. struct s2 {int (*f) (double a);};
  4243. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4244. int argc;
  4245. char **argv;
  4246. int
  4247. main ()
  4248. {
  4249. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4250. ;
  4251. return 0;
  4252. }
  4253. _ACEOF
  4254. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4255. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4256. do
  4257. CC="$ac_save_CC $ac_arg"
  4258. if ac_fn_c_try_compile "$LINENO"; then :
  4259. ac_cv_prog_cc_c89=$ac_arg
  4260. fi
  4261. rm -f core conftest.err conftest.$ac_objext
  4262. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4263. done
  4264. rm -f conftest.$ac_ext
  4265. CC=$ac_save_CC
  4266. fi
  4267. # AC_CACHE_VAL
  4268. case "x$ac_cv_prog_cc_c89" in
  4269. x)
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4271. $as_echo "none needed" >&6; } ;;
  4272. xno)
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4274. $as_echo "unsupported" >&6; } ;;
  4275. *)
  4276. CC="$CC $ac_cv_prog_cc_c89"
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4278. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4279. esac
  4280. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4281. fi
  4282. ac_ext=c
  4283. ac_cpp='$CPP $CPPFLAGS'
  4284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4287. depcc="$CC" am_compiler_list=
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4289. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4290. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4294. # We make a subdir and do the tests there. Otherwise we can end up
  4295. # making bogus files that we don't know about and never remove. For
  4296. # instance it was reported that on HP-UX the gcc test will end up
  4297. # making a dummy file named 'D' -- because '-MD' means "put the output
  4298. # in D".
  4299. rm -rf conftest.dir
  4300. mkdir conftest.dir
  4301. # Copy depcomp to subdir because otherwise we won't find it if we're
  4302. # using a relative directory.
  4303. cp "$am_depcomp" conftest.dir
  4304. cd conftest.dir
  4305. # We will build objects and dependencies in a subdirectory because
  4306. # it helps to detect inapplicable dependency modes. For instance
  4307. # both Tru64's cc and ICC support -MD to output dependencies as a
  4308. # side effect of compilation, but ICC will put the dependencies in
  4309. # the current directory while Tru64 will put them in the object
  4310. # directory.
  4311. mkdir sub
  4312. am_cv_CC_dependencies_compiler_type=none
  4313. if test "$am_compiler_list" = ""; then
  4314. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4315. fi
  4316. am__universal=false
  4317. case " $depcc " in #(
  4318. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4319. esac
  4320. for depmode in $am_compiler_list; do
  4321. # Setup a source with many dependencies, because some compilers
  4322. # like to wrap large dependency lists on column 80 (with \), and
  4323. # we should not choose a depcomp mode which is confused by this.
  4324. #
  4325. # We need to recreate these files for each test, as the compiler may
  4326. # overwrite some of them when testing with obscure command lines.
  4327. # This happens at least with the AIX C compiler.
  4328. : > sub/conftest.c
  4329. for i in 1 2 3 4 5 6; do
  4330. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4331. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4332. # Solaris 10 /bin/sh.
  4333. echo '/* dummy */' > sub/conftst$i.h
  4334. done
  4335. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4336. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4337. # mode. It turns out that the SunPro C++ compiler does not properly
  4338. # handle '-M -o', and we need to detect this. Also, some Intel
  4339. # versions had trouble with output in subdirs.
  4340. am__obj=sub/conftest.${OBJEXT-o}
  4341. am__minus_obj="-o $am__obj"
  4342. case $depmode in
  4343. gcc)
  4344. # This depmode causes a compiler race in universal mode.
  4345. test "$am__universal" = false || continue
  4346. ;;
  4347. nosideeffect)
  4348. # After this tag, mechanisms are not by side-effect, so they'll
  4349. # only be used when explicitly requested.
  4350. if test "x$enable_dependency_tracking" = xyes; then
  4351. continue
  4352. else
  4353. break
  4354. fi
  4355. ;;
  4356. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4357. # This compiler won't grok '-c -o', but also, the minuso test has
  4358. # not run yet. These depmodes are late enough in the game, and
  4359. # so weak that their functioning should not be impacted.
  4360. am__obj=conftest.${OBJEXT-o}
  4361. am__minus_obj=
  4362. ;;
  4363. none) break ;;
  4364. esac
  4365. if depmode=$depmode \
  4366. source=sub/conftest.c object=$am__obj \
  4367. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4368. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4369. >/dev/null 2>conftest.err &&
  4370. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4371. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4372. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4373. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4374. # icc doesn't choke on unknown options, it will just issue warnings
  4375. # or remarks (even with -Werror). So we grep stderr for any message
  4376. # that says an option was ignored or not supported.
  4377. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4378. # icc: Command line warning: ignoring option '-M'; no argument required
  4379. # The diagnosis changed in icc 8.0:
  4380. # icc: Command line remark: option '-MP' not supported
  4381. if (grep 'ignoring option' conftest.err ||
  4382. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4383. am_cv_CC_dependencies_compiler_type=$depmode
  4384. break
  4385. fi
  4386. fi
  4387. done
  4388. cd ..
  4389. rm -rf conftest.dir
  4390. else
  4391. am_cv_CC_dependencies_compiler_type=none
  4392. fi
  4393. fi
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4395. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4396. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4397. if
  4398. test "x$enable_dependency_tracking" != xno \
  4399. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4400. am__fastdepCC_TRUE=
  4401. am__fastdepCC_FALSE='#'
  4402. else
  4403. am__fastdepCC_TRUE='#'
  4404. am__fastdepCC_FALSE=
  4405. fi
  4406. if test "x$CC" != xcc; then
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4408. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4409. else
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4411. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4412. fi
  4413. set dummy $CC; ac_cc=`$as_echo "$2" |
  4414. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4415. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4416. $as_echo_n "(cached) " >&6
  4417. else
  4418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4419. /* end confdefs.h. */
  4420. int
  4421. main ()
  4422. {
  4423. ;
  4424. return 0;
  4425. }
  4426. _ACEOF
  4427. # Make sure it works both with $CC and with simple cc.
  4428. # We do the test twice because some compilers refuse to overwrite an
  4429. # existing .o file with -o, though they will create one.
  4430. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4431. rm -f conftest2.*
  4432. if { { case "(($ac_try" in
  4433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4434. *) ac_try_echo=$ac_try;;
  4435. esac
  4436. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4437. $as_echo "$ac_try_echo"; } >&5
  4438. (eval "$ac_try") 2>&5
  4439. ac_status=$?
  4440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4441. test $ac_status = 0; } &&
  4442. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4444. *) ac_try_echo=$ac_try;;
  4445. esac
  4446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4447. $as_echo "$ac_try_echo"; } >&5
  4448. (eval "$ac_try") 2>&5
  4449. ac_status=$?
  4450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4451. test $ac_status = 0; };
  4452. then
  4453. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4454. if test "x$CC" != xcc; then
  4455. # Test first that cc exists at all.
  4456. if { ac_try='cc -c conftest.$ac_ext >&5'
  4457. { { case "(($ac_try" in
  4458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4459. *) ac_try_echo=$ac_try;;
  4460. esac
  4461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4462. $as_echo "$ac_try_echo"; } >&5
  4463. (eval "$ac_try") 2>&5
  4464. ac_status=$?
  4465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4466. test $ac_status = 0; }; }; then
  4467. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4468. rm -f conftest2.*
  4469. if { { case "(($ac_try" in
  4470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4471. *) ac_try_echo=$ac_try;;
  4472. esac
  4473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4474. $as_echo "$ac_try_echo"; } >&5
  4475. (eval "$ac_try") 2>&5
  4476. ac_status=$?
  4477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4478. test $ac_status = 0; } &&
  4479. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4481. *) ac_try_echo=$ac_try;;
  4482. esac
  4483. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4484. $as_echo "$ac_try_echo"; } >&5
  4485. (eval "$ac_try") 2>&5
  4486. ac_status=$?
  4487. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4488. test $ac_status = 0; };
  4489. then
  4490. # cc works too.
  4491. :
  4492. else
  4493. # cc exists but doesn't like -o.
  4494. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4495. fi
  4496. fi
  4497. fi
  4498. else
  4499. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4500. fi
  4501. rm -f core conftest*
  4502. fi
  4503. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4505. $as_echo "yes" >&6; }
  4506. else
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4508. $as_echo "no" >&6; }
  4509. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4510. fi
  4511. # FIXME: we rely on the cache variable name because
  4512. # there is no other way.
  4513. set dummy $CC
  4514. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4515. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4516. if test "$am_t" != yes; then
  4517. # Losing compiler, so override with the script.
  4518. # FIXME: It is wrong to rewrite CC.
  4519. # But if we don't then we get into trouble of one sort or another.
  4520. # A longer-term fix would be to have automake use am__CC in this case,
  4521. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4522. CC="$am_aux_dir/compile $CC"
  4523. fi
  4524. # By default we simply use the C compiler to build assembly code.
  4525. test "${CCAS+set}" = set || CCAS=$CC
  4526. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4527. depcc="$CCAS" am_compiler_list=
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4529. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4530. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4534. # We make a subdir and do the tests there. Otherwise we can end up
  4535. # making bogus files that we don't know about and never remove. For
  4536. # instance it was reported that on HP-UX the gcc test will end up
  4537. # making a dummy file named 'D' -- because '-MD' means "put the output
  4538. # in D".
  4539. rm -rf conftest.dir
  4540. mkdir conftest.dir
  4541. # Copy depcomp to subdir because otherwise we won't find it if we're
  4542. # using a relative directory.
  4543. cp "$am_depcomp" conftest.dir
  4544. cd conftest.dir
  4545. # We will build objects and dependencies in a subdirectory because
  4546. # it helps to detect inapplicable dependency modes. For instance
  4547. # both Tru64's cc and ICC support -MD to output dependencies as a
  4548. # side effect of compilation, but ICC will put the dependencies in
  4549. # the current directory while Tru64 will put them in the object
  4550. # directory.
  4551. mkdir sub
  4552. am_cv_CCAS_dependencies_compiler_type=none
  4553. if test "$am_compiler_list" = ""; then
  4554. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4555. fi
  4556. am__universal=false
  4557. for depmode in $am_compiler_list; do
  4558. # Setup a source with many dependencies, because some compilers
  4559. # like to wrap large dependency lists on column 80 (with \), and
  4560. # we should not choose a depcomp mode which is confused by this.
  4561. #
  4562. # We need to recreate these files for each test, as the compiler may
  4563. # overwrite some of them when testing with obscure command lines.
  4564. # This happens at least with the AIX C compiler.
  4565. : > sub/conftest.c
  4566. for i in 1 2 3 4 5 6; do
  4567. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4568. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4569. # Solaris 10 /bin/sh.
  4570. echo '/* dummy */' > sub/conftst$i.h
  4571. done
  4572. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4573. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4574. # mode. It turns out that the SunPro C++ compiler does not properly
  4575. # handle '-M -o', and we need to detect this. Also, some Intel
  4576. # versions had trouble with output in subdirs.
  4577. am__obj=sub/conftest.${OBJEXT-o}
  4578. am__minus_obj="-o $am__obj"
  4579. case $depmode in
  4580. gcc)
  4581. # This depmode causes a compiler race in universal mode.
  4582. test "$am__universal" = false || continue
  4583. ;;
  4584. nosideeffect)
  4585. # After this tag, mechanisms are not by side-effect, so they'll
  4586. # only be used when explicitly requested.
  4587. if test "x$enable_dependency_tracking" = xyes; then
  4588. continue
  4589. else
  4590. break
  4591. fi
  4592. ;;
  4593. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4594. # This compiler won't grok '-c -o', but also, the minuso test has
  4595. # not run yet. These depmodes are late enough in the game, and
  4596. # so weak that their functioning should not be impacted.
  4597. am__obj=conftest.${OBJEXT-o}
  4598. am__minus_obj=
  4599. ;;
  4600. none) break ;;
  4601. esac
  4602. if depmode=$depmode \
  4603. source=sub/conftest.c object=$am__obj \
  4604. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4605. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4606. >/dev/null 2>conftest.err &&
  4607. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4608. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4609. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4610. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4611. # icc doesn't choke on unknown options, it will just issue warnings
  4612. # or remarks (even with -Werror). So we grep stderr for any message
  4613. # that says an option was ignored or not supported.
  4614. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4615. # icc: Command line warning: ignoring option '-M'; no argument required
  4616. # The diagnosis changed in icc 8.0:
  4617. # icc: Command line remark: option '-MP' not supported
  4618. if (grep 'ignoring option' conftest.err ||
  4619. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4620. am_cv_CCAS_dependencies_compiler_type=$depmode
  4621. break
  4622. fi
  4623. fi
  4624. done
  4625. cd ..
  4626. rm -rf conftest.dir
  4627. else
  4628. am_cv_CCAS_dependencies_compiler_type=none
  4629. fi
  4630. fi
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4632. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4633. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4634. if
  4635. test "x$enable_dependency_tracking" != xno \
  4636. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4637. am__fastdepCCAS_TRUE=
  4638. am__fastdepCCAS_FALSE='#'
  4639. else
  4640. am__fastdepCCAS_TRUE='#'
  4641. am__fastdepCCAS_FALSE=
  4642. fi
  4643. # disable static libs by default - we only use a couple
  4644. # Check whether --enable-static was given.
  4645. if test "${enable_static+set}" = set; then :
  4646. enableval=$enable_static; p=${PACKAGE-default}
  4647. case $enableval in
  4648. yes) enable_static=yes ;;
  4649. no) enable_static=no ;;
  4650. *)
  4651. enable_static=no
  4652. # Look at the argument we got. We use all the common list separators.
  4653. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4654. for pkg in $enableval; do
  4655. IFS="$lt_save_ifs"
  4656. if test "X$pkg" = "X$p"; then
  4657. enable_static=yes
  4658. fi
  4659. done
  4660. IFS="$lt_save_ifs"
  4661. ;;
  4662. esac
  4663. else
  4664. enable_static=no
  4665. fi
  4666. case `pwd` in
  4667. *\ * | *\ *)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4669. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4670. esac
  4671. macro_version='2.4.2'
  4672. macro_revision='1.3337'
  4673. ltmain="$ac_aux_dir/ltmain.sh"
  4674. # Backslashify metacharacters that are still active within
  4675. # double-quoted strings.
  4676. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4677. # Same as above, but do not quote variable references.
  4678. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4679. # Sed substitution to delay expansion of an escaped shell variable in a
  4680. # double_quote_subst'ed string.
  4681. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4682. # Sed substitution to delay expansion of an escaped single quote.
  4683. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4684. # Sed substitution to avoid accidental globbing in evaled expressions
  4685. no_glob_subst='s/\*/\\\*/g'
  4686. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4687. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4688. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4690. $as_echo_n "checking how to print strings... " >&6; }
  4691. # Test print first, because it will be a builtin if present.
  4692. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4693. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4694. ECHO='print -r --'
  4695. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4696. ECHO='printf %s\n'
  4697. else
  4698. # Use this function as a fallback that always works.
  4699. func_fallback_echo ()
  4700. {
  4701. eval 'cat <<_LTECHO_EOF
  4702. $1
  4703. _LTECHO_EOF'
  4704. }
  4705. ECHO='func_fallback_echo'
  4706. fi
  4707. # func_echo_all arg...
  4708. # Invoke $ECHO with all args, space-separated.
  4709. func_echo_all ()
  4710. {
  4711. $ECHO ""
  4712. }
  4713. case "$ECHO" in
  4714. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4715. $as_echo "printf" >&6; } ;;
  4716. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4717. $as_echo "print -r" >&6; } ;;
  4718. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4719. $as_echo "cat" >&6; } ;;
  4720. esac
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4722. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4723. if ${ac_cv_path_SED+:} false; then :
  4724. $as_echo_n "(cached) " >&6
  4725. else
  4726. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4727. for ac_i in 1 2 3 4 5 6 7; do
  4728. ac_script="$ac_script$as_nl$ac_script"
  4729. done
  4730. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4731. { ac_script=; unset ac_script;}
  4732. if test -z "$SED"; then
  4733. ac_path_SED_found=false
  4734. # Loop through the user's path and test for each of PROGNAME-LIST
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_prog in sed gsed; do
  4741. for ac_exec_ext in '' $ac_executable_extensions; do
  4742. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4743. as_fn_executable_p "$ac_path_SED" || continue
  4744. # Check for GNU ac_path_SED and select it if it is found.
  4745. # Check for GNU $ac_path_SED
  4746. case `"$ac_path_SED" --version 2>&1` in
  4747. *GNU*)
  4748. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4749. *)
  4750. ac_count=0
  4751. $as_echo_n 0123456789 >"conftest.in"
  4752. while :
  4753. do
  4754. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4755. mv "conftest.tmp" "conftest.in"
  4756. cp "conftest.in" "conftest.nl"
  4757. $as_echo '' >> "conftest.nl"
  4758. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4759. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4760. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4761. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4762. # Best one so far, save it but keep looking for a better one
  4763. ac_cv_path_SED="$ac_path_SED"
  4764. ac_path_SED_max=$ac_count
  4765. fi
  4766. # 10*(2^10) chars as input seems more than enough
  4767. test $ac_count -gt 10 && break
  4768. done
  4769. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4770. esac
  4771. $ac_path_SED_found && break 3
  4772. done
  4773. done
  4774. done
  4775. IFS=$as_save_IFS
  4776. if test -z "$ac_cv_path_SED"; then
  4777. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4778. fi
  4779. else
  4780. ac_cv_path_SED=$SED
  4781. fi
  4782. fi
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4784. $as_echo "$ac_cv_path_SED" >&6; }
  4785. SED="$ac_cv_path_SED"
  4786. rm -f conftest.sed
  4787. test -z "$SED" && SED=sed
  4788. Xsed="$SED -e 1s/^X//"
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4790. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4791. if ${ac_cv_path_GREP+:} false; then :
  4792. $as_echo_n "(cached) " >&6
  4793. else
  4794. if test -z "$GREP"; then
  4795. ac_path_GREP_found=false
  4796. # Loop through the user's path and test for each of PROGNAME-LIST
  4797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4798. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4799. do
  4800. IFS=$as_save_IFS
  4801. test -z "$as_dir" && as_dir=.
  4802. for ac_prog in grep ggrep; do
  4803. for ac_exec_ext in '' $ac_executable_extensions; do
  4804. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4805. as_fn_executable_p "$ac_path_GREP" || continue
  4806. # Check for GNU ac_path_GREP and select it if it is found.
  4807. # Check for GNU $ac_path_GREP
  4808. case `"$ac_path_GREP" --version 2>&1` in
  4809. *GNU*)
  4810. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4811. *)
  4812. ac_count=0
  4813. $as_echo_n 0123456789 >"conftest.in"
  4814. while :
  4815. do
  4816. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4817. mv "conftest.tmp" "conftest.in"
  4818. cp "conftest.in" "conftest.nl"
  4819. $as_echo 'GREP' >> "conftest.nl"
  4820. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4821. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4822. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4823. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4824. # Best one so far, save it but keep looking for a better one
  4825. ac_cv_path_GREP="$ac_path_GREP"
  4826. ac_path_GREP_max=$ac_count
  4827. fi
  4828. # 10*(2^10) chars as input seems more than enough
  4829. test $ac_count -gt 10 && break
  4830. done
  4831. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4832. esac
  4833. $ac_path_GREP_found && break 3
  4834. done
  4835. done
  4836. done
  4837. IFS=$as_save_IFS
  4838. if test -z "$ac_cv_path_GREP"; then
  4839. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4840. fi
  4841. else
  4842. ac_cv_path_GREP=$GREP
  4843. fi
  4844. fi
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4846. $as_echo "$ac_cv_path_GREP" >&6; }
  4847. GREP="$ac_cv_path_GREP"
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4849. $as_echo_n "checking for egrep... " >&6; }
  4850. if ${ac_cv_path_EGREP+:} false; then :
  4851. $as_echo_n "(cached) " >&6
  4852. else
  4853. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4854. then ac_cv_path_EGREP="$GREP -E"
  4855. else
  4856. if test -z "$EGREP"; then
  4857. ac_path_EGREP_found=false
  4858. # Loop through the user's path and test for each of PROGNAME-LIST
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_prog in egrep; do
  4865. for ac_exec_ext in '' $ac_executable_extensions; do
  4866. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4867. as_fn_executable_p "$ac_path_EGREP" || continue
  4868. # Check for GNU ac_path_EGREP and select it if it is found.
  4869. # Check for GNU $ac_path_EGREP
  4870. case `"$ac_path_EGREP" --version 2>&1` in
  4871. *GNU*)
  4872. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4873. *)
  4874. ac_count=0
  4875. $as_echo_n 0123456789 >"conftest.in"
  4876. while :
  4877. do
  4878. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4879. mv "conftest.tmp" "conftest.in"
  4880. cp "conftest.in" "conftest.nl"
  4881. $as_echo 'EGREP' >> "conftest.nl"
  4882. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4883. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4884. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4885. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4886. # Best one so far, save it but keep looking for a better one
  4887. ac_cv_path_EGREP="$ac_path_EGREP"
  4888. ac_path_EGREP_max=$ac_count
  4889. fi
  4890. # 10*(2^10) chars as input seems more than enough
  4891. test $ac_count -gt 10 && break
  4892. done
  4893. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4894. esac
  4895. $ac_path_EGREP_found && break 3
  4896. done
  4897. done
  4898. done
  4899. IFS=$as_save_IFS
  4900. if test -z "$ac_cv_path_EGREP"; then
  4901. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4902. fi
  4903. else
  4904. ac_cv_path_EGREP=$EGREP
  4905. fi
  4906. fi
  4907. fi
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4909. $as_echo "$ac_cv_path_EGREP" >&6; }
  4910. EGREP="$ac_cv_path_EGREP"
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4912. $as_echo_n "checking for fgrep... " >&6; }
  4913. if ${ac_cv_path_FGREP+:} false; then :
  4914. $as_echo_n "(cached) " >&6
  4915. else
  4916. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4917. then ac_cv_path_FGREP="$GREP -F"
  4918. else
  4919. if test -z "$FGREP"; then
  4920. ac_path_FGREP_found=false
  4921. # Loop through the user's path and test for each of PROGNAME-LIST
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_prog in fgrep; do
  4928. for ac_exec_ext in '' $ac_executable_extensions; do
  4929. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4930. as_fn_executable_p "$ac_path_FGREP" || continue
  4931. # Check for GNU ac_path_FGREP and select it if it is found.
  4932. # Check for GNU $ac_path_FGREP
  4933. case `"$ac_path_FGREP" --version 2>&1` in
  4934. *GNU*)
  4935. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4936. *)
  4937. ac_count=0
  4938. $as_echo_n 0123456789 >"conftest.in"
  4939. while :
  4940. do
  4941. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4942. mv "conftest.tmp" "conftest.in"
  4943. cp "conftest.in" "conftest.nl"
  4944. $as_echo 'FGREP' >> "conftest.nl"
  4945. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4946. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4947. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4948. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4949. # Best one so far, save it but keep looking for a better one
  4950. ac_cv_path_FGREP="$ac_path_FGREP"
  4951. ac_path_FGREP_max=$ac_count
  4952. fi
  4953. # 10*(2^10) chars as input seems more than enough
  4954. test $ac_count -gt 10 && break
  4955. done
  4956. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4957. esac
  4958. $ac_path_FGREP_found && break 3
  4959. done
  4960. done
  4961. done
  4962. IFS=$as_save_IFS
  4963. if test -z "$ac_cv_path_FGREP"; then
  4964. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4965. fi
  4966. else
  4967. ac_cv_path_FGREP=$FGREP
  4968. fi
  4969. fi
  4970. fi
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4972. $as_echo "$ac_cv_path_FGREP" >&6; }
  4973. FGREP="$ac_cv_path_FGREP"
  4974. test -z "$GREP" && GREP=grep
  4975. # Check whether --with-gnu-ld was given.
  4976. if test "${with_gnu_ld+set}" = set; then :
  4977. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4978. else
  4979. with_gnu_ld=no
  4980. fi
  4981. ac_prog=ld
  4982. if test "$GCC" = yes; then
  4983. # Check if gcc -print-prog-name=ld gives a path.
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4985. $as_echo_n "checking for ld used by $CC... " >&6; }
  4986. case $host in
  4987. *-*-mingw*)
  4988. # gcc leaves a trailing carriage return which upsets mingw
  4989. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4990. *)
  4991. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4992. esac
  4993. case $ac_prog in
  4994. # Accept absolute paths.
  4995. [\\/]* | ?:[\\/]*)
  4996. re_direlt='/[^/][^/]*/\.\./'
  4997. # Canonicalize the pathname of ld
  4998. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4999. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5000. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5001. done
  5002. test -z "$LD" && LD="$ac_prog"
  5003. ;;
  5004. "")
  5005. # If it fails, then pretend we aren't using GCC.
  5006. ac_prog=ld
  5007. ;;
  5008. *)
  5009. # If it is relative, then search for the first ld in PATH.
  5010. with_gnu_ld=unknown
  5011. ;;
  5012. esac
  5013. elif test "$with_gnu_ld" = yes; then
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5015. $as_echo_n "checking for GNU ld... " >&6; }
  5016. else
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5018. $as_echo_n "checking for non-GNU ld... " >&6; }
  5019. fi
  5020. if ${lt_cv_path_LD+:} false; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. if test -z "$LD"; then
  5024. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5025. for ac_dir in $PATH; do
  5026. IFS="$lt_save_ifs"
  5027. test -z "$ac_dir" && ac_dir=.
  5028. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5029. lt_cv_path_LD="$ac_dir/$ac_prog"
  5030. # Check to see if the program is GNU ld. I'd rather use --version,
  5031. # but apparently some variants of GNU ld only accept -v.
  5032. # Break only if it was the GNU/non-GNU ld that we prefer.
  5033. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5034. *GNU* | *'with BFD'*)
  5035. test "$with_gnu_ld" != no && break
  5036. ;;
  5037. *)
  5038. test "$with_gnu_ld" != yes && break
  5039. ;;
  5040. esac
  5041. fi
  5042. done
  5043. IFS="$lt_save_ifs"
  5044. else
  5045. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5046. fi
  5047. fi
  5048. LD="$lt_cv_path_LD"
  5049. if test -n "$LD"; then
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5051. $as_echo "$LD" >&6; }
  5052. else
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5054. $as_echo "no" >&6; }
  5055. fi
  5056. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5058. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5059. if ${lt_cv_prog_gnu_ld+:} false; then :
  5060. $as_echo_n "(cached) " >&6
  5061. else
  5062. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5063. case `$LD -v 2>&1 </dev/null` in
  5064. *GNU* | *'with BFD'*)
  5065. lt_cv_prog_gnu_ld=yes
  5066. ;;
  5067. *)
  5068. lt_cv_prog_gnu_ld=no
  5069. ;;
  5070. esac
  5071. fi
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5073. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5074. with_gnu_ld=$lt_cv_prog_gnu_ld
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5076. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5077. if ${lt_cv_path_NM+:} false; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. if test -n "$NM"; then
  5081. # Let the user override the test.
  5082. lt_cv_path_NM="$NM"
  5083. else
  5084. lt_nm_to_check="${ac_tool_prefix}nm"
  5085. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5086. lt_nm_to_check="$lt_nm_to_check nm"
  5087. fi
  5088. for lt_tmp_nm in $lt_nm_to_check; do
  5089. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5090. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5091. IFS="$lt_save_ifs"
  5092. test -z "$ac_dir" && ac_dir=.
  5093. tmp_nm="$ac_dir/$lt_tmp_nm"
  5094. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5095. # Check to see if the nm accepts a BSD-compat flag.
  5096. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5097. # nm: unknown option "B" ignored
  5098. # Tru64's nm complains that /dev/null is an invalid object file
  5099. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5100. */dev/null* | *'Invalid file or object type'*)
  5101. lt_cv_path_NM="$tmp_nm -B"
  5102. break
  5103. ;;
  5104. *)
  5105. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5106. */dev/null*)
  5107. lt_cv_path_NM="$tmp_nm -p"
  5108. break
  5109. ;;
  5110. *)
  5111. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5112. continue # so that we can try to find one that supports BSD flags
  5113. ;;
  5114. esac
  5115. ;;
  5116. esac
  5117. fi
  5118. done
  5119. IFS="$lt_save_ifs"
  5120. done
  5121. : ${lt_cv_path_NM=no}
  5122. fi
  5123. fi
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5125. $as_echo "$lt_cv_path_NM" >&6; }
  5126. if test "$lt_cv_path_NM" != "no"; then
  5127. NM="$lt_cv_path_NM"
  5128. else
  5129. # Didn't find any BSD compatible name lister, look for dumpbin.
  5130. if test -n "$DUMPBIN"; then :
  5131. # Let the user override the test.
  5132. else
  5133. if test -n "$ac_tool_prefix"; then
  5134. for ac_prog in dumpbin "link -dump"
  5135. do
  5136. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5137. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5139. $as_echo_n "checking for $ac_word... " >&6; }
  5140. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5141. $as_echo_n "(cached) " >&6
  5142. else
  5143. if test -n "$DUMPBIN"; then
  5144. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5145. else
  5146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5147. for as_dir in $PATH
  5148. do
  5149. IFS=$as_save_IFS
  5150. test -z "$as_dir" && as_dir=.
  5151. for ac_exec_ext in '' $ac_executable_extensions; do
  5152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5153. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5155. break 2
  5156. fi
  5157. done
  5158. done
  5159. IFS=$as_save_IFS
  5160. fi
  5161. fi
  5162. DUMPBIN=$ac_cv_prog_DUMPBIN
  5163. if test -n "$DUMPBIN"; then
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5165. $as_echo "$DUMPBIN" >&6; }
  5166. else
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5168. $as_echo "no" >&6; }
  5169. fi
  5170. test -n "$DUMPBIN" && break
  5171. done
  5172. fi
  5173. if test -z "$DUMPBIN"; then
  5174. ac_ct_DUMPBIN=$DUMPBIN
  5175. for ac_prog in dumpbin "link -dump"
  5176. do
  5177. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5178. set dummy $ac_prog; ac_word=$2
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5180. $as_echo_n "checking for $ac_word... " >&6; }
  5181. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5182. $as_echo_n "(cached) " >&6
  5183. else
  5184. if test -n "$ac_ct_DUMPBIN"; then
  5185. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5186. else
  5187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5188. for as_dir in $PATH
  5189. do
  5190. IFS=$as_save_IFS
  5191. test -z "$as_dir" && as_dir=.
  5192. for ac_exec_ext in '' $ac_executable_extensions; do
  5193. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5194. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5196. break 2
  5197. fi
  5198. done
  5199. done
  5200. IFS=$as_save_IFS
  5201. fi
  5202. fi
  5203. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5204. if test -n "$ac_ct_DUMPBIN"; then
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5206. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5207. else
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5209. $as_echo "no" >&6; }
  5210. fi
  5211. test -n "$ac_ct_DUMPBIN" && break
  5212. done
  5213. if test "x$ac_ct_DUMPBIN" = x; then
  5214. DUMPBIN=":"
  5215. else
  5216. case $cross_compiling:$ac_tool_warned in
  5217. yes:)
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5220. ac_tool_warned=yes ;;
  5221. esac
  5222. DUMPBIN=$ac_ct_DUMPBIN
  5223. fi
  5224. fi
  5225. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5226. *COFF*)
  5227. DUMPBIN="$DUMPBIN -symbols"
  5228. ;;
  5229. *)
  5230. DUMPBIN=:
  5231. ;;
  5232. esac
  5233. fi
  5234. if test "$DUMPBIN" != ":"; then
  5235. NM="$DUMPBIN"
  5236. fi
  5237. fi
  5238. test -z "$NM" && NM=nm
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5240. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5241. if ${lt_cv_nm_interface+:} false; then :
  5242. $as_echo_n "(cached) " >&6
  5243. else
  5244. lt_cv_nm_interface="BSD nm"
  5245. echo "int some_variable = 0;" > conftest.$ac_ext
  5246. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5247. (eval "$ac_compile" 2>conftest.err)
  5248. cat conftest.err >&5
  5249. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5250. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5251. cat conftest.err >&5
  5252. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5253. cat conftest.out >&5
  5254. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5255. lt_cv_nm_interface="MS dumpbin"
  5256. fi
  5257. rm -f conftest*
  5258. fi
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5260. $as_echo "$lt_cv_nm_interface" >&6; }
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5262. $as_echo_n "checking whether ln -s works... " >&6; }
  5263. LN_S=$as_ln_s
  5264. if test "$LN_S" = "ln -s"; then
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5266. $as_echo "yes" >&6; }
  5267. else
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5269. $as_echo "no, using $LN_S" >&6; }
  5270. fi
  5271. # find the maximum length of command line arguments
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5273. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5274. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5275. $as_echo_n "(cached) " >&6
  5276. else
  5277. i=0
  5278. teststring="ABCD"
  5279. case $build_os in
  5280. msdosdjgpp*)
  5281. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5282. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5283. # during glob expansion). Even if it were fixed, the result of this
  5284. # check would be larger than it should be.
  5285. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5286. ;;
  5287. gnu*)
  5288. # Under GNU Hurd, this test is not required because there is
  5289. # no limit to the length of command line arguments.
  5290. # Libtool will interpret -1 as no limit whatsoever
  5291. lt_cv_sys_max_cmd_len=-1;
  5292. ;;
  5293. cygwin* | mingw* | cegcc*)
  5294. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5295. # about 5 minutes as the teststring grows exponentially.
  5296. # Worse, since 9x/ME are not pre-emptively multitasking,
  5297. # you end up with a "frozen" computer, even though with patience
  5298. # the test eventually succeeds (with a max line length of 256k).
  5299. # Instead, let's just punt: use the minimum linelength reported by
  5300. # all of the supported platforms: 8192 (on NT/2K/XP).
  5301. lt_cv_sys_max_cmd_len=8192;
  5302. ;;
  5303. mint*)
  5304. # On MiNT this can take a long time and run out of memory.
  5305. lt_cv_sys_max_cmd_len=8192;
  5306. ;;
  5307. amigaos*)
  5308. # On AmigaOS with pdksh, this test takes hours, literally.
  5309. # So we just punt and use a minimum line length of 8192.
  5310. lt_cv_sys_max_cmd_len=8192;
  5311. ;;
  5312. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5313. # This has been around since 386BSD, at least. Likely further.
  5314. if test -x /sbin/sysctl; then
  5315. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5316. elif test -x /usr/sbin/sysctl; then
  5317. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5318. else
  5319. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5320. fi
  5321. # And add a safety zone
  5322. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5323. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5324. ;;
  5325. interix*)
  5326. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5327. lt_cv_sys_max_cmd_len=196608
  5328. ;;
  5329. os2*)
  5330. # The test takes a long time on OS/2.
  5331. lt_cv_sys_max_cmd_len=8192
  5332. ;;
  5333. osf*)
  5334. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5335. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5336. # nice to cause kernel panics so lets avoid the loop below.
  5337. # First set a reasonable default.
  5338. lt_cv_sys_max_cmd_len=16384
  5339. #
  5340. if test -x /sbin/sysconfig; then
  5341. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5342. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5343. esac
  5344. fi
  5345. ;;
  5346. sco3.2v5*)
  5347. lt_cv_sys_max_cmd_len=102400
  5348. ;;
  5349. sysv5* | sco5v6* | sysv4.2uw2*)
  5350. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5351. if test -n "$kargmax"; then
  5352. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5353. else
  5354. lt_cv_sys_max_cmd_len=32768
  5355. fi
  5356. ;;
  5357. *)
  5358. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5359. if test -n "$lt_cv_sys_max_cmd_len"; then
  5360. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5361. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5362. else
  5363. # Make teststring a little bigger before we do anything with it.
  5364. # a 1K string should be a reasonable start.
  5365. for i in 1 2 3 4 5 6 7 8 ; do
  5366. teststring=$teststring$teststring
  5367. done
  5368. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5369. # If test is not a shell built-in, we'll probably end up computing a
  5370. # maximum length that is only half of the actual maximum length, but
  5371. # we can't tell.
  5372. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5373. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5374. test $i != 17 # 1/2 MB should be enough
  5375. do
  5376. i=`expr $i + 1`
  5377. teststring=$teststring$teststring
  5378. done
  5379. # Only check the string length outside the loop.
  5380. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5381. teststring=
  5382. # Add a significant safety factor because C++ compilers can tack on
  5383. # massive amounts of additional arguments before passing them to the
  5384. # linker. It appears as though 1/2 is a usable value.
  5385. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5386. fi
  5387. ;;
  5388. esac
  5389. fi
  5390. if test -n $lt_cv_sys_max_cmd_len ; then
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5392. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5393. else
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5395. $as_echo "none" >&6; }
  5396. fi
  5397. max_cmd_len=$lt_cv_sys_max_cmd_len
  5398. : ${CP="cp -f"}
  5399. : ${MV="mv -f"}
  5400. : ${RM="rm -f"}
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5402. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5403. # Try some XSI features
  5404. xsi_shell=no
  5405. ( _lt_dummy="a/b/c"
  5406. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5407. = c,a/b,b/c, \
  5408. && eval 'test $(( 1 + 1 )) -eq 2 \
  5409. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5410. && xsi_shell=yes
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5412. $as_echo "$xsi_shell" >&6; }
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5414. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5415. lt_shell_append=no
  5416. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5417. >/dev/null 2>&1 \
  5418. && lt_shell_append=yes
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5420. $as_echo "$lt_shell_append" >&6; }
  5421. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5422. lt_unset=unset
  5423. else
  5424. lt_unset=false
  5425. fi
  5426. # test EBCDIC or ASCII
  5427. case `echo X|tr X '\101'` in
  5428. A) # ASCII based system
  5429. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5430. lt_SP2NL='tr \040 \012'
  5431. lt_NL2SP='tr \015\012 \040\040'
  5432. ;;
  5433. *) # EBCDIC based system
  5434. lt_SP2NL='tr \100 \n'
  5435. lt_NL2SP='tr \r\n \100\100'
  5436. ;;
  5437. esac
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5439. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5440. if ${lt_cv_to_host_file_cmd+:} false; then :
  5441. $as_echo_n "(cached) " >&6
  5442. else
  5443. case $host in
  5444. *-*-mingw* )
  5445. case $build in
  5446. *-*-mingw* ) # actually msys
  5447. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5448. ;;
  5449. *-*-cygwin* )
  5450. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5451. ;;
  5452. * ) # otherwise, assume *nix
  5453. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5454. ;;
  5455. esac
  5456. ;;
  5457. *-*-cygwin* )
  5458. case $build in
  5459. *-*-mingw* ) # actually msys
  5460. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5461. ;;
  5462. *-*-cygwin* )
  5463. lt_cv_to_host_file_cmd=func_convert_file_noop
  5464. ;;
  5465. * ) # otherwise, assume *nix
  5466. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5467. ;;
  5468. esac
  5469. ;;
  5470. * ) # unhandled hosts (and "normal" native builds)
  5471. lt_cv_to_host_file_cmd=func_convert_file_noop
  5472. ;;
  5473. esac
  5474. fi
  5475. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5477. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5479. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5480. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. #assume ordinary cross tools, or native build.
  5484. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5485. case $host in
  5486. *-*-mingw* )
  5487. case $build in
  5488. *-*-mingw* ) # actually msys
  5489. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5490. ;;
  5491. esac
  5492. ;;
  5493. esac
  5494. fi
  5495. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5497. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5499. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5500. if ${lt_cv_ld_reload_flag+:} false; then :
  5501. $as_echo_n "(cached) " >&6
  5502. else
  5503. lt_cv_ld_reload_flag='-r'
  5504. fi
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5506. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5507. reload_flag=$lt_cv_ld_reload_flag
  5508. case $reload_flag in
  5509. "" | " "*) ;;
  5510. *) reload_flag=" $reload_flag" ;;
  5511. esac
  5512. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5513. case $host_os in
  5514. cygwin* | mingw* | pw32* | cegcc*)
  5515. if test "$GCC" != yes; then
  5516. reload_cmds=false
  5517. fi
  5518. ;;
  5519. darwin*)
  5520. if test "$GCC" = yes; then
  5521. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5522. else
  5523. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5524. fi
  5525. ;;
  5526. esac
  5527. if test -n "$ac_tool_prefix"; then
  5528. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5529. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5531. $as_echo_n "checking for $ac_word... " >&6; }
  5532. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. if test -n "$OBJDUMP"; then
  5536. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. test -z "$as_dir" && as_dir=.
  5543. for ac_exec_ext in '' $ac_executable_extensions; do
  5544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5545. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5547. break 2
  5548. fi
  5549. done
  5550. done
  5551. IFS=$as_save_IFS
  5552. fi
  5553. fi
  5554. OBJDUMP=$ac_cv_prog_OBJDUMP
  5555. if test -n "$OBJDUMP"; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5557. $as_echo "$OBJDUMP" >&6; }
  5558. else
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5560. $as_echo "no" >&6; }
  5561. fi
  5562. fi
  5563. if test -z "$ac_cv_prog_OBJDUMP"; then
  5564. ac_ct_OBJDUMP=$OBJDUMP
  5565. # Extract the first word of "objdump", so it can be a program name with args.
  5566. set dummy objdump; ac_word=$2
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5568. $as_echo_n "checking for $ac_word... " >&6; }
  5569. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  5572. if test -n "$ac_ct_OBJDUMP"; then
  5573. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. test -z "$as_dir" && as_dir=.
  5580. for ac_exec_ext in '' $ac_executable_extensions; do
  5581. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5582. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5584. break 2
  5585. fi
  5586. done
  5587. done
  5588. IFS=$as_save_IFS
  5589. fi
  5590. fi
  5591. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5592. if test -n "$ac_ct_OBJDUMP"; then
  5593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5594. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5595. else
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5597. $as_echo "no" >&6; }
  5598. fi
  5599. if test "x$ac_ct_OBJDUMP" = x; then
  5600. OBJDUMP="false"
  5601. else
  5602. case $cross_compiling:$ac_tool_warned in
  5603. yes:)
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5605. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5606. ac_tool_warned=yes ;;
  5607. esac
  5608. OBJDUMP=$ac_ct_OBJDUMP
  5609. fi
  5610. else
  5611. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5612. fi
  5613. test -z "$OBJDUMP" && OBJDUMP=objdump
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5615. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5616. if ${lt_cv_deplibs_check_method+:} false; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5620. lt_cv_file_magic_test_file=
  5621. lt_cv_deplibs_check_method='unknown'
  5622. # Need to set the preceding variable on all platforms that support
  5623. # interlibrary dependencies.
  5624. # 'none' -- dependencies not supported.
  5625. # `unknown' -- same as none, but documents that we really don't know.
  5626. # 'pass_all' -- all dependencies passed with no checks.
  5627. # 'test_compile' -- check by making test program.
  5628. # 'file_magic [[regex]]' -- check by looking for files in library path
  5629. # which responds to the $file_magic_cmd with a given extended regex.
  5630. # If you have `file' or equivalent on your system and you're not sure
  5631. # whether `pass_all' will *always* work, you probably want this one.
  5632. case $host_os in
  5633. aix[4-9]*)
  5634. lt_cv_deplibs_check_method=pass_all
  5635. ;;
  5636. beos*)
  5637. lt_cv_deplibs_check_method=pass_all
  5638. ;;
  5639. bsdi[45]*)
  5640. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5641. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5642. lt_cv_file_magic_test_file=/shlib/libc.so
  5643. ;;
  5644. cygwin*)
  5645. # func_win32_libid is a shell function defined in ltmain.sh
  5646. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5647. lt_cv_file_magic_cmd='func_win32_libid'
  5648. ;;
  5649. mingw* | pw32*)
  5650. # Base MSYS/MinGW do not provide the 'file' command needed by
  5651. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5652. # unless we find 'file', for example because we are cross-compiling.
  5653. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5654. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5655. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5656. lt_cv_file_magic_cmd='func_win32_libid'
  5657. else
  5658. # Keep this pattern in sync with the one in func_win32_libid.
  5659. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5660. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5661. fi
  5662. ;;
  5663. cegcc*)
  5664. # use the weaker test based on 'objdump'. See mingw*.
  5665. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5666. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5667. ;;
  5668. darwin* | rhapsody*)
  5669. lt_cv_deplibs_check_method=pass_all
  5670. ;;
  5671. freebsd* | dragonfly*)
  5672. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5673. case $host_cpu in
  5674. i*86 )
  5675. # Not sure whether the presence of OpenBSD here was a mistake.
  5676. # Let's accept both of them until this is cleared up.
  5677. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5678. lt_cv_file_magic_cmd=/usr/bin/file
  5679. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5680. ;;
  5681. esac
  5682. else
  5683. lt_cv_deplibs_check_method=pass_all
  5684. fi
  5685. ;;
  5686. gnu*)
  5687. lt_cv_deplibs_check_method=pass_all
  5688. ;;
  5689. haiku*)
  5690. lt_cv_deplibs_check_method=pass_all
  5691. ;;
  5692. hpux10.20* | hpux11*)
  5693. lt_cv_file_magic_cmd=/usr/bin/file
  5694. case $host_cpu in
  5695. ia64*)
  5696. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5697. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5698. ;;
  5699. hppa*64*)
  5700. 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]'
  5701. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5702. ;;
  5703. *)
  5704. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5705. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5706. ;;
  5707. esac
  5708. ;;
  5709. interix[3-9]*)
  5710. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5711. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5712. ;;
  5713. irix5* | irix6* | nonstopux*)
  5714. case $LD in
  5715. *-32|*"-32 ") libmagic=32-bit;;
  5716. *-n32|*"-n32 ") libmagic=N32;;
  5717. *-64|*"-64 ") libmagic=64-bit;;
  5718. *) libmagic=never-match;;
  5719. esac
  5720. lt_cv_deplibs_check_method=pass_all
  5721. ;;
  5722. # This must be glibc/ELF.
  5723. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5724. lt_cv_deplibs_check_method=pass_all
  5725. ;;
  5726. netbsd*)
  5727. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5728. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5729. else
  5730. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5731. fi
  5732. ;;
  5733. newos6*)
  5734. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5735. lt_cv_file_magic_cmd=/usr/bin/file
  5736. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5737. ;;
  5738. *nto* | *qnx*)
  5739. lt_cv_deplibs_check_method=pass_all
  5740. ;;
  5741. openbsd*)
  5742. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5743. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5744. else
  5745. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5746. fi
  5747. ;;
  5748. osf3* | osf4* | osf5*)
  5749. lt_cv_deplibs_check_method=pass_all
  5750. ;;
  5751. rdos*)
  5752. lt_cv_deplibs_check_method=pass_all
  5753. ;;
  5754. solaris*)
  5755. lt_cv_deplibs_check_method=pass_all
  5756. ;;
  5757. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5758. lt_cv_deplibs_check_method=pass_all
  5759. ;;
  5760. sysv4 | sysv4.3*)
  5761. case $host_vendor in
  5762. motorola)
  5763. 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]'
  5764. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5765. ;;
  5766. ncr)
  5767. lt_cv_deplibs_check_method=pass_all
  5768. ;;
  5769. sequent)
  5770. lt_cv_file_magic_cmd='/bin/file'
  5771. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5772. ;;
  5773. sni)
  5774. lt_cv_file_magic_cmd='/bin/file'
  5775. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5776. lt_cv_file_magic_test_file=/lib/libc.so
  5777. ;;
  5778. siemens)
  5779. lt_cv_deplibs_check_method=pass_all
  5780. ;;
  5781. pc)
  5782. lt_cv_deplibs_check_method=pass_all
  5783. ;;
  5784. esac
  5785. ;;
  5786. tpf*)
  5787. lt_cv_deplibs_check_method=pass_all
  5788. ;;
  5789. esac
  5790. fi
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5792. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5793. file_magic_glob=
  5794. want_nocaseglob=no
  5795. if test "$build" = "$host"; then
  5796. case $host_os in
  5797. mingw* | pw32*)
  5798. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5799. want_nocaseglob=yes
  5800. else
  5801. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5802. fi
  5803. ;;
  5804. esac
  5805. fi
  5806. file_magic_cmd=$lt_cv_file_magic_cmd
  5807. deplibs_check_method=$lt_cv_deplibs_check_method
  5808. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5809. if test -n "$ac_tool_prefix"; then
  5810. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5811. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5813. $as_echo_n "checking for $ac_word... " >&6; }
  5814. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5815. $as_echo_n "(cached) " >&6
  5816. else
  5817. if test -n "$DLLTOOL"; then
  5818. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5819. else
  5820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5821. for as_dir in $PATH
  5822. do
  5823. IFS=$as_save_IFS
  5824. test -z "$as_dir" && as_dir=.
  5825. for ac_exec_ext in '' $ac_executable_extensions; do
  5826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5827. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5829. break 2
  5830. fi
  5831. done
  5832. done
  5833. IFS=$as_save_IFS
  5834. fi
  5835. fi
  5836. DLLTOOL=$ac_cv_prog_DLLTOOL
  5837. if test -n "$DLLTOOL"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5839. $as_echo "$DLLTOOL" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. fi
  5845. if test -z "$ac_cv_prog_DLLTOOL"; then
  5846. ac_ct_DLLTOOL=$DLLTOOL
  5847. # Extract the first word of "dlltool", so it can be a program name with args.
  5848. set dummy dlltool; ac_word=$2
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5850. $as_echo_n "checking for $ac_word... " >&6; }
  5851. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5852. $as_echo_n "(cached) " >&6
  5853. else
  5854. if test -n "$ac_ct_DLLTOOL"; then
  5855. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5856. else
  5857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5858. for as_dir in $PATH
  5859. do
  5860. IFS=$as_save_IFS
  5861. test -z "$as_dir" && as_dir=.
  5862. for ac_exec_ext in '' $ac_executable_extensions; do
  5863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5864. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5866. break 2
  5867. fi
  5868. done
  5869. done
  5870. IFS=$as_save_IFS
  5871. fi
  5872. fi
  5873. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5874. if test -n "$ac_ct_DLLTOOL"; then
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5876. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5877. else
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5879. $as_echo "no" >&6; }
  5880. fi
  5881. if test "x$ac_ct_DLLTOOL" = x; then
  5882. DLLTOOL="false"
  5883. else
  5884. case $cross_compiling:$ac_tool_warned in
  5885. yes:)
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5888. ac_tool_warned=yes ;;
  5889. esac
  5890. DLLTOOL=$ac_ct_DLLTOOL
  5891. fi
  5892. else
  5893. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5894. fi
  5895. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5897. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5898. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5902. case $host_os in
  5903. cygwin* | mingw* | pw32* | cegcc*)
  5904. # two different shell functions defined in ltmain.sh
  5905. # decide which to use based on capabilities of $DLLTOOL
  5906. case `$DLLTOOL --help 2>&1` in
  5907. *--identify-strict*)
  5908. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5909. ;;
  5910. *)
  5911. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5912. ;;
  5913. esac
  5914. ;;
  5915. *)
  5916. # fallback: assume linklib IS sharedlib
  5917. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5918. ;;
  5919. esac
  5920. fi
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5922. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5923. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5924. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5925. if test -n "$ac_tool_prefix"; then
  5926. for ac_prog in ar
  5927. do
  5928. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5929. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5931. $as_echo_n "checking for $ac_word... " >&6; }
  5932. if ${ac_cv_prog_AR+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. if test -n "$AR"; then
  5936. ac_cv_prog_AR="$AR" # Let the user override the test.
  5937. else
  5938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939. for as_dir in $PATH
  5940. do
  5941. IFS=$as_save_IFS
  5942. test -z "$as_dir" && as_dir=.
  5943. for ac_exec_ext in '' $ac_executable_extensions; do
  5944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5945. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5947. break 2
  5948. fi
  5949. done
  5950. done
  5951. IFS=$as_save_IFS
  5952. fi
  5953. fi
  5954. AR=$ac_cv_prog_AR
  5955. if test -n "$AR"; then
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5957. $as_echo "$AR" >&6; }
  5958. else
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5960. $as_echo "no" >&6; }
  5961. fi
  5962. test -n "$AR" && break
  5963. done
  5964. fi
  5965. if test -z "$AR"; then
  5966. ac_ct_AR=$AR
  5967. for ac_prog in ar
  5968. do
  5969. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5970. set dummy $ac_prog; ac_word=$2
  5971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5972. $as_echo_n "checking for $ac_word... " >&6; }
  5973. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5974. $as_echo_n "(cached) " >&6
  5975. else
  5976. if test -n "$ac_ct_AR"; then
  5977. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5978. else
  5979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5980. for as_dir in $PATH
  5981. do
  5982. IFS=$as_save_IFS
  5983. test -z "$as_dir" && as_dir=.
  5984. for ac_exec_ext in '' $ac_executable_extensions; do
  5985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5986. ac_cv_prog_ac_ct_AR="$ac_prog"
  5987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5988. break 2
  5989. fi
  5990. done
  5991. done
  5992. IFS=$as_save_IFS
  5993. fi
  5994. fi
  5995. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5996. if test -n "$ac_ct_AR"; then
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5998. $as_echo "$ac_ct_AR" >&6; }
  5999. else
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6001. $as_echo "no" >&6; }
  6002. fi
  6003. test -n "$ac_ct_AR" && break
  6004. done
  6005. if test "x$ac_ct_AR" = x; then
  6006. AR="false"
  6007. else
  6008. case $cross_compiling:$ac_tool_warned in
  6009. yes:)
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6011. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6012. ac_tool_warned=yes ;;
  6013. esac
  6014. AR=$ac_ct_AR
  6015. fi
  6016. fi
  6017. : ${AR=ar}
  6018. : ${AR_FLAGS=cru}
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6020. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6021. if ${lt_cv_ar_at_file+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. lt_cv_ar_at_file=no
  6025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6026. /* end confdefs.h. */
  6027. int
  6028. main ()
  6029. {
  6030. ;
  6031. return 0;
  6032. }
  6033. _ACEOF
  6034. if ac_fn_c_try_compile "$LINENO"; then :
  6035. echo conftest.$ac_objext > conftest.lst
  6036. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6037. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6038. (eval $lt_ar_try) 2>&5
  6039. ac_status=$?
  6040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6041. test $ac_status = 0; }
  6042. if test "$ac_status" -eq 0; then
  6043. # Ensure the archiver fails upon bogus file names.
  6044. rm -f conftest.$ac_objext libconftest.a
  6045. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6046. (eval $lt_ar_try) 2>&5
  6047. ac_status=$?
  6048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6049. test $ac_status = 0; }
  6050. if test "$ac_status" -ne 0; then
  6051. lt_cv_ar_at_file=@
  6052. fi
  6053. fi
  6054. rm -f conftest.* libconftest.a
  6055. fi
  6056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6057. fi
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6059. $as_echo "$lt_cv_ar_at_file" >&6; }
  6060. if test "x$lt_cv_ar_at_file" = xno; then
  6061. archiver_list_spec=
  6062. else
  6063. archiver_list_spec=$lt_cv_ar_at_file
  6064. fi
  6065. if test -n "$ac_tool_prefix"; then
  6066. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6067. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6069. $as_echo_n "checking for $ac_word... " >&6; }
  6070. if ${ac_cv_prog_STRIP+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. if test -n "$STRIP"; then
  6074. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6075. else
  6076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6077. for as_dir in $PATH
  6078. do
  6079. IFS=$as_save_IFS
  6080. test -z "$as_dir" && as_dir=.
  6081. for ac_exec_ext in '' $ac_executable_extensions; do
  6082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6083. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6085. break 2
  6086. fi
  6087. done
  6088. done
  6089. IFS=$as_save_IFS
  6090. fi
  6091. fi
  6092. STRIP=$ac_cv_prog_STRIP
  6093. if test -n "$STRIP"; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6095. $as_echo "$STRIP" >&6; }
  6096. else
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6098. $as_echo "no" >&6; }
  6099. fi
  6100. fi
  6101. if test -z "$ac_cv_prog_STRIP"; then
  6102. ac_ct_STRIP=$STRIP
  6103. # Extract the first word of "strip", so it can be a program name with args.
  6104. set dummy strip; ac_word=$2
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6106. $as_echo_n "checking for $ac_word... " >&6; }
  6107. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6108. $as_echo_n "(cached) " >&6
  6109. else
  6110. if test -n "$ac_ct_STRIP"; then
  6111. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6112. else
  6113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6114. for as_dir in $PATH
  6115. do
  6116. IFS=$as_save_IFS
  6117. test -z "$as_dir" && as_dir=.
  6118. for ac_exec_ext in '' $ac_executable_extensions; do
  6119. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6120. ac_cv_prog_ac_ct_STRIP="strip"
  6121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6122. break 2
  6123. fi
  6124. done
  6125. done
  6126. IFS=$as_save_IFS
  6127. fi
  6128. fi
  6129. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6130. if test -n "$ac_ct_STRIP"; then
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6132. $as_echo "$ac_ct_STRIP" >&6; }
  6133. else
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6135. $as_echo "no" >&6; }
  6136. fi
  6137. if test "x$ac_ct_STRIP" = x; then
  6138. STRIP=":"
  6139. else
  6140. case $cross_compiling:$ac_tool_warned in
  6141. yes:)
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6143. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6144. ac_tool_warned=yes ;;
  6145. esac
  6146. STRIP=$ac_ct_STRIP
  6147. fi
  6148. else
  6149. STRIP="$ac_cv_prog_STRIP"
  6150. fi
  6151. test -z "$STRIP" && STRIP=:
  6152. if test -n "$ac_tool_prefix"; then
  6153. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6154. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6156. $as_echo_n "checking for $ac_word... " >&6; }
  6157. if ${ac_cv_prog_RANLIB+:} false; then :
  6158. $as_echo_n "(cached) " >&6
  6159. else
  6160. if test -n "$RANLIB"; then
  6161. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6162. else
  6163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6164. for as_dir in $PATH
  6165. do
  6166. IFS=$as_save_IFS
  6167. test -z "$as_dir" && as_dir=.
  6168. for ac_exec_ext in '' $ac_executable_extensions; do
  6169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6170. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6172. break 2
  6173. fi
  6174. done
  6175. done
  6176. IFS=$as_save_IFS
  6177. fi
  6178. fi
  6179. RANLIB=$ac_cv_prog_RANLIB
  6180. if test -n "$RANLIB"; then
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6182. $as_echo "$RANLIB" >&6; }
  6183. else
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6185. $as_echo "no" >&6; }
  6186. fi
  6187. fi
  6188. if test -z "$ac_cv_prog_RANLIB"; then
  6189. ac_ct_RANLIB=$RANLIB
  6190. # Extract the first word of "ranlib", so it can be a program name with args.
  6191. set dummy ranlib; ac_word=$2
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6193. $as_echo_n "checking for $ac_word... " >&6; }
  6194. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6195. $as_echo_n "(cached) " >&6
  6196. else
  6197. if test -n "$ac_ct_RANLIB"; then
  6198. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6199. else
  6200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6201. for as_dir in $PATH
  6202. do
  6203. IFS=$as_save_IFS
  6204. test -z "$as_dir" && as_dir=.
  6205. for ac_exec_ext in '' $ac_executable_extensions; do
  6206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6207. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6209. break 2
  6210. fi
  6211. done
  6212. done
  6213. IFS=$as_save_IFS
  6214. fi
  6215. fi
  6216. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6217. if test -n "$ac_ct_RANLIB"; then
  6218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6219. $as_echo "$ac_ct_RANLIB" >&6; }
  6220. else
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6222. $as_echo "no" >&6; }
  6223. fi
  6224. if test "x$ac_ct_RANLIB" = x; then
  6225. RANLIB=":"
  6226. else
  6227. case $cross_compiling:$ac_tool_warned in
  6228. yes:)
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6231. ac_tool_warned=yes ;;
  6232. esac
  6233. RANLIB=$ac_ct_RANLIB
  6234. fi
  6235. else
  6236. RANLIB="$ac_cv_prog_RANLIB"
  6237. fi
  6238. test -z "$RANLIB" && RANLIB=:
  6239. # Determine commands to create old-style static archives.
  6240. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6241. old_postinstall_cmds='chmod 644 $oldlib'
  6242. old_postuninstall_cmds=
  6243. if test -n "$RANLIB"; then
  6244. case $host_os in
  6245. openbsd*)
  6246. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6247. ;;
  6248. *)
  6249. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6250. ;;
  6251. esac
  6252. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6253. fi
  6254. case $host_os in
  6255. darwin*)
  6256. lock_old_archive_extraction=yes ;;
  6257. *)
  6258. lock_old_archive_extraction=no ;;
  6259. esac
  6260. # If no C compiler was specified, use CC.
  6261. LTCC=${LTCC-"$CC"}
  6262. # If no C compiler flags were specified, use CFLAGS.
  6263. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6264. # Allow CC to be a program name with arguments.
  6265. compiler=$CC
  6266. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6268. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6269. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6270. $as_echo_n "(cached) " >&6
  6271. else
  6272. # These are sane defaults that work on at least a few old systems.
  6273. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6274. # Character class describing NM global symbol codes.
  6275. symcode='[BCDEGRST]'
  6276. # Regexp to match symbols that can be accessed directly from C.
  6277. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6278. # Define system-specific variables.
  6279. case $host_os in
  6280. aix*)
  6281. symcode='[BCDT]'
  6282. ;;
  6283. cygwin* | mingw* | pw32* | cegcc*)
  6284. symcode='[ABCDGISTW]'
  6285. ;;
  6286. hpux*)
  6287. if test "$host_cpu" = ia64; then
  6288. symcode='[ABCDEGRST]'
  6289. fi
  6290. ;;
  6291. irix* | nonstopux*)
  6292. symcode='[BCDEGRST]'
  6293. ;;
  6294. osf*)
  6295. symcode='[BCDEGQRST]'
  6296. ;;
  6297. solaris*)
  6298. symcode='[BDRT]'
  6299. ;;
  6300. sco3.2v5*)
  6301. symcode='[DT]'
  6302. ;;
  6303. sysv4.2uw2*)
  6304. symcode='[DT]'
  6305. ;;
  6306. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6307. symcode='[ABDT]'
  6308. ;;
  6309. sysv4)
  6310. symcode='[DFNSTU]'
  6311. ;;
  6312. esac
  6313. # If we're using GNU nm, then use its standard symbol codes.
  6314. case `$NM -V 2>&1` in
  6315. *GNU* | *'with BFD'*)
  6316. symcode='[ABCDGIRSTW]' ;;
  6317. esac
  6318. # Transform an extracted symbol line into a proper C declaration.
  6319. # Some systems (esp. on ia64) link data and code symbols differently,
  6320. # so use this general approach.
  6321. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6322. # Transform an extracted symbol line into symbol name and symbol address
  6323. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6324. 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'"
  6325. # Handle CRLF in mingw tool chain
  6326. opt_cr=
  6327. case $build_os in
  6328. mingw*)
  6329. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6330. ;;
  6331. esac
  6332. # Try without a prefix underscore, then with it.
  6333. for ac_symprfx in "" "_"; do
  6334. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6335. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6336. # Write the raw and C identifiers.
  6337. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6338. # Fake it for dumpbin and say T for any non-static function
  6339. # and D for any global variable.
  6340. # Also find C++ and __fastcall symbols from MSVC++,
  6341. # which start with @ or ?.
  6342. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6343. " {last_section=section; section=\$ 3};"\
  6344. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6345. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6346. " \$ 0!~/External *\|/{next};"\
  6347. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6348. " {if(hide[section]) next};"\
  6349. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6350. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6351. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6352. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6353. " ' prfx=^$ac_symprfx"
  6354. else
  6355. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6356. fi
  6357. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6358. # Check to see that the pipe works correctly.
  6359. pipe_works=no
  6360. rm -f conftest*
  6361. cat > conftest.$ac_ext <<_LT_EOF
  6362. #ifdef __cplusplus
  6363. extern "C" {
  6364. #endif
  6365. char nm_test_var;
  6366. void nm_test_func(void);
  6367. void nm_test_func(void){}
  6368. #ifdef __cplusplus
  6369. }
  6370. #endif
  6371. int main(){nm_test_var='a';nm_test_func();return(0);}
  6372. _LT_EOF
  6373. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6374. (eval $ac_compile) 2>&5
  6375. ac_status=$?
  6376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6377. test $ac_status = 0; }; then
  6378. # Now try to grab the symbols.
  6379. nlist=conftest.nm
  6380. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6381. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6382. ac_status=$?
  6383. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6384. test $ac_status = 0; } && test -s "$nlist"; then
  6385. # Try sorting and uniquifying the output.
  6386. if sort "$nlist" | uniq > "$nlist"T; then
  6387. mv -f "$nlist"T "$nlist"
  6388. else
  6389. rm -f "$nlist"T
  6390. fi
  6391. # Make sure that we snagged all the symbols we need.
  6392. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6393. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6394. cat <<_LT_EOF > conftest.$ac_ext
  6395. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6396. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6397. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6398. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6399. # define LT_DLSYM_CONST
  6400. #elif defined(__osf__)
  6401. /* This system does not cope well with relocations in const data. */
  6402. # define LT_DLSYM_CONST
  6403. #else
  6404. # define LT_DLSYM_CONST const
  6405. #endif
  6406. #ifdef __cplusplus
  6407. extern "C" {
  6408. #endif
  6409. _LT_EOF
  6410. # Now generate the symbol file.
  6411. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6412. cat <<_LT_EOF >> conftest.$ac_ext
  6413. /* The mapping between symbol names and symbols. */
  6414. LT_DLSYM_CONST struct {
  6415. const char *name;
  6416. void *address;
  6417. }
  6418. lt__PROGRAM__LTX_preloaded_symbols[] =
  6419. {
  6420. { "@PROGRAM@", (void *) 0 },
  6421. _LT_EOF
  6422. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6423. cat <<\_LT_EOF >> conftest.$ac_ext
  6424. {0, (void *) 0}
  6425. };
  6426. /* This works around a problem in FreeBSD linker */
  6427. #ifdef FREEBSD_WORKAROUND
  6428. static const void *lt_preloaded_setup() {
  6429. return lt__PROGRAM__LTX_preloaded_symbols;
  6430. }
  6431. #endif
  6432. #ifdef __cplusplus
  6433. }
  6434. #endif
  6435. _LT_EOF
  6436. # Now try linking the two files.
  6437. mv conftest.$ac_objext conftstm.$ac_objext
  6438. lt_globsym_save_LIBS=$LIBS
  6439. lt_globsym_save_CFLAGS=$CFLAGS
  6440. LIBS="conftstm.$ac_objext"
  6441. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6442. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6443. (eval $ac_link) 2>&5
  6444. ac_status=$?
  6445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6446. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6447. pipe_works=yes
  6448. fi
  6449. LIBS=$lt_globsym_save_LIBS
  6450. CFLAGS=$lt_globsym_save_CFLAGS
  6451. else
  6452. echo "cannot find nm_test_func in $nlist" >&5
  6453. fi
  6454. else
  6455. echo "cannot find nm_test_var in $nlist" >&5
  6456. fi
  6457. else
  6458. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6459. fi
  6460. else
  6461. echo "$progname: failed program was:" >&5
  6462. cat conftest.$ac_ext >&5
  6463. fi
  6464. rm -rf conftest* conftst*
  6465. # Do not use the global_symbol_pipe unless it works.
  6466. if test "$pipe_works" = yes; then
  6467. break
  6468. else
  6469. lt_cv_sys_global_symbol_pipe=
  6470. fi
  6471. done
  6472. fi
  6473. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6474. lt_cv_sys_global_symbol_to_cdecl=
  6475. fi
  6476. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6478. $as_echo "failed" >&6; }
  6479. else
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6481. $as_echo "ok" >&6; }
  6482. fi
  6483. # Response file support.
  6484. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6485. nm_file_list_spec='@'
  6486. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6487. nm_file_list_spec='@'
  6488. fi
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6490. $as_echo_n "checking for sysroot... " >&6; }
  6491. # Check whether --with-sysroot was given.
  6492. if test "${with_sysroot+set}" = set; then :
  6493. withval=$with_sysroot;
  6494. else
  6495. with_sysroot=no
  6496. fi
  6497. lt_sysroot=
  6498. case ${with_sysroot} in #(
  6499. yes)
  6500. if test "$GCC" = yes; then
  6501. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6502. fi
  6503. ;; #(
  6504. /*)
  6505. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6506. ;; #(
  6507. no|'')
  6508. ;; #(
  6509. *)
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6511. $as_echo "${with_sysroot}" >&6; }
  6512. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6513. ;;
  6514. esac
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6516. $as_echo "${lt_sysroot:-no}" >&6; }
  6517. # Check whether --enable-libtool-lock was given.
  6518. if test "${enable_libtool_lock+set}" = set; then :
  6519. enableval=$enable_libtool_lock;
  6520. fi
  6521. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6522. # Some flags need to be propagated to the compiler or linker for good
  6523. # libtool support.
  6524. case $host in
  6525. ia64-*-hpux*)
  6526. # Find out which ABI we are using.
  6527. echo 'int i;' > conftest.$ac_ext
  6528. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6529. (eval $ac_compile) 2>&5
  6530. ac_status=$?
  6531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6532. test $ac_status = 0; }; then
  6533. case `/usr/bin/file conftest.$ac_objext` in
  6534. *ELF-32*)
  6535. HPUX_IA64_MODE="32"
  6536. ;;
  6537. *ELF-64*)
  6538. HPUX_IA64_MODE="64"
  6539. ;;
  6540. esac
  6541. fi
  6542. rm -rf conftest*
  6543. ;;
  6544. *-*-irix6*)
  6545. # Find out which ABI we are using.
  6546. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6547. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6548. (eval $ac_compile) 2>&5
  6549. ac_status=$?
  6550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6551. test $ac_status = 0; }; then
  6552. if test "$lt_cv_prog_gnu_ld" = yes; then
  6553. case `/usr/bin/file conftest.$ac_objext` in
  6554. *32-bit*)
  6555. LD="${LD-ld} -melf32bsmip"
  6556. ;;
  6557. *N32*)
  6558. LD="${LD-ld} -melf32bmipn32"
  6559. ;;
  6560. *64-bit*)
  6561. LD="${LD-ld} -melf64bmip"
  6562. ;;
  6563. esac
  6564. else
  6565. case `/usr/bin/file conftest.$ac_objext` in
  6566. *32-bit*)
  6567. LD="${LD-ld} -32"
  6568. ;;
  6569. *N32*)
  6570. LD="${LD-ld} -n32"
  6571. ;;
  6572. *64-bit*)
  6573. LD="${LD-ld} -64"
  6574. ;;
  6575. esac
  6576. fi
  6577. fi
  6578. rm -rf conftest*
  6579. ;;
  6580. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6581. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6582. # Find out which ABI we are using.
  6583. echo 'int i;' > conftest.$ac_ext
  6584. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6585. (eval $ac_compile) 2>&5
  6586. ac_status=$?
  6587. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6588. test $ac_status = 0; }; then
  6589. case `/usr/bin/file conftest.o` in
  6590. *32-bit*)
  6591. case $host in
  6592. x86_64-*kfreebsd*-gnu)
  6593. LD="${LD-ld} -m elf_i386_fbsd"
  6594. ;;
  6595. x86_64-*linux*)
  6596. LD="${LD-ld} -m elf_i386"
  6597. ;;
  6598. powerpc64le-*linux*)
  6599. LD="${LD-ld} -m elf32lppclinux"
  6600. ;;
  6601. powerpc64-*linux*)
  6602. LD="${LD-ld} -m elf32ppclinux"
  6603. ;;
  6604. s390x-*linux*)
  6605. LD="${LD-ld} -m elf_s390"
  6606. ;;
  6607. sparc64-*linux*)
  6608. LD="${LD-ld} -m elf32_sparc"
  6609. ;;
  6610. esac
  6611. ;;
  6612. *64-bit*)
  6613. case $host in
  6614. x86_64-*kfreebsd*-gnu)
  6615. LD="${LD-ld} -m elf_x86_64_fbsd"
  6616. ;;
  6617. x86_64-*linux*)
  6618. LD="${LD-ld} -m elf_x86_64"
  6619. ;;
  6620. powerpcle-*linux*)
  6621. LD="${LD-ld} -m elf64lppc"
  6622. ;;
  6623. powerpc-*linux*)
  6624. LD="${LD-ld} -m elf64ppc"
  6625. ;;
  6626. s390*-*linux*|s390*-*tpf*)
  6627. LD="${LD-ld} -m elf64_s390"
  6628. ;;
  6629. sparc*-*linux*)
  6630. LD="${LD-ld} -m elf64_sparc"
  6631. ;;
  6632. esac
  6633. ;;
  6634. esac
  6635. fi
  6636. rm -rf conftest*
  6637. ;;
  6638. *-*-sco3.2v5*)
  6639. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6640. SAVE_CFLAGS="$CFLAGS"
  6641. CFLAGS="$CFLAGS -belf"
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6643. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6644. if ${lt_cv_cc_needs_belf+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. ac_ext=c
  6648. ac_cpp='$CPP $CPPFLAGS'
  6649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6653. /* end confdefs.h. */
  6654. int
  6655. main ()
  6656. {
  6657. ;
  6658. return 0;
  6659. }
  6660. _ACEOF
  6661. if ac_fn_c_try_link "$LINENO"; then :
  6662. lt_cv_cc_needs_belf=yes
  6663. else
  6664. lt_cv_cc_needs_belf=no
  6665. fi
  6666. rm -f core conftest.err conftest.$ac_objext \
  6667. conftest$ac_exeext conftest.$ac_ext
  6668. ac_ext=c
  6669. ac_cpp='$CPP $CPPFLAGS'
  6670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6673. fi
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6675. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6676. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6677. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6678. CFLAGS="$SAVE_CFLAGS"
  6679. fi
  6680. ;;
  6681. *-*solaris*)
  6682. # Find out which ABI we are using.
  6683. echo 'int i;' > conftest.$ac_ext
  6684. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6685. (eval $ac_compile) 2>&5
  6686. ac_status=$?
  6687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6688. test $ac_status = 0; }; then
  6689. case `/usr/bin/file conftest.o` in
  6690. *64-bit*)
  6691. case $lt_cv_prog_gnu_ld in
  6692. yes*)
  6693. case $host in
  6694. i?86-*-solaris*)
  6695. LD="${LD-ld} -m elf_x86_64"
  6696. ;;
  6697. sparc*-*-solaris*)
  6698. LD="${LD-ld} -m elf64_sparc"
  6699. ;;
  6700. esac
  6701. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6702. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6703. LD="${LD-ld}_sol2"
  6704. fi
  6705. ;;
  6706. *)
  6707. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6708. LD="${LD-ld} -64"
  6709. fi
  6710. ;;
  6711. esac
  6712. ;;
  6713. esac
  6714. fi
  6715. rm -rf conftest*
  6716. ;;
  6717. esac
  6718. need_locks="$enable_libtool_lock"
  6719. if test -n "$ac_tool_prefix"; then
  6720. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6721. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6723. $as_echo_n "checking for $ac_word... " >&6; }
  6724. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6725. $as_echo_n "(cached) " >&6
  6726. else
  6727. if test -n "$MANIFEST_TOOL"; then
  6728. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6729. else
  6730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6731. for as_dir in $PATH
  6732. do
  6733. IFS=$as_save_IFS
  6734. test -z "$as_dir" && as_dir=.
  6735. for ac_exec_ext in '' $ac_executable_extensions; do
  6736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6737. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6739. break 2
  6740. fi
  6741. done
  6742. done
  6743. IFS=$as_save_IFS
  6744. fi
  6745. fi
  6746. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6747. if test -n "$MANIFEST_TOOL"; then
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6749. $as_echo "$MANIFEST_TOOL" >&6; }
  6750. else
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6752. $as_echo "no" >&6; }
  6753. fi
  6754. fi
  6755. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6756. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6757. # Extract the first word of "mt", so it can be a program name with args.
  6758. set dummy mt; ac_word=$2
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6760. $as_echo_n "checking for $ac_word... " >&6; }
  6761. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6765. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6766. else
  6767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6768. for as_dir in $PATH
  6769. do
  6770. IFS=$as_save_IFS
  6771. test -z "$as_dir" && as_dir=.
  6772. for ac_exec_ext in '' $ac_executable_extensions; do
  6773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6774. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6776. break 2
  6777. fi
  6778. done
  6779. done
  6780. IFS=$as_save_IFS
  6781. fi
  6782. fi
  6783. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6784. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6786. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6787. else
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6789. $as_echo "no" >&6; }
  6790. fi
  6791. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6792. MANIFEST_TOOL=":"
  6793. else
  6794. case $cross_compiling:$ac_tool_warned in
  6795. yes:)
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6798. ac_tool_warned=yes ;;
  6799. esac
  6800. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6801. fi
  6802. else
  6803. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6804. fi
  6805. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6807. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6808. if ${lt_cv_path_mainfest_tool+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. lt_cv_path_mainfest_tool=no
  6812. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6813. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6814. cat conftest.err >&5
  6815. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6816. lt_cv_path_mainfest_tool=yes
  6817. fi
  6818. rm -f conftest*
  6819. fi
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6821. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6822. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6823. MANIFEST_TOOL=:
  6824. fi
  6825. case $host_os in
  6826. rhapsody* | darwin*)
  6827. if test -n "$ac_tool_prefix"; then
  6828. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6829. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6831. $as_echo_n "checking for $ac_word... " >&6; }
  6832. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6833. $as_echo_n "(cached) " >&6
  6834. else
  6835. if test -n "$DSYMUTIL"; then
  6836. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6837. else
  6838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6839. for as_dir in $PATH
  6840. do
  6841. IFS=$as_save_IFS
  6842. test -z "$as_dir" && as_dir=.
  6843. for ac_exec_ext in '' $ac_executable_extensions; do
  6844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6845. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6847. break 2
  6848. fi
  6849. done
  6850. done
  6851. IFS=$as_save_IFS
  6852. fi
  6853. fi
  6854. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6855. if test -n "$DSYMUTIL"; then
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6857. $as_echo "$DSYMUTIL" >&6; }
  6858. else
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6860. $as_echo "no" >&6; }
  6861. fi
  6862. fi
  6863. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6864. ac_ct_DSYMUTIL=$DSYMUTIL
  6865. # Extract the first word of "dsymutil", so it can be a program name with args.
  6866. set dummy dsymutil; ac_word=$2
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6868. $as_echo_n "checking for $ac_word... " >&6; }
  6869. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6870. $as_echo_n "(cached) " >&6
  6871. else
  6872. if test -n "$ac_ct_DSYMUTIL"; then
  6873. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6874. else
  6875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6876. for as_dir in $PATH
  6877. do
  6878. IFS=$as_save_IFS
  6879. test -z "$as_dir" && as_dir=.
  6880. for ac_exec_ext in '' $ac_executable_extensions; do
  6881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6882. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6884. break 2
  6885. fi
  6886. done
  6887. done
  6888. IFS=$as_save_IFS
  6889. fi
  6890. fi
  6891. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6892. if test -n "$ac_ct_DSYMUTIL"; then
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6894. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6895. else
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6897. $as_echo "no" >&6; }
  6898. fi
  6899. if test "x$ac_ct_DSYMUTIL" = x; then
  6900. DSYMUTIL=":"
  6901. else
  6902. case $cross_compiling:$ac_tool_warned in
  6903. yes:)
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6905. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6906. ac_tool_warned=yes ;;
  6907. esac
  6908. DSYMUTIL=$ac_ct_DSYMUTIL
  6909. fi
  6910. else
  6911. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6912. fi
  6913. if test -n "$ac_tool_prefix"; then
  6914. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6915. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6917. $as_echo_n "checking for $ac_word... " >&6; }
  6918. if ${ac_cv_prog_NMEDIT+:} false; then :
  6919. $as_echo_n "(cached) " >&6
  6920. else
  6921. if test -n "$NMEDIT"; then
  6922. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6923. else
  6924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6925. for as_dir in $PATH
  6926. do
  6927. IFS=$as_save_IFS
  6928. test -z "$as_dir" && as_dir=.
  6929. for ac_exec_ext in '' $ac_executable_extensions; do
  6930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6931. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6933. break 2
  6934. fi
  6935. done
  6936. done
  6937. IFS=$as_save_IFS
  6938. fi
  6939. fi
  6940. NMEDIT=$ac_cv_prog_NMEDIT
  6941. if test -n "$NMEDIT"; then
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6943. $as_echo "$NMEDIT" >&6; }
  6944. else
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6946. $as_echo "no" >&6; }
  6947. fi
  6948. fi
  6949. if test -z "$ac_cv_prog_NMEDIT"; then
  6950. ac_ct_NMEDIT=$NMEDIT
  6951. # Extract the first word of "nmedit", so it can be a program name with args.
  6952. set dummy nmedit; ac_word=$2
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6954. $as_echo_n "checking for $ac_word... " >&6; }
  6955. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6956. $as_echo_n "(cached) " >&6
  6957. else
  6958. if test -n "$ac_ct_NMEDIT"; then
  6959. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6960. else
  6961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6962. for as_dir in $PATH
  6963. do
  6964. IFS=$as_save_IFS
  6965. test -z "$as_dir" && as_dir=.
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6978. if test -n "$ac_ct_NMEDIT"; then
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6980. $as_echo "$ac_ct_NMEDIT" >&6; }
  6981. else
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. $as_echo "no" >&6; }
  6984. fi
  6985. if test "x$ac_ct_NMEDIT" = x; then
  6986. NMEDIT=":"
  6987. else
  6988. case $cross_compiling:$ac_tool_warned in
  6989. yes:)
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6992. ac_tool_warned=yes ;;
  6993. esac
  6994. NMEDIT=$ac_ct_NMEDIT
  6995. fi
  6996. else
  6997. NMEDIT="$ac_cv_prog_NMEDIT"
  6998. fi
  6999. if test -n "$ac_tool_prefix"; then
  7000. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7001. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7003. $as_echo_n "checking for $ac_word... " >&6; }
  7004. if ${ac_cv_prog_LIPO+:} false; then :
  7005. $as_echo_n "(cached) " >&6
  7006. else
  7007. if test -n "$LIPO"; then
  7008. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7009. else
  7010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7011. for as_dir in $PATH
  7012. do
  7013. IFS=$as_save_IFS
  7014. test -z "$as_dir" && as_dir=.
  7015. for ac_exec_ext in '' $ac_executable_extensions; do
  7016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7017. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7019. break 2
  7020. fi
  7021. done
  7022. done
  7023. IFS=$as_save_IFS
  7024. fi
  7025. fi
  7026. LIPO=$ac_cv_prog_LIPO
  7027. if test -n "$LIPO"; then
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7029. $as_echo "$LIPO" >&6; }
  7030. else
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7032. $as_echo "no" >&6; }
  7033. fi
  7034. fi
  7035. if test -z "$ac_cv_prog_LIPO"; then
  7036. ac_ct_LIPO=$LIPO
  7037. # Extract the first word of "lipo", so it can be a program name with args.
  7038. set dummy lipo; ac_word=$2
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7040. $as_echo_n "checking for $ac_word... " >&6; }
  7041. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7042. $as_echo_n "(cached) " >&6
  7043. else
  7044. if test -n "$ac_ct_LIPO"; then
  7045. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7046. else
  7047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7048. for as_dir in $PATH
  7049. do
  7050. IFS=$as_save_IFS
  7051. test -z "$as_dir" && as_dir=.
  7052. for ac_exec_ext in '' $ac_executable_extensions; do
  7053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7054. ac_cv_prog_ac_ct_LIPO="lipo"
  7055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7056. break 2
  7057. fi
  7058. done
  7059. done
  7060. IFS=$as_save_IFS
  7061. fi
  7062. fi
  7063. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7064. if test -n "$ac_ct_LIPO"; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7066. $as_echo "$ac_ct_LIPO" >&6; }
  7067. else
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7069. $as_echo "no" >&6; }
  7070. fi
  7071. if test "x$ac_ct_LIPO" = x; then
  7072. LIPO=":"
  7073. else
  7074. case $cross_compiling:$ac_tool_warned in
  7075. yes:)
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7077. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7078. ac_tool_warned=yes ;;
  7079. esac
  7080. LIPO=$ac_ct_LIPO
  7081. fi
  7082. else
  7083. LIPO="$ac_cv_prog_LIPO"
  7084. fi
  7085. if test -n "$ac_tool_prefix"; then
  7086. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7087. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7089. $as_echo_n "checking for $ac_word... " >&6; }
  7090. if ${ac_cv_prog_OTOOL+:} false; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. if test -n "$OTOOL"; then
  7094. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7095. else
  7096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7097. for as_dir in $PATH
  7098. do
  7099. IFS=$as_save_IFS
  7100. test -z "$as_dir" && as_dir=.
  7101. for ac_exec_ext in '' $ac_executable_extensions; do
  7102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7103. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7105. break 2
  7106. fi
  7107. done
  7108. done
  7109. IFS=$as_save_IFS
  7110. fi
  7111. fi
  7112. OTOOL=$ac_cv_prog_OTOOL
  7113. if test -n "$OTOOL"; then
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7115. $as_echo "$OTOOL" >&6; }
  7116. else
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7118. $as_echo "no" >&6; }
  7119. fi
  7120. fi
  7121. if test -z "$ac_cv_prog_OTOOL"; then
  7122. ac_ct_OTOOL=$OTOOL
  7123. # Extract the first word of "otool", so it can be a program name with args.
  7124. set dummy otool; ac_word=$2
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7126. $as_echo_n "checking for $ac_word... " >&6; }
  7127. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7128. $as_echo_n "(cached) " >&6
  7129. else
  7130. if test -n "$ac_ct_OTOOL"; then
  7131. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7132. else
  7133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7134. for as_dir in $PATH
  7135. do
  7136. IFS=$as_save_IFS
  7137. test -z "$as_dir" && as_dir=.
  7138. for ac_exec_ext in '' $ac_executable_extensions; do
  7139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7140. ac_cv_prog_ac_ct_OTOOL="otool"
  7141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7142. break 2
  7143. fi
  7144. done
  7145. done
  7146. IFS=$as_save_IFS
  7147. fi
  7148. fi
  7149. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7150. if test -n "$ac_ct_OTOOL"; then
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7152. $as_echo "$ac_ct_OTOOL" >&6; }
  7153. else
  7154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7155. $as_echo "no" >&6; }
  7156. fi
  7157. if test "x$ac_ct_OTOOL" = x; then
  7158. OTOOL=":"
  7159. else
  7160. case $cross_compiling:$ac_tool_warned in
  7161. yes:)
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7163. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7164. ac_tool_warned=yes ;;
  7165. esac
  7166. OTOOL=$ac_ct_OTOOL
  7167. fi
  7168. else
  7169. OTOOL="$ac_cv_prog_OTOOL"
  7170. fi
  7171. if test -n "$ac_tool_prefix"; then
  7172. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7173. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7175. $as_echo_n "checking for $ac_word... " >&6; }
  7176. if ${ac_cv_prog_OTOOL64+:} false; then :
  7177. $as_echo_n "(cached) " >&6
  7178. else
  7179. if test -n "$OTOOL64"; then
  7180. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7181. else
  7182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7183. for as_dir in $PATH
  7184. do
  7185. IFS=$as_save_IFS
  7186. test -z "$as_dir" && as_dir=.
  7187. for ac_exec_ext in '' $ac_executable_extensions; do
  7188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7189. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7191. break 2
  7192. fi
  7193. done
  7194. done
  7195. IFS=$as_save_IFS
  7196. fi
  7197. fi
  7198. OTOOL64=$ac_cv_prog_OTOOL64
  7199. if test -n "$OTOOL64"; then
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7201. $as_echo "$OTOOL64" >&6; }
  7202. else
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7204. $as_echo "no" >&6; }
  7205. fi
  7206. fi
  7207. if test -z "$ac_cv_prog_OTOOL64"; then
  7208. ac_ct_OTOOL64=$OTOOL64
  7209. # Extract the first word of "otool64", so it can be a program name with args.
  7210. set dummy otool64; ac_word=$2
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7212. $as_echo_n "checking for $ac_word... " >&6; }
  7213. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. if test -n "$ac_ct_OTOOL64"; then
  7217. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7218. else
  7219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7220. for as_dir in $PATH
  7221. do
  7222. IFS=$as_save_IFS
  7223. test -z "$as_dir" && as_dir=.
  7224. for ac_exec_ext in '' $ac_executable_extensions; do
  7225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7226. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7228. break 2
  7229. fi
  7230. done
  7231. done
  7232. IFS=$as_save_IFS
  7233. fi
  7234. fi
  7235. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7236. if test -n "$ac_ct_OTOOL64"; then
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7238. $as_echo "$ac_ct_OTOOL64" >&6; }
  7239. else
  7240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7241. $as_echo "no" >&6; }
  7242. fi
  7243. if test "x$ac_ct_OTOOL64" = x; then
  7244. OTOOL64=":"
  7245. else
  7246. case $cross_compiling:$ac_tool_warned in
  7247. yes:)
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7249. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7250. ac_tool_warned=yes ;;
  7251. esac
  7252. OTOOL64=$ac_ct_OTOOL64
  7253. fi
  7254. else
  7255. OTOOL64="$ac_cv_prog_OTOOL64"
  7256. fi
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7258. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7259. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7260. $as_echo_n "(cached) " >&6
  7261. else
  7262. lt_cv_apple_cc_single_mod=no
  7263. if test -z "${LT_MULTI_MODULE}"; then
  7264. # By default we will add the -single_module flag. You can override
  7265. # by either setting the environment variable LT_MULTI_MODULE
  7266. # non-empty at configure time, or by adding -multi_module to the
  7267. # link flags.
  7268. rm -rf libconftest.dylib*
  7269. echo "int foo(void){return 1;}" > conftest.c
  7270. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7271. -dynamiclib -Wl,-single_module conftest.c" >&5
  7272. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7273. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7274. _lt_result=$?
  7275. # If there is a non-empty error log, and "single_module"
  7276. # appears in it, assume the flag caused a linker warning
  7277. if test -s conftest.err && $GREP single_module conftest.err; then
  7278. cat conftest.err >&5
  7279. # Otherwise, if the output was created with a 0 exit code from
  7280. # the compiler, it worked.
  7281. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7282. lt_cv_apple_cc_single_mod=yes
  7283. else
  7284. cat conftest.err >&5
  7285. fi
  7286. rm -rf libconftest.dylib*
  7287. rm -f conftest.*
  7288. fi
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7291. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7293. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7294. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7295. $as_echo_n "(cached) " >&6
  7296. else
  7297. lt_cv_ld_exported_symbols_list=no
  7298. save_LDFLAGS=$LDFLAGS
  7299. echo "_main" > conftest.sym
  7300. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7302. /* end confdefs.h. */
  7303. int
  7304. main ()
  7305. {
  7306. ;
  7307. return 0;
  7308. }
  7309. _ACEOF
  7310. if ac_fn_c_try_link "$LINENO"; then :
  7311. lt_cv_ld_exported_symbols_list=yes
  7312. else
  7313. lt_cv_ld_exported_symbols_list=no
  7314. fi
  7315. rm -f core conftest.err conftest.$ac_objext \
  7316. conftest$ac_exeext conftest.$ac_ext
  7317. LDFLAGS="$save_LDFLAGS"
  7318. fi
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7320. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7322. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7323. if ${lt_cv_ld_force_load+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_ld_force_load=no
  7327. cat > conftest.c << _LT_EOF
  7328. int forced_loaded() { return 2;}
  7329. _LT_EOF
  7330. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7331. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7332. echo "$AR cru libconftest.a conftest.o" >&5
  7333. $AR cru libconftest.a conftest.o 2>&5
  7334. echo "$RANLIB libconftest.a" >&5
  7335. $RANLIB libconftest.a 2>&5
  7336. cat > conftest.c << _LT_EOF
  7337. int main() { return 0;}
  7338. _LT_EOF
  7339. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7340. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7341. _lt_result=$?
  7342. if test -s conftest.err && $GREP force_load conftest.err; then
  7343. cat conftest.err >&5
  7344. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7345. lt_cv_ld_force_load=yes
  7346. else
  7347. cat conftest.err >&5
  7348. fi
  7349. rm -f conftest.err libconftest.a conftest conftest.c
  7350. rm -rf conftest.dSYM
  7351. fi
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7353. $as_echo "$lt_cv_ld_force_load" >&6; }
  7354. case $host_os in
  7355. rhapsody* | darwin1.[012])
  7356. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7357. darwin1.*)
  7358. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7359. darwin*) # darwin 5.x on
  7360. # if running on 10.5 or later, the deployment target defaults
  7361. # to the OS version, if on x86, and 10.4, the deployment
  7362. # target defaults to 10.4. Don't you love it?
  7363. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7364. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7365. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7366. 10.[012]*)
  7367. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7368. 10.*)
  7369. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7370. esac
  7371. ;;
  7372. esac
  7373. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7374. _lt_dar_single_mod='$single_module'
  7375. fi
  7376. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7377. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7378. else
  7379. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7380. fi
  7381. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7382. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7383. else
  7384. _lt_dsymutil=
  7385. fi
  7386. ;;
  7387. esac
  7388. ac_ext=c
  7389. ac_cpp='$CPP $CPPFLAGS'
  7390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7394. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7395. # On Suns, sometimes $CPP names a directory.
  7396. if test -n "$CPP" && test -d "$CPP"; then
  7397. CPP=
  7398. fi
  7399. if test -z "$CPP"; then
  7400. if ${ac_cv_prog_CPP+:} false; then :
  7401. $as_echo_n "(cached) " >&6
  7402. else
  7403. # Double quotes because CPP needs to be expanded
  7404. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7405. do
  7406. ac_preproc_ok=false
  7407. for ac_c_preproc_warn_flag in '' yes
  7408. do
  7409. # Use a header file that comes with gcc, so configuring glibc
  7410. # with a fresh cross-compiler works.
  7411. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7412. # <limits.h> exists even on freestanding compilers.
  7413. # On the NeXT, cc -E runs the code through the compiler's parser,
  7414. # not just through cpp. "Syntax error" is here to catch this case.
  7415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7416. /* end confdefs.h. */
  7417. #ifdef __STDC__
  7418. # include <limits.h>
  7419. #else
  7420. # include <assert.h>
  7421. #endif
  7422. Syntax error
  7423. _ACEOF
  7424. if ac_fn_c_try_cpp "$LINENO"; then :
  7425. else
  7426. # Broken: fails on valid input.
  7427. continue
  7428. fi
  7429. rm -f conftest.err conftest.i conftest.$ac_ext
  7430. # OK, works on sane cases. Now check whether nonexistent headers
  7431. # can be detected and how.
  7432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7433. /* end confdefs.h. */
  7434. #include <ac_nonexistent.h>
  7435. _ACEOF
  7436. if ac_fn_c_try_cpp "$LINENO"; then :
  7437. # Broken: success on invalid input.
  7438. continue
  7439. else
  7440. # Passes both tests.
  7441. ac_preproc_ok=:
  7442. break
  7443. fi
  7444. rm -f conftest.err conftest.i conftest.$ac_ext
  7445. done
  7446. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7447. rm -f conftest.i conftest.err conftest.$ac_ext
  7448. if $ac_preproc_ok; then :
  7449. break
  7450. fi
  7451. done
  7452. ac_cv_prog_CPP=$CPP
  7453. fi
  7454. CPP=$ac_cv_prog_CPP
  7455. else
  7456. ac_cv_prog_CPP=$CPP
  7457. fi
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7459. $as_echo "$CPP" >&6; }
  7460. ac_preproc_ok=false
  7461. for ac_c_preproc_warn_flag in '' yes
  7462. do
  7463. # Use a header file that comes with gcc, so configuring glibc
  7464. # with a fresh cross-compiler works.
  7465. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7466. # <limits.h> exists even on freestanding compilers.
  7467. # On the NeXT, cc -E runs the code through the compiler's parser,
  7468. # not just through cpp. "Syntax error" is here to catch this case.
  7469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7470. /* end confdefs.h. */
  7471. #ifdef __STDC__
  7472. # include <limits.h>
  7473. #else
  7474. # include <assert.h>
  7475. #endif
  7476. Syntax error
  7477. _ACEOF
  7478. if ac_fn_c_try_cpp "$LINENO"; then :
  7479. else
  7480. # Broken: fails on valid input.
  7481. continue
  7482. fi
  7483. rm -f conftest.err conftest.i conftest.$ac_ext
  7484. # OK, works on sane cases. Now check whether nonexistent headers
  7485. # can be detected and how.
  7486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7487. /* end confdefs.h. */
  7488. #include <ac_nonexistent.h>
  7489. _ACEOF
  7490. if ac_fn_c_try_cpp "$LINENO"; then :
  7491. # Broken: success on invalid input.
  7492. continue
  7493. else
  7494. # Passes both tests.
  7495. ac_preproc_ok=:
  7496. break
  7497. fi
  7498. rm -f conftest.err conftest.i conftest.$ac_ext
  7499. done
  7500. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7501. rm -f conftest.i conftest.err conftest.$ac_ext
  7502. if $ac_preproc_ok; then :
  7503. else
  7504. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7506. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7507. See \`config.log' for more details" "$LINENO" 5; }
  7508. fi
  7509. ac_ext=c
  7510. ac_cpp='$CPP $CPPFLAGS'
  7511. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7512. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7513. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7515. $as_echo_n "checking for ANSI C header files... " >&6; }
  7516. if ${ac_cv_header_stdc+:} false; then :
  7517. $as_echo_n "(cached) " >&6
  7518. else
  7519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7520. /* end confdefs.h. */
  7521. #include <stdlib.h>
  7522. #include <stdarg.h>
  7523. #include <string.h>
  7524. #include <float.h>
  7525. int
  7526. main ()
  7527. {
  7528. ;
  7529. return 0;
  7530. }
  7531. _ACEOF
  7532. if ac_fn_c_try_compile "$LINENO"; then :
  7533. ac_cv_header_stdc=yes
  7534. else
  7535. ac_cv_header_stdc=no
  7536. fi
  7537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7538. if test $ac_cv_header_stdc = yes; then
  7539. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7541. /* end confdefs.h. */
  7542. #include <string.h>
  7543. _ACEOF
  7544. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7545. $EGREP "memchr" >/dev/null 2>&1; then :
  7546. else
  7547. ac_cv_header_stdc=no
  7548. fi
  7549. rm -f conftest*
  7550. fi
  7551. if test $ac_cv_header_stdc = yes; then
  7552. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7554. /* end confdefs.h. */
  7555. #include <stdlib.h>
  7556. _ACEOF
  7557. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7558. $EGREP "free" >/dev/null 2>&1; then :
  7559. else
  7560. ac_cv_header_stdc=no
  7561. fi
  7562. rm -f conftest*
  7563. fi
  7564. if test $ac_cv_header_stdc = yes; then
  7565. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7566. if test "$cross_compiling" = yes; then :
  7567. :
  7568. else
  7569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7570. /* end confdefs.h. */
  7571. #include <ctype.h>
  7572. #include <stdlib.h>
  7573. #if ((' ' & 0x0FF) == 0x020)
  7574. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7575. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7576. #else
  7577. # define ISLOWER(c) \
  7578. (('a' <= (c) && (c) <= 'i') \
  7579. || ('j' <= (c) && (c) <= 'r') \
  7580. || ('s' <= (c) && (c) <= 'z'))
  7581. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7582. #endif
  7583. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7584. int
  7585. main ()
  7586. {
  7587. int i;
  7588. for (i = 0; i < 256; i++)
  7589. if (XOR (islower (i), ISLOWER (i))
  7590. || toupper (i) != TOUPPER (i))
  7591. return 2;
  7592. return 0;
  7593. }
  7594. _ACEOF
  7595. if ac_fn_c_try_run "$LINENO"; then :
  7596. else
  7597. ac_cv_header_stdc=no
  7598. fi
  7599. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7600. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7601. fi
  7602. fi
  7603. fi
  7604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7605. $as_echo "$ac_cv_header_stdc" >&6; }
  7606. if test $ac_cv_header_stdc = yes; then
  7607. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7608. fi
  7609. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7610. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7611. inttypes.h stdint.h unistd.h
  7612. do :
  7613. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7614. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7615. "
  7616. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7617. cat >>confdefs.h <<_ACEOF
  7618. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7619. _ACEOF
  7620. fi
  7621. done
  7622. for ac_header in dlfcn.h
  7623. do :
  7624. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7625. "
  7626. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7627. cat >>confdefs.h <<_ACEOF
  7628. #define HAVE_DLFCN_H 1
  7629. _ACEOF
  7630. fi
  7631. done
  7632. func_stripname_cnf ()
  7633. {
  7634. case ${2} in
  7635. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7636. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7637. esac
  7638. } # func_stripname_cnf
  7639. # Set options
  7640. enable_dlopen=no
  7641. enable_win32_dll=no
  7642. # Check whether --enable-shared was given.
  7643. if test "${enable_shared+set}" = set; then :
  7644. enableval=$enable_shared; p=${PACKAGE-default}
  7645. case $enableval in
  7646. yes) enable_shared=yes ;;
  7647. no) enable_shared=no ;;
  7648. *)
  7649. enable_shared=no
  7650. # Look at the argument we got. We use all the common list separators.
  7651. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7652. for pkg in $enableval; do
  7653. IFS="$lt_save_ifs"
  7654. if test "X$pkg" = "X$p"; then
  7655. enable_shared=yes
  7656. fi
  7657. done
  7658. IFS="$lt_save_ifs"
  7659. ;;
  7660. esac
  7661. else
  7662. enable_shared=yes
  7663. fi
  7664. # Check whether --with-pic was given.
  7665. if test "${with_pic+set}" = set; then :
  7666. withval=$with_pic; lt_p=${PACKAGE-default}
  7667. case $withval in
  7668. yes|no) pic_mode=$withval ;;
  7669. *)
  7670. pic_mode=default
  7671. # Look at the argument we got. We use all the common list separators.
  7672. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7673. for lt_pkg in $withval; do
  7674. IFS="$lt_save_ifs"
  7675. if test "X$lt_pkg" = "X$lt_p"; then
  7676. pic_mode=yes
  7677. fi
  7678. done
  7679. IFS="$lt_save_ifs"
  7680. ;;
  7681. esac
  7682. else
  7683. pic_mode=default
  7684. fi
  7685. test -z "$pic_mode" && pic_mode=default
  7686. # Check whether --enable-fast-install was given.
  7687. if test "${enable_fast_install+set}" = set; then :
  7688. enableval=$enable_fast_install; p=${PACKAGE-default}
  7689. case $enableval in
  7690. yes) enable_fast_install=yes ;;
  7691. no) enable_fast_install=no ;;
  7692. *)
  7693. enable_fast_install=no
  7694. # Look at the argument we got. We use all the common list separators.
  7695. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7696. for pkg in $enableval; do
  7697. IFS="$lt_save_ifs"
  7698. if test "X$pkg" = "X$p"; then
  7699. enable_fast_install=yes
  7700. fi
  7701. done
  7702. IFS="$lt_save_ifs"
  7703. ;;
  7704. esac
  7705. else
  7706. enable_fast_install=yes
  7707. fi
  7708. # This can be used to rebuild libtool when needed
  7709. LIBTOOL_DEPS="$ltmain"
  7710. # Always use our own libtool.
  7711. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7712. test -z "$LN_S" && LN_S="ln -s"
  7713. if test -n "${ZSH_VERSION+set}" ; then
  7714. setopt NO_GLOB_SUBST
  7715. fi
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7717. $as_echo_n "checking for objdir... " >&6; }
  7718. if ${lt_cv_objdir+:} false; then :
  7719. $as_echo_n "(cached) " >&6
  7720. else
  7721. rm -f .libs 2>/dev/null
  7722. mkdir .libs 2>/dev/null
  7723. if test -d .libs; then
  7724. lt_cv_objdir=.libs
  7725. else
  7726. # MS-DOS does not allow filenames that begin with a dot.
  7727. lt_cv_objdir=_libs
  7728. fi
  7729. rmdir .libs 2>/dev/null
  7730. fi
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7732. $as_echo "$lt_cv_objdir" >&6; }
  7733. objdir=$lt_cv_objdir
  7734. cat >>confdefs.h <<_ACEOF
  7735. #define LT_OBJDIR "$lt_cv_objdir/"
  7736. _ACEOF
  7737. case $host_os in
  7738. aix3*)
  7739. # AIX sometimes has problems with the GCC collect2 program. For some
  7740. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7741. # vanish in a puff of smoke.
  7742. if test "X${COLLECT_NAMES+set}" != Xset; then
  7743. COLLECT_NAMES=
  7744. export COLLECT_NAMES
  7745. fi
  7746. ;;
  7747. esac
  7748. # Global variables:
  7749. ofile=libtool
  7750. can_build_shared=yes
  7751. # All known linkers require a `.a' archive for static linking (except MSVC,
  7752. # which needs '.lib').
  7753. libext=a
  7754. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7755. old_CC="$CC"
  7756. old_CFLAGS="$CFLAGS"
  7757. # Set sane defaults for various variables
  7758. test -z "$CC" && CC=cc
  7759. test -z "$LTCC" && LTCC=$CC
  7760. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7761. test -z "$LD" && LD=ld
  7762. test -z "$ac_objext" && ac_objext=o
  7763. for cc_temp in $compiler""; do
  7764. case $cc_temp in
  7765. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7766. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7767. \-*) ;;
  7768. *) break;;
  7769. esac
  7770. done
  7771. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7772. # Only perform the check for file, if the check method requires it
  7773. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7774. case $deplibs_check_method in
  7775. file_magic*)
  7776. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7778. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7779. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7780. $as_echo_n "(cached) " >&6
  7781. else
  7782. case $MAGIC_CMD in
  7783. [\\/*] | ?:[\\/]*)
  7784. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7785. ;;
  7786. *)
  7787. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7788. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7789. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7790. for ac_dir in $ac_dummy; do
  7791. IFS="$lt_save_ifs"
  7792. test -z "$ac_dir" && ac_dir=.
  7793. if test -f $ac_dir/${ac_tool_prefix}file; then
  7794. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7795. if test -n "$file_magic_test_file"; then
  7796. case $deplibs_check_method in
  7797. "file_magic "*)
  7798. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7799. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7800. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7801. $EGREP "$file_magic_regex" > /dev/null; then
  7802. :
  7803. else
  7804. cat <<_LT_EOF 1>&2
  7805. *** Warning: the command libtool uses to detect shared libraries,
  7806. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7807. *** The result is that libtool may fail to recognize shared libraries
  7808. *** as such. This will affect the creation of libtool libraries that
  7809. *** depend on shared libraries, but programs linked with such libtool
  7810. *** libraries will work regardless of this problem. Nevertheless, you
  7811. *** may want to report the problem to your system manager and/or to
  7812. *** [email protected]
  7813. _LT_EOF
  7814. fi ;;
  7815. esac
  7816. fi
  7817. break
  7818. fi
  7819. done
  7820. IFS="$lt_save_ifs"
  7821. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7822. ;;
  7823. esac
  7824. fi
  7825. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7826. if test -n "$MAGIC_CMD"; then
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7828. $as_echo "$MAGIC_CMD" >&6; }
  7829. else
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7831. $as_echo "no" >&6; }
  7832. fi
  7833. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7834. if test -n "$ac_tool_prefix"; then
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7836. $as_echo_n "checking for file... " >&6; }
  7837. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. case $MAGIC_CMD in
  7841. [\\/*] | ?:[\\/]*)
  7842. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7843. ;;
  7844. *)
  7845. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7846. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7847. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7848. for ac_dir in $ac_dummy; do
  7849. IFS="$lt_save_ifs"
  7850. test -z "$ac_dir" && ac_dir=.
  7851. if test -f $ac_dir/file; then
  7852. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7853. if test -n "$file_magic_test_file"; then
  7854. case $deplibs_check_method in
  7855. "file_magic "*)
  7856. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7857. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7858. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7859. $EGREP "$file_magic_regex" > /dev/null; then
  7860. :
  7861. else
  7862. cat <<_LT_EOF 1>&2
  7863. *** Warning: the command libtool uses to detect shared libraries,
  7864. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7865. *** The result is that libtool may fail to recognize shared libraries
  7866. *** as such. This will affect the creation of libtool libraries that
  7867. *** depend on shared libraries, but programs linked with such libtool
  7868. *** libraries will work regardless of this problem. Nevertheless, you
  7869. *** may want to report the problem to your system manager and/or to
  7870. *** [email protected]
  7871. _LT_EOF
  7872. fi ;;
  7873. esac
  7874. fi
  7875. break
  7876. fi
  7877. done
  7878. IFS="$lt_save_ifs"
  7879. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7880. ;;
  7881. esac
  7882. fi
  7883. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7884. if test -n "$MAGIC_CMD"; then
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7886. $as_echo "$MAGIC_CMD" >&6; }
  7887. else
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7889. $as_echo "no" >&6; }
  7890. fi
  7891. else
  7892. MAGIC_CMD=:
  7893. fi
  7894. fi
  7895. fi
  7896. ;;
  7897. esac
  7898. # Use C for the default configuration in the libtool script
  7899. lt_save_CC="$CC"
  7900. ac_ext=c
  7901. ac_cpp='$CPP $CPPFLAGS'
  7902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7905. # Source file extension for C test sources.
  7906. ac_ext=c
  7907. # Object file extension for compiled C test sources.
  7908. objext=o
  7909. objext=$objext
  7910. # Code to be used in simple compile tests
  7911. lt_simple_compile_test_code="int some_variable = 0;"
  7912. # Code to be used in simple link tests
  7913. lt_simple_link_test_code='int main(){return(0);}'
  7914. # If no C compiler was specified, use CC.
  7915. LTCC=${LTCC-"$CC"}
  7916. # If no C compiler flags were specified, use CFLAGS.
  7917. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7918. # Allow CC to be a program name with arguments.
  7919. compiler=$CC
  7920. # Save the default compiler, since it gets overwritten when the other
  7921. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7922. compiler_DEFAULT=$CC
  7923. # save warnings/boilerplate of simple test code
  7924. ac_outfile=conftest.$ac_objext
  7925. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7926. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7927. _lt_compiler_boilerplate=`cat conftest.err`
  7928. $RM conftest*
  7929. ac_outfile=conftest.$ac_objext
  7930. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7931. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7932. _lt_linker_boilerplate=`cat conftest.err`
  7933. $RM -r conftest*
  7934. ## CAVEAT EMPTOR:
  7935. ## There is no encapsulation within the following macros, do not change
  7936. ## the running order or otherwise move them around unless you know exactly
  7937. ## what you are doing...
  7938. if test -n "$compiler"; then
  7939. lt_prog_compiler_no_builtin_flag=
  7940. if test "$GCC" = yes; then
  7941. case $cc_basename in
  7942. nvcc*)
  7943. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7944. *)
  7945. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7946. esac
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7948. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7949. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7950. $as_echo_n "(cached) " >&6
  7951. else
  7952. lt_cv_prog_compiler_rtti_exceptions=no
  7953. ac_outfile=conftest.$ac_objext
  7954. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7955. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7956. # Insert the option either (1) after the last *FLAGS variable, or
  7957. # (2) before a word containing "conftest.", or (3) at the end.
  7958. # Note that $ac_compile itself does not contain backslashes and begins
  7959. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7960. # The option is referenced via a variable to avoid confusing sed.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>conftest.err)
  7967. ac_status=$?
  7968. cat conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s "$ac_outfile"; then
  7971. # The compiler can only warn and ignore the option if not recognized
  7972. # So say no if there are warnings other than the usual output.
  7973. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7974. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7975. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7976. lt_cv_prog_compiler_rtti_exceptions=yes
  7977. fi
  7978. fi
  7979. $RM conftest*
  7980. fi
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7982. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7983. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7984. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7985. else
  7986. :
  7987. fi
  7988. fi
  7989. lt_prog_compiler_wl=
  7990. lt_prog_compiler_pic=
  7991. lt_prog_compiler_static=
  7992. if test "$GCC" = yes; then
  7993. lt_prog_compiler_wl='-Wl,'
  7994. lt_prog_compiler_static='-static'
  7995. case $host_os in
  7996. aix*)
  7997. # All AIX code is PIC.
  7998. if test "$host_cpu" = ia64; then
  7999. # AIX 5 now supports IA64 processor
  8000. lt_prog_compiler_static='-Bstatic'
  8001. fi
  8002. ;;
  8003. amigaos*)
  8004. case $host_cpu in
  8005. powerpc)
  8006. # see comment about AmigaOS4 .so support
  8007. lt_prog_compiler_pic='-fPIC'
  8008. ;;
  8009. m68k)
  8010. # FIXME: we need at least 68020 code to build shared libraries, but
  8011. # adding the `-m68020' flag to GCC prevents building anything better,
  8012. # like `-m68040'.
  8013. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8014. ;;
  8015. esac
  8016. ;;
  8017. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8018. # PIC is the default for these OSes.
  8019. ;;
  8020. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8021. # This hack is so that the source file can tell whether it is being
  8022. # built for inclusion in a dll (and should export symbols for example).
  8023. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8024. # (--disable-auto-import) libraries
  8025. lt_prog_compiler_pic='-DDLL_EXPORT'
  8026. ;;
  8027. darwin* | rhapsody*)
  8028. # PIC is the default on this platform
  8029. # Common symbols not allowed in MH_DYLIB files
  8030. lt_prog_compiler_pic='-fno-common'
  8031. ;;
  8032. haiku*)
  8033. # PIC is the default for Haiku.
  8034. # The "-static" flag exists, but is broken.
  8035. lt_prog_compiler_static=
  8036. ;;
  8037. hpux*)
  8038. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8039. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8040. # sets the default TLS model and affects inlining.
  8041. case $host_cpu in
  8042. hppa*64*)
  8043. # +Z the default
  8044. ;;
  8045. *)
  8046. lt_prog_compiler_pic='-fPIC'
  8047. ;;
  8048. esac
  8049. ;;
  8050. interix[3-9]*)
  8051. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8052. # Instead, we relocate shared libraries at runtime.
  8053. ;;
  8054. msdosdjgpp*)
  8055. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8056. # on systems that don't support them.
  8057. lt_prog_compiler_can_build_shared=no
  8058. enable_shared=no
  8059. ;;
  8060. *nto* | *qnx*)
  8061. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8062. # it will coredump.
  8063. lt_prog_compiler_pic='-fPIC -shared'
  8064. ;;
  8065. sysv4*MP*)
  8066. if test -d /usr/nec; then
  8067. lt_prog_compiler_pic=-Kconform_pic
  8068. fi
  8069. ;;
  8070. *)
  8071. lt_prog_compiler_pic='-fPIC'
  8072. ;;
  8073. esac
  8074. case $cc_basename in
  8075. nvcc*) # Cuda Compiler Driver 2.2
  8076. lt_prog_compiler_wl='-Xlinker '
  8077. if test -n "$lt_prog_compiler_pic"; then
  8078. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8079. fi
  8080. ;;
  8081. esac
  8082. else
  8083. # PORTME Check for flag to pass linker flags through the system compiler.
  8084. case $host_os in
  8085. aix*)
  8086. lt_prog_compiler_wl='-Wl,'
  8087. if test "$host_cpu" = ia64; then
  8088. # AIX 5 now supports IA64 processor
  8089. lt_prog_compiler_static='-Bstatic'
  8090. else
  8091. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8092. fi
  8093. ;;
  8094. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8095. # This hack is so that the source file can tell whether it is being
  8096. # built for inclusion in a dll (and should export symbols for example).
  8097. lt_prog_compiler_pic='-DDLL_EXPORT'
  8098. ;;
  8099. hpux9* | hpux10* | hpux11*)
  8100. lt_prog_compiler_wl='-Wl,'
  8101. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8102. # not for PA HP-UX.
  8103. case $host_cpu in
  8104. hppa*64*|ia64*)
  8105. # +Z the default
  8106. ;;
  8107. *)
  8108. lt_prog_compiler_pic='+Z'
  8109. ;;
  8110. esac
  8111. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8112. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8113. ;;
  8114. irix5* | irix6* | nonstopux*)
  8115. lt_prog_compiler_wl='-Wl,'
  8116. # PIC (with -KPIC) is the default.
  8117. lt_prog_compiler_static='-non_shared'
  8118. ;;
  8119. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8120. case $cc_basename in
  8121. # old Intel for x86_64 which still supported -KPIC.
  8122. ecc*)
  8123. lt_prog_compiler_wl='-Wl,'
  8124. lt_prog_compiler_pic='-KPIC'
  8125. lt_prog_compiler_static='-static'
  8126. ;;
  8127. # icc used to be incompatible with GCC.
  8128. # ICC 10 doesn't accept -KPIC any more.
  8129. icc* | ifort*)
  8130. lt_prog_compiler_wl='-Wl,'
  8131. lt_prog_compiler_pic='-fPIC'
  8132. lt_prog_compiler_static='-static'
  8133. ;;
  8134. # Lahey Fortran 8.1.
  8135. lf95*)
  8136. lt_prog_compiler_wl='-Wl,'
  8137. lt_prog_compiler_pic='--shared'
  8138. lt_prog_compiler_static='--static'
  8139. ;;
  8140. nagfor*)
  8141. # NAG Fortran compiler
  8142. lt_prog_compiler_wl='-Wl,-Wl,,'
  8143. lt_prog_compiler_pic='-PIC'
  8144. lt_prog_compiler_static='-Bstatic'
  8145. ;;
  8146. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8147. # Portland Group compilers (*not* the Pentium gcc compiler,
  8148. # which looks to be a dead project)
  8149. lt_prog_compiler_wl='-Wl,'
  8150. lt_prog_compiler_pic='-fpic'
  8151. lt_prog_compiler_static='-Bstatic'
  8152. ;;
  8153. ccc*)
  8154. lt_prog_compiler_wl='-Wl,'
  8155. # All Alpha code is PIC.
  8156. lt_prog_compiler_static='-non_shared'
  8157. ;;
  8158. xl* | bgxl* | bgf* | mpixl*)
  8159. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8160. lt_prog_compiler_wl='-Wl,'
  8161. lt_prog_compiler_pic='-qpic'
  8162. lt_prog_compiler_static='-qstaticlink'
  8163. ;;
  8164. *)
  8165. case `$CC -V 2>&1 | sed 5q` in
  8166. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8167. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8168. lt_prog_compiler_pic='-KPIC'
  8169. lt_prog_compiler_static='-Bstatic'
  8170. lt_prog_compiler_wl=''
  8171. ;;
  8172. *Sun\ F* | *Sun*Fortran*)
  8173. lt_prog_compiler_pic='-KPIC'
  8174. lt_prog_compiler_static='-Bstatic'
  8175. lt_prog_compiler_wl='-Qoption ld '
  8176. ;;
  8177. *Sun\ C*)
  8178. # Sun C 5.9
  8179. lt_prog_compiler_pic='-KPIC'
  8180. lt_prog_compiler_static='-Bstatic'
  8181. lt_prog_compiler_wl='-Wl,'
  8182. ;;
  8183. *Intel*\ [CF]*Compiler*)
  8184. lt_prog_compiler_wl='-Wl,'
  8185. lt_prog_compiler_pic='-fPIC'
  8186. lt_prog_compiler_static='-static'
  8187. ;;
  8188. *Portland\ Group*)
  8189. lt_prog_compiler_wl='-Wl,'
  8190. lt_prog_compiler_pic='-fpic'
  8191. lt_prog_compiler_static='-Bstatic'
  8192. ;;
  8193. esac
  8194. ;;
  8195. esac
  8196. ;;
  8197. newsos6)
  8198. lt_prog_compiler_pic='-KPIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. ;;
  8201. *nto* | *qnx*)
  8202. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8203. # it will coredump.
  8204. lt_prog_compiler_pic='-fPIC -shared'
  8205. ;;
  8206. osf3* | osf4* | osf5*)
  8207. lt_prog_compiler_wl='-Wl,'
  8208. # All OSF/1 code is PIC.
  8209. lt_prog_compiler_static='-non_shared'
  8210. ;;
  8211. rdos*)
  8212. lt_prog_compiler_static='-non_shared'
  8213. ;;
  8214. solaris*)
  8215. lt_prog_compiler_pic='-KPIC'
  8216. lt_prog_compiler_static='-Bstatic'
  8217. case $cc_basename in
  8218. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8219. lt_prog_compiler_wl='-Qoption ld ';;
  8220. *)
  8221. lt_prog_compiler_wl='-Wl,';;
  8222. esac
  8223. ;;
  8224. sunos4*)
  8225. lt_prog_compiler_wl='-Qoption ld '
  8226. lt_prog_compiler_pic='-PIC'
  8227. lt_prog_compiler_static='-Bstatic'
  8228. ;;
  8229. sysv4 | sysv4.2uw2* | sysv4.3*)
  8230. lt_prog_compiler_wl='-Wl,'
  8231. lt_prog_compiler_pic='-KPIC'
  8232. lt_prog_compiler_static='-Bstatic'
  8233. ;;
  8234. sysv4*MP*)
  8235. if test -d /usr/nec ;then
  8236. lt_prog_compiler_pic='-Kconform_pic'
  8237. lt_prog_compiler_static='-Bstatic'
  8238. fi
  8239. ;;
  8240. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8241. lt_prog_compiler_wl='-Wl,'
  8242. lt_prog_compiler_pic='-KPIC'
  8243. lt_prog_compiler_static='-Bstatic'
  8244. ;;
  8245. unicos*)
  8246. lt_prog_compiler_wl='-Wl,'
  8247. lt_prog_compiler_can_build_shared=no
  8248. ;;
  8249. uts4*)
  8250. lt_prog_compiler_pic='-pic'
  8251. lt_prog_compiler_static='-Bstatic'
  8252. ;;
  8253. *)
  8254. lt_prog_compiler_can_build_shared=no
  8255. ;;
  8256. esac
  8257. fi
  8258. case $host_os in
  8259. # For platforms which do not support PIC, -DPIC is meaningless:
  8260. *djgpp*)
  8261. lt_prog_compiler_pic=
  8262. ;;
  8263. *)
  8264. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8265. ;;
  8266. esac
  8267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8268. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8269. if ${lt_cv_prog_compiler_pic+:} false; then :
  8270. $as_echo_n "(cached) " >&6
  8271. else
  8272. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8273. fi
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8275. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8276. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8277. #
  8278. # Check to make sure the PIC flag actually works.
  8279. #
  8280. if test -n "$lt_prog_compiler_pic"; then
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8282. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8283. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8284. $as_echo_n "(cached) " >&6
  8285. else
  8286. lt_cv_prog_compiler_pic_works=no
  8287. ac_outfile=conftest.$ac_objext
  8288. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8289. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8290. # Insert the option either (1) after the last *FLAGS variable, or
  8291. # (2) before a word containing "conftest.", or (3) at the end.
  8292. # Note that $ac_compile itself does not contain backslashes and begins
  8293. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8294. # The option is referenced via a variable to avoid confusing sed.
  8295. lt_compile=`echo "$ac_compile" | $SED \
  8296. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8297. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8298. -e 's:$: $lt_compiler_flag:'`
  8299. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8300. (eval "$lt_compile" 2>conftest.err)
  8301. ac_status=$?
  8302. cat conftest.err >&5
  8303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8304. if (exit $ac_status) && test -s "$ac_outfile"; then
  8305. # The compiler can only warn and ignore the option if not recognized
  8306. # So say no if there are warnings other than the usual output.
  8307. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8308. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8309. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8310. lt_cv_prog_compiler_pic_works=yes
  8311. fi
  8312. fi
  8313. $RM conftest*
  8314. fi
  8315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8316. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8317. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8318. case $lt_prog_compiler_pic in
  8319. "" | " "*) ;;
  8320. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8321. esac
  8322. else
  8323. lt_prog_compiler_pic=
  8324. lt_prog_compiler_can_build_shared=no
  8325. fi
  8326. fi
  8327. #
  8328. # Check to make sure the static flag actually works.
  8329. #
  8330. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8332. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8333. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8334. $as_echo_n "(cached) " >&6
  8335. else
  8336. lt_cv_prog_compiler_static_works=no
  8337. save_LDFLAGS="$LDFLAGS"
  8338. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8339. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8340. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8341. # The linker can only warn and ignore the option if not recognized
  8342. # So say no if there are warnings
  8343. if test -s conftest.err; then
  8344. # Append any errors to the config.log.
  8345. cat conftest.err 1>&5
  8346. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8347. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8348. if diff conftest.exp conftest.er2 >/dev/null; then
  8349. lt_cv_prog_compiler_static_works=yes
  8350. fi
  8351. else
  8352. lt_cv_prog_compiler_static_works=yes
  8353. fi
  8354. fi
  8355. $RM -r conftest*
  8356. LDFLAGS="$save_LDFLAGS"
  8357. fi
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8359. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8360. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8361. :
  8362. else
  8363. lt_prog_compiler_static=
  8364. fi
  8365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8366. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8367. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8368. $as_echo_n "(cached) " >&6
  8369. else
  8370. lt_cv_prog_compiler_c_o=no
  8371. $RM -r conftest 2>/dev/null
  8372. mkdir conftest
  8373. cd conftest
  8374. mkdir out
  8375. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8376. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8377. # Insert the option either (1) after the last *FLAGS variable, or
  8378. # (2) before a word containing "conftest.", or (3) at the end.
  8379. # Note that $ac_compile itself does not contain backslashes and begins
  8380. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8381. lt_compile=`echo "$ac_compile" | $SED \
  8382. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8383. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8384. -e 's:$: $lt_compiler_flag:'`
  8385. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8386. (eval "$lt_compile" 2>out/conftest.err)
  8387. ac_status=$?
  8388. cat out/conftest.err >&5
  8389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8390. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8391. then
  8392. # The compiler can only warn and ignore the option if not recognized
  8393. # So say no if there are warnings
  8394. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8395. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8396. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8397. lt_cv_prog_compiler_c_o=yes
  8398. fi
  8399. fi
  8400. chmod u+w . 2>&5
  8401. $RM conftest*
  8402. # SGI C++ compiler will create directory out/ii_files/ for
  8403. # template instantiation
  8404. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8405. $RM out/* && rmdir out
  8406. cd ..
  8407. $RM -r conftest
  8408. $RM conftest*
  8409. fi
  8410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8411. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8413. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8414. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8415. $as_echo_n "(cached) " >&6
  8416. else
  8417. lt_cv_prog_compiler_c_o=no
  8418. $RM -r conftest 2>/dev/null
  8419. mkdir conftest
  8420. cd conftest
  8421. mkdir out
  8422. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8423. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8424. # Insert the option either (1) after the last *FLAGS variable, or
  8425. # (2) before a word containing "conftest.", or (3) at the end.
  8426. # Note that $ac_compile itself does not contain backslashes and begins
  8427. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8428. lt_compile=`echo "$ac_compile" | $SED \
  8429. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8430. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8431. -e 's:$: $lt_compiler_flag:'`
  8432. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8433. (eval "$lt_compile" 2>out/conftest.err)
  8434. ac_status=$?
  8435. cat out/conftest.err >&5
  8436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8437. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8438. then
  8439. # The compiler can only warn and ignore the option if not recognized
  8440. # So say no if there are warnings
  8441. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8442. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8443. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8444. lt_cv_prog_compiler_c_o=yes
  8445. fi
  8446. fi
  8447. chmod u+w . 2>&5
  8448. $RM conftest*
  8449. # SGI C++ compiler will create directory out/ii_files/ for
  8450. # template instantiation
  8451. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8452. $RM out/* && rmdir out
  8453. cd ..
  8454. $RM -r conftest
  8455. $RM conftest*
  8456. fi
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8458. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8459. hard_links="nottested"
  8460. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8461. # do not overwrite the value of need_locks provided by the user
  8462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8463. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8464. hard_links=yes
  8465. $RM conftest*
  8466. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8467. touch conftest.a
  8468. ln conftest.a conftest.b 2>&5 || hard_links=no
  8469. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8471. $as_echo "$hard_links" >&6; }
  8472. if test "$hard_links" = no; then
  8473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8474. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8475. need_locks=warn
  8476. fi
  8477. else
  8478. need_locks=no
  8479. fi
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8481. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8482. runpath_var=
  8483. allow_undefined_flag=
  8484. always_export_symbols=no
  8485. archive_cmds=
  8486. archive_expsym_cmds=
  8487. compiler_needs_object=no
  8488. enable_shared_with_static_runtimes=no
  8489. export_dynamic_flag_spec=
  8490. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8491. hardcode_automatic=no
  8492. hardcode_direct=no
  8493. hardcode_direct_absolute=no
  8494. hardcode_libdir_flag_spec=
  8495. hardcode_libdir_separator=
  8496. hardcode_minus_L=no
  8497. hardcode_shlibpath_var=unsupported
  8498. inherit_rpath=no
  8499. link_all_deplibs=unknown
  8500. module_cmds=
  8501. module_expsym_cmds=
  8502. old_archive_from_new_cmds=
  8503. old_archive_from_expsyms_cmds=
  8504. thread_safe_flag_spec=
  8505. whole_archive_flag_spec=
  8506. # include_expsyms should be a list of space-separated symbols to be *always*
  8507. # included in the symbol list
  8508. include_expsyms=
  8509. # exclude_expsyms can be an extended regexp of symbols to exclude
  8510. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8511. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8512. # as well as any symbol that contains `d'.
  8513. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8514. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8515. # platforms (ab)use it in PIC code, but their linkers get confused if
  8516. # the symbol is explicitly referenced. Since portable code cannot
  8517. # rely on this symbol name, it's probably fine to never include it in
  8518. # preloaded symbol tables.
  8519. # Exclude shared library initialization/finalization symbols.
  8520. extract_expsyms_cmds=
  8521. case $host_os in
  8522. cygwin* | mingw* | pw32* | cegcc*)
  8523. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8524. # When not using gcc, we currently assume that we are using
  8525. # Microsoft Visual C++.
  8526. if test "$GCC" != yes; then
  8527. with_gnu_ld=no
  8528. fi
  8529. ;;
  8530. interix*)
  8531. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8532. with_gnu_ld=yes
  8533. ;;
  8534. openbsd*)
  8535. with_gnu_ld=no
  8536. ;;
  8537. esac
  8538. ld_shlibs=yes
  8539. # On some targets, GNU ld is compatible enough with the native linker
  8540. # that we're better off using the native interface for both.
  8541. lt_use_gnu_ld_interface=no
  8542. if test "$with_gnu_ld" = yes; then
  8543. case $host_os in
  8544. aix*)
  8545. # The AIX port of GNU ld has always aspired to compatibility
  8546. # with the native linker. However, as the warning in the GNU ld
  8547. # block says, versions before 2.19.5* couldn't really create working
  8548. # shared libraries, regardless of the interface used.
  8549. case `$LD -v 2>&1` in
  8550. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8551. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8552. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8553. *)
  8554. lt_use_gnu_ld_interface=yes
  8555. ;;
  8556. esac
  8557. ;;
  8558. *)
  8559. lt_use_gnu_ld_interface=yes
  8560. ;;
  8561. esac
  8562. fi
  8563. if test "$lt_use_gnu_ld_interface" = yes; then
  8564. # If archive_cmds runs LD, not CC, wlarc should be empty
  8565. wlarc='${wl}'
  8566. # Set some defaults for GNU ld with shared library support. These
  8567. # are reset later if shared libraries are not supported. Putting them
  8568. # here allows them to be overridden if necessary.
  8569. runpath_var=LD_RUN_PATH
  8570. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8571. export_dynamic_flag_spec='${wl}--export-dynamic'
  8572. # ancient GNU ld didn't support --whole-archive et. al.
  8573. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8574. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8575. else
  8576. whole_archive_flag_spec=
  8577. fi
  8578. supports_anon_versioning=no
  8579. case `$LD -v 2>&1` in
  8580. *GNU\ gold*) supports_anon_versioning=yes ;;
  8581. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8582. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8583. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8584. *\ 2.11.*) ;; # other 2.11 versions
  8585. *) supports_anon_versioning=yes ;;
  8586. esac
  8587. # See if GNU ld supports shared libraries.
  8588. case $host_os in
  8589. aix[3-9]*)
  8590. # On AIX/PPC, the GNU linker is very broken
  8591. if test "$host_cpu" != ia64; then
  8592. ld_shlibs=no
  8593. cat <<_LT_EOF 1>&2
  8594. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8595. *** to be unable to reliably create shared libraries on AIX.
  8596. *** Therefore, libtool is disabling shared libraries support. If you
  8597. *** really care for shared libraries, you may want to install binutils
  8598. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8599. *** You will then need to restart the configuration process.
  8600. _LT_EOF
  8601. fi
  8602. ;;
  8603. amigaos*)
  8604. case $host_cpu in
  8605. powerpc)
  8606. # see comment about AmigaOS4 .so support
  8607. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8608. archive_expsym_cmds=''
  8609. ;;
  8610. m68k)
  8611. 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)'
  8612. hardcode_libdir_flag_spec='-L$libdir'
  8613. hardcode_minus_L=yes
  8614. ;;
  8615. esac
  8616. ;;
  8617. beos*)
  8618. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8619. allow_undefined_flag=unsupported
  8620. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8621. # support --undefined. This deserves some investigation. FIXME
  8622. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8623. else
  8624. ld_shlibs=no
  8625. fi
  8626. ;;
  8627. cygwin* | mingw* | pw32* | cegcc*)
  8628. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8629. # as there is no search path for DLLs.
  8630. hardcode_libdir_flag_spec='-L$libdir'
  8631. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8632. allow_undefined_flag=unsupported
  8633. always_export_symbols=no
  8634. enable_shared_with_static_runtimes=yes
  8635. 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'
  8636. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8637. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8638. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8639. # If the export-symbols file already is a .def file (1st line
  8640. # is EXPORTS), use it as is; otherwise, prepend...
  8641. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8642. cp $export_symbols $output_objdir/$soname.def;
  8643. else
  8644. echo EXPORTS > $output_objdir/$soname.def;
  8645. cat $export_symbols >> $output_objdir/$soname.def;
  8646. fi~
  8647. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8648. else
  8649. ld_shlibs=no
  8650. fi
  8651. ;;
  8652. haiku*)
  8653. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8654. link_all_deplibs=yes
  8655. ;;
  8656. interix[3-9]*)
  8657. hardcode_direct=no
  8658. hardcode_shlibpath_var=no
  8659. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8660. export_dynamic_flag_spec='${wl}-E'
  8661. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8662. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8663. # default) and relocated if they conflict, which is a slow very memory
  8664. # consuming and fragmenting process. To avoid this, we pick a random,
  8665. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8666. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8667. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8668. 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'
  8669. ;;
  8670. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8671. tmp_diet=no
  8672. if test "$host_os" = linux-dietlibc; then
  8673. case $cc_basename in
  8674. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8675. esac
  8676. fi
  8677. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8678. && test "$tmp_diet" = no
  8679. then
  8680. tmp_addflag=' $pic_flag'
  8681. tmp_sharedflag='-shared'
  8682. case $cc_basename,$host_cpu in
  8683. pgcc*) # Portland Group C compiler
  8684. 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'
  8685. tmp_addflag=' $pic_flag'
  8686. ;;
  8687. pgf77* | pgf90* | pgf95* | pgfortran*)
  8688. # Portland Group f77 and f90 compilers
  8689. 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'
  8690. tmp_addflag=' $pic_flag -Mnomain' ;;
  8691. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8692. tmp_addflag=' -i_dynamic' ;;
  8693. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8694. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8695. ifc* | ifort*) # Intel Fortran compiler
  8696. tmp_addflag=' -nofor_main' ;;
  8697. lf95*) # Lahey Fortran 8.1
  8698. whole_archive_flag_spec=
  8699. tmp_sharedflag='--shared' ;;
  8700. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8701. tmp_sharedflag='-qmkshrobj'
  8702. tmp_addflag= ;;
  8703. nvcc*) # Cuda Compiler Driver 2.2
  8704. 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'
  8705. compiler_needs_object=yes
  8706. ;;
  8707. esac
  8708. case `$CC -V 2>&1 | sed 5q` in
  8709. *Sun\ C*) # Sun C 5.9
  8710. 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'
  8711. compiler_needs_object=yes
  8712. tmp_sharedflag='-G' ;;
  8713. *Sun\ F*) # Sun Fortran 8.3
  8714. tmp_sharedflag='-G' ;;
  8715. esac
  8716. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8717. if test "x$supports_anon_versioning" = xyes; then
  8718. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8719. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8720. echo "local: *; };" >> $output_objdir/$libname.ver~
  8721. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8722. fi
  8723. case $cc_basename in
  8724. xlf* | bgf* | bgxlf* | mpixlf*)
  8725. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8726. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8727. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8728. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8729. if test "x$supports_anon_versioning" = xyes; then
  8730. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8731. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8732. echo "local: *; };" >> $output_objdir/$libname.ver~
  8733. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8734. fi
  8735. ;;
  8736. esac
  8737. else
  8738. ld_shlibs=no
  8739. fi
  8740. ;;
  8741. netbsd*)
  8742. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8743. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8744. wlarc=
  8745. else
  8746. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8747. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8748. fi
  8749. ;;
  8750. solaris*)
  8751. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8752. ld_shlibs=no
  8753. cat <<_LT_EOF 1>&2
  8754. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8755. *** create shared libraries on Solaris systems. Therefore, libtool
  8756. *** is disabling shared libraries support. We urge you to upgrade GNU
  8757. *** binutils to release 2.9.1 or newer. Another option is to modify
  8758. *** your PATH or compiler configuration so that the native linker is
  8759. *** used, and then restart.
  8760. _LT_EOF
  8761. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8762. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8763. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8764. else
  8765. ld_shlibs=no
  8766. fi
  8767. ;;
  8768. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8769. case `$LD -v 2>&1` in
  8770. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8771. ld_shlibs=no
  8772. cat <<_LT_EOF 1>&2
  8773. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8774. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8775. *** is disabling shared libraries support. We urge you to upgrade GNU
  8776. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8777. *** your PATH or compiler configuration so that the native linker is
  8778. *** used, and then restart.
  8779. _LT_EOF
  8780. ;;
  8781. *)
  8782. # For security reasons, it is highly recommended that you always
  8783. # use absolute paths for naming shared libraries, and exclude the
  8784. # DT_RUNPATH tag from executables and libraries. But doing so
  8785. # requires that you compile everything twice, which is a pain.
  8786. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8787. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8788. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8789. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8790. else
  8791. ld_shlibs=no
  8792. fi
  8793. ;;
  8794. esac
  8795. ;;
  8796. sunos4*)
  8797. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8798. wlarc=
  8799. hardcode_direct=yes
  8800. hardcode_shlibpath_var=no
  8801. ;;
  8802. *)
  8803. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8804. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8805. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8806. else
  8807. ld_shlibs=no
  8808. fi
  8809. ;;
  8810. esac
  8811. if test "$ld_shlibs" = no; then
  8812. runpath_var=
  8813. hardcode_libdir_flag_spec=
  8814. export_dynamic_flag_spec=
  8815. whole_archive_flag_spec=
  8816. fi
  8817. else
  8818. # PORTME fill in a description of your system's linker (not GNU ld)
  8819. case $host_os in
  8820. aix3*)
  8821. allow_undefined_flag=unsupported
  8822. always_export_symbols=yes
  8823. 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'
  8824. # Note: this linker hardcodes the directories in LIBPATH if there
  8825. # are no directories specified by -L.
  8826. hardcode_minus_L=yes
  8827. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8828. # Neither direct hardcoding nor static linking is supported with a
  8829. # broken collect2.
  8830. hardcode_direct=unsupported
  8831. fi
  8832. ;;
  8833. aix[4-9]*)
  8834. if test "$host_cpu" = ia64; then
  8835. # On IA64, the linker does run time linking by default, so we don't
  8836. # have to do anything special.
  8837. aix_use_runtimelinking=no
  8838. exp_sym_flag='-Bexport'
  8839. no_entry_flag=""
  8840. else
  8841. # If we're using GNU nm, then we don't want the "-C" option.
  8842. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8843. # Also, AIX nm treats weak defined symbols like other global
  8844. # defined symbols, whereas GNU nm marks them as "W".
  8845. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8846. 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'
  8847. else
  8848. 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'
  8849. fi
  8850. aix_use_runtimelinking=no
  8851. # Test if we are trying to use run time linking or normal
  8852. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8853. # need to do runtime linking.
  8854. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8855. for ld_flag in $LDFLAGS; do
  8856. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8857. aix_use_runtimelinking=yes
  8858. break
  8859. fi
  8860. done
  8861. ;;
  8862. esac
  8863. exp_sym_flag='-bexport'
  8864. no_entry_flag='-bnoentry'
  8865. fi
  8866. # When large executables or shared objects are built, AIX ld can
  8867. # have problems creating the table of contents. If linking a library
  8868. # or program results in "error TOC overflow" add -mminimal-toc to
  8869. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8870. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8871. archive_cmds=''
  8872. hardcode_direct=yes
  8873. hardcode_direct_absolute=yes
  8874. hardcode_libdir_separator=':'
  8875. link_all_deplibs=yes
  8876. file_list_spec='${wl}-f,'
  8877. if test "$GCC" = yes; then
  8878. case $host_os in aix4.[012]|aix4.[012].*)
  8879. # We only want to do this on AIX 4.2 and lower, the check
  8880. # below for broken collect2 doesn't work under 4.3+
  8881. collect2name=`${CC} -print-prog-name=collect2`
  8882. if test -f "$collect2name" &&
  8883. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8884. then
  8885. # We have reworked collect2
  8886. :
  8887. else
  8888. # We have old collect2
  8889. hardcode_direct=unsupported
  8890. # It fails to find uninstalled libraries when the uninstalled
  8891. # path is not listed in the libpath. Setting hardcode_minus_L
  8892. # to unsupported forces relinking
  8893. hardcode_minus_L=yes
  8894. hardcode_libdir_flag_spec='-L$libdir'
  8895. hardcode_libdir_separator=
  8896. fi
  8897. ;;
  8898. esac
  8899. shared_flag='-shared'
  8900. if test "$aix_use_runtimelinking" = yes; then
  8901. shared_flag="$shared_flag "'${wl}-G'
  8902. fi
  8903. else
  8904. # not using gcc
  8905. if test "$host_cpu" = ia64; then
  8906. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8907. # chokes on -Wl,-G. The following line is correct:
  8908. shared_flag='-G'
  8909. else
  8910. if test "$aix_use_runtimelinking" = yes; then
  8911. shared_flag='${wl}-G'
  8912. else
  8913. shared_flag='${wl}-bM:SRE'
  8914. fi
  8915. fi
  8916. fi
  8917. export_dynamic_flag_spec='${wl}-bexpall'
  8918. # It seems that -bexpall does not export symbols beginning with
  8919. # underscore (_), so it is better to generate a list of symbols to export.
  8920. always_export_symbols=yes
  8921. if test "$aix_use_runtimelinking" = yes; then
  8922. # Warning - without using the other runtime loading flags (-brtl),
  8923. # -berok will link without error, but may produce a broken library.
  8924. allow_undefined_flag='-berok'
  8925. # Determine the default libpath from the value encoded in an
  8926. # empty executable.
  8927. if test "${lt_cv_aix_libpath+set}" = set; then
  8928. aix_libpath=$lt_cv_aix_libpath
  8929. else
  8930. if ${lt_cv_aix_libpath_+:} false; then :
  8931. $as_echo_n "(cached) " >&6
  8932. else
  8933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8934. /* end confdefs.h. */
  8935. int
  8936. main ()
  8937. {
  8938. ;
  8939. return 0;
  8940. }
  8941. _ACEOF
  8942. if ac_fn_c_try_link "$LINENO"; then :
  8943. lt_aix_libpath_sed='
  8944. /Import File Strings/,/^$/ {
  8945. /^0/ {
  8946. s/^0 *\([^ ]*\) *$/\1/
  8947. p
  8948. }
  8949. }'
  8950. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8951. # Check for a 64-bit object if we didn't find anything.
  8952. if test -z "$lt_cv_aix_libpath_"; then
  8953. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8954. fi
  8955. fi
  8956. rm -f core conftest.err conftest.$ac_objext \
  8957. conftest$ac_exeext conftest.$ac_ext
  8958. if test -z "$lt_cv_aix_libpath_"; then
  8959. lt_cv_aix_libpath_="/usr/lib:/lib"
  8960. fi
  8961. fi
  8962. aix_libpath=$lt_cv_aix_libpath_
  8963. fi
  8964. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8965. 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"
  8966. else
  8967. if test "$host_cpu" = ia64; then
  8968. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8969. allow_undefined_flag="-z nodefs"
  8970. 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"
  8971. else
  8972. # Determine the default libpath from the value encoded in an
  8973. # empty executable.
  8974. if test "${lt_cv_aix_libpath+set}" = set; then
  8975. aix_libpath=$lt_cv_aix_libpath
  8976. else
  8977. if ${lt_cv_aix_libpath_+:} false; then :
  8978. $as_echo_n "(cached) " >&6
  8979. else
  8980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8981. /* end confdefs.h. */
  8982. int
  8983. main ()
  8984. {
  8985. ;
  8986. return 0;
  8987. }
  8988. _ACEOF
  8989. if ac_fn_c_try_link "$LINENO"; then :
  8990. lt_aix_libpath_sed='
  8991. /Import File Strings/,/^$/ {
  8992. /^0/ {
  8993. s/^0 *\([^ ]*\) *$/\1/
  8994. p
  8995. }
  8996. }'
  8997. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8998. # Check for a 64-bit object if we didn't find anything.
  8999. if test -z "$lt_cv_aix_libpath_"; then
  9000. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9001. fi
  9002. fi
  9003. rm -f core conftest.err conftest.$ac_objext \
  9004. conftest$ac_exeext conftest.$ac_ext
  9005. if test -z "$lt_cv_aix_libpath_"; then
  9006. lt_cv_aix_libpath_="/usr/lib:/lib"
  9007. fi
  9008. fi
  9009. aix_libpath=$lt_cv_aix_libpath_
  9010. fi
  9011. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9012. # Warning - without using the other run time loading flags,
  9013. # -berok will link without error, but may produce a broken library.
  9014. no_undefined_flag=' ${wl}-bernotok'
  9015. allow_undefined_flag=' ${wl}-berok'
  9016. if test "$with_gnu_ld" = yes; then
  9017. # We only use this code for GNU lds that support --whole-archive.
  9018. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9019. else
  9020. # Exported symbols can be pulled into shared objects from archives
  9021. whole_archive_flag_spec='$convenience'
  9022. fi
  9023. archive_cmds_need_lc=yes
  9024. # This is similar to how AIX traditionally builds its shared libraries.
  9025. 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'
  9026. fi
  9027. fi
  9028. ;;
  9029. amigaos*)
  9030. case $host_cpu in
  9031. powerpc)
  9032. # see comment about AmigaOS4 .so support
  9033. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9034. archive_expsym_cmds=''
  9035. ;;
  9036. m68k)
  9037. 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)'
  9038. hardcode_libdir_flag_spec='-L$libdir'
  9039. hardcode_minus_L=yes
  9040. ;;
  9041. esac
  9042. ;;
  9043. bsdi[45]*)
  9044. export_dynamic_flag_spec=-rdynamic
  9045. ;;
  9046. cygwin* | mingw* | pw32* | cegcc*)
  9047. # When not using gcc, we currently assume that we are using
  9048. # Microsoft Visual C++.
  9049. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9050. # no search path for DLLs.
  9051. case $cc_basename in
  9052. cl*)
  9053. # Native MSVC
  9054. hardcode_libdir_flag_spec=' '
  9055. allow_undefined_flag=unsupported
  9056. always_export_symbols=yes
  9057. file_list_spec='@'
  9058. # Tell ltmain to make .lib files, not .a files.
  9059. libext=lib
  9060. # Tell ltmain to make .dll files, not .so files.
  9061. shrext_cmds=".dll"
  9062. # FIXME: Setting linknames here is a bad hack.
  9063. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9064. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9065. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9066. else
  9067. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9068. fi~
  9069. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9070. linknames='
  9071. # The linker will not automatically build a static lib if we build a DLL.
  9072. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9073. enable_shared_with_static_runtimes=yes
  9074. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9075. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9076. # Don't use ranlib
  9077. old_postinstall_cmds='chmod 644 $oldlib'
  9078. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9079. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9080. case $lt_outputfile in
  9081. *.exe|*.EXE) ;;
  9082. *)
  9083. lt_outputfile="$lt_outputfile.exe"
  9084. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9085. ;;
  9086. esac~
  9087. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9088. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9089. $RM "$lt_outputfile.manifest";
  9090. fi'
  9091. ;;
  9092. *)
  9093. # Assume MSVC wrapper
  9094. hardcode_libdir_flag_spec=' '
  9095. allow_undefined_flag=unsupported
  9096. # Tell ltmain to make .lib files, not .a files.
  9097. libext=lib
  9098. # Tell ltmain to make .dll files, not .so files.
  9099. shrext_cmds=".dll"
  9100. # FIXME: Setting linknames here is a bad hack.
  9101. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9102. # The linker will automatically build a .lib file if we build a DLL.
  9103. old_archive_from_new_cmds='true'
  9104. # FIXME: Should let the user specify the lib program.
  9105. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9106. enable_shared_with_static_runtimes=yes
  9107. ;;
  9108. esac
  9109. ;;
  9110. darwin* | rhapsody*)
  9111. archive_cmds_need_lc=no
  9112. hardcode_direct=no
  9113. hardcode_automatic=yes
  9114. hardcode_shlibpath_var=unsupported
  9115. if test "$lt_cv_ld_force_load" = "yes"; then
  9116. 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\"`'
  9117. else
  9118. whole_archive_flag_spec=''
  9119. fi
  9120. link_all_deplibs=yes
  9121. allow_undefined_flag="$_lt_dar_allow_undefined"
  9122. case $cc_basename in
  9123. ifort*) _lt_dar_can_shared=yes ;;
  9124. *) _lt_dar_can_shared=$GCC ;;
  9125. esac
  9126. if test "$_lt_dar_can_shared" = "yes"; then
  9127. output_verbose_link_cmd=func_echo_all
  9128. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9129. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9130. 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}"
  9131. 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}"
  9132. else
  9133. ld_shlibs=no
  9134. fi
  9135. ;;
  9136. dgux*)
  9137. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9138. hardcode_libdir_flag_spec='-L$libdir'
  9139. hardcode_shlibpath_var=no
  9140. ;;
  9141. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9142. # support. Future versions do this automatically, but an explicit c++rt0.o
  9143. # does not break anything, and helps significantly (at the cost of a little
  9144. # extra space).
  9145. freebsd2.2*)
  9146. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9147. hardcode_libdir_flag_spec='-R$libdir'
  9148. hardcode_direct=yes
  9149. hardcode_shlibpath_var=no
  9150. ;;
  9151. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9152. freebsd2.*)
  9153. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9154. hardcode_direct=yes
  9155. hardcode_minus_L=yes
  9156. hardcode_shlibpath_var=no
  9157. ;;
  9158. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9159. freebsd* | dragonfly*)
  9160. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9161. hardcode_libdir_flag_spec='-R$libdir'
  9162. hardcode_direct=yes
  9163. hardcode_shlibpath_var=no
  9164. ;;
  9165. hpux9*)
  9166. if test "$GCC" = yes; then
  9167. 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'
  9168. else
  9169. 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'
  9170. fi
  9171. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9172. hardcode_libdir_separator=:
  9173. hardcode_direct=yes
  9174. # hardcode_minus_L: Not really in the search PATH,
  9175. # but as the default location of the library.
  9176. hardcode_minus_L=yes
  9177. export_dynamic_flag_spec='${wl}-E'
  9178. ;;
  9179. hpux10*)
  9180. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9181. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9182. else
  9183. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9184. fi
  9185. if test "$with_gnu_ld" = no; then
  9186. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9187. hardcode_libdir_separator=:
  9188. hardcode_direct=yes
  9189. hardcode_direct_absolute=yes
  9190. export_dynamic_flag_spec='${wl}-E'
  9191. # hardcode_minus_L: Not really in the search PATH,
  9192. # but as the default location of the library.
  9193. hardcode_minus_L=yes
  9194. fi
  9195. ;;
  9196. hpux11*)
  9197. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9198. case $host_cpu in
  9199. hppa*64*)
  9200. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9201. ;;
  9202. ia64*)
  9203. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9204. ;;
  9205. *)
  9206. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9207. ;;
  9208. esac
  9209. else
  9210. case $host_cpu in
  9211. hppa*64*)
  9212. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9213. ;;
  9214. ia64*)
  9215. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9216. ;;
  9217. *)
  9218. # Older versions of the 11.00 compiler do not understand -b yet
  9219. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9221. $as_echo_n "checking if $CC understands -b... " >&6; }
  9222. if ${lt_cv_prog_compiler__b+:} false; then :
  9223. $as_echo_n "(cached) " >&6
  9224. else
  9225. lt_cv_prog_compiler__b=no
  9226. save_LDFLAGS="$LDFLAGS"
  9227. LDFLAGS="$LDFLAGS -b"
  9228. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9229. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9230. # The linker can only warn and ignore the option if not recognized
  9231. # So say no if there are warnings
  9232. if test -s conftest.err; then
  9233. # Append any errors to the config.log.
  9234. cat conftest.err 1>&5
  9235. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9236. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9237. if diff conftest.exp conftest.er2 >/dev/null; then
  9238. lt_cv_prog_compiler__b=yes
  9239. fi
  9240. else
  9241. lt_cv_prog_compiler__b=yes
  9242. fi
  9243. fi
  9244. $RM -r conftest*
  9245. LDFLAGS="$save_LDFLAGS"
  9246. fi
  9247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9248. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9249. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9250. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9251. else
  9252. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9253. fi
  9254. ;;
  9255. esac
  9256. fi
  9257. if test "$with_gnu_ld" = no; then
  9258. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9259. hardcode_libdir_separator=:
  9260. case $host_cpu in
  9261. hppa*64*|ia64*)
  9262. hardcode_direct=no
  9263. hardcode_shlibpath_var=no
  9264. ;;
  9265. *)
  9266. hardcode_direct=yes
  9267. hardcode_direct_absolute=yes
  9268. export_dynamic_flag_spec='${wl}-E'
  9269. # hardcode_minus_L: Not really in the search PATH,
  9270. # but as the default location of the library.
  9271. hardcode_minus_L=yes
  9272. ;;
  9273. esac
  9274. fi
  9275. ;;
  9276. irix5* | irix6* | nonstopux*)
  9277. if test "$GCC" = yes; then
  9278. 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'
  9279. # Try to use the -exported_symbol ld option, if it does not
  9280. # work, assume that -exports_file does not work either and
  9281. # implicitly export all symbols.
  9282. # This should be the same for all languages, so no per-tag cache variable.
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9284. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9285. if ${lt_cv_irix_exported_symbol+:} false; then :
  9286. $as_echo_n "(cached) " >&6
  9287. else
  9288. save_LDFLAGS="$LDFLAGS"
  9289. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9291. /* end confdefs.h. */
  9292. int foo (void) { return 0; }
  9293. _ACEOF
  9294. if ac_fn_c_try_link "$LINENO"; then :
  9295. lt_cv_irix_exported_symbol=yes
  9296. else
  9297. lt_cv_irix_exported_symbol=no
  9298. fi
  9299. rm -f core conftest.err conftest.$ac_objext \
  9300. conftest$ac_exeext conftest.$ac_ext
  9301. LDFLAGS="$save_LDFLAGS"
  9302. fi
  9303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9304. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9305. if test "$lt_cv_irix_exported_symbol" = yes; then
  9306. 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'
  9307. fi
  9308. else
  9309. 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'
  9310. 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'
  9311. fi
  9312. archive_cmds_need_lc='no'
  9313. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9314. hardcode_libdir_separator=:
  9315. inherit_rpath=yes
  9316. link_all_deplibs=yes
  9317. ;;
  9318. netbsd*)
  9319. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9320. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9321. else
  9322. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9323. fi
  9324. hardcode_libdir_flag_spec='-R$libdir'
  9325. hardcode_direct=yes
  9326. hardcode_shlibpath_var=no
  9327. ;;
  9328. newsos6)
  9329. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9330. hardcode_direct=yes
  9331. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9332. hardcode_libdir_separator=:
  9333. hardcode_shlibpath_var=no
  9334. ;;
  9335. *nto* | *qnx*)
  9336. ;;
  9337. openbsd*)
  9338. if test -f /usr/libexec/ld.so; then
  9339. hardcode_direct=yes
  9340. hardcode_shlibpath_var=no
  9341. hardcode_direct_absolute=yes
  9342. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9343. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9344. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9345. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9346. export_dynamic_flag_spec='${wl}-E'
  9347. else
  9348. case $host_os in
  9349. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9350. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9351. hardcode_libdir_flag_spec='-R$libdir'
  9352. ;;
  9353. *)
  9354. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9355. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9356. ;;
  9357. esac
  9358. fi
  9359. else
  9360. ld_shlibs=no
  9361. fi
  9362. ;;
  9363. os2*)
  9364. hardcode_libdir_flag_spec='-L$libdir'
  9365. hardcode_minus_L=yes
  9366. allow_undefined_flag=unsupported
  9367. 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'
  9368. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9369. ;;
  9370. osf3*)
  9371. if test "$GCC" = yes; then
  9372. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9373. 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'
  9374. else
  9375. allow_undefined_flag=' -expect_unresolved \*'
  9376. 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'
  9377. fi
  9378. archive_cmds_need_lc='no'
  9379. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9380. hardcode_libdir_separator=:
  9381. ;;
  9382. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9383. if test "$GCC" = yes; then
  9384. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9385. 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'
  9386. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9387. else
  9388. allow_undefined_flag=' -expect_unresolved \*'
  9389. 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'
  9390. 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~
  9391. $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'
  9392. # Both c and cxx compiler support -rpath directly
  9393. hardcode_libdir_flag_spec='-rpath $libdir'
  9394. fi
  9395. archive_cmds_need_lc='no'
  9396. hardcode_libdir_separator=:
  9397. ;;
  9398. solaris*)
  9399. no_undefined_flag=' -z defs'
  9400. if test "$GCC" = yes; then
  9401. wlarc='${wl}'
  9402. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9403. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9404. $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'
  9405. else
  9406. case `$CC -V 2>&1` in
  9407. *"Compilers 5.0"*)
  9408. wlarc=''
  9409. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9410. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9411. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9412. ;;
  9413. *)
  9414. wlarc='${wl}'
  9415. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9416. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9417. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9418. ;;
  9419. esac
  9420. fi
  9421. hardcode_libdir_flag_spec='-R$libdir'
  9422. hardcode_shlibpath_var=no
  9423. case $host_os in
  9424. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9425. *)
  9426. # The compiler driver will combine and reorder linker options,
  9427. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9428. # but is careful enough not to reorder.
  9429. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9430. if test "$GCC" = yes; then
  9431. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9432. else
  9433. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9434. fi
  9435. ;;
  9436. esac
  9437. link_all_deplibs=yes
  9438. ;;
  9439. sunos4*)
  9440. if test "x$host_vendor" = xsequent; then
  9441. # Use $CC to link under sequent, because it throws in some extra .o
  9442. # files that make .init and .fini sections work.
  9443. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9444. else
  9445. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9446. fi
  9447. hardcode_libdir_flag_spec='-L$libdir'
  9448. hardcode_direct=yes
  9449. hardcode_minus_L=yes
  9450. hardcode_shlibpath_var=no
  9451. ;;
  9452. sysv4)
  9453. case $host_vendor in
  9454. sni)
  9455. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9456. hardcode_direct=yes # is this really true???
  9457. ;;
  9458. siemens)
  9459. ## LD is ld it makes a PLAMLIB
  9460. ## CC just makes a GrossModule.
  9461. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9462. reload_cmds='$CC -r -o $output$reload_objs'
  9463. hardcode_direct=no
  9464. ;;
  9465. motorola)
  9466. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9467. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9468. ;;
  9469. esac
  9470. runpath_var='LD_RUN_PATH'
  9471. hardcode_shlibpath_var=no
  9472. ;;
  9473. sysv4.3*)
  9474. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9475. hardcode_shlibpath_var=no
  9476. export_dynamic_flag_spec='-Bexport'
  9477. ;;
  9478. sysv4*MP*)
  9479. if test -d /usr/nec; then
  9480. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9481. hardcode_shlibpath_var=no
  9482. runpath_var=LD_RUN_PATH
  9483. hardcode_runpath_var=yes
  9484. ld_shlibs=yes
  9485. fi
  9486. ;;
  9487. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9488. no_undefined_flag='${wl}-z,text'
  9489. archive_cmds_need_lc=no
  9490. hardcode_shlibpath_var=no
  9491. runpath_var='LD_RUN_PATH'
  9492. if test "$GCC" = yes; then
  9493. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9494. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9495. else
  9496. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9497. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9498. fi
  9499. ;;
  9500. sysv5* | sco3.2v5* | sco5v6*)
  9501. # Note: We can NOT use -z defs as we might desire, because we do not
  9502. # link with -lc, and that would cause any symbols used from libc to
  9503. # always be unresolved, which means just about no library would
  9504. # ever link correctly. If we're not using GNU ld we use -z text
  9505. # though, which does catch some bad symbols but isn't as heavy-handed
  9506. # as -z defs.
  9507. no_undefined_flag='${wl}-z,text'
  9508. allow_undefined_flag='${wl}-z,nodefs'
  9509. archive_cmds_need_lc=no
  9510. hardcode_shlibpath_var=no
  9511. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9512. hardcode_libdir_separator=':'
  9513. link_all_deplibs=yes
  9514. export_dynamic_flag_spec='${wl}-Bexport'
  9515. runpath_var='LD_RUN_PATH'
  9516. if test "$GCC" = yes; then
  9517. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9518. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9519. else
  9520. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9521. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9522. fi
  9523. ;;
  9524. uts4*)
  9525. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9526. hardcode_libdir_flag_spec='-L$libdir'
  9527. hardcode_shlibpath_var=no
  9528. ;;
  9529. *)
  9530. ld_shlibs=no
  9531. ;;
  9532. esac
  9533. if test x$host_vendor = xsni; then
  9534. case $host in
  9535. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9536. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9537. ;;
  9538. esac
  9539. fi
  9540. fi
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9542. $as_echo "$ld_shlibs" >&6; }
  9543. test "$ld_shlibs" = no && can_build_shared=no
  9544. with_gnu_ld=$with_gnu_ld
  9545. #
  9546. # Do we need to explicitly link libc?
  9547. #
  9548. case "x$archive_cmds_need_lc" in
  9549. x|xyes)
  9550. # Assume -lc should be added
  9551. archive_cmds_need_lc=yes
  9552. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9553. case $archive_cmds in
  9554. *'~'*)
  9555. # FIXME: we may have to deal with multi-command sequences.
  9556. ;;
  9557. '$CC '*)
  9558. # Test whether the compiler implicitly links with -lc since on some
  9559. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9560. # to ld, don't add -lc before -lgcc.
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9562. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9563. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9564. $as_echo_n "(cached) " >&6
  9565. else
  9566. $RM conftest*
  9567. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9568. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9569. (eval $ac_compile) 2>&5
  9570. ac_status=$?
  9571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9572. test $ac_status = 0; } 2>conftest.err; then
  9573. soname=conftest
  9574. lib=conftest
  9575. libobjs=conftest.$ac_objext
  9576. deplibs=
  9577. wl=$lt_prog_compiler_wl
  9578. pic_flag=$lt_prog_compiler_pic
  9579. compiler_flags=-v
  9580. linker_flags=-v
  9581. verstring=
  9582. output_objdir=.
  9583. libname=conftest
  9584. lt_save_allow_undefined_flag=$allow_undefined_flag
  9585. allow_undefined_flag=
  9586. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9587. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9588. ac_status=$?
  9589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9590. test $ac_status = 0; }
  9591. then
  9592. lt_cv_archive_cmds_need_lc=no
  9593. else
  9594. lt_cv_archive_cmds_need_lc=yes
  9595. fi
  9596. allow_undefined_flag=$lt_save_allow_undefined_flag
  9597. else
  9598. cat conftest.err 1>&5
  9599. fi
  9600. $RM conftest*
  9601. fi
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9603. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9604. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9605. ;;
  9606. esac
  9607. fi
  9608. ;;
  9609. esac
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9611. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9612. if test "$GCC" = yes; then
  9613. case $host_os in
  9614. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9615. *) lt_awk_arg="/^libraries:/" ;;
  9616. esac
  9617. case $host_os in
  9618. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9619. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9620. esac
  9621. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9622. case $lt_search_path_spec in
  9623. *\;*)
  9624. # if the path contains ";" then we assume it to be the separator
  9625. # otherwise default to the standard path separator (i.e. ":") - it is
  9626. # assumed that no part of a normal pathname contains ";" but that should
  9627. # okay in the real world where ";" in dirpaths is itself problematic.
  9628. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9629. ;;
  9630. *)
  9631. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9632. ;;
  9633. esac
  9634. # Ok, now we have the path, separated by spaces, we can step through it
  9635. # and add multilib dir if necessary.
  9636. lt_tmp_lt_search_path_spec=
  9637. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9638. for lt_sys_path in $lt_search_path_spec; do
  9639. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9640. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9641. else
  9642. test -d "$lt_sys_path" && \
  9643. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9644. fi
  9645. done
  9646. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9647. BEGIN {RS=" "; FS="/|\n";} {
  9648. lt_foo="";
  9649. lt_count=0;
  9650. for (lt_i = NF; lt_i > 0; lt_i--) {
  9651. if ($lt_i != "" && $lt_i != ".") {
  9652. if ($lt_i == "..") {
  9653. lt_count++;
  9654. } else {
  9655. if (lt_count == 0) {
  9656. lt_foo="/" $lt_i lt_foo;
  9657. } else {
  9658. lt_count--;
  9659. }
  9660. }
  9661. }
  9662. }
  9663. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9664. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9665. }'`
  9666. # AWK program above erroneously prepends '/' to C:/dos/paths
  9667. # for these hosts.
  9668. case $host_os in
  9669. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9670. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9671. esac
  9672. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9673. else
  9674. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9675. fi
  9676. library_names_spec=
  9677. libname_spec='lib$name'
  9678. soname_spec=
  9679. shrext_cmds=".so"
  9680. postinstall_cmds=
  9681. postuninstall_cmds=
  9682. finish_cmds=
  9683. finish_eval=
  9684. shlibpath_var=
  9685. shlibpath_overrides_runpath=unknown
  9686. version_type=none
  9687. dynamic_linker="$host_os ld.so"
  9688. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9689. need_lib_prefix=unknown
  9690. hardcode_into_libs=no
  9691. # when you set need_version to no, make sure it does not cause -set_version
  9692. # flags to be left without arguments
  9693. need_version=unknown
  9694. case $host_os in
  9695. aix3*)
  9696. version_type=linux # correct to gnu/linux during the next big refactor
  9697. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9698. shlibpath_var=LIBPATH
  9699. # AIX 3 has no versioning support, so we append a major version to the name.
  9700. soname_spec='${libname}${release}${shared_ext}$major'
  9701. ;;
  9702. aix[4-9]*)
  9703. version_type=linux # correct to gnu/linux during the next big refactor
  9704. need_lib_prefix=no
  9705. need_version=no
  9706. hardcode_into_libs=yes
  9707. if test "$host_cpu" = ia64; then
  9708. # AIX 5 supports IA64
  9709. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9710. shlibpath_var=LD_LIBRARY_PATH
  9711. else
  9712. # With GCC up to 2.95.x, collect2 would create an import file
  9713. # for dependence libraries. The import file would start with
  9714. # the line `#! .'. This would cause the generated library to
  9715. # depend on `.', always an invalid library. This was fixed in
  9716. # development snapshots of GCC prior to 3.0.
  9717. case $host_os in
  9718. aix4 | aix4.[01] | aix4.[01].*)
  9719. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9720. echo ' yes '
  9721. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9722. :
  9723. else
  9724. can_build_shared=no
  9725. fi
  9726. ;;
  9727. esac
  9728. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9729. # soname into executable. Probably we can add versioning support to
  9730. # collect2, so additional links can be useful in future.
  9731. if test "$aix_use_runtimelinking" = yes; then
  9732. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9733. # instead of lib<name>.a to let people know that these are not
  9734. # typical AIX shared libraries.
  9735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9736. else
  9737. # We preserve .a as extension for shared libraries through AIX4.2
  9738. # and later when we are not doing run time linking.
  9739. library_names_spec='${libname}${release}.a $libname.a'
  9740. soname_spec='${libname}${release}${shared_ext}$major'
  9741. fi
  9742. shlibpath_var=LIBPATH
  9743. fi
  9744. ;;
  9745. amigaos*)
  9746. case $host_cpu in
  9747. powerpc)
  9748. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9749. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9751. ;;
  9752. m68k)
  9753. library_names_spec='$libname.ixlibrary $libname.a'
  9754. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9755. 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'
  9756. ;;
  9757. esac
  9758. ;;
  9759. beos*)
  9760. library_names_spec='${libname}${shared_ext}'
  9761. dynamic_linker="$host_os ld.so"
  9762. shlibpath_var=LIBRARY_PATH
  9763. ;;
  9764. bsdi[45]*)
  9765. version_type=linux # correct to gnu/linux during the next big refactor
  9766. need_version=no
  9767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9768. soname_spec='${libname}${release}${shared_ext}$major'
  9769. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9772. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9773. # the default ld.so.conf also contains /usr/contrib/lib and
  9774. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9775. # libtool to hard-code these into programs
  9776. ;;
  9777. cygwin* | mingw* | pw32* | cegcc*)
  9778. version_type=windows
  9779. shrext_cmds=".dll"
  9780. need_version=no
  9781. need_lib_prefix=no
  9782. case $GCC,$cc_basename in
  9783. yes,*)
  9784. # gcc
  9785. library_names_spec='$libname.dll.a'
  9786. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9787. postinstall_cmds='base_file=`basename \${file}`~
  9788. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9789. dldir=$destdir/`dirname \$dlpath`~
  9790. test -d \$dldir || mkdir -p \$dldir~
  9791. $install_prog $dir/$dlname \$dldir/$dlname~
  9792. chmod a+x \$dldir/$dlname~
  9793. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9794. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9795. fi'
  9796. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9797. dlpath=$dir/\$dldll~
  9798. $RM \$dlpath'
  9799. shlibpath_overrides_runpath=yes
  9800. case $host_os in
  9801. cygwin*)
  9802. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9803. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9804. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9805. ;;
  9806. mingw* | cegcc*)
  9807. # MinGW DLLs use traditional 'lib' prefix
  9808. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9809. ;;
  9810. pw32*)
  9811. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9812. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9813. ;;
  9814. esac
  9815. dynamic_linker='Win32 ld.exe'
  9816. ;;
  9817. *,cl*)
  9818. # Native MSVC
  9819. libname_spec='$name'
  9820. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9821. library_names_spec='${libname}.dll.lib'
  9822. case $build_os in
  9823. mingw*)
  9824. sys_lib_search_path_spec=
  9825. lt_save_ifs=$IFS
  9826. IFS=';'
  9827. for lt_path in $LIB
  9828. do
  9829. IFS=$lt_save_ifs
  9830. # Let DOS variable expansion print the short 8.3 style file name.
  9831. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9832. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9833. done
  9834. IFS=$lt_save_ifs
  9835. # Convert to MSYS style.
  9836. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9837. ;;
  9838. cygwin*)
  9839. # Convert to unix form, then to dos form, then back to unix form
  9840. # but this time dos style (no spaces!) so that the unix form looks
  9841. # like /cygdrive/c/PROGRA~1:/cygdr...
  9842. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9843. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9844. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9845. ;;
  9846. *)
  9847. sys_lib_search_path_spec="$LIB"
  9848. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9849. # It is most probably a Windows format PATH.
  9850. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9851. else
  9852. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9853. fi
  9854. # FIXME: find the short name or the path components, as spaces are
  9855. # common. (e.g. "Program Files" -> "PROGRA~1")
  9856. ;;
  9857. esac
  9858. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9859. postinstall_cmds='base_file=`basename \${file}`~
  9860. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9861. dldir=$destdir/`dirname \$dlpath`~
  9862. test -d \$dldir || mkdir -p \$dldir~
  9863. $install_prog $dir/$dlname \$dldir/$dlname'
  9864. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9865. dlpath=$dir/\$dldll~
  9866. $RM \$dlpath'
  9867. shlibpath_overrides_runpath=yes
  9868. dynamic_linker='Win32 link.exe'
  9869. ;;
  9870. *)
  9871. # Assume MSVC wrapper
  9872. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9873. dynamic_linker='Win32 ld.exe'
  9874. ;;
  9875. esac
  9876. # FIXME: first we should search . and the directory the executable is in
  9877. shlibpath_var=PATH
  9878. ;;
  9879. darwin* | rhapsody*)
  9880. dynamic_linker="$host_os dyld"
  9881. version_type=darwin
  9882. need_lib_prefix=no
  9883. need_version=no
  9884. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9885. soname_spec='${libname}${release}${major}$shared_ext'
  9886. shlibpath_overrides_runpath=yes
  9887. shlibpath_var=DYLD_LIBRARY_PATH
  9888. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9889. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9890. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9891. ;;
  9892. dgux*)
  9893. version_type=linux # correct to gnu/linux during the next big refactor
  9894. need_lib_prefix=no
  9895. need_version=no
  9896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9897. soname_spec='${libname}${release}${shared_ext}$major'
  9898. shlibpath_var=LD_LIBRARY_PATH
  9899. ;;
  9900. freebsd* | dragonfly*)
  9901. # DragonFly does not have aout. When/if they implement a new
  9902. # versioning mechanism, adjust this.
  9903. if test -x /usr/bin/objformat; then
  9904. objformat=`/usr/bin/objformat`
  9905. else
  9906. case $host_os in
  9907. freebsd[23].*) objformat=aout ;;
  9908. *) objformat=elf ;;
  9909. esac
  9910. fi
  9911. version_type=freebsd-$objformat
  9912. case $version_type in
  9913. freebsd-elf*)
  9914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9915. need_version=no
  9916. need_lib_prefix=no
  9917. ;;
  9918. freebsd-*)
  9919. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9920. need_version=yes
  9921. ;;
  9922. esac
  9923. shlibpath_var=LD_LIBRARY_PATH
  9924. case $host_os in
  9925. freebsd2.*)
  9926. shlibpath_overrides_runpath=yes
  9927. ;;
  9928. freebsd3.[01]* | freebsdelf3.[01]*)
  9929. shlibpath_overrides_runpath=yes
  9930. hardcode_into_libs=yes
  9931. ;;
  9932. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9933. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9934. shlibpath_overrides_runpath=no
  9935. hardcode_into_libs=yes
  9936. ;;
  9937. *) # from 4.6 on, and DragonFly
  9938. shlibpath_overrides_runpath=yes
  9939. hardcode_into_libs=yes
  9940. ;;
  9941. esac
  9942. ;;
  9943. gnu*)
  9944. version_type=linux # correct to gnu/linux during the next big refactor
  9945. need_lib_prefix=no
  9946. need_version=no
  9947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9948. soname_spec='${libname}${release}${shared_ext}$major'
  9949. shlibpath_var=LD_LIBRARY_PATH
  9950. shlibpath_overrides_runpath=no
  9951. hardcode_into_libs=yes
  9952. ;;
  9953. haiku*)
  9954. version_type=linux # correct to gnu/linux during the next big refactor
  9955. need_lib_prefix=no
  9956. need_version=no
  9957. dynamic_linker="$host_os runtime_loader"
  9958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9959. soname_spec='${libname}${release}${shared_ext}$major'
  9960. shlibpath_var=LIBRARY_PATH
  9961. shlibpath_overrides_runpath=yes
  9962. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9963. hardcode_into_libs=yes
  9964. ;;
  9965. hpux9* | hpux10* | hpux11*)
  9966. # Give a soname corresponding to the major version so that dld.sl refuses to
  9967. # link against other versions.
  9968. version_type=sunos
  9969. need_lib_prefix=no
  9970. need_version=no
  9971. case $host_cpu in
  9972. ia64*)
  9973. shrext_cmds='.so'
  9974. hardcode_into_libs=yes
  9975. dynamic_linker="$host_os dld.so"
  9976. shlibpath_var=LD_LIBRARY_PATH
  9977. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9979. soname_spec='${libname}${release}${shared_ext}$major'
  9980. if test "X$HPUX_IA64_MODE" = X32; then
  9981. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9982. else
  9983. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9984. fi
  9985. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9986. ;;
  9987. hppa*64*)
  9988. shrext_cmds='.sl'
  9989. hardcode_into_libs=yes
  9990. dynamic_linker="$host_os dld.sl"
  9991. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9992. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9996. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9997. ;;
  9998. *)
  9999. shrext_cmds='.sl'
  10000. dynamic_linker="$host_os dld.sl"
  10001. shlibpath_var=SHLIB_PATH
  10002. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10004. soname_spec='${libname}${release}${shared_ext}$major'
  10005. ;;
  10006. esac
  10007. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10008. postinstall_cmds='chmod 555 $lib'
  10009. # or fails outright, so override atomically:
  10010. install_override_mode=555
  10011. ;;
  10012. interix[3-9]*)
  10013. version_type=linux # correct to gnu/linux during the next big refactor
  10014. need_lib_prefix=no
  10015. need_version=no
  10016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10017. soname_spec='${libname}${release}${shared_ext}$major'
  10018. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10019. shlibpath_var=LD_LIBRARY_PATH
  10020. shlibpath_overrides_runpath=no
  10021. hardcode_into_libs=yes
  10022. ;;
  10023. irix5* | irix6* | nonstopux*)
  10024. case $host_os in
  10025. nonstopux*) version_type=nonstopux ;;
  10026. *)
  10027. if test "$lt_cv_prog_gnu_ld" = yes; then
  10028. version_type=linux # correct to gnu/linux during the next big refactor
  10029. else
  10030. version_type=irix
  10031. fi ;;
  10032. esac
  10033. need_lib_prefix=no
  10034. need_version=no
  10035. soname_spec='${libname}${release}${shared_ext}$major'
  10036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10037. case $host_os in
  10038. irix5* | nonstopux*)
  10039. libsuff= shlibsuff=
  10040. ;;
  10041. *)
  10042. case $LD in # libtool.m4 will add one of these switches to LD
  10043. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10044. libsuff= shlibsuff= libmagic=32-bit;;
  10045. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10046. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10047. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10048. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10049. *) libsuff= shlibsuff= libmagic=never-match;;
  10050. esac
  10051. ;;
  10052. esac
  10053. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10054. shlibpath_overrides_runpath=no
  10055. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10056. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10057. hardcode_into_libs=yes
  10058. ;;
  10059. # No shared lib support for Linux oldld, aout, or coff.
  10060. linux*oldld* | linux*aout* | linux*coff*)
  10061. dynamic_linker=no
  10062. ;;
  10063. # This must be glibc/ELF.
  10064. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10065. version_type=linux # correct to gnu/linux during the next big refactor
  10066. need_lib_prefix=no
  10067. need_version=no
  10068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10069. soname_spec='${libname}${release}${shared_ext}$major'
  10070. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10071. shlibpath_var=LD_LIBRARY_PATH
  10072. shlibpath_overrides_runpath=no
  10073. # Some binutils ld are patched to set DT_RUNPATH
  10074. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10075. $as_echo_n "(cached) " >&6
  10076. else
  10077. lt_cv_shlibpath_overrides_runpath=no
  10078. save_LDFLAGS=$LDFLAGS
  10079. save_libdir=$libdir
  10080. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10081. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10083. /* end confdefs.h. */
  10084. int
  10085. main ()
  10086. {
  10087. ;
  10088. return 0;
  10089. }
  10090. _ACEOF
  10091. if ac_fn_c_try_link "$LINENO"; then :
  10092. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10093. lt_cv_shlibpath_overrides_runpath=yes
  10094. fi
  10095. fi
  10096. rm -f core conftest.err conftest.$ac_objext \
  10097. conftest$ac_exeext conftest.$ac_ext
  10098. LDFLAGS=$save_LDFLAGS
  10099. libdir=$save_libdir
  10100. fi
  10101. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10102. # This implies no fast_install, which is unacceptable.
  10103. # Some rework will be needed to allow for fast_install
  10104. # before this can be enabled.
  10105. hardcode_into_libs=yes
  10106. # Add ABI-specific directories to the system library path.
  10107. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10108. # Append ld.so.conf contents to the search path
  10109. if test -f /etc/ld.so.conf; then
  10110. 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' ' '`
  10111. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10112. fi
  10113. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10114. # powerpc, because MkLinux only supported shared libraries with the
  10115. # GNU dynamic linker. Since this was broken with cross compilers,
  10116. # most powerpc-linux boxes support dynamic linking these days and
  10117. # people can always --disable-shared, the test was removed, and we
  10118. # assume the GNU/Linux dynamic linker is in use.
  10119. dynamic_linker='GNU/Linux ld.so'
  10120. ;;
  10121. netbsd*)
  10122. version_type=sunos
  10123. need_lib_prefix=no
  10124. need_version=no
  10125. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10127. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10128. dynamic_linker='NetBSD (a.out) ld.so'
  10129. else
  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. dynamic_linker='NetBSD ld.elf_so'
  10133. fi
  10134. shlibpath_var=LD_LIBRARY_PATH
  10135. shlibpath_overrides_runpath=yes
  10136. hardcode_into_libs=yes
  10137. ;;
  10138. newsos6)
  10139. version_type=linux # correct to gnu/linux during the next big refactor
  10140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10141. shlibpath_var=LD_LIBRARY_PATH
  10142. shlibpath_overrides_runpath=yes
  10143. ;;
  10144. *nto* | *qnx*)
  10145. version_type=qnx
  10146. need_lib_prefix=no
  10147. need_version=no
  10148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10149. soname_spec='${libname}${release}${shared_ext}$major'
  10150. shlibpath_var=LD_LIBRARY_PATH
  10151. shlibpath_overrides_runpath=no
  10152. hardcode_into_libs=yes
  10153. dynamic_linker='ldqnx.so'
  10154. ;;
  10155. openbsd*)
  10156. version_type=sunos
  10157. sys_lib_dlsearch_path_spec="/usr/lib"
  10158. need_lib_prefix=no
  10159. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10160. case $host_os in
  10161. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10162. *) need_version=no ;;
  10163. esac
  10164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10165. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10166. shlibpath_var=LD_LIBRARY_PATH
  10167. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10168. case $host_os in
  10169. openbsd2.[89] | openbsd2.[89].*)
  10170. shlibpath_overrides_runpath=no
  10171. ;;
  10172. *)
  10173. shlibpath_overrides_runpath=yes
  10174. ;;
  10175. esac
  10176. else
  10177. shlibpath_overrides_runpath=yes
  10178. fi
  10179. ;;
  10180. os2*)
  10181. libname_spec='$name'
  10182. shrext_cmds=".dll"
  10183. need_lib_prefix=no
  10184. library_names_spec='$libname${shared_ext} $libname.a'
  10185. dynamic_linker='OS/2 ld.exe'
  10186. shlibpath_var=LIBPATH
  10187. ;;
  10188. osf3* | osf4* | osf5*)
  10189. version_type=osf
  10190. need_lib_prefix=no
  10191. need_version=no
  10192. soname_spec='${libname}${release}${shared_ext}$major'
  10193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10194. shlibpath_var=LD_LIBRARY_PATH
  10195. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10196. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10197. ;;
  10198. rdos*)
  10199. dynamic_linker=no
  10200. ;;
  10201. solaris*)
  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. soname_spec='${libname}${release}${shared_ext}$major'
  10207. shlibpath_var=LD_LIBRARY_PATH
  10208. shlibpath_overrides_runpath=yes
  10209. hardcode_into_libs=yes
  10210. # ldd complains unless libraries are executable
  10211. postinstall_cmds='chmod +x $lib'
  10212. ;;
  10213. sunos4*)
  10214. version_type=sunos
  10215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10216. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10217. shlibpath_var=LD_LIBRARY_PATH
  10218. shlibpath_overrides_runpath=yes
  10219. if test "$with_gnu_ld" = yes; then
  10220. need_lib_prefix=no
  10221. fi
  10222. need_version=yes
  10223. ;;
  10224. sysv4 | sysv4.3*)
  10225. version_type=linux # correct to gnu/linux during the next big refactor
  10226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10227. soname_spec='${libname}${release}${shared_ext}$major'
  10228. shlibpath_var=LD_LIBRARY_PATH
  10229. case $host_vendor in
  10230. sni)
  10231. shlibpath_overrides_runpath=no
  10232. need_lib_prefix=no
  10233. runpath_var=LD_RUN_PATH
  10234. ;;
  10235. siemens)
  10236. need_lib_prefix=no
  10237. ;;
  10238. motorola)
  10239. need_lib_prefix=no
  10240. need_version=no
  10241. shlibpath_overrides_runpath=no
  10242. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10243. ;;
  10244. esac
  10245. ;;
  10246. sysv4*MP*)
  10247. if test -d /usr/nec ;then
  10248. version_type=linux # correct to gnu/linux during the next big refactor
  10249. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10250. soname_spec='$libname${shared_ext}.$major'
  10251. shlibpath_var=LD_LIBRARY_PATH
  10252. fi
  10253. ;;
  10254. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10255. version_type=freebsd-elf
  10256. need_lib_prefix=no
  10257. need_version=no
  10258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10259. soname_spec='${libname}${release}${shared_ext}$major'
  10260. shlibpath_var=LD_LIBRARY_PATH
  10261. shlibpath_overrides_runpath=yes
  10262. hardcode_into_libs=yes
  10263. if test "$with_gnu_ld" = yes; then
  10264. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10265. else
  10266. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10267. case $host_os in
  10268. sco3.2v5*)
  10269. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10270. ;;
  10271. esac
  10272. fi
  10273. sys_lib_dlsearch_path_spec='/usr/lib'
  10274. ;;
  10275. tpf*)
  10276. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10277. version_type=linux # correct to gnu/linux during the next big refactor
  10278. need_lib_prefix=no
  10279. need_version=no
  10280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10281. shlibpath_var=LD_LIBRARY_PATH
  10282. shlibpath_overrides_runpath=no
  10283. hardcode_into_libs=yes
  10284. ;;
  10285. uts4*)
  10286. version_type=linux # correct to gnu/linux during the next big refactor
  10287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10288. soname_spec='${libname}${release}${shared_ext}$major'
  10289. shlibpath_var=LD_LIBRARY_PATH
  10290. ;;
  10291. *)
  10292. dynamic_linker=no
  10293. ;;
  10294. esac
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10296. $as_echo "$dynamic_linker" >&6; }
  10297. test "$dynamic_linker" = no && can_build_shared=no
  10298. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10299. if test "$GCC" = yes; then
  10300. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10301. fi
  10302. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10303. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10304. fi
  10305. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10306. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10307. fi
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10309. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10310. hardcode_action=
  10311. if test -n "$hardcode_libdir_flag_spec" ||
  10312. test -n "$runpath_var" ||
  10313. test "X$hardcode_automatic" = "Xyes" ; then
  10314. # We can hardcode non-existent directories.
  10315. if test "$hardcode_direct" != no &&
  10316. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10317. # have to relink, otherwise we might link with an installed library
  10318. # when we should be linking with a yet-to-be-installed one
  10319. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10320. test "$hardcode_minus_L" != no; then
  10321. # Linking always hardcodes the temporary library directory.
  10322. hardcode_action=relink
  10323. else
  10324. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10325. hardcode_action=immediate
  10326. fi
  10327. else
  10328. # We cannot hardcode anything, or else we can only hardcode existing
  10329. # directories.
  10330. hardcode_action=unsupported
  10331. fi
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10333. $as_echo "$hardcode_action" >&6; }
  10334. if test "$hardcode_action" = relink ||
  10335. test "$inherit_rpath" = yes; then
  10336. # Fast installation is not supported
  10337. enable_fast_install=no
  10338. elif test "$shlibpath_overrides_runpath" = yes ||
  10339. test "$enable_shared" = no; then
  10340. # Fast installation is not necessary
  10341. enable_fast_install=needless
  10342. fi
  10343. if test "x$enable_dlopen" != xyes; then
  10344. enable_dlopen=unknown
  10345. enable_dlopen_self=unknown
  10346. enable_dlopen_self_static=unknown
  10347. else
  10348. lt_cv_dlopen=no
  10349. lt_cv_dlopen_libs=
  10350. case $host_os in
  10351. beos*)
  10352. lt_cv_dlopen="load_add_on"
  10353. lt_cv_dlopen_libs=
  10354. lt_cv_dlopen_self=yes
  10355. ;;
  10356. mingw* | pw32* | cegcc*)
  10357. lt_cv_dlopen="LoadLibrary"
  10358. lt_cv_dlopen_libs=
  10359. ;;
  10360. cygwin*)
  10361. lt_cv_dlopen="dlopen"
  10362. lt_cv_dlopen_libs=
  10363. ;;
  10364. darwin*)
  10365. # if libdl is installed we need to link against it
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10367. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10368. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10369. $as_echo_n "(cached) " >&6
  10370. else
  10371. ac_check_lib_save_LIBS=$LIBS
  10372. LIBS="-ldl $LIBS"
  10373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10374. /* end confdefs.h. */
  10375. /* Override any GCC internal prototype to avoid an error.
  10376. Use char because int might match the return type of a GCC
  10377. builtin and then its argument prototype would still apply. */
  10378. #ifdef __cplusplus
  10379. extern "C"
  10380. #endif
  10381. char dlopen ();
  10382. int
  10383. main ()
  10384. {
  10385. return dlopen ();
  10386. ;
  10387. return 0;
  10388. }
  10389. _ACEOF
  10390. if ac_fn_c_try_link "$LINENO"; then :
  10391. ac_cv_lib_dl_dlopen=yes
  10392. else
  10393. ac_cv_lib_dl_dlopen=no
  10394. fi
  10395. rm -f core conftest.err conftest.$ac_objext \
  10396. conftest$ac_exeext conftest.$ac_ext
  10397. LIBS=$ac_check_lib_save_LIBS
  10398. fi
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10400. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10401. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10402. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10403. else
  10404. lt_cv_dlopen="dyld"
  10405. lt_cv_dlopen_libs=
  10406. lt_cv_dlopen_self=yes
  10407. fi
  10408. ;;
  10409. *)
  10410. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10411. if test "x$ac_cv_func_shl_load" = xyes; then :
  10412. lt_cv_dlopen="shl_load"
  10413. else
  10414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10415. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10416. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10417. $as_echo_n "(cached) " >&6
  10418. else
  10419. ac_check_lib_save_LIBS=$LIBS
  10420. LIBS="-ldld $LIBS"
  10421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10422. /* end confdefs.h. */
  10423. /* Override any GCC internal prototype to avoid an error.
  10424. Use char because int might match the return type of a GCC
  10425. builtin and then its argument prototype would still apply. */
  10426. #ifdef __cplusplus
  10427. extern "C"
  10428. #endif
  10429. char shl_load ();
  10430. int
  10431. main ()
  10432. {
  10433. return shl_load ();
  10434. ;
  10435. return 0;
  10436. }
  10437. _ACEOF
  10438. if ac_fn_c_try_link "$LINENO"; then :
  10439. ac_cv_lib_dld_shl_load=yes
  10440. else
  10441. ac_cv_lib_dld_shl_load=no
  10442. fi
  10443. rm -f core conftest.err conftest.$ac_objext \
  10444. conftest$ac_exeext conftest.$ac_ext
  10445. LIBS=$ac_check_lib_save_LIBS
  10446. fi
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10448. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10449. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10450. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10451. else
  10452. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10453. if test "x$ac_cv_func_dlopen" = xyes; then :
  10454. lt_cv_dlopen="dlopen"
  10455. else
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10457. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10458. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10459. $as_echo_n "(cached) " >&6
  10460. else
  10461. ac_check_lib_save_LIBS=$LIBS
  10462. LIBS="-ldl $LIBS"
  10463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10464. /* end confdefs.h. */
  10465. /* Override any GCC internal prototype to avoid an error.
  10466. Use char because int might match the return type of a GCC
  10467. builtin and then its argument prototype would still apply. */
  10468. #ifdef __cplusplus
  10469. extern "C"
  10470. #endif
  10471. char dlopen ();
  10472. int
  10473. main ()
  10474. {
  10475. return dlopen ();
  10476. ;
  10477. return 0;
  10478. }
  10479. _ACEOF
  10480. if ac_fn_c_try_link "$LINENO"; then :
  10481. ac_cv_lib_dl_dlopen=yes
  10482. else
  10483. ac_cv_lib_dl_dlopen=no
  10484. fi
  10485. rm -f core conftest.err conftest.$ac_objext \
  10486. conftest$ac_exeext conftest.$ac_ext
  10487. LIBS=$ac_check_lib_save_LIBS
  10488. fi
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10490. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10491. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10492. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10493. else
  10494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10495. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10496. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10497. $as_echo_n "(cached) " >&6
  10498. else
  10499. ac_check_lib_save_LIBS=$LIBS
  10500. LIBS="-lsvld $LIBS"
  10501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10502. /* end confdefs.h. */
  10503. /* Override any GCC internal prototype to avoid an error.
  10504. Use char because int might match the return type of a GCC
  10505. builtin and then its argument prototype would still apply. */
  10506. #ifdef __cplusplus
  10507. extern "C"
  10508. #endif
  10509. char dlopen ();
  10510. int
  10511. main ()
  10512. {
  10513. return dlopen ();
  10514. ;
  10515. return 0;
  10516. }
  10517. _ACEOF
  10518. if ac_fn_c_try_link "$LINENO"; then :
  10519. ac_cv_lib_svld_dlopen=yes
  10520. else
  10521. ac_cv_lib_svld_dlopen=no
  10522. fi
  10523. rm -f core conftest.err conftest.$ac_objext \
  10524. conftest$ac_exeext conftest.$ac_ext
  10525. LIBS=$ac_check_lib_save_LIBS
  10526. fi
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10528. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10529. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10530. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10531. else
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10533. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10534. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10535. $as_echo_n "(cached) " >&6
  10536. else
  10537. ac_check_lib_save_LIBS=$LIBS
  10538. LIBS="-ldld $LIBS"
  10539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10540. /* end confdefs.h. */
  10541. /* Override any GCC internal prototype to avoid an error.
  10542. Use char because int might match the return type of a GCC
  10543. builtin and then its argument prototype would still apply. */
  10544. #ifdef __cplusplus
  10545. extern "C"
  10546. #endif
  10547. char dld_link ();
  10548. int
  10549. main ()
  10550. {
  10551. return dld_link ();
  10552. ;
  10553. return 0;
  10554. }
  10555. _ACEOF
  10556. if ac_fn_c_try_link "$LINENO"; then :
  10557. ac_cv_lib_dld_dld_link=yes
  10558. else
  10559. ac_cv_lib_dld_dld_link=no
  10560. fi
  10561. rm -f core conftest.err conftest.$ac_objext \
  10562. conftest$ac_exeext conftest.$ac_ext
  10563. LIBS=$ac_check_lib_save_LIBS
  10564. fi
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10566. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10567. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10568. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10569. fi
  10570. fi
  10571. fi
  10572. fi
  10573. fi
  10574. fi
  10575. ;;
  10576. esac
  10577. if test "x$lt_cv_dlopen" != xno; then
  10578. enable_dlopen=yes
  10579. else
  10580. enable_dlopen=no
  10581. fi
  10582. case $lt_cv_dlopen in
  10583. dlopen)
  10584. save_CPPFLAGS="$CPPFLAGS"
  10585. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10586. save_LDFLAGS="$LDFLAGS"
  10587. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10588. save_LIBS="$LIBS"
  10589. LIBS="$lt_cv_dlopen_libs $LIBS"
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10591. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10592. if ${lt_cv_dlopen_self+:} false; then :
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. if test "$cross_compiling" = yes; then :
  10596. lt_cv_dlopen_self=cross
  10597. else
  10598. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10599. lt_status=$lt_dlunknown
  10600. cat > conftest.$ac_ext <<_LT_EOF
  10601. #line $LINENO "configure"
  10602. #include "confdefs.h"
  10603. #if HAVE_DLFCN_H
  10604. #include <dlfcn.h>
  10605. #endif
  10606. #include <stdio.h>
  10607. #ifdef RTLD_GLOBAL
  10608. # define LT_DLGLOBAL RTLD_GLOBAL
  10609. #else
  10610. # ifdef DL_GLOBAL
  10611. # define LT_DLGLOBAL DL_GLOBAL
  10612. # else
  10613. # define LT_DLGLOBAL 0
  10614. # endif
  10615. #endif
  10616. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10617. find out it does not work in some platform. */
  10618. #ifndef LT_DLLAZY_OR_NOW
  10619. # ifdef RTLD_LAZY
  10620. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10621. # else
  10622. # ifdef DL_LAZY
  10623. # define LT_DLLAZY_OR_NOW DL_LAZY
  10624. # else
  10625. # ifdef RTLD_NOW
  10626. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10627. # else
  10628. # ifdef DL_NOW
  10629. # define LT_DLLAZY_OR_NOW DL_NOW
  10630. # else
  10631. # define LT_DLLAZY_OR_NOW 0
  10632. # endif
  10633. # endif
  10634. # endif
  10635. # endif
  10636. #endif
  10637. /* When -fvisbility=hidden is used, assume the code has been annotated
  10638. correspondingly for the symbols needed. */
  10639. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10640. int fnord () __attribute__((visibility("default")));
  10641. #endif
  10642. int fnord () { return 42; }
  10643. int main ()
  10644. {
  10645. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10646. int status = $lt_dlunknown;
  10647. if (self)
  10648. {
  10649. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10650. else
  10651. {
  10652. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10653. else puts (dlerror ());
  10654. }
  10655. /* dlclose (self); */
  10656. }
  10657. else
  10658. puts (dlerror ());
  10659. return status;
  10660. }
  10661. _LT_EOF
  10662. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10663. (eval $ac_link) 2>&5
  10664. ac_status=$?
  10665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10666. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10667. (./conftest; exit; ) >&5 2>/dev/null
  10668. lt_status=$?
  10669. case x$lt_status in
  10670. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10671. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10672. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10673. esac
  10674. else :
  10675. # compilation failed
  10676. lt_cv_dlopen_self=no
  10677. fi
  10678. fi
  10679. rm -fr conftest*
  10680. fi
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10682. $as_echo "$lt_cv_dlopen_self" >&6; }
  10683. if test "x$lt_cv_dlopen_self" = xyes; then
  10684. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10686. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10687. if ${lt_cv_dlopen_self_static+:} false; then :
  10688. $as_echo_n "(cached) " >&6
  10689. else
  10690. if test "$cross_compiling" = yes; then :
  10691. lt_cv_dlopen_self_static=cross
  10692. else
  10693. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10694. lt_status=$lt_dlunknown
  10695. cat > conftest.$ac_ext <<_LT_EOF
  10696. #line $LINENO "configure"
  10697. #include "confdefs.h"
  10698. #if HAVE_DLFCN_H
  10699. #include <dlfcn.h>
  10700. #endif
  10701. #include <stdio.h>
  10702. #ifdef RTLD_GLOBAL
  10703. # define LT_DLGLOBAL RTLD_GLOBAL
  10704. #else
  10705. # ifdef DL_GLOBAL
  10706. # define LT_DLGLOBAL DL_GLOBAL
  10707. # else
  10708. # define LT_DLGLOBAL 0
  10709. # endif
  10710. #endif
  10711. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10712. find out it does not work in some platform. */
  10713. #ifndef LT_DLLAZY_OR_NOW
  10714. # ifdef RTLD_LAZY
  10715. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10716. # else
  10717. # ifdef DL_LAZY
  10718. # define LT_DLLAZY_OR_NOW DL_LAZY
  10719. # else
  10720. # ifdef RTLD_NOW
  10721. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10722. # else
  10723. # ifdef DL_NOW
  10724. # define LT_DLLAZY_OR_NOW DL_NOW
  10725. # else
  10726. # define LT_DLLAZY_OR_NOW 0
  10727. # endif
  10728. # endif
  10729. # endif
  10730. # endif
  10731. #endif
  10732. /* When -fvisbility=hidden is used, assume the code has been annotated
  10733. correspondingly for the symbols needed. */
  10734. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10735. int fnord () __attribute__((visibility("default")));
  10736. #endif
  10737. int fnord () { return 42; }
  10738. int main ()
  10739. {
  10740. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10741. int status = $lt_dlunknown;
  10742. if (self)
  10743. {
  10744. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10745. else
  10746. {
  10747. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10748. else puts (dlerror ());
  10749. }
  10750. /* dlclose (self); */
  10751. }
  10752. else
  10753. puts (dlerror ());
  10754. return status;
  10755. }
  10756. _LT_EOF
  10757. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10758. (eval $ac_link) 2>&5
  10759. ac_status=$?
  10760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10761. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10762. (./conftest; exit; ) >&5 2>/dev/null
  10763. lt_status=$?
  10764. case x$lt_status in
  10765. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10766. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10767. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10768. esac
  10769. else :
  10770. # compilation failed
  10771. lt_cv_dlopen_self_static=no
  10772. fi
  10773. fi
  10774. rm -fr conftest*
  10775. fi
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10777. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10778. fi
  10779. CPPFLAGS="$save_CPPFLAGS"
  10780. LDFLAGS="$save_LDFLAGS"
  10781. LIBS="$save_LIBS"
  10782. ;;
  10783. esac
  10784. case $lt_cv_dlopen_self in
  10785. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10786. *) enable_dlopen_self=unknown ;;
  10787. esac
  10788. case $lt_cv_dlopen_self_static in
  10789. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10790. *) enable_dlopen_self_static=unknown ;;
  10791. esac
  10792. fi
  10793. striplib=
  10794. old_striplib=
  10795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10796. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10797. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10798. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10799. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10801. $as_echo "yes" >&6; }
  10802. else
  10803. # FIXME - insert some real tests, host_os isn't really good enough
  10804. case $host_os in
  10805. darwin*)
  10806. if test -n "$STRIP" ; then
  10807. striplib="$STRIP -x"
  10808. old_striplib="$STRIP -S"
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10810. $as_echo "yes" >&6; }
  10811. else
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10813. $as_echo "no" >&6; }
  10814. fi
  10815. ;;
  10816. *)
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10818. $as_echo "no" >&6; }
  10819. ;;
  10820. esac
  10821. fi
  10822. # Report which library types will actually be built
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10824. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10826. $as_echo "$can_build_shared" >&6; }
  10827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10828. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10829. test "$can_build_shared" = "no" && enable_shared=no
  10830. # On AIX, shared libraries and static libraries use the same namespace, and
  10831. # are all built from PIC.
  10832. case $host_os in
  10833. aix3*)
  10834. test "$enable_shared" = yes && enable_static=no
  10835. if test -n "$RANLIB"; then
  10836. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10837. postinstall_cmds='$RANLIB $lib'
  10838. fi
  10839. ;;
  10840. aix[4-9]*)
  10841. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10842. test "$enable_shared" = yes && enable_static=no
  10843. fi
  10844. ;;
  10845. esac
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10847. $as_echo "$enable_shared" >&6; }
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10849. $as_echo_n "checking whether to build static libraries... " >&6; }
  10850. # Make sure either enable_shared or enable_static is yes.
  10851. test "$enable_shared" = yes || enable_static=yes
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10853. $as_echo "$enable_static" >&6; }
  10854. fi
  10855. ac_ext=c
  10856. ac_cpp='$CPP $CPPFLAGS'
  10857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10860. CC="$lt_save_CC"
  10861. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10862. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10863. (test "X$CXX" != "Xg++"))) ; then
  10864. ac_ext=cpp
  10865. ac_cpp='$CXXCPP $CPPFLAGS'
  10866. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10867. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10868. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10870. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10871. if test -z "$CXXCPP"; then
  10872. if ${ac_cv_prog_CXXCPP+:} false; then :
  10873. $as_echo_n "(cached) " >&6
  10874. else
  10875. # Double quotes because CXXCPP needs to be expanded
  10876. for CXXCPP in "$CXX -E" "/lib/cpp"
  10877. do
  10878. ac_preproc_ok=false
  10879. for ac_cxx_preproc_warn_flag in '' yes
  10880. do
  10881. # Use a header file that comes with gcc, so configuring glibc
  10882. # with a fresh cross-compiler works.
  10883. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10884. # <limits.h> exists even on freestanding compilers.
  10885. # On the NeXT, cc -E runs the code through the compiler's parser,
  10886. # not just through cpp. "Syntax error" is here to catch this case.
  10887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10888. /* end confdefs.h. */
  10889. #ifdef __STDC__
  10890. # include <limits.h>
  10891. #else
  10892. # include <assert.h>
  10893. #endif
  10894. Syntax error
  10895. _ACEOF
  10896. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10897. else
  10898. # Broken: fails on valid input.
  10899. continue
  10900. fi
  10901. rm -f conftest.err conftest.i conftest.$ac_ext
  10902. # OK, works on sane cases. Now check whether nonexistent headers
  10903. # can be detected and how.
  10904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10905. /* end confdefs.h. */
  10906. #include <ac_nonexistent.h>
  10907. _ACEOF
  10908. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10909. # Broken: success on invalid input.
  10910. continue
  10911. else
  10912. # Passes both tests.
  10913. ac_preproc_ok=:
  10914. break
  10915. fi
  10916. rm -f conftest.err conftest.i conftest.$ac_ext
  10917. done
  10918. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10919. rm -f conftest.i conftest.err conftest.$ac_ext
  10920. if $ac_preproc_ok; then :
  10921. break
  10922. fi
  10923. done
  10924. ac_cv_prog_CXXCPP=$CXXCPP
  10925. fi
  10926. CXXCPP=$ac_cv_prog_CXXCPP
  10927. else
  10928. ac_cv_prog_CXXCPP=$CXXCPP
  10929. fi
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10931. $as_echo "$CXXCPP" >&6; }
  10932. ac_preproc_ok=false
  10933. for ac_cxx_preproc_warn_flag in '' yes
  10934. do
  10935. # Use a header file that comes with gcc, so configuring glibc
  10936. # with a fresh cross-compiler works.
  10937. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10938. # <limits.h> exists even on freestanding compilers.
  10939. # On the NeXT, cc -E runs the code through the compiler's parser,
  10940. # not just through cpp. "Syntax error" is here to catch this case.
  10941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10942. /* end confdefs.h. */
  10943. #ifdef __STDC__
  10944. # include <limits.h>
  10945. #else
  10946. # include <assert.h>
  10947. #endif
  10948. Syntax error
  10949. _ACEOF
  10950. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10951. else
  10952. # Broken: fails on valid input.
  10953. continue
  10954. fi
  10955. rm -f conftest.err conftest.i conftest.$ac_ext
  10956. # OK, works on sane cases. Now check whether nonexistent headers
  10957. # can be detected and how.
  10958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10959. /* end confdefs.h. */
  10960. #include <ac_nonexistent.h>
  10961. _ACEOF
  10962. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10963. # Broken: success on invalid input.
  10964. continue
  10965. else
  10966. # Passes both tests.
  10967. ac_preproc_ok=:
  10968. break
  10969. fi
  10970. rm -f conftest.err conftest.i conftest.$ac_ext
  10971. done
  10972. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10973. rm -f conftest.i conftest.err conftest.$ac_ext
  10974. if $ac_preproc_ok; then :
  10975. else
  10976. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10977. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10978. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10979. See \`config.log' for more details" "$LINENO" 5; }
  10980. fi
  10981. ac_ext=c
  10982. ac_cpp='$CPP $CPPFLAGS'
  10983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10986. else
  10987. _lt_caught_CXX_error=yes
  10988. fi
  10989. ac_ext=cpp
  10990. ac_cpp='$CXXCPP $CPPFLAGS'
  10991. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10992. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10993. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10994. archive_cmds_need_lc_CXX=no
  10995. allow_undefined_flag_CXX=
  10996. always_export_symbols_CXX=no
  10997. archive_expsym_cmds_CXX=
  10998. compiler_needs_object_CXX=no
  10999. export_dynamic_flag_spec_CXX=
  11000. hardcode_direct_CXX=no
  11001. hardcode_direct_absolute_CXX=no
  11002. hardcode_libdir_flag_spec_CXX=
  11003. hardcode_libdir_separator_CXX=
  11004. hardcode_minus_L_CXX=no
  11005. hardcode_shlibpath_var_CXX=unsupported
  11006. hardcode_automatic_CXX=no
  11007. inherit_rpath_CXX=no
  11008. module_cmds_CXX=
  11009. module_expsym_cmds_CXX=
  11010. link_all_deplibs_CXX=unknown
  11011. old_archive_cmds_CXX=$old_archive_cmds
  11012. reload_flag_CXX=$reload_flag
  11013. reload_cmds_CXX=$reload_cmds
  11014. no_undefined_flag_CXX=
  11015. whole_archive_flag_spec_CXX=
  11016. enable_shared_with_static_runtimes_CXX=no
  11017. # Source file extension for C++ test sources.
  11018. ac_ext=cpp
  11019. # Object file extension for compiled C++ test sources.
  11020. objext=o
  11021. objext_CXX=$objext
  11022. # No sense in running all these tests if we already determined that
  11023. # the CXX compiler isn't working. Some variables (like enable_shared)
  11024. # are currently assumed to apply to all compilers on this platform,
  11025. # and will be corrupted by setting them based on a non-working compiler.
  11026. if test "$_lt_caught_CXX_error" != yes; then
  11027. # Code to be used in simple compile tests
  11028. lt_simple_compile_test_code="int some_variable = 0;"
  11029. # Code to be used in simple link tests
  11030. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11031. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11032. # If no C compiler was specified, use CC.
  11033. LTCC=${LTCC-"$CC"}
  11034. # If no C compiler flags were specified, use CFLAGS.
  11035. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11036. # Allow CC to be a program name with arguments.
  11037. compiler=$CC
  11038. # save warnings/boilerplate of simple test code
  11039. ac_outfile=conftest.$ac_objext
  11040. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11041. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11042. _lt_compiler_boilerplate=`cat conftest.err`
  11043. $RM conftest*
  11044. ac_outfile=conftest.$ac_objext
  11045. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11046. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11047. _lt_linker_boilerplate=`cat conftest.err`
  11048. $RM -r conftest*
  11049. # Allow CC to be a program name with arguments.
  11050. lt_save_CC=$CC
  11051. lt_save_CFLAGS=$CFLAGS
  11052. lt_save_LD=$LD
  11053. lt_save_GCC=$GCC
  11054. GCC=$GXX
  11055. lt_save_with_gnu_ld=$with_gnu_ld
  11056. lt_save_path_LD=$lt_cv_path_LD
  11057. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11058. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11059. else
  11060. $as_unset lt_cv_prog_gnu_ld
  11061. fi
  11062. if test -n "${lt_cv_path_LDCXX+set}"; then
  11063. lt_cv_path_LD=$lt_cv_path_LDCXX
  11064. else
  11065. $as_unset lt_cv_path_LD
  11066. fi
  11067. test -z "${LDCXX+set}" || LD=$LDCXX
  11068. CC=${CXX-"c++"}
  11069. CFLAGS=$CXXFLAGS
  11070. compiler=$CC
  11071. compiler_CXX=$CC
  11072. for cc_temp in $compiler""; do
  11073. case $cc_temp in
  11074. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11075. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11076. \-*) ;;
  11077. *) break;;
  11078. esac
  11079. done
  11080. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11081. if test -n "$compiler"; then
  11082. # We don't want -fno-exception when compiling C++ code, so set the
  11083. # no_builtin_flag separately
  11084. if test "$GXX" = yes; then
  11085. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11086. else
  11087. lt_prog_compiler_no_builtin_flag_CXX=
  11088. fi
  11089. if test "$GXX" = yes; then
  11090. # Set up default GNU C++ configuration
  11091. # Check whether --with-gnu-ld was given.
  11092. if test "${with_gnu_ld+set}" = set; then :
  11093. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11094. else
  11095. with_gnu_ld=no
  11096. fi
  11097. ac_prog=ld
  11098. if test "$GCC" = yes; then
  11099. # Check if gcc -print-prog-name=ld gives a path.
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11101. $as_echo_n "checking for ld used by $CC... " >&6; }
  11102. case $host in
  11103. *-*-mingw*)
  11104. # gcc leaves a trailing carriage return which upsets mingw
  11105. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11106. *)
  11107. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11108. esac
  11109. case $ac_prog in
  11110. # Accept absolute paths.
  11111. [\\/]* | ?:[\\/]*)
  11112. re_direlt='/[^/][^/]*/\.\./'
  11113. # Canonicalize the pathname of ld
  11114. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11115. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11116. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11117. done
  11118. test -z "$LD" && LD="$ac_prog"
  11119. ;;
  11120. "")
  11121. # If it fails, then pretend we aren't using GCC.
  11122. ac_prog=ld
  11123. ;;
  11124. *)
  11125. # If it is relative, then search for the first ld in PATH.
  11126. with_gnu_ld=unknown
  11127. ;;
  11128. esac
  11129. elif test "$with_gnu_ld" = yes; then
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11131. $as_echo_n "checking for GNU ld... " >&6; }
  11132. else
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11134. $as_echo_n "checking for non-GNU ld... " >&6; }
  11135. fi
  11136. if ${lt_cv_path_LD+:} false; then :
  11137. $as_echo_n "(cached) " >&6
  11138. else
  11139. if test -z "$LD"; then
  11140. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11141. for ac_dir in $PATH; do
  11142. IFS="$lt_save_ifs"
  11143. test -z "$ac_dir" && ac_dir=.
  11144. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11145. lt_cv_path_LD="$ac_dir/$ac_prog"
  11146. # Check to see if the program is GNU ld. I'd rather use --version,
  11147. # but apparently some variants of GNU ld only accept -v.
  11148. # Break only if it was the GNU/non-GNU ld that we prefer.
  11149. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11150. *GNU* | *'with BFD'*)
  11151. test "$with_gnu_ld" != no && break
  11152. ;;
  11153. *)
  11154. test "$with_gnu_ld" != yes && break
  11155. ;;
  11156. esac
  11157. fi
  11158. done
  11159. IFS="$lt_save_ifs"
  11160. else
  11161. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11162. fi
  11163. fi
  11164. LD="$lt_cv_path_LD"
  11165. if test -n "$LD"; then
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11167. $as_echo "$LD" >&6; }
  11168. else
  11169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11170. $as_echo "no" >&6; }
  11171. fi
  11172. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11174. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11175. if ${lt_cv_prog_gnu_ld+:} false; then :
  11176. $as_echo_n "(cached) " >&6
  11177. else
  11178. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11179. case `$LD -v 2>&1 </dev/null` in
  11180. *GNU* | *'with BFD'*)
  11181. lt_cv_prog_gnu_ld=yes
  11182. ;;
  11183. *)
  11184. lt_cv_prog_gnu_ld=no
  11185. ;;
  11186. esac
  11187. fi
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11189. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11190. with_gnu_ld=$lt_cv_prog_gnu_ld
  11191. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11192. # archiving commands below assume that GNU ld is being used.
  11193. if test "$with_gnu_ld" = yes; then
  11194. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11195. 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'
  11196. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11197. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11198. # If archive_cmds runs LD, not CC, wlarc should be empty
  11199. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11200. # investigate it a little bit more. (MM)
  11201. wlarc='${wl}'
  11202. # ancient GNU ld didn't support --whole-archive et. al.
  11203. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11204. $GREP 'no-whole-archive' > /dev/null; then
  11205. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11206. else
  11207. whole_archive_flag_spec_CXX=
  11208. fi
  11209. else
  11210. with_gnu_ld=no
  11211. wlarc=
  11212. # A generic and very simple default shared library creation
  11213. # command for GNU C++ for the case where it uses the native
  11214. # linker, instead of GNU ld. If possible, this setting should
  11215. # overridden to take advantage of the native linker features on
  11216. # the platform it is being used on.
  11217. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11218. fi
  11219. # Commands to make compiler produce verbose output that lists
  11220. # what "hidden" libraries, object files and flags are used when
  11221. # linking a shared library.
  11222. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11223. else
  11224. GXX=no
  11225. with_gnu_ld=no
  11226. wlarc=
  11227. fi
  11228. # PORTME: fill in a description of your system's C++ link characteristics
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11230. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11231. ld_shlibs_CXX=yes
  11232. case $host_os in
  11233. aix3*)
  11234. # FIXME: insert proper C++ library support
  11235. ld_shlibs_CXX=no
  11236. ;;
  11237. aix[4-9]*)
  11238. if test "$host_cpu" = ia64; then
  11239. # On IA64, the linker does run time linking by default, so we don't
  11240. # have to do anything special.
  11241. aix_use_runtimelinking=no
  11242. exp_sym_flag='-Bexport'
  11243. no_entry_flag=""
  11244. else
  11245. aix_use_runtimelinking=no
  11246. # Test if we are trying to use run time linking or normal
  11247. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11248. # need to do runtime linking.
  11249. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11250. for ld_flag in $LDFLAGS; do
  11251. case $ld_flag in
  11252. *-brtl*)
  11253. aix_use_runtimelinking=yes
  11254. break
  11255. ;;
  11256. esac
  11257. done
  11258. ;;
  11259. esac
  11260. exp_sym_flag='-bexport'
  11261. no_entry_flag='-bnoentry'
  11262. fi
  11263. # When large executables or shared objects are built, AIX ld can
  11264. # have problems creating the table of contents. If linking a library
  11265. # or program results in "error TOC overflow" add -mminimal-toc to
  11266. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11267. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11268. archive_cmds_CXX=''
  11269. hardcode_direct_CXX=yes
  11270. hardcode_direct_absolute_CXX=yes
  11271. hardcode_libdir_separator_CXX=':'
  11272. link_all_deplibs_CXX=yes
  11273. file_list_spec_CXX='${wl}-f,'
  11274. if test "$GXX" = yes; then
  11275. case $host_os in aix4.[012]|aix4.[012].*)
  11276. # We only want to do this on AIX 4.2 and lower, the check
  11277. # below for broken collect2 doesn't work under 4.3+
  11278. collect2name=`${CC} -print-prog-name=collect2`
  11279. if test -f "$collect2name" &&
  11280. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11281. then
  11282. # We have reworked collect2
  11283. :
  11284. else
  11285. # We have old collect2
  11286. hardcode_direct_CXX=unsupported
  11287. # It fails to find uninstalled libraries when the uninstalled
  11288. # path is not listed in the libpath. Setting hardcode_minus_L
  11289. # to unsupported forces relinking
  11290. hardcode_minus_L_CXX=yes
  11291. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11292. hardcode_libdir_separator_CXX=
  11293. fi
  11294. esac
  11295. shared_flag='-shared'
  11296. if test "$aix_use_runtimelinking" = yes; then
  11297. shared_flag="$shared_flag "'${wl}-G'
  11298. fi
  11299. else
  11300. # not using gcc
  11301. if test "$host_cpu" = ia64; then
  11302. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11303. # chokes on -Wl,-G. The following line is correct:
  11304. shared_flag='-G'
  11305. else
  11306. if test "$aix_use_runtimelinking" = yes; then
  11307. shared_flag='${wl}-G'
  11308. else
  11309. shared_flag='${wl}-bM:SRE'
  11310. fi
  11311. fi
  11312. fi
  11313. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11314. # It seems that -bexpall does not export symbols beginning with
  11315. # underscore (_), so it is better to generate a list of symbols to
  11316. # export.
  11317. always_export_symbols_CXX=yes
  11318. if test "$aix_use_runtimelinking" = yes; then
  11319. # Warning - without using the other runtime loading flags (-brtl),
  11320. # -berok will link without error, but may produce a broken library.
  11321. allow_undefined_flag_CXX='-berok'
  11322. # Determine the default libpath from the value encoded in an empty
  11323. # executable.
  11324. if test "${lt_cv_aix_libpath+set}" = set; then
  11325. aix_libpath=$lt_cv_aix_libpath
  11326. else
  11327. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11328. $as_echo_n "(cached) " >&6
  11329. else
  11330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11331. /* end confdefs.h. */
  11332. int
  11333. main ()
  11334. {
  11335. ;
  11336. return 0;
  11337. }
  11338. _ACEOF
  11339. if ac_fn_cxx_try_link "$LINENO"; then :
  11340. lt_aix_libpath_sed='
  11341. /Import File Strings/,/^$/ {
  11342. /^0/ {
  11343. s/^0 *\([^ ]*\) *$/\1/
  11344. p
  11345. }
  11346. }'
  11347. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11348. # Check for a 64-bit object if we didn't find anything.
  11349. if test -z "$lt_cv_aix_libpath__CXX"; then
  11350. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11351. fi
  11352. fi
  11353. rm -f core conftest.err conftest.$ac_objext \
  11354. conftest$ac_exeext conftest.$ac_ext
  11355. if test -z "$lt_cv_aix_libpath__CXX"; then
  11356. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11357. fi
  11358. fi
  11359. aix_libpath=$lt_cv_aix_libpath__CXX
  11360. fi
  11361. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11362. 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"
  11363. else
  11364. if test "$host_cpu" = ia64; then
  11365. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11366. allow_undefined_flag_CXX="-z nodefs"
  11367. 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"
  11368. else
  11369. # Determine the default libpath from the value encoded in an
  11370. # empty executable.
  11371. if test "${lt_cv_aix_libpath+set}" = set; then
  11372. aix_libpath=$lt_cv_aix_libpath
  11373. else
  11374. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11375. $as_echo_n "(cached) " >&6
  11376. else
  11377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11378. /* end confdefs.h. */
  11379. int
  11380. main ()
  11381. {
  11382. ;
  11383. return 0;
  11384. }
  11385. _ACEOF
  11386. if ac_fn_cxx_try_link "$LINENO"; then :
  11387. lt_aix_libpath_sed='
  11388. /Import File Strings/,/^$/ {
  11389. /^0/ {
  11390. s/^0 *\([^ ]*\) *$/\1/
  11391. p
  11392. }
  11393. }'
  11394. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11395. # Check for a 64-bit object if we didn't find anything.
  11396. if test -z "$lt_cv_aix_libpath__CXX"; then
  11397. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11398. fi
  11399. fi
  11400. rm -f core conftest.err conftest.$ac_objext \
  11401. conftest$ac_exeext conftest.$ac_ext
  11402. if test -z "$lt_cv_aix_libpath__CXX"; then
  11403. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11404. fi
  11405. fi
  11406. aix_libpath=$lt_cv_aix_libpath__CXX
  11407. fi
  11408. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11409. # Warning - without using the other run time loading flags,
  11410. # -berok will link without error, but may produce a broken library.
  11411. no_undefined_flag_CXX=' ${wl}-bernotok'
  11412. allow_undefined_flag_CXX=' ${wl}-berok'
  11413. if test "$with_gnu_ld" = yes; then
  11414. # We only use this code for GNU lds that support --whole-archive.
  11415. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11416. else
  11417. # Exported symbols can be pulled into shared objects from archives
  11418. whole_archive_flag_spec_CXX='$convenience'
  11419. fi
  11420. archive_cmds_need_lc_CXX=yes
  11421. # This is similar to how AIX traditionally builds its shared
  11422. # libraries.
  11423. 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'
  11424. fi
  11425. fi
  11426. ;;
  11427. beos*)
  11428. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11429. allow_undefined_flag_CXX=unsupported
  11430. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11431. # support --undefined. This deserves some investigation. FIXME
  11432. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11433. else
  11434. ld_shlibs_CXX=no
  11435. fi
  11436. ;;
  11437. chorus*)
  11438. case $cc_basename in
  11439. *)
  11440. # FIXME: insert proper C++ library support
  11441. ld_shlibs_CXX=no
  11442. ;;
  11443. esac
  11444. ;;
  11445. cygwin* | mingw* | pw32* | cegcc*)
  11446. case $GXX,$cc_basename in
  11447. ,cl* | no,cl*)
  11448. # Native MSVC
  11449. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11450. # no search path for DLLs.
  11451. hardcode_libdir_flag_spec_CXX=' '
  11452. allow_undefined_flag_CXX=unsupported
  11453. always_export_symbols_CXX=yes
  11454. file_list_spec_CXX='@'
  11455. # Tell ltmain to make .lib files, not .a files.
  11456. libext=lib
  11457. # Tell ltmain to make .dll files, not .so files.
  11458. shrext_cmds=".dll"
  11459. # FIXME: Setting linknames here is a bad hack.
  11460. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11461. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11462. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11463. else
  11464. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11465. fi~
  11466. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11467. linknames='
  11468. # The linker will not automatically build a static lib if we build a DLL.
  11469. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11470. enable_shared_with_static_runtimes_CXX=yes
  11471. # Don't use ranlib
  11472. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11473. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11474. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11475. case $lt_outputfile in
  11476. *.exe|*.EXE) ;;
  11477. *)
  11478. lt_outputfile="$lt_outputfile.exe"
  11479. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11480. ;;
  11481. esac~
  11482. func_to_tool_file "$lt_outputfile"~
  11483. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11484. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11485. $RM "$lt_outputfile.manifest";
  11486. fi'
  11487. ;;
  11488. *)
  11489. # g++
  11490. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11491. # as there is no search path for DLLs.
  11492. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11493. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11494. allow_undefined_flag_CXX=unsupported
  11495. always_export_symbols_CXX=no
  11496. enable_shared_with_static_runtimes_CXX=yes
  11497. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11498. 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'
  11499. # If the export-symbols file already is a .def file (1st line
  11500. # is EXPORTS), use it as is; otherwise, prepend...
  11501. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11502. cp $export_symbols $output_objdir/$soname.def;
  11503. else
  11504. echo EXPORTS > $output_objdir/$soname.def;
  11505. cat $export_symbols >> $output_objdir/$soname.def;
  11506. fi~
  11507. $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'
  11508. else
  11509. ld_shlibs_CXX=no
  11510. fi
  11511. ;;
  11512. esac
  11513. ;;
  11514. darwin* | rhapsody*)
  11515. archive_cmds_need_lc_CXX=no
  11516. hardcode_direct_CXX=no
  11517. hardcode_automatic_CXX=yes
  11518. hardcode_shlibpath_var_CXX=unsupported
  11519. if test "$lt_cv_ld_force_load" = "yes"; then
  11520. 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\"`'
  11521. else
  11522. whole_archive_flag_spec_CXX=''
  11523. fi
  11524. link_all_deplibs_CXX=yes
  11525. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11526. case $cc_basename in
  11527. ifort*) _lt_dar_can_shared=yes ;;
  11528. *) _lt_dar_can_shared=$GCC ;;
  11529. esac
  11530. if test "$_lt_dar_can_shared" = "yes"; then
  11531. output_verbose_link_cmd=func_echo_all
  11532. 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}"
  11533. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11534. 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}"
  11535. 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}"
  11536. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11537. 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}"
  11538. 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}"
  11539. fi
  11540. else
  11541. ld_shlibs_CXX=no
  11542. fi
  11543. ;;
  11544. dgux*)
  11545. case $cc_basename in
  11546. ec++*)
  11547. # FIXME: insert proper C++ library support
  11548. ld_shlibs_CXX=no
  11549. ;;
  11550. ghcx*)
  11551. # Green Hills C++ Compiler
  11552. # FIXME: insert proper C++ library support
  11553. ld_shlibs_CXX=no
  11554. ;;
  11555. *)
  11556. # FIXME: insert proper C++ library support
  11557. ld_shlibs_CXX=no
  11558. ;;
  11559. esac
  11560. ;;
  11561. freebsd2.*)
  11562. # C++ shared libraries reported to be fairly broken before
  11563. # switch to ELF
  11564. ld_shlibs_CXX=no
  11565. ;;
  11566. freebsd-elf*)
  11567. archive_cmds_need_lc_CXX=no
  11568. ;;
  11569. freebsd* | dragonfly*)
  11570. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11571. # conventions
  11572. ld_shlibs_CXX=yes
  11573. ;;
  11574. gnu*)
  11575. ;;
  11576. haiku*)
  11577. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11578. link_all_deplibs_CXX=yes
  11579. ;;
  11580. hpux9*)
  11581. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11582. hardcode_libdir_separator_CXX=:
  11583. export_dynamic_flag_spec_CXX='${wl}-E'
  11584. hardcode_direct_CXX=yes
  11585. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11586. # but as the default
  11587. # location of the library.
  11588. case $cc_basename in
  11589. CC*)
  11590. # FIXME: insert proper C++ library support
  11591. ld_shlibs_CXX=no
  11592. ;;
  11593. aCC*)
  11594. 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'
  11595. # Commands to make compiler produce verbose output that lists
  11596. # what "hidden" libraries, object files and flags are used when
  11597. # linking a shared library.
  11598. #
  11599. # There doesn't appear to be a way to prevent this compiler from
  11600. # explicitly linking system object files so we need to strip them
  11601. # from the output so that they don't get included in the library
  11602. # dependencies.
  11603. 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"'
  11604. ;;
  11605. *)
  11606. if test "$GXX" = yes; then
  11607. 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'
  11608. else
  11609. # FIXME: insert proper C++ library support
  11610. ld_shlibs_CXX=no
  11611. fi
  11612. ;;
  11613. esac
  11614. ;;
  11615. hpux10*|hpux11*)
  11616. if test $with_gnu_ld = no; then
  11617. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11618. hardcode_libdir_separator_CXX=:
  11619. case $host_cpu in
  11620. hppa*64*|ia64*)
  11621. ;;
  11622. *)
  11623. export_dynamic_flag_spec_CXX='${wl}-E'
  11624. ;;
  11625. esac
  11626. fi
  11627. case $host_cpu in
  11628. hppa*64*|ia64*)
  11629. hardcode_direct_CXX=no
  11630. hardcode_shlibpath_var_CXX=no
  11631. ;;
  11632. *)
  11633. hardcode_direct_CXX=yes
  11634. hardcode_direct_absolute_CXX=yes
  11635. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11636. # but as the default
  11637. # location of the library.
  11638. ;;
  11639. esac
  11640. case $cc_basename in
  11641. CC*)
  11642. # FIXME: insert proper C++ library support
  11643. ld_shlibs_CXX=no
  11644. ;;
  11645. aCC*)
  11646. case $host_cpu in
  11647. hppa*64*)
  11648. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11649. ;;
  11650. ia64*)
  11651. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11652. ;;
  11653. *)
  11654. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11655. ;;
  11656. esac
  11657. # Commands to make compiler produce verbose output that lists
  11658. # what "hidden" libraries, object files and flags are used when
  11659. # linking a shared library.
  11660. #
  11661. # There doesn't appear to be a way to prevent this compiler from
  11662. # explicitly linking system object files so we need to strip them
  11663. # from the output so that they don't get included in the library
  11664. # dependencies.
  11665. 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"'
  11666. ;;
  11667. *)
  11668. if test "$GXX" = yes; then
  11669. if test $with_gnu_ld = no; then
  11670. case $host_cpu in
  11671. hppa*64*)
  11672. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11673. ;;
  11674. ia64*)
  11675. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11676. ;;
  11677. *)
  11678. 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'
  11679. ;;
  11680. esac
  11681. fi
  11682. else
  11683. # FIXME: insert proper C++ library support
  11684. ld_shlibs_CXX=no
  11685. fi
  11686. ;;
  11687. esac
  11688. ;;
  11689. interix[3-9]*)
  11690. hardcode_direct_CXX=no
  11691. hardcode_shlibpath_var_CXX=no
  11692. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11693. export_dynamic_flag_spec_CXX='${wl}-E'
  11694. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11695. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11696. # default) and relocated if they conflict, which is a slow very memory
  11697. # consuming and fragmenting process. To avoid this, we pick a random,
  11698. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11699. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11700. 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'
  11701. 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'
  11702. ;;
  11703. irix5* | irix6*)
  11704. case $cc_basename in
  11705. CC*)
  11706. # SGI C++
  11707. 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'
  11708. # Archives containing C++ object files must be created using
  11709. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11710. # necessary to make sure instantiated templates are included
  11711. # in the archive.
  11712. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11713. ;;
  11714. *)
  11715. if test "$GXX" = yes; then
  11716. if test "$with_gnu_ld" = no; then
  11717. 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'
  11718. else
  11719. 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'
  11720. fi
  11721. fi
  11722. link_all_deplibs_CXX=yes
  11723. ;;
  11724. esac
  11725. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11726. hardcode_libdir_separator_CXX=:
  11727. inherit_rpath_CXX=yes
  11728. ;;
  11729. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11730. case $cc_basename in
  11731. KCC*)
  11732. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11733. # KCC will only create a shared library if the output file
  11734. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11735. # to its proper name (with version) after linking.
  11736. 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'
  11737. 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'
  11738. # Commands to make compiler produce verbose output that lists
  11739. # what "hidden" libraries, object files and flags are used when
  11740. # linking a shared library.
  11741. #
  11742. # There doesn't appear to be a way to prevent this compiler from
  11743. # explicitly linking system object files so we need to strip them
  11744. # from the output so that they don't get included in the library
  11745. # dependencies.
  11746. 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"'
  11747. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11748. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11749. # Archives containing C++ object files must be created using
  11750. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11751. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11752. ;;
  11753. icpc* | ecpc* )
  11754. # Intel C++
  11755. with_gnu_ld=yes
  11756. # version 8.0 and above of icpc choke on multiply defined symbols
  11757. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11758. # earlier do not add the objects themselves.
  11759. case `$CC -V 2>&1` in
  11760. *"Version 7."*)
  11761. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11762. 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'
  11763. ;;
  11764. *) # Version 8.0 or newer
  11765. tmp_idyn=
  11766. case $host_cpu in
  11767. ia64*) tmp_idyn=' -i_dynamic';;
  11768. esac
  11769. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11770. 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'
  11771. ;;
  11772. esac
  11773. archive_cmds_need_lc_CXX=no
  11774. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11775. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11776. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11777. ;;
  11778. pgCC* | pgcpp*)
  11779. # Portland Group C++ compiler
  11780. case `$CC -V` in
  11781. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11782. prelink_cmds_CXX='tpldir=Template.dir~
  11783. rm -rf $tpldir~
  11784. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11785. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11786. old_archive_cmds_CXX='tpldir=Template.dir~
  11787. rm -rf $tpldir~
  11788. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11789. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11790. $RANLIB $oldlib'
  11791. archive_cmds_CXX='tpldir=Template.dir~
  11792. rm -rf $tpldir~
  11793. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11794. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11795. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11796. rm -rf $tpldir~
  11797. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11798. $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'
  11799. ;;
  11800. *) # Version 6 and above use weak symbols
  11801. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11802. 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'
  11803. ;;
  11804. esac
  11805. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11806. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11807. 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'
  11808. ;;
  11809. cxx*)
  11810. # Compaq C++
  11811. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11812. 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'
  11813. runpath_var=LD_RUN_PATH
  11814. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11815. hardcode_libdir_separator_CXX=:
  11816. # Commands to make compiler produce verbose output that lists
  11817. # what "hidden" libraries, object files and flags are used when
  11818. # linking a shared library.
  11819. #
  11820. # There doesn't appear to be a way to prevent this compiler from
  11821. # explicitly linking system object files so we need to strip them
  11822. # from the output so that they don't get included in the library
  11823. # dependencies.
  11824. 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'
  11825. ;;
  11826. xl* | mpixl* | bgxl*)
  11827. # IBM XL 8.0 on PPC, with GNU ld
  11828. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11829. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11830. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11831. if test "x$supports_anon_versioning" = xyes; then
  11832. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11833. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11834. echo "local: *; };" >> $output_objdir/$libname.ver~
  11835. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11836. fi
  11837. ;;
  11838. *)
  11839. case `$CC -V 2>&1 | sed 5q` in
  11840. *Sun\ C*)
  11841. # Sun C++ 5.9
  11842. no_undefined_flag_CXX=' -zdefs'
  11843. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11844. 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'
  11845. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11846. 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'
  11847. compiler_needs_object_CXX=yes
  11848. # Not sure whether something based on
  11849. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11850. # would be better.
  11851. output_verbose_link_cmd='func_echo_all'
  11852. # Archives containing C++ object files must be created using
  11853. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11854. # necessary to make sure instantiated templates are included
  11855. # in the archive.
  11856. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11857. ;;
  11858. esac
  11859. ;;
  11860. esac
  11861. ;;
  11862. lynxos*)
  11863. # FIXME: insert proper C++ library support
  11864. ld_shlibs_CXX=no
  11865. ;;
  11866. m88k*)
  11867. # FIXME: insert proper C++ library support
  11868. ld_shlibs_CXX=no
  11869. ;;
  11870. mvs*)
  11871. case $cc_basename in
  11872. cxx*)
  11873. # FIXME: insert proper C++ library support
  11874. ld_shlibs_CXX=no
  11875. ;;
  11876. *)
  11877. # FIXME: insert proper C++ library support
  11878. ld_shlibs_CXX=no
  11879. ;;
  11880. esac
  11881. ;;
  11882. netbsd*)
  11883. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11884. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11885. wlarc=
  11886. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11887. hardcode_direct_CXX=yes
  11888. hardcode_shlibpath_var_CXX=no
  11889. fi
  11890. # Workaround some broken pre-1.5 toolchains
  11891. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11892. ;;
  11893. *nto* | *qnx*)
  11894. ld_shlibs_CXX=yes
  11895. ;;
  11896. openbsd2*)
  11897. # C++ shared libraries are fairly broken
  11898. ld_shlibs_CXX=no
  11899. ;;
  11900. openbsd*)
  11901. if test -f /usr/libexec/ld.so; then
  11902. hardcode_direct_CXX=yes
  11903. hardcode_shlibpath_var_CXX=no
  11904. hardcode_direct_absolute_CXX=yes
  11905. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11906. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11907. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11908. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11909. export_dynamic_flag_spec_CXX='${wl}-E'
  11910. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11911. fi
  11912. output_verbose_link_cmd=func_echo_all
  11913. else
  11914. ld_shlibs_CXX=no
  11915. fi
  11916. ;;
  11917. osf3* | osf4* | osf5*)
  11918. case $cc_basename in
  11919. KCC*)
  11920. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11921. # KCC will only create a shared library if the output file
  11922. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11923. # to its proper name (with version) after linking.
  11924. 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'
  11925. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11926. hardcode_libdir_separator_CXX=:
  11927. # Archives containing C++ object files must be created using
  11928. # the KAI C++ compiler.
  11929. case $host in
  11930. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11931. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11932. esac
  11933. ;;
  11934. RCC*)
  11935. # Rational C++ 2.4.1
  11936. # FIXME: insert proper C++ library support
  11937. ld_shlibs_CXX=no
  11938. ;;
  11939. cxx*)
  11940. case $host in
  11941. osf3*)
  11942. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11943. 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'
  11944. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11945. ;;
  11946. *)
  11947. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11948. 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'
  11949. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11950. echo "-hidden">> $lib.exp~
  11951. $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~
  11952. $RM $lib.exp'
  11953. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11954. ;;
  11955. esac
  11956. hardcode_libdir_separator_CXX=:
  11957. # Commands to make compiler produce verbose output that lists
  11958. # what "hidden" libraries, object files and flags are used when
  11959. # linking a shared library.
  11960. #
  11961. # There doesn't appear to be a way to prevent this compiler from
  11962. # explicitly linking system object files so we need to strip them
  11963. # from the output so that they don't get included in the library
  11964. # dependencies.
  11965. 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"'
  11966. ;;
  11967. *)
  11968. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11969. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11970. case $host in
  11971. osf3*)
  11972. 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'
  11973. ;;
  11974. *)
  11975. 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'
  11976. ;;
  11977. esac
  11978. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11979. hardcode_libdir_separator_CXX=:
  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. # FIXME: insert proper C++ library support
  11986. ld_shlibs_CXX=no
  11987. fi
  11988. ;;
  11989. esac
  11990. ;;
  11991. psos*)
  11992. # FIXME: insert proper C++ library support
  11993. ld_shlibs_CXX=no
  11994. ;;
  11995. sunos4*)
  11996. case $cc_basename in
  11997. CC*)
  11998. # Sun C++ 4.x
  11999. # FIXME: insert proper C++ library support
  12000. ld_shlibs_CXX=no
  12001. ;;
  12002. lcc*)
  12003. # Lucid
  12004. # FIXME: insert proper C++ library support
  12005. ld_shlibs_CXX=no
  12006. ;;
  12007. *)
  12008. # FIXME: insert proper C++ library support
  12009. ld_shlibs_CXX=no
  12010. ;;
  12011. esac
  12012. ;;
  12013. solaris*)
  12014. case $cc_basename in
  12015. CC* | sunCC*)
  12016. # Sun C++ 4.2, 5.x and Centerline C++
  12017. archive_cmds_need_lc_CXX=yes
  12018. no_undefined_flag_CXX=' -zdefs'
  12019. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12020. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12021. $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'
  12022. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12023. hardcode_shlibpath_var_CXX=no
  12024. case $host_os in
  12025. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12026. *)
  12027. # The compiler driver will combine and reorder linker options,
  12028. # but understands `-z linker_flag'.
  12029. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12030. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12031. ;;
  12032. esac
  12033. link_all_deplibs_CXX=yes
  12034. output_verbose_link_cmd='func_echo_all'
  12035. # Archives containing C++ object files must be created using
  12036. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12037. # necessary to make sure instantiated templates are included
  12038. # in the archive.
  12039. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12040. ;;
  12041. gcx*)
  12042. # Green Hills C++ Compiler
  12043. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12044. # The C++ compiler must be used to create the archive.
  12045. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12046. ;;
  12047. *)
  12048. # GNU C++ compiler with Solaris linker
  12049. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12050. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12051. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12052. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12053. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12054. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12055. # Commands to make compiler produce verbose output that lists
  12056. # what "hidden" libraries, object files and flags are used when
  12057. # linking a shared library.
  12058. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12059. else
  12060. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12061. # platform.
  12062. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12063. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12064. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12065. # Commands to make compiler produce verbose output that lists
  12066. # what "hidden" libraries, object files and flags are used when
  12067. # linking a shared library.
  12068. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12069. fi
  12070. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12071. case $host_os in
  12072. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12073. *)
  12074. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12075. ;;
  12076. esac
  12077. fi
  12078. ;;
  12079. esac
  12080. ;;
  12081. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12082. no_undefined_flag_CXX='${wl}-z,text'
  12083. archive_cmds_need_lc_CXX=no
  12084. hardcode_shlibpath_var_CXX=no
  12085. runpath_var='LD_RUN_PATH'
  12086. case $cc_basename in
  12087. CC*)
  12088. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12089. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12090. ;;
  12091. *)
  12092. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12093. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12094. ;;
  12095. esac
  12096. ;;
  12097. sysv5* | sco3.2v5* | sco5v6*)
  12098. # Note: We can NOT use -z defs as we might desire, because we do not
  12099. # link with -lc, and that would cause any symbols used from libc to
  12100. # always be unresolved, which means just about no library would
  12101. # ever link correctly. If we're not using GNU ld we use -z text
  12102. # though, which does catch some bad symbols but isn't as heavy-handed
  12103. # as -z defs.
  12104. no_undefined_flag_CXX='${wl}-z,text'
  12105. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12106. archive_cmds_need_lc_CXX=no
  12107. hardcode_shlibpath_var_CXX=no
  12108. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12109. hardcode_libdir_separator_CXX=':'
  12110. link_all_deplibs_CXX=yes
  12111. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12112. runpath_var='LD_RUN_PATH'
  12113. case $cc_basename in
  12114. CC*)
  12115. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12116. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12117. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12118. '"$old_archive_cmds_CXX"
  12119. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12120. '"$reload_cmds_CXX"
  12121. ;;
  12122. *)
  12123. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12124. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12125. ;;
  12126. esac
  12127. ;;
  12128. tandem*)
  12129. case $cc_basename in
  12130. NCC*)
  12131. # NonStop-UX NCC 3.20
  12132. # FIXME: insert proper C++ library support
  12133. ld_shlibs_CXX=no
  12134. ;;
  12135. *)
  12136. # FIXME: insert proper C++ library support
  12137. ld_shlibs_CXX=no
  12138. ;;
  12139. esac
  12140. ;;
  12141. vxworks*)
  12142. # FIXME: insert proper C++ library support
  12143. ld_shlibs_CXX=no
  12144. ;;
  12145. *)
  12146. # FIXME: insert proper C++ library support
  12147. ld_shlibs_CXX=no
  12148. ;;
  12149. esac
  12150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12151. $as_echo "$ld_shlibs_CXX" >&6; }
  12152. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12153. GCC_CXX="$GXX"
  12154. LD_CXX="$LD"
  12155. ## CAVEAT EMPTOR:
  12156. ## There is no encapsulation within the following macros, do not change
  12157. ## the running order or otherwise move them around unless you know exactly
  12158. ## what you are doing...
  12159. # Dependencies to place before and after the object being linked:
  12160. predep_objects_CXX=
  12161. postdep_objects_CXX=
  12162. predeps_CXX=
  12163. postdeps_CXX=
  12164. compiler_lib_search_path_CXX=
  12165. cat > conftest.$ac_ext <<_LT_EOF
  12166. class Foo
  12167. {
  12168. public:
  12169. Foo (void) { a = 0; }
  12170. private:
  12171. int a;
  12172. };
  12173. _LT_EOF
  12174. _lt_libdeps_save_CFLAGS=$CFLAGS
  12175. case "$CC $CFLAGS " in #(
  12176. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12177. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12178. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12179. esac
  12180. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12181. (eval $ac_compile) 2>&5
  12182. ac_status=$?
  12183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12184. test $ac_status = 0; }; then
  12185. # Parse the compiler output and extract the necessary
  12186. # objects, libraries and library flags.
  12187. # Sentinel used to keep track of whether or not we are before
  12188. # the conftest object file.
  12189. pre_test_object_deps_done=no
  12190. for p in `eval "$output_verbose_link_cmd"`; do
  12191. case ${prev}${p} in
  12192. -L* | -R* | -l*)
  12193. # Some compilers place space between "-{L,R}" and the path.
  12194. # Remove the space.
  12195. if test $p = "-L" ||
  12196. test $p = "-R"; then
  12197. prev=$p
  12198. continue
  12199. fi
  12200. # Expand the sysroot to ease extracting the directories later.
  12201. if test -z "$prev"; then
  12202. case $p in
  12203. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12204. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12205. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12206. esac
  12207. fi
  12208. case $p in
  12209. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12210. esac
  12211. if test "$pre_test_object_deps_done" = no; then
  12212. case ${prev} in
  12213. -L | -R)
  12214. # Internal compiler library paths should come after those
  12215. # provided the user. The postdeps already come after the
  12216. # user supplied libs so there is no need to process them.
  12217. if test -z "$compiler_lib_search_path_CXX"; then
  12218. compiler_lib_search_path_CXX="${prev}${p}"
  12219. else
  12220. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12221. fi
  12222. ;;
  12223. # The "-l" case would never come before the object being
  12224. # linked, so don't bother handling this case.
  12225. esac
  12226. else
  12227. if test -z "$postdeps_CXX"; then
  12228. postdeps_CXX="${prev}${p}"
  12229. else
  12230. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12231. fi
  12232. fi
  12233. prev=
  12234. ;;
  12235. *.lto.$objext) ;; # Ignore GCC LTO objects
  12236. *.$objext)
  12237. # This assumes that the test object file only shows up
  12238. # once in the compiler output.
  12239. if test "$p" = "conftest.$objext"; then
  12240. pre_test_object_deps_done=yes
  12241. continue
  12242. fi
  12243. if test "$pre_test_object_deps_done" = no; then
  12244. if test -z "$predep_objects_CXX"; then
  12245. predep_objects_CXX="$p"
  12246. else
  12247. predep_objects_CXX="$predep_objects_CXX $p"
  12248. fi
  12249. else
  12250. if test -z "$postdep_objects_CXX"; then
  12251. postdep_objects_CXX="$p"
  12252. else
  12253. postdep_objects_CXX="$postdep_objects_CXX $p"
  12254. fi
  12255. fi
  12256. ;;
  12257. *) ;; # Ignore the rest.
  12258. esac
  12259. done
  12260. # Clean up.
  12261. rm -f a.out a.exe
  12262. else
  12263. echo "libtool.m4: error: problem compiling CXX test program"
  12264. fi
  12265. $RM -f confest.$objext
  12266. CFLAGS=$_lt_libdeps_save_CFLAGS
  12267. # PORTME: override above test on systems where it is broken
  12268. case $host_os in
  12269. interix[3-9]*)
  12270. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12271. # hack all around it, let's just trust "g++" to DTRT.
  12272. predep_objects_CXX=
  12273. postdep_objects_CXX=
  12274. postdeps_CXX=
  12275. ;;
  12276. linux*)
  12277. case `$CC -V 2>&1 | sed 5q` in
  12278. *Sun\ C*)
  12279. # Sun C++ 5.9
  12280. # The more standards-conforming stlport4 library is
  12281. # incompatible with the Cstd library. Avoid specifying
  12282. # it if it's in CXXFLAGS. Ignore libCrun as
  12283. # -library=stlport4 depends on it.
  12284. case " $CXX $CXXFLAGS " in
  12285. *" -library=stlport4 "*)
  12286. solaris_use_stlport4=yes
  12287. ;;
  12288. esac
  12289. if test "$solaris_use_stlport4" != yes; then
  12290. postdeps_CXX='-library=Cstd -library=Crun'
  12291. fi
  12292. ;;
  12293. esac
  12294. ;;
  12295. solaris*)
  12296. case $cc_basename in
  12297. CC* | sunCC*)
  12298. # The more standards-conforming stlport4 library is
  12299. # incompatible with the Cstd library. Avoid specifying
  12300. # it if it's in CXXFLAGS. Ignore libCrun as
  12301. # -library=stlport4 depends on it.
  12302. case " $CXX $CXXFLAGS " in
  12303. *" -library=stlport4 "*)
  12304. solaris_use_stlport4=yes
  12305. ;;
  12306. esac
  12307. # Adding this requires a known-good setup of shared libraries for
  12308. # Sun compiler versions before 5.6, else PIC objects from an old
  12309. # archive will be linked into the output, leading to subtle bugs.
  12310. if test "$solaris_use_stlport4" != yes; then
  12311. postdeps_CXX='-library=Cstd -library=Crun'
  12312. fi
  12313. ;;
  12314. esac
  12315. ;;
  12316. esac
  12317. case " $postdeps_CXX " in
  12318. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12319. esac
  12320. compiler_lib_search_dirs_CXX=
  12321. if test -n "${compiler_lib_search_path_CXX}"; then
  12322. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12323. fi
  12324. lt_prog_compiler_wl_CXX=
  12325. lt_prog_compiler_pic_CXX=
  12326. lt_prog_compiler_static_CXX=
  12327. # C++ specific cases for pic, static, wl, etc.
  12328. if test "$GXX" = yes; then
  12329. lt_prog_compiler_wl_CXX='-Wl,'
  12330. lt_prog_compiler_static_CXX='-static'
  12331. case $host_os in
  12332. aix*)
  12333. # All AIX code is PIC.
  12334. if test "$host_cpu" = ia64; then
  12335. # AIX 5 now supports IA64 processor
  12336. lt_prog_compiler_static_CXX='-Bstatic'
  12337. fi
  12338. ;;
  12339. amigaos*)
  12340. case $host_cpu in
  12341. powerpc)
  12342. # see comment about AmigaOS4 .so support
  12343. lt_prog_compiler_pic_CXX='-fPIC'
  12344. ;;
  12345. m68k)
  12346. # FIXME: we need at least 68020 code to build shared libraries, but
  12347. # adding the `-m68020' flag to GCC prevents building anything better,
  12348. # like `-m68040'.
  12349. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12350. ;;
  12351. esac
  12352. ;;
  12353. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12354. # PIC is the default for these OSes.
  12355. ;;
  12356. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12357. # This hack is so that the source file can tell whether it is being
  12358. # built for inclusion in a dll (and should export symbols for example).
  12359. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12360. # (--disable-auto-import) libraries
  12361. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12362. ;;
  12363. darwin* | rhapsody*)
  12364. # PIC is the default on this platform
  12365. # Common symbols not allowed in MH_DYLIB files
  12366. lt_prog_compiler_pic_CXX='-fno-common'
  12367. ;;
  12368. *djgpp*)
  12369. # DJGPP does not support shared libraries at all
  12370. lt_prog_compiler_pic_CXX=
  12371. ;;
  12372. haiku*)
  12373. # PIC is the default for Haiku.
  12374. # The "-static" flag exists, but is broken.
  12375. lt_prog_compiler_static_CXX=
  12376. ;;
  12377. interix[3-9]*)
  12378. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12379. # Instead, we relocate shared libraries at runtime.
  12380. ;;
  12381. sysv4*MP*)
  12382. if test -d /usr/nec; then
  12383. lt_prog_compiler_pic_CXX=-Kconform_pic
  12384. fi
  12385. ;;
  12386. hpux*)
  12387. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12388. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12389. # sets the default TLS model and affects inlining.
  12390. case $host_cpu in
  12391. hppa*64*)
  12392. ;;
  12393. *)
  12394. lt_prog_compiler_pic_CXX='-fPIC'
  12395. ;;
  12396. esac
  12397. ;;
  12398. *qnx* | *nto*)
  12399. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12400. # it will coredump.
  12401. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12402. ;;
  12403. *)
  12404. lt_prog_compiler_pic_CXX='-fPIC'
  12405. ;;
  12406. esac
  12407. else
  12408. case $host_os in
  12409. aix[4-9]*)
  12410. # All AIX code is PIC.
  12411. if test "$host_cpu" = ia64; then
  12412. # AIX 5 now supports IA64 processor
  12413. lt_prog_compiler_static_CXX='-Bstatic'
  12414. else
  12415. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12416. fi
  12417. ;;
  12418. chorus*)
  12419. case $cc_basename in
  12420. cxch68*)
  12421. # Green Hills C++ Compiler
  12422. # _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"
  12423. ;;
  12424. esac
  12425. ;;
  12426. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12427. # This hack is so that the source file can tell whether it is being
  12428. # built for inclusion in a dll (and should export symbols for example).
  12429. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12430. ;;
  12431. dgux*)
  12432. case $cc_basename in
  12433. ec++*)
  12434. lt_prog_compiler_pic_CXX='-KPIC'
  12435. ;;
  12436. ghcx*)
  12437. # Green Hills C++ Compiler
  12438. lt_prog_compiler_pic_CXX='-pic'
  12439. ;;
  12440. *)
  12441. ;;
  12442. esac
  12443. ;;
  12444. freebsd* | dragonfly*)
  12445. # FreeBSD uses GNU C++
  12446. ;;
  12447. hpux9* | hpux10* | hpux11*)
  12448. case $cc_basename in
  12449. CC*)
  12450. lt_prog_compiler_wl_CXX='-Wl,'
  12451. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12452. if test "$host_cpu" != ia64; then
  12453. lt_prog_compiler_pic_CXX='+Z'
  12454. fi
  12455. ;;
  12456. aCC*)
  12457. lt_prog_compiler_wl_CXX='-Wl,'
  12458. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12459. case $host_cpu in
  12460. hppa*64*|ia64*)
  12461. # +Z the default
  12462. ;;
  12463. *)
  12464. lt_prog_compiler_pic_CXX='+Z'
  12465. ;;
  12466. esac
  12467. ;;
  12468. *)
  12469. ;;
  12470. esac
  12471. ;;
  12472. interix*)
  12473. # This is c89, which is MS Visual C++ (no shared libs)
  12474. # Anyone wants to do a port?
  12475. ;;
  12476. irix5* | irix6* | nonstopux*)
  12477. case $cc_basename in
  12478. CC*)
  12479. lt_prog_compiler_wl_CXX='-Wl,'
  12480. lt_prog_compiler_static_CXX='-non_shared'
  12481. # CC pic flag -KPIC is the default.
  12482. ;;
  12483. *)
  12484. ;;
  12485. esac
  12486. ;;
  12487. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12488. case $cc_basename in
  12489. KCC*)
  12490. # KAI C++ Compiler
  12491. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12492. lt_prog_compiler_pic_CXX='-fPIC'
  12493. ;;
  12494. ecpc* )
  12495. # old Intel C++ for x86_64 which still supported -KPIC.
  12496. lt_prog_compiler_wl_CXX='-Wl,'
  12497. lt_prog_compiler_pic_CXX='-KPIC'
  12498. lt_prog_compiler_static_CXX='-static'
  12499. ;;
  12500. icpc* )
  12501. # Intel C++, used to be incompatible with GCC.
  12502. # ICC 10 doesn't accept -KPIC any more.
  12503. lt_prog_compiler_wl_CXX='-Wl,'
  12504. lt_prog_compiler_pic_CXX='-fPIC'
  12505. lt_prog_compiler_static_CXX='-static'
  12506. ;;
  12507. pgCC* | pgcpp*)
  12508. # Portland Group C++ compiler
  12509. lt_prog_compiler_wl_CXX='-Wl,'
  12510. lt_prog_compiler_pic_CXX='-fpic'
  12511. lt_prog_compiler_static_CXX='-Bstatic'
  12512. ;;
  12513. cxx*)
  12514. # Compaq C++
  12515. # Make sure the PIC flag is empty. It appears that all Alpha
  12516. # Linux and Compaq Tru64 Unix objects are PIC.
  12517. lt_prog_compiler_pic_CXX=
  12518. lt_prog_compiler_static_CXX='-non_shared'
  12519. ;;
  12520. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12521. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12522. lt_prog_compiler_wl_CXX='-Wl,'
  12523. lt_prog_compiler_pic_CXX='-qpic'
  12524. lt_prog_compiler_static_CXX='-qstaticlink'
  12525. ;;
  12526. *)
  12527. case `$CC -V 2>&1 | sed 5q` in
  12528. *Sun\ C*)
  12529. # Sun C++ 5.9
  12530. lt_prog_compiler_pic_CXX='-KPIC'
  12531. lt_prog_compiler_static_CXX='-Bstatic'
  12532. lt_prog_compiler_wl_CXX='-Qoption ld '
  12533. ;;
  12534. esac
  12535. ;;
  12536. esac
  12537. ;;
  12538. lynxos*)
  12539. ;;
  12540. m88k*)
  12541. ;;
  12542. mvs*)
  12543. case $cc_basename in
  12544. cxx*)
  12545. lt_prog_compiler_pic_CXX='-W c,exportall'
  12546. ;;
  12547. *)
  12548. ;;
  12549. esac
  12550. ;;
  12551. netbsd*)
  12552. ;;
  12553. *qnx* | *nto*)
  12554. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12555. # it will coredump.
  12556. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12557. ;;
  12558. osf3* | osf4* | osf5*)
  12559. case $cc_basename in
  12560. KCC*)
  12561. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12562. ;;
  12563. RCC*)
  12564. # Rational C++ 2.4.1
  12565. lt_prog_compiler_pic_CXX='-pic'
  12566. ;;
  12567. cxx*)
  12568. # Digital/Compaq C++
  12569. lt_prog_compiler_wl_CXX='-Wl,'
  12570. # Make sure the PIC flag is empty. It appears that all Alpha
  12571. # Linux and Compaq Tru64 Unix objects are PIC.
  12572. lt_prog_compiler_pic_CXX=
  12573. lt_prog_compiler_static_CXX='-non_shared'
  12574. ;;
  12575. *)
  12576. ;;
  12577. esac
  12578. ;;
  12579. psos*)
  12580. ;;
  12581. solaris*)
  12582. case $cc_basename in
  12583. CC* | sunCC*)
  12584. # Sun C++ 4.2, 5.x and Centerline C++
  12585. lt_prog_compiler_pic_CXX='-KPIC'
  12586. lt_prog_compiler_static_CXX='-Bstatic'
  12587. lt_prog_compiler_wl_CXX='-Qoption ld '
  12588. ;;
  12589. gcx*)
  12590. # Green Hills C++ Compiler
  12591. lt_prog_compiler_pic_CXX='-PIC'
  12592. ;;
  12593. *)
  12594. ;;
  12595. esac
  12596. ;;
  12597. sunos4*)
  12598. case $cc_basename in
  12599. CC*)
  12600. # Sun C++ 4.x
  12601. lt_prog_compiler_pic_CXX='-pic'
  12602. lt_prog_compiler_static_CXX='-Bstatic'
  12603. ;;
  12604. lcc*)
  12605. # Lucid
  12606. lt_prog_compiler_pic_CXX='-pic'
  12607. ;;
  12608. *)
  12609. ;;
  12610. esac
  12611. ;;
  12612. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12613. case $cc_basename in
  12614. CC*)
  12615. lt_prog_compiler_wl_CXX='-Wl,'
  12616. lt_prog_compiler_pic_CXX='-KPIC'
  12617. lt_prog_compiler_static_CXX='-Bstatic'
  12618. ;;
  12619. esac
  12620. ;;
  12621. tandem*)
  12622. case $cc_basename in
  12623. NCC*)
  12624. # NonStop-UX NCC 3.20
  12625. lt_prog_compiler_pic_CXX='-KPIC'
  12626. ;;
  12627. *)
  12628. ;;
  12629. esac
  12630. ;;
  12631. vxworks*)
  12632. ;;
  12633. *)
  12634. lt_prog_compiler_can_build_shared_CXX=no
  12635. ;;
  12636. esac
  12637. fi
  12638. case $host_os in
  12639. # For platforms which do not support PIC, -DPIC is meaningless:
  12640. *djgpp*)
  12641. lt_prog_compiler_pic_CXX=
  12642. ;;
  12643. *)
  12644. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12645. ;;
  12646. esac
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12648. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12649. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12650. $as_echo_n "(cached) " >&6
  12651. else
  12652. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12653. fi
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12655. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12656. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12657. #
  12658. # Check to make sure the PIC flag actually works.
  12659. #
  12660. if test -n "$lt_prog_compiler_pic_CXX"; then
  12661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12662. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12663. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12664. $as_echo_n "(cached) " >&6
  12665. else
  12666. lt_cv_prog_compiler_pic_works_CXX=no
  12667. ac_outfile=conftest.$ac_objext
  12668. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12669. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12670. # Insert the option either (1) after the last *FLAGS variable, or
  12671. # (2) before a word containing "conftest.", or (3) at the end.
  12672. # Note that $ac_compile itself does not contain backslashes and begins
  12673. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12674. # The option is referenced via a variable to avoid confusing sed.
  12675. lt_compile=`echo "$ac_compile" | $SED \
  12676. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12677. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12678. -e 's:$: $lt_compiler_flag:'`
  12679. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12680. (eval "$lt_compile" 2>conftest.err)
  12681. ac_status=$?
  12682. cat conftest.err >&5
  12683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12684. if (exit $ac_status) && test -s "$ac_outfile"; then
  12685. # The compiler can only warn and ignore the option if not recognized
  12686. # So say no if there are warnings other than the usual output.
  12687. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12688. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12689. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12690. lt_cv_prog_compiler_pic_works_CXX=yes
  12691. fi
  12692. fi
  12693. $RM conftest*
  12694. fi
  12695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12696. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12697. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12698. case $lt_prog_compiler_pic_CXX in
  12699. "" | " "*) ;;
  12700. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12701. esac
  12702. else
  12703. lt_prog_compiler_pic_CXX=
  12704. lt_prog_compiler_can_build_shared_CXX=no
  12705. fi
  12706. fi
  12707. #
  12708. # Check to make sure the static flag actually works.
  12709. #
  12710. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12712. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12713. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12714. $as_echo_n "(cached) " >&6
  12715. else
  12716. lt_cv_prog_compiler_static_works_CXX=no
  12717. save_LDFLAGS="$LDFLAGS"
  12718. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12719. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12720. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12721. # The linker can only warn and ignore the option if not recognized
  12722. # So say no if there are warnings
  12723. if test -s conftest.err; then
  12724. # Append any errors to the config.log.
  12725. cat conftest.err 1>&5
  12726. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12727. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12728. if diff conftest.exp conftest.er2 >/dev/null; then
  12729. lt_cv_prog_compiler_static_works_CXX=yes
  12730. fi
  12731. else
  12732. lt_cv_prog_compiler_static_works_CXX=yes
  12733. fi
  12734. fi
  12735. $RM -r conftest*
  12736. LDFLAGS="$save_LDFLAGS"
  12737. fi
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12739. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12740. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12741. :
  12742. else
  12743. lt_prog_compiler_static_CXX=
  12744. fi
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12746. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12747. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12748. $as_echo_n "(cached) " >&6
  12749. else
  12750. lt_cv_prog_compiler_c_o_CXX=no
  12751. $RM -r conftest 2>/dev/null
  12752. mkdir conftest
  12753. cd conftest
  12754. mkdir out
  12755. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12756. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12757. # Insert the option either (1) after the last *FLAGS variable, or
  12758. # (2) before a word containing "conftest.", or (3) at the end.
  12759. # Note that $ac_compile itself does not contain backslashes and begins
  12760. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12761. lt_compile=`echo "$ac_compile" | $SED \
  12762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12764. -e 's:$: $lt_compiler_flag:'`
  12765. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12766. (eval "$lt_compile" 2>out/conftest.err)
  12767. ac_status=$?
  12768. cat out/conftest.err >&5
  12769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12770. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12771. then
  12772. # The compiler can only warn and ignore the option if not recognized
  12773. # So say no if there are warnings
  12774. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12775. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12776. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12777. lt_cv_prog_compiler_c_o_CXX=yes
  12778. fi
  12779. fi
  12780. chmod u+w . 2>&5
  12781. $RM conftest*
  12782. # SGI C++ compiler will create directory out/ii_files/ for
  12783. # template instantiation
  12784. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12785. $RM out/* && rmdir out
  12786. cd ..
  12787. $RM -r conftest
  12788. $RM conftest*
  12789. fi
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12791. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12793. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12794. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12795. $as_echo_n "(cached) " >&6
  12796. else
  12797. lt_cv_prog_compiler_c_o_CXX=no
  12798. $RM -r conftest 2>/dev/null
  12799. mkdir conftest
  12800. cd conftest
  12801. mkdir out
  12802. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12803. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12804. # Insert the option either (1) after the last *FLAGS variable, or
  12805. # (2) before a word containing "conftest.", or (3) at the end.
  12806. # Note that $ac_compile itself does not contain backslashes and begins
  12807. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12808. lt_compile=`echo "$ac_compile" | $SED \
  12809. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12810. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12811. -e 's:$: $lt_compiler_flag:'`
  12812. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12813. (eval "$lt_compile" 2>out/conftest.err)
  12814. ac_status=$?
  12815. cat out/conftest.err >&5
  12816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12817. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12818. then
  12819. # The compiler can only warn and ignore the option if not recognized
  12820. # So say no if there are warnings
  12821. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12822. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12823. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12824. lt_cv_prog_compiler_c_o_CXX=yes
  12825. fi
  12826. fi
  12827. chmod u+w . 2>&5
  12828. $RM conftest*
  12829. # SGI C++ compiler will create directory out/ii_files/ for
  12830. # template instantiation
  12831. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12832. $RM out/* && rmdir out
  12833. cd ..
  12834. $RM -r conftest
  12835. $RM conftest*
  12836. fi
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12838. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12839. hard_links="nottested"
  12840. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12841. # do not overwrite the value of need_locks provided by the user
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12843. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12844. hard_links=yes
  12845. $RM conftest*
  12846. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12847. touch conftest.a
  12848. ln conftest.a conftest.b 2>&5 || hard_links=no
  12849. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12851. $as_echo "$hard_links" >&6; }
  12852. if test "$hard_links" = no; then
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12854. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12855. need_locks=warn
  12856. fi
  12857. else
  12858. need_locks=no
  12859. fi
  12860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12861. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12862. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12863. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12864. case $host_os in
  12865. aix[4-9]*)
  12866. # If we're using GNU nm, then we don't want the "-C" option.
  12867. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12868. # Also, AIX nm treats weak defined symbols like other global defined
  12869. # symbols, whereas GNU nm marks them as "W".
  12870. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12871. 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'
  12872. else
  12873. 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'
  12874. fi
  12875. ;;
  12876. pw32*)
  12877. export_symbols_cmds_CXX="$ltdll_cmds"
  12878. ;;
  12879. cygwin* | mingw* | cegcc*)
  12880. case $cc_basename in
  12881. cl*)
  12882. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12883. ;;
  12884. *)
  12885. 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'
  12886. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12887. ;;
  12888. esac
  12889. ;;
  12890. *)
  12891. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12892. ;;
  12893. esac
  12894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12895. $as_echo "$ld_shlibs_CXX" >&6; }
  12896. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12897. with_gnu_ld_CXX=$with_gnu_ld
  12898. #
  12899. # Do we need to explicitly link libc?
  12900. #
  12901. case "x$archive_cmds_need_lc_CXX" in
  12902. x|xyes)
  12903. # Assume -lc should be added
  12904. archive_cmds_need_lc_CXX=yes
  12905. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12906. case $archive_cmds_CXX in
  12907. *'~'*)
  12908. # FIXME: we may have to deal with multi-command sequences.
  12909. ;;
  12910. '$CC '*)
  12911. # Test whether the compiler implicitly links with -lc since on some
  12912. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12913. # to ld, don't add -lc before -lgcc.
  12914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12915. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12916. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12917. $as_echo_n "(cached) " >&6
  12918. else
  12919. $RM conftest*
  12920. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12921. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12922. (eval $ac_compile) 2>&5
  12923. ac_status=$?
  12924. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12925. test $ac_status = 0; } 2>conftest.err; then
  12926. soname=conftest
  12927. lib=conftest
  12928. libobjs=conftest.$ac_objext
  12929. deplibs=
  12930. wl=$lt_prog_compiler_wl_CXX
  12931. pic_flag=$lt_prog_compiler_pic_CXX
  12932. compiler_flags=-v
  12933. linker_flags=-v
  12934. verstring=
  12935. output_objdir=.
  12936. libname=conftest
  12937. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12938. allow_undefined_flag_CXX=
  12939. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12940. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12941. ac_status=$?
  12942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12943. test $ac_status = 0; }
  12944. then
  12945. lt_cv_archive_cmds_need_lc_CXX=no
  12946. else
  12947. lt_cv_archive_cmds_need_lc_CXX=yes
  12948. fi
  12949. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12950. else
  12951. cat conftest.err 1>&5
  12952. fi
  12953. $RM conftest*
  12954. fi
  12955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12956. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12957. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12958. ;;
  12959. esac
  12960. fi
  12961. ;;
  12962. esac
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12964. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12965. library_names_spec=
  12966. libname_spec='lib$name'
  12967. soname_spec=
  12968. shrext_cmds=".so"
  12969. postinstall_cmds=
  12970. postuninstall_cmds=
  12971. finish_cmds=
  12972. finish_eval=
  12973. shlibpath_var=
  12974. shlibpath_overrides_runpath=unknown
  12975. version_type=none
  12976. dynamic_linker="$host_os ld.so"
  12977. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12978. need_lib_prefix=unknown
  12979. hardcode_into_libs=no
  12980. # when you set need_version to no, make sure it does not cause -set_version
  12981. # flags to be left without arguments
  12982. need_version=unknown
  12983. case $host_os in
  12984. aix3*)
  12985. version_type=linux # correct to gnu/linux during the next big refactor
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12987. shlibpath_var=LIBPATH
  12988. # AIX 3 has no versioning support, so we append a major version to the name.
  12989. soname_spec='${libname}${release}${shared_ext}$major'
  12990. ;;
  12991. aix[4-9]*)
  12992. version_type=linux # correct to gnu/linux during the next big refactor
  12993. need_lib_prefix=no
  12994. need_version=no
  12995. hardcode_into_libs=yes
  12996. if test "$host_cpu" = ia64; then
  12997. # AIX 5 supports IA64
  12998. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12999. shlibpath_var=LD_LIBRARY_PATH
  13000. else
  13001. # With GCC up to 2.95.x, collect2 would create an import file
  13002. # for dependence libraries. The import file would start with
  13003. # the line `#! .'. This would cause the generated library to
  13004. # depend on `.', always an invalid library. This was fixed in
  13005. # development snapshots of GCC prior to 3.0.
  13006. case $host_os in
  13007. aix4 | aix4.[01] | aix4.[01].*)
  13008. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13009. echo ' yes '
  13010. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13011. :
  13012. else
  13013. can_build_shared=no
  13014. fi
  13015. ;;
  13016. esac
  13017. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13018. # soname into executable. Probably we can add versioning support to
  13019. # collect2, so additional links can be useful in future.
  13020. if test "$aix_use_runtimelinking" = yes; then
  13021. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13022. # instead of lib<name>.a to let people know that these are not
  13023. # typical AIX shared libraries.
  13024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13025. else
  13026. # We preserve .a as extension for shared libraries through AIX4.2
  13027. # and later when we are not doing run time linking.
  13028. library_names_spec='${libname}${release}.a $libname.a'
  13029. soname_spec='${libname}${release}${shared_ext}$major'
  13030. fi
  13031. shlibpath_var=LIBPATH
  13032. fi
  13033. ;;
  13034. amigaos*)
  13035. case $host_cpu in
  13036. powerpc)
  13037. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13038. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13040. ;;
  13041. m68k)
  13042. library_names_spec='$libname.ixlibrary $libname.a'
  13043. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13044. 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'
  13045. ;;
  13046. esac
  13047. ;;
  13048. beos*)
  13049. library_names_spec='${libname}${shared_ext}'
  13050. dynamic_linker="$host_os ld.so"
  13051. shlibpath_var=LIBRARY_PATH
  13052. ;;
  13053. bsdi[45]*)
  13054. version_type=linux # correct to gnu/linux during the next big refactor
  13055. need_version=no
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13057. soname_spec='${libname}${release}${shared_ext}$major'
  13058. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13059. shlibpath_var=LD_LIBRARY_PATH
  13060. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13061. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13062. # the default ld.so.conf also contains /usr/contrib/lib and
  13063. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13064. # libtool to hard-code these into programs
  13065. ;;
  13066. cygwin* | mingw* | pw32* | cegcc*)
  13067. version_type=windows
  13068. shrext_cmds=".dll"
  13069. need_version=no
  13070. need_lib_prefix=no
  13071. case $GCC,$cc_basename in
  13072. yes,*)
  13073. # gcc
  13074. library_names_spec='$libname.dll.a'
  13075. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13076. postinstall_cmds='base_file=`basename \${file}`~
  13077. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13078. dldir=$destdir/`dirname \$dlpath`~
  13079. test -d \$dldir || mkdir -p \$dldir~
  13080. $install_prog $dir/$dlname \$dldir/$dlname~
  13081. chmod a+x \$dldir/$dlname~
  13082. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13083. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13084. fi'
  13085. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13086. dlpath=$dir/\$dldll~
  13087. $RM \$dlpath'
  13088. shlibpath_overrides_runpath=yes
  13089. case $host_os in
  13090. cygwin*)
  13091. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13092. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13093. ;;
  13094. mingw* | cegcc*)
  13095. # MinGW DLLs use traditional 'lib' prefix
  13096. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13097. ;;
  13098. pw32*)
  13099. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13100. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13101. ;;
  13102. esac
  13103. dynamic_linker='Win32 ld.exe'
  13104. ;;
  13105. *,cl*)
  13106. # Native MSVC
  13107. libname_spec='$name'
  13108. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13109. library_names_spec='${libname}.dll.lib'
  13110. case $build_os in
  13111. mingw*)
  13112. sys_lib_search_path_spec=
  13113. lt_save_ifs=$IFS
  13114. IFS=';'
  13115. for lt_path in $LIB
  13116. do
  13117. IFS=$lt_save_ifs
  13118. # Let DOS variable expansion print the short 8.3 style file name.
  13119. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13120. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13121. done
  13122. IFS=$lt_save_ifs
  13123. # Convert to MSYS style.
  13124. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13125. ;;
  13126. cygwin*)
  13127. # Convert to unix form, then to dos form, then back to unix form
  13128. # but this time dos style (no spaces!) so that the unix form looks
  13129. # like /cygdrive/c/PROGRA~1:/cygdr...
  13130. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13131. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13132. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13133. ;;
  13134. *)
  13135. sys_lib_search_path_spec="$LIB"
  13136. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13137. # It is most probably a Windows format PATH.
  13138. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13139. else
  13140. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13141. fi
  13142. # FIXME: find the short name or the path components, as spaces are
  13143. # common. (e.g. "Program Files" -> "PROGRA~1")
  13144. ;;
  13145. esac
  13146. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13147. postinstall_cmds='base_file=`basename \${file}`~
  13148. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13149. dldir=$destdir/`dirname \$dlpath`~
  13150. test -d \$dldir || mkdir -p \$dldir~
  13151. $install_prog $dir/$dlname \$dldir/$dlname'
  13152. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13153. dlpath=$dir/\$dldll~
  13154. $RM \$dlpath'
  13155. shlibpath_overrides_runpath=yes
  13156. dynamic_linker='Win32 link.exe'
  13157. ;;
  13158. *)
  13159. # Assume MSVC wrapper
  13160. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13161. dynamic_linker='Win32 ld.exe'
  13162. ;;
  13163. esac
  13164. # FIXME: first we should search . and the directory the executable is in
  13165. shlibpath_var=PATH
  13166. ;;
  13167. darwin* | rhapsody*)
  13168. dynamic_linker="$host_os dyld"
  13169. version_type=darwin
  13170. need_lib_prefix=no
  13171. need_version=no
  13172. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13173. soname_spec='${libname}${release}${major}$shared_ext'
  13174. shlibpath_overrides_runpath=yes
  13175. shlibpath_var=DYLD_LIBRARY_PATH
  13176. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13177. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13178. ;;
  13179. dgux*)
  13180. version_type=linux # correct to gnu/linux during the next big refactor
  13181. need_lib_prefix=no
  13182. need_version=no
  13183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13184. soname_spec='${libname}${release}${shared_ext}$major'
  13185. shlibpath_var=LD_LIBRARY_PATH
  13186. ;;
  13187. freebsd* | dragonfly*)
  13188. # DragonFly does not have aout. When/if they implement a new
  13189. # versioning mechanism, adjust this.
  13190. if test -x /usr/bin/objformat; then
  13191. objformat=`/usr/bin/objformat`
  13192. else
  13193. case $host_os in
  13194. freebsd[23].*) objformat=aout ;;
  13195. *) objformat=elf ;;
  13196. esac
  13197. fi
  13198. version_type=freebsd-$objformat
  13199. case $version_type in
  13200. freebsd-elf*)
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13202. need_version=no
  13203. need_lib_prefix=no
  13204. ;;
  13205. freebsd-*)
  13206. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13207. need_version=yes
  13208. ;;
  13209. esac
  13210. shlibpath_var=LD_LIBRARY_PATH
  13211. case $host_os in
  13212. freebsd2.*)
  13213. shlibpath_overrides_runpath=yes
  13214. ;;
  13215. freebsd3.[01]* | freebsdelf3.[01]*)
  13216. shlibpath_overrides_runpath=yes
  13217. hardcode_into_libs=yes
  13218. ;;
  13219. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13220. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13221. shlibpath_overrides_runpath=no
  13222. hardcode_into_libs=yes
  13223. ;;
  13224. *) # from 4.6 on, and DragonFly
  13225. shlibpath_overrides_runpath=yes
  13226. hardcode_into_libs=yes
  13227. ;;
  13228. esac
  13229. ;;
  13230. gnu*)
  13231. version_type=linux # correct to gnu/linux during the next big refactor
  13232. need_lib_prefix=no
  13233. need_version=no
  13234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13235. soname_spec='${libname}${release}${shared_ext}$major'
  13236. shlibpath_var=LD_LIBRARY_PATH
  13237. shlibpath_overrides_runpath=no
  13238. hardcode_into_libs=yes
  13239. ;;
  13240. haiku*)
  13241. version_type=linux # correct to gnu/linux during the next big refactor
  13242. need_lib_prefix=no
  13243. need_version=no
  13244. dynamic_linker="$host_os runtime_loader"
  13245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13246. soname_spec='${libname}${release}${shared_ext}$major'
  13247. shlibpath_var=LIBRARY_PATH
  13248. shlibpath_overrides_runpath=yes
  13249. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13250. hardcode_into_libs=yes
  13251. ;;
  13252. hpux9* | hpux10* | hpux11*)
  13253. # Give a soname corresponding to the major version so that dld.sl refuses to
  13254. # link against other versions.
  13255. version_type=sunos
  13256. need_lib_prefix=no
  13257. need_version=no
  13258. case $host_cpu in
  13259. ia64*)
  13260. shrext_cmds='.so'
  13261. hardcode_into_libs=yes
  13262. dynamic_linker="$host_os dld.so"
  13263. shlibpath_var=LD_LIBRARY_PATH
  13264. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13266. soname_spec='${libname}${release}${shared_ext}$major'
  13267. if test "X$HPUX_IA64_MODE" = X32; then
  13268. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13269. else
  13270. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13271. fi
  13272. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13273. ;;
  13274. hppa*64*)
  13275. shrext_cmds='.sl'
  13276. hardcode_into_libs=yes
  13277. dynamic_linker="$host_os dld.sl"
  13278. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13279. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13283. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13284. ;;
  13285. *)
  13286. shrext_cmds='.sl'
  13287. dynamic_linker="$host_os dld.sl"
  13288. shlibpath_var=SHLIB_PATH
  13289. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13291. soname_spec='${libname}${release}${shared_ext}$major'
  13292. ;;
  13293. esac
  13294. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13295. postinstall_cmds='chmod 555 $lib'
  13296. # or fails outright, so override atomically:
  13297. install_override_mode=555
  13298. ;;
  13299. interix[3-9]*)
  13300. version_type=linux # correct to gnu/linux during the next big refactor
  13301. need_lib_prefix=no
  13302. need_version=no
  13303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13304. soname_spec='${libname}${release}${shared_ext}$major'
  13305. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13306. shlibpath_var=LD_LIBRARY_PATH
  13307. shlibpath_overrides_runpath=no
  13308. hardcode_into_libs=yes
  13309. ;;
  13310. irix5* | irix6* | nonstopux*)
  13311. case $host_os in
  13312. nonstopux*) version_type=nonstopux ;;
  13313. *)
  13314. if test "$lt_cv_prog_gnu_ld" = yes; then
  13315. version_type=linux # correct to gnu/linux during the next big refactor
  13316. else
  13317. version_type=irix
  13318. fi ;;
  13319. esac
  13320. need_lib_prefix=no
  13321. need_version=no
  13322. soname_spec='${libname}${release}${shared_ext}$major'
  13323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13324. case $host_os in
  13325. irix5* | nonstopux*)
  13326. libsuff= shlibsuff=
  13327. ;;
  13328. *)
  13329. case $LD in # libtool.m4 will add one of these switches to LD
  13330. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13331. libsuff= shlibsuff= libmagic=32-bit;;
  13332. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13333. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13334. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13335. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13336. *) libsuff= shlibsuff= libmagic=never-match;;
  13337. esac
  13338. ;;
  13339. esac
  13340. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13341. shlibpath_overrides_runpath=no
  13342. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13343. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13344. hardcode_into_libs=yes
  13345. ;;
  13346. # No shared lib support for Linux oldld, aout, or coff.
  13347. linux*oldld* | linux*aout* | linux*coff*)
  13348. dynamic_linker=no
  13349. ;;
  13350. # This must be glibc/ELF.
  13351. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13352. version_type=linux # correct to gnu/linux during the next big refactor
  13353. need_lib_prefix=no
  13354. need_version=no
  13355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13356. soname_spec='${libname}${release}${shared_ext}$major'
  13357. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13358. shlibpath_var=LD_LIBRARY_PATH
  13359. shlibpath_overrides_runpath=no
  13360. # Some binutils ld are patched to set DT_RUNPATH
  13361. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13362. $as_echo_n "(cached) " >&6
  13363. else
  13364. lt_cv_shlibpath_overrides_runpath=no
  13365. save_LDFLAGS=$LDFLAGS
  13366. save_libdir=$libdir
  13367. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13368. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13370. /* end confdefs.h. */
  13371. int
  13372. main ()
  13373. {
  13374. ;
  13375. return 0;
  13376. }
  13377. _ACEOF
  13378. if ac_fn_cxx_try_link "$LINENO"; then :
  13379. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13380. lt_cv_shlibpath_overrides_runpath=yes
  13381. fi
  13382. fi
  13383. rm -f core conftest.err conftest.$ac_objext \
  13384. conftest$ac_exeext conftest.$ac_ext
  13385. LDFLAGS=$save_LDFLAGS
  13386. libdir=$save_libdir
  13387. fi
  13388. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13389. # This implies no fast_install, which is unacceptable.
  13390. # Some rework will be needed to allow for fast_install
  13391. # before this can be enabled.
  13392. hardcode_into_libs=yes
  13393. # Add ABI-specific directories to the system library path.
  13394. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13395. # Append ld.so.conf contents to the search path
  13396. if test -f /etc/ld.so.conf; then
  13397. 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' ' '`
  13398. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13399. fi
  13400. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13401. # powerpc, because MkLinux only supported shared libraries with the
  13402. # GNU dynamic linker. Since this was broken with cross compilers,
  13403. # most powerpc-linux boxes support dynamic linking these days and
  13404. # people can always --disable-shared, the test was removed, and we
  13405. # assume the GNU/Linux dynamic linker is in use.
  13406. dynamic_linker='GNU/Linux ld.so'
  13407. ;;
  13408. netbsd*)
  13409. version_type=sunos
  13410. need_lib_prefix=no
  13411. need_version=no
  13412. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13414. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13415. dynamic_linker='NetBSD (a.out) ld.so'
  13416. else
  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. dynamic_linker='NetBSD ld.elf_so'
  13420. fi
  13421. shlibpath_var=LD_LIBRARY_PATH
  13422. shlibpath_overrides_runpath=yes
  13423. hardcode_into_libs=yes
  13424. ;;
  13425. newsos6)
  13426. version_type=linux # correct to gnu/linux during the next big refactor
  13427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13428. shlibpath_var=LD_LIBRARY_PATH
  13429. shlibpath_overrides_runpath=yes
  13430. ;;
  13431. *nto* | *qnx*)
  13432. version_type=qnx
  13433. need_lib_prefix=no
  13434. need_version=no
  13435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13436. soname_spec='${libname}${release}${shared_ext}$major'
  13437. shlibpath_var=LD_LIBRARY_PATH
  13438. shlibpath_overrides_runpath=no
  13439. hardcode_into_libs=yes
  13440. dynamic_linker='ldqnx.so'
  13441. ;;
  13442. openbsd*)
  13443. version_type=sunos
  13444. sys_lib_dlsearch_path_spec="/usr/lib"
  13445. need_lib_prefix=no
  13446. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13447. case $host_os in
  13448. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13449. *) need_version=no ;;
  13450. esac
  13451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13452. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13453. shlibpath_var=LD_LIBRARY_PATH
  13454. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13455. case $host_os in
  13456. openbsd2.[89] | openbsd2.[89].*)
  13457. shlibpath_overrides_runpath=no
  13458. ;;
  13459. *)
  13460. shlibpath_overrides_runpath=yes
  13461. ;;
  13462. esac
  13463. else
  13464. shlibpath_overrides_runpath=yes
  13465. fi
  13466. ;;
  13467. os2*)
  13468. libname_spec='$name'
  13469. shrext_cmds=".dll"
  13470. need_lib_prefix=no
  13471. library_names_spec='$libname${shared_ext} $libname.a'
  13472. dynamic_linker='OS/2 ld.exe'
  13473. shlibpath_var=LIBPATH
  13474. ;;
  13475. osf3* | osf4* | osf5*)
  13476. version_type=osf
  13477. need_lib_prefix=no
  13478. need_version=no
  13479. soname_spec='${libname}${release}${shared_ext}$major'
  13480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13481. shlibpath_var=LD_LIBRARY_PATH
  13482. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13483. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13484. ;;
  13485. rdos*)
  13486. dynamic_linker=no
  13487. ;;
  13488. solaris*)
  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. soname_spec='${libname}${release}${shared_ext}$major'
  13494. shlibpath_var=LD_LIBRARY_PATH
  13495. shlibpath_overrides_runpath=yes
  13496. hardcode_into_libs=yes
  13497. # ldd complains unless libraries are executable
  13498. postinstall_cmds='chmod +x $lib'
  13499. ;;
  13500. sunos4*)
  13501. version_type=sunos
  13502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13503. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13504. shlibpath_var=LD_LIBRARY_PATH
  13505. shlibpath_overrides_runpath=yes
  13506. if test "$with_gnu_ld" = yes; then
  13507. need_lib_prefix=no
  13508. fi
  13509. need_version=yes
  13510. ;;
  13511. sysv4 | sysv4.3*)
  13512. version_type=linux # correct to gnu/linux during the next big refactor
  13513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13514. soname_spec='${libname}${release}${shared_ext}$major'
  13515. shlibpath_var=LD_LIBRARY_PATH
  13516. case $host_vendor in
  13517. sni)
  13518. shlibpath_overrides_runpath=no
  13519. need_lib_prefix=no
  13520. runpath_var=LD_RUN_PATH
  13521. ;;
  13522. siemens)
  13523. need_lib_prefix=no
  13524. ;;
  13525. motorola)
  13526. need_lib_prefix=no
  13527. need_version=no
  13528. shlibpath_overrides_runpath=no
  13529. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13530. ;;
  13531. esac
  13532. ;;
  13533. sysv4*MP*)
  13534. if test -d /usr/nec ;then
  13535. version_type=linux # correct to gnu/linux during the next big refactor
  13536. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13537. soname_spec='$libname${shared_ext}.$major'
  13538. shlibpath_var=LD_LIBRARY_PATH
  13539. fi
  13540. ;;
  13541. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13542. version_type=freebsd-elf
  13543. need_lib_prefix=no
  13544. need_version=no
  13545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13546. soname_spec='${libname}${release}${shared_ext}$major'
  13547. shlibpath_var=LD_LIBRARY_PATH
  13548. shlibpath_overrides_runpath=yes
  13549. hardcode_into_libs=yes
  13550. if test "$with_gnu_ld" = yes; then
  13551. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13552. else
  13553. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13554. case $host_os in
  13555. sco3.2v5*)
  13556. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13557. ;;
  13558. esac
  13559. fi
  13560. sys_lib_dlsearch_path_spec='/usr/lib'
  13561. ;;
  13562. tpf*)
  13563. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13564. version_type=linux # correct to gnu/linux during the next big refactor
  13565. need_lib_prefix=no
  13566. need_version=no
  13567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13568. shlibpath_var=LD_LIBRARY_PATH
  13569. shlibpath_overrides_runpath=no
  13570. hardcode_into_libs=yes
  13571. ;;
  13572. uts4*)
  13573. version_type=linux # correct to gnu/linux during the next big refactor
  13574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13575. soname_spec='${libname}${release}${shared_ext}$major'
  13576. shlibpath_var=LD_LIBRARY_PATH
  13577. ;;
  13578. *)
  13579. dynamic_linker=no
  13580. ;;
  13581. esac
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13583. $as_echo "$dynamic_linker" >&6; }
  13584. test "$dynamic_linker" = no && can_build_shared=no
  13585. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13586. if test "$GCC" = yes; then
  13587. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13588. fi
  13589. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13590. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13591. fi
  13592. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13593. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13594. fi
  13595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13596. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13597. hardcode_action_CXX=
  13598. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13599. test -n "$runpath_var_CXX" ||
  13600. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13601. # We can hardcode non-existent directories.
  13602. if test "$hardcode_direct_CXX" != no &&
  13603. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13604. # have to relink, otherwise we might link with an installed library
  13605. # when we should be linking with a yet-to-be-installed one
  13606. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13607. test "$hardcode_minus_L_CXX" != no; then
  13608. # Linking always hardcodes the temporary library directory.
  13609. hardcode_action_CXX=relink
  13610. else
  13611. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13612. hardcode_action_CXX=immediate
  13613. fi
  13614. else
  13615. # We cannot hardcode anything, or else we can only hardcode existing
  13616. # directories.
  13617. hardcode_action_CXX=unsupported
  13618. fi
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13620. $as_echo "$hardcode_action_CXX" >&6; }
  13621. if test "$hardcode_action_CXX" = relink ||
  13622. test "$inherit_rpath_CXX" = yes; then
  13623. # Fast installation is not supported
  13624. enable_fast_install=no
  13625. elif test "$shlibpath_overrides_runpath" = yes ||
  13626. test "$enable_shared" = no; then
  13627. # Fast installation is not necessary
  13628. enable_fast_install=needless
  13629. fi
  13630. fi # test -n "$compiler"
  13631. CC=$lt_save_CC
  13632. CFLAGS=$lt_save_CFLAGS
  13633. LDCXX=$LD
  13634. LD=$lt_save_LD
  13635. GCC=$lt_save_GCC
  13636. with_gnu_ld=$lt_save_with_gnu_ld
  13637. lt_cv_path_LDCXX=$lt_cv_path_LD
  13638. lt_cv_path_LD=$lt_save_path_LD
  13639. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13640. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13641. fi # test "$_lt_caught_CXX_error" != yes
  13642. ac_ext=c
  13643. ac_cpp='$CPP $CPPFLAGS'
  13644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13647. ac_config_commands="$ac_config_commands libtool"
  13648. # Only expand once:
  13649. # Checks for header files.
  13650. ac_header_dirent=no
  13651. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13652. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13654. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13655. if eval \${$as_ac_Header+:} false; then :
  13656. $as_echo_n "(cached) " >&6
  13657. else
  13658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13659. /* end confdefs.h. */
  13660. #include <sys/types.h>
  13661. #include <$ac_hdr>
  13662. int
  13663. main ()
  13664. {
  13665. if ((DIR *) 0)
  13666. return 0;
  13667. ;
  13668. return 0;
  13669. }
  13670. _ACEOF
  13671. if ac_fn_c_try_compile "$LINENO"; then :
  13672. eval "$as_ac_Header=yes"
  13673. else
  13674. eval "$as_ac_Header=no"
  13675. fi
  13676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13677. fi
  13678. eval ac_res=\$$as_ac_Header
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13680. $as_echo "$ac_res" >&6; }
  13681. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13682. cat >>confdefs.h <<_ACEOF
  13683. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13684. _ACEOF
  13685. ac_header_dirent=$ac_hdr; break
  13686. fi
  13687. done
  13688. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13689. if test $ac_header_dirent = dirent.h; then
  13690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13691. $as_echo_n "checking for library containing opendir... " >&6; }
  13692. if ${ac_cv_search_opendir+:} false; then :
  13693. $as_echo_n "(cached) " >&6
  13694. else
  13695. ac_func_search_save_LIBS=$LIBS
  13696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13697. /* end confdefs.h. */
  13698. /* Override any GCC internal prototype to avoid an error.
  13699. Use char because int might match the return type of a GCC
  13700. builtin and then its argument prototype would still apply. */
  13701. #ifdef __cplusplus
  13702. extern "C"
  13703. #endif
  13704. char opendir ();
  13705. int
  13706. main ()
  13707. {
  13708. return opendir ();
  13709. ;
  13710. return 0;
  13711. }
  13712. _ACEOF
  13713. for ac_lib in '' dir; do
  13714. if test -z "$ac_lib"; then
  13715. ac_res="none required"
  13716. else
  13717. ac_res=-l$ac_lib
  13718. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13719. fi
  13720. if ac_fn_c_try_link "$LINENO"; then :
  13721. ac_cv_search_opendir=$ac_res
  13722. fi
  13723. rm -f core conftest.err conftest.$ac_objext \
  13724. conftest$ac_exeext
  13725. if ${ac_cv_search_opendir+:} false; then :
  13726. break
  13727. fi
  13728. done
  13729. if ${ac_cv_search_opendir+:} false; then :
  13730. else
  13731. ac_cv_search_opendir=no
  13732. fi
  13733. rm conftest.$ac_ext
  13734. LIBS=$ac_func_search_save_LIBS
  13735. fi
  13736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13737. $as_echo "$ac_cv_search_opendir" >&6; }
  13738. ac_res=$ac_cv_search_opendir
  13739. if test "$ac_res" != no; then :
  13740. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13741. fi
  13742. else
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13744. $as_echo_n "checking for library containing opendir... " >&6; }
  13745. if ${ac_cv_search_opendir+:} false; then :
  13746. $as_echo_n "(cached) " >&6
  13747. else
  13748. ac_func_search_save_LIBS=$LIBS
  13749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13750. /* end confdefs.h. */
  13751. /* Override any GCC internal prototype to avoid an error.
  13752. Use char because int might match the return type of a GCC
  13753. builtin and then its argument prototype would still apply. */
  13754. #ifdef __cplusplus
  13755. extern "C"
  13756. #endif
  13757. char opendir ();
  13758. int
  13759. main ()
  13760. {
  13761. return opendir ();
  13762. ;
  13763. return 0;
  13764. }
  13765. _ACEOF
  13766. for ac_lib in '' x; do
  13767. if test -z "$ac_lib"; then
  13768. ac_res="none required"
  13769. else
  13770. ac_res=-l$ac_lib
  13771. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13772. fi
  13773. if ac_fn_c_try_link "$LINENO"; then :
  13774. ac_cv_search_opendir=$ac_res
  13775. fi
  13776. rm -f core conftest.err conftest.$ac_objext \
  13777. conftest$ac_exeext
  13778. if ${ac_cv_search_opendir+:} false; then :
  13779. break
  13780. fi
  13781. done
  13782. if ${ac_cv_search_opendir+:} false; then :
  13783. else
  13784. ac_cv_search_opendir=no
  13785. fi
  13786. rm conftest.$ac_ext
  13787. LIBS=$ac_func_search_save_LIBS
  13788. fi
  13789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13790. $as_echo "$ac_cv_search_opendir" >&6; }
  13791. ac_res=$ac_cv_search_opendir
  13792. if test "$ac_res" != no; then :
  13793. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13794. fi
  13795. fi
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13797. $as_echo_n "checking for ANSI C header files... " >&6; }
  13798. if ${ac_cv_header_stdc+:} false; then :
  13799. $as_echo_n "(cached) " >&6
  13800. else
  13801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13802. /* end confdefs.h. */
  13803. #include <stdlib.h>
  13804. #include <stdarg.h>
  13805. #include <string.h>
  13806. #include <float.h>
  13807. int
  13808. main ()
  13809. {
  13810. ;
  13811. return 0;
  13812. }
  13813. _ACEOF
  13814. if ac_fn_c_try_compile "$LINENO"; then :
  13815. ac_cv_header_stdc=yes
  13816. else
  13817. ac_cv_header_stdc=no
  13818. fi
  13819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13820. if test $ac_cv_header_stdc = yes; then
  13821. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13823. /* end confdefs.h. */
  13824. #include <string.h>
  13825. _ACEOF
  13826. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13827. $EGREP "memchr" >/dev/null 2>&1; then :
  13828. else
  13829. ac_cv_header_stdc=no
  13830. fi
  13831. rm -f conftest*
  13832. fi
  13833. if test $ac_cv_header_stdc = yes; then
  13834. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13836. /* end confdefs.h. */
  13837. #include <stdlib.h>
  13838. _ACEOF
  13839. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13840. $EGREP "free" >/dev/null 2>&1; then :
  13841. else
  13842. ac_cv_header_stdc=no
  13843. fi
  13844. rm -f conftest*
  13845. fi
  13846. if test $ac_cv_header_stdc = yes; then
  13847. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13848. if test "$cross_compiling" = yes; then :
  13849. :
  13850. else
  13851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13852. /* end confdefs.h. */
  13853. #include <ctype.h>
  13854. #include <stdlib.h>
  13855. #if ((' ' & 0x0FF) == 0x020)
  13856. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13857. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13858. #else
  13859. # define ISLOWER(c) \
  13860. (('a' <= (c) && (c) <= 'i') \
  13861. || ('j' <= (c) && (c) <= 'r') \
  13862. || ('s' <= (c) && (c) <= 'z'))
  13863. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13864. #endif
  13865. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13866. int
  13867. main ()
  13868. {
  13869. int i;
  13870. for (i = 0; i < 256; i++)
  13871. if (XOR (islower (i), ISLOWER (i))
  13872. || toupper (i) != TOUPPER (i))
  13873. return 2;
  13874. return 0;
  13875. }
  13876. _ACEOF
  13877. if ac_fn_c_try_run "$LINENO"; then :
  13878. else
  13879. ac_cv_header_stdc=no
  13880. fi
  13881. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13882. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13883. fi
  13884. fi
  13885. fi
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13887. $as_echo "$ac_cv_header_stdc" >&6; }
  13888. if test $ac_cv_header_stdc = yes; then
  13889. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13890. fi
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13892. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13893. if ${ac_cv_header_sys_wait_h+:} false; then :
  13894. $as_echo_n "(cached) " >&6
  13895. else
  13896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13897. /* end confdefs.h. */
  13898. #include <sys/types.h>
  13899. #include <sys/wait.h>
  13900. #ifndef WEXITSTATUS
  13901. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13902. #endif
  13903. #ifndef WIFEXITED
  13904. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13905. #endif
  13906. int
  13907. main ()
  13908. {
  13909. int s;
  13910. wait (&s);
  13911. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13912. ;
  13913. return 0;
  13914. }
  13915. _ACEOF
  13916. if ac_fn_c_try_compile "$LINENO"; then :
  13917. ac_cv_header_sys_wait_h=yes
  13918. else
  13919. ac_cv_header_sys_wait_h=no
  13920. fi
  13921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13922. fi
  13923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13924. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13925. if test $ac_cv_header_sys_wait_h = yes; then
  13926. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13927. fi
  13928. 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
  13929. do :
  13930. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13931. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13932. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13933. cat >>confdefs.h <<_ACEOF
  13934. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13935. _ACEOF
  13936. fi
  13937. done
  13938. # Checks for typedefs, structures, and compiler characteristics.
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13940. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13941. if ${ac_cv_header_stat_broken+:} false; then :
  13942. $as_echo_n "(cached) " >&6
  13943. else
  13944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13945. /* end confdefs.h. */
  13946. #include <sys/types.h>
  13947. #include <sys/stat.h>
  13948. #if defined S_ISBLK && defined S_IFDIR
  13949. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13950. #endif
  13951. #if defined S_ISBLK && defined S_IFCHR
  13952. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13953. #endif
  13954. #if defined S_ISLNK && defined S_IFREG
  13955. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13956. #endif
  13957. #if defined S_ISSOCK && defined S_IFREG
  13958. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13959. #endif
  13960. _ACEOF
  13961. if ac_fn_c_try_compile "$LINENO"; then :
  13962. ac_cv_header_stat_broken=no
  13963. else
  13964. ac_cv_header_stat_broken=yes
  13965. fi
  13966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13967. fi
  13968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13969. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13970. if test $ac_cv_header_stat_broken = yes; then
  13971. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13972. fi
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13974. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13975. if ${ac_cv_c_const+:} false; then :
  13976. $as_echo_n "(cached) " >&6
  13977. else
  13978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13979. /* end confdefs.h. */
  13980. int
  13981. main ()
  13982. {
  13983. #ifndef __cplusplus
  13984. /* Ultrix mips cc rejects this sort of thing. */
  13985. typedef int charset[2];
  13986. const charset cs = { 0, 0 };
  13987. /* SunOS 4.1.1 cc rejects this. */
  13988. char const *const *pcpcc;
  13989. char **ppc;
  13990. /* NEC SVR4.0.2 mips cc rejects this. */
  13991. struct point {int x, y;};
  13992. static struct point const zero = {0,0};
  13993. /* AIX XL C 1.02.0.0 rejects this.
  13994. It does not let you subtract one const X* pointer from another in
  13995. an arm of an if-expression whose if-part is not a constant
  13996. expression */
  13997. const char *g = "string";
  13998. pcpcc = &g + (g ? g-g : 0);
  13999. /* HPUX 7.0 cc rejects these. */
  14000. ++pcpcc;
  14001. ppc = (char**) pcpcc;
  14002. pcpcc = (char const *const *) ppc;
  14003. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14004. char tx;
  14005. char *t = &tx;
  14006. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14007. *t++ = 0;
  14008. if (s) return 0;
  14009. }
  14010. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14011. int x[] = {25, 17};
  14012. const int *foo = &x[0];
  14013. ++foo;
  14014. }
  14015. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14016. typedef const int *iptr;
  14017. iptr p = 0;
  14018. ++p;
  14019. }
  14020. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14021. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14022. struct s { int j; const int *ap[3]; } bx;
  14023. struct s *b = &bx; b->j = 5;
  14024. }
  14025. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14026. const int foo = 10;
  14027. if (!foo) return 0;
  14028. }
  14029. return !cs[0] && !zero.x;
  14030. #endif
  14031. ;
  14032. return 0;
  14033. }
  14034. _ACEOF
  14035. if ac_fn_c_try_compile "$LINENO"; then :
  14036. ac_cv_c_const=yes
  14037. else
  14038. ac_cv_c_const=no
  14039. fi
  14040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14041. fi
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14043. $as_echo "$ac_cv_c_const" >&6; }
  14044. if test $ac_cv_c_const = no; then
  14045. $as_echo "#define const /**/" >>confdefs.h
  14046. fi
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14048. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14049. if ${ac_cv_header_stdbool_h+:} false; then :
  14050. $as_echo_n "(cached) " >&6
  14051. else
  14052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14053. /* end confdefs.h. */
  14054. #include <stdbool.h>
  14055. #ifndef bool
  14056. "error: bool is not defined"
  14057. #endif
  14058. #ifndef false
  14059. "error: false is not defined"
  14060. #endif
  14061. #if false
  14062. "error: false is not 0"
  14063. #endif
  14064. #ifndef true
  14065. "error: true is not defined"
  14066. #endif
  14067. #if true != 1
  14068. "error: true is not 1"
  14069. #endif
  14070. #ifndef __bool_true_false_are_defined
  14071. "error: __bool_true_false_are_defined is not defined"
  14072. #endif
  14073. struct s { _Bool s: 1; _Bool t; } s;
  14074. char a[true == 1 ? 1 : -1];
  14075. char b[false == 0 ? 1 : -1];
  14076. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14077. char d[(bool) 0.5 == true ? 1 : -1];
  14078. /* See body of main program for 'e'. */
  14079. char f[(_Bool) 0.0 == false ? 1 : -1];
  14080. char g[true];
  14081. char h[sizeof (_Bool)];
  14082. char i[sizeof s.t];
  14083. enum { j = false, k = true, l = false * true, m = true * 256 };
  14084. /* The following fails for
  14085. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14086. _Bool n[m];
  14087. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14088. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14089. /* Catch a bug in an HP-UX C compiler. See
  14090. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14091. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14092. */
  14093. _Bool q = true;
  14094. _Bool *pq = &q;
  14095. int
  14096. main ()
  14097. {
  14098. bool e = &s;
  14099. *pq |= q;
  14100. *pq |= ! q;
  14101. /* Refer to every declared value, to avoid compiler optimizations. */
  14102. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14103. + !m + !n + !o + !p + !q + !pq);
  14104. ;
  14105. return 0;
  14106. }
  14107. _ACEOF
  14108. if ac_fn_c_try_compile "$LINENO"; then :
  14109. ac_cv_header_stdbool_h=yes
  14110. else
  14111. ac_cv_header_stdbool_h=no
  14112. fi
  14113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14114. fi
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14116. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14117. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14118. if test "x$ac_cv_type__Bool" = xyes; then :
  14119. cat >>confdefs.h <<_ACEOF
  14120. #define HAVE__BOOL 1
  14121. _ACEOF
  14122. fi
  14123. if test $ac_cv_header_stdbool_h = yes; then
  14124. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14125. fi
  14126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14127. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14128. if ${ac_cv_type_uid_t+:} false; then :
  14129. $as_echo_n "(cached) " >&6
  14130. else
  14131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14132. /* end confdefs.h. */
  14133. #include <sys/types.h>
  14134. _ACEOF
  14135. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14136. $EGREP "uid_t" >/dev/null 2>&1; then :
  14137. ac_cv_type_uid_t=yes
  14138. else
  14139. ac_cv_type_uid_t=no
  14140. fi
  14141. rm -f conftest*
  14142. fi
  14143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14144. $as_echo "$ac_cv_type_uid_t" >&6; }
  14145. if test $ac_cv_type_uid_t = no; then
  14146. $as_echo "#define uid_t int" >>confdefs.h
  14147. $as_echo "#define gid_t int" >>confdefs.h
  14148. fi
  14149. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14150. if test "x$ac_cv_type_pid_t" = xyes; then :
  14151. else
  14152. cat >>confdefs.h <<_ACEOF
  14153. #define pid_t int
  14154. _ACEOF
  14155. fi
  14156. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14157. if test "x$ac_cv_type_size_t" = xyes; then :
  14158. else
  14159. cat >>confdefs.h <<_ACEOF
  14160. #define size_t unsigned int
  14161. _ACEOF
  14162. fi
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14164. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14165. if ${ac_cv_header_time+:} false; then :
  14166. $as_echo_n "(cached) " >&6
  14167. else
  14168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14169. /* end confdefs.h. */
  14170. #include <sys/types.h>
  14171. #include <sys/time.h>
  14172. #include <time.h>
  14173. int
  14174. main ()
  14175. {
  14176. if ((struct tm *) 0)
  14177. return 0;
  14178. ;
  14179. return 0;
  14180. }
  14181. _ACEOF
  14182. if ac_fn_c_try_compile "$LINENO"; then :
  14183. ac_cv_header_time=yes
  14184. else
  14185. ac_cv_header_time=no
  14186. fi
  14187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14188. fi
  14189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14190. $as_echo "$ac_cv_header_time" >&6; }
  14191. if test $ac_cv_header_time = yes; then
  14192. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14193. fi
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14195. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14196. if ${ac_cv_struct_tm+:} false; then :
  14197. $as_echo_n "(cached) " >&6
  14198. else
  14199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14200. /* end confdefs.h. */
  14201. #include <sys/types.h>
  14202. #include <time.h>
  14203. int
  14204. main ()
  14205. {
  14206. struct tm tm;
  14207. int *p = &tm.tm_sec;
  14208. return !p;
  14209. ;
  14210. return 0;
  14211. }
  14212. _ACEOF
  14213. if ac_fn_c_try_compile "$LINENO"; then :
  14214. ac_cv_struct_tm=time.h
  14215. else
  14216. ac_cv_struct_tm=sys/time.h
  14217. fi
  14218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14219. fi
  14220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14221. $as_echo "$ac_cv_struct_tm" >&6; }
  14222. if test $ac_cv_struct_tm = sys/time.h; then
  14223. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14224. fi
  14225. # Checks for library functions.
  14226. for ac_header in unistd.h
  14227. do :
  14228. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14229. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14230. cat >>confdefs.h <<_ACEOF
  14231. #define HAVE_UNISTD_H 1
  14232. _ACEOF
  14233. fi
  14234. done
  14235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14236. $as_echo_n "checking for working chown... " >&6; }
  14237. if ${ac_cv_func_chown_works+:} false; then :
  14238. $as_echo_n "(cached) " >&6
  14239. else
  14240. if test "$cross_compiling" = yes; then :
  14241. ac_cv_func_chown_works=no
  14242. else
  14243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14244. /* end confdefs.h. */
  14245. $ac_includes_default
  14246. #include <fcntl.h>
  14247. int
  14248. main ()
  14249. {
  14250. char *f = "conftest.chown";
  14251. struct stat before, after;
  14252. if (creat (f, 0600) < 0)
  14253. return 1;
  14254. if (stat (f, &before) < 0)
  14255. return 1;
  14256. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14257. return 1;
  14258. if (stat (f, &after) < 0)
  14259. return 1;
  14260. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14261. ;
  14262. return 0;
  14263. }
  14264. _ACEOF
  14265. if ac_fn_c_try_run "$LINENO"; then :
  14266. ac_cv_func_chown_works=yes
  14267. else
  14268. ac_cv_func_chown_works=no
  14269. fi
  14270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14271. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14272. fi
  14273. rm -f conftest.chown
  14274. fi
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14276. $as_echo "$ac_cv_func_chown_works" >&6; }
  14277. if test $ac_cv_func_chown_works = yes; then
  14278. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14279. fi
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14281. $as_echo_n "checking whether closedir returns void... " >&6; }
  14282. if ${ac_cv_func_closedir_void+:} false; then :
  14283. $as_echo_n "(cached) " >&6
  14284. else
  14285. if test "$cross_compiling" = yes; then :
  14286. ac_cv_func_closedir_void=yes
  14287. else
  14288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14289. /* end confdefs.h. */
  14290. $ac_includes_default
  14291. #include <$ac_header_dirent>
  14292. #ifndef __cplusplus
  14293. int closedir ();
  14294. #endif
  14295. int
  14296. main ()
  14297. {
  14298. return closedir (opendir (".")) != 0;
  14299. ;
  14300. return 0;
  14301. }
  14302. _ACEOF
  14303. if ac_fn_c_try_run "$LINENO"; then :
  14304. ac_cv_func_closedir_void=no
  14305. else
  14306. ac_cv_func_closedir_void=yes
  14307. fi
  14308. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14309. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14310. fi
  14311. fi
  14312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14313. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14314. if test $ac_cv_func_closedir_void = yes; then
  14315. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14316. fi
  14317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14318. $as_echo_n "checking for error_at_line... " >&6; }
  14319. if ${ac_cv_lib_error_at_line+:} false; then :
  14320. $as_echo_n "(cached) " >&6
  14321. else
  14322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14323. /* end confdefs.h. */
  14324. #include <error.h>
  14325. int
  14326. main ()
  14327. {
  14328. error_at_line (0, 0, "", 0, "an error occurred");
  14329. ;
  14330. return 0;
  14331. }
  14332. _ACEOF
  14333. if ac_fn_c_try_link "$LINENO"; then :
  14334. ac_cv_lib_error_at_line=yes
  14335. else
  14336. ac_cv_lib_error_at_line=no
  14337. fi
  14338. rm -f core conftest.err conftest.$ac_objext \
  14339. conftest$ac_exeext conftest.$ac_ext
  14340. fi
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14342. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14343. if test $ac_cv_lib_error_at_line = no; then
  14344. case " $LIBOBJS " in
  14345. *" error.$ac_objext "* ) ;;
  14346. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14347. ;;
  14348. esac
  14349. fi
  14350. for ac_header in vfork.h
  14351. do :
  14352. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14353. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14354. cat >>confdefs.h <<_ACEOF
  14355. #define HAVE_VFORK_H 1
  14356. _ACEOF
  14357. fi
  14358. done
  14359. for ac_func in fork vfork
  14360. do :
  14361. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14362. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14363. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14364. cat >>confdefs.h <<_ACEOF
  14365. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14366. _ACEOF
  14367. fi
  14368. done
  14369. if test "x$ac_cv_func_fork" = xyes; then
  14370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14371. $as_echo_n "checking for working fork... " >&6; }
  14372. if ${ac_cv_func_fork_works+:} false; then :
  14373. $as_echo_n "(cached) " >&6
  14374. else
  14375. if test "$cross_compiling" = yes; then :
  14376. ac_cv_func_fork_works=cross
  14377. else
  14378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14379. /* end confdefs.h. */
  14380. $ac_includes_default
  14381. int
  14382. main ()
  14383. {
  14384. /* By Ruediger Kuhlmann. */
  14385. return fork () < 0;
  14386. ;
  14387. return 0;
  14388. }
  14389. _ACEOF
  14390. if ac_fn_c_try_run "$LINENO"; then :
  14391. ac_cv_func_fork_works=yes
  14392. else
  14393. ac_cv_func_fork_works=no
  14394. fi
  14395. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14396. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14397. fi
  14398. fi
  14399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14400. $as_echo "$ac_cv_func_fork_works" >&6; }
  14401. else
  14402. ac_cv_func_fork_works=$ac_cv_func_fork
  14403. fi
  14404. if test "x$ac_cv_func_fork_works" = xcross; then
  14405. case $host in
  14406. *-*-amigaos* | *-*-msdosdjgpp*)
  14407. # Override, as these systems have only a dummy fork() stub
  14408. ac_cv_func_fork_works=no
  14409. ;;
  14410. *)
  14411. ac_cv_func_fork_works=yes
  14412. ;;
  14413. esac
  14414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14415. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14416. fi
  14417. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14418. if test "x$ac_cv_func_vfork" = xyes; then
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14420. $as_echo_n "checking for working vfork... " >&6; }
  14421. if ${ac_cv_func_vfork_works+:} false; then :
  14422. $as_echo_n "(cached) " >&6
  14423. else
  14424. if test "$cross_compiling" = yes; then :
  14425. ac_cv_func_vfork_works=cross
  14426. else
  14427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14428. /* end confdefs.h. */
  14429. /* Thanks to Paul Eggert for this test. */
  14430. $ac_includes_default
  14431. #include <sys/wait.h>
  14432. #ifdef HAVE_VFORK_H
  14433. # include <vfork.h>
  14434. #endif
  14435. /* On some sparc systems, changes by the child to local and incoming
  14436. argument registers are propagated back to the parent. The compiler
  14437. is told about this with #include <vfork.h>, but some compilers
  14438. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14439. static variable whose address is put into a register that is
  14440. clobbered by the vfork. */
  14441. static void
  14442. #ifdef __cplusplus
  14443. sparc_address_test (int arg)
  14444. # else
  14445. sparc_address_test (arg) int arg;
  14446. #endif
  14447. {
  14448. static pid_t child;
  14449. if (!child) {
  14450. child = vfork ();
  14451. if (child < 0) {
  14452. perror ("vfork");
  14453. _exit(2);
  14454. }
  14455. if (!child) {
  14456. arg = getpid();
  14457. write(-1, "", 0);
  14458. _exit (arg);
  14459. }
  14460. }
  14461. }
  14462. int
  14463. main ()
  14464. {
  14465. pid_t parent = getpid ();
  14466. pid_t child;
  14467. sparc_address_test (0);
  14468. child = vfork ();
  14469. if (child == 0) {
  14470. /* Here is another test for sparc vfork register problems. This
  14471. test uses lots of local variables, at least as many local
  14472. variables as main has allocated so far including compiler
  14473. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14474. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14475. reuse the register of parent for one of the local variables,
  14476. since it will think that parent can't possibly be used any more
  14477. in this routine. Assigning to the local variable will thus
  14478. munge parent in the parent process. */
  14479. pid_t
  14480. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14481. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14482. /* Convince the compiler that p..p7 are live; otherwise, it might
  14483. use the same hardware register for all 8 local variables. */
  14484. if (p != p1 || p != p2 || p != p3 || p != p4
  14485. || p != p5 || p != p6 || p != p7)
  14486. _exit(1);
  14487. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14488. from child file descriptors. If the child closes a descriptor
  14489. before it execs or exits, this munges the parent's descriptor
  14490. as well. Test for this by closing stdout in the child. */
  14491. _exit(close(fileno(stdout)) != 0);
  14492. } else {
  14493. int status;
  14494. struct stat st;
  14495. while (wait(&status) != child)
  14496. ;
  14497. return (
  14498. /* Was there some problem with vforking? */
  14499. child < 0
  14500. /* Did the child fail? (This shouldn't happen.) */
  14501. || status
  14502. /* Did the vfork/compiler bug occur? */
  14503. || parent != getpid()
  14504. /* Did the file descriptor bug occur? */
  14505. || fstat(fileno(stdout), &st) != 0
  14506. );
  14507. }
  14508. }
  14509. _ACEOF
  14510. if ac_fn_c_try_run "$LINENO"; then :
  14511. ac_cv_func_vfork_works=yes
  14512. else
  14513. ac_cv_func_vfork_works=no
  14514. fi
  14515. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14516. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14517. fi
  14518. fi
  14519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14520. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14521. fi;
  14522. if test "x$ac_cv_func_fork_works" = xcross; then
  14523. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14525. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14526. fi
  14527. if test "x$ac_cv_func_vfork_works" = xyes; then
  14528. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14529. else
  14530. $as_echo "#define vfork fork" >>confdefs.h
  14531. fi
  14532. if test "x$ac_cv_func_fork_works" = xyes; then
  14533. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14534. fi
  14535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14536. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14537. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14538. $as_echo_n "(cached) " >&6
  14539. else
  14540. rm -f conftest.sym conftest.file
  14541. echo >conftest.file
  14542. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14543. if test "$cross_compiling" = yes; then :
  14544. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14545. else
  14546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14547. /* end confdefs.h. */
  14548. $ac_includes_default
  14549. int
  14550. main ()
  14551. {
  14552. struct stat sbuf;
  14553. /* Linux will dereference the symlink and fail, as required by POSIX.
  14554. That is better in the sense that it means we will not
  14555. have to compile and use the lstat wrapper. */
  14556. return lstat ("conftest.sym/", &sbuf) == 0;
  14557. ;
  14558. return 0;
  14559. }
  14560. _ACEOF
  14561. if ac_fn_c_try_run "$LINENO"; then :
  14562. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14563. else
  14564. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14565. fi
  14566. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14567. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14568. fi
  14569. else
  14570. # If the `ln -s' command failed, then we probably don't even
  14571. # have an lstat function.
  14572. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14573. fi
  14574. rm -f conftest.sym conftest.file
  14575. fi
  14576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14577. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14578. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14579. cat >>confdefs.h <<_ACEOF
  14580. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14581. _ACEOF
  14582. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14583. case " $LIBOBJS " in
  14584. *" lstat.$ac_objext "* ) ;;
  14585. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14586. ;;
  14587. esac
  14588. fi
  14589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14590. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14591. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14592. $as_echo_n "(cached) " >&6
  14593. else
  14594. if test "$cross_compiling" = yes; then :
  14595. ac_cv_func_lstat_empty_string_bug=yes
  14596. else
  14597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14598. /* end confdefs.h. */
  14599. $ac_includes_default
  14600. int
  14601. main ()
  14602. {
  14603. struct stat sbuf;
  14604. return lstat ("", &sbuf) == 0;
  14605. ;
  14606. return 0;
  14607. }
  14608. _ACEOF
  14609. if ac_fn_c_try_run "$LINENO"; then :
  14610. ac_cv_func_lstat_empty_string_bug=no
  14611. else
  14612. ac_cv_func_lstat_empty_string_bug=yes
  14613. fi
  14614. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14615. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14616. fi
  14617. fi
  14618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14619. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14620. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14621. case " $LIBOBJS " in
  14622. *" lstat.$ac_objext "* ) ;;
  14623. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14624. ;;
  14625. esac
  14626. cat >>confdefs.h <<_ACEOF
  14627. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14628. _ACEOF
  14629. fi
  14630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14631. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14632. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14633. $as_echo_n "(cached) " >&6
  14634. else
  14635. rm -f conftest.sym conftest.file
  14636. echo >conftest.file
  14637. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14638. if test "$cross_compiling" = yes; then :
  14639. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14640. else
  14641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14642. /* end confdefs.h. */
  14643. $ac_includes_default
  14644. int
  14645. main ()
  14646. {
  14647. struct stat sbuf;
  14648. /* Linux will dereference the symlink and fail, as required by POSIX.
  14649. That is better in the sense that it means we will not
  14650. have to compile and use the lstat wrapper. */
  14651. return lstat ("conftest.sym/", &sbuf) == 0;
  14652. ;
  14653. return 0;
  14654. }
  14655. _ACEOF
  14656. if ac_fn_c_try_run "$LINENO"; then :
  14657. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14658. else
  14659. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14660. fi
  14661. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14662. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14663. fi
  14664. else
  14665. # If the `ln -s' command failed, then we probably don't even
  14666. # have an lstat function.
  14667. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14668. fi
  14669. rm -f conftest.sym conftest.file
  14670. fi
  14671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14672. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14673. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14674. cat >>confdefs.h <<_ACEOF
  14675. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14676. _ACEOF
  14677. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14678. case " $LIBOBJS " in
  14679. *" lstat.$ac_objext "* ) ;;
  14680. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14681. ;;
  14682. esac
  14683. fi
  14684. for ac_header in stdlib.h
  14685. do :
  14686. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14687. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14688. cat >>confdefs.h <<_ACEOF
  14689. #define HAVE_STDLIB_H 1
  14690. _ACEOF
  14691. fi
  14692. done
  14693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14694. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14695. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14696. $as_echo_n "(cached) " >&6
  14697. else
  14698. if test "$cross_compiling" = yes; then :
  14699. ac_cv_func_malloc_0_nonnull=no
  14700. else
  14701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14702. /* end confdefs.h. */
  14703. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14704. # include <stdlib.h>
  14705. #else
  14706. char *malloc ();
  14707. #endif
  14708. int
  14709. main ()
  14710. {
  14711. return ! malloc (0);
  14712. ;
  14713. return 0;
  14714. }
  14715. _ACEOF
  14716. if ac_fn_c_try_run "$LINENO"; then :
  14717. ac_cv_func_malloc_0_nonnull=yes
  14718. else
  14719. ac_cv_func_malloc_0_nonnull=no
  14720. fi
  14721. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14722. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14723. fi
  14724. fi
  14725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14726. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14727. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14728. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14729. else
  14730. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14731. case " $LIBOBJS " in
  14732. *" malloc.$ac_objext "* ) ;;
  14733. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14734. ;;
  14735. esac
  14736. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14737. fi
  14738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14739. $as_echo_n "checking for working memcmp... " >&6; }
  14740. if ${ac_cv_func_memcmp_working+:} false; then :
  14741. $as_echo_n "(cached) " >&6
  14742. else
  14743. if test "$cross_compiling" = yes; then :
  14744. ac_cv_func_memcmp_working=no
  14745. else
  14746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14747. /* end confdefs.h. */
  14748. $ac_includes_default
  14749. int
  14750. main ()
  14751. {
  14752. /* Some versions of memcmp are not 8-bit clean. */
  14753. char c0 = '\100', c1 = '\200', c2 = '\201';
  14754. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14755. return 1;
  14756. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14757. or more and with at least one buffer not starting on a 4-byte boundary.
  14758. William Lewis provided this test program. */
  14759. {
  14760. char foo[21];
  14761. char bar[21];
  14762. int i;
  14763. for (i = 0; i < 4; i++)
  14764. {
  14765. char *a = foo + i;
  14766. char *b = bar + i;
  14767. strcpy (a, "--------01111111");
  14768. strcpy (b, "--------10000000");
  14769. if (memcmp (a, b, 16) >= 0)
  14770. return 1;
  14771. }
  14772. return 0;
  14773. }
  14774. ;
  14775. return 0;
  14776. }
  14777. _ACEOF
  14778. if ac_fn_c_try_run "$LINENO"; then :
  14779. ac_cv_func_memcmp_working=yes
  14780. else
  14781. ac_cv_func_memcmp_working=no
  14782. fi
  14783. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14784. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14785. fi
  14786. fi
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14788. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14789. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14790. *" memcmp.$ac_objext "* ) ;;
  14791. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14792. ;;
  14793. esac
  14794. for ac_header in $ac_header_list
  14795. do :
  14796. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14797. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14798. "
  14799. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14800. cat >>confdefs.h <<_ACEOF
  14801. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14802. _ACEOF
  14803. fi
  14804. done
  14805. for ac_func in getpagesize
  14806. do :
  14807. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14808. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14809. cat >>confdefs.h <<_ACEOF
  14810. #define HAVE_GETPAGESIZE 1
  14811. _ACEOF
  14812. fi
  14813. done
  14814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14815. $as_echo_n "checking for working mmap... " >&6; }
  14816. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14817. $as_echo_n "(cached) " >&6
  14818. else
  14819. if test "$cross_compiling" = yes; then :
  14820. ac_cv_func_mmap_fixed_mapped=no
  14821. else
  14822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14823. /* end confdefs.h. */
  14824. $ac_includes_default
  14825. /* malloc might have been renamed as rpl_malloc. */
  14826. #undef malloc
  14827. /* Thanks to Mike Haertel and Jim Avera for this test.
  14828. Here is a matrix of mmap possibilities:
  14829. mmap private not fixed
  14830. mmap private fixed at somewhere currently unmapped
  14831. mmap private fixed at somewhere already mapped
  14832. mmap shared not fixed
  14833. mmap shared fixed at somewhere currently unmapped
  14834. mmap shared fixed at somewhere already mapped
  14835. For private mappings, we should verify that changes cannot be read()
  14836. back from the file, nor mmap's back from the file at a different
  14837. address. (There have been systems where private was not correctly
  14838. implemented like the infamous i386 svr4.0, and systems where the
  14839. VM page cache was not coherent with the file system buffer cache
  14840. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14841. For shared mappings, we should conversely verify that changes get
  14842. propagated back to all the places they're supposed to be.
  14843. Grep wants private fixed already mapped.
  14844. The main things grep needs to know about mmap are:
  14845. * does it exist and is it safe to write into the mmap'd area
  14846. * how to use it (BSD variants) */
  14847. #include <fcntl.h>
  14848. #include <sys/mman.h>
  14849. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14850. char *malloc ();
  14851. #endif
  14852. /* This mess was copied from the GNU getpagesize.h. */
  14853. #ifndef HAVE_GETPAGESIZE
  14854. # ifdef _SC_PAGESIZE
  14855. # define getpagesize() sysconf(_SC_PAGESIZE)
  14856. # else /* no _SC_PAGESIZE */
  14857. # ifdef HAVE_SYS_PARAM_H
  14858. # include <sys/param.h>
  14859. # ifdef EXEC_PAGESIZE
  14860. # define getpagesize() EXEC_PAGESIZE
  14861. # else /* no EXEC_PAGESIZE */
  14862. # ifdef NBPG
  14863. # define getpagesize() NBPG * CLSIZE
  14864. # ifndef CLSIZE
  14865. # define CLSIZE 1
  14866. # endif /* no CLSIZE */
  14867. # else /* no NBPG */
  14868. # ifdef NBPC
  14869. # define getpagesize() NBPC
  14870. # else /* no NBPC */
  14871. # ifdef PAGESIZE
  14872. # define getpagesize() PAGESIZE
  14873. # endif /* PAGESIZE */
  14874. # endif /* no NBPC */
  14875. # endif /* no NBPG */
  14876. # endif /* no EXEC_PAGESIZE */
  14877. # else /* no HAVE_SYS_PARAM_H */
  14878. # define getpagesize() 8192 /* punt totally */
  14879. # endif /* no HAVE_SYS_PARAM_H */
  14880. # endif /* no _SC_PAGESIZE */
  14881. #endif /* no HAVE_GETPAGESIZE */
  14882. int
  14883. main ()
  14884. {
  14885. char *data, *data2, *data3;
  14886. const char *cdata2;
  14887. int i, pagesize;
  14888. int fd, fd2;
  14889. pagesize = getpagesize ();
  14890. /* First, make a file with some known garbage in it. */
  14891. data = (char *) malloc (pagesize);
  14892. if (!data)
  14893. return 1;
  14894. for (i = 0; i < pagesize; ++i)
  14895. *(data + i) = rand ();
  14896. umask (0);
  14897. fd = creat ("conftest.mmap", 0600);
  14898. if (fd < 0)
  14899. return 2;
  14900. if (write (fd, data, pagesize) != pagesize)
  14901. return 3;
  14902. close (fd);
  14903. /* Next, check that the tail of a page is zero-filled. File must have
  14904. non-zero length, otherwise we risk SIGBUS for entire page. */
  14905. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14906. if (fd2 < 0)
  14907. return 4;
  14908. cdata2 = "";
  14909. if (write (fd2, cdata2, 1) != 1)
  14910. return 5;
  14911. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14912. if (data2 == MAP_FAILED)
  14913. return 6;
  14914. for (i = 0; i < pagesize; ++i)
  14915. if (*(data2 + i))
  14916. return 7;
  14917. close (fd2);
  14918. if (munmap (data2, pagesize))
  14919. return 8;
  14920. /* Next, try to mmap the file at a fixed address which already has
  14921. something else allocated at it. If we can, also make sure that
  14922. we see the same garbage. */
  14923. fd = open ("conftest.mmap", O_RDWR);
  14924. if (fd < 0)
  14925. return 9;
  14926. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14927. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14928. return 10;
  14929. for (i = 0; i < pagesize; ++i)
  14930. if (*(data + i) != *(data2 + i))
  14931. return 11;
  14932. /* Finally, make sure that changes to the mapped area do not
  14933. percolate back to the file as seen by read(). (This is a bug on
  14934. some variants of i386 svr4.0.) */
  14935. for (i = 0; i < pagesize; ++i)
  14936. *(data2 + i) = *(data2 + i) + 1;
  14937. data3 = (char *) malloc (pagesize);
  14938. if (!data3)
  14939. return 12;
  14940. if (read (fd, data3, pagesize) != pagesize)
  14941. return 13;
  14942. for (i = 0; i < pagesize; ++i)
  14943. if (*(data + i) != *(data3 + i))
  14944. return 14;
  14945. close (fd);
  14946. return 0;
  14947. }
  14948. _ACEOF
  14949. if ac_fn_c_try_run "$LINENO"; then :
  14950. ac_cv_func_mmap_fixed_mapped=yes
  14951. else
  14952. ac_cv_func_mmap_fixed_mapped=no
  14953. fi
  14954. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14955. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14956. fi
  14957. fi
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14959. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14960. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14961. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14962. fi
  14963. rm -f conftest.mmap conftest.txt
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14965. $as_echo_n "checking return type of signal handlers... " >&6; }
  14966. if ${ac_cv_type_signal+:} false; then :
  14967. $as_echo_n "(cached) " >&6
  14968. else
  14969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14970. /* end confdefs.h. */
  14971. #include <sys/types.h>
  14972. #include <signal.h>
  14973. int
  14974. main ()
  14975. {
  14976. return *(signal (0, 0)) (0) == 1;
  14977. ;
  14978. return 0;
  14979. }
  14980. _ACEOF
  14981. if ac_fn_c_try_compile "$LINENO"; then :
  14982. ac_cv_type_signal=int
  14983. else
  14984. ac_cv_type_signal=void
  14985. fi
  14986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14987. fi
  14988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14989. $as_echo "$ac_cv_type_signal" >&6; }
  14990. cat >>confdefs.h <<_ACEOF
  14991. #define RETSIGTYPE $ac_cv_type_signal
  14992. _ACEOF
  14993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14994. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14995. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  14996. $as_echo_n "(cached) " >&6
  14997. else
  14998. if test "$cross_compiling" = yes; then :
  14999. ac_cv_func_stat_empty_string_bug=yes
  15000. else
  15001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15002. /* end confdefs.h. */
  15003. $ac_includes_default
  15004. int
  15005. main ()
  15006. {
  15007. struct stat sbuf;
  15008. return stat ("", &sbuf) == 0;
  15009. ;
  15010. return 0;
  15011. }
  15012. _ACEOF
  15013. if ac_fn_c_try_run "$LINENO"; then :
  15014. ac_cv_func_stat_empty_string_bug=no
  15015. else
  15016. ac_cv_func_stat_empty_string_bug=yes
  15017. fi
  15018. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15019. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15020. fi
  15021. fi
  15022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15023. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15024. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15025. case " $LIBOBJS " in
  15026. *" stat.$ac_objext "* ) ;;
  15027. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15028. ;;
  15029. esac
  15030. cat >>confdefs.h <<_ACEOF
  15031. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15032. _ACEOF
  15033. fi
  15034. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15035. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15036. ac_have_decl=1
  15037. else
  15038. ac_have_decl=0
  15039. fi
  15040. cat >>confdefs.h <<_ACEOF
  15041. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15042. _ACEOF
  15043. for ac_func in strerror_r
  15044. do :
  15045. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15046. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15047. cat >>confdefs.h <<_ACEOF
  15048. #define HAVE_STRERROR_R 1
  15049. _ACEOF
  15050. fi
  15051. done
  15052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15053. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15054. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15055. $as_echo_n "(cached) " >&6
  15056. else
  15057. ac_cv_func_strerror_r_char_p=no
  15058. if test $ac_cv_have_decl_strerror_r = yes; then
  15059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15060. /* end confdefs.h. */
  15061. $ac_includes_default
  15062. int
  15063. main ()
  15064. {
  15065. char buf[100];
  15066. char x = *strerror_r (0, buf, sizeof buf);
  15067. char *p = strerror_r (0, buf, sizeof buf);
  15068. return !p || x;
  15069. ;
  15070. return 0;
  15071. }
  15072. _ACEOF
  15073. if ac_fn_c_try_compile "$LINENO"; then :
  15074. ac_cv_func_strerror_r_char_p=yes
  15075. fi
  15076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15077. else
  15078. # strerror_r is not declared. Choose between
  15079. # systems that have relatively inaccessible declarations for the
  15080. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15081. # former has a strerror_r that returns char*, while the latter
  15082. # has a strerror_r that returns `int'.
  15083. # This test should segfault on the DEC system.
  15084. if test "$cross_compiling" = yes; then :
  15085. :
  15086. else
  15087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15088. /* end confdefs.h. */
  15089. $ac_includes_default
  15090. extern char *strerror_r ();
  15091. int
  15092. main ()
  15093. {
  15094. char buf[100];
  15095. char x = *strerror_r (0, buf, sizeof buf);
  15096. return ! isalpha (x);
  15097. ;
  15098. return 0;
  15099. }
  15100. _ACEOF
  15101. if ac_fn_c_try_run "$LINENO"; then :
  15102. ac_cv_func_strerror_r_char_p=yes
  15103. fi
  15104. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15105. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15106. fi
  15107. fi
  15108. fi
  15109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15110. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15111. if test $ac_cv_func_strerror_r_char_p = yes; then
  15112. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15113. fi
  15114. for ac_func in strftime
  15115. do :
  15116. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15117. if test "x$ac_cv_func_strftime" = xyes; then :
  15118. cat >>confdefs.h <<_ACEOF
  15119. #define HAVE_STRFTIME 1
  15120. _ACEOF
  15121. else
  15122. # strftime is in -lintl on SCO UNIX.
  15123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15124. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15125. if ${ac_cv_lib_intl_strftime+:} false; then :
  15126. $as_echo_n "(cached) " >&6
  15127. else
  15128. ac_check_lib_save_LIBS=$LIBS
  15129. LIBS="-lintl $LIBS"
  15130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15131. /* end confdefs.h. */
  15132. /* Override any GCC internal prototype to avoid an error.
  15133. Use char because int might match the return type of a GCC
  15134. builtin and then its argument prototype would still apply. */
  15135. #ifdef __cplusplus
  15136. extern "C"
  15137. #endif
  15138. char strftime ();
  15139. int
  15140. main ()
  15141. {
  15142. return strftime ();
  15143. ;
  15144. return 0;
  15145. }
  15146. _ACEOF
  15147. if ac_fn_c_try_link "$LINENO"; then :
  15148. ac_cv_lib_intl_strftime=yes
  15149. else
  15150. ac_cv_lib_intl_strftime=no
  15151. fi
  15152. rm -f core conftest.err conftest.$ac_objext \
  15153. conftest$ac_exeext conftest.$ac_ext
  15154. LIBS=$ac_check_lib_save_LIBS
  15155. fi
  15156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15157. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15158. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15159. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15160. LIBS="-lintl $LIBS"
  15161. fi
  15162. fi
  15163. done
  15164. for ac_func in vprintf
  15165. do :
  15166. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15167. if test "x$ac_cv_func_vprintf" = xyes; then :
  15168. cat >>confdefs.h <<_ACEOF
  15169. #define HAVE_VPRINTF 1
  15170. _ACEOF
  15171. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15172. if test "x$ac_cv_func__doprnt" = xyes; then :
  15173. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15174. fi
  15175. fi
  15176. done
  15177. 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
  15178. do :
  15179. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15180. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15181. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15182. cat >>confdefs.h <<_ACEOF
  15183. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15184. _ACEOF
  15185. fi
  15186. done
  15187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15188. $as_echo_n "checking for --enable-debug... " >&6; }
  15189. # Check whether --enable-debug was given.
  15190. if test "${enable_debug+set}" = set; then :
  15191. enableval=$enable_debug;
  15192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15193. $as_echo "yes" >&6; }
  15194. debug_defs="-DDEBUG -DMCC_DEBUG"
  15195. else
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15197. $as_echo "no" >&6; }
  15198. debug_defs=""
  15199. fi
  15200. # Used for legacy style packaging where we bundle all of the dependencies.
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15202. $as_echo_n "checking for --enable-bundle... " >&6; }
  15203. # Check whether --enable-bundle was given.
  15204. if test "${enable_bundle+set}" = set; then :
  15205. enableval=$enable_bundle;
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15207. $as_echo "yes" >&6; }
  15208. bundle="1";
  15209. else
  15210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15211. $as_echo "no" >&6; }
  15212. bundle="";
  15213. fi
  15214. if test "$bundle" = "1"; then
  15215. BUNDLE_TRUE=
  15216. BUNDLE_FALSE='#'
  15217. else
  15218. BUNDLE_TRUE='#'
  15219. BUNDLE_FALSE=
  15220. fi
  15221. # these enables are for optional or experimental features
  15222. if test -z "$enable_pam_passthru" ; then
  15223. enable_pam_passthru=yes # if not set on cmdline, set default
  15224. fi
  15225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15226. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15227. # Check whether --enable-pam-passthru was given.
  15228. if test "${enable_pam_passthru+set}" = set; then :
  15229. enableval=$enable_pam_passthru;
  15230. fi
  15231. if test "$enable_pam_passthru" = yes ; then
  15232. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15233. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15234. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15235. else
  15236. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15237. fi
  15238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15239. $as_echo "yes" >&6; }
  15240. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15241. else
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15243. $as_echo "no" >&6; }
  15244. fi
  15245. if test "$enable_pam_passthru" = "yes"; then
  15246. enable_pam_passthru_TRUE=
  15247. enable_pam_passthru_FALSE='#'
  15248. else
  15249. enable_pam_passthru_TRUE='#'
  15250. enable_pam_passthru_FALSE=
  15251. fi
  15252. if test -z "$enable_dna" ; then
  15253. enable_dna=yes # if not set on cmdline, set default
  15254. fi
  15255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15256. $as_echo_n "checking for --enable-dna... " >&6; }
  15257. # Check whether --enable-dna was given.
  15258. if test "${enable_dna+set}" = set; then :
  15259. enableval=$enable_dna;
  15260. fi
  15261. if test "$enable_dna" = yes ; then
  15262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15263. $as_echo "yes" >&6; }
  15264. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15265. else
  15266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15267. $as_echo "no" >&6; }
  15268. fi
  15269. if test "$enable_dna" = "yes"; then
  15270. enable_dna_TRUE=
  15271. enable_dna_FALSE='#'
  15272. else
  15273. enable_dna_TRUE='#'
  15274. enable_dna_FALSE=
  15275. fi
  15276. if test -z "$enable_ldapi" ; then
  15277. enable_ldapi=yes # if not set on cmdline, set default
  15278. fi
  15279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15280. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15281. # Check whether --enable-ldapi was given.
  15282. if test "${enable_ldapi+set}" = set; then :
  15283. enableval=$enable_ldapi;
  15284. fi
  15285. if test "$enable_ldapi" = yes ; then
  15286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15287. $as_echo "yes" >&6; }
  15288. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15289. else
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15291. $as_echo "no" >&6; }
  15292. fi
  15293. if test "$enable_ldapi" = "yes"; then
  15294. enable_ldapi_TRUE=
  15295. enable_ldapi_FALSE='#'
  15296. else
  15297. enable_ldapi_TRUE='#'
  15298. enable_ldapi_FALSE=
  15299. fi
  15300. if test -z "$enable_autobind" ; then
  15301. enable_autobind=no # if not set on cmdline, set default
  15302. fi
  15303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15304. $as_echo_n "checking for --enable-autobind... " >&6; }
  15305. # Check whether --enable-autobind was given.
  15306. if test "${enable_autobind+set}" = set; then :
  15307. enableval=$enable_autobind;
  15308. fi
  15309. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15311. $as_echo "yes" >&6; }
  15312. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15313. else
  15314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15315. $as_echo "no" >&6; }
  15316. fi
  15317. if test "$enable_autobind" = "yes"; then
  15318. enable_autobind_TRUE=
  15319. enable_autobind_FALSE='#'
  15320. else
  15321. enable_autobind_TRUE='#'
  15322. enable_autobind_FALSE=
  15323. fi
  15324. if test -z "$enable_auto_dn_suffix" ; then
  15325. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15326. fi
  15327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15328. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15329. # Check whether --enable-autobind was given.
  15330. if test "${enable_autobind+set}" = set; then :
  15331. enableval=$enable_autobind;
  15332. fi
  15333. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15335. $as_echo "yes" >&6; }
  15336. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15337. else
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15339. $as_echo "no" >&6; }
  15340. fi
  15341. if test "$enable_auto_dn_suffix" = "yes"; then
  15342. enable_auto_dn_suffix_TRUE=
  15343. enable_auto_dn_suffix_FALSE='#'
  15344. else
  15345. enable_auto_dn_suffix_TRUE='#'
  15346. enable_auto_dn_suffix_FALSE=
  15347. fi
  15348. if test -z "$enable_bitwise" ; then
  15349. enable_bitwise=yes # if not set on cmdline, set default
  15350. fi
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15352. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15353. # Check whether --enable-bitwise was given.
  15354. if test "${enable_bitwise+set}" = set; then :
  15355. enableval=$enable_bitwise;
  15356. fi
  15357. if test "$enable_bitwise" = yes ; then
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15359. $as_echo "yes" >&6; }
  15360. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15361. else
  15362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15363. $as_echo "no" >&6; }
  15364. fi
  15365. if test "$enable_bitwise" = "yes"; then
  15366. enable_bitwise_TRUE=
  15367. enable_bitwise_FALSE='#'
  15368. else
  15369. enable_bitwise_TRUE='#'
  15370. enable_bitwise_FALSE=
  15371. fi
  15372. if test -z "$enable_presence" ; then
  15373. enable_presence=no # if not set on cmdline, set default
  15374. fi
  15375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15376. $as_echo_n "checking for --enable-presence... " >&6; }
  15377. # Check whether --enable-presence was given.
  15378. if test "${enable_presence+set}" = set; then :
  15379. enableval=$enable_presence;
  15380. fi
  15381. if test "$enable_presence" = yes ; then
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15383. $as_echo "yes" >&6; }
  15384. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15385. else
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15387. $as_echo "no" >&6; }
  15388. fi
  15389. if test "$enable_presence" = "yes"; then
  15390. enable_presence_TRUE=
  15391. enable_presence_FALSE='#'
  15392. else
  15393. enable_presence_TRUE='#'
  15394. enable_presence_FALSE=
  15395. fi
  15396. if test -z "$enable_acctpolicy" ; then
  15397. enable_acctpolicy=yes # if not set on cmdline, set default
  15398. fi
  15399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15400. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15401. # Check whether --enable-acctpolicy was given.
  15402. if test "${enable_acctpolicy+set}" = set; then :
  15403. enableval=$enable_acctpolicy;
  15404. fi
  15405. if test "$enable_acctpolicy" = yes ; then
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15407. $as_echo "yes" >&6; }
  15408. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15409. else
  15410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15411. $as_echo "no" >&6; }
  15412. fi
  15413. if test "$enable_acctpolicy" = "yes"; then
  15414. enable_acctpolicy_TRUE=
  15415. enable_acctpolicy_FALSE='#'
  15416. else
  15417. enable_acctpolicy_TRUE='#'
  15418. enable_acctpolicy_FALSE=
  15419. fi
  15420. if test -z "$enable_posix_winsync" ; then
  15421. enable_posix_winsync=yes # if not set on cmdline, set default
  15422. fi
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15424. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15425. # Check whether --enable-posix_winsync was given.
  15426. if test "${enable_posix_winsync+set}" = set; then :
  15427. enableval=$enable_posix_winsync;
  15428. fi
  15429. if test "$enable_posix_winsync" = yes ; then
  15430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15431. $as_echo "yes" >&6; }
  15432. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15433. else
  15434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15435. $as_echo "no" >&6; }
  15436. fi
  15437. if test "$enable_posix_winsync" = "yes"; then
  15438. enable_posix_winsync_TRUE=
  15439. enable_posix_winsync_FALSE='#'
  15440. else
  15441. enable_posix_winsync_TRUE='#'
  15442. enable_posix_winsync_FALSE=
  15443. fi
  15444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-nunc-stans" >&5
  15445. $as_echo_n "checking for --enable-nunc-stans... " >&6; }
  15446. # Check whether --enable-nunc_stans was given.
  15447. if test "${enable_nunc_stans+set}" = set; then :
  15448. enableval=$enable_nunc_stans;
  15449. fi
  15450. if test "$enable_nunc_stans" = yes ; then
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15452. $as_echo "yes" >&6; }
  15453. $as_echo "#define ENABLE_NUNC_STANS 1" >>confdefs.h
  15454. else
  15455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15456. $as_echo "no" >&6; }
  15457. fi
  15458. if test "$enable_nunc_stans" = "yes"; then
  15459. enable_nunc_stans_TRUE=
  15460. enable_nunc_stans_FALSE='#'
  15461. else
  15462. enable_nunc_stans_TRUE='#'
  15463. enable_nunc_stans_FALSE=
  15464. fi
  15465. # the default prefix - override with --prefix or --with-fhs
  15466. # BEGIN COPYRIGHT BLOCK
  15467. # Copyright (C) 2006 Red Hat, Inc.
  15468. # All rights reserved.
  15469. #
  15470. # This program is free software; you can redistribute it and/or
  15471. # modify it under the terms of the GNU General Public License
  15472. # as published by the Free Software Foundation; either version 2
  15473. # of the License, or (at your option) any later version.
  15474. #
  15475. # This program is distributed in the hope that it will be useful,
  15476. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15477. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15478. # GNU General Public License for more details.
  15479. #
  15480. # You should have received a copy of the GNU General Public License
  15481. # along with this program; if not, write to the Free Software
  15482. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15483. #
  15484. # END COPYRIGHT BLOCK
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15486. $as_echo "$as_me: checking for FHS..." >&6;}
  15487. # check for --with-fhs
  15488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15489. $as_echo_n "checking for --with-fhs... " >&6; }
  15490. # Check whether --with-fhs was given.
  15491. if test "${with_fhs+set}" = set; then :
  15492. withval=$with_fhs;
  15493. with_fhs=yes
  15494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15495. $as_echo "yes" >&6; }
  15496. else
  15497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15498. $as_echo "no" >&6; }
  15499. fi
  15500. if test "$with_fhs" = "yes"; then
  15501. $as_echo "#define IS_FHS 1" >>confdefs.h
  15502. fi
  15503. # check for --with-fhs-opt
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15505. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15506. # Check whether --with-fhs-opt was given.
  15507. if test "${with_fhs_opt+set}" = set; then :
  15508. withval=$with_fhs_opt;
  15509. with_fhs_opt=yes
  15510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15511. $as_echo "yes" >&6; }
  15512. else
  15513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15514. $as_echo "no" >&6; }
  15515. fi
  15516. if test "$with_fhs_opt" = "yes"; then
  15517. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15518. fi
  15519. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15520. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15521. fi
  15522. localrundir='/run'
  15523. # installation paths - by default, we store everything
  15524. # under the prefix. The with-fhs option will use /usr,
  15525. # /etc, and /var. The with-fhs-opt option will use the
  15526. # prefix, but it's sysconfdir and localstatedir will be
  15527. # /etc/opt, and /var/opt.
  15528. if test "$with_fhs_opt" = "yes"; then
  15529. # Override sysconfdir and localstatedir if FHS optional
  15530. # package was requested.
  15531. sysconfdir='/etc/opt'
  15532. localstatedir='/var/opt'
  15533. localrundir='/var/opt/run'
  15534. # relative to datadir
  15535. sampledatadir=/data
  15536. # relative to datadir
  15537. scripttemplatedir=/script-templates
  15538. # relative to datadir
  15539. updatedir=/updates
  15540. # relative to libdir
  15541. serverdir=
  15542. # relative to includedir
  15543. serverincdir=
  15544. # relative to libdir
  15545. serverplugindir=/plugins
  15546. # relative to datadir
  15547. infdir=/inf
  15548. # relative to datadir
  15549. mibdir=/mibs
  15550. # location of property/resource files, relative to datadir
  15551. propertydir=/properties
  15552. # relative to libdir
  15553. perldir=/perl
  15554. # relative to libdir
  15555. pythondir=/python
  15556. else
  15557. if test "$with_fhs" = "yes"; then
  15558. ac_default_prefix=/usr
  15559. prefix=$ac_default_prefix
  15560. exec_prefix=$prefix
  15561. sysconfdir='/etc'
  15562. localstatedir='/var'
  15563. localrundir='/run'
  15564. fi
  15565. # relative to datadir
  15566. sampledatadir=/$PACKAGE_NAME/data
  15567. # relative to datadir
  15568. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15569. # relative to datadir
  15570. updatedir=/$PACKAGE_NAME/updates
  15571. # relative to libdir
  15572. serverdir=/$PACKAGE_NAME
  15573. # relative to includedir
  15574. serverincdir=/$PACKAGE_NAME
  15575. # relative to libdir
  15576. serverplugindir=/$PACKAGE_NAME/plugins
  15577. # relative to datadir
  15578. infdir=/$PACKAGE_NAME/inf
  15579. # relative to datadir
  15580. mibdir=/$PACKAGE_NAME/mibs
  15581. # location of property/resource files, relative to datadir
  15582. propertydir=/$PACKAGE_NAME/properties
  15583. # relative to libdir
  15584. perldir=/$PACKAGE_NAME/perl
  15585. # relative to libdir
  15586. pythondir=/$PACKAGE_NAME/python
  15587. fi
  15588. # if mandir is the default value, override it
  15589. # otherwise, the user must have set it - just use it
  15590. if test X"$mandir" = X'${prefix}/man' ; then
  15591. mandir='$(datadir)/man'
  15592. fi
  15593. # Shared paths for all layouts
  15594. # relative to sysconfdir
  15595. configdir=/$PACKAGE_NAME/config
  15596. # relative to sysconfdir
  15597. schemadir=/$PACKAGE_NAME/schema
  15598. # default user, group
  15599. defaultuser=nobody
  15600. defaultgroup=nobody
  15601. if test -z "$with_tmpfiles_d" ; then
  15602. if test -d $sysconfdir/tmpfiles.d ; then
  15603. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15604. fi
  15605. fi
  15606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15607. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15608. # Check whether --with-tmpfiles-d was given.
  15609. if test "${with_tmpfiles_d+set}" = set; then :
  15610. withval=$with_tmpfiles_d;
  15611. fi
  15612. if test "$with_tmpfiles_d" = yes ; then
  15613. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15614. elif test "$with_tmpfiles_d" = no ; then
  15615. with_tmpfiles_d=
  15616. else
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15618. $as_echo "$with_tmpfiles_d" >&6; }
  15619. fi
  15620. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15621. if test -n "$ac_tool_prefix"; then
  15622. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15623. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15625. $as_echo_n "checking for $ac_word... " >&6; }
  15626. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15627. $as_echo_n "(cached) " >&6
  15628. else
  15629. case $PKG_CONFIG in
  15630. [\\/]* | ?:[\\/]*)
  15631. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15632. ;;
  15633. *)
  15634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15635. for as_dir in $PATH
  15636. do
  15637. IFS=$as_save_IFS
  15638. test -z "$as_dir" && as_dir=.
  15639. for ac_exec_ext in '' $ac_executable_extensions; do
  15640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15641. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15643. break 2
  15644. fi
  15645. done
  15646. done
  15647. IFS=$as_save_IFS
  15648. ;;
  15649. esac
  15650. fi
  15651. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15652. if test -n "$PKG_CONFIG"; then
  15653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15654. $as_echo "$PKG_CONFIG" >&6; }
  15655. else
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15657. $as_echo "no" >&6; }
  15658. fi
  15659. fi
  15660. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15661. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15662. # Extract the first word of "pkg-config", so it can be a program name with args.
  15663. set dummy pkg-config; ac_word=$2
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15665. $as_echo_n "checking for $ac_word... " >&6; }
  15666. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15667. $as_echo_n "(cached) " >&6
  15668. else
  15669. case $ac_pt_PKG_CONFIG in
  15670. [\\/]* | ?:[\\/]*)
  15671. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15672. ;;
  15673. *)
  15674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15675. for as_dir in $PATH
  15676. do
  15677. IFS=$as_save_IFS
  15678. test -z "$as_dir" && as_dir=.
  15679. for ac_exec_ext in '' $ac_executable_extensions; do
  15680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15681. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15683. break 2
  15684. fi
  15685. done
  15686. done
  15687. IFS=$as_save_IFS
  15688. ;;
  15689. esac
  15690. fi
  15691. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15692. if test -n "$ac_pt_PKG_CONFIG"; then
  15693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15694. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15695. else
  15696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15697. $as_echo "no" >&6; }
  15698. fi
  15699. if test "x$ac_pt_PKG_CONFIG" = x; then
  15700. PKG_CONFIG=""
  15701. else
  15702. case $cross_compiling:$ac_tool_warned in
  15703. yes:)
  15704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15705. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15706. ac_tool_warned=yes ;;
  15707. esac
  15708. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15709. fi
  15710. else
  15711. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15712. fi
  15713. fi
  15714. if test -n "$PKG_CONFIG"; then
  15715. _pkg_min_version=0.9.0
  15716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15717. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15718. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15720. $as_echo "yes" >&6; }
  15721. else
  15722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15723. $as_echo "no" >&6; }
  15724. PKG_CONFIG=""
  15725. fi
  15726. fi
  15727. if test -n "$PKG_CONFIG" ; then
  15728. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15729. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15730. fi
  15731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15732. $as_echo_n "checking for --with-perldir... " >&6; }
  15733. # Check whether --with-perldir was given.
  15734. if test "${with_perldir+set}" = set; then :
  15735. withval=$with_perldir;
  15736. fi
  15737. if test -n "$with_perldir"; then
  15738. if test "$with_perldir" = yes ; then
  15739. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15740. elif test "$with_perldir" = no ; then
  15741. with_perldir=
  15742. else
  15743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15744. $as_echo "$with_perldir" >&6; }
  15745. fi
  15746. else
  15747. with_perldir=
  15748. fi
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pythondir" >&5
  15750. $as_echo_n "checking for --with-pythondir... " >&6; }
  15751. # Check whether --with-pythondir was given.
  15752. if test "${with_pythondir+set}" = set; then :
  15753. withval=$with_pythondir;
  15754. fi
  15755. if test -n "$with_pythondir"; then
  15756. if test "$with_pythondir" = yes ; then
  15757. as_fn_error $? "You must specify --with-pythondir=/full/path/to/python" "$LINENO" 5
  15758. elif test "$with_pythondir" = no ; then
  15759. with_pythondir=
  15760. else
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pythondir" >&5
  15762. $as_echo "$with_pythondir" >&6; }
  15763. fi
  15764. else
  15765. with_pythondir=
  15766. fi
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15768. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15769. # Check whether --with-systemdsystemunitdir was given.
  15770. if test "${with_systemdsystemunitdir+set}" = set; then :
  15771. withval=$with_systemdsystemunitdir;
  15772. fi
  15773. if test "$with_systemdsystemunitdir" = yes ; then
  15774. if test -n "$default_systemdsystemunitdir" ; then
  15775. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15777. $as_echo "$with_systemdsystemunitdir" >&6; }
  15778. else
  15779. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15780. fi
  15781. elif test "$with_systemdsystemunitdir" = no ; then
  15782. with_systemdsystemunitdir=
  15783. else
  15784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15785. $as_echo "$with_systemdsystemunitdir" >&6; }
  15786. fi
  15787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15788. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15789. # Check whether --with-systemdsystemconfdir was given.
  15790. if test "${with_systemdsystemconfdir+set}" = set; then :
  15791. withval=$with_systemdsystemconfdir;
  15792. fi
  15793. if test "$with_systemdsystemconfdir" = yes ; then
  15794. if test -n "$default_systemdsystemconfdir" ; then
  15795. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15797. $as_echo "$with_systemdsystemconfdir" >&6; }
  15798. else
  15799. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15800. fi
  15801. elif test "$with_systemdsystemconfdir" = no ; then
  15802. with_systemdsystemconfdir=
  15803. else
  15804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15805. $as_echo "$with_systemdsystemconfdir" >&6; }
  15806. fi
  15807. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15808. if test -z "$with_systemdgroupname" ; then
  15809. with_systemdgroupname=$PACKAGE_NAME.target
  15810. fi
  15811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15812. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15813. # Check whether --with-systemdgroupname was given.
  15814. if test "${with_systemdgroupname+set}" = set; then :
  15815. withval=$with_systemdgroupname;
  15816. fi
  15817. if test "$with_systemdgroupname" = yes ; then
  15818. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15819. elif test "$with_systemdgroupname" = no ; then
  15820. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15821. else
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15823. $as_echo "$with_systemdgroupname" >&6; }
  15824. fi
  15825. fi
  15826. # check for --with-instconfigdir
  15827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15828. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15829. # Check whether --with-instconfigdir was given.
  15830. if test "${with_instconfigdir+set}" = set; then :
  15831. withval=$with_instconfigdir;
  15832. if test $withval = yes ; then
  15833. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15834. fi
  15835. instconfigdir="$withval"
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15837. $as_echo "$withval" >&6; }
  15838. else
  15839. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15841. $as_echo "no" >&6; }
  15842. fi
  15843. # WINNT should be true if building on Windows system not using
  15844. # cygnus, mingw, or the like and using cmd.exe as the shell
  15845. if false; then
  15846. WINNT_TRUE=
  15847. WINNT_FALSE='#'
  15848. else
  15849. WINNT_TRUE='#'
  15850. WINNT_FALSE=
  15851. fi
  15852. # Deal with platform dependent defines
  15853. # initdir is the location for the SysV init scripts - very heavily platform
  15854. # dependent and not specified in fhs or lsb
  15855. # and not used if systemd is used
  15856. initdir='$(sysconfdir)/rc.d'
  15857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15858. $as_echo_n "checking for --with-initddir... " >&6; }
  15859. # Check whether --with-initddir was given.
  15860. if test "${with_initddir+set}" = set; then :
  15861. withval=$with_initddir;
  15862. if test "$withval" = yes -o "$withval" = no ; then
  15863. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15864. fi
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15866. $as_echo "$withval" >&6; }
  15867. else
  15868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15869. $as_echo "no" >&6; }
  15870. fi
  15871. # on most platforms, we will just use perl from PATH
  15872. # On some platforms, we cannot. Why not just use any old
  15873. # perl? Because of perldap. We use a perldap that is
  15874. # compiled to either 32bit or 64bit, so we must use a native
  15875. # perl binary compiled with the same bitsize. On Solaris
  15876. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15877. # those with our 64 bit compiled product.
  15878. if test -n "$with_perldir"; then
  15879. perlexec="$with_perldir/perl"
  15880. else
  15881. perlexec='/usr/bin/env perl'
  15882. fi
  15883. # we use stty in perl scripts to disable password echo
  15884. # this doesn't work unless the full absolute path of the
  15885. # stty command is used e.g. system("stty -echo") does not
  15886. # work but system("/bin/stty -echo") does work
  15887. # since the path of stty may not be the same on all
  15888. # platforms, we set the default here to /bin/stty and
  15889. # allow that value to be overridden in the platform
  15890. # specific section below
  15891. sttyexec=/bin/stty
  15892. case $host in
  15893. *-*-linux*)
  15894. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15895. $as_echo "#define Linux 1" >>confdefs.h
  15896. $as_echo "#define LINUX 1" >>confdefs.h
  15897. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15898. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15899. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15900. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15901. platform="linux"
  15902. initdir='$(sysconfdir)/rc.d/init.d'
  15903. # do arch specific linux stuff here
  15904. case $host in
  15905. i*86-*-linux*)
  15906. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15907. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15908. ;;
  15909. x86_64-*-linux*)
  15910. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15911. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15912. ;;
  15913. aarch64-*-linux*)
  15914. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15915. ;;
  15916. arm*-linux*)
  15917. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15918. ;;
  15919. esac
  15920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15921. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15923. /* end confdefs.h. */
  15924. int
  15925. main ()
  15926. {
  15927. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15928. ;
  15929. return 0;
  15930. }
  15931. _ACEOF
  15932. if ac_fn_c_try_link "$LINENO"; then :
  15933. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15935. $as_echo "yes" >&6; }
  15936. else
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15938. $as_echo "no" >&6; }
  15939. fi
  15940. rm -f core conftest.err conftest.$ac_objext \
  15941. conftest$ac_exeext conftest.$ac_ext
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15943. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15945. /* end confdefs.h. */
  15946. int
  15947. main ()
  15948. {
  15949. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15950. ;
  15951. return 0;
  15952. }
  15953. _ACEOF
  15954. if ac_fn_c_try_link "$LINENO"; then :
  15955. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15957. $as_echo "yes" >&6; }
  15958. else
  15959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15960. $as_echo "no" >&6; }
  15961. fi
  15962. rm -f core conftest.err conftest.$ac_objext \
  15963. conftest$ac_exeext conftest.$ac_ext
  15964. # some programs use the native thread library directly
  15965. THREADLIB=-lpthread
  15966. THREADLIB=$THREADLIB
  15967. LIBCRYPT=-lcrypt
  15968. LIBCRYPT=$LIBCRYPT
  15969. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15970. ;;
  15971. ia64-hp-hpux*)
  15972. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15973. $as_echo "#define hpux 1" >>confdefs.h
  15974. $as_echo "#define HPUX 1" >>confdefs.h
  15975. $as_echo "#define HPUX11 1" >>confdefs.h
  15976. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15977. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15978. $as_echo "#define OS_hpux 1" >>confdefs.h
  15979. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15980. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15981. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15982. # assume 64 bit
  15983. perlexec='/opt/perl_64/bin/perl'
  15984. platform="hpux"
  15985. initconfigdir="/$PACKAGE_NAME/config"
  15986. # HPUX doesn't use /etc for this
  15987. initdir=/init.d
  15988. ;;
  15989. hppa*-hp-hpux*)
  15990. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15991. $as_echo "#define hpux 1" >>confdefs.h
  15992. $as_echo "#define HPUX 1" >>confdefs.h
  15993. $as_echo "#define HPUX11 1" >>confdefs.h
  15994. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15995. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15996. $as_echo "#define OS_hpux 1" >>confdefs.h
  15997. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15998. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15999. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  16000. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16001. # assume 64 bit
  16002. initconfigdir="/$PACKAGE_NAME/config"
  16003. perlexec='/opt/perl_64/bin/perl'
  16004. platform="hpux"
  16005. # HPUX doesn't use /etc for this
  16006. initdir=/init.d
  16007. ;;
  16008. *-*-solaris*)
  16009. $as_echo "#define XP_UNIX 1" >>confdefs.h
  16010. $as_echo "#define SVR4 1" >>confdefs.h
  16011. $as_echo "#define __svr4 1" >>confdefs.h
  16012. $as_echo "#define __svr4__ 1" >>confdefs.h
  16013. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  16014. $as_echo "#define SOLARIS 1" >>confdefs.h
  16015. $as_echo "#define OS_solaris 1" >>confdefs.h
  16016. $as_echo "#define sunos5 1" >>confdefs.h
  16017. $as_echo "#define OSVERSION 509" >>confdefs.h
  16018. $as_echo "#define _REENTRANT 1" >>confdefs.h
  16019. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  16020. LIBSOCKET=-lsocket
  16021. LIBSOCKET=$LIBSOCKET
  16022. LIBNSL=-lnsl
  16023. LIBNSL=$LIBNSL
  16024. LIBDL=-ldl
  16025. LIBDL=$LIBDL
  16026. LIBCSTD=-lCstd
  16027. LIBCSTD=$LIBCSTD
  16028. LIBCRUN=-lCrun
  16029. LIBCRUN=$LIBCRUN
  16030. platform="solaris"
  16031. initdir='$(sysconfdir)/init.d'
  16032. case $host in
  16033. i?86-*-solaris2.1[0-9]*)
  16034. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  16035. ;;
  16036. sparc-*-solaris*)
  16037. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16038. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  16039. TARGET='SPARC'
  16040. ;;
  16041. esac
  16042. ;;
  16043. *)
  16044. platform=""
  16045. ;;
  16046. esac
  16047. # cmd line overrides default setting above
  16048. if test -n "$with_initddir" ; then
  16049. initdir="$with_initddir"
  16050. fi
  16051. # sysv init scripts not used when systemd is used
  16052. # set default initconfigdir if not already set
  16053. # value will be set so as to be relative to $(sysconfdir)
  16054. if test -z "$initconfigdir" ; then
  16055. if test -d /etc/sysconfig ; then
  16056. initconfigdir=/sysconfig
  16057. elif test -d /etc/default ; then
  16058. initconfigdir=/default
  16059. else
  16060. initconfigdir="/$PACKAGE_NAME/config"
  16061. fi
  16062. fi
  16063. if test "$platform" = "hpux"; then
  16064. HPUX_TRUE=
  16065. HPUX_FALSE='#'
  16066. else
  16067. HPUX_TRUE='#'
  16068. HPUX_FALSE=
  16069. fi
  16070. if test "$platform" = "solaris"; then
  16071. SOLARIS_TRUE=
  16072. SOLARIS_FALSE='#'
  16073. else
  16074. SOLARIS_TRUE='#'
  16075. SOLARIS_FALSE=
  16076. fi
  16077. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  16078. SYSTEMD_TRUE=
  16079. SYSTEMD_FALSE='#'
  16080. else
  16081. SYSTEMD_TRUE='#'
  16082. SYSTEMD_FALSE=
  16083. fi
  16084. # Check for library dependencies
  16085. # BEGIN COPYRIGHT BLOCK
  16086. # Copyright (C) 2007 Red Hat, Inc.
  16087. # All rights reserved.
  16088. #
  16089. # This program is free software; you can redistribute it and/or
  16090. # modify it under the terms of the GNU General Public License
  16091. # as published by the Free Software Foundation; either version 2
  16092. # of the License, or (at your option) any later version.
  16093. #
  16094. # This program is distributed in the hope that it will be useful,
  16095. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16096. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16097. # GNU General Public License for more details.
  16098. #
  16099. # You should have received a copy of the GNU General Public License
  16100. # along with this program; if not, write to the Free Software
  16101. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16102. #
  16103. # END COPYRIGHT BLOCK
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16105. $as_echo "$as_me: checking for NSPR..." >&6;}
  16106. # check for --with-nspr
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16108. $as_echo_n "checking for --with-nspr... " >&6; }
  16109. # Check whether --with-nspr was given.
  16110. if test "${with_nspr+set}" = set; then :
  16111. withval=$with_nspr;
  16112. if test "$withval" = "yes"
  16113. then
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16115. $as_echo "yes" >&6; }
  16116. elif test "$withval" = "no"
  16117. then
  16118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16119. $as_echo "no" >&6; }
  16120. as_fn_error $? "NSPR is required." "$LINENO" 5
  16121. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16122. then
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16124. $as_echo "using $withval" >&6; }
  16125. NSPRDIR=$withval
  16126. nspr_inc="-I$NSPRDIR/include"
  16127. nspr_lib="-L$NSPRDIR/lib"
  16128. nspr_libdir="$NSPRDIR/lib"
  16129. else
  16130. echo
  16131. as_fn_error $? "$withval not found" "$LINENO" 5
  16132. fi
  16133. else
  16134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16135. $as_echo "yes" >&6; }
  16136. fi
  16137. # check for --with-nspr-inc
  16138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16139. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16140. # Check whether --with-nspr-inc was given.
  16141. if test "${with_nspr_inc+set}" = set; then :
  16142. withval=$with_nspr_inc;
  16143. if test -e "$withval"/nspr.h
  16144. then
  16145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16146. $as_echo "using $withval" >&6; }
  16147. nspr_inc="-I$withval"
  16148. else
  16149. echo
  16150. as_fn_error $? "$withval not found" "$LINENO" 5
  16151. fi
  16152. else
  16153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16154. $as_echo "no" >&6; }
  16155. fi
  16156. # check for --with-nspr-lib
  16157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16158. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16159. # Check whether --with-nspr-lib was given.
  16160. if test "${with_nspr_lib+set}" = set; then :
  16161. withval=$with_nspr_lib;
  16162. if test -d "$withval"
  16163. then
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16165. $as_echo "using $withval" >&6; }
  16166. nspr_lib="-L$withval"
  16167. nspr_libdir="$withval"
  16168. else
  16169. echo
  16170. as_fn_error $? "$withval not found" "$LINENO" 5
  16171. fi
  16172. else
  16173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16174. $as_echo "no" >&6; }
  16175. fi
  16176. # if NSPR is not found yet, try pkg-config
  16177. # last resort
  16178. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16179. # Extract the first word of "pkg-config", so it can be a program name with args.
  16180. set dummy pkg-config; ac_word=$2
  16181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16182. $as_echo_n "checking for $ac_word... " >&6; }
  16183. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16184. $as_echo_n "(cached) " >&6
  16185. else
  16186. case $PKG_CONFIG in
  16187. [\\/]* | ?:[\\/]*)
  16188. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16189. ;;
  16190. *)
  16191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16192. for as_dir in $PATH
  16193. do
  16194. IFS=$as_save_IFS
  16195. test -z "$as_dir" && as_dir=.
  16196. for ac_exec_ext in '' $ac_executable_extensions; do
  16197. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16198. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16200. break 2
  16201. fi
  16202. done
  16203. done
  16204. IFS=$as_save_IFS
  16205. ;;
  16206. esac
  16207. fi
  16208. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16209. if test -n "$PKG_CONFIG"; then
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16211. $as_echo "$PKG_CONFIG" >&6; }
  16212. else
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16214. $as_echo "no" >&6; }
  16215. fi
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16217. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16218. if test -n "$PKG_CONFIG"; then
  16219. if $PKG_CONFIG --exists nspr; then
  16220. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16221. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16222. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16224. $as_echo "using system NSPR" >&6; }
  16225. elif $PKG_CONFIG --exists dirsec-nspr; then
  16226. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16227. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16228. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16230. $as_echo "using system dirsec NSPR" >&6; }
  16231. else
  16232. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16233. fi
  16234. fi
  16235. fi
  16236. # BEGIN COPYRIGHT BLOCK
  16237. # Copyright (C) 2007 Red Hat, Inc.
  16238. # All rights reserved.
  16239. #
  16240. # This program is free software; you can redistribute it and/or
  16241. # modify it under the terms of the GNU General Public License
  16242. # as published by the Free Software Foundation; either version 2
  16243. # of the License, or (at your option) any later version.
  16244. #
  16245. # This program is distributed in the hope that it will be useful,
  16246. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16247. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16248. # GNU General Public License for more details.
  16249. #
  16250. # You should have received a copy of the GNU General Public License
  16251. # along with this program; if not, write to the Free Software
  16252. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16253. #
  16254. # END COPYRIGHT BLOCK
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16256. $as_echo "$as_me: checking for NSS..." >&6;}
  16257. # check for --with-nss
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16259. $as_echo_n "checking for --with-nss... " >&6; }
  16260. # Check whether --with-nss was given.
  16261. if test "${with_nss+set}" = set; then :
  16262. withval=$with_nss;
  16263. if test "$withval" = "yes"
  16264. then
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16266. $as_echo "yes" >&6; }
  16267. elif test "$withval" = "no"
  16268. then
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16270. $as_echo "no" >&6; }
  16271. as_fn_error $? "NSS is required." "$LINENO" 5
  16272. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16273. then
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16275. $as_echo "using $withval" >&6; }
  16276. NSSDIR=$withval
  16277. nss_inc="-I$NSSDIR/include"
  16278. nss_lib="-L$NSSDIR/lib"
  16279. nss_libdir="$NSSDIR/lib"
  16280. else
  16281. echo
  16282. as_fn_error $? "$withval not found" "$LINENO" 5
  16283. fi
  16284. else
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16286. $as_echo "yes" >&6; }
  16287. fi
  16288. # check for --with-nss-inc
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16290. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16291. # Check whether --with-nss-inc was given.
  16292. if test "${with_nss_inc+set}" = set; then :
  16293. withval=$with_nss_inc;
  16294. if test -e "$withval"/nss.h
  16295. then
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16297. $as_echo "using $withval" >&6; }
  16298. nss_inc="-I$withval"
  16299. else
  16300. echo
  16301. as_fn_error $? "$withval not found" "$LINENO" 5
  16302. fi
  16303. else
  16304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16305. $as_echo "no" >&6; }
  16306. fi
  16307. # check for --with-nss-lib
  16308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16309. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16310. # Check whether --with-nss-lib was given.
  16311. if test "${with_nss_lib+set}" = set; then :
  16312. withval=$with_nss_lib;
  16313. if test -d "$withval"
  16314. then
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16316. $as_echo "using $withval" >&6; }
  16317. nss_lib="-L$withval"
  16318. nss_libdir="$withval"
  16319. else
  16320. echo
  16321. as_fn_error $? "$withval not found" "$LINENO" 5
  16322. fi
  16323. else
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16325. $as_echo "no" >&6; }
  16326. fi
  16327. # if NSS is not found yet, try pkg-config
  16328. # last resort
  16329. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16330. # Extract the first word of "pkg-config", so it can be a program name with args.
  16331. set dummy pkg-config; ac_word=$2
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16333. $as_echo_n "checking for $ac_word... " >&6; }
  16334. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16335. $as_echo_n "(cached) " >&6
  16336. else
  16337. case $PKG_CONFIG in
  16338. [\\/]* | ?:[\\/]*)
  16339. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16340. ;;
  16341. *)
  16342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16343. for as_dir in $PATH
  16344. do
  16345. IFS=$as_save_IFS
  16346. test -z "$as_dir" && as_dir=.
  16347. for ac_exec_ext in '' $ac_executable_extensions; do
  16348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16349. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16351. break 2
  16352. fi
  16353. done
  16354. done
  16355. IFS=$as_save_IFS
  16356. ;;
  16357. esac
  16358. fi
  16359. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16360. if test -n "$PKG_CONFIG"; then
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16362. $as_echo "$PKG_CONFIG" >&6; }
  16363. else
  16364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16365. $as_echo "no" >&6; }
  16366. fi
  16367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16368. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16369. if test -n "$PKG_CONFIG"; then
  16370. if $PKG_CONFIG --exists nss; then
  16371. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16372. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16373. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16375. $as_echo "using system NSS" >&6; }
  16376. elif $PKG_CONFIG --exists dirsec-nss; then
  16377. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16378. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16379. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16381. $as_echo "using system dirsec NSS" >&6; }
  16382. else
  16383. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16384. fi
  16385. fi
  16386. fi
  16387. # BEGIN COPYRIGHT BLOCK
  16388. # Copyright (C) 2009 Red Hat, Inc.
  16389. # All rights reserved.
  16390. #
  16391. # This program is free software; you can redistribute it and/or
  16392. # modify it under the terms of the GNU General Public License
  16393. # as published by the Free Software Foundation; either version 2
  16394. # of the License, or (at your option) any later version.
  16395. #
  16396. # This program is distributed in the hope that it will be useful,
  16397. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16398. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16399. # GNU General Public License for more details.
  16400. #
  16401. # You should have received a copy of the GNU General Public License
  16402. # along with this program; if not, write to the Free Software
  16403. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16404. #
  16405. # END COPYRIGHT BLOCK
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16407. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16408. # check for --with-openldap
  16409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16410. $as_echo_n "checking for --with-openldap... " >&6; }
  16411. # Check whether --with-openldap was given.
  16412. if test "${with_openldap+set}" = set; then :
  16413. withval=$with_openldap;
  16414. if test "$withval" = yes
  16415. then
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16417. $as_echo "using system OpenLDAP" >&6; }
  16418. elif test "$withval" = no
  16419. then
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16421. $as_echo "no" >&6; }
  16422. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16423. then
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16425. $as_echo "using $withval" >&6; }
  16426. OPENLDAPDIR=$withval
  16427. openldap_incdir="$OPENLDAPDIR/include"
  16428. openldap_inc="-I$openldap_incdir"
  16429. openldap_lib="-L$OPENLDAPDIR/lib"
  16430. openldap_libdir="$OPENLDAPDIR/lib"
  16431. openldap_bindir="$OPENLDAPDIR/bin"
  16432. with_openldap=yes
  16433. else
  16434. echo
  16435. as_fn_error $? "$withval not found" "$LINENO" 5
  16436. fi
  16437. else
  16438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16439. $as_echo "no" >&6; }
  16440. fi
  16441. # check for --with-openldap-inc
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16443. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16444. # Check whether --with-openldap-inc was given.
  16445. if test "${with_openldap_inc+set}" = set; then :
  16446. withval=$with_openldap_inc;
  16447. if test -e "$withval"/ldap.h
  16448. then
  16449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16450. $as_echo "using $withval" >&6; }
  16451. openldap_incdir="$withval"
  16452. openldap_inc="-I$withval"
  16453. with_openldap=yes
  16454. else
  16455. echo
  16456. as_fn_error $? "$withval not found" "$LINENO" 5
  16457. fi
  16458. else
  16459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16460. $as_echo "no" >&6; }
  16461. fi
  16462. # check for --with-openldap-lib
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16464. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16465. # Check whether --with-openldap-lib was given.
  16466. if test "${with_openldap_lib+set}" = set; then :
  16467. withval=$with_openldap_lib;
  16468. if test -d "$withval"
  16469. then
  16470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16471. $as_echo "using $withval" >&6; }
  16472. openldap_lib="-L$withval"
  16473. openldap_libdir="$withval"
  16474. with_openldap=yes
  16475. else
  16476. echo
  16477. as_fn_error $? "$withval not found" "$LINENO" 5
  16478. fi
  16479. else
  16480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16481. $as_echo "no" >&6; }
  16482. fi
  16483. # check for --with-openldap-bin
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16485. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16486. # Check whether --with-openldap-bin was given.
  16487. if test "${with_openldap_bin+set}" = set; then :
  16488. withval=$with_openldap_bin;
  16489. if test -d "$withval"
  16490. then
  16491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16492. $as_echo "using $withval" >&6; }
  16493. openldap_bindir="$withval"
  16494. with_openldap=yes
  16495. else
  16496. echo
  16497. as_fn_error $? "$withval not found" "$LINENO" 5
  16498. fi
  16499. else
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16501. $as_echo "no" >&6; }
  16502. fi
  16503. # if OPENLDAP is not found yet, try pkg-config
  16504. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16505. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16506. # Extract the first word of "pkg-config", so it can be a program name with args.
  16507. set dummy pkg-config; ac_word=$2
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16509. $as_echo_n "checking for $ac_word... " >&6; }
  16510. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16511. $as_echo_n "(cached) " >&6
  16512. else
  16513. case $PKG_CONFIG in
  16514. [\\/]* | ?:[\\/]*)
  16515. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16516. ;;
  16517. *)
  16518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16519. for as_dir in $PATH
  16520. do
  16521. IFS=$as_save_IFS
  16522. test -z "$as_dir" && as_dir=.
  16523. for ac_exec_ext in '' $ac_executable_extensions; do
  16524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16525. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16527. break 2
  16528. fi
  16529. done
  16530. done
  16531. IFS=$as_save_IFS
  16532. ;;
  16533. esac
  16534. fi
  16535. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16536. if test -n "$PKG_CONFIG"; then
  16537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16538. $as_echo "$PKG_CONFIG" >&6; }
  16539. else
  16540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16541. $as_echo "no" >&6; }
  16542. fi
  16543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16544. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16545. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16546. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16547. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16548. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16549. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16550. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16552. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16553. else
  16554. openldap_incdir="/usr/include"
  16555. openldap_inc="-I$openldap_incdir"
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16557. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16558. fi
  16559. fi
  16560. fi
  16561. if test "$with_openldap" = yes ; then
  16562. save_cppflags="$CPPFLAGS"
  16563. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16564. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16565. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16566. else
  16567. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16568. fi
  16569. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16570. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16571. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16572. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16573. save_ldflags="$LDFLAGS"
  16574. LDFLAGS="$openldap_lib $LDFLAGS"
  16575. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16577. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16578. if eval \${$as_ac_Lib+:} false; then :
  16579. $as_echo_n "(cached) " >&6
  16580. else
  16581. ac_check_lib_save_LIBS=$LIBS
  16582. LIBS="-lldap$ol_libver $LIBS"
  16583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16584. /* end confdefs.h. */
  16585. /* Override any GCC internal prototype to avoid an error.
  16586. Use char because int might match the return type of a GCC
  16587. builtin and then its argument prototype would still apply. */
  16588. #ifdef __cplusplus
  16589. extern "C"
  16590. #endif
  16591. char ldap_initialize ();
  16592. int
  16593. main ()
  16594. {
  16595. return ldap_initialize ();
  16596. ;
  16597. return 0;
  16598. }
  16599. _ACEOF
  16600. if ac_fn_c_try_link "$LINENO"; then :
  16601. eval "$as_ac_Lib=yes"
  16602. else
  16603. eval "$as_ac_Lib=no"
  16604. fi
  16605. rm -f core conftest.err conftest.$ac_objext \
  16606. conftest$ac_exeext conftest.$ac_ext
  16607. LIBS=$ac_check_lib_save_LIBS
  16608. fi
  16609. eval ac_res=\$$as_ac_Lib
  16610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16611. $as_echo "$ac_res" >&6; }
  16612. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16613. have_ldap_lib=1
  16614. fi
  16615. if test -z "$have_ldap_lib" ; then
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16617. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16618. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16619. $as_echo_n "(cached) " >&6
  16620. else
  16621. ac_check_lib_save_LIBS=$LIBS
  16622. LIBS="-lldap $LIBS"
  16623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16624. /* end confdefs.h. */
  16625. /* Override any GCC internal prototype to avoid an error.
  16626. Use char because int might match the return type of a GCC
  16627. builtin and then its argument prototype would still apply. */
  16628. #ifdef __cplusplus
  16629. extern "C"
  16630. #endif
  16631. char ldap_initialize ();
  16632. int
  16633. main ()
  16634. {
  16635. return ldap_initialize ();
  16636. ;
  16637. return 0;
  16638. }
  16639. _ACEOF
  16640. if ac_fn_c_try_link "$LINENO"; then :
  16641. ac_cv_lib_ldap_ldap_initialize=yes
  16642. else
  16643. ac_cv_lib_ldap_ldap_initialize=no
  16644. fi
  16645. rm -f core conftest.err conftest.$ac_objext \
  16646. conftest$ac_exeext conftest.$ac_ext
  16647. LIBS=$ac_check_lib_save_LIBS
  16648. fi
  16649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16650. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16651. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16652. unset ol_libver
  16653. else
  16654. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16655. fi
  16656. fi
  16657. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16659. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16660. if eval \${$as_ac_Lib+:} false; then :
  16661. $as_echo_n "(cached) " >&6
  16662. else
  16663. ac_check_lib_save_LIBS=$LIBS
  16664. LIBS="-lldap$ol_libver $LIBS"
  16665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16666. /* end confdefs.h. */
  16667. /* Override any GCC internal prototype to avoid an error.
  16668. Use char because int might match the return type of a GCC
  16669. builtin and then its argument prototype would still apply. */
  16670. #ifdef __cplusplus
  16671. extern "C"
  16672. #endif
  16673. char ldap_url_parse_ext ();
  16674. int
  16675. main ()
  16676. {
  16677. return ldap_url_parse_ext ();
  16678. ;
  16679. return 0;
  16680. }
  16681. _ACEOF
  16682. if ac_fn_c_try_link "$LINENO"; then :
  16683. eval "$as_ac_Lib=yes"
  16684. else
  16685. eval "$as_ac_Lib=no"
  16686. fi
  16687. rm -f core conftest.err conftest.$ac_objext \
  16688. conftest$ac_exeext conftest.$ac_ext
  16689. LIBS=$ac_check_lib_save_LIBS
  16690. fi
  16691. eval ac_res=\$$as_ac_Lib
  16692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16693. $as_echo "$ac_res" >&6; }
  16694. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16695. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16696. fi
  16697. ldap_lib_ldif=""
  16698. LDFLAGS="$LDFLAGS -lldap$ol_libver"
  16699. as_ac_Lib=`$as_echo "ac_cv_lib_ldif$ol_libver''__init" | $as_tr_sh`
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _init in -lldif$ol_libver" >&5
  16701. $as_echo_n "checking for _init in -lldif$ol_libver... " >&6; }
  16702. if eval \${$as_ac_Lib+:} false; then :
  16703. $as_echo_n "(cached) " >&6
  16704. else
  16705. ac_check_lib_save_LIBS=$LIBS
  16706. LIBS="-lldif$ol_libver $LIBS"
  16707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16708. /* end confdefs.h. */
  16709. /* Override any GCC internal prototype to avoid an error.
  16710. Use char because int might match the return type of a GCC
  16711. builtin and then its argument prototype would still apply. */
  16712. #ifdef __cplusplus
  16713. extern "C"
  16714. #endif
  16715. char _init ();
  16716. int
  16717. main ()
  16718. {
  16719. return _init ();
  16720. ;
  16721. return 0;
  16722. }
  16723. _ACEOF
  16724. if ac_fn_c_try_link "$LINENO"; then :
  16725. eval "$as_ac_Lib=yes"
  16726. else
  16727. eval "$as_ac_Lib=no"
  16728. fi
  16729. rm -f core conftest.err conftest.$ac_objext \
  16730. conftest$ac_exeext conftest.$ac_ext
  16731. LIBS=$ac_check_lib_save_LIBS
  16732. fi
  16733. eval ac_res=\$$as_ac_Lib
  16734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16735. $as_echo "$ac_res" >&6; }
  16736. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16737. ldap_lib_ldif=-lldif$ol_libver
  16738. else
  16739. ldap_lib_ldif=
  16740. fi
  16741. LDFLAGS="$save_ldflags"
  16742. CPPFLAGS="$save_cppflags"
  16743. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16744. # where to find ldapsearch, et. al.
  16745. ldaptool_bindir=$openldap_bindir
  16746. # default options to pass to the tools
  16747. # use -x because all of our scripts use simple bind
  16748. ldaptool_opts=-x
  16749. # get plain output from ldapsearch - no version, no comments
  16750. plainldif_opts=-LLL
  16751. fi
  16752. # BEGIN COPYRIGHT BLOCK
  16753. # Copyright (C) 2007 Red Hat, Inc.
  16754. # All rights reserved.
  16755. #
  16756. # This program is free software; you can redistribute it and/or
  16757. # modify it under the terms of the GNU General Public License
  16758. # as published by the Free Software Foundation; either version 2
  16759. # of the License, or (at your option) any later version.
  16760. #
  16761. # This program is distributed in the hope that it will be useful,
  16762. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16763. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16764. # GNU General Public License for more details.
  16765. #
  16766. # You should have received a copy of the GNU General Public License
  16767. # along with this program; if not, write to the Free Software
  16768. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16769. #
  16770. # END COPYRIGHT BLOCK
  16771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16772. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16773. # check for --with-ldapsdk
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16775. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16776. # Check whether --with-ldapsdk was given.
  16777. if test "${with_ldapsdk+set}" = set; then :
  16778. withval=$with_ldapsdk;
  16779. if test "$withval" = yes
  16780. then
  16781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16782. $as_echo "yes" >&6; }
  16783. elif test "$withval" = no
  16784. then
  16785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16786. $as_echo "no" >&6; }
  16787. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16788. then
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16790. $as_echo "using $withval" >&6; }
  16791. LDAPSDKDIR=$withval
  16792. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16793. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16794. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16795. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16796. with_ldapsdk=yes
  16797. else
  16798. echo
  16799. as_fn_error $? "$withval not found" "$LINENO" 5
  16800. fi
  16801. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16802. then
  16803. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16804. fi
  16805. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16806. then
  16807. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16808. fi
  16809. else
  16810. if test "$with_openldap" = yes
  16811. then
  16812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16813. $as_echo "no" >&6; }
  16814. else
  16815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16816. $as_echo "yes" >&6; }
  16817. with_ldapsdk=yes
  16818. fi
  16819. fi
  16820. # check for --with-ldapsdk-inc
  16821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16822. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16823. # Check whether --with-ldapsdk-inc was given.
  16824. if test "${with_ldapsdk_inc+set}" = set; then :
  16825. withval=$with_ldapsdk_inc;
  16826. if test -e "$withval"/ldap.h
  16827. then
  16828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16829. $as_echo "using $withval" >&6; }
  16830. ldapsdk_inc="-I$withval"
  16831. with_ldapsdk=yes
  16832. else
  16833. echo
  16834. as_fn_error $? "$withval not found" "$LINENO" 5
  16835. fi
  16836. else
  16837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16838. $as_echo "no" >&6; }
  16839. fi
  16840. # check for --with-ldapsdk-lib
  16841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16842. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16843. # Check whether --with-ldapsdk-lib was given.
  16844. if test "${with_ldapsdk_lib+set}" = set; then :
  16845. withval=$with_ldapsdk_lib;
  16846. if test -d "$withval"
  16847. then
  16848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16849. $as_echo "using $withval" >&6; }
  16850. ldapsdk_lib="-L$withval"
  16851. ldapsdk_libdir="$withval"
  16852. with_ldapsdk=yes
  16853. else
  16854. echo
  16855. as_fn_error $? "$withval not found" "$LINENO" 5
  16856. fi
  16857. else
  16858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16859. $as_echo "no" >&6; }
  16860. fi
  16861. # check for --with-ldapsdk-bin
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16863. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16864. # Check whether --with-ldapsdk-bin was given.
  16865. if test "${with_ldapsdk_bin+set}" = set; then :
  16866. withval=$with_ldapsdk_bin;
  16867. if test -d "$withval"
  16868. then
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16870. $as_echo "using $withval" >&6; }
  16871. ldapsdk_bindir="$withval"
  16872. with_ldapsdk=yes
  16873. else
  16874. echo
  16875. as_fn_error $? "$withval not found" "$LINENO" 5
  16876. fi
  16877. else
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16879. $as_echo "no" >&6; }
  16880. fi
  16881. # if LDAPSDK is not found yet, try pkg-config
  16882. # last resort
  16883. if test "$with_ldapsdk" = yes ; then
  16884. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16885. # Extract the first word of "pkg-config", so it can be a program name with args.
  16886. set dummy pkg-config; ac_word=$2
  16887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16888. $as_echo_n "checking for $ac_word... " >&6; }
  16889. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16890. $as_echo_n "(cached) " >&6
  16891. else
  16892. case $PKG_CONFIG in
  16893. [\\/]* | ?:[\\/]*)
  16894. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16895. ;;
  16896. *)
  16897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16898. for as_dir in $PATH
  16899. do
  16900. IFS=$as_save_IFS
  16901. test -z "$as_dir" && as_dir=.
  16902. for ac_exec_ext in '' $ac_executable_extensions; do
  16903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16904. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16906. break 2
  16907. fi
  16908. done
  16909. done
  16910. IFS=$as_save_IFS
  16911. ;;
  16912. esac
  16913. fi
  16914. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16915. if test -n "$PKG_CONFIG"; then
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16917. $as_echo "$PKG_CONFIG" >&6; }
  16918. else
  16919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16920. $as_echo "no" >&6; }
  16921. fi
  16922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16923. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16924. if test -n "$PKG_CONFIG"; then
  16925. if $PKG_CONFIG --exists mozldap6; then
  16926. mozldappkg=mozldap6
  16927. elif $PKG_CONFIG --exists mozldap; then
  16928. mozldappkg=mozldap
  16929. else
  16930. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16931. fi
  16932. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16933. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16934. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16935. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16937. $as_echo "using system $mozldappkg" >&6; }
  16938. fi
  16939. fi
  16940. fi
  16941. if test "$with_ldapsdk" = yes ; then
  16942. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16943. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16944. fi
  16945. if test -z "$ldapsdk_bindir" ; then
  16946. if -d $libdir/mozldap6 ; then
  16947. ldapsdk_bindir=$libdir/mozldap6
  16948. else
  16949. ldapsdk_bindir=$libdir/mozldap
  16950. fi
  16951. fi
  16952. save_cppflags="$CPPFLAGS"
  16953. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16954. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16955. #if LDAP_VENDOR_VERSION < 600
  16956. #error The LDAP C SDK version is not supported
  16957. #endif
  16958. "
  16959. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16960. isversion6=1
  16961. else
  16962. isversion6=
  16963. fi
  16964. CPPFLAGS="$save_cppflags"
  16965. if test -z "$isversion6" ; then
  16966. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16967. fi
  16968. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16969. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16970. # where to find ldapsearch, et. al.
  16971. ldaptool_bindir=$ldapsdk_bindir
  16972. # default options to pass to the tools
  16973. ldaptool_opts=
  16974. # get plain output from ldapsearch - no version
  16975. plainldif_opts=-1
  16976. fi
  16977. # BEGIN COPYRIGHT BLOCK
  16978. # Copyright (C) 2007 Red Hat, Inc.
  16979. # All rights reserved.
  16980. #
  16981. # This program is free software; you can redistribute it and/or
  16982. # modify it under the terms of the GNU General Public License
  16983. # as published by the Free Software Foundation; either version 2
  16984. # of the License, or (at your option) any later version.
  16985. #
  16986. # This program is distributed in the hope that it will be useful,
  16987. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16988. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16989. # GNU General Public License for more details.
  16990. #
  16991. # You should have received a copy of the GNU General Public License
  16992. # along with this program; if not, write to the Free Software
  16993. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16994. #
  16995. # END COPYRIGHT BLOCK
  16996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16997. $as_echo "$as_me: checking for db..." >&6;}
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16999. $as_echo_n "checking for --with-db... " >&6; }
  17000. # Check whether --with-db was given.
  17001. if test "${with_db+set}" = set; then :
  17002. withval=$with_db;
  17003. if test "$withval" = "yes"; then
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17005. $as_echo "yes" >&6; }
  17006. elif test "$withval" = "no"; then
  17007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17008. $as_echo "no" >&6; }
  17009. as_fn_error $? "db is required." "$LINENO" 5
  17010. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17012. $as_echo "using $withval" >&6; }
  17013. DBDIR=$withval
  17014. db_lib="-L$DBDIR/lib"
  17015. db_libdir="$DBDIR/lib"
  17016. db_incdir="$DBDIR/include"
  17017. if ! test -e "$db_incdir/db.h" ; then
  17018. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17019. fi
  17020. db_inc="-I$db_incdir"
  17021. else
  17022. echo
  17023. as_fn_error $? "$withval not found" "$LINENO" 5
  17024. fi
  17025. else
  17026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17027. $as_echo "yes" >&6; }
  17028. fi
  17029. # check for --with-db-inc
  17030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  17031. $as_echo_n "checking for --with-db-inc... " >&6; }
  17032. # Check whether --with-db-inc was given.
  17033. if test "${with_db_inc+set}" = set; then :
  17034. withval=$with_db_inc;
  17035. if test -e "$withval"/db.h
  17036. then
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17038. $as_echo "using $withval" >&6; }
  17039. db_incdir="$withval"
  17040. db_inc="-I$withval"
  17041. else
  17042. echo
  17043. as_fn_error $? "$withval not found" "$LINENO" 5
  17044. fi
  17045. else
  17046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17047. $as_echo "no" >&6; }
  17048. fi
  17049. # check for --with-db-lib
  17050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  17051. $as_echo_n "checking for --with-db-lib... " >&6; }
  17052. # Check whether --with-db-lib was given.
  17053. if test "${with_db_lib+set}" = set; then :
  17054. withval=$with_db_lib;
  17055. if test -d "$withval"
  17056. then
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17058. $as_echo "using $withval" >&6; }
  17059. db_lib="-L$withval"
  17060. db_libdir="$withval"
  17061. else
  17062. echo
  17063. as_fn_error $? "$withval not found" "$LINENO" 5
  17064. fi
  17065. else
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17067. $as_echo "no" >&6; }
  17068. fi
  17069. if test -z "$db_inc"; then
  17070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  17071. $as_echo_n "checking for db.h... " >&6; }
  17072. if test -f "/usr/include/db4/db.h"; then
  17073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  17074. $as_echo "using /usr/include/db4/db.h" >&6; }
  17075. db_incdir="/usr/include/db4"
  17076. db_inc="-I/usr/include/db4"
  17077. db_lib='-L$(libdir)'
  17078. db_libdir='$(libdir)'
  17079. elif test -f "/usr/include/libdb/db.h"; then
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  17081. $as_echo "using /usr/include/libdb/db.h" >&6; }
  17082. db_incdir="/usr/include/libdb"
  17083. db_inc="-I/usr/include/libdb"
  17084. db_lib='-L$(libdir)'
  17085. db_libdir='$(libdir)'
  17086. elif test -f "/usr/include/db.h"; then
  17087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  17088. $as_echo "using /usr/include/db.h" >&6; }
  17089. db_incdir="/usr/include"
  17090. db_inc="-I/usr/include"
  17091. db_lib='-L$(libdir)'
  17092. db_libdir='$(libdir)'
  17093. else
  17094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17095. $as_echo "no" >&6; }
  17096. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  17097. fi
  17098. fi
  17099. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  17100. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  17101. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  17102. db_libver=${db_ver_maj}.${db_ver_min}
  17103. save_ldflags="$LDFLAGS"
  17104. LDFLAGS="$db_lib $LDFLAGS"
  17105. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  17107. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  17108. if eval \${$as_ac_Lib+:} false; then :
  17109. $as_echo_n "(cached) " >&6
  17110. else
  17111. ac_check_lib_save_LIBS=$LIBS
  17112. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  17113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17114. /* end confdefs.h. */
  17115. /* Override any GCC internal prototype to avoid an error.
  17116. Use char because int might match the return type of a GCC
  17117. builtin and then its argument prototype would still apply. */
  17118. #ifdef __cplusplus
  17119. extern "C"
  17120. #endif
  17121. char db_create ();
  17122. int
  17123. main ()
  17124. {
  17125. return db_create ();
  17126. ;
  17127. return 0;
  17128. }
  17129. _ACEOF
  17130. if ac_fn_c_try_link "$LINENO"; then :
  17131. eval "$as_ac_Lib=yes"
  17132. else
  17133. eval "$as_ac_Lib=no"
  17134. fi
  17135. rm -f core conftest.err conftest.$ac_objext \
  17136. conftest$ac_exeext conftest.$ac_ext
  17137. LIBS=$ac_check_lib_save_LIBS
  17138. fi
  17139. eval ac_res=\$$as_ac_Lib
  17140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17141. $as_echo "$ac_res" >&6; }
  17142. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17143. true
  17144. else
  17145. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17146. fi
  17147. LDFLAGS="$save_ldflags"
  17148. # if DB is not found yet, try pkg-config
  17149. # last resort
  17150. # Although the other db_* variables are correctly assigned at this point,
  17151. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17152. if test -n "$PKG_CONFIG"; then
  17153. if $PKG_CONFIG --exists db; then
  17154. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17155. else
  17156. db_bindir=/usr/bin
  17157. fi
  17158. else
  17159. db_bindir=/usr/bin
  17160. fi
  17161. # BEGIN COPYRIGHT BLOCK
  17162. # Copyright (C) 2007 Red Hat, Inc.
  17163. # All rights reserved.
  17164. #
  17165. # This program is free software; you can redistribute it and/or
  17166. # modify it under the terms of the GNU General Public License
  17167. # as published by the Free Software Foundation; either version 2
  17168. # of the License, or (at your option) any later version.
  17169. #
  17170. # This program is distributed in the hope that it will be useful,
  17171. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17172. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17173. # GNU General Public License for more details.
  17174. #
  17175. # You should have received a copy of the GNU General Public License
  17176. # along with this program; if not, write to the Free Software
  17177. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17178. #
  17179. # END COPYRIGHT BLOCK
  17180. # -*- tab-width: 4; -*-
  17181. # Configure paths for SASL
  17182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17183. $as_echo "$as_me: checking for SASL..." >&6;}
  17184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17185. $as_echo_n "checking for --with-sasl... " >&6; }
  17186. # Check whether --with-sasl was given.
  17187. if test "${with_sasl+set}" = set; then :
  17188. withval=$with_sasl;
  17189. if test "$withval" = "yes"; then
  17190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17191. $as_echo "yes" >&6; }
  17192. elif test "$withval" = "no"; then
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17194. $as_echo "no" >&6; }
  17195. as_fn_error $? "SASL is required." "$LINENO" 5
  17196. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17198. $as_echo "using $withval" >&6; }
  17199. if test -f "$withval/include/sasl/sasl.h"; then
  17200. sasl_inc="-I$withval/include/sasl"
  17201. elif test -f "$withval/include/sasl.h"; then
  17202. sasl_inc="-I$withval/include"
  17203. else
  17204. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17205. fi
  17206. sasl_lib="-L$withval/lib"
  17207. sasl_libdir="$withval/lib"
  17208. else
  17209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17210. $as_echo "yes" >&6; }
  17211. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17212. fi
  17213. else
  17214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17215. $as_echo "yes" >&6; }
  17216. fi
  17217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17218. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17219. # Check whether --with-sasl-inc was given.
  17220. if test "${with_sasl_inc+set}" = set; then :
  17221. withval=$with_sasl_inc;
  17222. if test -f "$withval"/sasl.h; then
  17223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17224. $as_echo "using $withval" >&6; }
  17225. sasl_inc="-I$withval"
  17226. else
  17227. echo
  17228. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17229. fi
  17230. else
  17231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17232. $as_echo "no" >&6; }
  17233. fi
  17234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17235. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17236. # Check whether --with-sasl-lib was given.
  17237. if test "${with_sasl_lib+set}" = set; then :
  17238. withval=$with_sasl_lib;
  17239. if test -d "$withval"; then
  17240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17241. $as_echo "using $withval" >&6; }
  17242. sasl_lib="-L$withval"
  17243. sasl_libdir="$withval"
  17244. else
  17245. echo
  17246. as_fn_error $? "$withval not found" "$LINENO" 5
  17247. fi
  17248. else
  17249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17250. $as_echo "no" >&6; }
  17251. fi
  17252. if test -z "$sasl_inc"; then
  17253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17254. $as_echo_n "checking for sasl.h... " >&6; }
  17255. if test -f /usr/include/sasl/sasl.h; then
  17256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17257. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17258. sasl_inc="-I/usr/include/sasl"
  17259. elif test -f /usr/include/sasl.h; then
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17261. $as_echo "using /usr/include/sasl.h" >&6; }
  17262. sasl_inc="-I/usr/include"
  17263. else
  17264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17265. $as_echo "no" >&6; }
  17266. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17267. fi
  17268. fi
  17269. # BEGIN COPYRIGHT BLOCK
  17270. # Copyright (C) 2007 Red Hat, Inc.
  17271. # All rights reserved.
  17272. #
  17273. # This program is free software; you can redistribute it and/or
  17274. # modify it under the terms of the GNU General Public License
  17275. # as published by the Free Software Foundation; either version 2
  17276. # of the License, or (at your option) any later version.
  17277. #
  17278. # This program is distributed in the hope that it will be useful,
  17279. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17280. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17281. # GNU General Public License for more details.
  17282. #
  17283. # You should have received a copy of the GNU General Public License
  17284. # along with this program; if not, write to the Free Software
  17285. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17286. #
  17287. # END COPYRIGHT BLOCK
  17288. #
  17289. # Configure paths for SVRCORE
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17291. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17293. $as_echo_n "checking for --with-svrcore... " >&6; }
  17294. # Check whether --with-svrcore was given.
  17295. if test "${with_svrcore+set}" = set; then :
  17296. withval=$with_svrcore;
  17297. if test "$withval" = "yes"; then
  17298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17299. $as_echo "yes" >&6; }
  17300. elif test "$withval" = "no"; then
  17301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17302. $as_echo "no" >&6; }
  17303. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17304. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17306. $as_echo "using $withval" >&6; }
  17307. if test -f "$withval/include/svrcore.h"; then
  17308. svrcore_inc="-I$withval/include"
  17309. else
  17310. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17311. fi
  17312. svrcore_lib="-L$withval/lib"
  17313. else
  17314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17315. $as_echo "yes" >&6; }
  17316. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17317. fi
  17318. else
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17320. $as_echo "yes" >&6; }
  17321. fi
  17322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17323. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17324. # Check whether --with-svrcore-inc was given.
  17325. if test "${with_svrcore_inc+set}" = set; then :
  17326. withval=$with_svrcore_inc;
  17327. if test -f "$withval"/svrcore.h; then
  17328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17329. $as_echo "using $withval" >&6; }
  17330. svrcore_inc="-I$withval"
  17331. else
  17332. echo
  17333. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17334. fi
  17335. else
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17337. $as_echo "no" >&6; }
  17338. fi
  17339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17340. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17341. # Check whether --with-svrcore-lib was given.
  17342. if test "${with_svrcore_lib+set}" = set; then :
  17343. withval=$with_svrcore_lib;
  17344. if test -d "$withval"; then
  17345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17346. $as_echo "using $withval" >&6; }
  17347. svrcore_lib="-L$withval"
  17348. else
  17349. echo
  17350. as_fn_error $? "$withval not found" "$LINENO" 5
  17351. fi
  17352. else
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17354. $as_echo "no" >&6; }
  17355. fi
  17356. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17357. # Extract the first word of "pkg-config", so it can be a program name with args.
  17358. set dummy pkg-config; ac_word=$2
  17359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17360. $as_echo_n "checking for $ac_word... " >&6; }
  17361. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17362. $as_echo_n "(cached) " >&6
  17363. else
  17364. case $PKG_CONFIG in
  17365. [\\/]* | ?:[\\/]*)
  17366. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17367. ;;
  17368. *)
  17369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17370. for as_dir in $PATH
  17371. do
  17372. IFS=$as_save_IFS
  17373. test -z "$as_dir" && as_dir=.
  17374. for ac_exec_ext in '' $ac_executable_extensions; do
  17375. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17376. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17377. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17378. break 2
  17379. fi
  17380. done
  17381. done
  17382. IFS=$as_save_IFS
  17383. ;;
  17384. esac
  17385. fi
  17386. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17387. if test -n "$PKG_CONFIG"; then
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17389. $as_echo "$PKG_CONFIG" >&6; }
  17390. else
  17391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17392. $as_echo "no" >&6; }
  17393. fi
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17395. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17396. if test -n "$PKG_CONFIG"; then
  17397. if $PKG_CONFIG --exists svrcore; then
  17398. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17399. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17401. $as_echo "using system svrcore" >&6; }
  17402. fi
  17403. fi
  17404. fi
  17405. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17407. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17408. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17409. $as_echo_n "(cached) " >&6
  17410. else
  17411. ac_check_lib_save_LIBS=$LIBS
  17412. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17414. /* end confdefs.h. */
  17415. /* Override any GCC internal prototype to avoid an error.
  17416. Use char because int might match the return type of a GCC
  17417. builtin and then its argument prototype would still apply. */
  17418. #ifdef __cplusplus
  17419. extern "C"
  17420. #endif
  17421. char SVRCORE_GetRegisteredPinObj ();
  17422. int
  17423. main ()
  17424. {
  17425. return SVRCORE_GetRegisteredPinObj ();
  17426. ;
  17427. return 0;
  17428. }
  17429. _ACEOF
  17430. if ac_fn_c_try_link "$LINENO"; then :
  17431. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17432. else
  17433. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17434. fi
  17435. rm -f core conftest.err conftest.$ac_objext \
  17436. conftest$ac_exeext conftest.$ac_ext
  17437. LIBS=$ac_check_lib_save_LIBS
  17438. fi
  17439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17440. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17441. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17442. havesvrcore=1
  17443. fi
  17444. if test -n "$havesvrcore" ; then
  17445. save_cppflags="$CPPFLAGS"
  17446. CPPFLAGS="$nss_inc $nspr_inc"
  17447. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17448. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17449. havesvrcore=1
  17450. else
  17451. havesvrcore=
  17452. fi
  17453. CPPFLAGS="$save_cppflags"
  17454. fi
  17455. if test -z "$havesvrcore" ; then
  17456. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17457. fi
  17458. fi
  17459. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17460. if test -f /usr/include/svrcore.h; then
  17461. svrcore_inc="-I/usr/include"
  17462. svrcore_lib="-L/usr/lib"
  17463. else
  17464. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17465. fi
  17466. fi
  17467. # BEGIN COPYRIGHT BLOCK
  17468. # Copyright (C) 2006 Red Hat, Inc.
  17469. # All rights reserved.
  17470. #
  17471. # This program is free software; you can redistribute it and/or
  17472. # modify it under the terms of the GNU General Public License
  17473. # as published by the Free Software Foundation; either version 2
  17474. # of the License, or (at your option) any later version.
  17475. #
  17476. # This program is distributed in the hope that it will be useful,
  17477. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17478. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17479. # GNU General Public License for more details.
  17480. #
  17481. # You should have received a copy of the GNU General Public License
  17482. # along with this program; if not, write to the Free Software
  17483. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17484. #
  17485. # END COPYRIGHT BLOCK
  17486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17487. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17488. # check for --with-icu
  17489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17490. $as_echo_n "checking for --with-icu... " >&6; }
  17491. # Check whether --with-icu was given.
  17492. if test "${with_icu+set}" = set; then :
  17493. withval=$with_icu;
  17494. if test "$withval" = "yes"
  17495. then
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17497. $as_echo "yes" >&6; }
  17498. elif test "$withval" = "no"
  17499. then
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17501. $as_echo "no" >&6; }
  17502. as_fn_error $? "ICU is required." "$LINENO" 5
  17503. elif test -d "$withval"/lib
  17504. then
  17505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17506. $as_echo "using $withval" >&6; }
  17507. ICUDIR=$withval
  17508. icu_lib="-L$ICUDIR/lib"
  17509. icu_inc="-I$withval/include"
  17510. icu_bin="$withval/bin"
  17511. else
  17512. echo
  17513. as_fn_error $? "$withval not found" "$LINENO" 5
  17514. fi
  17515. else
  17516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17517. $as_echo "yes" >&6; }
  17518. fi
  17519. # check for --with-icu-inc
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17521. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17522. # Check whether --with-icu-inc was given.
  17523. if test "${with_icu_inc+set}" = set; then :
  17524. withval=$with_icu_inc;
  17525. if test -d "$withval"
  17526. then
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17528. $as_echo "using $withval" >&6; }
  17529. icu_inc="-I$withval"
  17530. else
  17531. echo
  17532. as_fn_error $? "$withval not found" "$LINENO" 5
  17533. fi
  17534. else
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17536. $as_echo "no" >&6; }
  17537. fi
  17538. # check for --with-icu-lib
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17540. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17541. # Check whether --with-icu-lib was given.
  17542. if test "${with_icu_lib+set}" = set; then :
  17543. withval=$with_icu_lib;
  17544. if test -d "$withval"
  17545. then
  17546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17547. $as_echo "using $withval" >&6; }
  17548. icu_lib="-L$withval"
  17549. else
  17550. echo
  17551. as_fn_error $? "$withval not found" "$LINENO" 5
  17552. fi
  17553. else
  17554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17555. $as_echo "no" >&6; }
  17556. fi
  17557. # check for --with-icu-bin
  17558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17559. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17560. # Check whether --with-icu-bin was given.
  17561. if test "${with_icu_bin+set}" = set; then :
  17562. withval=$with_icu_bin;
  17563. if test -d "$withval"
  17564. then
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17566. $as_echo "using $withval" >&6; }
  17567. icu_bin="$withval"
  17568. else
  17569. echo
  17570. as_fn_error $? "$withval not found" "$LINENO" 5
  17571. fi
  17572. else
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17574. $as_echo "no" >&6; }
  17575. fi
  17576. # if ICU is not found yet, try pkg-config
  17577. # last resort
  17578. if test -z "$icu_lib"; then
  17579. # Extract the first word of "icu-config", so it can be a program name with args.
  17580. set dummy icu-config; ac_word=$2
  17581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17582. $as_echo_n "checking for $ac_word... " >&6; }
  17583. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17584. $as_echo_n "(cached) " >&6
  17585. else
  17586. case $ICU_CONFIG in
  17587. [\\/]* | ?:[\\/]*)
  17588. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17589. ;;
  17590. *)
  17591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17592. for as_dir in $PATH
  17593. do
  17594. IFS=$as_save_IFS
  17595. test -z "$as_dir" && as_dir=.
  17596. for ac_exec_ext in '' $ac_executable_extensions; do
  17597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17598. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17600. break 2
  17601. fi
  17602. done
  17603. done
  17604. IFS=$as_save_IFS
  17605. ;;
  17606. esac
  17607. fi
  17608. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17609. if test -n "$ICU_CONFIG"; then
  17610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17611. $as_echo "$ICU_CONFIG" >&6; }
  17612. else
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17614. $as_echo "no" >&6; }
  17615. fi
  17616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17617. $as_echo_n "checking for icu with icu-config... " >&6; }
  17618. if test -n "$ICU_CONFIG"; then
  17619. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17620. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17621. icu_bin=`$ICU_CONFIG --bindir`
  17622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17623. $as_echo "using system ICU" >&6; }
  17624. else
  17625. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17626. fi
  17627. fi
  17628. # BEGIN COPYRIGHT BLOCK
  17629. # Copyright (C) 2006 Red Hat, Inc.
  17630. # All rights reserved.
  17631. #
  17632. # This program is free software; you can redistribute it and/or
  17633. # modify it under the terms of the GNU General Public License
  17634. # as published by the Free Software Foundation; either version 2
  17635. # of the License, or (at your option) any later version.
  17636. #
  17637. # This program is distributed in the hope that it will be useful,
  17638. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17639. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17640. # GNU General Public License for more details.
  17641. #
  17642. # You should have received a copy of the GNU General Public License
  17643. # along with this program; if not, write to the Free Software
  17644. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17645. #
  17646. # END COPYRIGHT BLOCK
  17647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17648. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17650. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17651. # Check whether --with-netsnmp was given.
  17652. if test "${with_netsnmp+set}" = set; then :
  17653. withval=$with_netsnmp;
  17654. if test "$withval" = "yes"; then
  17655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17656. $as_echo "yes" >&6; }
  17657. elif test "$withval" = "no"; then
  17658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17659. $as_echo "no" >&6; }
  17660. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17661. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17663. $as_echo "using $withval" >&6; }
  17664. NETSNMPDIR=$withval
  17665. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17666. netsnmp_inc="-I$withval/include"
  17667. else
  17668. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17669. fi
  17670. netsnmp_lib="-L$withval/lib"
  17671. netsnmp_libdir="$withval/lib"
  17672. else
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17674. $as_echo "yes" >&6; }
  17675. as_fn_error $? "$withval not found" "$LINENO" 5
  17676. fi
  17677. else
  17678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17679. $as_echo "yes" >&6; }
  17680. fi
  17681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17682. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17683. # Check whether --with-netsnmp-inc was given.
  17684. if test "${with_netsnmp_inc+set}" = set; then :
  17685. withval=$with_netsnmp_inc;
  17686. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17688. $as_echo "using $withval" >&6; }
  17689. netsnmp_inc="-I$withval"
  17690. else
  17691. echo
  17692. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17693. fi
  17694. else
  17695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17696. $as_echo "no" >&6; }
  17697. fi
  17698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17699. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17700. # Check whether --with-netsnmp-lib was given.
  17701. if test "${with_netsnmp_lib+set}" = set; then :
  17702. withval=$with_netsnmp_lib;
  17703. if test -d "$withval"
  17704. then
  17705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17706. $as_echo "using $withval" >&6; }
  17707. netsnmp_lib="-L$withval"
  17708. netsnmp_libdir="$withval"
  17709. else
  17710. echo
  17711. as_fn_error $? "$withval not found" "$LINENO" 5
  17712. fi
  17713. else
  17714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17715. $as_echo "no" >&6; }
  17716. fi
  17717. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17719. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17720. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17722. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17723. netsnmp_inc="-I/usr/include"
  17724. else
  17725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17726. $as_echo "no" >&6; }
  17727. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17728. fi
  17729. fi
  17730. if test -n "$netsnmp_inc"; then
  17731. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17732. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17733. else
  17734. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17735. set dummy net-snmp-config; ac_word=$2
  17736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17737. $as_echo_n "checking for $ac_word... " >&6; }
  17738. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17739. $as_echo_n "(cached) " >&6
  17740. else
  17741. case $NETSNMP_CONFIG in
  17742. [\\/]* | ?:[\\/]*)
  17743. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17744. ;;
  17745. *)
  17746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17747. for as_dir in $PATH
  17748. do
  17749. IFS=$as_save_IFS
  17750. test -z "$as_dir" && as_dir=.
  17751. for ac_exec_ext in '' $ac_executable_extensions; do
  17752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17753. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17755. break 2
  17756. fi
  17757. done
  17758. done
  17759. IFS=$as_save_IFS
  17760. ;;
  17761. esac
  17762. fi
  17763. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17764. if test -n "$NETSNMP_CONFIG"; then
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17766. $as_echo "$NETSNMP_CONFIG" >&6; }
  17767. else
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17769. $as_echo "no" >&6; }
  17770. fi
  17771. fi
  17772. if test -n "$NETSNMP_CONFIG"; then
  17773. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17774. else
  17775. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17776. fi
  17777. else
  17778. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17779. fi
  17780. # BEGIN COPYRIGHT BLOCK
  17781. # Copyright (C) 2008 Red Hat, Inc.
  17782. # All rights reserved.
  17783. #
  17784. # This program is free software; you can redistribute it and/or
  17785. # modify it under the terms of the GNU General Public License
  17786. # as published by the Free Software Foundation; either version 2
  17787. # of the License, or (at your option) any later version.
  17788. #
  17789. # This program is distributed in the hope that it will be useful,
  17790. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17791. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17792. # GNU General Public License for more details.
  17793. #
  17794. # You should have received a copy of the GNU General Public License
  17795. # along with this program; if not, write to the Free Software
  17796. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17797. #
  17798. # END COPYRIGHT BLOCK
  17799. # -*- tab-width: 4; -*-
  17800. # Configure paths for Kerberos
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17802. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17803. if test -z "$with_kerberos" ; then
  17804. with_kerberos=yes # if not set on cmdline, set default
  17805. fi
  17806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17807. $as_echo_n "checking for --with-kerberos... " >&6; }
  17808. # Check whether --with-kerberos was given.
  17809. if test "${with_kerberos+set}" = set; then :
  17810. withval=$with_kerberos;
  17811. if test "x$withval" = "xyes"; then
  17812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17813. $as_echo "yes" >&6; }
  17814. elif test "x$withval" = "xno"; then
  17815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17816. $as_echo "no" >&6; }
  17817. with_kerberos=
  17818. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17820. $as_echo "using $withval" >&6; }
  17821. kerberos_incdir="$withval/include"
  17822. kerberos_libdir="$withval/lib"
  17823. else
  17824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17825. $as_echo "yes" >&6; }
  17826. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17827. fi
  17828. else
  17829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17830. $as_echo "no" >&6; }
  17831. with_kerberos=
  17832. fi
  17833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17834. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17835. # Check whether --with-kerberos-inc was given.
  17836. if test "${with_kerberos_inc+set}" = set; then :
  17837. withval=$with_kerberos_inc;
  17838. if test -f "$withval"/krb5.h; then
  17839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17840. $as_echo "using $withval" >&6; }
  17841. kerberos_incdir="$withval"
  17842. with_kerberos=yes # implies use of kerberos
  17843. else
  17844. echo
  17845. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17846. fi
  17847. else
  17848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17849. $as_echo "no" >&6; }
  17850. fi
  17851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17852. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17853. # Check whether --with-kerberos-lib was given.
  17854. if test "${with_kerberos_lib+set}" = set; then :
  17855. withval=$with_kerberos_lib;
  17856. if test -d "$withval"; then
  17857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17858. $as_echo "using $withval" >&6; }
  17859. kerberos_libdir="$withval"
  17860. with_kerberos=yes # implies use of kerberos
  17861. else
  17862. echo
  17863. as_fn_error $? "$withval not found" "$LINENO" 5
  17864. fi
  17865. else
  17866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17867. $as_echo "no" >&6; }
  17868. fi
  17869. if test -n "$with_kerberos" ; then
  17870. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17871. if test -z "$KRB5_CONFIG_BIN" ; then
  17872. # Extract the first word of "krb5-config", so it can be a program name with args.
  17873. set dummy krb5-config; ac_word=$2
  17874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17875. $as_echo_n "checking for $ac_word... " >&6; }
  17876. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17877. $as_echo_n "(cached) " >&6
  17878. else
  17879. case $KRB5_CONFIG_BIN in
  17880. [\\/]* | ?:[\\/]*)
  17881. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17882. ;;
  17883. *)
  17884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17885. for as_dir in $PATH
  17886. do
  17887. IFS=$as_save_IFS
  17888. test -z "$as_dir" && as_dir=.
  17889. for ac_exec_ext in '' $ac_executable_extensions; do
  17890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17891. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17893. break 2
  17894. fi
  17895. done
  17896. done
  17897. IFS=$as_save_IFS
  17898. ;;
  17899. esac
  17900. fi
  17901. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17902. if test -n "$KRB5_CONFIG_BIN"; then
  17903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17904. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17905. else
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17907. $as_echo "no" >&6; }
  17908. fi
  17909. fi
  17910. if test -n "$KRB5_CONFIG_BIN" ; then
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17912. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17913. if test -z "$kerberos_libdir" ; then
  17914. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17915. fi
  17916. if test -z "$kerberos_incdir" ; then
  17917. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17918. fi
  17919. if test -n "$kerberos_lib" ; then
  17920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17921. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17922. have_krb5=yes
  17923. fi
  17924. fi
  17925. fi
  17926. fi
  17927. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17928. # save these in order to set them to use the check macros below
  17929. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17930. save_CPPFLAGS="$CPPFLAGS"
  17931. if test -n "$kerberos_incdir" ; then
  17932. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17933. fi
  17934. save_LDFLAGS="$LDFLAGS"
  17935. if test -n "$kerberos_libdir" ; then
  17936. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17937. fi
  17938. krb5_impl=mit
  17939. for ac_header in heim_err.h
  17940. do :
  17941. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17942. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17943. cat >>confdefs.h <<_ACEOF
  17944. #define HAVE_HEIM_ERR_H 1
  17945. _ACEOF
  17946. fi
  17947. done
  17948. if test $ac_cv_header_heim_err_h = yes ; then
  17949. krb5_impl=heimdal
  17950. fi
  17951. if test "x$krb5_impl" = "xmit"; then
  17952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17953. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17954. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17955. $as_echo_n "(cached) " >&6
  17956. else
  17957. ac_check_lib_save_LIBS=$LIBS
  17958. LIBS="-lk5crypto $LIBS"
  17959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17960. /* end confdefs.h. */
  17961. int
  17962. main ()
  17963. {
  17964. return main ();
  17965. ;
  17966. return 0;
  17967. }
  17968. _ACEOF
  17969. if ac_fn_c_try_link "$LINENO"; then :
  17970. ac_cv_lib_k5crypto_main=yes
  17971. else
  17972. ac_cv_lib_k5crypto_main=no
  17973. fi
  17974. rm -f core conftest.err conftest.$ac_objext \
  17975. conftest$ac_exeext conftest.$ac_ext
  17976. LIBS=$ac_check_lib_save_LIBS
  17977. fi
  17978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17979. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17980. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17981. krb5crypto=k5crypto
  17982. else
  17983. krb5crypto=crypto
  17984. fi
  17985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17986. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17987. if ${ac_cv_lib_krb5_main+:} false; then :
  17988. $as_echo_n "(cached) " >&6
  17989. else
  17990. ac_check_lib_save_LIBS=$LIBS
  17991. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. /* end confdefs.h. */
  17994. int
  17995. main ()
  17996. {
  17997. return main ();
  17998. ;
  17999. return 0;
  18000. }
  18001. _ACEOF
  18002. if ac_fn_c_try_link "$LINENO"; then :
  18003. ac_cv_lib_krb5_main=yes
  18004. else
  18005. ac_cv_lib_krb5_main=no
  18006. fi
  18007. rm -f core conftest.err conftest.$ac_objext \
  18008. conftest$ac_exeext conftest.$ac_ext
  18009. LIBS=$ac_check_lib_save_LIBS
  18010. fi
  18011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18012. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18013. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18014. have_krb5=yes
  18015. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  18016. else
  18017. have_krb5=no
  18018. fi
  18019. elif test "x$krb5_impl" = "xheimdal"; then
  18020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  18021. $as_echo_n "checking for main in -ldes... " >&6; }
  18022. if ${ac_cv_lib_des_main+:} false; then :
  18023. $as_echo_n "(cached) " >&6
  18024. else
  18025. ac_check_lib_save_LIBS=$LIBS
  18026. LIBS="-ldes $LIBS"
  18027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18028. /* end confdefs.h. */
  18029. int
  18030. main ()
  18031. {
  18032. return main ();
  18033. ;
  18034. return 0;
  18035. }
  18036. _ACEOF
  18037. if ac_fn_c_try_link "$LINENO"; then :
  18038. ac_cv_lib_des_main=yes
  18039. else
  18040. ac_cv_lib_des_main=no
  18041. fi
  18042. rm -f core conftest.err conftest.$ac_objext \
  18043. conftest$ac_exeext conftest.$ac_ext
  18044. LIBS=$ac_check_lib_save_LIBS
  18045. fi
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  18047. $as_echo "$ac_cv_lib_des_main" >&6; }
  18048. if test "x$ac_cv_lib_des_main" = xyes; then :
  18049. krb5crypto=des
  18050. else
  18051. krb5crypto=crypto
  18052. fi
  18053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  18054. $as_echo_n "checking for main in -lkrb5... " >&6; }
  18055. if ${ac_cv_lib_krb5_main+:} false; then :
  18056. $as_echo_n "(cached) " >&6
  18057. else
  18058. ac_check_lib_save_LIBS=$LIBS
  18059. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  18060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18061. /* end confdefs.h. */
  18062. int
  18063. main ()
  18064. {
  18065. return main ();
  18066. ;
  18067. return 0;
  18068. }
  18069. _ACEOF
  18070. if ac_fn_c_try_link "$LINENO"; then :
  18071. ac_cv_lib_krb5_main=yes
  18072. else
  18073. ac_cv_lib_krb5_main=no
  18074. fi
  18075. rm -f core conftest.err conftest.$ac_objext \
  18076. conftest$ac_exeext conftest.$ac_ext
  18077. LIBS=$ac_check_lib_save_LIBS
  18078. fi
  18079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18080. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18081. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18082. have_krb5=yes
  18083. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  18084. else
  18085. have_krb5=no
  18086. fi
  18087. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  18088. else
  18089. have_krb5=no
  18090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  18091. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  18092. fi
  18093. # reset to original values
  18094. CPPFLAGS="$save_CPPFLAGS"
  18095. LDFLAGS="$save_LDFLAGS"
  18096. if test -n "$kerberos_incdir" ; then
  18097. kerberos_inc="-I$kerberos_incdir"
  18098. fi
  18099. if test -n "$kerberos_libdir" ; then
  18100. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  18101. fi
  18102. fi
  18103. if test -n "$with_kerberos" ; then
  18104. if test "x$have_krb5" = "xyes" ; then
  18105. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  18106. else
  18107. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  18108. fi
  18109. save_LIBS="$LIBS"
  18110. LIBS="$kerberos_lib"
  18111. save_CPPFLAGS="$CPPFLAGS"
  18112. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  18113. for ac_func in krb5_cc_new_unique
  18114. do :
  18115. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  18116. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  18117. cat >>confdefs.h <<_ACEOF
  18118. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  18119. _ACEOF
  18120. fi
  18121. done
  18122. LIBS="$save_LIBS"
  18123. CPPFLAGS="$save_CPPFLAGS"
  18124. fi
  18125. # BEGIN COPYRIGHT BLOCK
  18126. # Copyright (C) 2007 Red Hat, Inc.
  18127. # All rights reserved.
  18128. #
  18129. # This program is free software; you can redistribute it and/or
  18130. # modify it under the terms of the GNU General Public License
  18131. # as published by the Free Software Foundation; either version 2
  18132. # of the License, or (at your option) any later version.
  18133. #
  18134. # This program is distributed in the hope that it will be useful,
  18135. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18136. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18137. # GNU General Public License for more details.
  18138. #
  18139. # You should have received a copy of the GNU General Public License
  18140. # along with this program; if not, write to the Free Software
  18141. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18142. #
  18143. # END COPYRIGHT BLOCK
  18144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  18145. $as_echo "$as_me: checking for PCRE..." >&6;}
  18146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  18147. $as_echo_n "checking for --with-pcre... " >&6; }
  18148. # Check whether --with-pcre was given.
  18149. if test "${with_pcre+set}" = set; then :
  18150. withval=$with_pcre;
  18151. if test "$withval" = "yes"; then
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18153. $as_echo "yes" >&6; }
  18154. elif test "$withval" = "no"; then
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18156. $as_echo "no" >&6; }
  18157. as_fn_error $? "PCRE is required." "$LINENO" 5
  18158. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18160. $as_echo "using $withval" >&6; }
  18161. PCREDIR=$withval
  18162. pcre_lib="-L$PCREDIR/lib"
  18163. pcre_libdir="$PCREDIR/lib"
  18164. pcre_incdir="$PCREDIR/include"
  18165. if ! test -e "$pcre_incdir/pcre.h" ; then
  18166. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18167. fi
  18168. pcre_inc="-I$pcre_incdir"
  18169. else
  18170. echo
  18171. as_fn_error $? "$withval not found" "$LINENO" 5
  18172. fi
  18173. else
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18175. $as_echo "yes" >&6; }
  18176. fi
  18177. #
  18178. # if PCRE is not found yet, try pkg-config
  18179. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18180. # Extract the first word of "pkg-config", so it can be a program name with args.
  18181. set dummy pkg-config; ac_word=$2
  18182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18183. $as_echo_n "checking for $ac_word... " >&6; }
  18184. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18185. $as_echo_n "(cached) " >&6
  18186. else
  18187. case $PKG_CONFIG in
  18188. [\\/]* | ?:[\\/]*)
  18189. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18190. ;;
  18191. *)
  18192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18193. for as_dir in $PATH
  18194. do
  18195. IFS=$as_save_IFS
  18196. test -z "$as_dir" && as_dir=.
  18197. for ac_exec_ext in '' $ac_executable_extensions; do
  18198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18199. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18201. break 2
  18202. fi
  18203. done
  18204. done
  18205. IFS=$as_save_IFS
  18206. ;;
  18207. esac
  18208. fi
  18209. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18210. if test -n "$PKG_CONFIG"; then
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18212. $as_echo "$PKG_CONFIG" >&6; }
  18213. else
  18214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18215. $as_echo "no" >&6; }
  18216. fi
  18217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18218. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18219. if test -n "$PKG_CONFIG"; then
  18220. if $PKG_CONFIG --exists pcre; then
  18221. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18222. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18223. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18225. $as_echo "using system PCRE" >&6; }
  18226. elif $PKG_CONFIG --exists libpcre; then
  18227. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18228. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18229. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18231. $as_echo "using system PCRE" >&6; }
  18232. else
  18233. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18234. fi
  18235. fi
  18236. fi
  18237. if test -z "$pcre_inc"; then
  18238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18239. $as_echo_n "checking for pcre.h... " >&6; }
  18240. if test -f "/usr/include/pcre/pcre.h"; then
  18241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18242. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18243. pcre_incdir="/usr/include/pcre"
  18244. pcre_inc="-I/usr/include/pcre"
  18245. pcre_lib='-L$(libdir)'
  18246. pcre_libdir='$(libdir)'
  18247. elif test -f "/usr/include/pcre.h"; then
  18248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18249. $as_echo "using /usr/include/pcre.h" >&6; }
  18250. pcre_incdir="/usr/include"
  18251. pcre_inc="-I/usr/include"
  18252. pcre_lib='-L$(libdir)'
  18253. pcre_libdir='$(libdir)'
  18254. else
  18255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18256. $as_echo "no" >&6; }
  18257. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18258. fi
  18259. fi
  18260. # BEGIN COPYRIGHT BLOCK
  18261. # Copyright (C) 2009 Red Hat, Inc.
  18262. # All rights reserved.
  18263. #
  18264. # This program is free software; you can redistribute it and/or
  18265. # modify it under the terms of the GNU General Public License
  18266. # as published by the Free Software Foundation; either version 2
  18267. # of the License, or (at your option) any later version.
  18268. #
  18269. # This program is distributed in the hope that it will be useful,
  18270. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18271. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18272. # GNU General Public License for more details.
  18273. #
  18274. # You should have received a copy of the GNU General Public License
  18275. # along with this program; if not, write to the Free Software
  18276. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18277. #
  18278. # END COPYRIGHT BLOCK
  18279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18280. $as_echo "$as_me: checking for SELinux..." >&6;}
  18281. # check for --with-selinux
  18282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18283. $as_echo_n "checking for --with-selinux... " >&6; }
  18284. # Check whether --with-selinux was given.
  18285. if test "${with_selinux+set}" = set; then :
  18286. withval=$with_selinux;
  18287. if test "$withval" = "no"; then
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18289. $as_echo "no" >&6; }
  18290. else
  18291. with_selinux=yes
  18292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18293. $as_echo "yes" >&6; }
  18294. fi
  18295. else
  18296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18297. $as_echo "no" >&6; }
  18298. fi
  18299. # BEGIN COPYRIGHT BLOCK
  18300. # Copyright (C) 2015 Red Hat, Inc.
  18301. # All rights reserved.
  18302. #
  18303. # This program is free software; you can redistribute it and/or
  18304. # modify it under the terms of the GNU General Public License
  18305. # as published by the Free Software Foundation; either version 2
  18306. # of the License, or (at your option) any later version.
  18307. #
  18308. # This program is distributed in the hope that it will be useful,
  18309. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18310. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18311. # GNU General Public License for more details.
  18312. #
  18313. # You should have received a copy of the GNU General Public License
  18314. # along with this program; if not, write to the Free Software
  18315. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18316. #
  18317. # END COPYRIGHT BLOCK
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nunc-stans..." >&5
  18319. $as_echo "$as_me: checking for nunc-stans..." >&6;}
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans" >&5
  18321. $as_echo_n "checking for --with-nunc-stans... " >&6; }
  18322. # Check whether --with-nunc-stans was given.
  18323. if test "${with_nunc_stans+set}" = set; then :
  18324. withval=$with_nunc_stans;
  18325. if test "$withval" = "yes"; then
  18326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18327. $as_echo "yes" >&6; }
  18328. elif test "$withval" = "no"; then
  18329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18330. $as_echo "no" >&6; }
  18331. elif test -d "$withval"; then
  18332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18333. $as_echo "using $withval" >&6; }
  18334. nunc_stans_lib="-L$withval/lib"
  18335. nunc_stans_libdir="$withval/lib"
  18336. nunc_stans_incdir="$withval/include"
  18337. if ! test -e "$nunc_stans_incdir/nunc-stans/nunc-stans.h" ; then
  18338. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18339. fi
  18340. nunc_stans_inc="-I$nunc_stans_incdir"
  18341. else
  18342. echo
  18343. as_fn_error $? "$withval not found" "$LINENO" 5
  18344. fi
  18345. else
  18346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18347. $as_echo "no" >&6; }
  18348. fi
  18349. # check for --with-nunc-stans-inc
  18350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-inc" >&5
  18351. $as_echo_n "checking for --with-nunc-stans-inc... " >&6; }
  18352. # Check whether --with-nunc-stans-inc was given.
  18353. if test "${with_nunc_stans_inc+set}" = set; then :
  18354. withval=$with_nunc_stans_inc;
  18355. if test -e "$withval"/nunc-stans/nunc-stans.h
  18356. then
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18358. $as_echo "using $withval" >&6; }
  18359. nunc_stans_incdir="$withval"
  18360. nunc_stans_inc="-I$withval"
  18361. else
  18362. echo
  18363. as_fn_error $? "$withval not found" "$LINENO" 5
  18364. fi
  18365. else
  18366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18367. $as_echo "no" >&6; }
  18368. fi
  18369. # check for --with-nunc-stans-lib
  18370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-lib" >&5
  18371. $as_echo_n "checking for --with-nunc-stans-lib... " >&6; }
  18372. # Check whether --with-nunc-stans-lib was given.
  18373. if test "${with_nunc_stans_lib+set}" = set; then :
  18374. withval=$with_nunc_stans_lib;
  18375. if test -d "$withval"
  18376. then
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18378. $as_echo "using $withval" >&6; }
  18379. nunc_stans_lib="-L$withval"
  18380. nunc_stans_libdir="$withval"
  18381. else
  18382. echo
  18383. as_fn_error $? "$withval not found" "$LINENO" 5
  18384. fi
  18385. else
  18386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18387. $as_echo "no" >&6; }
  18388. fi
  18389. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18390. # set sasl_path for wrapper scripts
  18391. if test -z "$sasl_libdir" ; then
  18392. sasl_path="$libdir/sasl2"
  18393. else
  18394. sasl_path="$sasl_libdir/sasl2"
  18395. fi
  18396. if test "$with_selinux" = "yes"; then
  18397. SELINUX_TRUE=
  18398. SELINUX_FALSE='#'
  18399. else
  18400. SELINUX_TRUE='#'
  18401. SELINUX_FALSE=
  18402. fi
  18403. if test "$with_openldap" = "yes"; then
  18404. OPENLDAP_TRUE=
  18405. OPENLDAP_FALSE='#'
  18406. else
  18407. OPENLDAP_TRUE='#'
  18408. OPENLDAP_FALSE=
  18409. fi
  18410. if test "$platform" = "solaris"; then
  18411. SOLARIS_TRUE=
  18412. SOLARIS_FALSE='#'
  18413. else
  18414. SOLARIS_TRUE='#'
  18415. SOLARIS_FALSE=
  18416. fi
  18417. if test "x$TARGET" = xSPARC; then
  18418. SPARC_TRUE=
  18419. SPARC_FALSE='#'
  18420. else
  18421. SPARC_TRUE='#'
  18422. SPARC_FALSE=
  18423. fi
  18424. # write out paths for binary components
  18425. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18426. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18427. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18428. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18429. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18430. # we remove them here
  18431. if test "$GCC" != yes ; then
  18432. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18433. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18434. cp -p libtool libtool.orig
  18435. cp -p libtool libtool.tmp
  18436. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18437. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18438. # perl produced write-only code . . .
  18439. sed -e '/^gcc_dir/ d' \
  18440. -e '/^gcc_ver/ d' \
  18441. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18442. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18443. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18444. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18445. libtool > libtool.tmp
  18446. cp -p libtool.tmp libtool
  18447. rm -f libtool.tmp
  18448. fi
  18449. ac_config_files="$ac_config_files Makefile"
  18450. cat >confcache <<\_ACEOF
  18451. # This file is a shell script that caches the results of configure
  18452. # tests run on this system so they can be shared between configure
  18453. # scripts and configure runs, see configure's option --config-cache.
  18454. # It is not useful on other systems. If it contains results you don't
  18455. # want to keep, you may remove or edit it.
  18456. #
  18457. # config.status only pays attention to the cache file if you give it
  18458. # the --recheck option to rerun configure.
  18459. #
  18460. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18461. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18462. # following values.
  18463. _ACEOF
  18464. # The following way of writing the cache mishandles newlines in values,
  18465. # but we know of no workaround that is simple, portable, and efficient.
  18466. # So, we kill variables containing newlines.
  18467. # Ultrix sh set writes to stderr and can't be redirected directly,
  18468. # and sets the high bit in the cache file unless we assign to the vars.
  18469. (
  18470. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18471. eval ac_val=\$$ac_var
  18472. case $ac_val in #(
  18473. *${as_nl}*)
  18474. case $ac_var in #(
  18475. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18476. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18477. esac
  18478. case $ac_var in #(
  18479. _ | IFS | as_nl) ;; #(
  18480. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18481. *) { eval $ac_var=; unset $ac_var;} ;;
  18482. esac ;;
  18483. esac
  18484. done
  18485. (set) 2>&1 |
  18486. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18487. *${as_nl}ac_space=\ *)
  18488. # `set' does not quote correctly, so add quotes: double-quote
  18489. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18490. sed -n \
  18491. "s/'/'\\\\''/g;
  18492. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18493. ;; #(
  18494. *)
  18495. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18496. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18497. ;;
  18498. esac |
  18499. sort
  18500. ) |
  18501. sed '
  18502. /^ac_cv_env_/b end
  18503. t clear
  18504. :clear
  18505. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18506. t end
  18507. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18508. :end' >>confcache
  18509. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18510. if test -w "$cache_file"; then
  18511. if test "x$cache_file" != "x/dev/null"; then
  18512. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18513. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18514. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18515. cat confcache >"$cache_file"
  18516. else
  18517. case $cache_file in #(
  18518. */* | ?:*)
  18519. mv -f confcache "$cache_file"$$ &&
  18520. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18521. *)
  18522. mv -f confcache "$cache_file" ;;
  18523. esac
  18524. fi
  18525. fi
  18526. else
  18527. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18528. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18529. fi
  18530. fi
  18531. rm -f confcache
  18532. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18533. # Let make expand exec_prefix.
  18534. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18535. DEFS=-DHAVE_CONFIG_H
  18536. ac_libobjs=
  18537. ac_ltlibobjs=
  18538. U=
  18539. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18540. # 1. Remove the extension, and $U if already installed.
  18541. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18542. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18543. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18544. # will be set to the directory where LIBOBJS objects are built.
  18545. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18546. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18547. done
  18548. LIBOBJS=$ac_libobjs
  18549. LTLIBOBJS=$ac_ltlibobjs
  18550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18551. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18552. if test -n "$am_sleep_pid"; then
  18553. # Hide warnings about reused PIDs.
  18554. wait $am_sleep_pid 2>/dev/null
  18555. fi
  18556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18557. $as_echo "done" >&6; }
  18558. if test -n "$EXEEXT"; then
  18559. am__EXEEXT_TRUE=
  18560. am__EXEEXT_FALSE='#'
  18561. else
  18562. am__EXEEXT_TRUE='#'
  18563. am__EXEEXT_FALSE=
  18564. fi
  18565. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18566. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18567. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18568. fi
  18569. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18570. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18571. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18572. fi
  18573. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18574. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18575. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18576. fi
  18577. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18578. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18579. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18580. fi
  18581. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18582. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18583. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18584. fi
  18585. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18586. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18587. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18588. fi
  18589. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18590. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18591. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18592. fi
  18593. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18594. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18595. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18596. fi
  18597. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18598. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18599. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18600. fi
  18601. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18602. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18603. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18604. fi
  18605. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18606. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18607. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18608. fi
  18609. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18610. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18611. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18612. fi
  18613. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18614. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18615. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18616. fi
  18617. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18618. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18619. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18620. fi
  18621. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18622. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18623. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18624. fi
  18625. if test -z "${enable_nunc_stans_TRUE}" && test -z "${enable_nunc_stans_FALSE}"; then
  18626. as_fn_error $? "conditional \"enable_nunc_stans\" was never defined.
  18627. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18628. fi
  18629. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18630. as_fn_error $? "conditional \"WINNT\" was never defined.
  18631. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18632. fi
  18633. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18634. as_fn_error $? "conditional \"HPUX\" was never defined.
  18635. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18636. fi
  18637. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18638. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18639. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18640. fi
  18641. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18642. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18644. fi
  18645. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18646. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18648. fi
  18649. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18650. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18652. fi
  18653. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18654. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18656. fi
  18657. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18658. as_fn_error $? "conditional \"SPARC\" was never defined.
  18659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18660. fi
  18661. : "${CONFIG_STATUS=./config.status}"
  18662. ac_write_fail=0
  18663. ac_clean_files_save=$ac_clean_files
  18664. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18665. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18666. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18667. as_write_fail=0
  18668. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18669. #! $SHELL
  18670. # Generated by $as_me.
  18671. # Run this file to recreate the current configuration.
  18672. # Compiler output produced by configure, useful for debugging
  18673. # configure, is in config.log if it exists.
  18674. debug=false
  18675. ac_cs_recheck=false
  18676. ac_cs_silent=false
  18677. SHELL=\${CONFIG_SHELL-$SHELL}
  18678. export SHELL
  18679. _ASEOF
  18680. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18681. ## -------------------- ##
  18682. ## M4sh Initialization. ##
  18683. ## -------------------- ##
  18684. # Be more Bourne compatible
  18685. DUALCASE=1; export DUALCASE # for MKS sh
  18686. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18687. emulate sh
  18688. NULLCMD=:
  18689. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18690. # is contrary to our usage. Disable this feature.
  18691. alias -g '${1+"$@"}'='"$@"'
  18692. setopt NO_GLOB_SUBST
  18693. else
  18694. case `(set -o) 2>/dev/null` in #(
  18695. *posix*) :
  18696. set -o posix ;; #(
  18697. *) :
  18698. ;;
  18699. esac
  18700. fi
  18701. as_nl='
  18702. '
  18703. export as_nl
  18704. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18705. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18706. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18707. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18708. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18709. # but without wasting forks for bash or zsh.
  18710. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18711. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18712. as_echo='print -r --'
  18713. as_echo_n='print -rn --'
  18714. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18715. as_echo='printf %s\n'
  18716. as_echo_n='printf %s'
  18717. else
  18718. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18719. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18720. as_echo_n='/usr/ucb/echo -n'
  18721. else
  18722. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18723. as_echo_n_body='eval
  18724. arg=$1;
  18725. case $arg in #(
  18726. *"$as_nl"*)
  18727. expr "X$arg" : "X\\(.*\\)$as_nl";
  18728. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18729. esac;
  18730. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18731. '
  18732. export as_echo_n_body
  18733. as_echo_n='sh -c $as_echo_n_body as_echo'
  18734. fi
  18735. export as_echo_body
  18736. as_echo='sh -c $as_echo_body as_echo'
  18737. fi
  18738. # The user is always right.
  18739. if test "${PATH_SEPARATOR+set}" != set; then
  18740. PATH_SEPARATOR=:
  18741. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18742. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18743. PATH_SEPARATOR=';'
  18744. }
  18745. fi
  18746. # IFS
  18747. # We need space, tab and new line, in precisely that order. Quoting is
  18748. # there to prevent editors from complaining about space-tab.
  18749. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18750. # splitting by setting IFS to empty value.)
  18751. IFS=" "" $as_nl"
  18752. # Find who we are. Look in the path if we contain no directory separator.
  18753. as_myself=
  18754. case $0 in #((
  18755. *[\\/]* ) as_myself=$0 ;;
  18756. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18757. for as_dir in $PATH
  18758. do
  18759. IFS=$as_save_IFS
  18760. test -z "$as_dir" && as_dir=.
  18761. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18762. done
  18763. IFS=$as_save_IFS
  18764. ;;
  18765. esac
  18766. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18767. # in which case we are not to be found in the path.
  18768. if test "x$as_myself" = x; then
  18769. as_myself=$0
  18770. fi
  18771. if test ! -f "$as_myself"; then
  18772. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18773. exit 1
  18774. fi
  18775. # Unset variables that we do not need and which cause bugs (e.g. in
  18776. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18777. # suppresses any "Segmentation fault" message there. '((' could
  18778. # trigger a bug in pdksh 5.2.14.
  18779. for as_var in BASH_ENV ENV MAIL MAILPATH
  18780. do eval test x\${$as_var+set} = xset \
  18781. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18782. done
  18783. PS1='$ '
  18784. PS2='> '
  18785. PS4='+ '
  18786. # NLS nuisances.
  18787. LC_ALL=C
  18788. export LC_ALL
  18789. LANGUAGE=C
  18790. export LANGUAGE
  18791. # CDPATH.
  18792. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18793. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18794. # ----------------------------------------
  18795. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18796. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18797. # script with STATUS, using 1 if that was 0.
  18798. as_fn_error ()
  18799. {
  18800. as_status=$1; test $as_status -eq 0 && as_status=1
  18801. if test "$4"; then
  18802. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18803. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18804. fi
  18805. $as_echo "$as_me: error: $2" >&2
  18806. as_fn_exit $as_status
  18807. } # as_fn_error
  18808. # as_fn_set_status STATUS
  18809. # -----------------------
  18810. # Set $? to STATUS, without forking.
  18811. as_fn_set_status ()
  18812. {
  18813. return $1
  18814. } # as_fn_set_status
  18815. # as_fn_exit STATUS
  18816. # -----------------
  18817. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18818. as_fn_exit ()
  18819. {
  18820. set +e
  18821. as_fn_set_status $1
  18822. exit $1
  18823. } # as_fn_exit
  18824. # as_fn_unset VAR
  18825. # ---------------
  18826. # Portably unset VAR.
  18827. as_fn_unset ()
  18828. {
  18829. { eval $1=; unset $1;}
  18830. }
  18831. as_unset=as_fn_unset
  18832. # as_fn_append VAR VALUE
  18833. # ----------------------
  18834. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18835. # advantage of any shell optimizations that allow amortized linear growth over
  18836. # repeated appends, instead of the typical quadratic growth present in naive
  18837. # implementations.
  18838. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18839. eval 'as_fn_append ()
  18840. {
  18841. eval $1+=\$2
  18842. }'
  18843. else
  18844. as_fn_append ()
  18845. {
  18846. eval $1=\$$1\$2
  18847. }
  18848. fi # as_fn_append
  18849. # as_fn_arith ARG...
  18850. # ------------------
  18851. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18852. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18853. # must be portable across $(()) and expr.
  18854. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18855. eval 'as_fn_arith ()
  18856. {
  18857. as_val=$(( $* ))
  18858. }'
  18859. else
  18860. as_fn_arith ()
  18861. {
  18862. as_val=`expr "$@" || test $? -eq 1`
  18863. }
  18864. fi # as_fn_arith
  18865. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18866. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18867. as_expr=expr
  18868. else
  18869. as_expr=false
  18870. fi
  18871. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18872. as_basename=basename
  18873. else
  18874. as_basename=false
  18875. fi
  18876. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18877. as_dirname=dirname
  18878. else
  18879. as_dirname=false
  18880. fi
  18881. as_me=`$as_basename -- "$0" ||
  18882. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18883. X"$0" : 'X\(//\)$' \| \
  18884. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18885. $as_echo X/"$0" |
  18886. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18887. s//\1/
  18888. q
  18889. }
  18890. /^X\/\(\/\/\)$/{
  18891. s//\1/
  18892. q
  18893. }
  18894. /^X\/\(\/\).*/{
  18895. s//\1/
  18896. q
  18897. }
  18898. s/.*/./; q'`
  18899. # Avoid depending upon Character Ranges.
  18900. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18901. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18902. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18903. as_cr_digits='0123456789'
  18904. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18905. ECHO_C= ECHO_N= ECHO_T=
  18906. case `echo -n x` in #(((((
  18907. -n*)
  18908. case `echo 'xy\c'` in
  18909. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18910. xy) ECHO_C='\c';;
  18911. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18912. ECHO_T=' ';;
  18913. esac;;
  18914. *)
  18915. ECHO_N='-n';;
  18916. esac
  18917. rm -f conf$$ conf$$.exe conf$$.file
  18918. if test -d conf$$.dir; then
  18919. rm -f conf$$.dir/conf$$.file
  18920. else
  18921. rm -f conf$$.dir
  18922. mkdir conf$$.dir 2>/dev/null
  18923. fi
  18924. if (echo >conf$$.file) 2>/dev/null; then
  18925. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18926. as_ln_s='ln -s'
  18927. # ... but there are two gotchas:
  18928. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18929. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18930. # In both cases, we have to default to `cp -pR'.
  18931. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18932. as_ln_s='cp -pR'
  18933. elif ln conf$$.file conf$$ 2>/dev/null; then
  18934. as_ln_s=ln
  18935. else
  18936. as_ln_s='cp -pR'
  18937. fi
  18938. else
  18939. as_ln_s='cp -pR'
  18940. fi
  18941. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18942. rmdir conf$$.dir 2>/dev/null
  18943. # as_fn_mkdir_p
  18944. # -------------
  18945. # Create "$as_dir" as a directory, including parents if necessary.
  18946. as_fn_mkdir_p ()
  18947. {
  18948. case $as_dir in #(
  18949. -*) as_dir=./$as_dir;;
  18950. esac
  18951. test -d "$as_dir" || eval $as_mkdir_p || {
  18952. as_dirs=
  18953. while :; do
  18954. case $as_dir in #(
  18955. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18956. *) as_qdir=$as_dir;;
  18957. esac
  18958. as_dirs="'$as_qdir' $as_dirs"
  18959. as_dir=`$as_dirname -- "$as_dir" ||
  18960. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18961. X"$as_dir" : 'X\(//\)[^/]' \| \
  18962. X"$as_dir" : 'X\(//\)$' \| \
  18963. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18964. $as_echo X"$as_dir" |
  18965. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18966. s//\1/
  18967. q
  18968. }
  18969. /^X\(\/\/\)[^/].*/{
  18970. s//\1/
  18971. q
  18972. }
  18973. /^X\(\/\/\)$/{
  18974. s//\1/
  18975. q
  18976. }
  18977. /^X\(\/\).*/{
  18978. s//\1/
  18979. q
  18980. }
  18981. s/.*/./; q'`
  18982. test -d "$as_dir" && break
  18983. done
  18984. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18985. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18986. } # as_fn_mkdir_p
  18987. if mkdir -p . 2>/dev/null; then
  18988. as_mkdir_p='mkdir -p "$as_dir"'
  18989. else
  18990. test -d ./-p && rmdir ./-p
  18991. as_mkdir_p=false
  18992. fi
  18993. # as_fn_executable_p FILE
  18994. # -----------------------
  18995. # Test if FILE is an executable regular file.
  18996. as_fn_executable_p ()
  18997. {
  18998. test -f "$1" && test -x "$1"
  18999. } # as_fn_executable_p
  19000. as_test_x='test -x'
  19001. as_executable_p=as_fn_executable_p
  19002. # Sed expression to map a string onto a valid CPP name.
  19003. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19004. # Sed expression to map a string onto a valid variable name.
  19005. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19006. exec 6>&1
  19007. ## ----------------------------------- ##
  19008. ## Main body of $CONFIG_STATUS script. ##
  19009. ## ----------------------------------- ##
  19010. _ASEOF
  19011. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19012. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19013. # Save the log message, to keep $0 and so on meaningful, and to
  19014. # report actual input values of CONFIG_FILES etc. instead of their
  19015. # values after options handling.
  19016. ac_log="
  19017. This file was extended by dirsrv $as_me 1.0, which was
  19018. generated by GNU Autoconf 2.69. Invocation command line was
  19019. CONFIG_FILES = $CONFIG_FILES
  19020. CONFIG_HEADERS = $CONFIG_HEADERS
  19021. CONFIG_LINKS = $CONFIG_LINKS
  19022. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19023. $ $0 $@
  19024. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19025. "
  19026. _ACEOF
  19027. case $ac_config_files in *"
  19028. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19029. esac
  19030. case $ac_config_headers in *"
  19031. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19032. esac
  19033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19034. # Files that config.status was made for.
  19035. config_files="$ac_config_files"
  19036. config_headers="$ac_config_headers"
  19037. config_commands="$ac_config_commands"
  19038. _ACEOF
  19039. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19040. ac_cs_usage="\
  19041. \`$as_me' instantiates files and other configuration actions
  19042. from templates according to the current configuration. Unless the files
  19043. and actions are specified as TAGs, all are instantiated by default.
  19044. Usage: $0 [OPTION]... [TAG]...
  19045. -h, --help print this help, then exit
  19046. -V, --version print version number and configuration settings, then exit
  19047. --config print configuration, then exit
  19048. -q, --quiet, --silent
  19049. do not print progress messages
  19050. -d, --debug don't remove temporary files
  19051. --recheck update $as_me by reconfiguring in the same conditions
  19052. --file=FILE[:TEMPLATE]
  19053. instantiate the configuration file FILE
  19054. --header=FILE[:TEMPLATE]
  19055. instantiate the configuration header FILE
  19056. Configuration files:
  19057. $config_files
  19058. Configuration headers:
  19059. $config_headers
  19060. Configuration commands:
  19061. $config_commands
  19062. Report bugs to <http://bugzilla.redhat.com/>."
  19063. _ACEOF
  19064. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19065. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19066. ac_cs_version="\\
  19067. dirsrv config.status 1.0
  19068. configured by $0, generated by GNU Autoconf 2.69,
  19069. with options \\"\$ac_cs_config\\"
  19070. Copyright (C) 2012 Free Software Foundation, Inc.
  19071. This config.status script is free software; the Free Software Foundation
  19072. gives unlimited permission to copy, distribute and modify it."
  19073. ac_pwd='$ac_pwd'
  19074. srcdir='$srcdir'
  19075. INSTALL='$INSTALL'
  19076. MKDIR_P='$MKDIR_P'
  19077. AWK='$AWK'
  19078. test -n "\$AWK" || AWK=awk
  19079. _ACEOF
  19080. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19081. # The default lists apply if the user does not specify any file.
  19082. ac_need_defaults=:
  19083. while test $# != 0
  19084. do
  19085. case $1 in
  19086. --*=?*)
  19087. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19088. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19089. ac_shift=:
  19090. ;;
  19091. --*=)
  19092. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19093. ac_optarg=
  19094. ac_shift=:
  19095. ;;
  19096. *)
  19097. ac_option=$1
  19098. ac_optarg=$2
  19099. ac_shift=shift
  19100. ;;
  19101. esac
  19102. case $ac_option in
  19103. # Handling of the options.
  19104. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19105. ac_cs_recheck=: ;;
  19106. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19107. $as_echo "$ac_cs_version"; exit ;;
  19108. --config | --confi | --conf | --con | --co | --c )
  19109. $as_echo "$ac_cs_config"; exit ;;
  19110. --debug | --debu | --deb | --de | --d | -d )
  19111. debug=: ;;
  19112. --file | --fil | --fi | --f )
  19113. $ac_shift
  19114. case $ac_optarg in
  19115. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19116. '') as_fn_error $? "missing file argument" ;;
  19117. esac
  19118. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19119. ac_need_defaults=false;;
  19120. --header | --heade | --head | --hea )
  19121. $ac_shift
  19122. case $ac_optarg in
  19123. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19124. esac
  19125. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19126. ac_need_defaults=false;;
  19127. --he | --h)
  19128. # Conflict between --help and --header
  19129. as_fn_error $? "ambiguous option: \`$1'
  19130. Try \`$0 --help' for more information.";;
  19131. --help | --hel | -h )
  19132. $as_echo "$ac_cs_usage"; exit ;;
  19133. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19134. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19135. ac_cs_silent=: ;;
  19136. # This is an error.
  19137. -*) as_fn_error $? "unrecognized option: \`$1'
  19138. Try \`$0 --help' for more information." ;;
  19139. *) as_fn_append ac_config_targets " $1"
  19140. ac_need_defaults=false ;;
  19141. esac
  19142. shift
  19143. done
  19144. ac_configure_extra_args=
  19145. if $ac_cs_silent; then
  19146. exec 6>/dev/null
  19147. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19148. fi
  19149. _ACEOF
  19150. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19151. if \$ac_cs_recheck; then
  19152. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19153. shift
  19154. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19155. CONFIG_SHELL='$SHELL'
  19156. export CONFIG_SHELL
  19157. exec "\$@"
  19158. fi
  19159. _ACEOF
  19160. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19161. exec 5>>config.log
  19162. {
  19163. echo
  19164. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19165. ## Running $as_me. ##
  19166. _ASBOX
  19167. $as_echo "$ac_log"
  19168. } >&5
  19169. _ACEOF
  19170. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19171. #
  19172. # INIT-COMMANDS
  19173. #
  19174. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19175. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19176. # if CDPATH is set.
  19177. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19178. sed_quote_subst='$sed_quote_subst'
  19179. double_quote_subst='$double_quote_subst'
  19180. delay_variable_subst='$delay_variable_subst'
  19181. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19182. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19183. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19184. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19185. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19186. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19187. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19188. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19189. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19190. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19191. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19192. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19193. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19194. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19195. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19196. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19197. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19198. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19199. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19200. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19201. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19202. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19203. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19204. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19205. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19206. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19207. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19208. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19209. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19210. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19211. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19212. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19213. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19214. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19215. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19216. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19217. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19218. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19219. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19220. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19221. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19222. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19223. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19224. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19225. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19226. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19227. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19228. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19229. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19230. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19231. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19232. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19233. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19234. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19235. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19236. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19237. 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"`'
  19238. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19239. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19240. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19241. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19242. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19243. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19244. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19245. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19246. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19247. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19248. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19249. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19250. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19251. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19252. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19253. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19254. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19255. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19256. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19257. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19258. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19259. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19260. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19261. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19262. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19263. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19264. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19265. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19266. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19267. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19268. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19269. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19270. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19271. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19272. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19273. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19274. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19275. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19276. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19277. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19278. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19279. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19280. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19281. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19282. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19283. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19284. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19285. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19286. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19287. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19288. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19289. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19290. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19291. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19292. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19293. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19294. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19295. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19296. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19297. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19298. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19299. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19300. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19301. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19302. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19303. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19304. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19305. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19306. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19307. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19308. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19309. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19310. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19311. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19312. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19313. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19314. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19315. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19316. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19317. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19318. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19319. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19320. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19321. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19322. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19323. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19324. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19325. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19326. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19327. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19328. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19329. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19330. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19331. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19332. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19333. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19334. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19335. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19336. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19337. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19338. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19339. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19340. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19341. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19342. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19343. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19344. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19345. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19346. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19347. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19348. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19349. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19350. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19351. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19352. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19353. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19354. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19355. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19356. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19357. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19358. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19359. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19360. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19361. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19362. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19363. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19364. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19365. LTCC='$LTCC'
  19366. LTCFLAGS='$LTCFLAGS'
  19367. compiler='$compiler_DEFAULT'
  19368. # A function that is used when there is no print builtin or printf.
  19369. func_fallback_echo ()
  19370. {
  19371. eval 'cat <<_LTECHO_EOF
  19372. \$1
  19373. _LTECHO_EOF'
  19374. }
  19375. # Quote evaled strings.
  19376. for var in SHELL \
  19377. ECHO \
  19378. PATH_SEPARATOR \
  19379. SED \
  19380. GREP \
  19381. EGREP \
  19382. FGREP \
  19383. LD \
  19384. NM \
  19385. LN_S \
  19386. lt_SP2NL \
  19387. lt_NL2SP \
  19388. reload_flag \
  19389. OBJDUMP \
  19390. deplibs_check_method \
  19391. file_magic_cmd \
  19392. file_magic_glob \
  19393. want_nocaseglob \
  19394. DLLTOOL \
  19395. sharedlib_from_linklib_cmd \
  19396. AR \
  19397. AR_FLAGS \
  19398. archiver_list_spec \
  19399. STRIP \
  19400. RANLIB \
  19401. CC \
  19402. CFLAGS \
  19403. compiler \
  19404. lt_cv_sys_global_symbol_pipe \
  19405. lt_cv_sys_global_symbol_to_cdecl \
  19406. lt_cv_sys_global_symbol_to_c_name_address \
  19407. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19408. nm_file_list_spec \
  19409. lt_prog_compiler_no_builtin_flag \
  19410. lt_prog_compiler_pic \
  19411. lt_prog_compiler_wl \
  19412. lt_prog_compiler_static \
  19413. lt_cv_prog_compiler_c_o \
  19414. need_locks \
  19415. MANIFEST_TOOL \
  19416. DSYMUTIL \
  19417. NMEDIT \
  19418. LIPO \
  19419. OTOOL \
  19420. OTOOL64 \
  19421. shrext_cmds \
  19422. export_dynamic_flag_spec \
  19423. whole_archive_flag_spec \
  19424. compiler_needs_object \
  19425. with_gnu_ld \
  19426. allow_undefined_flag \
  19427. no_undefined_flag \
  19428. hardcode_libdir_flag_spec \
  19429. hardcode_libdir_separator \
  19430. exclude_expsyms \
  19431. include_expsyms \
  19432. file_list_spec \
  19433. variables_saved_for_relink \
  19434. libname_spec \
  19435. library_names_spec \
  19436. soname_spec \
  19437. install_override_mode \
  19438. finish_eval \
  19439. old_striplib \
  19440. striplib \
  19441. compiler_lib_search_dirs \
  19442. predep_objects \
  19443. postdep_objects \
  19444. predeps \
  19445. postdeps \
  19446. compiler_lib_search_path \
  19447. LD_CXX \
  19448. reload_flag_CXX \
  19449. compiler_CXX \
  19450. lt_prog_compiler_no_builtin_flag_CXX \
  19451. lt_prog_compiler_pic_CXX \
  19452. lt_prog_compiler_wl_CXX \
  19453. lt_prog_compiler_static_CXX \
  19454. lt_cv_prog_compiler_c_o_CXX \
  19455. export_dynamic_flag_spec_CXX \
  19456. whole_archive_flag_spec_CXX \
  19457. compiler_needs_object_CXX \
  19458. with_gnu_ld_CXX \
  19459. allow_undefined_flag_CXX \
  19460. no_undefined_flag_CXX \
  19461. hardcode_libdir_flag_spec_CXX \
  19462. hardcode_libdir_separator_CXX \
  19463. exclude_expsyms_CXX \
  19464. include_expsyms_CXX \
  19465. file_list_spec_CXX \
  19466. compiler_lib_search_dirs_CXX \
  19467. predep_objects_CXX \
  19468. postdep_objects_CXX \
  19469. predeps_CXX \
  19470. postdeps_CXX \
  19471. compiler_lib_search_path_CXX; do
  19472. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19473. *[\\\\\\\`\\"\\\$]*)
  19474. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19475. ;;
  19476. *)
  19477. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19478. ;;
  19479. esac
  19480. done
  19481. # Double-quote double-evaled strings.
  19482. for var in reload_cmds \
  19483. old_postinstall_cmds \
  19484. old_postuninstall_cmds \
  19485. old_archive_cmds \
  19486. extract_expsyms_cmds \
  19487. old_archive_from_new_cmds \
  19488. old_archive_from_expsyms_cmds \
  19489. archive_cmds \
  19490. archive_expsym_cmds \
  19491. module_cmds \
  19492. module_expsym_cmds \
  19493. export_symbols_cmds \
  19494. prelink_cmds \
  19495. postlink_cmds \
  19496. postinstall_cmds \
  19497. postuninstall_cmds \
  19498. finish_cmds \
  19499. sys_lib_search_path_spec \
  19500. sys_lib_dlsearch_path_spec \
  19501. reload_cmds_CXX \
  19502. old_archive_cmds_CXX \
  19503. old_archive_from_new_cmds_CXX \
  19504. old_archive_from_expsyms_cmds_CXX \
  19505. archive_cmds_CXX \
  19506. archive_expsym_cmds_CXX \
  19507. module_cmds_CXX \
  19508. module_expsym_cmds_CXX \
  19509. export_symbols_cmds_CXX \
  19510. prelink_cmds_CXX \
  19511. postlink_cmds_CXX; do
  19512. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19513. *[\\\\\\\`\\"\\\$]*)
  19514. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19515. ;;
  19516. *)
  19517. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19518. ;;
  19519. esac
  19520. done
  19521. ac_aux_dir='$ac_aux_dir'
  19522. xsi_shell='$xsi_shell'
  19523. lt_shell_append='$lt_shell_append'
  19524. # See if we are running on zsh, and set the options which allow our
  19525. # commands through without removal of \ escapes INIT.
  19526. if test -n "\${ZSH_VERSION+set}" ; then
  19527. setopt NO_GLOB_SUBST
  19528. fi
  19529. PACKAGE='$PACKAGE'
  19530. VERSION='$VERSION'
  19531. TIMESTAMP='$TIMESTAMP'
  19532. RM='$RM'
  19533. ofile='$ofile'
  19534. _ACEOF
  19535. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19536. # Handling of arguments.
  19537. for ac_config_target in $ac_config_targets
  19538. do
  19539. case $ac_config_target in
  19540. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19541. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19542. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19543. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19544. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19545. esac
  19546. done
  19547. # If the user did not use the arguments to specify the items to instantiate,
  19548. # then the envvar interface is used. Set only those that are not.
  19549. # We use the long form for the default assignment because of an extremely
  19550. # bizarre bug on SunOS 4.1.3.
  19551. if $ac_need_defaults; then
  19552. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19553. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19554. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19555. fi
  19556. # Have a temporary directory for convenience. Make it in the build tree
  19557. # simply because there is no reason against having it here, and in addition,
  19558. # creating and moving files from /tmp can sometimes cause problems.
  19559. # Hook for its removal unless debugging.
  19560. # Note that there is a small window in which the directory will not be cleaned:
  19561. # after its creation but before its name has been assigned to `$tmp'.
  19562. $debug ||
  19563. {
  19564. tmp= ac_tmp=
  19565. trap 'exit_status=$?
  19566. : "${ac_tmp:=$tmp}"
  19567. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19568. ' 0
  19569. trap 'as_fn_exit 1' 1 2 13 15
  19570. }
  19571. # Create a (secure) tmp directory for tmp files.
  19572. {
  19573. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19574. test -d "$tmp"
  19575. } ||
  19576. {
  19577. tmp=./conf$$-$RANDOM
  19578. (umask 077 && mkdir "$tmp")
  19579. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19580. ac_tmp=$tmp
  19581. # Set up the scripts for CONFIG_FILES section.
  19582. # No need to generate them if there are no CONFIG_FILES.
  19583. # This happens for instance with `./config.status config.h'.
  19584. if test -n "$CONFIG_FILES"; then
  19585. ac_cr=`echo X | tr X '\015'`
  19586. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19587. # But we know of no other shell where ac_cr would be empty at this
  19588. # point, so we can use a bashism as a fallback.
  19589. if test "x$ac_cr" = x; then
  19590. eval ac_cr=\$\'\\r\'
  19591. fi
  19592. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19593. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19594. ac_cs_awk_cr='\\r'
  19595. else
  19596. ac_cs_awk_cr=$ac_cr
  19597. fi
  19598. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19599. _ACEOF
  19600. {
  19601. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19602. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19603. echo "_ACEOF"
  19604. } >conf$$subs.sh ||
  19605. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19606. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19607. ac_delim='%!_!# '
  19608. for ac_last_try in false false false false false :; do
  19609. . ./conf$$subs.sh ||
  19610. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19611. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19612. if test $ac_delim_n = $ac_delim_num; then
  19613. break
  19614. elif $ac_last_try; then
  19615. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19616. else
  19617. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19618. fi
  19619. done
  19620. rm -f conf$$subs.sh
  19621. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19622. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19623. _ACEOF
  19624. sed -n '
  19625. h
  19626. s/^/S["/; s/!.*/"]=/
  19627. p
  19628. g
  19629. s/^[^!]*!//
  19630. :repl
  19631. t repl
  19632. s/'"$ac_delim"'$//
  19633. t delim
  19634. :nl
  19635. h
  19636. s/\(.\{148\}\)..*/\1/
  19637. t more1
  19638. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19639. p
  19640. n
  19641. b repl
  19642. :more1
  19643. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19644. p
  19645. g
  19646. s/.\{148\}//
  19647. t nl
  19648. :delim
  19649. h
  19650. s/\(.\{148\}\)..*/\1/
  19651. t more2
  19652. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19653. p
  19654. b
  19655. :more2
  19656. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19657. p
  19658. g
  19659. s/.\{148\}//
  19660. t delim
  19661. ' <conf$$subs.awk | sed '
  19662. /^[^""]/{
  19663. N
  19664. s/\n//
  19665. }
  19666. ' >>$CONFIG_STATUS || ac_write_fail=1
  19667. rm -f conf$$subs.awk
  19668. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19669. _ACAWK
  19670. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19671. for (key in S) S_is_set[key] = 1
  19672. FS = ""
  19673. }
  19674. {
  19675. line = $ 0
  19676. nfields = split(line, field, "@")
  19677. substed = 0
  19678. len = length(field[1])
  19679. for (i = 2; i < nfields; i++) {
  19680. key = field[i]
  19681. keylen = length(key)
  19682. if (S_is_set[key]) {
  19683. value = S[key]
  19684. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19685. len += length(value) + length(field[++i])
  19686. substed = 1
  19687. } else
  19688. len += 1 + keylen
  19689. }
  19690. print line
  19691. }
  19692. _ACAWK
  19693. _ACEOF
  19694. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19695. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19696. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19697. else
  19698. cat
  19699. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19700. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19701. _ACEOF
  19702. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19703. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19704. # trailing colons and then remove the whole line if VPATH becomes empty
  19705. # (actually we leave an empty line to preserve line numbers).
  19706. if test "x$srcdir" = x.; then
  19707. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19708. h
  19709. s///
  19710. s/^/:/
  19711. s/[ ]*$/:/
  19712. s/:\$(srcdir):/:/g
  19713. s/:\${srcdir}:/:/g
  19714. s/:@srcdir@:/:/g
  19715. s/^:*//
  19716. s/:*$//
  19717. x
  19718. s/\(=[ ]*\).*/\1/
  19719. G
  19720. s/\n//
  19721. s/^[^=]*=[ ]*$//
  19722. }'
  19723. fi
  19724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19725. fi # test -n "$CONFIG_FILES"
  19726. # Set up the scripts for CONFIG_HEADERS section.
  19727. # No need to generate them if there are no CONFIG_HEADERS.
  19728. # This happens for instance with `./config.status Makefile'.
  19729. if test -n "$CONFIG_HEADERS"; then
  19730. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19731. BEGIN {
  19732. _ACEOF
  19733. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19734. # here-document in config.status, that substitutes the proper values into
  19735. # config.h.in to produce config.h.
  19736. # Create a delimiter string that does not exist in confdefs.h, to ease
  19737. # handling of long lines.
  19738. ac_delim='%!_!# '
  19739. for ac_last_try in false false :; do
  19740. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19741. if test -z "$ac_tt"; then
  19742. break
  19743. elif $ac_last_try; then
  19744. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19745. else
  19746. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19747. fi
  19748. done
  19749. # For the awk script, D is an array of macro values keyed by name,
  19750. # likewise P contains macro parameters if any. Preserve backslash
  19751. # newline sequences.
  19752. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19753. sed -n '
  19754. s/.\{148\}/&'"$ac_delim"'/g
  19755. t rset
  19756. :rset
  19757. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19758. t def
  19759. d
  19760. :def
  19761. s/\\$//
  19762. t bsnl
  19763. s/["\\]/\\&/g
  19764. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19765. D["\1"]=" \3"/p
  19766. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19767. d
  19768. :bsnl
  19769. s/["\\]/\\&/g
  19770. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19771. D["\1"]=" \3\\\\\\n"\\/p
  19772. t cont
  19773. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19774. t cont
  19775. d
  19776. :cont
  19777. n
  19778. s/.\{148\}/&'"$ac_delim"'/g
  19779. t clear
  19780. :clear
  19781. s/\\$//
  19782. t bsnlc
  19783. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19784. d
  19785. :bsnlc
  19786. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19787. b cont
  19788. ' <confdefs.h | sed '
  19789. s/'"$ac_delim"'/"\\\
  19790. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19791. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19792. for (key in D) D_is_set[key] = 1
  19793. FS = ""
  19794. }
  19795. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19796. line = \$ 0
  19797. split(line, arg, " ")
  19798. if (arg[1] == "#") {
  19799. defundef = arg[2]
  19800. mac1 = arg[3]
  19801. } else {
  19802. defundef = substr(arg[1], 2)
  19803. mac1 = arg[2]
  19804. }
  19805. split(mac1, mac2, "(") #)
  19806. macro = mac2[1]
  19807. prefix = substr(line, 1, index(line, defundef) - 1)
  19808. if (D_is_set[macro]) {
  19809. # Preserve the white space surrounding the "#".
  19810. print prefix "define", macro P[macro] D[macro]
  19811. next
  19812. } else {
  19813. # Replace #undef with comments. This is necessary, for example,
  19814. # in the case of _POSIX_SOURCE, which is predefined and required
  19815. # on some systems where configure will not decide to define it.
  19816. if (defundef == "undef") {
  19817. print "/*", prefix defundef, macro, "*/"
  19818. next
  19819. }
  19820. }
  19821. }
  19822. { print }
  19823. _ACAWK
  19824. _ACEOF
  19825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19826. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19827. fi # test -n "$CONFIG_HEADERS"
  19828. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19829. shift
  19830. for ac_tag
  19831. do
  19832. case $ac_tag in
  19833. :[FHLC]) ac_mode=$ac_tag; continue;;
  19834. esac
  19835. case $ac_mode$ac_tag in
  19836. :[FHL]*:*);;
  19837. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19838. :[FH]-) ac_tag=-:-;;
  19839. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19840. esac
  19841. ac_save_IFS=$IFS
  19842. IFS=:
  19843. set x $ac_tag
  19844. IFS=$ac_save_IFS
  19845. shift
  19846. ac_file=$1
  19847. shift
  19848. case $ac_mode in
  19849. :L) ac_source=$1;;
  19850. :[FH])
  19851. ac_file_inputs=
  19852. for ac_f
  19853. do
  19854. case $ac_f in
  19855. -) ac_f="$ac_tmp/stdin";;
  19856. *) # Look for the file first in the build tree, then in the source tree
  19857. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19858. # because $ac_f cannot contain `:'.
  19859. test -f "$ac_f" ||
  19860. case $ac_f in
  19861. [\\/$]*) false;;
  19862. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19863. esac ||
  19864. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19865. esac
  19866. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19867. as_fn_append ac_file_inputs " '$ac_f'"
  19868. done
  19869. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19870. # use $as_me), people would be surprised to read:
  19871. # /* config.h. Generated by config.status. */
  19872. configure_input='Generated from '`
  19873. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19874. `' by configure.'
  19875. if test x"$ac_file" != x-; then
  19876. configure_input="$ac_file. $configure_input"
  19877. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19878. $as_echo "$as_me: creating $ac_file" >&6;}
  19879. fi
  19880. # Neutralize special characters interpreted by sed in replacement strings.
  19881. case $configure_input in #(
  19882. *\&* | *\|* | *\\* )
  19883. ac_sed_conf_input=`$as_echo "$configure_input" |
  19884. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19885. *) ac_sed_conf_input=$configure_input;;
  19886. esac
  19887. case $ac_tag in
  19888. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19889. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19890. esac
  19891. ;;
  19892. esac
  19893. ac_dir=`$as_dirname -- "$ac_file" ||
  19894. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19895. X"$ac_file" : 'X\(//\)[^/]' \| \
  19896. X"$ac_file" : 'X\(//\)$' \| \
  19897. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19898. $as_echo X"$ac_file" |
  19899. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19900. s//\1/
  19901. q
  19902. }
  19903. /^X\(\/\/\)[^/].*/{
  19904. s//\1/
  19905. q
  19906. }
  19907. /^X\(\/\/\)$/{
  19908. s//\1/
  19909. q
  19910. }
  19911. /^X\(\/\).*/{
  19912. s//\1/
  19913. q
  19914. }
  19915. s/.*/./; q'`
  19916. as_dir="$ac_dir"; as_fn_mkdir_p
  19917. ac_builddir=.
  19918. case "$ac_dir" in
  19919. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19920. *)
  19921. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19922. # A ".." for each directory in $ac_dir_suffix.
  19923. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19924. case $ac_top_builddir_sub in
  19925. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19926. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19927. esac ;;
  19928. esac
  19929. ac_abs_top_builddir=$ac_pwd
  19930. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19931. # for backward compatibility:
  19932. ac_top_builddir=$ac_top_build_prefix
  19933. case $srcdir in
  19934. .) # We are building in place.
  19935. ac_srcdir=.
  19936. ac_top_srcdir=$ac_top_builddir_sub
  19937. ac_abs_top_srcdir=$ac_pwd ;;
  19938. [\\/]* | ?:[\\/]* ) # Absolute name.
  19939. ac_srcdir=$srcdir$ac_dir_suffix;
  19940. ac_top_srcdir=$srcdir
  19941. ac_abs_top_srcdir=$srcdir ;;
  19942. *) # Relative name.
  19943. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19944. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19945. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19946. esac
  19947. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19948. case $ac_mode in
  19949. :F)
  19950. #
  19951. # CONFIG_FILE
  19952. #
  19953. case $INSTALL in
  19954. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19955. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19956. esac
  19957. ac_MKDIR_P=$MKDIR_P
  19958. case $MKDIR_P in
  19959. [\\/$]* | ?:[\\/]* ) ;;
  19960. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19961. esac
  19962. _ACEOF
  19963. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19964. # If the template does not know about datarootdir, expand it.
  19965. # FIXME: This hack should be removed a few years after 2.60.
  19966. ac_datarootdir_hack=; ac_datarootdir_seen=
  19967. ac_sed_dataroot='
  19968. /datarootdir/ {
  19969. p
  19970. q
  19971. }
  19972. /@datadir@/p
  19973. /@docdir@/p
  19974. /@infodir@/p
  19975. /@localedir@/p
  19976. /@mandir@/p'
  19977. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19978. *datarootdir*) ac_datarootdir_seen=yes;;
  19979. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19981. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19982. _ACEOF
  19983. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19984. ac_datarootdir_hack='
  19985. s&@datadir@&$datadir&g
  19986. s&@docdir@&$docdir&g
  19987. s&@infodir@&$infodir&g
  19988. s&@localedir@&$localedir&g
  19989. s&@mandir@&$mandir&g
  19990. s&\\\${datarootdir}&$datarootdir&g' ;;
  19991. esac
  19992. _ACEOF
  19993. # Neutralize VPATH when `$srcdir' = `.'.
  19994. # Shell code in configure.ac might set extrasub.
  19995. # FIXME: do we really want to maintain this feature?
  19996. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19997. ac_sed_extra="$ac_vpsub
  19998. $extrasub
  19999. _ACEOF
  20000. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20001. :t
  20002. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20003. s|@configure_input@|$ac_sed_conf_input|;t t
  20004. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20005. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20006. s&@srcdir@&$ac_srcdir&;t t
  20007. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20008. s&@top_srcdir@&$ac_top_srcdir&;t t
  20009. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20010. s&@builddir@&$ac_builddir&;t t
  20011. s&@abs_builddir@&$ac_abs_builddir&;t t
  20012. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20013. s&@INSTALL@&$ac_INSTALL&;t t
  20014. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20015. $ac_datarootdir_hack
  20016. "
  20017. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  20018. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20019. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20020. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20021. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20022. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20023. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20024. which seems to be undefined. Please make sure it is defined" >&5
  20025. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20026. which seems to be undefined. Please make sure it is defined" >&2;}
  20027. rm -f "$ac_tmp/stdin"
  20028. case $ac_file in
  20029. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20030. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20031. esac \
  20032. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20033. ;;
  20034. :H)
  20035. #
  20036. # CONFIG_HEADER
  20037. #
  20038. if test x"$ac_file" != x-; then
  20039. {
  20040. $as_echo "/* $configure_input */" \
  20041. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20042. } >"$ac_tmp/config.h" \
  20043. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20044. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20046. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20047. else
  20048. rm -f "$ac_file"
  20049. mv "$ac_tmp/config.h" "$ac_file" \
  20050. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20051. fi
  20052. else
  20053. $as_echo "/* $configure_input */" \
  20054. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20055. || as_fn_error $? "could not create -" "$LINENO" 5
  20056. fi
  20057. # Compute "$ac_file"'s index in $config_headers.
  20058. _am_arg="$ac_file"
  20059. _am_stamp_count=1
  20060. for _am_header in $config_headers :; do
  20061. case $_am_header in
  20062. $_am_arg | $_am_arg:* )
  20063. break ;;
  20064. * )
  20065. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20066. esac
  20067. done
  20068. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20069. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20070. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20071. X"$_am_arg" : 'X\(//\)$' \| \
  20072. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20073. $as_echo X"$_am_arg" |
  20074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20075. s//\1/
  20076. q
  20077. }
  20078. /^X\(\/\/\)[^/].*/{
  20079. s//\1/
  20080. q
  20081. }
  20082. /^X\(\/\/\)$/{
  20083. s//\1/
  20084. q
  20085. }
  20086. /^X\(\/\).*/{
  20087. s//\1/
  20088. q
  20089. }
  20090. s/.*/./; q'`/stamp-h$_am_stamp_count
  20091. ;;
  20092. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20093. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20094. ;;
  20095. esac
  20096. case $ac_file$ac_mode in
  20097. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20098. # Older Autoconf quotes --file arguments for eval, but not when files
  20099. # are listed without --file. Let's play safe and only enable the eval
  20100. # if we detect the quoting.
  20101. case $CONFIG_FILES in
  20102. *\'*) eval set x "$CONFIG_FILES" ;;
  20103. *) set x $CONFIG_FILES ;;
  20104. esac
  20105. shift
  20106. for mf
  20107. do
  20108. # Strip MF so we end up with the name of the file.
  20109. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20110. # Check whether this is an Automake generated Makefile or not.
  20111. # We used to match only the files named 'Makefile.in', but
  20112. # some people rename them; so instead we look at the file content.
  20113. # Grep'ing the first line is not enough: some people post-process
  20114. # each Makefile.in and add a new line on top of each file to say so.
  20115. # Grep'ing the whole file is not good either: AIX grep has a line
  20116. # limit of 2048, but all sed's we know have understand at least 4000.
  20117. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20118. dirpart=`$as_dirname -- "$mf" ||
  20119. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20120. X"$mf" : 'X\(//\)[^/]' \| \
  20121. X"$mf" : 'X\(//\)$' \| \
  20122. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20123. $as_echo X"$mf" |
  20124. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20125. s//\1/
  20126. q
  20127. }
  20128. /^X\(\/\/\)[^/].*/{
  20129. s//\1/
  20130. q
  20131. }
  20132. /^X\(\/\/\)$/{
  20133. s//\1/
  20134. q
  20135. }
  20136. /^X\(\/\).*/{
  20137. s//\1/
  20138. q
  20139. }
  20140. s/.*/./; q'`
  20141. else
  20142. continue
  20143. fi
  20144. # Extract the definition of DEPDIR, am__include, and am__quote
  20145. # from the Makefile without running 'make'.
  20146. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20147. test -z "$DEPDIR" && continue
  20148. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20149. test -z "$am__include" && continue
  20150. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20151. # Find all dependency output files, they are included files with
  20152. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20153. # simplest approach to changing $(DEPDIR) to its actual value in the
  20154. # expansion.
  20155. for file in `sed -n "
  20156. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20157. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  20158. # Make sure the directory exists.
  20159. test -f "$dirpart/$file" && continue
  20160. fdir=`$as_dirname -- "$file" ||
  20161. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20162. X"$file" : 'X\(//\)[^/]' \| \
  20163. X"$file" : 'X\(//\)$' \| \
  20164. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20165. $as_echo X"$file" |
  20166. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20167. s//\1/
  20168. q
  20169. }
  20170. /^X\(\/\/\)[^/].*/{
  20171. s//\1/
  20172. q
  20173. }
  20174. /^X\(\/\/\)$/{
  20175. s//\1/
  20176. q
  20177. }
  20178. /^X\(\/\).*/{
  20179. s//\1/
  20180. q
  20181. }
  20182. s/.*/./; q'`
  20183. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20184. # echo "creating $dirpart/$file"
  20185. echo '# dummy' > "$dirpart/$file"
  20186. done
  20187. done
  20188. }
  20189. ;;
  20190. "libtool":C)
  20191. # See if we are running on zsh, and set the options which allow our
  20192. # commands through without removal of \ escapes.
  20193. if test -n "${ZSH_VERSION+set}" ; then
  20194. setopt NO_GLOB_SUBST
  20195. fi
  20196. cfgfile="${ofile}T"
  20197. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20198. $RM "$cfgfile"
  20199. cat <<_LT_EOF >> "$cfgfile"
  20200. #! $SHELL
  20201. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20202. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20203. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20204. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20205. #
  20206. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20207. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20208. # Foundation, Inc.
  20209. # Written by Gordon Matzigkeit, 1996
  20210. #
  20211. # This file is part of GNU Libtool.
  20212. #
  20213. # GNU Libtool is free software; you can redistribute it and/or
  20214. # modify it under the terms of the GNU General Public License as
  20215. # published by the Free Software Foundation; either version 2 of
  20216. # the License, or (at your option) any later version.
  20217. #
  20218. # As a special exception to the GNU General Public License,
  20219. # if you distribute this file as part of a program or library that
  20220. # is built using GNU Libtool, you may include this file under the
  20221. # same distribution terms that you use for the rest of that program.
  20222. #
  20223. # GNU Libtool is distributed in the hope that it will be useful,
  20224. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20225. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20226. # GNU General Public License for more details.
  20227. #
  20228. # You should have received a copy of the GNU General Public License
  20229. # along with GNU Libtool; see the file COPYING. If not, a copy
  20230. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20231. # obtained by writing to the Free Software Foundation, Inc.,
  20232. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20233. # The names of the tagged configurations supported by this script.
  20234. available_tags="CXX "
  20235. # ### BEGIN LIBTOOL CONFIG
  20236. # Whether or not to build static libraries.
  20237. build_old_libs=$enable_static
  20238. # Which release of libtool.m4 was used?
  20239. macro_version=$macro_version
  20240. macro_revision=$macro_revision
  20241. # Whether or not to build shared libraries.
  20242. build_libtool_libs=$enable_shared
  20243. # What type of objects to build.
  20244. pic_mode=$pic_mode
  20245. # Whether or not to optimize for fast installation.
  20246. fast_install=$enable_fast_install
  20247. # Shell to use when invoking shell scripts.
  20248. SHELL=$lt_SHELL
  20249. # An echo program that protects backslashes.
  20250. ECHO=$lt_ECHO
  20251. # The PATH separator for the build system.
  20252. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20253. # The host system.
  20254. host_alias=$host_alias
  20255. host=$host
  20256. host_os=$host_os
  20257. # The build system.
  20258. build_alias=$build_alias
  20259. build=$build
  20260. build_os=$build_os
  20261. # A sed program that does not truncate output.
  20262. SED=$lt_SED
  20263. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20264. Xsed="\$SED -e 1s/^X//"
  20265. # A grep program that handles long lines.
  20266. GREP=$lt_GREP
  20267. # An ERE matcher.
  20268. EGREP=$lt_EGREP
  20269. # A literal string matcher.
  20270. FGREP=$lt_FGREP
  20271. # A BSD- or MS-compatible name lister.
  20272. NM=$lt_NM
  20273. # Whether we need soft or hard links.
  20274. LN_S=$lt_LN_S
  20275. # What is the maximum length of a command?
  20276. max_cmd_len=$max_cmd_len
  20277. # Object file suffix (normally "o").
  20278. objext=$ac_objext
  20279. # Executable file suffix (normally "").
  20280. exeext=$exeext
  20281. # whether the shell understands "unset".
  20282. lt_unset=$lt_unset
  20283. # turn spaces into newlines.
  20284. SP2NL=$lt_lt_SP2NL
  20285. # turn newlines into spaces.
  20286. NL2SP=$lt_lt_NL2SP
  20287. # convert \$build file names to \$host format.
  20288. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20289. # convert \$build files to toolchain format.
  20290. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20291. # An object symbol dumper.
  20292. OBJDUMP=$lt_OBJDUMP
  20293. # Method to check whether dependent libraries are shared objects.
  20294. deplibs_check_method=$lt_deplibs_check_method
  20295. # Command to use when deplibs_check_method = "file_magic".
  20296. file_magic_cmd=$lt_file_magic_cmd
  20297. # How to find potential files when deplibs_check_method = "file_magic".
  20298. file_magic_glob=$lt_file_magic_glob
  20299. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20300. want_nocaseglob=$lt_want_nocaseglob
  20301. # DLL creation program.
  20302. DLLTOOL=$lt_DLLTOOL
  20303. # Command to associate shared and link libraries.
  20304. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20305. # The archiver.
  20306. AR=$lt_AR
  20307. # Flags to create an archive.
  20308. AR_FLAGS=$lt_AR_FLAGS
  20309. # How to feed a file listing to the archiver.
  20310. archiver_list_spec=$lt_archiver_list_spec
  20311. # A symbol stripping program.
  20312. STRIP=$lt_STRIP
  20313. # Commands used to install an old-style archive.
  20314. RANLIB=$lt_RANLIB
  20315. old_postinstall_cmds=$lt_old_postinstall_cmds
  20316. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20317. # Whether to use a lock for old archive extraction.
  20318. lock_old_archive_extraction=$lock_old_archive_extraction
  20319. # A C compiler.
  20320. LTCC=$lt_CC
  20321. # LTCC compiler flags.
  20322. LTCFLAGS=$lt_CFLAGS
  20323. # Take the output of nm and produce a listing of raw symbols and C names.
  20324. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20325. # Transform the output of nm in a proper C declaration.
  20326. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20327. # Transform the output of nm in a C name address pair.
  20328. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20329. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20330. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20331. # Specify filename containing input files for \$NM.
  20332. nm_file_list_spec=$lt_nm_file_list_spec
  20333. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20334. lt_sysroot=$lt_sysroot
  20335. # The name of the directory that contains temporary libtool files.
  20336. objdir=$objdir
  20337. # Used to examine libraries when file_magic_cmd begins with "file".
  20338. MAGIC_CMD=$MAGIC_CMD
  20339. # Must we lock files when doing compilation?
  20340. need_locks=$lt_need_locks
  20341. # Manifest tool.
  20342. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20343. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20344. DSYMUTIL=$lt_DSYMUTIL
  20345. # Tool to change global to local symbols on Mac OS X.
  20346. NMEDIT=$lt_NMEDIT
  20347. # Tool to manipulate fat objects and archives on Mac OS X.
  20348. LIPO=$lt_LIPO
  20349. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20350. OTOOL=$lt_OTOOL
  20351. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20352. OTOOL64=$lt_OTOOL64
  20353. # Old archive suffix (normally "a").
  20354. libext=$libext
  20355. # Shared library suffix (normally ".so").
  20356. shrext_cmds=$lt_shrext_cmds
  20357. # The commands to extract the exported symbol list from a shared archive.
  20358. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20359. # Variables whose values should be saved in libtool wrapper scripts and
  20360. # restored at link time.
  20361. variables_saved_for_relink=$lt_variables_saved_for_relink
  20362. # Do we need the "lib" prefix for modules?
  20363. need_lib_prefix=$need_lib_prefix
  20364. # Do we need a version for libraries?
  20365. need_version=$need_version
  20366. # Library versioning type.
  20367. version_type=$version_type
  20368. # Shared library runtime path variable.
  20369. runpath_var=$runpath_var
  20370. # Shared library path variable.
  20371. shlibpath_var=$shlibpath_var
  20372. # Is shlibpath searched before the hard-coded library search path?
  20373. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20374. # Format of library name prefix.
  20375. libname_spec=$lt_libname_spec
  20376. # List of archive names. First name is the real one, the rest are links.
  20377. # The last name is the one that the linker finds with -lNAME
  20378. library_names_spec=$lt_library_names_spec
  20379. # The coded name of the library, if different from the real name.
  20380. soname_spec=$lt_soname_spec
  20381. # Permission mode override for installation of shared libraries.
  20382. install_override_mode=$lt_install_override_mode
  20383. # Command to use after installation of a shared archive.
  20384. postinstall_cmds=$lt_postinstall_cmds
  20385. # Command to use after uninstallation of a shared archive.
  20386. postuninstall_cmds=$lt_postuninstall_cmds
  20387. # Commands used to finish a libtool library installation in a directory.
  20388. finish_cmds=$lt_finish_cmds
  20389. # As "finish_cmds", except a single script fragment to be evaled but
  20390. # not shown.
  20391. finish_eval=$lt_finish_eval
  20392. # Whether we should hardcode library paths into libraries.
  20393. hardcode_into_libs=$hardcode_into_libs
  20394. # Compile-time system search path for libraries.
  20395. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20396. # Run-time system search path for libraries.
  20397. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20398. # Whether dlopen is supported.
  20399. dlopen_support=$enable_dlopen
  20400. # Whether dlopen of programs is supported.
  20401. dlopen_self=$enable_dlopen_self
  20402. # Whether dlopen of statically linked programs is supported.
  20403. dlopen_self_static=$enable_dlopen_self_static
  20404. # Commands to strip libraries.
  20405. old_striplib=$lt_old_striplib
  20406. striplib=$lt_striplib
  20407. # The linker used to build libraries.
  20408. LD=$lt_LD
  20409. # How to create reloadable object files.
  20410. reload_flag=$lt_reload_flag
  20411. reload_cmds=$lt_reload_cmds
  20412. # Commands used to build an old-style archive.
  20413. old_archive_cmds=$lt_old_archive_cmds
  20414. # A language specific compiler.
  20415. CC=$lt_compiler
  20416. # Is the compiler the GNU compiler?
  20417. with_gcc=$GCC
  20418. # Compiler flag to turn off builtin functions.
  20419. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20420. # Additional compiler flags for building library objects.
  20421. pic_flag=$lt_lt_prog_compiler_pic
  20422. # How to pass a linker flag through the compiler.
  20423. wl=$lt_lt_prog_compiler_wl
  20424. # Compiler flag to prevent dynamic linking.
  20425. link_static_flag=$lt_lt_prog_compiler_static
  20426. # Does compiler simultaneously support -c and -o options?
  20427. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20428. # Whether or not to add -lc for building shared libraries.
  20429. build_libtool_need_lc=$archive_cmds_need_lc
  20430. # Whether or not to disallow shared libs when runtime libs are static.
  20431. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20432. # Compiler flag to allow reflexive dlopens.
  20433. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20434. # Compiler flag to generate shared objects directly from archives.
  20435. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20436. # Whether the compiler copes with passing no objects directly.
  20437. compiler_needs_object=$lt_compiler_needs_object
  20438. # Create an old-style archive from a shared archive.
  20439. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20440. # Create a temporary old-style archive to link instead of a shared archive.
  20441. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20442. # Commands used to build a shared archive.
  20443. archive_cmds=$lt_archive_cmds
  20444. archive_expsym_cmds=$lt_archive_expsym_cmds
  20445. # Commands used to build a loadable module if different from building
  20446. # a shared archive.
  20447. module_cmds=$lt_module_cmds
  20448. module_expsym_cmds=$lt_module_expsym_cmds
  20449. # Whether we are building with GNU ld or not.
  20450. with_gnu_ld=$lt_with_gnu_ld
  20451. # Flag that allows shared libraries with undefined symbols to be built.
  20452. allow_undefined_flag=$lt_allow_undefined_flag
  20453. # Flag that enforces no undefined symbols.
  20454. no_undefined_flag=$lt_no_undefined_flag
  20455. # Flag to hardcode \$libdir into a binary during linking.
  20456. # This must work even if \$libdir does not exist
  20457. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20458. # Whether we need a single "-rpath" flag with a separated argument.
  20459. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20460. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20461. # DIR into the resulting binary.
  20462. hardcode_direct=$hardcode_direct
  20463. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20464. # DIR into the resulting binary and the resulting library dependency is
  20465. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20466. # library is relocated.
  20467. hardcode_direct_absolute=$hardcode_direct_absolute
  20468. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20469. # into the resulting binary.
  20470. hardcode_minus_L=$hardcode_minus_L
  20471. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20472. # into the resulting binary.
  20473. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20474. # Set to "yes" if building a shared library automatically hardcodes DIR
  20475. # into the library and all subsequent libraries and executables linked
  20476. # against it.
  20477. hardcode_automatic=$hardcode_automatic
  20478. # Set to yes if linker adds runtime paths of dependent libraries
  20479. # to runtime path list.
  20480. inherit_rpath=$inherit_rpath
  20481. # Whether libtool must link a program against all its dependency libraries.
  20482. link_all_deplibs=$link_all_deplibs
  20483. # Set to "yes" if exported symbols are required.
  20484. always_export_symbols=$always_export_symbols
  20485. # The commands to list exported symbols.
  20486. export_symbols_cmds=$lt_export_symbols_cmds
  20487. # Symbols that should not be listed in the preloaded symbols.
  20488. exclude_expsyms=$lt_exclude_expsyms
  20489. # Symbols that must always be exported.
  20490. include_expsyms=$lt_include_expsyms
  20491. # Commands necessary for linking programs (against libraries) with templates.
  20492. prelink_cmds=$lt_prelink_cmds
  20493. # Commands necessary for finishing linking programs.
  20494. postlink_cmds=$lt_postlink_cmds
  20495. # Specify filename containing input files.
  20496. file_list_spec=$lt_file_list_spec
  20497. # How to hardcode a shared library path into an executable.
  20498. hardcode_action=$hardcode_action
  20499. # The directories searched by this compiler when creating a shared library.
  20500. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20501. # Dependencies to place before and after the objects being linked to
  20502. # create a shared library.
  20503. predep_objects=$lt_predep_objects
  20504. postdep_objects=$lt_postdep_objects
  20505. predeps=$lt_predeps
  20506. postdeps=$lt_postdeps
  20507. # The library search path used internally by the compiler when linking
  20508. # a shared library.
  20509. compiler_lib_search_path=$lt_compiler_lib_search_path
  20510. # ### END LIBTOOL CONFIG
  20511. _LT_EOF
  20512. case $host_os in
  20513. aix3*)
  20514. cat <<\_LT_EOF >> "$cfgfile"
  20515. # AIX sometimes has problems with the GCC collect2 program. For some
  20516. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20517. # vanish in a puff of smoke.
  20518. if test "X${COLLECT_NAMES+set}" != Xset; then
  20519. COLLECT_NAMES=
  20520. export COLLECT_NAMES
  20521. fi
  20522. _LT_EOF
  20523. ;;
  20524. esac
  20525. ltmain="$ac_aux_dir/ltmain.sh"
  20526. # We use sed instead of cat because bash on DJGPP gets confused if
  20527. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20528. # text mode, it properly converts lines to CR/LF. This bash problem
  20529. # is reportedly fixed, but why not run on old versions too?
  20530. sed '$q' "$ltmain" >> "$cfgfile" \
  20531. || (rm -f "$cfgfile"; exit 1)
  20532. if test x"$xsi_shell" = xyes; then
  20533. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20534. func_dirname ()\
  20535. {\
  20536. \ case ${1} in\
  20537. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20538. \ * ) func_dirname_result="${3}" ;;\
  20539. \ esac\
  20540. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20541. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20542. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20543. test 0 -eq $? || _lt_function_replace_fail=:
  20544. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20545. func_basename ()\
  20546. {\
  20547. \ func_basename_result="${1##*/}"\
  20548. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20549. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20550. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20551. test 0 -eq $? || _lt_function_replace_fail=:
  20552. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20553. func_dirname_and_basename ()\
  20554. {\
  20555. \ case ${1} in\
  20556. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20557. \ * ) func_dirname_result="${3}" ;;\
  20558. \ esac\
  20559. \ func_basename_result="${1##*/}"\
  20560. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20561. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20562. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20563. test 0 -eq $? || _lt_function_replace_fail=:
  20564. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20565. func_stripname ()\
  20566. {\
  20567. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20568. \ # positional parameters, so assign one to ordinary parameter first.\
  20569. \ func_stripname_result=${3}\
  20570. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20571. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20572. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20573. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20574. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20575. test 0 -eq $? || _lt_function_replace_fail=:
  20576. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20577. func_split_long_opt ()\
  20578. {\
  20579. \ func_split_long_opt_name=${1%%=*}\
  20580. \ func_split_long_opt_arg=${1#*=}\
  20581. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20582. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20583. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20584. test 0 -eq $? || _lt_function_replace_fail=:
  20585. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20586. func_split_short_opt ()\
  20587. {\
  20588. \ func_split_short_opt_arg=${1#??}\
  20589. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20590. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20591. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20592. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20593. test 0 -eq $? || _lt_function_replace_fail=:
  20594. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20595. func_lo2o ()\
  20596. {\
  20597. \ case ${1} in\
  20598. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20599. \ *) func_lo2o_result=${1} ;;\
  20600. \ esac\
  20601. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20602. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20603. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20604. test 0 -eq $? || _lt_function_replace_fail=:
  20605. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20606. func_xform ()\
  20607. {\
  20608. func_xform_result=${1%.*}.lo\
  20609. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20610. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20611. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20612. test 0 -eq $? || _lt_function_replace_fail=:
  20613. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20614. func_arith ()\
  20615. {\
  20616. func_arith_result=$(( $* ))\
  20617. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20618. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20619. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20620. test 0 -eq $? || _lt_function_replace_fail=:
  20621. sed -e '/^func_len ()$/,/^} # func_len /c\
  20622. func_len ()\
  20623. {\
  20624. func_len_result=${#1}\
  20625. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20626. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20627. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20628. test 0 -eq $? || _lt_function_replace_fail=:
  20629. fi
  20630. if test x"$lt_shell_append" = xyes; then
  20631. sed -e '/^func_append ()$/,/^} # func_append /c\
  20632. func_append ()\
  20633. {\
  20634. eval "${1}+=\\${2}"\
  20635. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20636. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20637. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20638. test 0 -eq $? || _lt_function_replace_fail=:
  20639. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20640. func_append_quoted ()\
  20641. {\
  20642. \ func_quote_for_eval "${2}"\
  20643. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20644. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20645. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20646. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20647. test 0 -eq $? || _lt_function_replace_fail=:
  20648. # Save a `func_append' function call where possible by direct use of '+='
  20649. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20650. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20651. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20652. test 0 -eq $? || _lt_function_replace_fail=:
  20653. else
  20654. # Save a `func_append' function call even when '+=' is not available
  20655. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20656. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20657. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20658. test 0 -eq $? || _lt_function_replace_fail=:
  20659. fi
  20660. if test x"$_lt_function_replace_fail" = x":"; then
  20661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20662. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20663. fi
  20664. mv -f "$cfgfile" "$ofile" ||
  20665. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20666. chmod +x "$ofile"
  20667. cat <<_LT_EOF >> "$ofile"
  20668. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20669. # The linker used to build libraries.
  20670. LD=$lt_LD_CXX
  20671. # How to create reloadable object files.
  20672. reload_flag=$lt_reload_flag_CXX
  20673. reload_cmds=$lt_reload_cmds_CXX
  20674. # Commands used to build an old-style archive.
  20675. old_archive_cmds=$lt_old_archive_cmds_CXX
  20676. # A language specific compiler.
  20677. CC=$lt_compiler_CXX
  20678. # Is the compiler the GNU compiler?
  20679. with_gcc=$GCC_CXX
  20680. # Compiler flag to turn off builtin functions.
  20681. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20682. # Additional compiler flags for building library objects.
  20683. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20684. # How to pass a linker flag through the compiler.
  20685. wl=$lt_lt_prog_compiler_wl_CXX
  20686. # Compiler flag to prevent dynamic linking.
  20687. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20688. # Does compiler simultaneously support -c and -o options?
  20689. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20690. # Whether or not to add -lc for building shared libraries.
  20691. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20692. # Whether or not to disallow shared libs when runtime libs are static.
  20693. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20694. # Compiler flag to allow reflexive dlopens.
  20695. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20696. # Compiler flag to generate shared objects directly from archives.
  20697. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20698. # Whether the compiler copes with passing no objects directly.
  20699. compiler_needs_object=$lt_compiler_needs_object_CXX
  20700. # Create an old-style archive from a shared archive.
  20701. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20702. # Create a temporary old-style archive to link instead of a shared archive.
  20703. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20704. # Commands used to build a shared archive.
  20705. archive_cmds=$lt_archive_cmds_CXX
  20706. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20707. # Commands used to build a loadable module if different from building
  20708. # a shared archive.
  20709. module_cmds=$lt_module_cmds_CXX
  20710. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20711. # Whether we are building with GNU ld or not.
  20712. with_gnu_ld=$lt_with_gnu_ld_CXX
  20713. # Flag that allows shared libraries with undefined symbols to be built.
  20714. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20715. # Flag that enforces no undefined symbols.
  20716. no_undefined_flag=$lt_no_undefined_flag_CXX
  20717. # Flag to hardcode \$libdir into a binary during linking.
  20718. # This must work even if \$libdir does not exist
  20719. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20720. # Whether we need a single "-rpath" flag with a separated argument.
  20721. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20722. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20723. # DIR into the resulting binary.
  20724. hardcode_direct=$hardcode_direct_CXX
  20725. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20726. # DIR into the resulting binary and the resulting library dependency is
  20727. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20728. # library is relocated.
  20729. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20730. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20731. # into the resulting binary.
  20732. hardcode_minus_L=$hardcode_minus_L_CXX
  20733. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20734. # into the resulting binary.
  20735. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20736. # Set to "yes" if building a shared library automatically hardcodes DIR
  20737. # into the library and all subsequent libraries and executables linked
  20738. # against it.
  20739. hardcode_automatic=$hardcode_automatic_CXX
  20740. # Set to yes if linker adds runtime paths of dependent libraries
  20741. # to runtime path list.
  20742. inherit_rpath=$inherit_rpath_CXX
  20743. # Whether libtool must link a program against all its dependency libraries.
  20744. link_all_deplibs=$link_all_deplibs_CXX
  20745. # Set to "yes" if exported symbols are required.
  20746. always_export_symbols=$always_export_symbols_CXX
  20747. # The commands to list exported symbols.
  20748. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20749. # Symbols that should not be listed in the preloaded symbols.
  20750. exclude_expsyms=$lt_exclude_expsyms_CXX
  20751. # Symbols that must always be exported.
  20752. include_expsyms=$lt_include_expsyms_CXX
  20753. # Commands necessary for linking programs (against libraries) with templates.
  20754. prelink_cmds=$lt_prelink_cmds_CXX
  20755. # Commands necessary for finishing linking programs.
  20756. postlink_cmds=$lt_postlink_cmds_CXX
  20757. # Specify filename containing input files.
  20758. file_list_spec=$lt_file_list_spec_CXX
  20759. # How to hardcode a shared library path into an executable.
  20760. hardcode_action=$hardcode_action_CXX
  20761. # The directories searched by this compiler when creating a shared library.
  20762. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20763. # Dependencies to place before and after the objects being linked to
  20764. # create a shared library.
  20765. predep_objects=$lt_predep_objects_CXX
  20766. postdep_objects=$lt_postdep_objects_CXX
  20767. predeps=$lt_predeps_CXX
  20768. postdeps=$lt_postdeps_CXX
  20769. # The library search path used internally by the compiler when linking
  20770. # a shared library.
  20771. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20772. # ### END LIBTOOL TAG CONFIG: CXX
  20773. _LT_EOF
  20774. ;;
  20775. esac
  20776. done # for ac_tag
  20777. as_fn_exit 0
  20778. _ACEOF
  20779. ac_clean_files=$ac_clean_files_save
  20780. test $ac_write_fail = 0 ||
  20781. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20782. # configure is writing to config.log, and then calls config.status.
  20783. # config.status does its own redirection, appending to config.log.
  20784. # Unfortunately, on DOS this fails, as config.log is still kept open
  20785. # by configure, so config.status won't be able to write to it; its
  20786. # output is simply discarded. So we exec the FD to /dev/null,
  20787. # effectively closing config.log, so it can be properly (re)opened and
  20788. # appended to by config.status. When coming back to configure, we
  20789. # need to make the FD available again.
  20790. if test "$no_create" != yes; then
  20791. ac_cs_success=:
  20792. ac_config_status_args=
  20793. test "$silent" = yes &&
  20794. ac_config_status_args="$ac_config_status_args --quiet"
  20795. exec 5>/dev/null
  20796. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20797. exec 5>>config.log
  20798. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20799. # would make configure fail if this is the last instruction.
  20800. $ac_cs_success || as_fn_exit 1
  20801. fi
  20802. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20804. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20805. fi