configure 715 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230
  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. systemd_defs
  591. systemd_lib
  592. systemd_inc
  593. localrundir
  594. nunc_stans_libdir
  595. nunc_stans_lib
  596. nunc_stans_inc
  597. pcre_libdir
  598. pcre_lib
  599. pcre_inc
  600. netsnmp_link
  601. netsnmp_libdir
  602. netsnmp_lib
  603. netsnmp_inc
  604. icu_bin
  605. icu_inc
  606. icu_lib
  607. svrcore_lib
  608. svrcore_inc
  609. sasl_path
  610. sasl_libdir
  611. sasl_lib
  612. sasl_inc
  613. db_libver
  614. db_bindir
  615. db_libdir
  616. db_lib
  617. db_incdir
  618. db_inc
  619. ol_libver
  620. plainldif_opts
  621. ldaptool_opts
  622. ldaptool_bindir
  623. openldap_bindir
  624. openldap_libdir
  625. openldap_lib
  626. openldap_inc
  627. ldapsdk_bindir
  628. ldapsdk_libdir
  629. ldapsdk_lib
  630. ldapsdk_inc
  631. nss_libdir
  632. nss_lib
  633. nss_inc
  634. nspr_libdir
  635. nspr_lib
  636. nspr_inc
  637. SPARC_FALSE
  638. SPARC_TRUE
  639. OPENLDAP_FALSE
  640. OPENLDAP_TRUE
  641. SELINUX_FALSE
  642. SELINUX_TRUE
  643. PACKAGE_BASE_VERSION
  644. JOURNALD_FALSE
  645. JOURNALD_TRUE
  646. SYSTEMD_FALSE
  647. SYSTEMD_TRUE
  648. with_systemdgroupname
  649. with_systemdsystemconfdir
  650. with_systemdsystemunitdir
  651. with_selinux
  652. kerberos_libdir
  653. kerberos_lib
  654. kerberos_inc
  655. KRB5_CONFIG_BIN
  656. NETSNMP_CONFIG
  657. ICU_CONFIG
  658. ldap_lib_ldif
  659. PKG_CONFIG
  660. SOLARIS_FALSE
  661. SOLARIS_TRUE
  662. HPUX_FALSE
  663. HPUX_TRUE
  664. initconfigdir
  665. sttyexec
  666. pythonexec
  667. perlexec
  668. initdir
  669. LIBCRUN
  670. LIBCSTD
  671. LIBDL
  672. LIBNSL
  673. LIBSOCKET
  674. LIBCRYPT
  675. THREADLIB
  676. INITDDIR_FALSE
  677. INITDDIR_TRUE
  678. WINNT_FALSE
  679. WINNT_TRUE
  680. instconfigdir
  681. defaultgroup
  682. defaultuser
  683. updatedir
  684. mibdir
  685. infdir
  686. pythondir
  687. perldir
  688. scripttemplatedir
  689. serverplugindir
  690. serverincdir
  691. serverdir
  692. schemadir
  693. propertydir
  694. sampledatadir
  695. configdir
  696. with_tmpfiles_d
  697. with_fhs_opt
  698. enable_nunc_stans_FALSE
  699. enable_nunc_stans_TRUE
  700. enable_posix_winsync_FALSE
  701. enable_posix_winsync_TRUE
  702. enable_acctpolicy_FALSE
  703. enable_acctpolicy_TRUE
  704. enable_presence_FALSE
  705. enable_presence_TRUE
  706. enable_bitwise_FALSE
  707. enable_bitwise_TRUE
  708. enable_auto_dn_suffix_FALSE
  709. enable_auto_dn_suffix_TRUE
  710. enable_autobind_FALSE
  711. enable_autobind_TRUE
  712. enable_ldapi_FALSE
  713. enable_ldapi_TRUE
  714. enable_dna_FALSE
  715. enable_dna_TRUE
  716. enable_pam_passthru_FALSE
  717. enable_pam_passthru_TRUE
  718. BUNDLE_FALSE
  719. BUNDLE_TRUE
  720. gccsec_defs
  721. RPM_HARDEND_CC_FALSE
  722. RPM_HARDEND_CC_TRUE
  723. enable_asan_FALSE
  724. enable_asan_TRUE
  725. asan_defs
  726. debug_defs
  727. LIBOBJS
  728. CXXCPP
  729. CPP
  730. OTOOL64
  731. OTOOL
  732. LIPO
  733. NMEDIT
  734. DSYMUTIL
  735. MANIFEST_TOOL
  736. RANLIB
  737. ac_ct_AR
  738. AR
  739. DLLTOOL
  740. OBJDUMP
  741. LN_S
  742. NM
  743. ac_ct_DUMPBIN
  744. DUMPBIN
  745. LD
  746. FGREP
  747. EGREP
  748. GREP
  749. SED
  750. LIBTOOL
  751. am__fastdepCCAS_FALSE
  752. am__fastdepCCAS_TRUE
  753. CCASDEPMODE
  754. CCASFLAGS
  755. CCAS
  756. am__fastdepCC_FALSE
  757. am__fastdepCC_TRUE
  758. CCDEPMODE
  759. ac_ct_CC
  760. CFLAGS
  761. CC
  762. am__fastdepCXX_FALSE
  763. am__fastdepCXX_TRUE
  764. CXXDEPMODE
  765. am__nodep
  766. AMDEPBACKSLASH
  767. AMDEP_FALSE
  768. AMDEP_TRUE
  769. am__quote
  770. am__include
  771. DEPDIR
  772. OBJEXT
  773. EXEEXT
  774. ac_ct_CXX
  775. CPPFLAGS
  776. LDFLAGS
  777. CXXFLAGS
  778. CXX
  779. host_os
  780. host_vendor
  781. host_cpu
  782. host
  783. build_os
  784. build_vendor
  785. build_cpu
  786. build
  787. MAINT
  788. MAINTAINER_MODE_FALSE
  789. MAINTAINER_MODE_TRUE
  790. CONSOLE_VERSION
  791. RPM_RELEASE
  792. RPM_VERSION
  793. AM_BACKSLASH
  794. AM_DEFAULT_VERBOSITY
  795. AM_DEFAULT_V
  796. AM_V
  797. am__untar
  798. am__tar
  799. AMTAR
  800. am__leading_dot
  801. SET_MAKE
  802. AWK
  803. mkdir_p
  804. MKDIR_P
  805. INSTALL_STRIP_PROGRAM
  806. STRIP
  807. install_sh
  808. MAKEINFO
  809. AUTOHEADER
  810. AUTOMAKE
  811. AUTOCONF
  812. ACLOCAL
  813. VERSION
  814. PACKAGE
  815. CYGPATH_W
  816. am__isrc
  817. INSTALL_DATA
  818. INSTALL_SCRIPT
  819. INSTALL_PROGRAM
  820. target_alias
  821. host_alias
  822. build_alias
  823. LIBS
  824. ECHO_T
  825. ECHO_N
  826. ECHO_C
  827. DEFS
  828. mandir
  829. localedir
  830. libdir
  831. psdir
  832. pdfdir
  833. dvidir
  834. htmldir
  835. infodir
  836. docdir
  837. oldincludedir
  838. includedir
  839. localstatedir
  840. sharedstatedir
  841. sysconfdir
  842. datadir
  843. datarootdir
  844. libexecdir
  845. sbindir
  846. bindir
  847. program_transform_name
  848. prefix
  849. exec_prefix
  850. PACKAGE_URL
  851. PACKAGE_BUGREPORT
  852. PACKAGE_STRING
  853. PACKAGE_VERSION
  854. PACKAGE_TARNAME
  855. PACKAGE_NAME
  856. PATH_SEPARATOR
  857. SHELL'
  858. ac_subst_files=''
  859. ac_user_opts='
  860. enable_option_checking
  861. enable_silent_rules
  862. enable_maintainer_mode
  863. enable_dependency_tracking
  864. enable_static
  865. enable_shared
  866. with_pic
  867. enable_fast_install
  868. with_gnu_ld
  869. with_sysroot
  870. enable_libtool_lock
  871. enable_debug
  872. enable_asan
  873. enable_gcc_security
  874. enable_bundle
  875. enable_pam_passthru
  876. enable_dna
  877. enable_ldapi
  878. enable_autobind
  879. enable_auto_dn_suffix
  880. enable_bitwise
  881. enable_presence
  882. enable_acctpolicy
  883. enable_posix_winsync
  884. enable_nunc_stans
  885. with_fhs
  886. with_fhs_opt
  887. with_tmpfiles_d
  888. with_perldir
  889. with_pythonexec
  890. with_instconfigdir
  891. with_initddir
  892. with_nspr
  893. with_nspr_inc
  894. with_nspr_lib
  895. with_nss
  896. with_nss_inc
  897. with_nss_lib
  898. with_openldap
  899. with_openldap_inc
  900. with_openldap_lib
  901. with_openldap_bin
  902. with_ldapsdk
  903. with_ldapsdk_inc
  904. with_ldapsdk_lib
  905. with_ldapsdk_bin
  906. with_db
  907. with_db_inc
  908. with_db_lib
  909. with_sasl
  910. with_sasl_inc
  911. with_sasl_lib
  912. with_svrcore
  913. with_svrcore_inc
  914. with_svrcore_lib
  915. with_icu
  916. with_icu_inc
  917. with_icu_lib
  918. with_icu_bin
  919. with_netsnmp
  920. with_netsnmp_inc
  921. with_netsnmp_lib
  922. with_kerberos
  923. with_kerberos_inc
  924. with_kerberos_lib
  925. with_pcre
  926. with_selinux
  927. with_nunc_stans
  928. with_nunc_stans_inc
  929. with_nunc_stans_lib
  930. with_systemd
  931. with_journald
  932. with_systemdsystemunitdir
  933. with_systemdsystemconfdir
  934. with_systemdgroupname
  935. '
  936. ac_precious_vars='build_alias
  937. host_alias
  938. target_alias
  939. CXX
  940. CXXFLAGS
  941. LDFLAGS
  942. LIBS
  943. CPPFLAGS
  944. CCC
  945. CC
  946. CFLAGS
  947. CCAS
  948. CCASFLAGS
  949. CPP
  950. CXXCPP'
  951. # Initialize some variables set by options.
  952. ac_init_help=
  953. ac_init_version=false
  954. ac_unrecognized_opts=
  955. ac_unrecognized_sep=
  956. # The variables have the same names as the options, with
  957. # dashes changed to underlines.
  958. cache_file=/dev/null
  959. exec_prefix=NONE
  960. no_create=
  961. no_recursion=
  962. prefix=NONE
  963. program_prefix=NONE
  964. program_suffix=NONE
  965. program_transform_name=s,x,x,
  966. silent=
  967. site=
  968. srcdir=
  969. verbose=
  970. x_includes=NONE
  971. x_libraries=NONE
  972. # Installation directory options.
  973. # These are left unexpanded so users can "make install exec_prefix=/foo"
  974. # and all the variables that are supposed to be based on exec_prefix
  975. # by default will actually change.
  976. # Use braces instead of parens because sh, perl, etc. also accept them.
  977. # (The list follows the same order as the GNU Coding Standards.)
  978. bindir='${exec_prefix}/bin'
  979. sbindir='${exec_prefix}/sbin'
  980. libexecdir='${exec_prefix}/libexec'
  981. datarootdir='${prefix}/share'
  982. datadir='${datarootdir}'
  983. sysconfdir='${prefix}/etc'
  984. sharedstatedir='${prefix}/com'
  985. localstatedir='${prefix}/var'
  986. includedir='${prefix}/include'
  987. oldincludedir='/usr/include'
  988. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  989. infodir='${datarootdir}/info'
  990. htmldir='${docdir}'
  991. dvidir='${docdir}'
  992. pdfdir='${docdir}'
  993. psdir='${docdir}'
  994. libdir='${exec_prefix}/lib'
  995. localedir='${datarootdir}/locale'
  996. mandir='${datarootdir}/man'
  997. ac_prev=
  998. ac_dashdash=
  999. for ac_option
  1000. do
  1001. # If the previous option needs an argument, assign it.
  1002. if test -n "$ac_prev"; then
  1003. eval $ac_prev=\$ac_option
  1004. ac_prev=
  1005. continue
  1006. fi
  1007. case $ac_option in
  1008. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1009. *=) ac_optarg= ;;
  1010. *) ac_optarg=yes ;;
  1011. esac
  1012. # Accept the important Cygnus configure options, so we can diagnose typos.
  1013. case $ac_dashdash$ac_option in
  1014. --)
  1015. ac_dashdash=yes ;;
  1016. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1017. ac_prev=bindir ;;
  1018. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1019. bindir=$ac_optarg ;;
  1020. -build | --build | --buil | --bui | --bu)
  1021. ac_prev=build_alias ;;
  1022. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1023. build_alias=$ac_optarg ;;
  1024. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1025. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1026. ac_prev=cache_file ;;
  1027. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1028. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1029. cache_file=$ac_optarg ;;
  1030. --config-cache | -C)
  1031. cache_file=config.cache ;;
  1032. -datadir | --datadir | --datadi | --datad)
  1033. ac_prev=datadir ;;
  1034. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1035. datadir=$ac_optarg ;;
  1036. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1037. | --dataroo | --dataro | --datar)
  1038. ac_prev=datarootdir ;;
  1039. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1040. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1041. datarootdir=$ac_optarg ;;
  1042. -disable-* | --disable-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid feature name: $ac_useropt"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "enable_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval enable_$ac_useropt=no ;;
  1057. -docdir | --docdir | --docdi | --doc | --do)
  1058. ac_prev=docdir ;;
  1059. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1060. docdir=$ac_optarg ;;
  1061. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1062. ac_prev=dvidir ;;
  1063. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1064. dvidir=$ac_optarg ;;
  1065. -enable-* | --enable-*)
  1066. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1067. # Reject names that are not valid shell variable names.
  1068. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1069. as_fn_error $? "invalid feature name: $ac_useropt"
  1070. ac_useropt_orig=$ac_useropt
  1071. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1072. case $ac_user_opts in
  1073. *"
  1074. "enable_$ac_useropt"
  1075. "*) ;;
  1076. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1077. ac_unrecognized_sep=', ';;
  1078. esac
  1079. eval enable_$ac_useropt=\$ac_optarg ;;
  1080. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1081. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1082. | --exec | --exe | --ex)
  1083. ac_prev=exec_prefix ;;
  1084. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1085. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1086. | --exec=* | --exe=* | --ex=*)
  1087. exec_prefix=$ac_optarg ;;
  1088. -gas | --gas | --ga | --g)
  1089. # Obsolete; use --with-gas.
  1090. with_gas=yes ;;
  1091. -help | --help | --hel | --he | -h)
  1092. ac_init_help=long ;;
  1093. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1094. ac_init_help=recursive ;;
  1095. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1096. ac_init_help=short ;;
  1097. -host | --host | --hos | --ho)
  1098. ac_prev=host_alias ;;
  1099. -host=* | --host=* | --hos=* | --ho=*)
  1100. host_alias=$ac_optarg ;;
  1101. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1102. ac_prev=htmldir ;;
  1103. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1104. | --ht=*)
  1105. htmldir=$ac_optarg ;;
  1106. -includedir | --includedir | --includedi | --included | --include \
  1107. | --includ | --inclu | --incl | --inc)
  1108. ac_prev=includedir ;;
  1109. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1110. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1111. includedir=$ac_optarg ;;
  1112. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1113. ac_prev=infodir ;;
  1114. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1115. infodir=$ac_optarg ;;
  1116. -libdir | --libdir | --libdi | --libd)
  1117. ac_prev=libdir ;;
  1118. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1119. libdir=$ac_optarg ;;
  1120. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1121. | --libexe | --libex | --libe)
  1122. ac_prev=libexecdir ;;
  1123. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1124. | --libexe=* | --libex=* | --libe=*)
  1125. libexecdir=$ac_optarg ;;
  1126. -localedir | --localedir | --localedi | --localed | --locale)
  1127. ac_prev=localedir ;;
  1128. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1129. localedir=$ac_optarg ;;
  1130. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1131. | --localstate | --localstat | --localsta | --localst | --locals)
  1132. ac_prev=localstatedir ;;
  1133. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1134. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1135. localstatedir=$ac_optarg ;;
  1136. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1137. ac_prev=mandir ;;
  1138. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1139. mandir=$ac_optarg ;;
  1140. -nfp | --nfp | --nf)
  1141. # Obsolete; use --without-fp.
  1142. with_fp=no ;;
  1143. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1144. | --no-cr | --no-c | -n)
  1145. no_create=yes ;;
  1146. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1147. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1148. no_recursion=yes ;;
  1149. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1150. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1151. | --oldin | --oldi | --old | --ol | --o)
  1152. ac_prev=oldincludedir ;;
  1153. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1154. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1155. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1156. oldincludedir=$ac_optarg ;;
  1157. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1158. ac_prev=prefix ;;
  1159. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1160. prefix=$ac_optarg ;;
  1161. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1162. | --program-pre | --program-pr | --program-p)
  1163. ac_prev=program_prefix ;;
  1164. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1165. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1166. program_prefix=$ac_optarg ;;
  1167. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1168. | --program-suf | --program-su | --program-s)
  1169. ac_prev=program_suffix ;;
  1170. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1171. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1172. program_suffix=$ac_optarg ;;
  1173. -program-transform-name | --program-transform-name \
  1174. | --program-transform-nam | --program-transform-na \
  1175. | --program-transform-n | --program-transform- \
  1176. | --program-transform | --program-transfor \
  1177. | --program-transfo | --program-transf \
  1178. | --program-trans | --program-tran \
  1179. | --progr-tra | --program-tr | --program-t)
  1180. ac_prev=program_transform_name ;;
  1181. -program-transform-name=* | --program-transform-name=* \
  1182. | --program-transform-nam=* | --program-transform-na=* \
  1183. | --program-transform-n=* | --program-transform-=* \
  1184. | --program-transform=* | --program-transfor=* \
  1185. | --program-transfo=* | --program-transf=* \
  1186. | --program-trans=* | --program-tran=* \
  1187. | --progr-tra=* | --program-tr=* | --program-t=*)
  1188. program_transform_name=$ac_optarg ;;
  1189. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1190. ac_prev=pdfdir ;;
  1191. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1192. pdfdir=$ac_optarg ;;
  1193. -psdir | --psdir | --psdi | --psd | --ps)
  1194. ac_prev=psdir ;;
  1195. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1196. psdir=$ac_optarg ;;
  1197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1198. | -silent | --silent | --silen | --sile | --sil)
  1199. silent=yes ;;
  1200. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1201. ac_prev=sbindir ;;
  1202. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1203. | --sbi=* | --sb=*)
  1204. sbindir=$ac_optarg ;;
  1205. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1206. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1207. | --sharedst | --shareds | --shared | --share | --shar \
  1208. | --sha | --sh)
  1209. ac_prev=sharedstatedir ;;
  1210. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1211. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1212. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1213. | --sha=* | --sh=*)
  1214. sharedstatedir=$ac_optarg ;;
  1215. -site | --site | --sit)
  1216. ac_prev=site ;;
  1217. -site=* | --site=* | --sit=*)
  1218. site=$ac_optarg ;;
  1219. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1220. ac_prev=srcdir ;;
  1221. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1222. srcdir=$ac_optarg ;;
  1223. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1224. | --syscon | --sysco | --sysc | --sys | --sy)
  1225. ac_prev=sysconfdir ;;
  1226. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1227. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1228. sysconfdir=$ac_optarg ;;
  1229. -target | --target | --targe | --targ | --tar | --ta | --t)
  1230. ac_prev=target_alias ;;
  1231. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1232. target_alias=$ac_optarg ;;
  1233. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1234. verbose=yes ;;
  1235. -version | --version | --versio | --versi | --vers | -V)
  1236. ac_init_version=: ;;
  1237. -with-* | --with-*)
  1238. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1239. # Reject names that are not valid shell variable names.
  1240. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1241. as_fn_error $? "invalid package name: $ac_useropt"
  1242. ac_useropt_orig=$ac_useropt
  1243. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1244. case $ac_user_opts in
  1245. *"
  1246. "with_$ac_useropt"
  1247. "*) ;;
  1248. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1249. ac_unrecognized_sep=', ';;
  1250. esac
  1251. eval with_$ac_useropt=\$ac_optarg ;;
  1252. -without-* | --without-*)
  1253. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1254. # Reject names that are not valid shell variable names.
  1255. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1256. as_fn_error $? "invalid package name: $ac_useropt"
  1257. ac_useropt_orig=$ac_useropt
  1258. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1259. case $ac_user_opts in
  1260. *"
  1261. "with_$ac_useropt"
  1262. "*) ;;
  1263. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1264. ac_unrecognized_sep=', ';;
  1265. esac
  1266. eval with_$ac_useropt=no ;;
  1267. --x)
  1268. # Obsolete; use --with-x.
  1269. with_x=yes ;;
  1270. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1271. | --x-incl | --x-inc | --x-in | --x-i)
  1272. ac_prev=x_includes ;;
  1273. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1274. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1275. x_includes=$ac_optarg ;;
  1276. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1277. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1278. ac_prev=x_libraries ;;
  1279. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1280. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1281. x_libraries=$ac_optarg ;;
  1282. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1283. Try \`$0 --help' for more information"
  1284. ;;
  1285. *=*)
  1286. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1287. # Reject names that are not valid shell variable names.
  1288. case $ac_envvar in #(
  1289. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1290. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1291. esac
  1292. eval $ac_envvar=\$ac_optarg
  1293. export $ac_envvar ;;
  1294. *)
  1295. # FIXME: should be removed in autoconf 3.0.
  1296. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1297. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1298. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1299. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1300. ;;
  1301. esac
  1302. done
  1303. if test -n "$ac_prev"; then
  1304. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1305. as_fn_error $? "missing argument to $ac_option"
  1306. fi
  1307. if test -n "$ac_unrecognized_opts"; then
  1308. case $enable_option_checking in
  1309. no) ;;
  1310. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1311. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1312. esac
  1313. fi
  1314. # Check all directory arguments for consistency.
  1315. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1316. datadir sysconfdir sharedstatedir localstatedir includedir \
  1317. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1318. libdir localedir mandir
  1319. do
  1320. eval ac_val=\$$ac_var
  1321. # Remove trailing slashes.
  1322. case $ac_val in
  1323. */ )
  1324. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1325. eval $ac_var=\$ac_val;;
  1326. esac
  1327. # Be sure to have absolute directory names.
  1328. case $ac_val in
  1329. [\\/$]* | ?:[\\/]* ) continue;;
  1330. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1331. esac
  1332. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1333. done
  1334. # There might be people who depend on the old broken behavior: `$host'
  1335. # used to hold the argument of --host etc.
  1336. # FIXME: To remove some day.
  1337. build=$build_alias
  1338. host=$host_alias
  1339. target=$target_alias
  1340. # FIXME: To remove some day.
  1341. if test "x$host_alias" != x; then
  1342. if test "x$build_alias" = x; then
  1343. cross_compiling=maybe
  1344. elif test "x$build_alias" != "x$host_alias"; then
  1345. cross_compiling=yes
  1346. fi
  1347. fi
  1348. ac_tool_prefix=
  1349. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1350. test "$silent" = yes && exec 6>/dev/null
  1351. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1352. ac_ls_di=`ls -di .` &&
  1353. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1354. as_fn_error $? "working directory cannot be determined"
  1355. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1356. as_fn_error $? "pwd does not report name of working directory"
  1357. # Find the source files, if location was not specified.
  1358. if test -z "$srcdir"; then
  1359. ac_srcdir_defaulted=yes
  1360. # Try the directory containing this script, then the parent directory.
  1361. ac_confdir=`$as_dirname -- "$as_myself" ||
  1362. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1363. X"$as_myself" : 'X\(//\)[^/]' \| \
  1364. X"$as_myself" : 'X\(//\)$' \| \
  1365. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1366. $as_echo X"$as_myself" |
  1367. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1368. s//\1/
  1369. q
  1370. }
  1371. /^X\(\/\/\)[^/].*/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\/\)$/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\).*/{
  1380. s//\1/
  1381. q
  1382. }
  1383. s/.*/./; q'`
  1384. srcdir=$ac_confdir
  1385. if test ! -r "$srcdir/$ac_unique_file"; then
  1386. srcdir=..
  1387. fi
  1388. else
  1389. ac_srcdir_defaulted=no
  1390. fi
  1391. if test ! -r "$srcdir/$ac_unique_file"; then
  1392. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1393. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1394. fi
  1395. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1396. ac_abs_confdir=`(
  1397. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1398. pwd)`
  1399. # When building in place, set srcdir=.
  1400. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1401. srcdir=.
  1402. fi
  1403. # Remove unnecessary trailing slashes from srcdir.
  1404. # Double slashes in file names in object file debugging info
  1405. # mess up M-x gdb in Emacs.
  1406. case $srcdir in
  1407. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1408. esac
  1409. for ac_var in $ac_precious_vars; do
  1410. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1411. eval ac_env_${ac_var}_value=\$${ac_var}
  1412. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1413. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1414. done
  1415. #
  1416. # Report the --help message.
  1417. #
  1418. if test "$ac_init_help" = "long"; then
  1419. # Omit some internal or obsolete options to make the list less imposing.
  1420. # This message is too long to be a string in the A/UX 3.1 sh.
  1421. cat <<_ACEOF
  1422. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1423. Usage: $0 [OPTION]... [VAR=VALUE]...
  1424. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1425. VAR=VALUE. See below for descriptions of some of the useful variables.
  1426. Defaults for the options are specified in brackets.
  1427. Configuration:
  1428. -h, --help display this help and exit
  1429. --help=short display options specific to this package
  1430. --help=recursive display the short help of all the included packages
  1431. -V, --version display version information and exit
  1432. -q, --quiet, --silent do not print \`checking ...' messages
  1433. --cache-file=FILE cache test results in FILE [disabled]
  1434. -C, --config-cache alias for \`--cache-file=config.cache'
  1435. -n, --no-create do not create output files
  1436. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1437. Installation directories:
  1438. --prefix=PREFIX install architecture-independent files in PREFIX
  1439. [$ac_default_prefix]
  1440. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1441. [PREFIX]
  1442. By default, \`make install' will install all the files in
  1443. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1444. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1445. for instance \`--prefix=\$HOME'.
  1446. For better control, use the options below.
  1447. Fine tuning of the installation directories:
  1448. --bindir=DIR user executables [EPREFIX/bin]
  1449. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1450. --libexecdir=DIR program executables [EPREFIX/libexec]
  1451. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1452. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1453. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1454. --libdir=DIR object code libraries [EPREFIX/lib]
  1455. --includedir=DIR C header files [PREFIX/include]
  1456. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1457. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1458. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1459. --infodir=DIR info documentation [DATAROOTDIR/info]
  1460. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1461. --mandir=DIR man documentation [DATAROOTDIR/man]
  1462. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1463. --htmldir=DIR html documentation [DOCDIR]
  1464. --dvidir=DIR dvi documentation [DOCDIR]
  1465. --pdfdir=DIR pdf documentation [DOCDIR]
  1466. --psdir=DIR ps documentation [DOCDIR]
  1467. _ACEOF
  1468. cat <<\_ACEOF
  1469. Program names:
  1470. --program-prefix=PREFIX prepend PREFIX to installed program names
  1471. --program-suffix=SUFFIX append SUFFIX to installed program names
  1472. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1473. System types:
  1474. --build=BUILD configure for building on BUILD [guessed]
  1475. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1476. _ACEOF
  1477. fi
  1478. if test -n "$ac_init_help"; then
  1479. case $ac_init_help in
  1480. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1481. esac
  1482. cat <<\_ACEOF
  1483. Optional Features:
  1484. --disable-option-checking ignore unrecognized --enable/--with options
  1485. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1486. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1487. --enable-silent-rules less verbose build output (undo: "make V=1")
  1488. --disable-silent-rules verbose build output (undo: "make V=0")
  1489. --enable-maintainer-mode
  1490. enable make rules and dependencies not useful (and
  1491. sometimes confusing) to the casual installer
  1492. --enable-dependency-tracking
  1493. do not reject slow dependency extractors
  1494. --disable-dependency-tracking
  1495. speeds up one-time build
  1496. --enable-static[=PKGS] build static libraries [default=no]
  1497. --enable-shared[=PKGS] build shared libraries [default=yes]
  1498. --enable-fast-install[=PKGS]
  1499. optimize for fast installation [default=yes]
  1500. --disable-libtool-lock avoid locking (might break parallel builds)
  1501. --enable-debug Enable debug features (default: no)
  1502. --enable-asan Enable gcc address sanitizer options (default: no)
  1503. --enable-gcc-security Enable gcc secure compilation options (default: no)
  1504. --enable-bundle Enable bundled dependencies (default: no)
  1505. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1506. yes)
  1507. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1508. plugin (default: yes)
  1509. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1510. (default: yes)
  1511. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1512. support (default: no)
  1513. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1514. domain socket (LDAPI) support (default: no)
  1515. --enable-bitwise enable the bitwise matching rule plugin (default:
  1516. yes)
  1517. --enable-presence enable the presence plugin (default: no)
  1518. --enable-acctpolicy enable the account policy plugin (default: yes)
  1519. --enable-posix-winsync enable support for POSIX user/group attributes in
  1520. winsync (default: yes)
  1521. --enable-nunc-stans enable support for nunc-stans event framework
  1522. (default: no)
  1523. Optional Packages:
  1524. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1525. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1526. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1527. both]
  1528. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1529. --with-sysroot=DIR Search for dependent libraries within DIR
  1530. (or the compiler's sysroot if not specified).
  1531. --with-fhs Use FHS layout
  1532. --with-fhs-opt Use FHS optional layout
  1533. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1534. (default: $with_tmpfiles_d)
  1535. --with-perldir=PATH Directory for perl)
  1536. --with-pythonexec=PATH Path to executable for python)
  1537. --with-instconfigdir=/path
  1538. Base directory for instance specific writable
  1539. configuration directories (default
  1540. $sysconfdir/$PACKAGE_NAME)
  1541. --with-initddir=/path Absolute path (not relative like some of the other
  1542. options) that should contain the SysV init scripts
  1543. (default '$(sysconfdir)/rc.d')
  1544. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1545. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1546. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1547. --with-nss[=PATH] Network Security Services (NSS) directory
  1548. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1549. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1550. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1551. --with-openldap-inc=PATH
  1552. OpenLDAP SDK include directory
  1553. --with-openldap-lib=PATH
  1554. OpenLDAP SDK library directory
  1555. --with-openldap-bin=PATH
  1556. OpenLDAP SDK binary directory
  1557. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1558. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1559. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1560. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1561. --with-db[=PATH] Berkeley DB directory
  1562. --with-db-inc=PATH Berkeley DB include file directory
  1563. --with-db-lib=PATH Berkeley DB library directory
  1564. --with-sasl[=PATH] Use SASL from supplied path
  1565. --with-sasl-inc=PATH SASL include file directory
  1566. --with-sasl-lib=PATH SASL library directory
  1567. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1568. SVRCORE
  1569. --with-svrcore-inc=PATH SVRCORE include file directory
  1570. --with-svrcore-lib=PATH SVRCORE library directory
  1571. --with-icu[=PATH] ICU directory
  1572. --with-icu-inc=PATH ICU include directory
  1573. --with-icu-lib=PATH ICU library directory
  1574. --with-icu-bin=PATH ICU binary directory
  1575. --with-netsnmp[=PATH] Net-SNMP directory
  1576. --with-netsnmp-inc=PATH Net-SNMP include directory
  1577. --with-netsnmp-lib=PATH Net-SNMP library directory
  1578. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1579. the server to authenticate directly with a keytab -
  1580. otherwise, SASL/GSSAPI auth depends on underlying
  1581. SASL libraries and external kinit with a keytab - if
  1582. PATH is not specified, look for kerberos in the
  1583. system locations. This will attempt to use
  1584. krb5-config from the PATH to find the libs and
  1585. include dirs - you can specify KRB5_CONFIG_BIN to
  1586. specify a different filename or absolute path. If
  1587. krb5-config does not work, this will attempt to look
  1588. in various system directories
  1589. --with-kerberos-inc=PATH
  1590. Allows you to explicitly set the directory
  1591. containing the kerberos include files - implies use
  1592. of kerberos
  1593. --with-kerberos-lib=PATH
  1594. Allows you to explicitly set the directory
  1595. containing the kerberos libraries - implies use of
  1596. kerberos
  1597. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1598. --with-selinux Support SELinux policy
  1599. --with-nunc-stans[=PATH]
  1600. nunc-stans directory
  1601. --with-nunc-stans-inc=PATH
  1602. nunc-stans include file directory
  1603. --with-nunc-stans-lib=PATH
  1604. nunc-stans library directory
  1605. --with-systemd Enable Systemd native integration.
  1606. --with-journald Enable Journald native integration. WARNING, this
  1607. may cause system instability
  1608. --with-systemdsystemunitdir=PATH
  1609. Directory for systemd service files (default:
  1610. $with_systemdsystemunitdir)
  1611. --with-systemdsystemconfdir=PATH
  1612. Directory for systemd service files (default:
  1613. $with_systemdsystemconfdir)
  1614. --with-systemdgroupname=NAME
  1615. Name of group target for all instances (default:
  1616. $with_systemdgroupname)
  1617. Some influential environment variables:
  1618. CXX C++ compiler command
  1619. CXXFLAGS C++ compiler flags
  1620. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1621. nonstandard directory <lib dir>
  1622. LIBS libraries to pass to the linker, e.g. -l<library>
  1623. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1624. you have headers in a nonstandard directory <include dir>
  1625. CC C compiler command
  1626. CFLAGS C compiler flags
  1627. CCAS assembler compiler command (defaults to CC)
  1628. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1629. CPP C preprocessor
  1630. CXXCPP C++ preprocessor
  1631. Use these variables to override the choices made by `configure' or to help
  1632. it to find libraries and programs with nonstandard names/locations.
  1633. Report bugs to <http://bugzilla.redhat.com/>.
  1634. _ACEOF
  1635. ac_status=$?
  1636. fi
  1637. if test "$ac_init_help" = "recursive"; then
  1638. # If there are subdirs, report their specific --help.
  1639. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1640. test -d "$ac_dir" ||
  1641. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1642. continue
  1643. ac_builddir=.
  1644. case "$ac_dir" in
  1645. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1646. *)
  1647. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1648. # A ".." for each directory in $ac_dir_suffix.
  1649. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1650. case $ac_top_builddir_sub in
  1651. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1652. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1653. esac ;;
  1654. esac
  1655. ac_abs_top_builddir=$ac_pwd
  1656. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1657. # for backward compatibility:
  1658. ac_top_builddir=$ac_top_build_prefix
  1659. case $srcdir in
  1660. .) # We are building in place.
  1661. ac_srcdir=.
  1662. ac_top_srcdir=$ac_top_builddir_sub
  1663. ac_abs_top_srcdir=$ac_pwd ;;
  1664. [\\/]* | ?:[\\/]* ) # Absolute name.
  1665. ac_srcdir=$srcdir$ac_dir_suffix;
  1666. ac_top_srcdir=$srcdir
  1667. ac_abs_top_srcdir=$srcdir ;;
  1668. *) # Relative name.
  1669. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1670. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1671. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1672. esac
  1673. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1674. cd "$ac_dir" || { ac_status=$?; continue; }
  1675. # Check for guested configure.
  1676. if test -f "$ac_srcdir/configure.gnu"; then
  1677. echo &&
  1678. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1679. elif test -f "$ac_srcdir/configure"; then
  1680. echo &&
  1681. $SHELL "$ac_srcdir/configure" --help=recursive
  1682. else
  1683. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1684. fi || ac_status=$?
  1685. cd "$ac_pwd" || { ac_status=$?; break; }
  1686. done
  1687. fi
  1688. test -n "$ac_init_help" && exit $ac_status
  1689. if $ac_init_version; then
  1690. cat <<\_ACEOF
  1691. dirsrv configure 1.0
  1692. generated by GNU Autoconf 2.69
  1693. Copyright (C) 2012 Free Software Foundation, Inc.
  1694. This configure script is free software; the Free Software Foundation
  1695. gives unlimited permission to copy, distribute and modify it.
  1696. _ACEOF
  1697. exit
  1698. fi
  1699. ## ------------------------ ##
  1700. ## Autoconf initialization. ##
  1701. ## ------------------------ ##
  1702. # ac_fn_cxx_try_compile LINENO
  1703. # ----------------------------
  1704. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1705. ac_fn_cxx_try_compile ()
  1706. {
  1707. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1708. rm -f conftest.$ac_objext
  1709. if { { ac_try="$ac_compile"
  1710. case "(($ac_try" in
  1711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1712. *) ac_try_echo=$ac_try;;
  1713. esac
  1714. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1715. $as_echo "$ac_try_echo"; } >&5
  1716. (eval "$ac_compile") 2>conftest.err
  1717. ac_status=$?
  1718. if test -s conftest.err; then
  1719. grep -v '^ *+' conftest.err >conftest.er1
  1720. cat conftest.er1 >&5
  1721. mv -f conftest.er1 conftest.err
  1722. fi
  1723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1724. test $ac_status = 0; } && {
  1725. test -z "$ac_cxx_werror_flag" ||
  1726. test ! -s conftest.err
  1727. } && test -s conftest.$ac_objext; then :
  1728. ac_retval=0
  1729. else
  1730. $as_echo "$as_me: failed program was:" >&5
  1731. sed 's/^/| /' conftest.$ac_ext >&5
  1732. ac_retval=1
  1733. fi
  1734. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1735. as_fn_set_status $ac_retval
  1736. } # ac_fn_cxx_try_compile
  1737. # ac_fn_c_try_compile LINENO
  1738. # --------------------------
  1739. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_c_try_compile ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. rm -f conftest.$ac_objext
  1744. if { { ac_try="$ac_compile"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751. (eval "$ac_compile") 2>conftest.err
  1752. ac_status=$?
  1753. if test -s conftest.err; then
  1754. grep -v '^ *+' conftest.err >conftest.er1
  1755. cat conftest.er1 >&5
  1756. mv -f conftest.er1 conftest.err
  1757. fi
  1758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && {
  1760. test -z "$ac_c_werror_flag" ||
  1761. test ! -s conftest.err
  1762. } && test -s conftest.$ac_objext; then :
  1763. ac_retval=0
  1764. else
  1765. $as_echo "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767. ac_retval=1
  1768. fi
  1769. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1770. as_fn_set_status $ac_retval
  1771. } # ac_fn_c_try_compile
  1772. # ac_fn_c_try_link LINENO
  1773. # -----------------------
  1774. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1775. ac_fn_c_try_link ()
  1776. {
  1777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1778. rm -f conftest.$ac_objext conftest$ac_exeext
  1779. if { { ac_try="$ac_link"
  1780. case "(($ac_try" in
  1781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1782. *) ac_try_echo=$ac_try;;
  1783. esac
  1784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1785. $as_echo "$ac_try_echo"; } >&5
  1786. (eval "$ac_link") 2>conftest.err
  1787. ac_status=$?
  1788. if test -s conftest.err; then
  1789. grep -v '^ *+' conftest.err >conftest.er1
  1790. cat conftest.er1 >&5
  1791. mv -f conftest.er1 conftest.err
  1792. fi
  1793. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1794. test $ac_status = 0; } && {
  1795. test -z "$ac_c_werror_flag" ||
  1796. test ! -s conftest.err
  1797. } && test -s conftest$ac_exeext && {
  1798. test "$cross_compiling" = yes ||
  1799. test -x conftest$ac_exeext
  1800. }; then :
  1801. ac_retval=0
  1802. else
  1803. $as_echo "$as_me: failed program was:" >&5
  1804. sed 's/^/| /' conftest.$ac_ext >&5
  1805. ac_retval=1
  1806. fi
  1807. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1808. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1809. # interfere with the next link command; also delete a directory that is
  1810. # left behind by Apple's compiler. We do this before executing the actions.
  1811. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1812. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1813. as_fn_set_status $ac_retval
  1814. } # ac_fn_c_try_link
  1815. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1816. # -------------------------------------------------------
  1817. # Tests whether HEADER exists and can be compiled using the include files in
  1818. # INCLUDES, setting the cache variable VAR accordingly.
  1819. ac_fn_c_check_header_compile ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1823. $as_echo_n "checking for $2... " >&6; }
  1824. if eval \${$3+:} false; then :
  1825. $as_echo_n "(cached) " >&6
  1826. else
  1827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h. */
  1829. $4
  1830. #include <$2>
  1831. _ACEOF
  1832. if ac_fn_c_try_compile "$LINENO"; then :
  1833. eval "$3=yes"
  1834. else
  1835. eval "$3=no"
  1836. fi
  1837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1838. fi
  1839. eval ac_res=\$$3
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1841. $as_echo "$ac_res" >&6; }
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. } # ac_fn_c_check_header_compile
  1844. # ac_fn_c_try_cpp LINENO
  1845. # ----------------------
  1846. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1847. ac_fn_c_try_cpp ()
  1848. {
  1849. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1850. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1851. case "(($ac_try" in
  1852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1853. *) ac_try_echo=$ac_try;;
  1854. esac
  1855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1856. $as_echo "$ac_try_echo"; } >&5
  1857. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1858. ac_status=$?
  1859. if test -s conftest.err; then
  1860. grep -v '^ *+' conftest.err >conftest.er1
  1861. cat conftest.er1 >&5
  1862. mv -f conftest.er1 conftest.err
  1863. fi
  1864. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1865. test $ac_status = 0; } > conftest.i && {
  1866. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1867. test ! -s conftest.err
  1868. }; then :
  1869. ac_retval=0
  1870. else
  1871. $as_echo "$as_me: failed program was:" >&5
  1872. sed 's/^/| /' conftest.$ac_ext >&5
  1873. ac_retval=1
  1874. fi
  1875. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1876. as_fn_set_status $ac_retval
  1877. } # ac_fn_c_try_cpp
  1878. # ac_fn_c_try_run LINENO
  1879. # ----------------------
  1880. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1881. # that executables *can* be run.
  1882. ac_fn_c_try_run ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. if { { ac_try="$ac_link"
  1886. case "(($ac_try" in
  1887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1888. *) ac_try_echo=$ac_try;;
  1889. esac
  1890. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1891. $as_echo "$ac_try_echo"; } >&5
  1892. (eval "$ac_link") 2>&5
  1893. ac_status=$?
  1894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1895. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1896. { { case "(($ac_try" in
  1897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1898. *) ac_try_echo=$ac_try;;
  1899. esac
  1900. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1901. $as_echo "$ac_try_echo"; } >&5
  1902. (eval "$ac_try") 2>&5
  1903. ac_status=$?
  1904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1905. test $ac_status = 0; }; }; then :
  1906. ac_retval=0
  1907. else
  1908. $as_echo "$as_me: program exited with status $ac_status" >&5
  1909. $as_echo "$as_me: failed program was:" >&5
  1910. sed 's/^/| /' conftest.$ac_ext >&5
  1911. ac_retval=$ac_status
  1912. fi
  1913. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1914. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1915. as_fn_set_status $ac_retval
  1916. } # ac_fn_c_try_run
  1917. # ac_fn_c_check_func LINENO FUNC VAR
  1918. # ----------------------------------
  1919. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1920. ac_fn_c_check_func ()
  1921. {
  1922. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1924. $as_echo_n "checking for $2... " >&6; }
  1925. if eval \${$3+:} false; then :
  1926. $as_echo_n "(cached) " >&6
  1927. else
  1928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h. */
  1930. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1932. #define $2 innocuous_$2
  1933. /* System header to define __stub macros and hopefully few prototypes,
  1934. which can conflict with char $2 (); below.
  1935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1936. <limits.h> exists even on freestanding compilers. */
  1937. #ifdef __STDC__
  1938. # include <limits.h>
  1939. #else
  1940. # include <assert.h>
  1941. #endif
  1942. #undef $2
  1943. /* Override any GCC internal prototype to avoid an error.
  1944. Use char because int might match the return type of a GCC
  1945. builtin and then its argument prototype would still apply. */
  1946. #ifdef __cplusplus
  1947. extern "C"
  1948. #endif
  1949. char $2 ();
  1950. /* The GNU C library defines this for functions which it implements
  1951. to always fail with ENOSYS. Some functions are actually named
  1952. something starting with __ and the normal name is an alias. */
  1953. #if defined __stub_$2 || defined __stub___$2
  1954. choke me
  1955. #endif
  1956. int
  1957. main ()
  1958. {
  1959. return $2 ();
  1960. ;
  1961. return 0;
  1962. }
  1963. _ACEOF
  1964. if ac_fn_c_try_link "$LINENO"; then :
  1965. eval "$3=yes"
  1966. else
  1967. eval "$3=no"
  1968. fi
  1969. rm -f core conftest.err conftest.$ac_objext \
  1970. conftest$ac_exeext conftest.$ac_ext
  1971. fi
  1972. eval ac_res=\$$3
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1974. $as_echo "$ac_res" >&6; }
  1975. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1976. } # ac_fn_c_check_func
  1977. # ac_fn_cxx_try_cpp LINENO
  1978. # ------------------------
  1979. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1980. ac_fn_cxx_try_cpp ()
  1981. {
  1982. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1983. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1984. case "(($ac_try" in
  1985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1986. *) ac_try_echo=$ac_try;;
  1987. esac
  1988. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1989. $as_echo "$ac_try_echo"; } >&5
  1990. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1991. ac_status=$?
  1992. if test -s conftest.err; then
  1993. grep -v '^ *+' conftest.err >conftest.er1
  1994. cat conftest.er1 >&5
  1995. mv -f conftest.er1 conftest.err
  1996. fi
  1997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1998. test $ac_status = 0; } > conftest.i && {
  1999. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2000. test ! -s conftest.err
  2001. }; then :
  2002. ac_retval=0
  2003. else
  2004. $as_echo "$as_me: failed program was:" >&5
  2005. sed 's/^/| /' conftest.$ac_ext >&5
  2006. ac_retval=1
  2007. fi
  2008. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2009. as_fn_set_status $ac_retval
  2010. } # ac_fn_cxx_try_cpp
  2011. # ac_fn_cxx_try_link LINENO
  2012. # -------------------------
  2013. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2014. ac_fn_cxx_try_link ()
  2015. {
  2016. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2017. rm -f conftest.$ac_objext conftest$ac_exeext
  2018. if { { ac_try="$ac_link"
  2019. case "(($ac_try" in
  2020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2021. *) ac_try_echo=$ac_try;;
  2022. esac
  2023. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2024. $as_echo "$ac_try_echo"; } >&5
  2025. (eval "$ac_link") 2>conftest.err
  2026. ac_status=$?
  2027. if test -s conftest.err; then
  2028. grep -v '^ *+' conftest.err >conftest.er1
  2029. cat conftest.er1 >&5
  2030. mv -f conftest.er1 conftest.err
  2031. fi
  2032. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2033. test $ac_status = 0; } && {
  2034. test -z "$ac_cxx_werror_flag" ||
  2035. test ! -s conftest.err
  2036. } && test -s conftest$ac_exeext && {
  2037. test "$cross_compiling" = yes ||
  2038. test -x conftest$ac_exeext
  2039. }; then :
  2040. ac_retval=0
  2041. else
  2042. $as_echo "$as_me: failed program was:" >&5
  2043. sed 's/^/| /' conftest.$ac_ext >&5
  2044. ac_retval=1
  2045. fi
  2046. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2047. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2048. # interfere with the next link command; also delete a directory that is
  2049. # left behind by Apple's compiler. We do this before executing the actions.
  2050. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2051. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2052. as_fn_set_status $ac_retval
  2053. } # ac_fn_cxx_try_link
  2054. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2055. # -------------------------------------------------------
  2056. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2057. # the include files in INCLUDES and setting the cache variable VAR
  2058. # accordingly.
  2059. ac_fn_c_check_header_mongrel ()
  2060. {
  2061. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2062. if eval \${$3+:} false; then :
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2064. $as_echo_n "checking for $2... " >&6; }
  2065. if eval \${$3+:} false; then :
  2066. $as_echo_n "(cached) " >&6
  2067. fi
  2068. eval ac_res=\$$3
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2070. $as_echo "$ac_res" >&6; }
  2071. else
  2072. # Is the header compilable?
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2074. $as_echo_n "checking $2 usability... " >&6; }
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. $4
  2078. #include <$2>
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. ac_header_compiler=yes
  2082. else
  2083. ac_header_compiler=no
  2084. fi
  2085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2087. $as_echo "$ac_header_compiler" >&6; }
  2088. # Is the header present?
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2090. $as_echo_n "checking $2 presence... " >&6; }
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. #include <$2>
  2094. _ACEOF
  2095. if ac_fn_c_try_cpp "$LINENO"; then :
  2096. ac_header_preproc=yes
  2097. else
  2098. ac_header_preproc=no
  2099. fi
  2100. rm -f conftest.err conftest.i conftest.$ac_ext
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2102. $as_echo "$ac_header_preproc" >&6; }
  2103. # So? What about this header?
  2104. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2105. yes:no: )
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2107. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2109. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2110. ;;
  2111. no:yes:* )
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2113. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2115. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2117. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2119. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2121. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2122. ( $as_echo "## ------------------------------------------ ##
  2123. ## Report this to http://bugzilla.redhat.com/ ##
  2124. ## ------------------------------------------ ##"
  2125. ) | sed "s/^/$as_me: WARNING: /" >&2
  2126. ;;
  2127. esac
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2129. $as_echo_n "checking for $2... " >&6; }
  2130. if eval \${$3+:} false; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. eval "$3=\$ac_header_compiler"
  2134. fi
  2135. eval ac_res=\$$3
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. $as_echo "$ac_res" >&6; }
  2138. fi
  2139. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2140. } # ac_fn_c_check_header_mongrel
  2141. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2142. # -------------------------------------------
  2143. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2144. # variable VAR accordingly.
  2145. ac_fn_c_check_type ()
  2146. {
  2147. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2149. $as_echo_n "checking for $2... " >&6; }
  2150. if eval \${$3+:} false; then :
  2151. $as_echo_n "(cached) " >&6
  2152. else
  2153. eval "$3=no"
  2154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2155. /* end confdefs.h. */
  2156. $4
  2157. int
  2158. main ()
  2159. {
  2160. if (sizeof ($2))
  2161. return 0;
  2162. ;
  2163. return 0;
  2164. }
  2165. _ACEOF
  2166. if ac_fn_c_try_compile "$LINENO"; then :
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. $4
  2170. int
  2171. main ()
  2172. {
  2173. if (sizeof (($2)))
  2174. return 0;
  2175. ;
  2176. return 0;
  2177. }
  2178. _ACEOF
  2179. if ac_fn_c_try_compile "$LINENO"; then :
  2180. else
  2181. eval "$3=yes"
  2182. fi
  2183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2184. fi
  2185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2186. fi
  2187. eval ac_res=\$$3
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2189. $as_echo "$ac_res" >&6; }
  2190. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2191. } # ac_fn_c_check_type
  2192. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2193. # ---------------------------------------------
  2194. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2195. # accordingly.
  2196. ac_fn_c_check_decl ()
  2197. {
  2198. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2199. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2200. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2202. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2203. if eval \${$3+:} false; then :
  2204. $as_echo_n "(cached) " >&6
  2205. else
  2206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2207. /* end confdefs.h. */
  2208. $4
  2209. int
  2210. main ()
  2211. {
  2212. #ifndef $as_decl_name
  2213. #ifdef __cplusplus
  2214. (void) $as_decl_use;
  2215. #else
  2216. (void) $as_decl_name;
  2217. #endif
  2218. #endif
  2219. ;
  2220. return 0;
  2221. }
  2222. _ACEOF
  2223. if ac_fn_c_try_compile "$LINENO"; then :
  2224. eval "$3=yes"
  2225. else
  2226. eval "$3=no"
  2227. fi
  2228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2229. fi
  2230. eval ac_res=\$$3
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2232. $as_echo "$ac_res" >&6; }
  2233. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2234. } # ac_fn_c_check_decl
  2235. cat >config.log <<_ACEOF
  2236. This file contains any messages produced by compilers while
  2237. running configure, to aid debugging if configure makes a mistake.
  2238. It was created by dirsrv $as_me 1.0, which was
  2239. generated by GNU Autoconf 2.69. Invocation command line was
  2240. $ $0 $@
  2241. _ACEOF
  2242. exec 5>>config.log
  2243. {
  2244. cat <<_ASUNAME
  2245. ## --------- ##
  2246. ## Platform. ##
  2247. ## --------- ##
  2248. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2249. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2250. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2251. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2252. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2253. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2254. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2255. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2256. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2257. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2258. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2259. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2260. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2261. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2262. _ASUNAME
  2263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2264. for as_dir in $PATH
  2265. do
  2266. IFS=$as_save_IFS
  2267. test -z "$as_dir" && as_dir=.
  2268. $as_echo "PATH: $as_dir"
  2269. done
  2270. IFS=$as_save_IFS
  2271. } >&5
  2272. cat >&5 <<_ACEOF
  2273. ## ----------- ##
  2274. ## Core tests. ##
  2275. ## ----------- ##
  2276. _ACEOF
  2277. # Keep a trace of the command line.
  2278. # Strip out --no-create and --no-recursion so they do not pile up.
  2279. # Strip out --silent because we don't want to record it for future runs.
  2280. # Also quote any args containing shell meta-characters.
  2281. # Make two passes to allow for proper duplicate-argument suppression.
  2282. ac_configure_args=
  2283. ac_configure_args0=
  2284. ac_configure_args1=
  2285. ac_must_keep_next=false
  2286. for ac_pass in 1 2
  2287. do
  2288. for ac_arg
  2289. do
  2290. case $ac_arg in
  2291. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2292. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2293. | -silent | --silent | --silen | --sile | --sil)
  2294. continue ;;
  2295. *\'*)
  2296. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2297. esac
  2298. case $ac_pass in
  2299. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2300. 2)
  2301. as_fn_append ac_configure_args1 " '$ac_arg'"
  2302. if test $ac_must_keep_next = true; then
  2303. ac_must_keep_next=false # Got value, back to normal.
  2304. else
  2305. case $ac_arg in
  2306. *=* | --config-cache | -C | -disable-* | --disable-* \
  2307. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2308. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2309. | -with-* | --with-* | -without-* | --without-* | --x)
  2310. case "$ac_configure_args0 " in
  2311. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2312. esac
  2313. ;;
  2314. -* ) ac_must_keep_next=true ;;
  2315. esac
  2316. fi
  2317. as_fn_append ac_configure_args " '$ac_arg'"
  2318. ;;
  2319. esac
  2320. done
  2321. done
  2322. { ac_configure_args0=; unset ac_configure_args0;}
  2323. { ac_configure_args1=; unset ac_configure_args1;}
  2324. # When interrupted or exit'd, cleanup temporary files, and complete
  2325. # config.log. We remove comments because anyway the quotes in there
  2326. # would cause problems or look ugly.
  2327. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2328. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2329. trap 'exit_status=$?
  2330. # Save into config.log some information that might help in debugging.
  2331. {
  2332. echo
  2333. $as_echo "## ---------------- ##
  2334. ## Cache variables. ##
  2335. ## ---------------- ##"
  2336. echo
  2337. # The following way of writing the cache mishandles newlines in values,
  2338. (
  2339. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2340. eval ac_val=\$$ac_var
  2341. case $ac_val in #(
  2342. *${as_nl}*)
  2343. case $ac_var in #(
  2344. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2345. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2346. esac
  2347. case $ac_var in #(
  2348. _ | IFS | as_nl) ;; #(
  2349. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2350. *) { eval $ac_var=; unset $ac_var;} ;;
  2351. esac ;;
  2352. esac
  2353. done
  2354. (set) 2>&1 |
  2355. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2356. *${as_nl}ac_space=\ *)
  2357. sed -n \
  2358. "s/'\''/'\''\\\\'\'''\''/g;
  2359. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2360. ;; #(
  2361. *)
  2362. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2363. ;;
  2364. esac |
  2365. sort
  2366. )
  2367. echo
  2368. $as_echo "## ----------------- ##
  2369. ## Output variables. ##
  2370. ## ----------------- ##"
  2371. echo
  2372. for ac_var in $ac_subst_vars
  2373. do
  2374. eval ac_val=\$$ac_var
  2375. case $ac_val in
  2376. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2377. esac
  2378. $as_echo "$ac_var='\''$ac_val'\''"
  2379. done | sort
  2380. echo
  2381. if test -n "$ac_subst_files"; then
  2382. $as_echo "## ------------------- ##
  2383. ## File substitutions. ##
  2384. ## ------------------- ##"
  2385. echo
  2386. for ac_var in $ac_subst_files
  2387. do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in
  2390. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2391. esac
  2392. $as_echo "$ac_var='\''$ac_val'\''"
  2393. done | sort
  2394. echo
  2395. fi
  2396. if test -s confdefs.h; then
  2397. $as_echo "## ----------- ##
  2398. ## confdefs.h. ##
  2399. ## ----------- ##"
  2400. echo
  2401. cat confdefs.h
  2402. echo
  2403. fi
  2404. test "$ac_signal" != 0 &&
  2405. $as_echo "$as_me: caught signal $ac_signal"
  2406. $as_echo "$as_me: exit $exit_status"
  2407. } >&5
  2408. rm -f core *.core core.conftest.* &&
  2409. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2410. exit $exit_status
  2411. ' 0
  2412. for ac_signal in 1 2 13 15; do
  2413. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2414. done
  2415. ac_signal=0
  2416. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2417. rm -f -r conftest* confdefs.h
  2418. $as_echo "/* confdefs.h */" > confdefs.h
  2419. # Predefined preprocessor variables.
  2420. cat >>confdefs.h <<_ACEOF
  2421. #define PACKAGE_NAME "$PACKAGE_NAME"
  2422. _ACEOF
  2423. cat >>confdefs.h <<_ACEOF
  2424. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2425. _ACEOF
  2426. cat >>confdefs.h <<_ACEOF
  2427. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2428. _ACEOF
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE_STRING "$PACKAGE_STRING"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2434. _ACEOF
  2435. cat >>confdefs.h <<_ACEOF
  2436. #define PACKAGE_URL "$PACKAGE_URL"
  2437. _ACEOF
  2438. # Let the site file select an alternate cache file if it wants to.
  2439. # Prefer an explicitly selected file to automatically selected ones.
  2440. ac_site_file1=NONE
  2441. ac_site_file2=NONE
  2442. if test -n "$CONFIG_SITE"; then
  2443. # We do not want a PATH search for config.site.
  2444. case $CONFIG_SITE in #((
  2445. -*) ac_site_file1=./$CONFIG_SITE;;
  2446. */*) ac_site_file1=$CONFIG_SITE;;
  2447. *) ac_site_file1=./$CONFIG_SITE;;
  2448. esac
  2449. elif test "x$prefix" != xNONE; then
  2450. ac_site_file1=$prefix/share/config.site
  2451. ac_site_file2=$prefix/etc/config.site
  2452. else
  2453. ac_site_file1=$ac_default_prefix/share/config.site
  2454. ac_site_file2=$ac_default_prefix/etc/config.site
  2455. fi
  2456. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2457. do
  2458. test "x$ac_site_file" = xNONE && continue
  2459. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2461. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2462. sed 's/^/| /' "$ac_site_file" >&5
  2463. . "$ac_site_file" \
  2464. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2465. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2466. as_fn_error $? "failed to load site script $ac_site_file
  2467. See \`config.log' for more details" "$LINENO" 5; }
  2468. fi
  2469. done
  2470. if test -r "$cache_file"; then
  2471. # Some versions of bash will fail to source /dev/null (special files
  2472. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2473. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2475. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2476. case $cache_file in
  2477. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2478. *) . "./$cache_file";;
  2479. esac
  2480. fi
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2483. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2484. >$cache_file
  2485. fi
  2486. as_fn_append ac_header_list " stdlib.h"
  2487. as_fn_append ac_header_list " unistd.h"
  2488. as_fn_append ac_header_list " sys/param.h"
  2489. # Check that the precious variables saved in the cache have kept the same
  2490. # value.
  2491. ac_cache_corrupted=false
  2492. for ac_var in $ac_precious_vars; do
  2493. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2494. eval ac_new_set=\$ac_env_${ac_var}_set
  2495. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2496. eval ac_new_val=\$ac_env_${ac_var}_value
  2497. case $ac_old_set,$ac_new_set in
  2498. set,)
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2500. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2501. ac_cache_corrupted=: ;;
  2502. ,set)
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2504. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2505. ac_cache_corrupted=: ;;
  2506. ,);;
  2507. *)
  2508. if test "x$ac_old_val" != "x$ac_new_val"; then
  2509. # differences in whitespace do not lead to failure.
  2510. ac_old_val_w=`echo x $ac_old_val`
  2511. ac_new_val_w=`echo x $ac_new_val`
  2512. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2514. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2515. ac_cache_corrupted=:
  2516. else
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2518. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2519. eval $ac_var=\$ac_old_val
  2520. fi
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2522. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2524. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2525. fi;;
  2526. esac
  2527. # Pass precious variables to config.status.
  2528. if test "$ac_new_set" = set; then
  2529. case $ac_new_val in
  2530. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2531. *) ac_arg=$ac_var=$ac_new_val ;;
  2532. esac
  2533. case " $ac_configure_args " in
  2534. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2535. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2536. esac
  2537. fi
  2538. done
  2539. if $ac_cache_corrupted; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2541. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2543. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2544. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2545. fi
  2546. ## -------------------- ##
  2547. ## Main body of script. ##
  2548. ## -------------------- ##
  2549. ac_ext=c
  2550. ac_cpp='$CPP $CPPFLAGS'
  2551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2554. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2555. ac_config_headers="$ac_config_headers config.h"
  2556. # include the version information
  2557. . $srcdir/VERSION.sh
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2559. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2562. _ACEOF
  2563. cat >>confdefs.h <<_ACEOF
  2564. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2565. _ACEOF
  2566. cat >>confdefs.h <<_ACEOF
  2567. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2568. _ACEOF
  2569. cat >>confdefs.h <<_ACEOF
  2570. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2571. _ACEOF
  2572. am__api_version='1.15'
  2573. ac_aux_dir=
  2574. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2575. if test -f "$ac_dir/install-sh"; then
  2576. ac_aux_dir=$ac_dir
  2577. ac_install_sh="$ac_aux_dir/install-sh -c"
  2578. break
  2579. elif test -f "$ac_dir/install.sh"; then
  2580. ac_aux_dir=$ac_dir
  2581. ac_install_sh="$ac_aux_dir/install.sh -c"
  2582. break
  2583. elif test -f "$ac_dir/shtool"; then
  2584. ac_aux_dir=$ac_dir
  2585. ac_install_sh="$ac_aux_dir/shtool install -c"
  2586. break
  2587. fi
  2588. done
  2589. if test -z "$ac_aux_dir"; then
  2590. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2591. fi
  2592. # These three variables are undocumented and unsupported,
  2593. # and are intended to be withdrawn in a future Autoconf release.
  2594. # They can cause serious problems if a builder's source tree is in a directory
  2595. # whose full name contains unusual characters.
  2596. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2597. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2598. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2599. # Find a good install program. We prefer a C program (faster),
  2600. # so one script is as good as another. But avoid the broken or
  2601. # incompatible versions:
  2602. # SysV /etc/install, /usr/sbin/install
  2603. # SunOS /usr/etc/install
  2604. # IRIX /sbin/install
  2605. # AIX /bin/install
  2606. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2607. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2608. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2609. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2610. # OS/2's system install, which has a completely different semantic
  2611. # ./install, which can be erroneously created by make from ./install.sh.
  2612. # Reject install programs that cannot install multiple files.
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2614. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2615. if test -z "$INSTALL"; then
  2616. if ${ac_cv_path_install+:} false; then :
  2617. $as_echo_n "(cached) " >&6
  2618. else
  2619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2620. for as_dir in $PATH
  2621. do
  2622. IFS=$as_save_IFS
  2623. test -z "$as_dir" && as_dir=.
  2624. # Account for people who put trailing slashes in PATH elements.
  2625. case $as_dir/ in #((
  2626. ./ | .// | /[cC]/* | \
  2627. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2628. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2629. /usr/ucb/* ) ;;
  2630. *)
  2631. # OSF1 and SCO ODT 3.0 have their own names for install.
  2632. # Don't use installbsd from OSF since it installs stuff as root
  2633. # by default.
  2634. for ac_prog in ginstall scoinst install; do
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2637. if test $ac_prog = install &&
  2638. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2639. # AIX install. It has an incompatible calling convention.
  2640. :
  2641. elif test $ac_prog = install &&
  2642. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2643. # program-specific install script used by HP pwplus--don't use.
  2644. :
  2645. else
  2646. rm -rf conftest.one conftest.two conftest.dir
  2647. echo one > conftest.one
  2648. echo two > conftest.two
  2649. mkdir conftest.dir
  2650. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2651. test -s conftest.one && test -s conftest.two &&
  2652. test -s conftest.dir/conftest.one &&
  2653. test -s conftest.dir/conftest.two
  2654. then
  2655. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2656. break 3
  2657. fi
  2658. fi
  2659. fi
  2660. done
  2661. done
  2662. ;;
  2663. esac
  2664. done
  2665. IFS=$as_save_IFS
  2666. rm -rf conftest.one conftest.two conftest.dir
  2667. fi
  2668. if test "${ac_cv_path_install+set}" = set; then
  2669. INSTALL=$ac_cv_path_install
  2670. else
  2671. # As a last resort, use the slow shell script. Don't cache a
  2672. # value for INSTALL within a source directory, because that will
  2673. # break other packages using the cache if that directory is
  2674. # removed, or if the value is a relative name.
  2675. INSTALL=$ac_install_sh
  2676. fi
  2677. fi
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2679. $as_echo "$INSTALL" >&6; }
  2680. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2681. # It thinks the first close brace ends the variable substitution.
  2682. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2683. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2684. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2686. $as_echo_n "checking whether build environment is sane... " >&6; }
  2687. # Reject unsafe characters in $srcdir or the absolute working directory
  2688. # name. Accept space and tab only in the latter.
  2689. am_lf='
  2690. '
  2691. case `pwd` in
  2692. *[\\\"\#\$\&\'\`$am_lf]*)
  2693. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2694. esac
  2695. case $srcdir in
  2696. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2697. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2698. esac
  2699. # Do 'set' in a subshell so we don't clobber the current shell's
  2700. # arguments. Must try -L first in case configure is actually a
  2701. # symlink; some systems play weird games with the mod time of symlinks
  2702. # (eg FreeBSD returns the mod time of the symlink's containing
  2703. # directory).
  2704. if (
  2705. am_has_slept=no
  2706. for am_try in 1 2; do
  2707. echo "timestamp, slept: $am_has_slept" > conftest.file
  2708. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2709. if test "$*" = "X"; then
  2710. # -L didn't work.
  2711. set X `ls -t "$srcdir/configure" conftest.file`
  2712. fi
  2713. if test "$*" != "X $srcdir/configure conftest.file" \
  2714. && test "$*" != "X conftest.file $srcdir/configure"; then
  2715. # If neither matched, then we have a broken ls. This can happen
  2716. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2717. # broken ls alias from the environment. This has actually
  2718. # happened. Such a system could not be considered "sane".
  2719. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2720. alias in your environment" "$LINENO" 5
  2721. fi
  2722. if test "$2" = conftest.file || test $am_try -eq 2; then
  2723. break
  2724. fi
  2725. # Just in case.
  2726. sleep 1
  2727. am_has_slept=yes
  2728. done
  2729. test "$2" = conftest.file
  2730. )
  2731. then
  2732. # Ok.
  2733. :
  2734. else
  2735. as_fn_error $? "newly created file is older than distributed files!
  2736. Check your system clock" "$LINENO" 5
  2737. fi
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2739. $as_echo "yes" >&6; }
  2740. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2741. # generated files are strictly newer.
  2742. am_sleep_pid=
  2743. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2744. ( sleep 1 ) &
  2745. am_sleep_pid=$!
  2746. fi
  2747. rm -f conftest.file
  2748. test "$program_prefix" != NONE &&
  2749. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2750. # Use a double $ so make ignores it.
  2751. test "$program_suffix" != NONE &&
  2752. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2753. # Double any \ or $.
  2754. # By default was `s,x,x', remove it if useless.
  2755. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2756. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2757. # Expand $ac_aux_dir to an absolute path.
  2758. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2759. if test x"${MISSING+set}" != xset; then
  2760. case $am_aux_dir in
  2761. *\ * | *\ *)
  2762. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2763. *)
  2764. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2765. esac
  2766. fi
  2767. # Use eval to expand $SHELL
  2768. if eval "$MISSING --is-lightweight"; then
  2769. am_missing_run="$MISSING "
  2770. else
  2771. am_missing_run=
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2773. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2774. fi
  2775. if test x"${install_sh+set}" != xset; then
  2776. case $am_aux_dir in
  2777. *\ * | *\ *)
  2778. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2779. *)
  2780. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2781. esac
  2782. fi
  2783. # Installed binaries are usually stripped using 'strip' when the user
  2784. # run "make install-strip". However 'strip' might not be the right
  2785. # tool to use in cross-compilation environments, therefore Automake
  2786. # will honor the 'STRIP' environment variable to overrule this program.
  2787. if test "$cross_compiling" != no; then
  2788. if test -n "$ac_tool_prefix"; then
  2789. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2790. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2792. $as_echo_n "checking for $ac_word... " >&6; }
  2793. if ${ac_cv_prog_STRIP+:} false; then :
  2794. $as_echo_n "(cached) " >&6
  2795. else
  2796. if test -n "$STRIP"; then
  2797. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2798. else
  2799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2800. for as_dir in $PATH
  2801. do
  2802. IFS=$as_save_IFS
  2803. test -z "$as_dir" && as_dir=.
  2804. for ac_exec_ext in '' $ac_executable_extensions; do
  2805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2806. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2808. break 2
  2809. fi
  2810. done
  2811. done
  2812. IFS=$as_save_IFS
  2813. fi
  2814. fi
  2815. STRIP=$ac_cv_prog_STRIP
  2816. if test -n "$STRIP"; then
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2818. $as_echo "$STRIP" >&6; }
  2819. else
  2820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2821. $as_echo "no" >&6; }
  2822. fi
  2823. fi
  2824. if test -z "$ac_cv_prog_STRIP"; then
  2825. ac_ct_STRIP=$STRIP
  2826. # Extract the first word of "strip", so it can be a program name with args.
  2827. set dummy strip; ac_word=$2
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2829. $as_echo_n "checking for $ac_word... " >&6; }
  2830. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2831. $as_echo_n "(cached) " >&6
  2832. else
  2833. if test -n "$ac_ct_STRIP"; then
  2834. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2835. else
  2836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2837. for as_dir in $PATH
  2838. do
  2839. IFS=$as_save_IFS
  2840. test -z "$as_dir" && as_dir=.
  2841. for ac_exec_ext in '' $ac_executable_extensions; do
  2842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2843. ac_cv_prog_ac_ct_STRIP="strip"
  2844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2845. break 2
  2846. fi
  2847. done
  2848. done
  2849. IFS=$as_save_IFS
  2850. fi
  2851. fi
  2852. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2853. if test -n "$ac_ct_STRIP"; then
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2855. $as_echo "$ac_ct_STRIP" >&6; }
  2856. else
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2858. $as_echo "no" >&6; }
  2859. fi
  2860. if test "x$ac_ct_STRIP" = x; then
  2861. STRIP=":"
  2862. else
  2863. case $cross_compiling:$ac_tool_warned in
  2864. yes:)
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2867. ac_tool_warned=yes ;;
  2868. esac
  2869. STRIP=$ac_ct_STRIP
  2870. fi
  2871. else
  2872. STRIP="$ac_cv_prog_STRIP"
  2873. fi
  2874. fi
  2875. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2877. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2878. if test -z "$MKDIR_P"; then
  2879. if ${ac_cv_path_mkdir+:} false; then :
  2880. $as_echo_n "(cached) " >&6
  2881. else
  2882. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2883. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2884. do
  2885. IFS=$as_save_IFS
  2886. test -z "$as_dir" && as_dir=.
  2887. for ac_prog in mkdir gmkdir; do
  2888. for ac_exec_ext in '' $ac_executable_extensions; do
  2889. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2890. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2891. 'mkdir (GNU coreutils) '* | \
  2892. 'mkdir (coreutils) '* | \
  2893. 'mkdir (fileutils) '4.1*)
  2894. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2895. break 3;;
  2896. esac
  2897. done
  2898. done
  2899. done
  2900. IFS=$as_save_IFS
  2901. fi
  2902. test -d ./--version && rmdir ./--version
  2903. if test "${ac_cv_path_mkdir+set}" = set; then
  2904. MKDIR_P="$ac_cv_path_mkdir -p"
  2905. else
  2906. # As a last resort, use the slow shell script. Don't cache a
  2907. # value for MKDIR_P within a source directory, because that will
  2908. # break other packages using the cache if that directory is
  2909. # removed, or if the value is a relative name.
  2910. MKDIR_P="$ac_install_sh -d"
  2911. fi
  2912. fi
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2914. $as_echo "$MKDIR_P" >&6; }
  2915. for ac_prog in gawk mawk nawk awk
  2916. do
  2917. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2918. set dummy $ac_prog; ac_word=$2
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2920. $as_echo_n "checking for $ac_word... " >&6; }
  2921. if ${ac_cv_prog_AWK+:} false; then :
  2922. $as_echo_n "(cached) " >&6
  2923. else
  2924. if test -n "$AWK"; then
  2925. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2926. else
  2927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2928. for as_dir in $PATH
  2929. do
  2930. IFS=$as_save_IFS
  2931. test -z "$as_dir" && as_dir=.
  2932. for ac_exec_ext in '' $ac_executable_extensions; do
  2933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2934. ac_cv_prog_AWK="$ac_prog"
  2935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2936. break 2
  2937. fi
  2938. done
  2939. done
  2940. IFS=$as_save_IFS
  2941. fi
  2942. fi
  2943. AWK=$ac_cv_prog_AWK
  2944. if test -n "$AWK"; then
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2946. $as_echo "$AWK" >&6; }
  2947. else
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2949. $as_echo "no" >&6; }
  2950. fi
  2951. test -n "$AWK" && break
  2952. done
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2954. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2955. set x ${MAKE-make}
  2956. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2957. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2958. $as_echo_n "(cached) " >&6
  2959. else
  2960. cat >conftest.make <<\_ACEOF
  2961. SHELL = /bin/sh
  2962. all:
  2963. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2964. _ACEOF
  2965. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2966. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2967. *@@@%%%=?*=@@@%%%*)
  2968. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2969. *)
  2970. eval ac_cv_prog_make_${ac_make}_set=no;;
  2971. esac
  2972. rm -f conftest.make
  2973. fi
  2974. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2976. $as_echo "yes" >&6; }
  2977. SET_MAKE=
  2978. else
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2980. $as_echo "no" >&6; }
  2981. SET_MAKE="MAKE=${MAKE-make}"
  2982. fi
  2983. rm -rf .tst 2>/dev/null
  2984. mkdir .tst 2>/dev/null
  2985. if test -d .tst; then
  2986. am__leading_dot=.
  2987. else
  2988. am__leading_dot=_
  2989. fi
  2990. rmdir .tst 2>/dev/null
  2991. # Check whether --enable-silent-rules was given.
  2992. if test "${enable_silent_rules+set}" = set; then :
  2993. enableval=$enable_silent_rules;
  2994. fi
  2995. case $enable_silent_rules in # (((
  2996. yes) AM_DEFAULT_VERBOSITY=0;;
  2997. no) AM_DEFAULT_VERBOSITY=1;;
  2998. *) AM_DEFAULT_VERBOSITY=1;;
  2999. esac
  3000. am_make=${MAKE-make}
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3002. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3003. if ${am_cv_make_support_nested_variables+:} false; then :
  3004. $as_echo_n "(cached) " >&6
  3005. else
  3006. if $as_echo 'TRUE=$(BAR$(V))
  3007. BAR0=false
  3008. BAR1=true
  3009. V=1
  3010. am__doit:
  3011. @$(TRUE)
  3012. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3013. am_cv_make_support_nested_variables=yes
  3014. else
  3015. am_cv_make_support_nested_variables=no
  3016. fi
  3017. fi
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3019. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3020. if test $am_cv_make_support_nested_variables = yes; then
  3021. AM_V='$(V)'
  3022. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3023. else
  3024. AM_V=$AM_DEFAULT_VERBOSITY
  3025. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3026. fi
  3027. AM_BACKSLASH='\'
  3028. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3029. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3030. # is not polluted with repeated "-I."
  3031. am__isrc=' -I$(srcdir)'
  3032. # test to see if srcdir already configured
  3033. if test -f $srcdir/config.status; then
  3034. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3035. fi
  3036. fi
  3037. # test whether we have cygpath
  3038. if test -z "$CYGPATH_W"; then
  3039. if (cygpath --version) >/dev/null 2>/dev/null; then
  3040. CYGPATH_W='cygpath -w'
  3041. else
  3042. CYGPATH_W=echo
  3043. fi
  3044. fi
  3045. # Define the identity of the package.
  3046. PACKAGE='dirsrv'
  3047. VERSION='1.0'
  3048. # Some tools Automake needs.
  3049. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3050. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3051. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3052. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3053. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3054. # For better backward compatibility. To be removed once Automake 1.9.x
  3055. # dies out for good. For more background, see:
  3056. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3057. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3058. mkdir_p='$(MKDIR_P)'
  3059. # We need awk for the "check" target (and possibly the TAP driver). The
  3060. # system "awk" is bad on some platforms.
  3061. # Always define AMTAR for backward compatibility. Yes, it's still used
  3062. # in the wild :-( We should find a proper way to deprecate it ...
  3063. AMTAR='$${TAR-tar}'
  3064. # We'll loop over all known methods to create a tar archive until one works.
  3065. _am_tools='gnutar pax cpio none'
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  3067. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  3068. # Go ahead even if we have the value already cached. We do so because we
  3069. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3070. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  3071. for _am_tool in $_am_tools; do
  3072. case $_am_tool in
  3073. gnutar)
  3074. for _am_tar in tar gnutar gtar; do
  3075. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3076. ($_am_tar --version) >&5 2>&5
  3077. ac_status=$?
  3078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3079. (exit $ac_status); } && break
  3080. done
  3081. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  3082. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  3083. am__untar="$_am_tar -xf -"
  3084. ;;
  3085. plaintar)
  3086. # Must skip GNU tar: if it does not support --format= it doesn't create
  3087. # ustar tarball either.
  3088. (tar --version) >/dev/null 2>&1 && continue
  3089. am__tar='tar chf - "$$tardir"'
  3090. am__tar_='tar chf - "$tardir"'
  3091. am__untar='tar xf -'
  3092. ;;
  3093. pax)
  3094. am__tar='pax -L -x pax -w "$$tardir"'
  3095. am__tar_='pax -L -x pax -w "$tardir"'
  3096. am__untar='pax -r'
  3097. ;;
  3098. cpio)
  3099. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  3100. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  3101. am__untar='cpio -i -H pax -d'
  3102. ;;
  3103. none)
  3104. am__tar=false
  3105. am__tar_=false
  3106. am__untar=false
  3107. ;;
  3108. esac
  3109. # If the value was cached, stop now. We just wanted to have am__tar
  3110. # and am__untar set.
  3111. test -n "${am_cv_prog_tar_pax}" && break
  3112. # tar/untar a dummy directory, and stop if the command works.
  3113. rm -rf conftest.dir
  3114. mkdir conftest.dir
  3115. echo GrepMe > conftest.dir/file
  3116. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3117. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3118. ac_status=$?
  3119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3120. (exit $ac_status); }
  3121. rm -rf conftest.dir
  3122. if test -s conftest.tar; then
  3123. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3124. ($am__untar <conftest.tar) >&5 2>&5
  3125. ac_status=$?
  3126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3127. (exit $ac_status); }
  3128. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3129. (cat conftest.dir/file) >&5 2>&5
  3130. ac_status=$?
  3131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3132. (exit $ac_status); }
  3133. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3134. fi
  3135. done
  3136. rm -rf conftest.dir
  3137. if ${am_cv_prog_tar_pax+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. am_cv_prog_tar_pax=$_am_tool
  3141. fi
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  3143. $as_echo "$am_cv_prog_tar_pax" >&6; }
  3144. # POSIX will say in a future version that running "rm -f" with no argument
  3145. # is OK; and we want to be able to make that assumption in our Makefile
  3146. # recipes. So use an aggressive probe to check that the usage we want is
  3147. # actually supported "in the wild" to an acceptable degree.
  3148. # See automake bug#10828.
  3149. # To make any issue more visible, cause the running configure to be aborted
  3150. # by default if the 'rm' program in use doesn't match our expectations; the
  3151. # user can still override this though.
  3152. if rm -f && rm -fr && rm -rf; then : OK; else
  3153. cat >&2 <<'END'
  3154. Oops!
  3155. Your 'rm' program seems unable to run without file operands specified
  3156. on the command line, even when the '-f' option is present. This is contrary
  3157. to the behaviour of most rm programs out there, and not conforming with
  3158. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3159. Please tell [email protected] about your system, including the value
  3160. of your $PATH and any error possibly output before this message. This
  3161. can help us improve future automake versions.
  3162. END
  3163. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3164. echo 'Configuration will proceed anyway, since you have set the' >&2
  3165. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3166. echo >&2
  3167. else
  3168. cat >&2 <<'END'
  3169. Aborting the configuration process, to ensure you take notice of the issue.
  3170. You can download and install GNU coreutils to get an 'rm' implementation
  3171. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3172. If you want to complete the configuration process using your problematic
  3173. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3174. to "yes", and re-run configure.
  3175. END
  3176. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3177. fi
  3178. fi
  3179. # define these for automake distdir
  3180. VERSION=$PACKAGE_VERSION
  3181. PACKAGE=$PACKAGE_TARNAME
  3182. cat >>confdefs.h <<_ACEOF
  3183. #define VERSION "$VERSION"
  3184. _ACEOF
  3185. cat >>confdefs.h <<_ACEOF
  3186. #define PACKAGE "$PACKAGE"
  3187. _ACEOF
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3189. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3190. # Check whether --enable-maintainer-mode was given.
  3191. if test "${enable_maintainer_mode+set}" = set; then :
  3192. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3193. else
  3194. USE_MAINTAINER_MODE=no
  3195. fi
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3197. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3198. if test $USE_MAINTAINER_MODE = yes; then
  3199. MAINTAINER_MODE_TRUE=
  3200. MAINTAINER_MODE_FALSE='#'
  3201. else
  3202. MAINTAINER_MODE_TRUE='#'
  3203. MAINTAINER_MODE_FALSE=
  3204. fi
  3205. MAINT=$MAINTAINER_MODE_TRUE
  3206. # Make sure we can run config.sub.
  3207. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3208. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3210. $as_echo_n "checking build system type... " >&6; }
  3211. if ${ac_cv_build+:} false; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. ac_build_alias=$build_alias
  3215. test "x$ac_build_alias" = x &&
  3216. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3217. test "x$ac_build_alias" = x &&
  3218. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3219. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3220. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3221. fi
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3223. $as_echo "$ac_cv_build" >&6; }
  3224. case $ac_cv_build in
  3225. *-*-*) ;;
  3226. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3227. esac
  3228. build=$ac_cv_build
  3229. ac_save_IFS=$IFS; IFS='-'
  3230. set x $ac_cv_build
  3231. shift
  3232. build_cpu=$1
  3233. build_vendor=$2
  3234. shift; shift
  3235. # Remember, the first character of IFS is used to create $*,
  3236. # except with old shells:
  3237. build_os=$*
  3238. IFS=$ac_save_IFS
  3239. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3241. $as_echo_n "checking host system type... " >&6; }
  3242. if ${ac_cv_host+:} false; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. if test "x$host_alias" = x; then
  3246. ac_cv_host=$ac_cv_build
  3247. else
  3248. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3249. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3250. fi
  3251. fi
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3253. $as_echo "$ac_cv_host" >&6; }
  3254. case $ac_cv_host in
  3255. *-*-*) ;;
  3256. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3257. esac
  3258. host=$ac_cv_host
  3259. ac_save_IFS=$IFS; IFS='-'
  3260. set x $ac_cv_host
  3261. shift
  3262. host_cpu=$1
  3263. host_vendor=$2
  3264. shift; shift
  3265. # Remember, the first character of IFS is used to create $*,
  3266. # except with old shells:
  3267. host_os=$*
  3268. IFS=$ac_save_IFS
  3269. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3270. # Checks for programs.
  3271. ac_ext=cpp
  3272. ac_cpp='$CXXCPP $CPPFLAGS'
  3273. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3274. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3275. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3276. if test -z "$CXX"; then
  3277. if test -n "$CCC"; then
  3278. CXX=$CCC
  3279. else
  3280. if test -n "$ac_tool_prefix"; then
  3281. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3282. do
  3283. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3284. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3286. $as_echo_n "checking for $ac_word... " >&6; }
  3287. if ${ac_cv_prog_CXX+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. if test -n "$CXX"; then
  3291. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3292. else
  3293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3294. for as_dir in $PATH
  3295. do
  3296. IFS=$as_save_IFS
  3297. test -z "$as_dir" && as_dir=.
  3298. for ac_exec_ext in '' $ac_executable_extensions; do
  3299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3300. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302. break 2
  3303. fi
  3304. done
  3305. done
  3306. IFS=$as_save_IFS
  3307. fi
  3308. fi
  3309. CXX=$ac_cv_prog_CXX
  3310. if test -n "$CXX"; then
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3312. $as_echo "$CXX" >&6; }
  3313. else
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3315. $as_echo "no" >&6; }
  3316. fi
  3317. test -n "$CXX" && break
  3318. done
  3319. fi
  3320. if test -z "$CXX"; then
  3321. ac_ct_CXX=$CXX
  3322. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3323. do
  3324. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3325. set dummy $ac_prog; ac_word=$2
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3327. $as_echo_n "checking for $ac_word... " >&6; }
  3328. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3329. $as_echo_n "(cached) " >&6
  3330. else
  3331. if test -n "$ac_ct_CXX"; then
  3332. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3333. else
  3334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3335. for as_dir in $PATH
  3336. do
  3337. IFS=$as_save_IFS
  3338. test -z "$as_dir" && as_dir=.
  3339. for ac_exec_ext in '' $ac_executable_extensions; do
  3340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3341. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3343. break 2
  3344. fi
  3345. done
  3346. done
  3347. IFS=$as_save_IFS
  3348. fi
  3349. fi
  3350. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3351. if test -n "$ac_ct_CXX"; then
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3353. $as_echo "$ac_ct_CXX" >&6; }
  3354. else
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3356. $as_echo "no" >&6; }
  3357. fi
  3358. test -n "$ac_ct_CXX" && break
  3359. done
  3360. if test "x$ac_ct_CXX" = x; then
  3361. CXX="g++"
  3362. else
  3363. case $cross_compiling:$ac_tool_warned in
  3364. yes:)
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3367. ac_tool_warned=yes ;;
  3368. esac
  3369. CXX=$ac_ct_CXX
  3370. fi
  3371. fi
  3372. fi
  3373. fi
  3374. # Provide some information about the compiler.
  3375. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3376. set X $ac_compile
  3377. ac_compiler=$2
  3378. for ac_option in --version -v -V -qversion; do
  3379. { { ac_try="$ac_compiler $ac_option >&5"
  3380. case "(($ac_try" in
  3381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3382. *) ac_try_echo=$ac_try;;
  3383. esac
  3384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3385. $as_echo "$ac_try_echo"; } >&5
  3386. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3387. ac_status=$?
  3388. if test -s conftest.err; then
  3389. sed '10a\
  3390. ... rest of stderr output deleted ...
  3391. 10q' conftest.err >conftest.er1
  3392. cat conftest.er1 >&5
  3393. fi
  3394. rm -f conftest.er1 conftest.err
  3395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3396. test $ac_status = 0; }
  3397. done
  3398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3399. /* end confdefs.h. */
  3400. int
  3401. main ()
  3402. {
  3403. ;
  3404. return 0;
  3405. }
  3406. _ACEOF
  3407. ac_clean_files_save=$ac_clean_files
  3408. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3409. # Try to create an executable without -o first, disregard a.out.
  3410. # It will help us diagnose broken compilers, and finding out an intuition
  3411. # of exeext.
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3413. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3414. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3415. # The possible output files:
  3416. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3417. ac_rmfiles=
  3418. for ac_file in $ac_files
  3419. do
  3420. case $ac_file in
  3421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3422. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3423. esac
  3424. done
  3425. rm -f $ac_rmfiles
  3426. if { { ac_try="$ac_link_default"
  3427. case "(($ac_try" in
  3428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3429. *) ac_try_echo=$ac_try;;
  3430. esac
  3431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3432. $as_echo "$ac_try_echo"; } >&5
  3433. (eval "$ac_link_default") 2>&5
  3434. ac_status=$?
  3435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3436. test $ac_status = 0; }; then :
  3437. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3438. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3439. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3440. # so that the user can short-circuit this test for compilers unknown to
  3441. # Autoconf.
  3442. for ac_file in $ac_files ''
  3443. do
  3444. test -f "$ac_file" || continue
  3445. case $ac_file in
  3446. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3447. ;;
  3448. [ab].out )
  3449. # We found the default executable, but exeext='' is most
  3450. # certainly right.
  3451. break;;
  3452. *.* )
  3453. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3454. then :; else
  3455. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3456. fi
  3457. # We set ac_cv_exeext here because the later test for it is not
  3458. # safe: cross compilers may not add the suffix if given an `-o'
  3459. # argument, so we may need to know it at that point already.
  3460. # Even if this section looks crufty: it has the advantage of
  3461. # actually working.
  3462. break;;
  3463. * )
  3464. break;;
  3465. esac
  3466. done
  3467. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3468. else
  3469. ac_file=''
  3470. fi
  3471. if test -z "$ac_file"; then :
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3473. $as_echo "no" >&6; }
  3474. $as_echo "$as_me: failed program was:" >&5
  3475. sed 's/^/| /' conftest.$ac_ext >&5
  3476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3478. as_fn_error 77 "C++ compiler cannot create executables
  3479. See \`config.log' for more details" "$LINENO" 5; }
  3480. else
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3482. $as_echo "yes" >&6; }
  3483. fi
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3485. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3487. $as_echo "$ac_file" >&6; }
  3488. ac_exeext=$ac_cv_exeext
  3489. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3490. ac_clean_files=$ac_clean_files_save
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3492. $as_echo_n "checking for suffix of executables... " >&6; }
  3493. if { { ac_try="$ac_link"
  3494. case "(($ac_try" in
  3495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3496. *) ac_try_echo=$ac_try;;
  3497. esac
  3498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3499. $as_echo "$ac_try_echo"; } >&5
  3500. (eval "$ac_link") 2>&5
  3501. ac_status=$?
  3502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3503. test $ac_status = 0; }; then :
  3504. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3505. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3506. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3507. # `rm'.
  3508. for ac_file in conftest.exe conftest conftest.*; do
  3509. test -f "$ac_file" || continue
  3510. case $ac_file in
  3511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3512. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3513. break;;
  3514. * ) break;;
  3515. esac
  3516. done
  3517. else
  3518. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3520. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3521. See \`config.log' for more details" "$LINENO" 5; }
  3522. fi
  3523. rm -f conftest conftest$ac_cv_exeext
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3525. $as_echo "$ac_cv_exeext" >&6; }
  3526. rm -f conftest.$ac_ext
  3527. EXEEXT=$ac_cv_exeext
  3528. ac_exeext=$EXEEXT
  3529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3530. /* end confdefs.h. */
  3531. #include <stdio.h>
  3532. int
  3533. main ()
  3534. {
  3535. FILE *f = fopen ("conftest.out", "w");
  3536. return ferror (f) || fclose (f) != 0;
  3537. ;
  3538. return 0;
  3539. }
  3540. _ACEOF
  3541. ac_clean_files="$ac_clean_files conftest.out"
  3542. # Check that the compiler produces executables we can run. If not, either
  3543. # the compiler is broken, or we cross compile.
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3545. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3546. if test "$cross_compiling" != yes; then
  3547. { { ac_try="$ac_link"
  3548. case "(($ac_try" in
  3549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3550. *) ac_try_echo=$ac_try;;
  3551. esac
  3552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3553. $as_echo "$ac_try_echo"; } >&5
  3554. (eval "$ac_link") 2>&5
  3555. ac_status=$?
  3556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3557. test $ac_status = 0; }
  3558. if { ac_try='./conftest$ac_cv_exeext'
  3559. { { case "(($ac_try" in
  3560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3561. *) ac_try_echo=$ac_try;;
  3562. esac
  3563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3564. $as_echo "$ac_try_echo"; } >&5
  3565. (eval "$ac_try") 2>&5
  3566. ac_status=$?
  3567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3568. test $ac_status = 0; }; }; then
  3569. cross_compiling=no
  3570. else
  3571. if test "$cross_compiling" = maybe; then
  3572. cross_compiling=yes
  3573. else
  3574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3576. as_fn_error $? "cannot run C++ compiled programs.
  3577. If you meant to cross compile, use \`--host'.
  3578. See \`config.log' for more details" "$LINENO" 5; }
  3579. fi
  3580. fi
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3583. $as_echo "$cross_compiling" >&6; }
  3584. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3585. ac_clean_files=$ac_clean_files_save
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3587. $as_echo_n "checking for suffix of object files... " >&6; }
  3588. if ${ac_cv_objext+:} false; then :
  3589. $as_echo_n "(cached) " >&6
  3590. else
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. int
  3594. main ()
  3595. {
  3596. ;
  3597. return 0;
  3598. }
  3599. _ACEOF
  3600. rm -f conftest.o conftest.obj
  3601. if { { ac_try="$ac_compile"
  3602. case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo"; } >&5
  3608. (eval "$ac_compile") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3611. test $ac_status = 0; }; then :
  3612. for ac_file in conftest.o conftest.obj conftest.*; do
  3613. test -f "$ac_file" || continue;
  3614. case $ac_file in
  3615. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3616. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3617. break;;
  3618. esac
  3619. done
  3620. else
  3621. $as_echo "$as_me: failed program was:" >&5
  3622. sed 's/^/| /' conftest.$ac_ext >&5
  3623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3625. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3626. See \`config.log' for more details" "$LINENO" 5; }
  3627. fi
  3628. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3629. fi
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3631. $as_echo "$ac_cv_objext" >&6; }
  3632. OBJEXT=$ac_cv_objext
  3633. ac_objext=$OBJEXT
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3635. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3636. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3640. /* end confdefs.h. */
  3641. int
  3642. main ()
  3643. {
  3644. #ifndef __GNUC__
  3645. choke me
  3646. #endif
  3647. ;
  3648. return 0;
  3649. }
  3650. _ACEOF
  3651. if ac_fn_cxx_try_compile "$LINENO"; then :
  3652. ac_compiler_gnu=yes
  3653. else
  3654. ac_compiler_gnu=no
  3655. fi
  3656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3657. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3660. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3661. if test $ac_compiler_gnu = yes; then
  3662. GXX=yes
  3663. else
  3664. GXX=
  3665. fi
  3666. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3667. ac_save_CXXFLAGS=$CXXFLAGS
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3669. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3670. if ${ac_cv_prog_cxx_g+:} false; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3674. ac_cxx_werror_flag=yes
  3675. ac_cv_prog_cxx_g=no
  3676. CXXFLAGS="-g"
  3677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3678. /* end confdefs.h. */
  3679. int
  3680. main ()
  3681. {
  3682. ;
  3683. return 0;
  3684. }
  3685. _ACEOF
  3686. if ac_fn_cxx_try_compile "$LINENO"; then :
  3687. ac_cv_prog_cxx_g=yes
  3688. else
  3689. CXXFLAGS=""
  3690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3691. /* end confdefs.h. */
  3692. int
  3693. main ()
  3694. {
  3695. ;
  3696. return 0;
  3697. }
  3698. _ACEOF
  3699. if ac_fn_cxx_try_compile "$LINENO"; then :
  3700. else
  3701. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3702. CXXFLAGS="-g"
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. int
  3706. main ()
  3707. {
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. if ac_fn_cxx_try_compile "$LINENO"; then :
  3713. ac_cv_prog_cxx_g=yes
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. fi
  3717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3718. fi
  3719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3720. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3721. fi
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3723. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3724. if test "$ac_test_CXXFLAGS" = set; then
  3725. CXXFLAGS=$ac_save_CXXFLAGS
  3726. elif test $ac_cv_prog_cxx_g = yes; then
  3727. if test "$GXX" = yes; then
  3728. CXXFLAGS="-g -O2"
  3729. else
  3730. CXXFLAGS="-g"
  3731. fi
  3732. else
  3733. if test "$GXX" = yes; then
  3734. CXXFLAGS="-O2"
  3735. else
  3736. CXXFLAGS=
  3737. fi
  3738. fi
  3739. ac_ext=c
  3740. ac_cpp='$CPP $CPPFLAGS'
  3741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3744. DEPDIR="${am__leading_dot}deps"
  3745. ac_config_commands="$ac_config_commands depfiles"
  3746. am_make=${MAKE-make}
  3747. cat > confinc << 'END'
  3748. am__doit:
  3749. @echo this is the am__doit target
  3750. .PHONY: am__doit
  3751. END
  3752. # If we don't find an include directive, just comment out the code.
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3754. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3755. am__include="#"
  3756. am__quote=
  3757. _am_result=none
  3758. # First try GNU make style include.
  3759. echo "include confinc" > confmf
  3760. # Ignore all kinds of additional output from 'make'.
  3761. case `$am_make -s -f confmf 2> /dev/null` in #(
  3762. *the\ am__doit\ target*)
  3763. am__include=include
  3764. am__quote=
  3765. _am_result=GNU
  3766. ;;
  3767. esac
  3768. # Now try BSD make style include.
  3769. if test "$am__include" = "#"; then
  3770. echo '.include "confinc"' > confmf
  3771. case `$am_make -s -f confmf 2> /dev/null` in #(
  3772. *the\ am__doit\ target*)
  3773. am__include=.include
  3774. am__quote="\""
  3775. _am_result=BSD
  3776. ;;
  3777. esac
  3778. fi
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3780. $as_echo "$_am_result" >&6; }
  3781. rm -f confinc confmf
  3782. # Check whether --enable-dependency-tracking was given.
  3783. if test "${enable_dependency_tracking+set}" = set; then :
  3784. enableval=$enable_dependency_tracking;
  3785. fi
  3786. if test "x$enable_dependency_tracking" != xno; then
  3787. am_depcomp="$ac_aux_dir/depcomp"
  3788. AMDEPBACKSLASH='\'
  3789. am__nodep='_no'
  3790. fi
  3791. if test "x$enable_dependency_tracking" != xno; then
  3792. AMDEP_TRUE=
  3793. AMDEP_FALSE='#'
  3794. else
  3795. AMDEP_TRUE='#'
  3796. AMDEP_FALSE=
  3797. fi
  3798. depcc="$CXX" am_compiler_list=
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3800. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3801. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3802. $as_echo_n "(cached) " >&6
  3803. else
  3804. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3805. # We make a subdir and do the tests there. Otherwise we can end up
  3806. # making bogus files that we don't know about and never remove. For
  3807. # instance it was reported that on HP-UX the gcc test will end up
  3808. # making a dummy file named 'D' -- because '-MD' means "put the output
  3809. # in D".
  3810. rm -rf conftest.dir
  3811. mkdir conftest.dir
  3812. # Copy depcomp to subdir because otherwise we won't find it if we're
  3813. # using a relative directory.
  3814. cp "$am_depcomp" conftest.dir
  3815. cd conftest.dir
  3816. # We will build objects and dependencies in a subdirectory because
  3817. # it helps to detect inapplicable dependency modes. For instance
  3818. # both Tru64's cc and ICC support -MD to output dependencies as a
  3819. # side effect of compilation, but ICC will put the dependencies in
  3820. # the current directory while Tru64 will put them in the object
  3821. # directory.
  3822. mkdir sub
  3823. am_cv_CXX_dependencies_compiler_type=none
  3824. if test "$am_compiler_list" = ""; then
  3825. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3826. fi
  3827. am__universal=false
  3828. case " $depcc " in #(
  3829. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3830. esac
  3831. for depmode in $am_compiler_list; do
  3832. # Setup a source with many dependencies, because some compilers
  3833. # like to wrap large dependency lists on column 80 (with \), and
  3834. # we should not choose a depcomp mode which is confused by this.
  3835. #
  3836. # We need to recreate these files for each test, as the compiler may
  3837. # overwrite some of them when testing with obscure command lines.
  3838. # This happens at least with the AIX C compiler.
  3839. : > sub/conftest.c
  3840. for i in 1 2 3 4 5 6; do
  3841. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3842. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3843. # Solaris 10 /bin/sh.
  3844. echo '/* dummy */' > sub/conftst$i.h
  3845. done
  3846. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3847. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3848. # mode. It turns out that the SunPro C++ compiler does not properly
  3849. # handle '-M -o', and we need to detect this. Also, some Intel
  3850. # versions had trouble with output in subdirs.
  3851. am__obj=sub/conftest.${OBJEXT-o}
  3852. am__minus_obj="-o $am__obj"
  3853. case $depmode in
  3854. gcc)
  3855. # This depmode causes a compiler race in universal mode.
  3856. test "$am__universal" = false || continue
  3857. ;;
  3858. nosideeffect)
  3859. # After this tag, mechanisms are not by side-effect, so they'll
  3860. # only be used when explicitly requested.
  3861. if test "x$enable_dependency_tracking" = xyes; then
  3862. continue
  3863. else
  3864. break
  3865. fi
  3866. ;;
  3867. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3868. # This compiler won't grok '-c -o', but also, the minuso test has
  3869. # not run yet. These depmodes are late enough in the game, and
  3870. # so weak that their functioning should not be impacted.
  3871. am__obj=conftest.${OBJEXT-o}
  3872. am__minus_obj=
  3873. ;;
  3874. none) break ;;
  3875. esac
  3876. if depmode=$depmode \
  3877. source=sub/conftest.c object=$am__obj \
  3878. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3879. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3880. >/dev/null 2>conftest.err &&
  3881. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3882. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3883. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3884. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3885. # icc doesn't choke on unknown options, it will just issue warnings
  3886. # or remarks (even with -Werror). So we grep stderr for any message
  3887. # that says an option was ignored or not supported.
  3888. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3889. # icc: Command line warning: ignoring option '-M'; no argument required
  3890. # The diagnosis changed in icc 8.0:
  3891. # icc: Command line remark: option '-MP' not supported
  3892. if (grep 'ignoring option' conftest.err ||
  3893. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3894. am_cv_CXX_dependencies_compiler_type=$depmode
  3895. break
  3896. fi
  3897. fi
  3898. done
  3899. cd ..
  3900. rm -rf conftest.dir
  3901. else
  3902. am_cv_CXX_dependencies_compiler_type=none
  3903. fi
  3904. fi
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3906. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3907. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3908. if
  3909. test "x$enable_dependency_tracking" != xno \
  3910. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3911. am__fastdepCXX_TRUE=
  3912. am__fastdepCXX_FALSE='#'
  3913. else
  3914. am__fastdepCXX_TRUE='#'
  3915. am__fastdepCXX_FALSE=
  3916. fi
  3917. ac_ext=c
  3918. ac_cpp='$CPP $CPPFLAGS'
  3919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3922. if test -n "$ac_tool_prefix"; then
  3923. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3924. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3926. $as_echo_n "checking for $ac_word... " >&6; }
  3927. if ${ac_cv_prog_CC+:} false; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. if test -n "$CC"; then
  3931. ac_cv_prog_CC="$CC" # Let the user override the test.
  3932. else
  3933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3934. for as_dir in $PATH
  3935. do
  3936. IFS=$as_save_IFS
  3937. test -z "$as_dir" && as_dir=.
  3938. for ac_exec_ext in '' $ac_executable_extensions; do
  3939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3940. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3942. break 2
  3943. fi
  3944. done
  3945. done
  3946. IFS=$as_save_IFS
  3947. fi
  3948. fi
  3949. CC=$ac_cv_prog_CC
  3950. if test -n "$CC"; then
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3952. $as_echo "$CC" >&6; }
  3953. else
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3955. $as_echo "no" >&6; }
  3956. fi
  3957. fi
  3958. if test -z "$ac_cv_prog_CC"; then
  3959. ac_ct_CC=$CC
  3960. # Extract the first word of "gcc", so it can be a program name with args.
  3961. set dummy gcc; ac_word=$2
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3963. $as_echo_n "checking for $ac_word... " >&6; }
  3964. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. if test -n "$ac_ct_CC"; then
  3968. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3977. ac_cv_prog_ac_ct_CC="gcc"
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. break 2
  3980. fi
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. fi
  3985. fi
  3986. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3987. if test -n "$ac_ct_CC"; then
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3989. $as_echo "$ac_ct_CC" >&6; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3992. $as_echo "no" >&6; }
  3993. fi
  3994. if test "x$ac_ct_CC" = x; then
  3995. CC=""
  3996. else
  3997. case $cross_compiling:$ac_tool_warned in
  3998. yes:)
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4001. ac_tool_warned=yes ;;
  4002. esac
  4003. CC=$ac_ct_CC
  4004. fi
  4005. else
  4006. CC="$ac_cv_prog_CC"
  4007. fi
  4008. if test -z "$CC"; then
  4009. if test -n "$ac_tool_prefix"; then
  4010. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4011. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4013. $as_echo_n "checking for $ac_word... " >&6; }
  4014. if ${ac_cv_prog_CC+:} false; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. if test -n "$CC"; then
  4018. ac_cv_prog_CC="$CC" # Let the user override the test.
  4019. else
  4020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4021. for as_dir in $PATH
  4022. do
  4023. IFS=$as_save_IFS
  4024. test -z "$as_dir" && as_dir=.
  4025. for ac_exec_ext in '' $ac_executable_extensions; do
  4026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4027. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4029. break 2
  4030. fi
  4031. done
  4032. done
  4033. IFS=$as_save_IFS
  4034. fi
  4035. fi
  4036. CC=$ac_cv_prog_CC
  4037. if test -n "$CC"; then
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4039. $as_echo "$CC" >&6; }
  4040. else
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4042. $as_echo "no" >&6; }
  4043. fi
  4044. fi
  4045. fi
  4046. if test -z "$CC"; then
  4047. # Extract the first word of "cc", so it can be a program name with args.
  4048. set dummy cc; ac_word=$2
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4050. $as_echo_n "checking for $ac_word... " >&6; }
  4051. if ${ac_cv_prog_CC+:} false; then :
  4052. $as_echo_n "(cached) " >&6
  4053. else
  4054. if test -n "$CC"; then
  4055. ac_cv_prog_CC="$CC" # Let the user override the test.
  4056. else
  4057. ac_prog_rejected=no
  4058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4059. for as_dir in $PATH
  4060. do
  4061. IFS=$as_save_IFS
  4062. test -z "$as_dir" && as_dir=.
  4063. for ac_exec_ext in '' $ac_executable_extensions; do
  4064. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4065. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4066. ac_prog_rejected=yes
  4067. continue
  4068. fi
  4069. ac_cv_prog_CC="cc"
  4070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4071. break 2
  4072. fi
  4073. done
  4074. done
  4075. IFS=$as_save_IFS
  4076. if test $ac_prog_rejected = yes; then
  4077. # We found a bogon in the path, so make sure we never use it.
  4078. set dummy $ac_cv_prog_CC
  4079. shift
  4080. if test $# != 0; then
  4081. # We chose a different compiler from the bogus one.
  4082. # However, it has the same basename, so the bogon will be chosen
  4083. # first if we set CC to just the basename; use the full file name.
  4084. shift
  4085. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4086. fi
  4087. fi
  4088. fi
  4089. fi
  4090. CC=$ac_cv_prog_CC
  4091. if test -n "$CC"; then
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4093. $as_echo "$CC" >&6; }
  4094. else
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4096. $as_echo "no" >&6; }
  4097. fi
  4098. fi
  4099. if test -z "$CC"; then
  4100. if test -n "$ac_tool_prefix"; then
  4101. for ac_prog in cl.exe
  4102. do
  4103. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4104. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4106. $as_echo_n "checking for $ac_word... " >&6; }
  4107. if ${ac_cv_prog_CC+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. if test -n "$CC"; then
  4111. ac_cv_prog_CC="$CC" # Let the user override the test.
  4112. else
  4113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4114. for as_dir in $PATH
  4115. do
  4116. IFS=$as_save_IFS
  4117. test -z "$as_dir" && as_dir=.
  4118. for ac_exec_ext in '' $ac_executable_extensions; do
  4119. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4120. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4122. break 2
  4123. fi
  4124. done
  4125. done
  4126. IFS=$as_save_IFS
  4127. fi
  4128. fi
  4129. CC=$ac_cv_prog_CC
  4130. if test -n "$CC"; then
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4132. $as_echo "$CC" >&6; }
  4133. else
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4135. $as_echo "no" >&6; }
  4136. fi
  4137. test -n "$CC" && break
  4138. done
  4139. fi
  4140. if test -z "$CC"; then
  4141. ac_ct_CC=$CC
  4142. for ac_prog in cl.exe
  4143. do
  4144. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4145. set dummy $ac_prog; ac_word=$2
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4147. $as_echo_n "checking for $ac_word... " >&6; }
  4148. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. if test -n "$ac_ct_CC"; then
  4152. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4153. else
  4154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4155. for as_dir in $PATH
  4156. do
  4157. IFS=$as_save_IFS
  4158. test -z "$as_dir" && as_dir=.
  4159. for ac_exec_ext in '' $ac_executable_extensions; do
  4160. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4161. ac_cv_prog_ac_ct_CC="$ac_prog"
  4162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4163. break 2
  4164. fi
  4165. done
  4166. done
  4167. IFS=$as_save_IFS
  4168. fi
  4169. fi
  4170. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4171. if test -n "$ac_ct_CC"; then
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4173. $as_echo "$ac_ct_CC" >&6; }
  4174. else
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4176. $as_echo "no" >&6; }
  4177. fi
  4178. test -n "$ac_ct_CC" && break
  4179. done
  4180. if test "x$ac_ct_CC" = x; then
  4181. CC=""
  4182. else
  4183. case $cross_compiling:$ac_tool_warned in
  4184. yes:)
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4187. ac_tool_warned=yes ;;
  4188. esac
  4189. CC=$ac_ct_CC
  4190. fi
  4191. fi
  4192. fi
  4193. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4194. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4195. as_fn_error $? "no acceptable C compiler found in \$PATH
  4196. See \`config.log' for more details" "$LINENO" 5; }
  4197. # Provide some information about the compiler.
  4198. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4199. set X $ac_compile
  4200. ac_compiler=$2
  4201. for ac_option in --version -v -V -qversion; do
  4202. { { ac_try="$ac_compiler $ac_option >&5"
  4203. case "(($ac_try" in
  4204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4205. *) ac_try_echo=$ac_try;;
  4206. esac
  4207. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4208. $as_echo "$ac_try_echo"; } >&5
  4209. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4210. ac_status=$?
  4211. if test -s conftest.err; then
  4212. sed '10a\
  4213. ... rest of stderr output deleted ...
  4214. 10q' conftest.err >conftest.er1
  4215. cat conftest.er1 >&5
  4216. fi
  4217. rm -f conftest.er1 conftest.err
  4218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4219. test $ac_status = 0; }
  4220. done
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4222. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4223. if ${ac_cv_c_compiler_gnu+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4227. /* end confdefs.h. */
  4228. int
  4229. main ()
  4230. {
  4231. #ifndef __GNUC__
  4232. choke me
  4233. #endif
  4234. ;
  4235. return 0;
  4236. }
  4237. _ACEOF
  4238. if ac_fn_c_try_compile "$LINENO"; then :
  4239. ac_compiler_gnu=yes
  4240. else
  4241. ac_compiler_gnu=no
  4242. fi
  4243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4244. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4245. fi
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4247. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4248. if test $ac_compiler_gnu = yes; then
  4249. GCC=yes
  4250. else
  4251. GCC=
  4252. fi
  4253. ac_test_CFLAGS=${CFLAGS+set}
  4254. ac_save_CFLAGS=$CFLAGS
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4256. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4257. if ${ac_cv_prog_cc_g+:} false; then :
  4258. $as_echo_n "(cached) " >&6
  4259. else
  4260. ac_save_c_werror_flag=$ac_c_werror_flag
  4261. ac_c_werror_flag=yes
  4262. ac_cv_prog_cc_g=no
  4263. CFLAGS="-g"
  4264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4265. /* end confdefs.h. */
  4266. int
  4267. main ()
  4268. {
  4269. ;
  4270. return 0;
  4271. }
  4272. _ACEOF
  4273. if ac_fn_c_try_compile "$LINENO"; then :
  4274. ac_cv_prog_cc_g=yes
  4275. else
  4276. CFLAGS=""
  4277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4278. /* end confdefs.h. */
  4279. int
  4280. main ()
  4281. {
  4282. ;
  4283. return 0;
  4284. }
  4285. _ACEOF
  4286. if ac_fn_c_try_compile "$LINENO"; then :
  4287. else
  4288. ac_c_werror_flag=$ac_save_c_werror_flag
  4289. CFLAGS="-g"
  4290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4291. /* end confdefs.h. */
  4292. int
  4293. main ()
  4294. {
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. if ac_fn_c_try_compile "$LINENO"; then :
  4300. ac_cv_prog_cc_g=yes
  4301. fi
  4302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4303. fi
  4304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4305. fi
  4306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4307. ac_c_werror_flag=$ac_save_c_werror_flag
  4308. fi
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4310. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4311. if test "$ac_test_CFLAGS" = set; then
  4312. CFLAGS=$ac_save_CFLAGS
  4313. elif test $ac_cv_prog_cc_g = yes; then
  4314. if test "$GCC" = yes; then
  4315. CFLAGS="-g -O2"
  4316. else
  4317. CFLAGS="-g"
  4318. fi
  4319. else
  4320. if test "$GCC" = yes; then
  4321. CFLAGS="-O2"
  4322. else
  4323. CFLAGS=
  4324. fi
  4325. fi
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4327. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4328. if ${ac_cv_prog_cc_c89+:} false; then :
  4329. $as_echo_n "(cached) " >&6
  4330. else
  4331. ac_cv_prog_cc_c89=no
  4332. ac_save_CC=$CC
  4333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4334. /* end confdefs.h. */
  4335. #include <stdarg.h>
  4336. #include <stdio.h>
  4337. struct stat;
  4338. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4339. struct buf { int x; };
  4340. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4341. static char *e (p, i)
  4342. char **p;
  4343. int i;
  4344. {
  4345. return p[i];
  4346. }
  4347. static char *f (char * (*g) (char **, int), char **p, ...)
  4348. {
  4349. char *s;
  4350. va_list v;
  4351. va_start (v,p);
  4352. s = g (p, va_arg (v,int));
  4353. va_end (v);
  4354. return s;
  4355. }
  4356. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4357. function prototypes and stuff, but not '\xHH' hex character constants.
  4358. These don't provoke an error unfortunately, instead are silently treated
  4359. as 'x'. The following induces an error, until -std is added to get
  4360. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4361. array size at least. It's necessary to write '\x00'==0 to get something
  4362. that's true only with -std. */
  4363. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4364. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4365. inside strings and character constants. */
  4366. #define FOO(x) 'x'
  4367. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4368. int test (int i, double x);
  4369. struct s1 {int (*f) (int a);};
  4370. struct s2 {int (*f) (double a);};
  4371. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4372. int argc;
  4373. char **argv;
  4374. int
  4375. main ()
  4376. {
  4377. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4378. ;
  4379. return 0;
  4380. }
  4381. _ACEOF
  4382. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4383. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4384. do
  4385. CC="$ac_save_CC $ac_arg"
  4386. if ac_fn_c_try_compile "$LINENO"; then :
  4387. ac_cv_prog_cc_c89=$ac_arg
  4388. fi
  4389. rm -f core conftest.err conftest.$ac_objext
  4390. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4391. done
  4392. rm -f conftest.$ac_ext
  4393. CC=$ac_save_CC
  4394. fi
  4395. # AC_CACHE_VAL
  4396. case "x$ac_cv_prog_cc_c89" in
  4397. x)
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4399. $as_echo "none needed" >&6; } ;;
  4400. xno)
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4402. $as_echo "unsupported" >&6; } ;;
  4403. *)
  4404. CC="$CC $ac_cv_prog_cc_c89"
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4406. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4407. esac
  4408. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4409. fi
  4410. ac_ext=c
  4411. ac_cpp='$CPP $CPPFLAGS'
  4412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4415. ac_ext=c
  4416. ac_cpp='$CPP $CPPFLAGS'
  4417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4421. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4422. if ${am_cv_prog_cc_c_o+:} false; then :
  4423. $as_echo_n "(cached) " >&6
  4424. else
  4425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4426. /* end confdefs.h. */
  4427. int
  4428. main ()
  4429. {
  4430. ;
  4431. return 0;
  4432. }
  4433. _ACEOF
  4434. # Make sure it works both with $CC and with simple cc.
  4435. # Following AC_PROG_CC_C_O, we do the test twice because some
  4436. # compilers refuse to overwrite an existing .o file with -o,
  4437. # though they will create one.
  4438. am_cv_prog_cc_c_o=yes
  4439. for am_i in 1 2; do
  4440. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4441. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4442. ac_status=$?
  4443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4444. (exit $ac_status); } \
  4445. && test -f conftest2.$ac_objext; then
  4446. : OK
  4447. else
  4448. am_cv_prog_cc_c_o=no
  4449. break
  4450. fi
  4451. done
  4452. rm -f core conftest*
  4453. unset am_i
  4454. fi
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4456. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4457. if test "$am_cv_prog_cc_c_o" != yes; then
  4458. # Losing compiler, so override with the script.
  4459. # FIXME: It is wrong to rewrite CC.
  4460. # But if we don't then we get into trouble of one sort or another.
  4461. # A longer-term fix would be to have automake use am__CC in this case,
  4462. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4463. CC="$am_aux_dir/compile $CC"
  4464. fi
  4465. ac_ext=c
  4466. ac_cpp='$CPP $CPPFLAGS'
  4467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4470. depcc="$CC" am_compiler_list=
  4471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4472. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4473. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4477. # We make a subdir and do the tests there. Otherwise we can end up
  4478. # making bogus files that we don't know about and never remove. For
  4479. # instance it was reported that on HP-UX the gcc test will end up
  4480. # making a dummy file named 'D' -- because '-MD' means "put the output
  4481. # in D".
  4482. rm -rf conftest.dir
  4483. mkdir conftest.dir
  4484. # Copy depcomp to subdir because otherwise we won't find it if we're
  4485. # using a relative directory.
  4486. cp "$am_depcomp" conftest.dir
  4487. cd conftest.dir
  4488. # We will build objects and dependencies in a subdirectory because
  4489. # it helps to detect inapplicable dependency modes. For instance
  4490. # both Tru64's cc and ICC support -MD to output dependencies as a
  4491. # side effect of compilation, but ICC will put the dependencies in
  4492. # the current directory while Tru64 will put them in the object
  4493. # directory.
  4494. mkdir sub
  4495. am_cv_CC_dependencies_compiler_type=none
  4496. if test "$am_compiler_list" = ""; then
  4497. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4498. fi
  4499. am__universal=false
  4500. case " $depcc " in #(
  4501. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4502. esac
  4503. for depmode in $am_compiler_list; do
  4504. # Setup a source with many dependencies, because some compilers
  4505. # like to wrap large dependency lists on column 80 (with \), and
  4506. # we should not choose a depcomp mode which is confused by this.
  4507. #
  4508. # We need to recreate these files for each test, as the compiler may
  4509. # overwrite some of them when testing with obscure command lines.
  4510. # This happens at least with the AIX C compiler.
  4511. : > sub/conftest.c
  4512. for i in 1 2 3 4 5 6; do
  4513. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4514. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4515. # Solaris 10 /bin/sh.
  4516. echo '/* dummy */' > sub/conftst$i.h
  4517. done
  4518. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4519. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4520. # mode. It turns out that the SunPro C++ compiler does not properly
  4521. # handle '-M -o', and we need to detect this. Also, some Intel
  4522. # versions had trouble with output in subdirs.
  4523. am__obj=sub/conftest.${OBJEXT-o}
  4524. am__minus_obj="-o $am__obj"
  4525. case $depmode in
  4526. gcc)
  4527. # This depmode causes a compiler race in universal mode.
  4528. test "$am__universal" = false || continue
  4529. ;;
  4530. nosideeffect)
  4531. # After this tag, mechanisms are not by side-effect, so they'll
  4532. # only be used when explicitly requested.
  4533. if test "x$enable_dependency_tracking" = xyes; then
  4534. continue
  4535. else
  4536. break
  4537. fi
  4538. ;;
  4539. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4540. # This compiler won't grok '-c -o', but also, the minuso test has
  4541. # not run yet. These depmodes are late enough in the game, and
  4542. # so weak that their functioning should not be impacted.
  4543. am__obj=conftest.${OBJEXT-o}
  4544. am__minus_obj=
  4545. ;;
  4546. none) break ;;
  4547. esac
  4548. if depmode=$depmode \
  4549. source=sub/conftest.c object=$am__obj \
  4550. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4551. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4552. >/dev/null 2>conftest.err &&
  4553. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4554. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4555. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4556. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4557. # icc doesn't choke on unknown options, it will just issue warnings
  4558. # or remarks (even with -Werror). So we grep stderr for any message
  4559. # that says an option was ignored or not supported.
  4560. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4561. # icc: Command line warning: ignoring option '-M'; no argument required
  4562. # The diagnosis changed in icc 8.0:
  4563. # icc: Command line remark: option '-MP' not supported
  4564. if (grep 'ignoring option' conftest.err ||
  4565. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4566. am_cv_CC_dependencies_compiler_type=$depmode
  4567. break
  4568. fi
  4569. fi
  4570. done
  4571. cd ..
  4572. rm -rf conftest.dir
  4573. else
  4574. am_cv_CC_dependencies_compiler_type=none
  4575. fi
  4576. fi
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4578. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4579. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4580. if
  4581. test "x$enable_dependency_tracking" != xno \
  4582. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4583. am__fastdepCC_TRUE=
  4584. am__fastdepCC_FALSE='#'
  4585. else
  4586. am__fastdepCC_TRUE='#'
  4587. am__fastdepCC_FALSE=
  4588. fi
  4589. # By default we simply use the C compiler to build assembly code.
  4590. test "${CCAS+set}" = set || CCAS=$CC
  4591. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4592. depcc="$CCAS" am_compiler_list=
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4594. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4595. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4596. $as_echo_n "(cached) " >&6
  4597. else
  4598. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4599. # We make a subdir and do the tests there. Otherwise we can end up
  4600. # making bogus files that we don't know about and never remove. For
  4601. # instance it was reported that on HP-UX the gcc test will end up
  4602. # making a dummy file named 'D' -- because '-MD' means "put the output
  4603. # in D".
  4604. rm -rf conftest.dir
  4605. mkdir conftest.dir
  4606. # Copy depcomp to subdir because otherwise we won't find it if we're
  4607. # using a relative directory.
  4608. cp "$am_depcomp" conftest.dir
  4609. cd conftest.dir
  4610. # We will build objects and dependencies in a subdirectory because
  4611. # it helps to detect inapplicable dependency modes. For instance
  4612. # both Tru64's cc and ICC support -MD to output dependencies as a
  4613. # side effect of compilation, but ICC will put the dependencies in
  4614. # the current directory while Tru64 will put them in the object
  4615. # directory.
  4616. mkdir sub
  4617. am_cv_CCAS_dependencies_compiler_type=none
  4618. if test "$am_compiler_list" = ""; then
  4619. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4620. fi
  4621. am__universal=false
  4622. for depmode in $am_compiler_list; do
  4623. # Setup a source with many dependencies, because some compilers
  4624. # like to wrap large dependency lists on column 80 (with \), and
  4625. # we should not choose a depcomp mode which is confused by this.
  4626. #
  4627. # We need to recreate these files for each test, as the compiler may
  4628. # overwrite some of them when testing with obscure command lines.
  4629. # This happens at least with the AIX C compiler.
  4630. : > sub/conftest.c
  4631. for i in 1 2 3 4 5 6; do
  4632. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4633. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4634. # Solaris 10 /bin/sh.
  4635. echo '/* dummy */' > sub/conftst$i.h
  4636. done
  4637. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4638. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4639. # mode. It turns out that the SunPro C++ compiler does not properly
  4640. # handle '-M -o', and we need to detect this. Also, some Intel
  4641. # versions had trouble with output in subdirs.
  4642. am__obj=sub/conftest.${OBJEXT-o}
  4643. am__minus_obj="-o $am__obj"
  4644. case $depmode in
  4645. gcc)
  4646. # This depmode causes a compiler race in universal mode.
  4647. test "$am__universal" = false || continue
  4648. ;;
  4649. nosideeffect)
  4650. # After this tag, mechanisms are not by side-effect, so they'll
  4651. # only be used when explicitly requested.
  4652. if test "x$enable_dependency_tracking" = xyes; then
  4653. continue
  4654. else
  4655. break
  4656. fi
  4657. ;;
  4658. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4659. # This compiler won't grok '-c -o', but also, the minuso test has
  4660. # not run yet. These depmodes are late enough in the game, and
  4661. # so weak that their functioning should not be impacted.
  4662. am__obj=conftest.${OBJEXT-o}
  4663. am__minus_obj=
  4664. ;;
  4665. none) break ;;
  4666. esac
  4667. if depmode=$depmode \
  4668. source=sub/conftest.c object=$am__obj \
  4669. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4670. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4671. >/dev/null 2>conftest.err &&
  4672. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4673. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4674. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4675. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4676. # icc doesn't choke on unknown options, it will just issue warnings
  4677. # or remarks (even with -Werror). So we grep stderr for any message
  4678. # that says an option was ignored or not supported.
  4679. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4680. # icc: Command line warning: ignoring option '-M'; no argument required
  4681. # The diagnosis changed in icc 8.0:
  4682. # icc: Command line remark: option '-MP' not supported
  4683. if (grep 'ignoring option' conftest.err ||
  4684. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4685. am_cv_CCAS_dependencies_compiler_type=$depmode
  4686. break
  4687. fi
  4688. fi
  4689. done
  4690. cd ..
  4691. rm -rf conftest.dir
  4692. else
  4693. am_cv_CCAS_dependencies_compiler_type=none
  4694. fi
  4695. fi
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4697. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4698. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4699. if
  4700. test "x$enable_dependency_tracking" != xno \
  4701. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4702. am__fastdepCCAS_TRUE=
  4703. am__fastdepCCAS_FALSE='#'
  4704. else
  4705. am__fastdepCCAS_TRUE='#'
  4706. am__fastdepCCAS_FALSE=
  4707. fi
  4708. # disable static libs by default - we only use a couple
  4709. # Check whether --enable-static was given.
  4710. if test "${enable_static+set}" = set; then :
  4711. enableval=$enable_static; p=${PACKAGE-default}
  4712. case $enableval in
  4713. yes) enable_static=yes ;;
  4714. no) enable_static=no ;;
  4715. *)
  4716. enable_static=no
  4717. # Look at the argument we got. We use all the common list separators.
  4718. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4719. for pkg in $enableval; do
  4720. IFS="$lt_save_ifs"
  4721. if test "X$pkg" = "X$p"; then
  4722. enable_static=yes
  4723. fi
  4724. done
  4725. IFS="$lt_save_ifs"
  4726. ;;
  4727. esac
  4728. else
  4729. enable_static=no
  4730. fi
  4731. case `pwd` in
  4732. *\ * | *\ *)
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4734. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4735. esac
  4736. macro_version='2.4.2'
  4737. macro_revision='1.3337'
  4738. ltmain="$ac_aux_dir/ltmain.sh"
  4739. # Backslashify metacharacters that are still active within
  4740. # double-quoted strings.
  4741. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4742. # Same as above, but do not quote variable references.
  4743. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4744. # Sed substitution to delay expansion of an escaped shell variable in a
  4745. # double_quote_subst'ed string.
  4746. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4747. # Sed substitution to delay expansion of an escaped single quote.
  4748. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4749. # Sed substitution to avoid accidental globbing in evaled expressions
  4750. no_glob_subst='s/\*/\\\*/g'
  4751. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4752. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4753. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4755. $as_echo_n "checking how to print strings... " >&6; }
  4756. # Test print first, because it will be a builtin if present.
  4757. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4758. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4759. ECHO='print -r --'
  4760. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4761. ECHO='printf %s\n'
  4762. else
  4763. # Use this function as a fallback that always works.
  4764. func_fallback_echo ()
  4765. {
  4766. eval 'cat <<_LTECHO_EOF
  4767. $1
  4768. _LTECHO_EOF'
  4769. }
  4770. ECHO='func_fallback_echo'
  4771. fi
  4772. # func_echo_all arg...
  4773. # Invoke $ECHO with all args, space-separated.
  4774. func_echo_all ()
  4775. {
  4776. $ECHO ""
  4777. }
  4778. case "$ECHO" in
  4779. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4780. $as_echo "printf" >&6; } ;;
  4781. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4782. $as_echo "print -r" >&6; } ;;
  4783. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4784. $as_echo "cat" >&6; } ;;
  4785. esac
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4787. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4788. if ${ac_cv_path_SED+:} false; then :
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4792. for ac_i in 1 2 3 4 5 6 7; do
  4793. ac_script="$ac_script$as_nl$ac_script"
  4794. done
  4795. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4796. { ac_script=; unset ac_script;}
  4797. if test -z "$SED"; then
  4798. ac_path_SED_found=false
  4799. # Loop through the user's path and test for each of PROGNAME-LIST
  4800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4801. for as_dir in $PATH
  4802. do
  4803. IFS=$as_save_IFS
  4804. test -z "$as_dir" && as_dir=.
  4805. for ac_prog in sed gsed; do
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4808. as_fn_executable_p "$ac_path_SED" || continue
  4809. # Check for GNU ac_path_SED and select it if it is found.
  4810. # Check for GNU $ac_path_SED
  4811. case `"$ac_path_SED" --version 2>&1` in
  4812. *GNU*)
  4813. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4814. *)
  4815. ac_count=0
  4816. $as_echo_n 0123456789 >"conftest.in"
  4817. while :
  4818. do
  4819. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4820. mv "conftest.tmp" "conftest.in"
  4821. cp "conftest.in" "conftest.nl"
  4822. $as_echo '' >> "conftest.nl"
  4823. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4824. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4825. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4826. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4827. # Best one so far, save it but keep looking for a better one
  4828. ac_cv_path_SED="$ac_path_SED"
  4829. ac_path_SED_max=$ac_count
  4830. fi
  4831. # 10*(2^10) chars as input seems more than enough
  4832. test $ac_count -gt 10 && break
  4833. done
  4834. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4835. esac
  4836. $ac_path_SED_found && break 3
  4837. done
  4838. done
  4839. done
  4840. IFS=$as_save_IFS
  4841. if test -z "$ac_cv_path_SED"; then
  4842. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4843. fi
  4844. else
  4845. ac_cv_path_SED=$SED
  4846. fi
  4847. fi
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4849. $as_echo "$ac_cv_path_SED" >&6; }
  4850. SED="$ac_cv_path_SED"
  4851. rm -f conftest.sed
  4852. test -z "$SED" && SED=sed
  4853. Xsed="$SED -e 1s/^X//"
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4855. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4856. if ${ac_cv_path_GREP+:} false; then :
  4857. $as_echo_n "(cached) " >&6
  4858. else
  4859. if test -z "$GREP"; then
  4860. ac_path_GREP_found=false
  4861. # Loop through the user's path and test for each of PROGNAME-LIST
  4862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4863. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4864. do
  4865. IFS=$as_save_IFS
  4866. test -z "$as_dir" && as_dir=.
  4867. for ac_prog in grep ggrep; do
  4868. for ac_exec_ext in '' $ac_executable_extensions; do
  4869. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4870. as_fn_executable_p "$ac_path_GREP" || continue
  4871. # Check for GNU ac_path_GREP and select it if it is found.
  4872. # Check for GNU $ac_path_GREP
  4873. case `"$ac_path_GREP" --version 2>&1` in
  4874. *GNU*)
  4875. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4876. *)
  4877. ac_count=0
  4878. $as_echo_n 0123456789 >"conftest.in"
  4879. while :
  4880. do
  4881. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4882. mv "conftest.tmp" "conftest.in"
  4883. cp "conftest.in" "conftest.nl"
  4884. $as_echo 'GREP' >> "conftest.nl"
  4885. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4886. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4887. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4888. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4889. # Best one so far, save it but keep looking for a better one
  4890. ac_cv_path_GREP="$ac_path_GREP"
  4891. ac_path_GREP_max=$ac_count
  4892. fi
  4893. # 10*(2^10) chars as input seems more than enough
  4894. test $ac_count -gt 10 && break
  4895. done
  4896. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4897. esac
  4898. $ac_path_GREP_found && break 3
  4899. done
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. if test -z "$ac_cv_path_GREP"; then
  4904. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4905. fi
  4906. else
  4907. ac_cv_path_GREP=$GREP
  4908. fi
  4909. fi
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4911. $as_echo "$ac_cv_path_GREP" >&6; }
  4912. GREP="$ac_cv_path_GREP"
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4914. $as_echo_n "checking for egrep... " >&6; }
  4915. if ${ac_cv_path_EGREP+:} false; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4919. then ac_cv_path_EGREP="$GREP -E"
  4920. else
  4921. if test -z "$EGREP"; then
  4922. ac_path_EGREP_found=false
  4923. # Loop through the user's path and test for each of PROGNAME-LIST
  4924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4925. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4926. do
  4927. IFS=$as_save_IFS
  4928. test -z "$as_dir" && as_dir=.
  4929. for ac_prog in egrep; do
  4930. for ac_exec_ext in '' $ac_executable_extensions; do
  4931. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4932. as_fn_executable_p "$ac_path_EGREP" || continue
  4933. # Check for GNU ac_path_EGREP and select it if it is found.
  4934. # Check for GNU $ac_path_EGREP
  4935. case `"$ac_path_EGREP" --version 2>&1` in
  4936. *GNU*)
  4937. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4938. *)
  4939. ac_count=0
  4940. $as_echo_n 0123456789 >"conftest.in"
  4941. while :
  4942. do
  4943. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4944. mv "conftest.tmp" "conftest.in"
  4945. cp "conftest.in" "conftest.nl"
  4946. $as_echo 'EGREP' >> "conftest.nl"
  4947. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4948. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4949. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4950. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4951. # Best one so far, save it but keep looking for a better one
  4952. ac_cv_path_EGREP="$ac_path_EGREP"
  4953. ac_path_EGREP_max=$ac_count
  4954. fi
  4955. # 10*(2^10) chars as input seems more than enough
  4956. test $ac_count -gt 10 && break
  4957. done
  4958. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4959. esac
  4960. $ac_path_EGREP_found && break 3
  4961. done
  4962. done
  4963. done
  4964. IFS=$as_save_IFS
  4965. if test -z "$ac_cv_path_EGREP"; then
  4966. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4967. fi
  4968. else
  4969. ac_cv_path_EGREP=$EGREP
  4970. fi
  4971. fi
  4972. fi
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4974. $as_echo "$ac_cv_path_EGREP" >&6; }
  4975. EGREP="$ac_cv_path_EGREP"
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4977. $as_echo_n "checking for fgrep... " >&6; }
  4978. if ${ac_cv_path_FGREP+:} false; then :
  4979. $as_echo_n "(cached) " >&6
  4980. else
  4981. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4982. then ac_cv_path_FGREP="$GREP -F"
  4983. else
  4984. if test -z "$FGREP"; then
  4985. ac_path_FGREP_found=false
  4986. # Loop through the user's path and test for each of PROGNAME-LIST
  4987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4988. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4989. do
  4990. IFS=$as_save_IFS
  4991. test -z "$as_dir" && as_dir=.
  4992. for ac_prog in fgrep; do
  4993. for ac_exec_ext in '' $ac_executable_extensions; do
  4994. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4995. as_fn_executable_p "$ac_path_FGREP" || continue
  4996. # Check for GNU ac_path_FGREP and select it if it is found.
  4997. # Check for GNU $ac_path_FGREP
  4998. case `"$ac_path_FGREP" --version 2>&1` in
  4999. *GNU*)
  5000. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5001. *)
  5002. ac_count=0
  5003. $as_echo_n 0123456789 >"conftest.in"
  5004. while :
  5005. do
  5006. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5007. mv "conftest.tmp" "conftest.in"
  5008. cp "conftest.in" "conftest.nl"
  5009. $as_echo 'FGREP' >> "conftest.nl"
  5010. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5011. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5012. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5013. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5014. # Best one so far, save it but keep looking for a better one
  5015. ac_cv_path_FGREP="$ac_path_FGREP"
  5016. ac_path_FGREP_max=$ac_count
  5017. fi
  5018. # 10*(2^10) chars as input seems more than enough
  5019. test $ac_count -gt 10 && break
  5020. done
  5021. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5022. esac
  5023. $ac_path_FGREP_found && break 3
  5024. done
  5025. done
  5026. done
  5027. IFS=$as_save_IFS
  5028. if test -z "$ac_cv_path_FGREP"; then
  5029. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5030. fi
  5031. else
  5032. ac_cv_path_FGREP=$FGREP
  5033. fi
  5034. fi
  5035. fi
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5037. $as_echo "$ac_cv_path_FGREP" >&6; }
  5038. FGREP="$ac_cv_path_FGREP"
  5039. test -z "$GREP" && GREP=grep
  5040. # Check whether --with-gnu-ld was given.
  5041. if test "${with_gnu_ld+set}" = set; then :
  5042. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5043. else
  5044. with_gnu_ld=no
  5045. fi
  5046. ac_prog=ld
  5047. if test "$GCC" = yes; then
  5048. # Check if gcc -print-prog-name=ld gives a path.
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5050. $as_echo_n "checking for ld used by $CC... " >&6; }
  5051. case $host in
  5052. *-*-mingw*)
  5053. # gcc leaves a trailing carriage return which upsets mingw
  5054. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5055. *)
  5056. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5057. esac
  5058. case $ac_prog in
  5059. # Accept absolute paths.
  5060. [\\/]* | ?:[\\/]*)
  5061. re_direlt='/[^/][^/]*/\.\./'
  5062. # Canonicalize the pathname of ld
  5063. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5064. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5065. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5066. done
  5067. test -z "$LD" && LD="$ac_prog"
  5068. ;;
  5069. "")
  5070. # If it fails, then pretend we aren't using GCC.
  5071. ac_prog=ld
  5072. ;;
  5073. *)
  5074. # If it is relative, then search for the first ld in PATH.
  5075. with_gnu_ld=unknown
  5076. ;;
  5077. esac
  5078. elif test "$with_gnu_ld" = yes; then
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5080. $as_echo_n "checking for GNU ld... " >&6; }
  5081. else
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5083. $as_echo_n "checking for non-GNU ld... " >&6; }
  5084. fi
  5085. if ${lt_cv_path_LD+:} false; then :
  5086. $as_echo_n "(cached) " >&6
  5087. else
  5088. if test -z "$LD"; then
  5089. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5090. for ac_dir in $PATH; do
  5091. IFS="$lt_save_ifs"
  5092. test -z "$ac_dir" && ac_dir=.
  5093. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5094. lt_cv_path_LD="$ac_dir/$ac_prog"
  5095. # Check to see if the program is GNU ld. I'd rather use --version,
  5096. # but apparently some variants of GNU ld only accept -v.
  5097. # Break only if it was the GNU/non-GNU ld that we prefer.
  5098. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5099. *GNU* | *'with BFD'*)
  5100. test "$with_gnu_ld" != no && break
  5101. ;;
  5102. *)
  5103. test "$with_gnu_ld" != yes && break
  5104. ;;
  5105. esac
  5106. fi
  5107. done
  5108. IFS="$lt_save_ifs"
  5109. else
  5110. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5111. fi
  5112. fi
  5113. LD="$lt_cv_path_LD"
  5114. if test -n "$LD"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5116. $as_echo "$LD" >&6; }
  5117. else
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5119. $as_echo "no" >&6; }
  5120. fi
  5121. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5123. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5124. if ${lt_cv_prog_gnu_ld+:} false; then :
  5125. $as_echo_n "(cached) " >&6
  5126. else
  5127. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5128. case `$LD -v 2>&1 </dev/null` in
  5129. *GNU* | *'with BFD'*)
  5130. lt_cv_prog_gnu_ld=yes
  5131. ;;
  5132. *)
  5133. lt_cv_prog_gnu_ld=no
  5134. ;;
  5135. esac
  5136. fi
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5138. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5139. with_gnu_ld=$lt_cv_prog_gnu_ld
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5141. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5142. if ${lt_cv_path_NM+:} false; then :
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. if test -n "$NM"; then
  5146. # Let the user override the test.
  5147. lt_cv_path_NM="$NM"
  5148. else
  5149. lt_nm_to_check="${ac_tool_prefix}nm"
  5150. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5151. lt_nm_to_check="$lt_nm_to_check nm"
  5152. fi
  5153. for lt_tmp_nm in $lt_nm_to_check; do
  5154. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5155. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5156. IFS="$lt_save_ifs"
  5157. test -z "$ac_dir" && ac_dir=.
  5158. tmp_nm="$ac_dir/$lt_tmp_nm"
  5159. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5160. # Check to see if the nm accepts a BSD-compat flag.
  5161. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5162. # nm: unknown option "B" ignored
  5163. # Tru64's nm complains that /dev/null is an invalid object file
  5164. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5165. */dev/null* | *'Invalid file or object type'*)
  5166. lt_cv_path_NM="$tmp_nm -B"
  5167. break
  5168. ;;
  5169. *)
  5170. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5171. */dev/null*)
  5172. lt_cv_path_NM="$tmp_nm -p"
  5173. break
  5174. ;;
  5175. *)
  5176. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5177. continue # so that we can try to find one that supports BSD flags
  5178. ;;
  5179. esac
  5180. ;;
  5181. esac
  5182. fi
  5183. done
  5184. IFS="$lt_save_ifs"
  5185. done
  5186. : ${lt_cv_path_NM=no}
  5187. fi
  5188. fi
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5190. $as_echo "$lt_cv_path_NM" >&6; }
  5191. if test "$lt_cv_path_NM" != "no"; then
  5192. NM="$lt_cv_path_NM"
  5193. else
  5194. # Didn't find any BSD compatible name lister, look for dumpbin.
  5195. if test -n "$DUMPBIN"; then :
  5196. # Let the user override the test.
  5197. else
  5198. if test -n "$ac_tool_prefix"; then
  5199. for ac_prog in dumpbin "link -dump"
  5200. do
  5201. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5202. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5204. $as_echo_n "checking for $ac_word... " >&6; }
  5205. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5206. $as_echo_n "(cached) " >&6
  5207. else
  5208. if test -n "$DUMPBIN"; then
  5209. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5210. else
  5211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5212. for as_dir in $PATH
  5213. do
  5214. IFS=$as_save_IFS
  5215. test -z "$as_dir" && as_dir=.
  5216. for ac_exec_ext in '' $ac_executable_extensions; do
  5217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5218. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5220. break 2
  5221. fi
  5222. done
  5223. done
  5224. IFS=$as_save_IFS
  5225. fi
  5226. fi
  5227. DUMPBIN=$ac_cv_prog_DUMPBIN
  5228. if test -n "$DUMPBIN"; then
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5230. $as_echo "$DUMPBIN" >&6; }
  5231. else
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5233. $as_echo "no" >&6; }
  5234. fi
  5235. test -n "$DUMPBIN" && break
  5236. done
  5237. fi
  5238. if test -z "$DUMPBIN"; then
  5239. ac_ct_DUMPBIN=$DUMPBIN
  5240. for ac_prog in dumpbin "link -dump"
  5241. do
  5242. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5243. set dummy $ac_prog; ac_word=$2
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5245. $as_echo_n "checking for $ac_word... " >&6; }
  5246. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5247. $as_echo_n "(cached) " >&6
  5248. else
  5249. if test -n "$ac_ct_DUMPBIN"; then
  5250. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5251. else
  5252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5253. for as_dir in $PATH
  5254. do
  5255. IFS=$as_save_IFS
  5256. test -z "$as_dir" && as_dir=.
  5257. for ac_exec_ext in '' $ac_executable_extensions; do
  5258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5259. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5261. break 2
  5262. fi
  5263. done
  5264. done
  5265. IFS=$as_save_IFS
  5266. fi
  5267. fi
  5268. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5269. if test -n "$ac_ct_DUMPBIN"; then
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5271. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5272. else
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5274. $as_echo "no" >&6; }
  5275. fi
  5276. test -n "$ac_ct_DUMPBIN" && break
  5277. done
  5278. if test "x$ac_ct_DUMPBIN" = x; then
  5279. DUMPBIN=":"
  5280. else
  5281. case $cross_compiling:$ac_tool_warned in
  5282. yes:)
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5285. ac_tool_warned=yes ;;
  5286. esac
  5287. DUMPBIN=$ac_ct_DUMPBIN
  5288. fi
  5289. fi
  5290. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5291. *COFF*)
  5292. DUMPBIN="$DUMPBIN -symbols"
  5293. ;;
  5294. *)
  5295. DUMPBIN=:
  5296. ;;
  5297. esac
  5298. fi
  5299. if test "$DUMPBIN" != ":"; then
  5300. NM="$DUMPBIN"
  5301. fi
  5302. fi
  5303. test -z "$NM" && NM=nm
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5305. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5306. if ${lt_cv_nm_interface+:} false; then :
  5307. $as_echo_n "(cached) " >&6
  5308. else
  5309. lt_cv_nm_interface="BSD nm"
  5310. echo "int some_variable = 0;" > conftest.$ac_ext
  5311. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5312. (eval "$ac_compile" 2>conftest.err)
  5313. cat conftest.err >&5
  5314. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5315. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5316. cat conftest.err >&5
  5317. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5318. cat conftest.out >&5
  5319. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5320. lt_cv_nm_interface="MS dumpbin"
  5321. fi
  5322. rm -f conftest*
  5323. fi
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5325. $as_echo "$lt_cv_nm_interface" >&6; }
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5327. $as_echo_n "checking whether ln -s works... " >&6; }
  5328. LN_S=$as_ln_s
  5329. if test "$LN_S" = "ln -s"; then
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5331. $as_echo "yes" >&6; }
  5332. else
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5334. $as_echo "no, using $LN_S" >&6; }
  5335. fi
  5336. # find the maximum length of command line arguments
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5338. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5339. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5340. $as_echo_n "(cached) " >&6
  5341. else
  5342. i=0
  5343. teststring="ABCD"
  5344. case $build_os in
  5345. msdosdjgpp*)
  5346. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5347. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5348. # during glob expansion). Even if it were fixed, the result of this
  5349. # check would be larger than it should be.
  5350. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5351. ;;
  5352. gnu*)
  5353. # Under GNU Hurd, this test is not required because there is
  5354. # no limit to the length of command line arguments.
  5355. # Libtool will interpret -1 as no limit whatsoever
  5356. lt_cv_sys_max_cmd_len=-1;
  5357. ;;
  5358. cygwin* | mingw* | cegcc*)
  5359. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5360. # about 5 minutes as the teststring grows exponentially.
  5361. # Worse, since 9x/ME are not pre-emptively multitasking,
  5362. # you end up with a "frozen" computer, even though with patience
  5363. # the test eventually succeeds (with a max line length of 256k).
  5364. # Instead, let's just punt: use the minimum linelength reported by
  5365. # all of the supported platforms: 8192 (on NT/2K/XP).
  5366. lt_cv_sys_max_cmd_len=8192;
  5367. ;;
  5368. mint*)
  5369. # On MiNT this can take a long time and run out of memory.
  5370. lt_cv_sys_max_cmd_len=8192;
  5371. ;;
  5372. amigaos*)
  5373. # On AmigaOS with pdksh, this test takes hours, literally.
  5374. # So we just punt and use a minimum line length of 8192.
  5375. lt_cv_sys_max_cmd_len=8192;
  5376. ;;
  5377. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5378. # This has been around since 386BSD, at least. Likely further.
  5379. if test -x /sbin/sysctl; then
  5380. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5381. elif test -x /usr/sbin/sysctl; then
  5382. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5383. else
  5384. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5385. fi
  5386. # And add a safety zone
  5387. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5388. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5389. ;;
  5390. interix*)
  5391. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5392. lt_cv_sys_max_cmd_len=196608
  5393. ;;
  5394. os2*)
  5395. # The test takes a long time on OS/2.
  5396. lt_cv_sys_max_cmd_len=8192
  5397. ;;
  5398. osf*)
  5399. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5400. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5401. # nice to cause kernel panics so lets avoid the loop below.
  5402. # First set a reasonable default.
  5403. lt_cv_sys_max_cmd_len=16384
  5404. #
  5405. if test -x /sbin/sysconfig; then
  5406. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5407. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5408. esac
  5409. fi
  5410. ;;
  5411. sco3.2v5*)
  5412. lt_cv_sys_max_cmd_len=102400
  5413. ;;
  5414. sysv5* | sco5v6* | sysv4.2uw2*)
  5415. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5416. if test -n "$kargmax"; then
  5417. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5418. else
  5419. lt_cv_sys_max_cmd_len=32768
  5420. fi
  5421. ;;
  5422. *)
  5423. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5424. if test -n "$lt_cv_sys_max_cmd_len"; then
  5425. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5426. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5427. else
  5428. # Make teststring a little bigger before we do anything with it.
  5429. # a 1K string should be a reasonable start.
  5430. for i in 1 2 3 4 5 6 7 8 ; do
  5431. teststring=$teststring$teststring
  5432. done
  5433. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5434. # If test is not a shell built-in, we'll probably end up computing a
  5435. # maximum length that is only half of the actual maximum length, but
  5436. # we can't tell.
  5437. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5438. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5439. test $i != 17 # 1/2 MB should be enough
  5440. do
  5441. i=`expr $i + 1`
  5442. teststring=$teststring$teststring
  5443. done
  5444. # Only check the string length outside the loop.
  5445. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5446. teststring=
  5447. # Add a significant safety factor because C++ compilers can tack on
  5448. # massive amounts of additional arguments before passing them to the
  5449. # linker. It appears as though 1/2 is a usable value.
  5450. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5451. fi
  5452. ;;
  5453. esac
  5454. fi
  5455. if test -n $lt_cv_sys_max_cmd_len ; then
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5457. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5458. else
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5460. $as_echo "none" >&6; }
  5461. fi
  5462. max_cmd_len=$lt_cv_sys_max_cmd_len
  5463. : ${CP="cp -f"}
  5464. : ${MV="mv -f"}
  5465. : ${RM="rm -f"}
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5467. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5468. # Try some XSI features
  5469. xsi_shell=no
  5470. ( _lt_dummy="a/b/c"
  5471. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5472. = c,a/b,b/c, \
  5473. && eval 'test $(( 1 + 1 )) -eq 2 \
  5474. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5475. && xsi_shell=yes
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5477. $as_echo "$xsi_shell" >&6; }
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5479. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5480. lt_shell_append=no
  5481. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5482. >/dev/null 2>&1 \
  5483. && lt_shell_append=yes
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5485. $as_echo "$lt_shell_append" >&6; }
  5486. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5487. lt_unset=unset
  5488. else
  5489. lt_unset=false
  5490. fi
  5491. # test EBCDIC or ASCII
  5492. case `echo X|tr X '\101'` in
  5493. A) # ASCII based system
  5494. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5495. lt_SP2NL='tr \040 \012'
  5496. lt_NL2SP='tr \015\012 \040\040'
  5497. ;;
  5498. *) # EBCDIC based system
  5499. lt_SP2NL='tr \100 \n'
  5500. lt_NL2SP='tr \r\n \100\100'
  5501. ;;
  5502. esac
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5504. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5505. if ${lt_cv_to_host_file_cmd+:} false; then :
  5506. $as_echo_n "(cached) " >&6
  5507. else
  5508. case $host in
  5509. *-*-mingw* )
  5510. case $build in
  5511. *-*-mingw* ) # actually msys
  5512. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5513. ;;
  5514. *-*-cygwin* )
  5515. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5516. ;;
  5517. * ) # otherwise, assume *nix
  5518. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5519. ;;
  5520. esac
  5521. ;;
  5522. *-*-cygwin* )
  5523. case $build in
  5524. *-*-mingw* ) # actually msys
  5525. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5526. ;;
  5527. *-*-cygwin* )
  5528. lt_cv_to_host_file_cmd=func_convert_file_noop
  5529. ;;
  5530. * ) # otherwise, assume *nix
  5531. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5532. ;;
  5533. esac
  5534. ;;
  5535. * ) # unhandled hosts (and "normal" native builds)
  5536. lt_cv_to_host_file_cmd=func_convert_file_noop
  5537. ;;
  5538. esac
  5539. fi
  5540. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5542. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5544. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5545. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5546. $as_echo_n "(cached) " >&6
  5547. else
  5548. #assume ordinary cross tools, or native build.
  5549. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5550. case $host in
  5551. *-*-mingw* )
  5552. case $build in
  5553. *-*-mingw* ) # actually msys
  5554. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5555. ;;
  5556. esac
  5557. ;;
  5558. esac
  5559. fi
  5560. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5562. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5564. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5565. if ${lt_cv_ld_reload_flag+:} false; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. lt_cv_ld_reload_flag='-r'
  5569. fi
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5571. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5572. reload_flag=$lt_cv_ld_reload_flag
  5573. case $reload_flag in
  5574. "" | " "*) ;;
  5575. *) reload_flag=" $reload_flag" ;;
  5576. esac
  5577. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5578. case $host_os in
  5579. cygwin* | mingw* | pw32* | cegcc*)
  5580. if test "$GCC" != yes; then
  5581. reload_cmds=false
  5582. fi
  5583. ;;
  5584. darwin*)
  5585. if test "$GCC" = yes; then
  5586. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5587. else
  5588. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5589. fi
  5590. ;;
  5591. esac
  5592. if test -n "$ac_tool_prefix"; then
  5593. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5594. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5596. $as_echo_n "checking for $ac_word... " >&6; }
  5597. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. if test -n "$OBJDUMP"; then
  5601. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5602. else
  5603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5604. for as_dir in $PATH
  5605. do
  5606. IFS=$as_save_IFS
  5607. test -z "$as_dir" && as_dir=.
  5608. for ac_exec_ext in '' $ac_executable_extensions; do
  5609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5610. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5612. break 2
  5613. fi
  5614. done
  5615. done
  5616. IFS=$as_save_IFS
  5617. fi
  5618. fi
  5619. OBJDUMP=$ac_cv_prog_OBJDUMP
  5620. if test -n "$OBJDUMP"; then
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5622. $as_echo "$OBJDUMP" >&6; }
  5623. else
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5625. $as_echo "no" >&6; }
  5626. fi
  5627. fi
  5628. if test -z "$ac_cv_prog_OBJDUMP"; then
  5629. ac_ct_OBJDUMP=$OBJDUMP
  5630. # Extract the first word of "objdump", so it can be a program name with args.
  5631. set dummy objdump; ac_word=$2
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5633. $as_echo_n "checking for $ac_word... " >&6; }
  5634. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5635. $as_echo_n "(cached) " >&6
  5636. else
  5637. if test -n "$ac_ct_OBJDUMP"; then
  5638. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5639. else
  5640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5641. for as_dir in $PATH
  5642. do
  5643. IFS=$as_save_IFS
  5644. test -z "$as_dir" && as_dir=.
  5645. for ac_exec_ext in '' $ac_executable_extensions; do
  5646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5647. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5649. break 2
  5650. fi
  5651. done
  5652. done
  5653. IFS=$as_save_IFS
  5654. fi
  5655. fi
  5656. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5657. if test -n "$ac_ct_OBJDUMP"; then
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5659. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5660. else
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5662. $as_echo "no" >&6; }
  5663. fi
  5664. if test "x$ac_ct_OBJDUMP" = x; then
  5665. OBJDUMP="false"
  5666. else
  5667. case $cross_compiling:$ac_tool_warned in
  5668. yes:)
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5671. ac_tool_warned=yes ;;
  5672. esac
  5673. OBJDUMP=$ac_ct_OBJDUMP
  5674. fi
  5675. else
  5676. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5677. fi
  5678. test -z "$OBJDUMP" && OBJDUMP=objdump
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5680. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5681. if ${lt_cv_deplibs_check_method+:} false; then :
  5682. $as_echo_n "(cached) " >&6
  5683. else
  5684. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5685. lt_cv_file_magic_test_file=
  5686. lt_cv_deplibs_check_method='unknown'
  5687. # Need to set the preceding variable on all platforms that support
  5688. # interlibrary dependencies.
  5689. # 'none' -- dependencies not supported.
  5690. # `unknown' -- same as none, but documents that we really don't know.
  5691. # 'pass_all' -- all dependencies passed with no checks.
  5692. # 'test_compile' -- check by making test program.
  5693. # 'file_magic [[regex]]' -- check by looking for files in library path
  5694. # which responds to the $file_magic_cmd with a given extended regex.
  5695. # If you have `file' or equivalent on your system and you're not sure
  5696. # whether `pass_all' will *always* work, you probably want this one.
  5697. case $host_os in
  5698. aix[4-9]*)
  5699. lt_cv_deplibs_check_method=pass_all
  5700. ;;
  5701. beos*)
  5702. lt_cv_deplibs_check_method=pass_all
  5703. ;;
  5704. bsdi[45]*)
  5705. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5706. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5707. lt_cv_file_magic_test_file=/shlib/libc.so
  5708. ;;
  5709. cygwin*)
  5710. # func_win32_libid is a shell function defined in ltmain.sh
  5711. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5712. lt_cv_file_magic_cmd='func_win32_libid'
  5713. ;;
  5714. mingw* | pw32*)
  5715. # Base MSYS/MinGW do not provide the 'file' command needed by
  5716. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5717. # unless we find 'file', for example because we are cross-compiling.
  5718. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5719. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5720. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5721. lt_cv_file_magic_cmd='func_win32_libid'
  5722. else
  5723. # Keep this pattern in sync with the one in func_win32_libid.
  5724. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5725. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5726. fi
  5727. ;;
  5728. cegcc*)
  5729. # use the weaker test based on 'objdump'. See mingw*.
  5730. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5731. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5732. ;;
  5733. darwin* | rhapsody*)
  5734. lt_cv_deplibs_check_method=pass_all
  5735. ;;
  5736. freebsd* | dragonfly*)
  5737. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5738. case $host_cpu in
  5739. i*86 )
  5740. # Not sure whether the presence of OpenBSD here was a mistake.
  5741. # Let's accept both of them until this is cleared up.
  5742. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5743. lt_cv_file_magic_cmd=/usr/bin/file
  5744. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5745. ;;
  5746. esac
  5747. else
  5748. lt_cv_deplibs_check_method=pass_all
  5749. fi
  5750. ;;
  5751. gnu*)
  5752. lt_cv_deplibs_check_method=pass_all
  5753. ;;
  5754. haiku*)
  5755. lt_cv_deplibs_check_method=pass_all
  5756. ;;
  5757. hpux10.20* | hpux11*)
  5758. lt_cv_file_magic_cmd=/usr/bin/file
  5759. case $host_cpu in
  5760. ia64*)
  5761. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5762. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5763. ;;
  5764. hppa*64*)
  5765. 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]'
  5766. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5767. ;;
  5768. *)
  5769. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5770. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5771. ;;
  5772. esac
  5773. ;;
  5774. interix[3-9]*)
  5775. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5776. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5777. ;;
  5778. irix5* | irix6* | nonstopux*)
  5779. case $LD in
  5780. *-32|*"-32 ") libmagic=32-bit;;
  5781. *-n32|*"-n32 ") libmagic=N32;;
  5782. *-64|*"-64 ") libmagic=64-bit;;
  5783. *) libmagic=never-match;;
  5784. esac
  5785. lt_cv_deplibs_check_method=pass_all
  5786. ;;
  5787. # This must be glibc/ELF.
  5788. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5789. lt_cv_deplibs_check_method=pass_all
  5790. ;;
  5791. netbsd*)
  5792. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5793. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5794. else
  5795. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5796. fi
  5797. ;;
  5798. newos6*)
  5799. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5800. lt_cv_file_magic_cmd=/usr/bin/file
  5801. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5802. ;;
  5803. *nto* | *qnx*)
  5804. lt_cv_deplibs_check_method=pass_all
  5805. ;;
  5806. openbsd*)
  5807. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5809. else
  5810. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5811. fi
  5812. ;;
  5813. osf3* | osf4* | osf5*)
  5814. lt_cv_deplibs_check_method=pass_all
  5815. ;;
  5816. rdos*)
  5817. lt_cv_deplibs_check_method=pass_all
  5818. ;;
  5819. solaris*)
  5820. lt_cv_deplibs_check_method=pass_all
  5821. ;;
  5822. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5823. lt_cv_deplibs_check_method=pass_all
  5824. ;;
  5825. sysv4 | sysv4.3*)
  5826. case $host_vendor in
  5827. motorola)
  5828. 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]'
  5829. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5830. ;;
  5831. ncr)
  5832. lt_cv_deplibs_check_method=pass_all
  5833. ;;
  5834. sequent)
  5835. lt_cv_file_magic_cmd='/bin/file'
  5836. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5837. ;;
  5838. sni)
  5839. lt_cv_file_magic_cmd='/bin/file'
  5840. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5841. lt_cv_file_magic_test_file=/lib/libc.so
  5842. ;;
  5843. siemens)
  5844. lt_cv_deplibs_check_method=pass_all
  5845. ;;
  5846. pc)
  5847. lt_cv_deplibs_check_method=pass_all
  5848. ;;
  5849. esac
  5850. ;;
  5851. tpf*)
  5852. lt_cv_deplibs_check_method=pass_all
  5853. ;;
  5854. esac
  5855. fi
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5857. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5858. file_magic_glob=
  5859. want_nocaseglob=no
  5860. if test "$build" = "$host"; then
  5861. case $host_os in
  5862. mingw* | pw32*)
  5863. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5864. want_nocaseglob=yes
  5865. else
  5866. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5867. fi
  5868. ;;
  5869. esac
  5870. fi
  5871. file_magic_cmd=$lt_cv_file_magic_cmd
  5872. deplibs_check_method=$lt_cv_deplibs_check_method
  5873. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5874. if test -n "$ac_tool_prefix"; then
  5875. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5876. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5878. $as_echo_n "checking for $ac_word... " >&6; }
  5879. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. if test -n "$DLLTOOL"; then
  5883. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5884. else
  5885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5886. for as_dir in $PATH
  5887. do
  5888. IFS=$as_save_IFS
  5889. test -z "$as_dir" && as_dir=.
  5890. for ac_exec_ext in '' $ac_executable_extensions; do
  5891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5892. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5894. break 2
  5895. fi
  5896. done
  5897. done
  5898. IFS=$as_save_IFS
  5899. fi
  5900. fi
  5901. DLLTOOL=$ac_cv_prog_DLLTOOL
  5902. if test -n "$DLLTOOL"; then
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5904. $as_echo "$DLLTOOL" >&6; }
  5905. else
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5907. $as_echo "no" >&6; }
  5908. fi
  5909. fi
  5910. if test -z "$ac_cv_prog_DLLTOOL"; then
  5911. ac_ct_DLLTOOL=$DLLTOOL
  5912. # Extract the first word of "dlltool", so it can be a program name with args.
  5913. set dummy dlltool; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$ac_ct_DLLTOOL"; then
  5920. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5929. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5939. if test -n "$ac_ct_DLLTOOL"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5941. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. if test "x$ac_ct_DLLTOOL" = x; then
  5947. DLLTOOL="false"
  5948. else
  5949. case $cross_compiling:$ac_tool_warned in
  5950. yes:)
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5953. ac_tool_warned=yes ;;
  5954. esac
  5955. DLLTOOL=$ac_ct_DLLTOOL
  5956. fi
  5957. else
  5958. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5959. fi
  5960. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5962. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5963. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5964. $as_echo_n "(cached) " >&6
  5965. else
  5966. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5967. case $host_os in
  5968. cygwin* | mingw* | pw32* | cegcc*)
  5969. # two different shell functions defined in ltmain.sh
  5970. # decide which to use based on capabilities of $DLLTOOL
  5971. case `$DLLTOOL --help 2>&1` in
  5972. *--identify-strict*)
  5973. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5974. ;;
  5975. *)
  5976. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5977. ;;
  5978. esac
  5979. ;;
  5980. *)
  5981. # fallback: assume linklib IS sharedlib
  5982. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5983. ;;
  5984. esac
  5985. fi
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5987. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5988. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5989. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5990. if test -n "$ac_tool_prefix"; then
  5991. for ac_prog in ar
  5992. do
  5993. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5994. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5996. $as_echo_n "checking for $ac_word... " >&6; }
  5997. if ${ac_cv_prog_AR+:} false; then :
  5998. $as_echo_n "(cached) " >&6
  5999. else
  6000. if test -n "$AR"; then
  6001. ac_cv_prog_AR="$AR" # Let the user override the test.
  6002. else
  6003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6004. for as_dir in $PATH
  6005. do
  6006. IFS=$as_save_IFS
  6007. test -z "$as_dir" && as_dir=.
  6008. for ac_exec_ext in '' $ac_executable_extensions; do
  6009. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6010. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6012. break 2
  6013. fi
  6014. done
  6015. done
  6016. IFS=$as_save_IFS
  6017. fi
  6018. fi
  6019. AR=$ac_cv_prog_AR
  6020. if test -n "$AR"; then
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6022. $as_echo "$AR" >&6; }
  6023. else
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6025. $as_echo "no" >&6; }
  6026. fi
  6027. test -n "$AR" && break
  6028. done
  6029. fi
  6030. if test -z "$AR"; then
  6031. ac_ct_AR=$AR
  6032. for ac_prog in ar
  6033. do
  6034. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6035. set dummy $ac_prog; ac_word=$2
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6037. $as_echo_n "checking for $ac_word... " >&6; }
  6038. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. if test -n "$ac_ct_AR"; then
  6042. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6043. else
  6044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6045. for as_dir in $PATH
  6046. do
  6047. IFS=$as_save_IFS
  6048. test -z "$as_dir" && as_dir=.
  6049. for ac_exec_ext in '' $ac_executable_extensions; do
  6050. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6051. ac_cv_prog_ac_ct_AR="$ac_prog"
  6052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6053. break 2
  6054. fi
  6055. done
  6056. done
  6057. IFS=$as_save_IFS
  6058. fi
  6059. fi
  6060. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6061. if test -n "$ac_ct_AR"; then
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6063. $as_echo "$ac_ct_AR" >&6; }
  6064. else
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6066. $as_echo "no" >&6; }
  6067. fi
  6068. test -n "$ac_ct_AR" && break
  6069. done
  6070. if test "x$ac_ct_AR" = x; then
  6071. AR="false"
  6072. else
  6073. case $cross_compiling:$ac_tool_warned in
  6074. yes:)
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6076. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6077. ac_tool_warned=yes ;;
  6078. esac
  6079. AR=$ac_ct_AR
  6080. fi
  6081. fi
  6082. : ${AR=ar}
  6083. : ${AR_FLAGS=cru}
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6085. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6086. if ${lt_cv_ar_at_file+:} false; then :
  6087. $as_echo_n "(cached) " >&6
  6088. else
  6089. lt_cv_ar_at_file=no
  6090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6091. /* end confdefs.h. */
  6092. int
  6093. main ()
  6094. {
  6095. ;
  6096. return 0;
  6097. }
  6098. _ACEOF
  6099. if ac_fn_c_try_compile "$LINENO"; then :
  6100. echo conftest.$ac_objext > conftest.lst
  6101. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6102. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6103. (eval $lt_ar_try) 2>&5
  6104. ac_status=$?
  6105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6106. test $ac_status = 0; }
  6107. if test "$ac_status" -eq 0; then
  6108. # Ensure the archiver fails upon bogus file names.
  6109. rm -f conftest.$ac_objext libconftest.a
  6110. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6111. (eval $lt_ar_try) 2>&5
  6112. ac_status=$?
  6113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6114. test $ac_status = 0; }
  6115. if test "$ac_status" -ne 0; then
  6116. lt_cv_ar_at_file=@
  6117. fi
  6118. fi
  6119. rm -f conftest.* libconftest.a
  6120. fi
  6121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6122. fi
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6124. $as_echo "$lt_cv_ar_at_file" >&6; }
  6125. if test "x$lt_cv_ar_at_file" = xno; then
  6126. archiver_list_spec=
  6127. else
  6128. archiver_list_spec=$lt_cv_ar_at_file
  6129. fi
  6130. if test -n "$ac_tool_prefix"; then
  6131. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6132. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6134. $as_echo_n "checking for $ac_word... " >&6; }
  6135. if ${ac_cv_prog_STRIP+:} false; then :
  6136. $as_echo_n "(cached) " >&6
  6137. else
  6138. if test -n "$STRIP"; then
  6139. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6140. else
  6141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6142. for as_dir in $PATH
  6143. do
  6144. IFS=$as_save_IFS
  6145. test -z "$as_dir" && as_dir=.
  6146. for ac_exec_ext in '' $ac_executable_extensions; do
  6147. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6148. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6149. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6150. break 2
  6151. fi
  6152. done
  6153. done
  6154. IFS=$as_save_IFS
  6155. fi
  6156. fi
  6157. STRIP=$ac_cv_prog_STRIP
  6158. if test -n "$STRIP"; then
  6159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6160. $as_echo "$STRIP" >&6; }
  6161. else
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6163. $as_echo "no" >&6; }
  6164. fi
  6165. fi
  6166. if test -z "$ac_cv_prog_STRIP"; then
  6167. ac_ct_STRIP=$STRIP
  6168. # Extract the first word of "strip", so it can be a program name with args.
  6169. set dummy strip; ac_word=$2
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6171. $as_echo_n "checking for $ac_word... " >&6; }
  6172. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. if test -n "$ac_ct_STRIP"; then
  6176. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6177. else
  6178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6179. for as_dir in $PATH
  6180. do
  6181. IFS=$as_save_IFS
  6182. test -z "$as_dir" && as_dir=.
  6183. for ac_exec_ext in '' $ac_executable_extensions; do
  6184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6185. ac_cv_prog_ac_ct_STRIP="strip"
  6186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6187. break 2
  6188. fi
  6189. done
  6190. done
  6191. IFS=$as_save_IFS
  6192. fi
  6193. fi
  6194. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6195. if test -n "$ac_ct_STRIP"; then
  6196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6197. $as_echo "$ac_ct_STRIP" >&6; }
  6198. else
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6200. $as_echo "no" >&6; }
  6201. fi
  6202. if test "x$ac_ct_STRIP" = x; then
  6203. STRIP=":"
  6204. else
  6205. case $cross_compiling:$ac_tool_warned in
  6206. yes:)
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6208. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6209. ac_tool_warned=yes ;;
  6210. esac
  6211. STRIP=$ac_ct_STRIP
  6212. fi
  6213. else
  6214. STRIP="$ac_cv_prog_STRIP"
  6215. fi
  6216. test -z "$STRIP" && STRIP=:
  6217. if test -n "$ac_tool_prefix"; then
  6218. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6219. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6221. $as_echo_n "checking for $ac_word... " >&6; }
  6222. if ${ac_cv_prog_RANLIB+:} false; then :
  6223. $as_echo_n "(cached) " >&6
  6224. else
  6225. if test -n "$RANLIB"; then
  6226. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6227. else
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. test -z "$as_dir" && as_dir=.
  6233. for ac_exec_ext in '' $ac_executable_extensions; do
  6234. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6235. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6237. break 2
  6238. fi
  6239. done
  6240. done
  6241. IFS=$as_save_IFS
  6242. fi
  6243. fi
  6244. RANLIB=$ac_cv_prog_RANLIB
  6245. if test -n "$RANLIB"; then
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6247. $as_echo "$RANLIB" >&6; }
  6248. else
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6250. $as_echo "no" >&6; }
  6251. fi
  6252. fi
  6253. if test -z "$ac_cv_prog_RANLIB"; then
  6254. ac_ct_RANLIB=$RANLIB
  6255. # Extract the first word of "ranlib", so it can be a program name with args.
  6256. set dummy ranlib; ac_word=$2
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6258. $as_echo_n "checking for $ac_word... " >&6; }
  6259. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6260. $as_echo_n "(cached) " >&6
  6261. else
  6262. if test -n "$ac_ct_RANLIB"; then
  6263. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6264. else
  6265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6266. for as_dir in $PATH
  6267. do
  6268. IFS=$as_save_IFS
  6269. test -z "$as_dir" && as_dir=.
  6270. for ac_exec_ext in '' $ac_executable_extensions; do
  6271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6272. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6274. break 2
  6275. fi
  6276. done
  6277. done
  6278. IFS=$as_save_IFS
  6279. fi
  6280. fi
  6281. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6282. if test -n "$ac_ct_RANLIB"; then
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6284. $as_echo "$ac_ct_RANLIB" >&6; }
  6285. else
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6287. $as_echo "no" >&6; }
  6288. fi
  6289. if test "x$ac_ct_RANLIB" = x; then
  6290. RANLIB=":"
  6291. else
  6292. case $cross_compiling:$ac_tool_warned in
  6293. yes:)
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6295. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6296. ac_tool_warned=yes ;;
  6297. esac
  6298. RANLIB=$ac_ct_RANLIB
  6299. fi
  6300. else
  6301. RANLIB="$ac_cv_prog_RANLIB"
  6302. fi
  6303. test -z "$RANLIB" && RANLIB=:
  6304. # Determine commands to create old-style static archives.
  6305. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6306. old_postinstall_cmds='chmod 644 $oldlib'
  6307. old_postuninstall_cmds=
  6308. if test -n "$RANLIB"; then
  6309. case $host_os in
  6310. openbsd*)
  6311. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6312. ;;
  6313. *)
  6314. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6315. ;;
  6316. esac
  6317. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6318. fi
  6319. case $host_os in
  6320. darwin*)
  6321. lock_old_archive_extraction=yes ;;
  6322. *)
  6323. lock_old_archive_extraction=no ;;
  6324. esac
  6325. # If no C compiler was specified, use CC.
  6326. LTCC=${LTCC-"$CC"}
  6327. # If no C compiler flags were specified, use CFLAGS.
  6328. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6329. # Allow CC to be a program name with arguments.
  6330. compiler=$CC
  6331. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6333. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6334. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. # These are sane defaults that work on at least a few old systems.
  6338. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6339. # Character class describing NM global symbol codes.
  6340. symcode='[BCDEGRST]'
  6341. # Regexp to match symbols that can be accessed directly from C.
  6342. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6343. # Define system-specific variables.
  6344. case $host_os in
  6345. aix*)
  6346. symcode='[BCDT]'
  6347. ;;
  6348. cygwin* | mingw* | pw32* | cegcc*)
  6349. symcode='[ABCDGISTW]'
  6350. ;;
  6351. hpux*)
  6352. if test "$host_cpu" = ia64; then
  6353. symcode='[ABCDEGRST]'
  6354. fi
  6355. ;;
  6356. irix* | nonstopux*)
  6357. symcode='[BCDEGRST]'
  6358. ;;
  6359. osf*)
  6360. symcode='[BCDEGQRST]'
  6361. ;;
  6362. solaris*)
  6363. symcode='[BDRT]'
  6364. ;;
  6365. sco3.2v5*)
  6366. symcode='[DT]'
  6367. ;;
  6368. sysv4.2uw2*)
  6369. symcode='[DT]'
  6370. ;;
  6371. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6372. symcode='[ABDT]'
  6373. ;;
  6374. sysv4)
  6375. symcode='[DFNSTU]'
  6376. ;;
  6377. esac
  6378. # If we're using GNU nm, then use its standard symbol codes.
  6379. case `$NM -V 2>&1` in
  6380. *GNU* | *'with BFD'*)
  6381. symcode='[ABCDGIRSTW]' ;;
  6382. esac
  6383. # Transform an extracted symbol line into a proper C declaration.
  6384. # Some systems (esp. on ia64) link data and code symbols differently,
  6385. # so use this general approach.
  6386. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6387. # Transform an extracted symbol line into symbol name and symbol address
  6388. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6389. 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'"
  6390. # Handle CRLF in mingw tool chain
  6391. opt_cr=
  6392. case $build_os in
  6393. mingw*)
  6394. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6395. ;;
  6396. esac
  6397. # Try without a prefix underscore, then with it.
  6398. for ac_symprfx in "" "_"; do
  6399. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6400. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6401. # Write the raw and C identifiers.
  6402. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6403. # Fake it for dumpbin and say T for any non-static function
  6404. # and D for any global variable.
  6405. # Also find C++ and __fastcall symbols from MSVC++,
  6406. # which start with @ or ?.
  6407. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6408. " {last_section=section; section=\$ 3};"\
  6409. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6410. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6411. " \$ 0!~/External *\|/{next};"\
  6412. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6413. " {if(hide[section]) next};"\
  6414. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6415. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6416. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6417. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6418. " ' prfx=^$ac_symprfx"
  6419. else
  6420. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6421. fi
  6422. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6423. # Check to see that the pipe works correctly.
  6424. pipe_works=no
  6425. rm -f conftest*
  6426. cat > conftest.$ac_ext <<_LT_EOF
  6427. #ifdef __cplusplus
  6428. extern "C" {
  6429. #endif
  6430. char nm_test_var;
  6431. void nm_test_func(void);
  6432. void nm_test_func(void){}
  6433. #ifdef __cplusplus
  6434. }
  6435. #endif
  6436. int main(){nm_test_var='a';nm_test_func();return(0);}
  6437. _LT_EOF
  6438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6439. (eval $ac_compile) 2>&5
  6440. ac_status=$?
  6441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6442. test $ac_status = 0; }; then
  6443. # Now try to grab the symbols.
  6444. nlist=conftest.nm
  6445. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6446. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6447. ac_status=$?
  6448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6449. test $ac_status = 0; } && test -s "$nlist"; then
  6450. # Try sorting and uniquifying the output.
  6451. if sort "$nlist" | uniq > "$nlist"T; then
  6452. mv -f "$nlist"T "$nlist"
  6453. else
  6454. rm -f "$nlist"T
  6455. fi
  6456. # Make sure that we snagged all the symbols we need.
  6457. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6458. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6459. cat <<_LT_EOF > conftest.$ac_ext
  6460. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6461. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6462. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6463. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6464. # define LT_DLSYM_CONST
  6465. #elif defined(__osf__)
  6466. /* This system does not cope well with relocations in const data. */
  6467. # define LT_DLSYM_CONST
  6468. #else
  6469. # define LT_DLSYM_CONST const
  6470. #endif
  6471. #ifdef __cplusplus
  6472. extern "C" {
  6473. #endif
  6474. _LT_EOF
  6475. # Now generate the symbol file.
  6476. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6477. cat <<_LT_EOF >> conftest.$ac_ext
  6478. /* The mapping between symbol names and symbols. */
  6479. LT_DLSYM_CONST struct {
  6480. const char *name;
  6481. void *address;
  6482. }
  6483. lt__PROGRAM__LTX_preloaded_symbols[] =
  6484. {
  6485. { "@PROGRAM@", (void *) 0 },
  6486. _LT_EOF
  6487. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6488. cat <<\_LT_EOF >> conftest.$ac_ext
  6489. {0, (void *) 0}
  6490. };
  6491. /* This works around a problem in FreeBSD linker */
  6492. #ifdef FREEBSD_WORKAROUND
  6493. static const void *lt_preloaded_setup() {
  6494. return lt__PROGRAM__LTX_preloaded_symbols;
  6495. }
  6496. #endif
  6497. #ifdef __cplusplus
  6498. }
  6499. #endif
  6500. _LT_EOF
  6501. # Now try linking the two files.
  6502. mv conftest.$ac_objext conftstm.$ac_objext
  6503. lt_globsym_save_LIBS=$LIBS
  6504. lt_globsym_save_CFLAGS=$CFLAGS
  6505. LIBS="conftstm.$ac_objext"
  6506. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6508. (eval $ac_link) 2>&5
  6509. ac_status=$?
  6510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6511. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6512. pipe_works=yes
  6513. fi
  6514. LIBS=$lt_globsym_save_LIBS
  6515. CFLAGS=$lt_globsym_save_CFLAGS
  6516. else
  6517. echo "cannot find nm_test_func in $nlist" >&5
  6518. fi
  6519. else
  6520. echo "cannot find nm_test_var in $nlist" >&5
  6521. fi
  6522. else
  6523. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6524. fi
  6525. else
  6526. echo "$progname: failed program was:" >&5
  6527. cat conftest.$ac_ext >&5
  6528. fi
  6529. rm -rf conftest* conftst*
  6530. # Do not use the global_symbol_pipe unless it works.
  6531. if test "$pipe_works" = yes; then
  6532. break
  6533. else
  6534. lt_cv_sys_global_symbol_pipe=
  6535. fi
  6536. done
  6537. fi
  6538. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6539. lt_cv_sys_global_symbol_to_cdecl=
  6540. fi
  6541. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6543. $as_echo "failed" >&6; }
  6544. else
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6546. $as_echo "ok" >&6; }
  6547. fi
  6548. # Response file support.
  6549. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6550. nm_file_list_spec='@'
  6551. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6552. nm_file_list_spec='@'
  6553. fi
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6555. $as_echo_n "checking for sysroot... " >&6; }
  6556. # Check whether --with-sysroot was given.
  6557. if test "${with_sysroot+set}" = set; then :
  6558. withval=$with_sysroot;
  6559. else
  6560. with_sysroot=no
  6561. fi
  6562. lt_sysroot=
  6563. case ${with_sysroot} in #(
  6564. yes)
  6565. if test "$GCC" = yes; then
  6566. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6567. fi
  6568. ;; #(
  6569. /*)
  6570. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6571. ;; #(
  6572. no|'')
  6573. ;; #(
  6574. *)
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6576. $as_echo "${with_sysroot}" >&6; }
  6577. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6578. ;;
  6579. esac
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6581. $as_echo "${lt_sysroot:-no}" >&6; }
  6582. # Check whether --enable-libtool-lock was given.
  6583. if test "${enable_libtool_lock+set}" = set; then :
  6584. enableval=$enable_libtool_lock;
  6585. fi
  6586. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6587. # Some flags need to be propagated to the compiler or linker for good
  6588. # libtool support.
  6589. case $host in
  6590. ia64-*-hpux*)
  6591. # Find out which ABI we are using.
  6592. echo 'int i;' > conftest.$ac_ext
  6593. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6594. (eval $ac_compile) 2>&5
  6595. ac_status=$?
  6596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6597. test $ac_status = 0; }; then
  6598. case `/usr/bin/file conftest.$ac_objext` in
  6599. *ELF-32*)
  6600. HPUX_IA64_MODE="32"
  6601. ;;
  6602. *ELF-64*)
  6603. HPUX_IA64_MODE="64"
  6604. ;;
  6605. esac
  6606. fi
  6607. rm -rf conftest*
  6608. ;;
  6609. *-*-irix6*)
  6610. # Find out which ABI we are using.
  6611. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6612. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6613. (eval $ac_compile) 2>&5
  6614. ac_status=$?
  6615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6616. test $ac_status = 0; }; then
  6617. if test "$lt_cv_prog_gnu_ld" = yes; then
  6618. case `/usr/bin/file conftest.$ac_objext` in
  6619. *32-bit*)
  6620. LD="${LD-ld} -melf32bsmip"
  6621. ;;
  6622. *N32*)
  6623. LD="${LD-ld} -melf32bmipn32"
  6624. ;;
  6625. *64-bit*)
  6626. LD="${LD-ld} -melf64bmip"
  6627. ;;
  6628. esac
  6629. else
  6630. case `/usr/bin/file conftest.$ac_objext` in
  6631. *32-bit*)
  6632. LD="${LD-ld} -32"
  6633. ;;
  6634. *N32*)
  6635. LD="${LD-ld} -n32"
  6636. ;;
  6637. *64-bit*)
  6638. LD="${LD-ld} -64"
  6639. ;;
  6640. esac
  6641. fi
  6642. fi
  6643. rm -rf conftest*
  6644. ;;
  6645. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6646. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6647. # Find out which ABI we are using.
  6648. echo 'int i;' > conftest.$ac_ext
  6649. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6650. (eval $ac_compile) 2>&5
  6651. ac_status=$?
  6652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6653. test $ac_status = 0; }; then
  6654. case `/usr/bin/file conftest.o` in
  6655. *32-bit*)
  6656. case $host in
  6657. x86_64-*kfreebsd*-gnu)
  6658. LD="${LD-ld} -m elf_i386_fbsd"
  6659. ;;
  6660. x86_64-*linux*)
  6661. LD="${LD-ld} -m elf_i386"
  6662. ;;
  6663. powerpc64le-*linux*)
  6664. LD="${LD-ld} -m elf32lppclinux"
  6665. ;;
  6666. powerpc64-*linux*)
  6667. LD="${LD-ld} -m elf32ppclinux"
  6668. ;;
  6669. s390x-*linux*)
  6670. LD="${LD-ld} -m elf_s390"
  6671. ;;
  6672. sparc64-*linux*)
  6673. LD="${LD-ld} -m elf32_sparc"
  6674. ;;
  6675. esac
  6676. ;;
  6677. *64-bit*)
  6678. case $host in
  6679. x86_64-*kfreebsd*-gnu)
  6680. LD="${LD-ld} -m elf_x86_64_fbsd"
  6681. ;;
  6682. x86_64-*linux*)
  6683. LD="${LD-ld} -m elf_x86_64"
  6684. ;;
  6685. powerpcle-*linux*)
  6686. LD="${LD-ld} -m elf64lppc"
  6687. ;;
  6688. powerpc-*linux*)
  6689. LD="${LD-ld} -m elf64ppc"
  6690. ;;
  6691. s390*-*linux*|s390*-*tpf*)
  6692. LD="${LD-ld} -m elf64_s390"
  6693. ;;
  6694. sparc*-*linux*)
  6695. LD="${LD-ld} -m elf64_sparc"
  6696. ;;
  6697. esac
  6698. ;;
  6699. esac
  6700. fi
  6701. rm -rf conftest*
  6702. ;;
  6703. *-*-sco3.2v5*)
  6704. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6705. SAVE_CFLAGS="$CFLAGS"
  6706. CFLAGS="$CFLAGS -belf"
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6708. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6709. if ${lt_cv_cc_needs_belf+:} false; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. ac_ext=c
  6713. ac_cpp='$CPP $CPPFLAGS'
  6714. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6715. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6716. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6718. /* end confdefs.h. */
  6719. int
  6720. main ()
  6721. {
  6722. ;
  6723. return 0;
  6724. }
  6725. _ACEOF
  6726. if ac_fn_c_try_link "$LINENO"; then :
  6727. lt_cv_cc_needs_belf=yes
  6728. else
  6729. lt_cv_cc_needs_belf=no
  6730. fi
  6731. rm -f core conftest.err conftest.$ac_objext \
  6732. conftest$ac_exeext conftest.$ac_ext
  6733. ac_ext=c
  6734. ac_cpp='$CPP $CPPFLAGS'
  6735. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6736. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6737. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6738. fi
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6740. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6741. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6742. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6743. CFLAGS="$SAVE_CFLAGS"
  6744. fi
  6745. ;;
  6746. *-*solaris*)
  6747. # Find out which ABI we are using.
  6748. echo 'int i;' > conftest.$ac_ext
  6749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6750. (eval $ac_compile) 2>&5
  6751. ac_status=$?
  6752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6753. test $ac_status = 0; }; then
  6754. case `/usr/bin/file conftest.o` in
  6755. *64-bit*)
  6756. case $lt_cv_prog_gnu_ld in
  6757. yes*)
  6758. case $host in
  6759. i?86-*-solaris*)
  6760. LD="${LD-ld} -m elf_x86_64"
  6761. ;;
  6762. sparc*-*-solaris*)
  6763. LD="${LD-ld} -m elf64_sparc"
  6764. ;;
  6765. esac
  6766. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6767. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6768. LD="${LD-ld}_sol2"
  6769. fi
  6770. ;;
  6771. *)
  6772. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6773. LD="${LD-ld} -64"
  6774. fi
  6775. ;;
  6776. esac
  6777. ;;
  6778. esac
  6779. fi
  6780. rm -rf conftest*
  6781. ;;
  6782. esac
  6783. need_locks="$enable_libtool_lock"
  6784. if test -n "$ac_tool_prefix"; then
  6785. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6786. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6788. $as_echo_n "checking for $ac_word... " >&6; }
  6789. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. if test -n "$MANIFEST_TOOL"; then
  6793. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6794. else
  6795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6796. for as_dir in $PATH
  6797. do
  6798. IFS=$as_save_IFS
  6799. test -z "$as_dir" && as_dir=.
  6800. for ac_exec_ext in '' $ac_executable_extensions; do
  6801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6802. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6804. break 2
  6805. fi
  6806. done
  6807. done
  6808. IFS=$as_save_IFS
  6809. fi
  6810. fi
  6811. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6812. if test -n "$MANIFEST_TOOL"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6814. $as_echo "$MANIFEST_TOOL" >&6; }
  6815. else
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6817. $as_echo "no" >&6; }
  6818. fi
  6819. fi
  6820. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6821. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6822. # Extract the first word of "mt", so it can be a program name with args.
  6823. set dummy mt; ac_word=$2
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6825. $as_echo_n "checking for $ac_word... " >&6; }
  6826. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6830. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6831. else
  6832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6833. for as_dir in $PATH
  6834. do
  6835. IFS=$as_save_IFS
  6836. test -z "$as_dir" && as_dir=.
  6837. for ac_exec_ext in '' $ac_executable_extensions; do
  6838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6839. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6841. break 2
  6842. fi
  6843. done
  6844. done
  6845. IFS=$as_save_IFS
  6846. fi
  6847. fi
  6848. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6849. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6851. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6852. else
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6854. $as_echo "no" >&6; }
  6855. fi
  6856. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6857. MANIFEST_TOOL=":"
  6858. else
  6859. case $cross_compiling:$ac_tool_warned in
  6860. yes:)
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6862. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6863. ac_tool_warned=yes ;;
  6864. esac
  6865. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6866. fi
  6867. else
  6868. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6869. fi
  6870. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6872. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6873. if ${lt_cv_path_mainfest_tool+:} false; then :
  6874. $as_echo_n "(cached) " >&6
  6875. else
  6876. lt_cv_path_mainfest_tool=no
  6877. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6878. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6879. cat conftest.err >&5
  6880. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6881. lt_cv_path_mainfest_tool=yes
  6882. fi
  6883. rm -f conftest*
  6884. fi
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6886. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6887. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6888. MANIFEST_TOOL=:
  6889. fi
  6890. case $host_os in
  6891. rhapsody* | darwin*)
  6892. if test -n "$ac_tool_prefix"; then
  6893. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6894. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6896. $as_echo_n "checking for $ac_word... " >&6; }
  6897. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6898. $as_echo_n "(cached) " >&6
  6899. else
  6900. if test -n "$DSYMUTIL"; then
  6901. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6902. else
  6903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6904. for as_dir in $PATH
  6905. do
  6906. IFS=$as_save_IFS
  6907. test -z "$as_dir" && as_dir=.
  6908. for ac_exec_ext in '' $ac_executable_extensions; do
  6909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6910. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6912. break 2
  6913. fi
  6914. done
  6915. done
  6916. IFS=$as_save_IFS
  6917. fi
  6918. fi
  6919. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6920. if test -n "$DSYMUTIL"; then
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6922. $as_echo "$DSYMUTIL" >&6; }
  6923. else
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6925. $as_echo "no" >&6; }
  6926. fi
  6927. fi
  6928. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6929. ac_ct_DSYMUTIL=$DSYMUTIL
  6930. # Extract the first word of "dsymutil", so it can be a program name with args.
  6931. set dummy dsymutil; ac_word=$2
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6933. $as_echo_n "checking for $ac_word... " >&6; }
  6934. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6935. $as_echo_n "(cached) " >&6
  6936. else
  6937. if test -n "$ac_ct_DSYMUTIL"; then
  6938. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6939. else
  6940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6941. for as_dir in $PATH
  6942. do
  6943. IFS=$as_save_IFS
  6944. test -z "$as_dir" && as_dir=.
  6945. for ac_exec_ext in '' $ac_executable_extensions; do
  6946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6947. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6949. break 2
  6950. fi
  6951. done
  6952. done
  6953. IFS=$as_save_IFS
  6954. fi
  6955. fi
  6956. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6957. if test -n "$ac_ct_DSYMUTIL"; then
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6959. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6960. else
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6962. $as_echo "no" >&6; }
  6963. fi
  6964. if test "x$ac_ct_DSYMUTIL" = x; then
  6965. DSYMUTIL=":"
  6966. else
  6967. case $cross_compiling:$ac_tool_warned in
  6968. yes:)
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6970. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6971. ac_tool_warned=yes ;;
  6972. esac
  6973. DSYMUTIL=$ac_ct_DSYMUTIL
  6974. fi
  6975. else
  6976. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6977. fi
  6978. if test -n "$ac_tool_prefix"; then
  6979. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6980. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6982. $as_echo_n "checking for $ac_word... " >&6; }
  6983. if ${ac_cv_prog_NMEDIT+:} false; then :
  6984. $as_echo_n "(cached) " >&6
  6985. else
  6986. if test -n "$NMEDIT"; then
  6987. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6988. else
  6989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6990. for as_dir in $PATH
  6991. do
  6992. IFS=$as_save_IFS
  6993. test -z "$as_dir" && as_dir=.
  6994. for ac_exec_ext in '' $ac_executable_extensions; do
  6995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6996. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6998. break 2
  6999. fi
  7000. done
  7001. done
  7002. IFS=$as_save_IFS
  7003. fi
  7004. fi
  7005. NMEDIT=$ac_cv_prog_NMEDIT
  7006. if test -n "$NMEDIT"; then
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7008. $as_echo "$NMEDIT" >&6; }
  7009. else
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7011. $as_echo "no" >&6; }
  7012. fi
  7013. fi
  7014. if test -z "$ac_cv_prog_NMEDIT"; then
  7015. ac_ct_NMEDIT=$NMEDIT
  7016. # Extract the first word of "nmedit", so it can be a program name with args.
  7017. set dummy nmedit; ac_word=$2
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7019. $as_echo_n "checking for $ac_word... " >&6; }
  7020. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7021. $as_echo_n "(cached) " >&6
  7022. else
  7023. if test -n "$ac_ct_NMEDIT"; then
  7024. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7025. else
  7026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7027. for as_dir in $PATH
  7028. do
  7029. IFS=$as_save_IFS
  7030. test -z "$as_dir" && as_dir=.
  7031. for ac_exec_ext in '' $ac_executable_extensions; do
  7032. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7033. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7035. break 2
  7036. fi
  7037. done
  7038. done
  7039. IFS=$as_save_IFS
  7040. fi
  7041. fi
  7042. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7043. if test -n "$ac_ct_NMEDIT"; then
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7045. $as_echo "$ac_ct_NMEDIT" >&6; }
  7046. else
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7048. $as_echo "no" >&6; }
  7049. fi
  7050. if test "x$ac_ct_NMEDIT" = x; then
  7051. NMEDIT=":"
  7052. else
  7053. case $cross_compiling:$ac_tool_warned in
  7054. yes:)
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7056. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7057. ac_tool_warned=yes ;;
  7058. esac
  7059. NMEDIT=$ac_ct_NMEDIT
  7060. fi
  7061. else
  7062. NMEDIT="$ac_cv_prog_NMEDIT"
  7063. fi
  7064. if test -n "$ac_tool_prefix"; then
  7065. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7066. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7068. $as_echo_n "checking for $ac_word... " >&6; }
  7069. if ${ac_cv_prog_LIPO+:} false; then :
  7070. $as_echo_n "(cached) " >&6
  7071. else
  7072. if test -n "$LIPO"; then
  7073. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7074. else
  7075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7076. for as_dir in $PATH
  7077. do
  7078. IFS=$as_save_IFS
  7079. test -z "$as_dir" && as_dir=.
  7080. for ac_exec_ext in '' $ac_executable_extensions; do
  7081. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7082. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7083. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7084. break 2
  7085. fi
  7086. done
  7087. done
  7088. IFS=$as_save_IFS
  7089. fi
  7090. fi
  7091. LIPO=$ac_cv_prog_LIPO
  7092. if test -n "$LIPO"; then
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7094. $as_echo "$LIPO" >&6; }
  7095. else
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7097. $as_echo "no" >&6; }
  7098. fi
  7099. fi
  7100. if test -z "$ac_cv_prog_LIPO"; then
  7101. ac_ct_LIPO=$LIPO
  7102. # Extract the first word of "lipo", so it can be a program name with args.
  7103. set dummy lipo; ac_word=$2
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7105. $as_echo_n "checking for $ac_word... " >&6; }
  7106. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7107. $as_echo_n "(cached) " >&6
  7108. else
  7109. if test -n "$ac_ct_LIPO"; then
  7110. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7111. else
  7112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7113. for as_dir in $PATH
  7114. do
  7115. IFS=$as_save_IFS
  7116. test -z "$as_dir" && as_dir=.
  7117. for ac_exec_ext in '' $ac_executable_extensions; do
  7118. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7119. ac_cv_prog_ac_ct_LIPO="lipo"
  7120. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7121. break 2
  7122. fi
  7123. done
  7124. done
  7125. IFS=$as_save_IFS
  7126. fi
  7127. fi
  7128. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7129. if test -n "$ac_ct_LIPO"; then
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7131. $as_echo "$ac_ct_LIPO" >&6; }
  7132. else
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7134. $as_echo "no" >&6; }
  7135. fi
  7136. if test "x$ac_ct_LIPO" = x; then
  7137. LIPO=":"
  7138. else
  7139. case $cross_compiling:$ac_tool_warned in
  7140. yes:)
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7142. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7143. ac_tool_warned=yes ;;
  7144. esac
  7145. LIPO=$ac_ct_LIPO
  7146. fi
  7147. else
  7148. LIPO="$ac_cv_prog_LIPO"
  7149. fi
  7150. if test -n "$ac_tool_prefix"; then
  7151. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7152. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7154. $as_echo_n "checking for $ac_word... " >&6; }
  7155. if ${ac_cv_prog_OTOOL+:} false; then :
  7156. $as_echo_n "(cached) " >&6
  7157. else
  7158. if test -n "$OTOOL"; then
  7159. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7160. else
  7161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7162. for as_dir in $PATH
  7163. do
  7164. IFS=$as_save_IFS
  7165. test -z "$as_dir" && as_dir=.
  7166. for ac_exec_ext in '' $ac_executable_extensions; do
  7167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7168. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7170. break 2
  7171. fi
  7172. done
  7173. done
  7174. IFS=$as_save_IFS
  7175. fi
  7176. fi
  7177. OTOOL=$ac_cv_prog_OTOOL
  7178. if test -n "$OTOOL"; then
  7179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7180. $as_echo "$OTOOL" >&6; }
  7181. else
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7183. $as_echo "no" >&6; }
  7184. fi
  7185. fi
  7186. if test -z "$ac_cv_prog_OTOOL"; then
  7187. ac_ct_OTOOL=$OTOOL
  7188. # Extract the first word of "otool", so it can be a program name with args.
  7189. set dummy otool; ac_word=$2
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7191. $as_echo_n "checking for $ac_word... " >&6; }
  7192. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7193. $as_echo_n "(cached) " >&6
  7194. else
  7195. if test -n "$ac_ct_OTOOL"; then
  7196. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7197. else
  7198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7199. for as_dir in $PATH
  7200. do
  7201. IFS=$as_save_IFS
  7202. test -z "$as_dir" && as_dir=.
  7203. for ac_exec_ext in '' $ac_executable_extensions; do
  7204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7205. ac_cv_prog_ac_ct_OTOOL="otool"
  7206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7207. break 2
  7208. fi
  7209. done
  7210. done
  7211. IFS=$as_save_IFS
  7212. fi
  7213. fi
  7214. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7215. if test -n "$ac_ct_OTOOL"; then
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7217. $as_echo "$ac_ct_OTOOL" >&6; }
  7218. else
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7220. $as_echo "no" >&6; }
  7221. fi
  7222. if test "x$ac_ct_OTOOL" = x; then
  7223. OTOOL=":"
  7224. else
  7225. case $cross_compiling:$ac_tool_warned in
  7226. yes:)
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7228. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7229. ac_tool_warned=yes ;;
  7230. esac
  7231. OTOOL=$ac_ct_OTOOL
  7232. fi
  7233. else
  7234. OTOOL="$ac_cv_prog_OTOOL"
  7235. fi
  7236. if test -n "$ac_tool_prefix"; then
  7237. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7238. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7240. $as_echo_n "checking for $ac_word... " >&6; }
  7241. if ${ac_cv_prog_OTOOL64+:} false; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. if test -n "$OTOOL64"; then
  7245. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7246. else
  7247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7248. for as_dir in $PATH
  7249. do
  7250. IFS=$as_save_IFS
  7251. test -z "$as_dir" && as_dir=.
  7252. for ac_exec_ext in '' $ac_executable_extensions; do
  7253. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7254. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7255. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7256. break 2
  7257. fi
  7258. done
  7259. done
  7260. IFS=$as_save_IFS
  7261. fi
  7262. fi
  7263. OTOOL64=$ac_cv_prog_OTOOL64
  7264. if test -n "$OTOOL64"; then
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7266. $as_echo "$OTOOL64" >&6; }
  7267. else
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7269. $as_echo "no" >&6; }
  7270. fi
  7271. fi
  7272. if test -z "$ac_cv_prog_OTOOL64"; then
  7273. ac_ct_OTOOL64=$OTOOL64
  7274. # Extract the first word of "otool64", so it can be a program name with args.
  7275. set dummy otool64; ac_word=$2
  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7277. $as_echo_n "checking for $ac_word... " >&6; }
  7278. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7279. $as_echo_n "(cached) " >&6
  7280. else
  7281. if test -n "$ac_ct_OTOOL64"; then
  7282. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7283. else
  7284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7285. for as_dir in $PATH
  7286. do
  7287. IFS=$as_save_IFS
  7288. test -z "$as_dir" && as_dir=.
  7289. for ac_exec_ext in '' $ac_executable_extensions; do
  7290. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7291. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7293. break 2
  7294. fi
  7295. done
  7296. done
  7297. IFS=$as_save_IFS
  7298. fi
  7299. fi
  7300. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7301. if test -n "$ac_ct_OTOOL64"; then
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7303. $as_echo "$ac_ct_OTOOL64" >&6; }
  7304. else
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7306. $as_echo "no" >&6; }
  7307. fi
  7308. if test "x$ac_ct_OTOOL64" = x; then
  7309. OTOOL64=":"
  7310. else
  7311. case $cross_compiling:$ac_tool_warned in
  7312. yes:)
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7314. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7315. ac_tool_warned=yes ;;
  7316. esac
  7317. OTOOL64=$ac_ct_OTOOL64
  7318. fi
  7319. else
  7320. OTOOL64="$ac_cv_prog_OTOOL64"
  7321. fi
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7323. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7324. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7325. $as_echo_n "(cached) " >&6
  7326. else
  7327. lt_cv_apple_cc_single_mod=no
  7328. if test -z "${LT_MULTI_MODULE}"; then
  7329. # By default we will add the -single_module flag. You can override
  7330. # by either setting the environment variable LT_MULTI_MODULE
  7331. # non-empty at configure time, or by adding -multi_module to the
  7332. # link flags.
  7333. rm -rf libconftest.dylib*
  7334. echo "int foo(void){return 1;}" > conftest.c
  7335. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7336. -dynamiclib -Wl,-single_module conftest.c" >&5
  7337. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7338. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7339. _lt_result=$?
  7340. # If there is a non-empty error log, and "single_module"
  7341. # appears in it, assume the flag caused a linker warning
  7342. if test -s conftest.err && $GREP single_module conftest.err; then
  7343. cat conftest.err >&5
  7344. # Otherwise, if the output was created with a 0 exit code from
  7345. # the compiler, it worked.
  7346. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7347. lt_cv_apple_cc_single_mod=yes
  7348. else
  7349. cat conftest.err >&5
  7350. fi
  7351. rm -rf libconftest.dylib*
  7352. rm -f conftest.*
  7353. fi
  7354. fi
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7356. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7358. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7359. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7360. $as_echo_n "(cached) " >&6
  7361. else
  7362. lt_cv_ld_exported_symbols_list=no
  7363. save_LDFLAGS=$LDFLAGS
  7364. echo "_main" > conftest.sym
  7365. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7367. /* end confdefs.h. */
  7368. int
  7369. main ()
  7370. {
  7371. ;
  7372. return 0;
  7373. }
  7374. _ACEOF
  7375. if ac_fn_c_try_link "$LINENO"; then :
  7376. lt_cv_ld_exported_symbols_list=yes
  7377. else
  7378. lt_cv_ld_exported_symbols_list=no
  7379. fi
  7380. rm -f core conftest.err conftest.$ac_objext \
  7381. conftest$ac_exeext conftest.$ac_ext
  7382. LDFLAGS="$save_LDFLAGS"
  7383. fi
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7385. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7387. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7388. if ${lt_cv_ld_force_load+:} false; then :
  7389. $as_echo_n "(cached) " >&6
  7390. else
  7391. lt_cv_ld_force_load=no
  7392. cat > conftest.c << _LT_EOF
  7393. int forced_loaded() { return 2;}
  7394. _LT_EOF
  7395. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7396. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7397. echo "$AR cru libconftest.a conftest.o" >&5
  7398. $AR cru libconftest.a conftest.o 2>&5
  7399. echo "$RANLIB libconftest.a" >&5
  7400. $RANLIB libconftest.a 2>&5
  7401. cat > conftest.c << _LT_EOF
  7402. int main() { return 0;}
  7403. _LT_EOF
  7404. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7405. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7406. _lt_result=$?
  7407. if test -s conftest.err && $GREP force_load conftest.err; then
  7408. cat conftest.err >&5
  7409. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7410. lt_cv_ld_force_load=yes
  7411. else
  7412. cat conftest.err >&5
  7413. fi
  7414. rm -f conftest.err libconftest.a conftest conftest.c
  7415. rm -rf conftest.dSYM
  7416. fi
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7418. $as_echo "$lt_cv_ld_force_load" >&6; }
  7419. case $host_os in
  7420. rhapsody* | darwin1.[012])
  7421. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7422. darwin1.*)
  7423. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7424. darwin*) # darwin 5.x on
  7425. # if running on 10.5 or later, the deployment target defaults
  7426. # to the OS version, if on x86, and 10.4, the deployment
  7427. # target defaults to 10.4. Don't you love it?
  7428. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7429. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7430. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7431. 10.[012]*)
  7432. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7433. 10.*)
  7434. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7435. esac
  7436. ;;
  7437. esac
  7438. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7439. _lt_dar_single_mod='$single_module'
  7440. fi
  7441. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7442. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7443. else
  7444. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7445. fi
  7446. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7447. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7448. else
  7449. _lt_dsymutil=
  7450. fi
  7451. ;;
  7452. esac
  7453. ac_ext=c
  7454. ac_cpp='$CPP $CPPFLAGS'
  7455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7459. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7460. # On Suns, sometimes $CPP names a directory.
  7461. if test -n "$CPP" && test -d "$CPP"; then
  7462. CPP=
  7463. fi
  7464. if test -z "$CPP"; then
  7465. if ${ac_cv_prog_CPP+:} false; then :
  7466. $as_echo_n "(cached) " >&6
  7467. else
  7468. # Double quotes because CPP needs to be expanded
  7469. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7470. do
  7471. ac_preproc_ok=false
  7472. for ac_c_preproc_warn_flag in '' yes
  7473. do
  7474. # Use a header file that comes with gcc, so configuring glibc
  7475. # with a fresh cross-compiler works.
  7476. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7477. # <limits.h> exists even on freestanding compilers.
  7478. # On the NeXT, cc -E runs the code through the compiler's parser,
  7479. # not just through cpp. "Syntax error" is here to catch this case.
  7480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7481. /* end confdefs.h. */
  7482. #ifdef __STDC__
  7483. # include <limits.h>
  7484. #else
  7485. # include <assert.h>
  7486. #endif
  7487. Syntax error
  7488. _ACEOF
  7489. if ac_fn_c_try_cpp "$LINENO"; then :
  7490. else
  7491. # Broken: fails on valid input.
  7492. continue
  7493. fi
  7494. rm -f conftest.err conftest.i conftest.$ac_ext
  7495. # OK, works on sane cases. Now check whether nonexistent headers
  7496. # can be detected and how.
  7497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7498. /* end confdefs.h. */
  7499. #include <ac_nonexistent.h>
  7500. _ACEOF
  7501. if ac_fn_c_try_cpp "$LINENO"; then :
  7502. # Broken: success on invalid input.
  7503. continue
  7504. else
  7505. # Passes both tests.
  7506. ac_preproc_ok=:
  7507. break
  7508. fi
  7509. rm -f conftest.err conftest.i conftest.$ac_ext
  7510. done
  7511. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7512. rm -f conftest.i conftest.err conftest.$ac_ext
  7513. if $ac_preproc_ok; then :
  7514. break
  7515. fi
  7516. done
  7517. ac_cv_prog_CPP=$CPP
  7518. fi
  7519. CPP=$ac_cv_prog_CPP
  7520. else
  7521. ac_cv_prog_CPP=$CPP
  7522. fi
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7524. $as_echo "$CPP" >&6; }
  7525. ac_preproc_ok=false
  7526. for ac_c_preproc_warn_flag in '' yes
  7527. do
  7528. # Use a header file that comes with gcc, so configuring glibc
  7529. # with a fresh cross-compiler works.
  7530. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7531. # <limits.h> exists even on freestanding compilers.
  7532. # On the NeXT, cc -E runs the code through the compiler's parser,
  7533. # not just through cpp. "Syntax error" is here to catch this case.
  7534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7535. /* end confdefs.h. */
  7536. #ifdef __STDC__
  7537. # include <limits.h>
  7538. #else
  7539. # include <assert.h>
  7540. #endif
  7541. Syntax error
  7542. _ACEOF
  7543. if ac_fn_c_try_cpp "$LINENO"; then :
  7544. else
  7545. # Broken: fails on valid input.
  7546. continue
  7547. fi
  7548. rm -f conftest.err conftest.i conftest.$ac_ext
  7549. # OK, works on sane cases. Now check whether nonexistent headers
  7550. # can be detected and how.
  7551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7552. /* end confdefs.h. */
  7553. #include <ac_nonexistent.h>
  7554. _ACEOF
  7555. if ac_fn_c_try_cpp "$LINENO"; then :
  7556. # Broken: success on invalid input.
  7557. continue
  7558. else
  7559. # Passes both tests.
  7560. ac_preproc_ok=:
  7561. break
  7562. fi
  7563. rm -f conftest.err conftest.i conftest.$ac_ext
  7564. done
  7565. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7566. rm -f conftest.i conftest.err conftest.$ac_ext
  7567. if $ac_preproc_ok; then :
  7568. else
  7569. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7570. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7571. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7572. See \`config.log' for more details" "$LINENO" 5; }
  7573. fi
  7574. ac_ext=c
  7575. ac_cpp='$CPP $CPPFLAGS'
  7576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7580. $as_echo_n "checking for ANSI C header files... " >&6; }
  7581. if ${ac_cv_header_stdc+:} false; then :
  7582. $as_echo_n "(cached) " >&6
  7583. else
  7584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7585. /* end confdefs.h. */
  7586. #include <stdlib.h>
  7587. #include <stdarg.h>
  7588. #include <string.h>
  7589. #include <float.h>
  7590. int
  7591. main ()
  7592. {
  7593. ;
  7594. return 0;
  7595. }
  7596. _ACEOF
  7597. if ac_fn_c_try_compile "$LINENO"; then :
  7598. ac_cv_header_stdc=yes
  7599. else
  7600. ac_cv_header_stdc=no
  7601. fi
  7602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7603. if test $ac_cv_header_stdc = yes; then
  7604. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7606. /* end confdefs.h. */
  7607. #include <string.h>
  7608. _ACEOF
  7609. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7610. $EGREP "memchr" >/dev/null 2>&1; then :
  7611. else
  7612. ac_cv_header_stdc=no
  7613. fi
  7614. rm -f conftest*
  7615. fi
  7616. if test $ac_cv_header_stdc = yes; then
  7617. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7619. /* end confdefs.h. */
  7620. #include <stdlib.h>
  7621. _ACEOF
  7622. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7623. $EGREP "free" >/dev/null 2>&1; then :
  7624. else
  7625. ac_cv_header_stdc=no
  7626. fi
  7627. rm -f conftest*
  7628. fi
  7629. if test $ac_cv_header_stdc = yes; then
  7630. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7631. if test "$cross_compiling" = yes; then :
  7632. :
  7633. else
  7634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7635. /* end confdefs.h. */
  7636. #include <ctype.h>
  7637. #include <stdlib.h>
  7638. #if ((' ' & 0x0FF) == 0x020)
  7639. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7640. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7641. #else
  7642. # define ISLOWER(c) \
  7643. (('a' <= (c) && (c) <= 'i') \
  7644. || ('j' <= (c) && (c) <= 'r') \
  7645. || ('s' <= (c) && (c) <= 'z'))
  7646. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7647. #endif
  7648. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7649. int
  7650. main ()
  7651. {
  7652. int i;
  7653. for (i = 0; i < 256; i++)
  7654. if (XOR (islower (i), ISLOWER (i))
  7655. || toupper (i) != TOUPPER (i))
  7656. return 2;
  7657. return 0;
  7658. }
  7659. _ACEOF
  7660. if ac_fn_c_try_run "$LINENO"; then :
  7661. else
  7662. ac_cv_header_stdc=no
  7663. fi
  7664. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7665. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7666. fi
  7667. fi
  7668. fi
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7670. $as_echo "$ac_cv_header_stdc" >&6; }
  7671. if test $ac_cv_header_stdc = yes; then
  7672. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7673. fi
  7674. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7675. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7676. inttypes.h stdint.h unistd.h
  7677. do :
  7678. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7679. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7680. "
  7681. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7682. cat >>confdefs.h <<_ACEOF
  7683. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7684. _ACEOF
  7685. fi
  7686. done
  7687. for ac_header in dlfcn.h
  7688. do :
  7689. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7690. "
  7691. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7692. cat >>confdefs.h <<_ACEOF
  7693. #define HAVE_DLFCN_H 1
  7694. _ACEOF
  7695. fi
  7696. done
  7697. func_stripname_cnf ()
  7698. {
  7699. case ${2} in
  7700. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7701. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7702. esac
  7703. } # func_stripname_cnf
  7704. # Set options
  7705. enable_dlopen=no
  7706. enable_win32_dll=no
  7707. # Check whether --enable-shared was given.
  7708. if test "${enable_shared+set}" = set; then :
  7709. enableval=$enable_shared; p=${PACKAGE-default}
  7710. case $enableval in
  7711. yes) enable_shared=yes ;;
  7712. no) enable_shared=no ;;
  7713. *)
  7714. enable_shared=no
  7715. # Look at the argument we got. We use all the common list separators.
  7716. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7717. for pkg in $enableval; do
  7718. IFS="$lt_save_ifs"
  7719. if test "X$pkg" = "X$p"; then
  7720. enable_shared=yes
  7721. fi
  7722. done
  7723. IFS="$lt_save_ifs"
  7724. ;;
  7725. esac
  7726. else
  7727. enable_shared=yes
  7728. fi
  7729. # Check whether --with-pic was given.
  7730. if test "${with_pic+set}" = set; then :
  7731. withval=$with_pic; lt_p=${PACKAGE-default}
  7732. case $withval in
  7733. yes|no) pic_mode=$withval ;;
  7734. *)
  7735. pic_mode=default
  7736. # Look at the argument we got. We use all the common list separators.
  7737. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7738. for lt_pkg in $withval; do
  7739. IFS="$lt_save_ifs"
  7740. if test "X$lt_pkg" = "X$lt_p"; then
  7741. pic_mode=yes
  7742. fi
  7743. done
  7744. IFS="$lt_save_ifs"
  7745. ;;
  7746. esac
  7747. else
  7748. pic_mode=default
  7749. fi
  7750. test -z "$pic_mode" && pic_mode=default
  7751. # Check whether --enable-fast-install was given.
  7752. if test "${enable_fast_install+set}" = set; then :
  7753. enableval=$enable_fast_install; p=${PACKAGE-default}
  7754. case $enableval in
  7755. yes) enable_fast_install=yes ;;
  7756. no) enable_fast_install=no ;;
  7757. *)
  7758. enable_fast_install=no
  7759. # Look at the argument we got. We use all the common list separators.
  7760. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7761. for pkg in $enableval; do
  7762. IFS="$lt_save_ifs"
  7763. if test "X$pkg" = "X$p"; then
  7764. enable_fast_install=yes
  7765. fi
  7766. done
  7767. IFS="$lt_save_ifs"
  7768. ;;
  7769. esac
  7770. else
  7771. enable_fast_install=yes
  7772. fi
  7773. # This can be used to rebuild libtool when needed
  7774. LIBTOOL_DEPS="$ltmain"
  7775. # Always use our own libtool.
  7776. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7777. test -z "$LN_S" && LN_S="ln -s"
  7778. if test -n "${ZSH_VERSION+set}" ; then
  7779. setopt NO_GLOB_SUBST
  7780. fi
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7782. $as_echo_n "checking for objdir... " >&6; }
  7783. if ${lt_cv_objdir+:} false; then :
  7784. $as_echo_n "(cached) " >&6
  7785. else
  7786. rm -f .libs 2>/dev/null
  7787. mkdir .libs 2>/dev/null
  7788. if test -d .libs; then
  7789. lt_cv_objdir=.libs
  7790. else
  7791. # MS-DOS does not allow filenames that begin with a dot.
  7792. lt_cv_objdir=_libs
  7793. fi
  7794. rmdir .libs 2>/dev/null
  7795. fi
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7797. $as_echo "$lt_cv_objdir" >&6; }
  7798. objdir=$lt_cv_objdir
  7799. cat >>confdefs.h <<_ACEOF
  7800. #define LT_OBJDIR "$lt_cv_objdir/"
  7801. _ACEOF
  7802. case $host_os in
  7803. aix3*)
  7804. # AIX sometimes has problems with the GCC collect2 program. For some
  7805. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7806. # vanish in a puff of smoke.
  7807. if test "X${COLLECT_NAMES+set}" != Xset; then
  7808. COLLECT_NAMES=
  7809. export COLLECT_NAMES
  7810. fi
  7811. ;;
  7812. esac
  7813. # Global variables:
  7814. ofile=libtool
  7815. can_build_shared=yes
  7816. # All known linkers require a `.a' archive for static linking (except MSVC,
  7817. # which needs '.lib').
  7818. libext=a
  7819. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7820. old_CC="$CC"
  7821. old_CFLAGS="$CFLAGS"
  7822. # Set sane defaults for various variables
  7823. test -z "$CC" && CC=cc
  7824. test -z "$LTCC" && LTCC=$CC
  7825. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7826. test -z "$LD" && LD=ld
  7827. test -z "$ac_objext" && ac_objext=o
  7828. for cc_temp in $compiler""; do
  7829. case $cc_temp in
  7830. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7831. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7832. \-*) ;;
  7833. *) break;;
  7834. esac
  7835. done
  7836. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7837. # Only perform the check for file, if the check method requires it
  7838. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7839. case $deplibs_check_method in
  7840. file_magic*)
  7841. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7843. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7844. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7845. $as_echo_n "(cached) " >&6
  7846. else
  7847. case $MAGIC_CMD in
  7848. [\\/*] | ?:[\\/]*)
  7849. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7850. ;;
  7851. *)
  7852. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7853. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7854. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7855. for ac_dir in $ac_dummy; do
  7856. IFS="$lt_save_ifs"
  7857. test -z "$ac_dir" && ac_dir=.
  7858. if test -f $ac_dir/${ac_tool_prefix}file; then
  7859. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7860. if test -n "$file_magic_test_file"; then
  7861. case $deplibs_check_method in
  7862. "file_magic "*)
  7863. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7864. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7865. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7866. $EGREP "$file_magic_regex" > /dev/null; then
  7867. :
  7868. else
  7869. cat <<_LT_EOF 1>&2
  7870. *** Warning: the command libtool uses to detect shared libraries,
  7871. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7872. *** The result is that libtool may fail to recognize shared libraries
  7873. *** as such. This will affect the creation of libtool libraries that
  7874. *** depend on shared libraries, but programs linked with such libtool
  7875. *** libraries will work regardless of this problem. Nevertheless, you
  7876. *** may want to report the problem to your system manager and/or to
  7877. *** [email protected]
  7878. _LT_EOF
  7879. fi ;;
  7880. esac
  7881. fi
  7882. break
  7883. fi
  7884. done
  7885. IFS="$lt_save_ifs"
  7886. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7887. ;;
  7888. esac
  7889. fi
  7890. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7891. if test -n "$MAGIC_CMD"; then
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7893. $as_echo "$MAGIC_CMD" >&6; }
  7894. else
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7896. $as_echo "no" >&6; }
  7897. fi
  7898. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7899. if test -n "$ac_tool_prefix"; then
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7901. $as_echo_n "checking for file... " >&6; }
  7902. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7903. $as_echo_n "(cached) " >&6
  7904. else
  7905. case $MAGIC_CMD in
  7906. [\\/*] | ?:[\\/]*)
  7907. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7908. ;;
  7909. *)
  7910. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7911. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7912. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7913. for ac_dir in $ac_dummy; do
  7914. IFS="$lt_save_ifs"
  7915. test -z "$ac_dir" && ac_dir=.
  7916. if test -f $ac_dir/file; then
  7917. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7918. if test -n "$file_magic_test_file"; then
  7919. case $deplibs_check_method in
  7920. "file_magic "*)
  7921. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7922. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7923. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7924. $EGREP "$file_magic_regex" > /dev/null; then
  7925. :
  7926. else
  7927. cat <<_LT_EOF 1>&2
  7928. *** Warning: the command libtool uses to detect shared libraries,
  7929. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7930. *** The result is that libtool may fail to recognize shared libraries
  7931. *** as such. This will affect the creation of libtool libraries that
  7932. *** depend on shared libraries, but programs linked with such libtool
  7933. *** libraries will work regardless of this problem. Nevertheless, you
  7934. *** may want to report the problem to your system manager and/or to
  7935. *** [email protected]
  7936. _LT_EOF
  7937. fi ;;
  7938. esac
  7939. fi
  7940. break
  7941. fi
  7942. done
  7943. IFS="$lt_save_ifs"
  7944. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7945. ;;
  7946. esac
  7947. fi
  7948. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7949. if test -n "$MAGIC_CMD"; then
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7951. $as_echo "$MAGIC_CMD" >&6; }
  7952. else
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7954. $as_echo "no" >&6; }
  7955. fi
  7956. else
  7957. MAGIC_CMD=:
  7958. fi
  7959. fi
  7960. fi
  7961. ;;
  7962. esac
  7963. # Use C for the default configuration in the libtool script
  7964. lt_save_CC="$CC"
  7965. ac_ext=c
  7966. ac_cpp='$CPP $CPPFLAGS'
  7967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7970. # Source file extension for C test sources.
  7971. ac_ext=c
  7972. # Object file extension for compiled C test sources.
  7973. objext=o
  7974. objext=$objext
  7975. # Code to be used in simple compile tests
  7976. lt_simple_compile_test_code="int some_variable = 0;"
  7977. # Code to be used in simple link tests
  7978. lt_simple_link_test_code='int main(){return(0);}'
  7979. # If no C compiler was specified, use CC.
  7980. LTCC=${LTCC-"$CC"}
  7981. # If no C compiler flags were specified, use CFLAGS.
  7982. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7983. # Allow CC to be a program name with arguments.
  7984. compiler=$CC
  7985. # Save the default compiler, since it gets overwritten when the other
  7986. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7987. compiler_DEFAULT=$CC
  7988. # save warnings/boilerplate of simple test code
  7989. ac_outfile=conftest.$ac_objext
  7990. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7991. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7992. _lt_compiler_boilerplate=`cat conftest.err`
  7993. $RM conftest*
  7994. ac_outfile=conftest.$ac_objext
  7995. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7996. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7997. _lt_linker_boilerplate=`cat conftest.err`
  7998. $RM -r conftest*
  7999. ## CAVEAT EMPTOR:
  8000. ## There is no encapsulation within the following macros, do not change
  8001. ## the running order or otherwise move them around unless you know exactly
  8002. ## what you are doing...
  8003. if test -n "$compiler"; then
  8004. lt_prog_compiler_no_builtin_flag=
  8005. if test "$GCC" = yes; then
  8006. case $cc_basename in
  8007. nvcc*)
  8008. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8009. *)
  8010. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8011. esac
  8012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8013. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8014. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8015. $as_echo_n "(cached) " >&6
  8016. else
  8017. lt_cv_prog_compiler_rtti_exceptions=no
  8018. ac_outfile=conftest.$ac_objext
  8019. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8020. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8021. # Insert the option either (1) after the last *FLAGS variable, or
  8022. # (2) before a word containing "conftest.", or (3) at the end.
  8023. # Note that $ac_compile itself does not contain backslashes and begins
  8024. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8025. # The option is referenced via a variable to avoid confusing sed.
  8026. lt_compile=`echo "$ac_compile" | $SED \
  8027. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8028. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8029. -e 's:$: $lt_compiler_flag:'`
  8030. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8031. (eval "$lt_compile" 2>conftest.err)
  8032. ac_status=$?
  8033. cat conftest.err >&5
  8034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8035. if (exit $ac_status) && test -s "$ac_outfile"; then
  8036. # The compiler can only warn and ignore the option if not recognized
  8037. # So say no if there are warnings other than the usual output.
  8038. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8039. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8040. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8041. lt_cv_prog_compiler_rtti_exceptions=yes
  8042. fi
  8043. fi
  8044. $RM conftest*
  8045. fi
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8047. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8048. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8049. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8050. else
  8051. :
  8052. fi
  8053. fi
  8054. lt_prog_compiler_wl=
  8055. lt_prog_compiler_pic=
  8056. lt_prog_compiler_static=
  8057. if test "$GCC" = yes; then
  8058. lt_prog_compiler_wl='-Wl,'
  8059. lt_prog_compiler_static='-static'
  8060. case $host_os in
  8061. aix*)
  8062. # All AIX code is PIC.
  8063. if test "$host_cpu" = ia64; then
  8064. # AIX 5 now supports IA64 processor
  8065. lt_prog_compiler_static='-Bstatic'
  8066. fi
  8067. ;;
  8068. amigaos*)
  8069. case $host_cpu in
  8070. powerpc)
  8071. # see comment about AmigaOS4 .so support
  8072. lt_prog_compiler_pic='-fPIC'
  8073. ;;
  8074. m68k)
  8075. # FIXME: we need at least 68020 code to build shared libraries, but
  8076. # adding the `-m68020' flag to GCC prevents building anything better,
  8077. # like `-m68040'.
  8078. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8079. ;;
  8080. esac
  8081. ;;
  8082. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8083. # PIC is the default for these OSes.
  8084. ;;
  8085. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8086. # This hack is so that the source file can tell whether it is being
  8087. # built for inclusion in a dll (and should export symbols for example).
  8088. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8089. # (--disable-auto-import) libraries
  8090. lt_prog_compiler_pic='-DDLL_EXPORT'
  8091. ;;
  8092. darwin* | rhapsody*)
  8093. # PIC is the default on this platform
  8094. # Common symbols not allowed in MH_DYLIB files
  8095. lt_prog_compiler_pic='-fno-common'
  8096. ;;
  8097. haiku*)
  8098. # PIC is the default for Haiku.
  8099. # The "-static" flag exists, but is broken.
  8100. lt_prog_compiler_static=
  8101. ;;
  8102. hpux*)
  8103. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8104. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8105. # sets the default TLS model and affects inlining.
  8106. case $host_cpu in
  8107. hppa*64*)
  8108. # +Z the default
  8109. ;;
  8110. *)
  8111. lt_prog_compiler_pic='-fPIC'
  8112. ;;
  8113. esac
  8114. ;;
  8115. interix[3-9]*)
  8116. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8117. # Instead, we relocate shared libraries at runtime.
  8118. ;;
  8119. msdosdjgpp*)
  8120. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8121. # on systems that don't support them.
  8122. lt_prog_compiler_can_build_shared=no
  8123. enable_shared=no
  8124. ;;
  8125. *nto* | *qnx*)
  8126. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8127. # it will coredump.
  8128. lt_prog_compiler_pic='-fPIC -shared'
  8129. ;;
  8130. sysv4*MP*)
  8131. if test -d /usr/nec; then
  8132. lt_prog_compiler_pic=-Kconform_pic
  8133. fi
  8134. ;;
  8135. *)
  8136. lt_prog_compiler_pic='-fPIC'
  8137. ;;
  8138. esac
  8139. case $cc_basename in
  8140. nvcc*) # Cuda Compiler Driver 2.2
  8141. lt_prog_compiler_wl='-Xlinker '
  8142. if test -n "$lt_prog_compiler_pic"; then
  8143. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8144. fi
  8145. ;;
  8146. esac
  8147. else
  8148. # PORTME Check for flag to pass linker flags through the system compiler.
  8149. case $host_os in
  8150. aix*)
  8151. lt_prog_compiler_wl='-Wl,'
  8152. if test "$host_cpu" = ia64; then
  8153. # AIX 5 now supports IA64 processor
  8154. lt_prog_compiler_static='-Bstatic'
  8155. else
  8156. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8157. fi
  8158. ;;
  8159. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8160. # This hack is so that the source file can tell whether it is being
  8161. # built for inclusion in a dll (and should export symbols for example).
  8162. lt_prog_compiler_pic='-DDLL_EXPORT'
  8163. ;;
  8164. hpux9* | hpux10* | hpux11*)
  8165. lt_prog_compiler_wl='-Wl,'
  8166. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8167. # not for PA HP-UX.
  8168. case $host_cpu in
  8169. hppa*64*|ia64*)
  8170. # +Z the default
  8171. ;;
  8172. *)
  8173. lt_prog_compiler_pic='+Z'
  8174. ;;
  8175. esac
  8176. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8177. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8178. ;;
  8179. irix5* | irix6* | nonstopux*)
  8180. lt_prog_compiler_wl='-Wl,'
  8181. # PIC (with -KPIC) is the default.
  8182. lt_prog_compiler_static='-non_shared'
  8183. ;;
  8184. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8185. case $cc_basename in
  8186. # old Intel for x86_64 which still supported -KPIC.
  8187. ecc*)
  8188. lt_prog_compiler_wl='-Wl,'
  8189. lt_prog_compiler_pic='-KPIC'
  8190. lt_prog_compiler_static='-static'
  8191. ;;
  8192. # icc used to be incompatible with GCC.
  8193. # ICC 10 doesn't accept -KPIC any more.
  8194. icc* | ifort*)
  8195. lt_prog_compiler_wl='-Wl,'
  8196. lt_prog_compiler_pic='-fPIC'
  8197. lt_prog_compiler_static='-static'
  8198. ;;
  8199. # Lahey Fortran 8.1.
  8200. lf95*)
  8201. lt_prog_compiler_wl='-Wl,'
  8202. lt_prog_compiler_pic='--shared'
  8203. lt_prog_compiler_static='--static'
  8204. ;;
  8205. nagfor*)
  8206. # NAG Fortran compiler
  8207. lt_prog_compiler_wl='-Wl,-Wl,,'
  8208. lt_prog_compiler_pic='-PIC'
  8209. lt_prog_compiler_static='-Bstatic'
  8210. ;;
  8211. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8212. # Portland Group compilers (*not* the Pentium gcc compiler,
  8213. # which looks to be a dead project)
  8214. lt_prog_compiler_wl='-Wl,'
  8215. lt_prog_compiler_pic='-fpic'
  8216. lt_prog_compiler_static='-Bstatic'
  8217. ;;
  8218. ccc*)
  8219. lt_prog_compiler_wl='-Wl,'
  8220. # All Alpha code is PIC.
  8221. lt_prog_compiler_static='-non_shared'
  8222. ;;
  8223. xl* | bgxl* | bgf* | mpixl*)
  8224. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8225. lt_prog_compiler_wl='-Wl,'
  8226. lt_prog_compiler_pic='-qpic'
  8227. lt_prog_compiler_static='-qstaticlink'
  8228. ;;
  8229. *)
  8230. case `$CC -V 2>&1 | sed 5q` in
  8231. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8232. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8233. lt_prog_compiler_pic='-KPIC'
  8234. lt_prog_compiler_static='-Bstatic'
  8235. lt_prog_compiler_wl=''
  8236. ;;
  8237. *Sun\ F* | *Sun*Fortran*)
  8238. lt_prog_compiler_pic='-KPIC'
  8239. lt_prog_compiler_static='-Bstatic'
  8240. lt_prog_compiler_wl='-Qoption ld '
  8241. ;;
  8242. *Sun\ C*)
  8243. # Sun C 5.9
  8244. lt_prog_compiler_pic='-KPIC'
  8245. lt_prog_compiler_static='-Bstatic'
  8246. lt_prog_compiler_wl='-Wl,'
  8247. ;;
  8248. *Intel*\ [CF]*Compiler*)
  8249. lt_prog_compiler_wl='-Wl,'
  8250. lt_prog_compiler_pic='-fPIC'
  8251. lt_prog_compiler_static='-static'
  8252. ;;
  8253. *Portland\ Group*)
  8254. lt_prog_compiler_wl='-Wl,'
  8255. lt_prog_compiler_pic='-fpic'
  8256. lt_prog_compiler_static='-Bstatic'
  8257. ;;
  8258. esac
  8259. ;;
  8260. esac
  8261. ;;
  8262. newsos6)
  8263. lt_prog_compiler_pic='-KPIC'
  8264. lt_prog_compiler_static='-Bstatic'
  8265. ;;
  8266. *nto* | *qnx*)
  8267. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8268. # it will coredump.
  8269. lt_prog_compiler_pic='-fPIC -shared'
  8270. ;;
  8271. osf3* | osf4* | osf5*)
  8272. lt_prog_compiler_wl='-Wl,'
  8273. # All OSF/1 code is PIC.
  8274. lt_prog_compiler_static='-non_shared'
  8275. ;;
  8276. rdos*)
  8277. lt_prog_compiler_static='-non_shared'
  8278. ;;
  8279. solaris*)
  8280. lt_prog_compiler_pic='-KPIC'
  8281. lt_prog_compiler_static='-Bstatic'
  8282. case $cc_basename in
  8283. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8284. lt_prog_compiler_wl='-Qoption ld ';;
  8285. *)
  8286. lt_prog_compiler_wl='-Wl,';;
  8287. esac
  8288. ;;
  8289. sunos4*)
  8290. lt_prog_compiler_wl='-Qoption ld '
  8291. lt_prog_compiler_pic='-PIC'
  8292. lt_prog_compiler_static='-Bstatic'
  8293. ;;
  8294. sysv4 | sysv4.2uw2* | sysv4.3*)
  8295. lt_prog_compiler_wl='-Wl,'
  8296. lt_prog_compiler_pic='-KPIC'
  8297. lt_prog_compiler_static='-Bstatic'
  8298. ;;
  8299. sysv4*MP*)
  8300. if test -d /usr/nec ;then
  8301. lt_prog_compiler_pic='-Kconform_pic'
  8302. lt_prog_compiler_static='-Bstatic'
  8303. fi
  8304. ;;
  8305. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8306. lt_prog_compiler_wl='-Wl,'
  8307. lt_prog_compiler_pic='-KPIC'
  8308. lt_prog_compiler_static='-Bstatic'
  8309. ;;
  8310. unicos*)
  8311. lt_prog_compiler_wl='-Wl,'
  8312. lt_prog_compiler_can_build_shared=no
  8313. ;;
  8314. uts4*)
  8315. lt_prog_compiler_pic='-pic'
  8316. lt_prog_compiler_static='-Bstatic'
  8317. ;;
  8318. *)
  8319. lt_prog_compiler_can_build_shared=no
  8320. ;;
  8321. esac
  8322. fi
  8323. case $host_os in
  8324. # For platforms which do not support PIC, -DPIC is meaningless:
  8325. *djgpp*)
  8326. lt_prog_compiler_pic=
  8327. ;;
  8328. *)
  8329. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8330. ;;
  8331. esac
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8333. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8334. if ${lt_cv_prog_compiler_pic+:} false; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8338. fi
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8340. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8341. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8342. #
  8343. # Check to make sure the PIC flag actually works.
  8344. #
  8345. if test -n "$lt_prog_compiler_pic"; then
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8347. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8348. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8349. $as_echo_n "(cached) " >&6
  8350. else
  8351. lt_cv_prog_compiler_pic_works=no
  8352. ac_outfile=conftest.$ac_objext
  8353. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8354. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8355. # Insert the option either (1) after the last *FLAGS variable, or
  8356. # (2) before a word containing "conftest.", or (3) at the end.
  8357. # Note that $ac_compile itself does not contain backslashes and begins
  8358. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8359. # The option is referenced via a variable to avoid confusing sed.
  8360. lt_compile=`echo "$ac_compile" | $SED \
  8361. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8362. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8363. -e 's:$: $lt_compiler_flag:'`
  8364. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8365. (eval "$lt_compile" 2>conftest.err)
  8366. ac_status=$?
  8367. cat conftest.err >&5
  8368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8369. if (exit $ac_status) && test -s "$ac_outfile"; then
  8370. # The compiler can only warn and ignore the option if not recognized
  8371. # So say no if there are warnings other than the usual output.
  8372. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8373. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8374. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8375. lt_cv_prog_compiler_pic_works=yes
  8376. fi
  8377. fi
  8378. $RM conftest*
  8379. fi
  8380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8381. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8382. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8383. case $lt_prog_compiler_pic in
  8384. "" | " "*) ;;
  8385. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8386. esac
  8387. else
  8388. lt_prog_compiler_pic=
  8389. lt_prog_compiler_can_build_shared=no
  8390. fi
  8391. fi
  8392. #
  8393. # Check to make sure the static flag actually works.
  8394. #
  8395. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8397. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8398. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8399. $as_echo_n "(cached) " >&6
  8400. else
  8401. lt_cv_prog_compiler_static_works=no
  8402. save_LDFLAGS="$LDFLAGS"
  8403. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8404. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8405. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8406. # The linker can only warn and ignore the option if not recognized
  8407. # So say no if there are warnings
  8408. if test -s conftest.err; then
  8409. # Append any errors to the config.log.
  8410. cat conftest.err 1>&5
  8411. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8412. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8413. if diff conftest.exp conftest.er2 >/dev/null; then
  8414. lt_cv_prog_compiler_static_works=yes
  8415. fi
  8416. else
  8417. lt_cv_prog_compiler_static_works=yes
  8418. fi
  8419. fi
  8420. $RM -r conftest*
  8421. LDFLAGS="$save_LDFLAGS"
  8422. fi
  8423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8424. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8425. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8426. :
  8427. else
  8428. lt_prog_compiler_static=
  8429. fi
  8430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8431. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8432. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8433. $as_echo_n "(cached) " >&6
  8434. else
  8435. lt_cv_prog_compiler_c_o=no
  8436. $RM -r conftest 2>/dev/null
  8437. mkdir conftest
  8438. cd conftest
  8439. mkdir out
  8440. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8441. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8442. # Insert the option either (1) after the last *FLAGS variable, or
  8443. # (2) before a word containing "conftest.", or (3) at the end.
  8444. # Note that $ac_compile itself does not contain backslashes and begins
  8445. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8446. lt_compile=`echo "$ac_compile" | $SED \
  8447. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8448. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8449. -e 's:$: $lt_compiler_flag:'`
  8450. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8451. (eval "$lt_compile" 2>out/conftest.err)
  8452. ac_status=$?
  8453. cat out/conftest.err >&5
  8454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8455. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8456. then
  8457. # The compiler can only warn and ignore the option if not recognized
  8458. # So say no if there are warnings
  8459. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8460. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8461. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8462. lt_cv_prog_compiler_c_o=yes
  8463. fi
  8464. fi
  8465. chmod u+w . 2>&5
  8466. $RM conftest*
  8467. # SGI C++ compiler will create directory out/ii_files/ for
  8468. # template instantiation
  8469. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8470. $RM out/* && rmdir out
  8471. cd ..
  8472. $RM -r conftest
  8473. $RM conftest*
  8474. fi
  8475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8476. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8478. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8479. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8480. $as_echo_n "(cached) " >&6
  8481. else
  8482. lt_cv_prog_compiler_c_o=no
  8483. $RM -r conftest 2>/dev/null
  8484. mkdir conftest
  8485. cd conftest
  8486. mkdir out
  8487. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8488. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8489. # Insert the option either (1) after the last *FLAGS variable, or
  8490. # (2) before a word containing "conftest.", or (3) at the end.
  8491. # Note that $ac_compile itself does not contain backslashes and begins
  8492. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8493. lt_compile=`echo "$ac_compile" | $SED \
  8494. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8495. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8496. -e 's:$: $lt_compiler_flag:'`
  8497. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8498. (eval "$lt_compile" 2>out/conftest.err)
  8499. ac_status=$?
  8500. cat out/conftest.err >&5
  8501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8502. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8503. then
  8504. # The compiler can only warn and ignore the option if not recognized
  8505. # So say no if there are warnings
  8506. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8507. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8508. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8509. lt_cv_prog_compiler_c_o=yes
  8510. fi
  8511. fi
  8512. chmod u+w . 2>&5
  8513. $RM conftest*
  8514. # SGI C++ compiler will create directory out/ii_files/ for
  8515. # template instantiation
  8516. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8517. $RM out/* && rmdir out
  8518. cd ..
  8519. $RM -r conftest
  8520. $RM conftest*
  8521. fi
  8522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8523. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8524. hard_links="nottested"
  8525. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8526. # do not overwrite the value of need_locks provided by the user
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8528. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8529. hard_links=yes
  8530. $RM conftest*
  8531. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8532. touch conftest.a
  8533. ln conftest.a conftest.b 2>&5 || hard_links=no
  8534. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8536. $as_echo "$hard_links" >&6; }
  8537. if test "$hard_links" = no; then
  8538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8539. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8540. need_locks=warn
  8541. fi
  8542. else
  8543. need_locks=no
  8544. fi
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8546. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8547. runpath_var=
  8548. allow_undefined_flag=
  8549. always_export_symbols=no
  8550. archive_cmds=
  8551. archive_expsym_cmds=
  8552. compiler_needs_object=no
  8553. enable_shared_with_static_runtimes=no
  8554. export_dynamic_flag_spec=
  8555. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8556. hardcode_automatic=no
  8557. hardcode_direct=no
  8558. hardcode_direct_absolute=no
  8559. hardcode_libdir_flag_spec=
  8560. hardcode_libdir_separator=
  8561. hardcode_minus_L=no
  8562. hardcode_shlibpath_var=unsupported
  8563. inherit_rpath=no
  8564. link_all_deplibs=unknown
  8565. module_cmds=
  8566. module_expsym_cmds=
  8567. old_archive_from_new_cmds=
  8568. old_archive_from_expsyms_cmds=
  8569. thread_safe_flag_spec=
  8570. whole_archive_flag_spec=
  8571. # include_expsyms should be a list of space-separated symbols to be *always*
  8572. # included in the symbol list
  8573. include_expsyms=
  8574. # exclude_expsyms can be an extended regexp of symbols to exclude
  8575. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8576. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8577. # as well as any symbol that contains `d'.
  8578. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8579. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8580. # platforms (ab)use it in PIC code, but their linkers get confused if
  8581. # the symbol is explicitly referenced. Since portable code cannot
  8582. # rely on this symbol name, it's probably fine to never include it in
  8583. # preloaded symbol tables.
  8584. # Exclude shared library initialization/finalization symbols.
  8585. extract_expsyms_cmds=
  8586. case $host_os in
  8587. cygwin* | mingw* | pw32* | cegcc*)
  8588. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8589. # When not using gcc, we currently assume that we are using
  8590. # Microsoft Visual C++.
  8591. if test "$GCC" != yes; then
  8592. with_gnu_ld=no
  8593. fi
  8594. ;;
  8595. interix*)
  8596. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8597. with_gnu_ld=yes
  8598. ;;
  8599. openbsd*)
  8600. with_gnu_ld=no
  8601. ;;
  8602. esac
  8603. ld_shlibs=yes
  8604. # On some targets, GNU ld is compatible enough with the native linker
  8605. # that we're better off using the native interface for both.
  8606. lt_use_gnu_ld_interface=no
  8607. if test "$with_gnu_ld" = yes; then
  8608. case $host_os in
  8609. aix*)
  8610. # The AIX port of GNU ld has always aspired to compatibility
  8611. # with the native linker. However, as the warning in the GNU ld
  8612. # block says, versions before 2.19.5* couldn't really create working
  8613. # shared libraries, regardless of the interface used.
  8614. case `$LD -v 2>&1` in
  8615. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8616. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8617. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8618. *)
  8619. lt_use_gnu_ld_interface=yes
  8620. ;;
  8621. esac
  8622. ;;
  8623. *)
  8624. lt_use_gnu_ld_interface=yes
  8625. ;;
  8626. esac
  8627. fi
  8628. if test "$lt_use_gnu_ld_interface" = yes; then
  8629. # If archive_cmds runs LD, not CC, wlarc should be empty
  8630. wlarc='${wl}'
  8631. # Set some defaults for GNU ld with shared library support. These
  8632. # are reset later if shared libraries are not supported. Putting them
  8633. # here allows them to be overridden if necessary.
  8634. runpath_var=LD_RUN_PATH
  8635. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8636. export_dynamic_flag_spec='${wl}--export-dynamic'
  8637. # ancient GNU ld didn't support --whole-archive et. al.
  8638. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8639. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8640. else
  8641. whole_archive_flag_spec=
  8642. fi
  8643. supports_anon_versioning=no
  8644. case `$LD -v 2>&1` in
  8645. *GNU\ gold*) supports_anon_versioning=yes ;;
  8646. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8647. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8648. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8649. *\ 2.11.*) ;; # other 2.11 versions
  8650. *) supports_anon_versioning=yes ;;
  8651. esac
  8652. # See if GNU ld supports shared libraries.
  8653. case $host_os in
  8654. aix[3-9]*)
  8655. # On AIX/PPC, the GNU linker is very broken
  8656. if test "$host_cpu" != ia64; then
  8657. ld_shlibs=no
  8658. cat <<_LT_EOF 1>&2
  8659. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8660. *** to be unable to reliably create shared libraries on AIX.
  8661. *** Therefore, libtool is disabling shared libraries support. If you
  8662. *** really care for shared libraries, you may want to install binutils
  8663. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8664. *** You will then need to restart the configuration process.
  8665. _LT_EOF
  8666. fi
  8667. ;;
  8668. amigaos*)
  8669. case $host_cpu in
  8670. powerpc)
  8671. # see comment about AmigaOS4 .so support
  8672. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8673. archive_expsym_cmds=''
  8674. ;;
  8675. m68k)
  8676. 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)'
  8677. hardcode_libdir_flag_spec='-L$libdir'
  8678. hardcode_minus_L=yes
  8679. ;;
  8680. esac
  8681. ;;
  8682. beos*)
  8683. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8684. allow_undefined_flag=unsupported
  8685. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8686. # support --undefined. This deserves some investigation. FIXME
  8687. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8688. else
  8689. ld_shlibs=no
  8690. fi
  8691. ;;
  8692. cygwin* | mingw* | pw32* | cegcc*)
  8693. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8694. # as there is no search path for DLLs.
  8695. hardcode_libdir_flag_spec='-L$libdir'
  8696. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8697. allow_undefined_flag=unsupported
  8698. always_export_symbols=no
  8699. enable_shared_with_static_runtimes=yes
  8700. 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'
  8701. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8702. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8703. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8704. # If the export-symbols file already is a .def file (1st line
  8705. # is EXPORTS), use it as is; otherwise, prepend...
  8706. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8707. cp $export_symbols $output_objdir/$soname.def;
  8708. else
  8709. echo EXPORTS > $output_objdir/$soname.def;
  8710. cat $export_symbols >> $output_objdir/$soname.def;
  8711. fi~
  8712. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8713. else
  8714. ld_shlibs=no
  8715. fi
  8716. ;;
  8717. haiku*)
  8718. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8719. link_all_deplibs=yes
  8720. ;;
  8721. interix[3-9]*)
  8722. hardcode_direct=no
  8723. hardcode_shlibpath_var=no
  8724. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8725. export_dynamic_flag_spec='${wl}-E'
  8726. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8727. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8728. # default) and relocated if they conflict, which is a slow very memory
  8729. # consuming and fragmenting process. To avoid this, we pick a random,
  8730. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8731. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8732. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8733. 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'
  8734. ;;
  8735. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8736. tmp_diet=no
  8737. if test "$host_os" = linux-dietlibc; then
  8738. case $cc_basename in
  8739. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8740. esac
  8741. fi
  8742. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8743. && test "$tmp_diet" = no
  8744. then
  8745. tmp_addflag=' $pic_flag'
  8746. tmp_sharedflag='-shared'
  8747. case $cc_basename,$host_cpu in
  8748. pgcc*) # Portland Group C compiler
  8749. 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'
  8750. tmp_addflag=' $pic_flag'
  8751. ;;
  8752. pgf77* | pgf90* | pgf95* | pgfortran*)
  8753. # Portland Group f77 and f90 compilers
  8754. 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'
  8755. tmp_addflag=' $pic_flag -Mnomain' ;;
  8756. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8757. tmp_addflag=' -i_dynamic' ;;
  8758. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8759. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8760. ifc* | ifort*) # Intel Fortran compiler
  8761. tmp_addflag=' -nofor_main' ;;
  8762. lf95*) # Lahey Fortran 8.1
  8763. whole_archive_flag_spec=
  8764. tmp_sharedflag='--shared' ;;
  8765. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8766. tmp_sharedflag='-qmkshrobj'
  8767. tmp_addflag= ;;
  8768. nvcc*) # Cuda Compiler Driver 2.2
  8769. 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'
  8770. compiler_needs_object=yes
  8771. ;;
  8772. esac
  8773. case `$CC -V 2>&1 | sed 5q` in
  8774. *Sun\ C*) # Sun C 5.9
  8775. 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'
  8776. compiler_needs_object=yes
  8777. tmp_sharedflag='-G' ;;
  8778. *Sun\ F*) # Sun Fortran 8.3
  8779. tmp_sharedflag='-G' ;;
  8780. esac
  8781. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8782. if test "x$supports_anon_versioning" = xyes; then
  8783. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8784. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8785. echo "local: *; };" >> $output_objdir/$libname.ver~
  8786. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8787. fi
  8788. case $cc_basename in
  8789. xlf* | bgf* | bgxlf* | mpixlf*)
  8790. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8791. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8792. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8793. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8794. if test "x$supports_anon_versioning" = xyes; then
  8795. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8796. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8797. echo "local: *; };" >> $output_objdir/$libname.ver~
  8798. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8799. fi
  8800. ;;
  8801. esac
  8802. else
  8803. ld_shlibs=no
  8804. fi
  8805. ;;
  8806. netbsd*)
  8807. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8808. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8809. wlarc=
  8810. else
  8811. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8812. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8813. fi
  8814. ;;
  8815. solaris*)
  8816. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8817. ld_shlibs=no
  8818. cat <<_LT_EOF 1>&2
  8819. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8820. *** create shared libraries on Solaris systems. Therefore, libtool
  8821. *** is disabling shared libraries support. We urge you to upgrade GNU
  8822. *** binutils to release 2.9.1 or newer. Another option is to modify
  8823. *** your PATH or compiler configuration so that the native linker is
  8824. *** used, and then restart.
  8825. _LT_EOF
  8826. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8827. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8828. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8829. else
  8830. ld_shlibs=no
  8831. fi
  8832. ;;
  8833. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8834. case `$LD -v 2>&1` in
  8835. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8836. ld_shlibs=no
  8837. cat <<_LT_EOF 1>&2
  8838. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8839. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8840. *** is disabling shared libraries support. We urge you to upgrade GNU
  8841. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8842. *** your PATH or compiler configuration so that the native linker is
  8843. *** used, and then restart.
  8844. _LT_EOF
  8845. ;;
  8846. *)
  8847. # For security reasons, it is highly recommended that you always
  8848. # use absolute paths for naming shared libraries, and exclude the
  8849. # DT_RUNPATH tag from executables and libraries. But doing so
  8850. # requires that you compile everything twice, which is a pain.
  8851. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8852. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8853. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8854. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8855. else
  8856. ld_shlibs=no
  8857. fi
  8858. ;;
  8859. esac
  8860. ;;
  8861. sunos4*)
  8862. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8863. wlarc=
  8864. hardcode_direct=yes
  8865. hardcode_shlibpath_var=no
  8866. ;;
  8867. *)
  8868. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8869. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8870. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8871. else
  8872. ld_shlibs=no
  8873. fi
  8874. ;;
  8875. esac
  8876. if test "$ld_shlibs" = no; then
  8877. runpath_var=
  8878. hardcode_libdir_flag_spec=
  8879. export_dynamic_flag_spec=
  8880. whole_archive_flag_spec=
  8881. fi
  8882. else
  8883. # PORTME fill in a description of your system's linker (not GNU ld)
  8884. case $host_os in
  8885. aix3*)
  8886. allow_undefined_flag=unsupported
  8887. always_export_symbols=yes
  8888. 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'
  8889. # Note: this linker hardcodes the directories in LIBPATH if there
  8890. # are no directories specified by -L.
  8891. hardcode_minus_L=yes
  8892. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8893. # Neither direct hardcoding nor static linking is supported with a
  8894. # broken collect2.
  8895. hardcode_direct=unsupported
  8896. fi
  8897. ;;
  8898. aix[4-9]*)
  8899. if test "$host_cpu" = ia64; then
  8900. # On IA64, the linker does run time linking by default, so we don't
  8901. # have to do anything special.
  8902. aix_use_runtimelinking=no
  8903. exp_sym_flag='-Bexport'
  8904. no_entry_flag=""
  8905. else
  8906. # If we're using GNU nm, then we don't want the "-C" option.
  8907. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8908. # Also, AIX nm treats weak defined symbols like other global
  8909. # defined symbols, whereas GNU nm marks them as "W".
  8910. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8911. 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'
  8912. else
  8913. 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'
  8914. fi
  8915. aix_use_runtimelinking=no
  8916. # Test if we are trying to use run time linking or normal
  8917. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8918. # need to do runtime linking.
  8919. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8920. for ld_flag in $LDFLAGS; do
  8921. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8922. aix_use_runtimelinking=yes
  8923. break
  8924. fi
  8925. done
  8926. ;;
  8927. esac
  8928. exp_sym_flag='-bexport'
  8929. no_entry_flag='-bnoentry'
  8930. fi
  8931. # When large executables or shared objects are built, AIX ld can
  8932. # have problems creating the table of contents. If linking a library
  8933. # or program results in "error TOC overflow" add -mminimal-toc to
  8934. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8935. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8936. archive_cmds=''
  8937. hardcode_direct=yes
  8938. hardcode_direct_absolute=yes
  8939. hardcode_libdir_separator=':'
  8940. link_all_deplibs=yes
  8941. file_list_spec='${wl}-f,'
  8942. if test "$GCC" = yes; then
  8943. case $host_os in aix4.[012]|aix4.[012].*)
  8944. # We only want to do this on AIX 4.2 and lower, the check
  8945. # below for broken collect2 doesn't work under 4.3+
  8946. collect2name=`${CC} -print-prog-name=collect2`
  8947. if test -f "$collect2name" &&
  8948. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8949. then
  8950. # We have reworked collect2
  8951. :
  8952. else
  8953. # We have old collect2
  8954. hardcode_direct=unsupported
  8955. # It fails to find uninstalled libraries when the uninstalled
  8956. # path is not listed in the libpath. Setting hardcode_minus_L
  8957. # to unsupported forces relinking
  8958. hardcode_minus_L=yes
  8959. hardcode_libdir_flag_spec='-L$libdir'
  8960. hardcode_libdir_separator=
  8961. fi
  8962. ;;
  8963. esac
  8964. shared_flag='-shared'
  8965. if test "$aix_use_runtimelinking" = yes; then
  8966. shared_flag="$shared_flag "'${wl}-G'
  8967. fi
  8968. else
  8969. # not using gcc
  8970. if test "$host_cpu" = ia64; then
  8971. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8972. # chokes on -Wl,-G. The following line is correct:
  8973. shared_flag='-G'
  8974. else
  8975. if test "$aix_use_runtimelinking" = yes; then
  8976. shared_flag='${wl}-G'
  8977. else
  8978. shared_flag='${wl}-bM:SRE'
  8979. fi
  8980. fi
  8981. fi
  8982. export_dynamic_flag_spec='${wl}-bexpall'
  8983. # It seems that -bexpall does not export symbols beginning with
  8984. # underscore (_), so it is better to generate a list of symbols to export.
  8985. always_export_symbols=yes
  8986. if test "$aix_use_runtimelinking" = yes; then
  8987. # Warning - without using the other runtime loading flags (-brtl),
  8988. # -berok will link without error, but may produce a broken library.
  8989. allow_undefined_flag='-berok'
  8990. # Determine the default libpath from the value encoded in an
  8991. # empty executable.
  8992. if test "${lt_cv_aix_libpath+set}" = set; then
  8993. aix_libpath=$lt_cv_aix_libpath
  8994. else
  8995. if ${lt_cv_aix_libpath_+:} false; then :
  8996. $as_echo_n "(cached) " >&6
  8997. else
  8998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8999. /* end confdefs.h. */
  9000. int
  9001. main ()
  9002. {
  9003. ;
  9004. return 0;
  9005. }
  9006. _ACEOF
  9007. if ac_fn_c_try_link "$LINENO"; then :
  9008. lt_aix_libpath_sed='
  9009. /Import File Strings/,/^$/ {
  9010. /^0/ {
  9011. s/^0 *\([^ ]*\) *$/\1/
  9012. p
  9013. }
  9014. }'
  9015. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9016. # Check for a 64-bit object if we didn't find anything.
  9017. if test -z "$lt_cv_aix_libpath_"; then
  9018. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9019. fi
  9020. fi
  9021. rm -f core conftest.err conftest.$ac_objext \
  9022. conftest$ac_exeext conftest.$ac_ext
  9023. if test -z "$lt_cv_aix_libpath_"; then
  9024. lt_cv_aix_libpath_="/usr/lib:/lib"
  9025. fi
  9026. fi
  9027. aix_libpath=$lt_cv_aix_libpath_
  9028. fi
  9029. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9030. 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"
  9031. else
  9032. if test "$host_cpu" = ia64; then
  9033. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9034. allow_undefined_flag="-z nodefs"
  9035. 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"
  9036. else
  9037. # Determine the default libpath from the value encoded in an
  9038. # empty executable.
  9039. if test "${lt_cv_aix_libpath+set}" = set; then
  9040. aix_libpath=$lt_cv_aix_libpath
  9041. else
  9042. if ${lt_cv_aix_libpath_+:} false; then :
  9043. $as_echo_n "(cached) " >&6
  9044. else
  9045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9046. /* end confdefs.h. */
  9047. int
  9048. main ()
  9049. {
  9050. ;
  9051. return 0;
  9052. }
  9053. _ACEOF
  9054. if ac_fn_c_try_link "$LINENO"; then :
  9055. lt_aix_libpath_sed='
  9056. /Import File Strings/,/^$/ {
  9057. /^0/ {
  9058. s/^0 *\([^ ]*\) *$/\1/
  9059. p
  9060. }
  9061. }'
  9062. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9063. # Check for a 64-bit object if we didn't find anything.
  9064. if test -z "$lt_cv_aix_libpath_"; then
  9065. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9066. fi
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext \
  9069. conftest$ac_exeext conftest.$ac_ext
  9070. if test -z "$lt_cv_aix_libpath_"; then
  9071. lt_cv_aix_libpath_="/usr/lib:/lib"
  9072. fi
  9073. fi
  9074. aix_libpath=$lt_cv_aix_libpath_
  9075. fi
  9076. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9077. # Warning - without using the other run time loading flags,
  9078. # -berok will link without error, but may produce a broken library.
  9079. no_undefined_flag=' ${wl}-bernotok'
  9080. allow_undefined_flag=' ${wl}-berok'
  9081. if test "$with_gnu_ld" = yes; then
  9082. # We only use this code for GNU lds that support --whole-archive.
  9083. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9084. else
  9085. # Exported symbols can be pulled into shared objects from archives
  9086. whole_archive_flag_spec='$convenience'
  9087. fi
  9088. archive_cmds_need_lc=yes
  9089. # This is similar to how AIX traditionally builds its shared libraries.
  9090. 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'
  9091. fi
  9092. fi
  9093. ;;
  9094. amigaos*)
  9095. case $host_cpu in
  9096. powerpc)
  9097. # see comment about AmigaOS4 .so support
  9098. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9099. archive_expsym_cmds=''
  9100. ;;
  9101. m68k)
  9102. 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)'
  9103. hardcode_libdir_flag_spec='-L$libdir'
  9104. hardcode_minus_L=yes
  9105. ;;
  9106. esac
  9107. ;;
  9108. bsdi[45]*)
  9109. export_dynamic_flag_spec=-rdynamic
  9110. ;;
  9111. cygwin* | mingw* | pw32* | cegcc*)
  9112. # When not using gcc, we currently assume that we are using
  9113. # Microsoft Visual C++.
  9114. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9115. # no search path for DLLs.
  9116. case $cc_basename in
  9117. cl*)
  9118. # Native MSVC
  9119. hardcode_libdir_flag_spec=' '
  9120. allow_undefined_flag=unsupported
  9121. always_export_symbols=yes
  9122. file_list_spec='@'
  9123. # Tell ltmain to make .lib files, not .a files.
  9124. libext=lib
  9125. # Tell ltmain to make .dll files, not .so files.
  9126. shrext_cmds=".dll"
  9127. # FIXME: Setting linknames here is a bad hack.
  9128. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9129. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9130. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9131. else
  9132. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9133. fi~
  9134. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9135. linknames='
  9136. # The linker will not automatically build a static lib if we build a DLL.
  9137. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9138. enable_shared_with_static_runtimes=yes
  9139. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9140. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9141. # Don't use ranlib
  9142. old_postinstall_cmds='chmod 644 $oldlib'
  9143. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9144. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9145. case $lt_outputfile in
  9146. *.exe|*.EXE) ;;
  9147. *)
  9148. lt_outputfile="$lt_outputfile.exe"
  9149. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9150. ;;
  9151. esac~
  9152. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9153. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9154. $RM "$lt_outputfile.manifest";
  9155. fi'
  9156. ;;
  9157. *)
  9158. # Assume MSVC wrapper
  9159. hardcode_libdir_flag_spec=' '
  9160. allow_undefined_flag=unsupported
  9161. # Tell ltmain to make .lib files, not .a files.
  9162. libext=lib
  9163. # Tell ltmain to make .dll files, not .so files.
  9164. shrext_cmds=".dll"
  9165. # FIXME: Setting linknames here is a bad hack.
  9166. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9167. # The linker will automatically build a .lib file if we build a DLL.
  9168. old_archive_from_new_cmds='true'
  9169. # FIXME: Should let the user specify the lib program.
  9170. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9171. enable_shared_with_static_runtimes=yes
  9172. ;;
  9173. esac
  9174. ;;
  9175. darwin* | rhapsody*)
  9176. archive_cmds_need_lc=no
  9177. hardcode_direct=no
  9178. hardcode_automatic=yes
  9179. hardcode_shlibpath_var=unsupported
  9180. if test "$lt_cv_ld_force_load" = "yes"; then
  9181. 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\"`'
  9182. else
  9183. whole_archive_flag_spec=''
  9184. fi
  9185. link_all_deplibs=yes
  9186. allow_undefined_flag="$_lt_dar_allow_undefined"
  9187. case $cc_basename in
  9188. ifort*) _lt_dar_can_shared=yes ;;
  9189. *) _lt_dar_can_shared=$GCC ;;
  9190. esac
  9191. if test "$_lt_dar_can_shared" = "yes"; then
  9192. output_verbose_link_cmd=func_echo_all
  9193. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9194. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9195. 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}"
  9196. 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}"
  9197. else
  9198. ld_shlibs=no
  9199. fi
  9200. ;;
  9201. dgux*)
  9202. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9203. hardcode_libdir_flag_spec='-L$libdir'
  9204. hardcode_shlibpath_var=no
  9205. ;;
  9206. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9207. # support. Future versions do this automatically, but an explicit c++rt0.o
  9208. # does not break anything, and helps significantly (at the cost of a little
  9209. # extra space).
  9210. freebsd2.2*)
  9211. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9212. hardcode_libdir_flag_spec='-R$libdir'
  9213. hardcode_direct=yes
  9214. hardcode_shlibpath_var=no
  9215. ;;
  9216. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9217. freebsd2.*)
  9218. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9219. hardcode_direct=yes
  9220. hardcode_minus_L=yes
  9221. hardcode_shlibpath_var=no
  9222. ;;
  9223. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9224. freebsd* | dragonfly*)
  9225. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9226. hardcode_libdir_flag_spec='-R$libdir'
  9227. hardcode_direct=yes
  9228. hardcode_shlibpath_var=no
  9229. ;;
  9230. hpux9*)
  9231. if test "$GCC" = yes; then
  9232. 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'
  9233. else
  9234. 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'
  9235. fi
  9236. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9237. hardcode_libdir_separator=:
  9238. hardcode_direct=yes
  9239. # hardcode_minus_L: Not really in the search PATH,
  9240. # but as the default location of the library.
  9241. hardcode_minus_L=yes
  9242. export_dynamic_flag_spec='${wl}-E'
  9243. ;;
  9244. hpux10*)
  9245. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9246. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9247. else
  9248. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9249. fi
  9250. if test "$with_gnu_ld" = no; then
  9251. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9252. hardcode_libdir_separator=:
  9253. hardcode_direct=yes
  9254. hardcode_direct_absolute=yes
  9255. export_dynamic_flag_spec='${wl}-E'
  9256. # hardcode_minus_L: Not really in the search PATH,
  9257. # but as the default location of the library.
  9258. hardcode_minus_L=yes
  9259. fi
  9260. ;;
  9261. hpux11*)
  9262. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9263. case $host_cpu in
  9264. hppa*64*)
  9265. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9266. ;;
  9267. ia64*)
  9268. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9269. ;;
  9270. *)
  9271. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9272. ;;
  9273. esac
  9274. else
  9275. case $host_cpu in
  9276. hppa*64*)
  9277. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9278. ;;
  9279. ia64*)
  9280. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9281. ;;
  9282. *)
  9283. # Older versions of the 11.00 compiler do not understand -b yet
  9284. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9286. $as_echo_n "checking if $CC understands -b... " >&6; }
  9287. if ${lt_cv_prog_compiler__b+:} false; then :
  9288. $as_echo_n "(cached) " >&6
  9289. else
  9290. lt_cv_prog_compiler__b=no
  9291. save_LDFLAGS="$LDFLAGS"
  9292. LDFLAGS="$LDFLAGS -b"
  9293. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9294. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9295. # The linker can only warn and ignore the option if not recognized
  9296. # So say no if there are warnings
  9297. if test -s conftest.err; then
  9298. # Append any errors to the config.log.
  9299. cat conftest.err 1>&5
  9300. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9301. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9302. if diff conftest.exp conftest.er2 >/dev/null; then
  9303. lt_cv_prog_compiler__b=yes
  9304. fi
  9305. else
  9306. lt_cv_prog_compiler__b=yes
  9307. fi
  9308. fi
  9309. $RM -r conftest*
  9310. LDFLAGS="$save_LDFLAGS"
  9311. fi
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9313. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9314. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9315. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9316. else
  9317. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9318. fi
  9319. ;;
  9320. esac
  9321. fi
  9322. if test "$with_gnu_ld" = no; then
  9323. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9324. hardcode_libdir_separator=:
  9325. case $host_cpu in
  9326. hppa*64*|ia64*)
  9327. hardcode_direct=no
  9328. hardcode_shlibpath_var=no
  9329. ;;
  9330. *)
  9331. hardcode_direct=yes
  9332. hardcode_direct_absolute=yes
  9333. export_dynamic_flag_spec='${wl}-E'
  9334. # hardcode_minus_L: Not really in the search PATH,
  9335. # but as the default location of the library.
  9336. hardcode_minus_L=yes
  9337. ;;
  9338. esac
  9339. fi
  9340. ;;
  9341. irix5* | irix6* | nonstopux*)
  9342. if test "$GCC" = yes; then
  9343. 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'
  9344. # Try to use the -exported_symbol ld option, if it does not
  9345. # work, assume that -exports_file does not work either and
  9346. # implicitly export all symbols.
  9347. # This should be the same for all languages, so no per-tag cache variable.
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9349. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9350. if ${lt_cv_irix_exported_symbol+:} false; then :
  9351. $as_echo_n "(cached) " >&6
  9352. else
  9353. save_LDFLAGS="$LDFLAGS"
  9354. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9356. /* end confdefs.h. */
  9357. int foo (void) { return 0; }
  9358. _ACEOF
  9359. if ac_fn_c_try_link "$LINENO"; then :
  9360. lt_cv_irix_exported_symbol=yes
  9361. else
  9362. lt_cv_irix_exported_symbol=no
  9363. fi
  9364. rm -f core conftest.err conftest.$ac_objext \
  9365. conftest$ac_exeext conftest.$ac_ext
  9366. LDFLAGS="$save_LDFLAGS"
  9367. fi
  9368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9369. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9370. if test "$lt_cv_irix_exported_symbol" = yes; then
  9371. 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'
  9372. fi
  9373. else
  9374. 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'
  9375. 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'
  9376. fi
  9377. archive_cmds_need_lc='no'
  9378. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9379. hardcode_libdir_separator=:
  9380. inherit_rpath=yes
  9381. link_all_deplibs=yes
  9382. ;;
  9383. netbsd*)
  9384. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9385. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9386. else
  9387. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9388. fi
  9389. hardcode_libdir_flag_spec='-R$libdir'
  9390. hardcode_direct=yes
  9391. hardcode_shlibpath_var=no
  9392. ;;
  9393. newsos6)
  9394. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9395. hardcode_direct=yes
  9396. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9397. hardcode_libdir_separator=:
  9398. hardcode_shlibpath_var=no
  9399. ;;
  9400. *nto* | *qnx*)
  9401. ;;
  9402. openbsd*)
  9403. if test -f /usr/libexec/ld.so; then
  9404. hardcode_direct=yes
  9405. hardcode_shlibpath_var=no
  9406. hardcode_direct_absolute=yes
  9407. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9408. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9409. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9410. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9411. export_dynamic_flag_spec='${wl}-E'
  9412. else
  9413. case $host_os in
  9414. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9415. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9416. hardcode_libdir_flag_spec='-R$libdir'
  9417. ;;
  9418. *)
  9419. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9420. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9421. ;;
  9422. esac
  9423. fi
  9424. else
  9425. ld_shlibs=no
  9426. fi
  9427. ;;
  9428. os2*)
  9429. hardcode_libdir_flag_spec='-L$libdir'
  9430. hardcode_minus_L=yes
  9431. allow_undefined_flag=unsupported
  9432. 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'
  9433. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9434. ;;
  9435. osf3*)
  9436. if test "$GCC" = yes; then
  9437. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9438. 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'
  9439. else
  9440. allow_undefined_flag=' -expect_unresolved \*'
  9441. 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'
  9442. fi
  9443. archive_cmds_need_lc='no'
  9444. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9445. hardcode_libdir_separator=:
  9446. ;;
  9447. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9448. if test "$GCC" = yes; then
  9449. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9450. 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'
  9451. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9452. else
  9453. allow_undefined_flag=' -expect_unresolved \*'
  9454. 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'
  9455. 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~
  9456. $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'
  9457. # Both c and cxx compiler support -rpath directly
  9458. hardcode_libdir_flag_spec='-rpath $libdir'
  9459. fi
  9460. archive_cmds_need_lc='no'
  9461. hardcode_libdir_separator=:
  9462. ;;
  9463. solaris*)
  9464. no_undefined_flag=' -z defs'
  9465. if test "$GCC" = yes; then
  9466. wlarc='${wl}'
  9467. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9468. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9469. $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'
  9470. else
  9471. case `$CC -V 2>&1` in
  9472. *"Compilers 5.0"*)
  9473. wlarc=''
  9474. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9475. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9476. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9477. ;;
  9478. *)
  9479. wlarc='${wl}'
  9480. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9481. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9482. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9483. ;;
  9484. esac
  9485. fi
  9486. hardcode_libdir_flag_spec='-R$libdir'
  9487. hardcode_shlibpath_var=no
  9488. case $host_os in
  9489. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9490. *)
  9491. # The compiler driver will combine and reorder linker options,
  9492. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9493. # but is careful enough not to reorder.
  9494. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9495. if test "$GCC" = yes; then
  9496. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9497. else
  9498. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9499. fi
  9500. ;;
  9501. esac
  9502. link_all_deplibs=yes
  9503. ;;
  9504. sunos4*)
  9505. if test "x$host_vendor" = xsequent; then
  9506. # Use $CC to link under sequent, because it throws in some extra .o
  9507. # files that make .init and .fini sections work.
  9508. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9509. else
  9510. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9511. fi
  9512. hardcode_libdir_flag_spec='-L$libdir'
  9513. hardcode_direct=yes
  9514. hardcode_minus_L=yes
  9515. hardcode_shlibpath_var=no
  9516. ;;
  9517. sysv4)
  9518. case $host_vendor in
  9519. sni)
  9520. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9521. hardcode_direct=yes # is this really true???
  9522. ;;
  9523. siemens)
  9524. ## LD is ld it makes a PLAMLIB
  9525. ## CC just makes a GrossModule.
  9526. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9527. reload_cmds='$CC -r -o $output$reload_objs'
  9528. hardcode_direct=no
  9529. ;;
  9530. motorola)
  9531. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9532. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9533. ;;
  9534. esac
  9535. runpath_var='LD_RUN_PATH'
  9536. hardcode_shlibpath_var=no
  9537. ;;
  9538. sysv4.3*)
  9539. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9540. hardcode_shlibpath_var=no
  9541. export_dynamic_flag_spec='-Bexport'
  9542. ;;
  9543. sysv4*MP*)
  9544. if test -d /usr/nec; then
  9545. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9546. hardcode_shlibpath_var=no
  9547. runpath_var=LD_RUN_PATH
  9548. hardcode_runpath_var=yes
  9549. ld_shlibs=yes
  9550. fi
  9551. ;;
  9552. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9553. no_undefined_flag='${wl}-z,text'
  9554. archive_cmds_need_lc=no
  9555. hardcode_shlibpath_var=no
  9556. runpath_var='LD_RUN_PATH'
  9557. if test "$GCC" = yes; then
  9558. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9559. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9560. else
  9561. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9562. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9563. fi
  9564. ;;
  9565. sysv5* | sco3.2v5* | sco5v6*)
  9566. # Note: We can NOT use -z defs as we might desire, because we do not
  9567. # link with -lc, and that would cause any symbols used from libc to
  9568. # always be unresolved, which means just about no library would
  9569. # ever link correctly. If we're not using GNU ld we use -z text
  9570. # though, which does catch some bad symbols but isn't as heavy-handed
  9571. # as -z defs.
  9572. no_undefined_flag='${wl}-z,text'
  9573. allow_undefined_flag='${wl}-z,nodefs'
  9574. archive_cmds_need_lc=no
  9575. hardcode_shlibpath_var=no
  9576. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9577. hardcode_libdir_separator=':'
  9578. link_all_deplibs=yes
  9579. export_dynamic_flag_spec='${wl}-Bexport'
  9580. runpath_var='LD_RUN_PATH'
  9581. if test "$GCC" = yes; then
  9582. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9583. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9584. else
  9585. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9586. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9587. fi
  9588. ;;
  9589. uts4*)
  9590. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9591. hardcode_libdir_flag_spec='-L$libdir'
  9592. hardcode_shlibpath_var=no
  9593. ;;
  9594. *)
  9595. ld_shlibs=no
  9596. ;;
  9597. esac
  9598. if test x$host_vendor = xsni; then
  9599. case $host in
  9600. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9601. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9602. ;;
  9603. esac
  9604. fi
  9605. fi
  9606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9607. $as_echo "$ld_shlibs" >&6; }
  9608. test "$ld_shlibs" = no && can_build_shared=no
  9609. with_gnu_ld=$with_gnu_ld
  9610. #
  9611. # Do we need to explicitly link libc?
  9612. #
  9613. case "x$archive_cmds_need_lc" in
  9614. x|xyes)
  9615. # Assume -lc should be added
  9616. archive_cmds_need_lc=yes
  9617. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9618. case $archive_cmds in
  9619. *'~'*)
  9620. # FIXME: we may have to deal with multi-command sequences.
  9621. ;;
  9622. '$CC '*)
  9623. # Test whether the compiler implicitly links with -lc since on some
  9624. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9625. # to ld, don't add -lc before -lgcc.
  9626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9627. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9628. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9629. $as_echo_n "(cached) " >&6
  9630. else
  9631. $RM conftest*
  9632. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9634. (eval $ac_compile) 2>&5
  9635. ac_status=$?
  9636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9637. test $ac_status = 0; } 2>conftest.err; then
  9638. soname=conftest
  9639. lib=conftest
  9640. libobjs=conftest.$ac_objext
  9641. deplibs=
  9642. wl=$lt_prog_compiler_wl
  9643. pic_flag=$lt_prog_compiler_pic
  9644. compiler_flags=-v
  9645. linker_flags=-v
  9646. verstring=
  9647. output_objdir=.
  9648. libname=conftest
  9649. lt_save_allow_undefined_flag=$allow_undefined_flag
  9650. allow_undefined_flag=
  9651. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9652. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9653. ac_status=$?
  9654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9655. test $ac_status = 0; }
  9656. then
  9657. lt_cv_archive_cmds_need_lc=no
  9658. else
  9659. lt_cv_archive_cmds_need_lc=yes
  9660. fi
  9661. allow_undefined_flag=$lt_save_allow_undefined_flag
  9662. else
  9663. cat conftest.err 1>&5
  9664. fi
  9665. $RM conftest*
  9666. fi
  9667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9668. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9669. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9670. ;;
  9671. esac
  9672. fi
  9673. ;;
  9674. esac
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9676. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9677. if test "$GCC" = yes; then
  9678. case $host_os in
  9679. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9680. *) lt_awk_arg="/^libraries:/" ;;
  9681. esac
  9682. case $host_os in
  9683. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9684. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9685. esac
  9686. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9687. case $lt_search_path_spec in
  9688. *\;*)
  9689. # if the path contains ";" then we assume it to be the separator
  9690. # otherwise default to the standard path separator (i.e. ":") - it is
  9691. # assumed that no part of a normal pathname contains ";" but that should
  9692. # okay in the real world where ";" in dirpaths is itself problematic.
  9693. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9694. ;;
  9695. *)
  9696. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9697. ;;
  9698. esac
  9699. # Ok, now we have the path, separated by spaces, we can step through it
  9700. # and add multilib dir if necessary.
  9701. lt_tmp_lt_search_path_spec=
  9702. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9703. for lt_sys_path in $lt_search_path_spec; do
  9704. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9705. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9706. else
  9707. test -d "$lt_sys_path" && \
  9708. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9709. fi
  9710. done
  9711. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9712. BEGIN {RS=" "; FS="/|\n";} {
  9713. lt_foo="";
  9714. lt_count=0;
  9715. for (lt_i = NF; lt_i > 0; lt_i--) {
  9716. if ($lt_i != "" && $lt_i != ".") {
  9717. if ($lt_i == "..") {
  9718. lt_count++;
  9719. } else {
  9720. if (lt_count == 0) {
  9721. lt_foo="/" $lt_i lt_foo;
  9722. } else {
  9723. lt_count--;
  9724. }
  9725. }
  9726. }
  9727. }
  9728. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9729. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9730. }'`
  9731. # AWK program above erroneously prepends '/' to C:/dos/paths
  9732. # for these hosts.
  9733. case $host_os in
  9734. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9735. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9736. esac
  9737. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9738. else
  9739. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9740. fi
  9741. library_names_spec=
  9742. libname_spec='lib$name'
  9743. soname_spec=
  9744. shrext_cmds=".so"
  9745. postinstall_cmds=
  9746. postuninstall_cmds=
  9747. finish_cmds=
  9748. finish_eval=
  9749. shlibpath_var=
  9750. shlibpath_overrides_runpath=unknown
  9751. version_type=none
  9752. dynamic_linker="$host_os ld.so"
  9753. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9754. need_lib_prefix=unknown
  9755. hardcode_into_libs=no
  9756. # when you set need_version to no, make sure it does not cause -set_version
  9757. # flags to be left without arguments
  9758. need_version=unknown
  9759. case $host_os in
  9760. aix3*)
  9761. version_type=linux # correct to gnu/linux during the next big refactor
  9762. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9763. shlibpath_var=LIBPATH
  9764. # AIX 3 has no versioning support, so we append a major version to the name.
  9765. soname_spec='${libname}${release}${shared_ext}$major'
  9766. ;;
  9767. aix[4-9]*)
  9768. version_type=linux # correct to gnu/linux during the next big refactor
  9769. need_lib_prefix=no
  9770. need_version=no
  9771. hardcode_into_libs=yes
  9772. if test "$host_cpu" = ia64; then
  9773. # AIX 5 supports IA64
  9774. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9775. shlibpath_var=LD_LIBRARY_PATH
  9776. else
  9777. # With GCC up to 2.95.x, collect2 would create an import file
  9778. # for dependence libraries. The import file would start with
  9779. # the line `#! .'. This would cause the generated library to
  9780. # depend on `.', always an invalid library. This was fixed in
  9781. # development snapshots of GCC prior to 3.0.
  9782. case $host_os in
  9783. aix4 | aix4.[01] | aix4.[01].*)
  9784. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9785. echo ' yes '
  9786. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9787. :
  9788. else
  9789. can_build_shared=no
  9790. fi
  9791. ;;
  9792. esac
  9793. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9794. # soname into executable. Probably we can add versioning support to
  9795. # collect2, so additional links can be useful in future.
  9796. if test "$aix_use_runtimelinking" = yes; then
  9797. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9798. # instead of lib<name>.a to let people know that these are not
  9799. # typical AIX shared libraries.
  9800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9801. else
  9802. # We preserve .a as extension for shared libraries through AIX4.2
  9803. # and later when we are not doing run time linking.
  9804. library_names_spec='${libname}${release}.a $libname.a'
  9805. soname_spec='${libname}${release}${shared_ext}$major'
  9806. fi
  9807. shlibpath_var=LIBPATH
  9808. fi
  9809. ;;
  9810. amigaos*)
  9811. case $host_cpu in
  9812. powerpc)
  9813. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9814. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9816. ;;
  9817. m68k)
  9818. library_names_spec='$libname.ixlibrary $libname.a'
  9819. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9820. 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'
  9821. ;;
  9822. esac
  9823. ;;
  9824. beos*)
  9825. library_names_spec='${libname}${shared_ext}'
  9826. dynamic_linker="$host_os ld.so"
  9827. shlibpath_var=LIBRARY_PATH
  9828. ;;
  9829. bsdi[45]*)
  9830. version_type=linux # correct to gnu/linux during the next big refactor
  9831. need_version=no
  9832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9833. soname_spec='${libname}${release}${shared_ext}$major'
  9834. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9835. shlibpath_var=LD_LIBRARY_PATH
  9836. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9837. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9838. # the default ld.so.conf also contains /usr/contrib/lib and
  9839. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9840. # libtool to hard-code these into programs
  9841. ;;
  9842. cygwin* | mingw* | pw32* | cegcc*)
  9843. version_type=windows
  9844. shrext_cmds=".dll"
  9845. need_version=no
  9846. need_lib_prefix=no
  9847. case $GCC,$cc_basename in
  9848. yes,*)
  9849. # gcc
  9850. library_names_spec='$libname.dll.a'
  9851. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9852. postinstall_cmds='base_file=`basename \${file}`~
  9853. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9854. dldir=$destdir/`dirname \$dlpath`~
  9855. test -d \$dldir || mkdir -p \$dldir~
  9856. $install_prog $dir/$dlname \$dldir/$dlname~
  9857. chmod a+x \$dldir/$dlname~
  9858. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9859. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9860. fi'
  9861. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9862. dlpath=$dir/\$dldll~
  9863. $RM \$dlpath'
  9864. shlibpath_overrides_runpath=yes
  9865. case $host_os in
  9866. cygwin*)
  9867. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9868. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9869. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9870. ;;
  9871. mingw* | cegcc*)
  9872. # MinGW DLLs use traditional 'lib' prefix
  9873. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9874. ;;
  9875. pw32*)
  9876. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9877. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9878. ;;
  9879. esac
  9880. dynamic_linker='Win32 ld.exe'
  9881. ;;
  9882. *,cl*)
  9883. # Native MSVC
  9884. libname_spec='$name'
  9885. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9886. library_names_spec='${libname}.dll.lib'
  9887. case $build_os in
  9888. mingw*)
  9889. sys_lib_search_path_spec=
  9890. lt_save_ifs=$IFS
  9891. IFS=';'
  9892. for lt_path in $LIB
  9893. do
  9894. IFS=$lt_save_ifs
  9895. # Let DOS variable expansion print the short 8.3 style file name.
  9896. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9897. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9898. done
  9899. IFS=$lt_save_ifs
  9900. # Convert to MSYS style.
  9901. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9902. ;;
  9903. cygwin*)
  9904. # Convert to unix form, then to dos form, then back to unix form
  9905. # but this time dos style (no spaces!) so that the unix form looks
  9906. # like /cygdrive/c/PROGRA~1:/cygdr...
  9907. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9908. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9909. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9910. ;;
  9911. *)
  9912. sys_lib_search_path_spec="$LIB"
  9913. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9914. # It is most probably a Windows format PATH.
  9915. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9916. else
  9917. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9918. fi
  9919. # FIXME: find the short name or the path components, as spaces are
  9920. # common. (e.g. "Program Files" -> "PROGRA~1")
  9921. ;;
  9922. esac
  9923. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9924. postinstall_cmds='base_file=`basename \${file}`~
  9925. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9926. dldir=$destdir/`dirname \$dlpath`~
  9927. test -d \$dldir || mkdir -p \$dldir~
  9928. $install_prog $dir/$dlname \$dldir/$dlname'
  9929. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9930. dlpath=$dir/\$dldll~
  9931. $RM \$dlpath'
  9932. shlibpath_overrides_runpath=yes
  9933. dynamic_linker='Win32 link.exe'
  9934. ;;
  9935. *)
  9936. # Assume MSVC wrapper
  9937. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9938. dynamic_linker='Win32 ld.exe'
  9939. ;;
  9940. esac
  9941. # FIXME: first we should search . and the directory the executable is in
  9942. shlibpath_var=PATH
  9943. ;;
  9944. darwin* | rhapsody*)
  9945. dynamic_linker="$host_os dyld"
  9946. version_type=darwin
  9947. need_lib_prefix=no
  9948. need_version=no
  9949. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9950. soname_spec='${libname}${release}${major}$shared_ext'
  9951. shlibpath_overrides_runpath=yes
  9952. shlibpath_var=DYLD_LIBRARY_PATH
  9953. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9954. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9955. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9956. ;;
  9957. dgux*)
  9958. version_type=linux # correct to gnu/linux during the next big refactor
  9959. need_lib_prefix=no
  9960. need_version=no
  9961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9962. soname_spec='${libname}${release}${shared_ext}$major'
  9963. shlibpath_var=LD_LIBRARY_PATH
  9964. ;;
  9965. freebsd* | dragonfly*)
  9966. # DragonFly does not have aout. When/if they implement a new
  9967. # versioning mechanism, adjust this.
  9968. if test -x /usr/bin/objformat; then
  9969. objformat=`/usr/bin/objformat`
  9970. else
  9971. case $host_os in
  9972. freebsd[23].*) objformat=aout ;;
  9973. *) objformat=elf ;;
  9974. esac
  9975. fi
  9976. version_type=freebsd-$objformat
  9977. case $version_type in
  9978. freebsd-elf*)
  9979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9980. need_version=no
  9981. need_lib_prefix=no
  9982. ;;
  9983. freebsd-*)
  9984. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9985. need_version=yes
  9986. ;;
  9987. esac
  9988. shlibpath_var=LD_LIBRARY_PATH
  9989. case $host_os in
  9990. freebsd2.*)
  9991. shlibpath_overrides_runpath=yes
  9992. ;;
  9993. freebsd3.[01]* | freebsdelf3.[01]*)
  9994. shlibpath_overrides_runpath=yes
  9995. hardcode_into_libs=yes
  9996. ;;
  9997. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9998. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9999. shlibpath_overrides_runpath=no
  10000. hardcode_into_libs=yes
  10001. ;;
  10002. *) # from 4.6 on, and DragonFly
  10003. shlibpath_overrides_runpath=yes
  10004. hardcode_into_libs=yes
  10005. ;;
  10006. esac
  10007. ;;
  10008. gnu*)
  10009. version_type=linux # correct to gnu/linux during the next big refactor
  10010. need_lib_prefix=no
  10011. need_version=no
  10012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10013. soname_spec='${libname}${release}${shared_ext}$major'
  10014. shlibpath_var=LD_LIBRARY_PATH
  10015. shlibpath_overrides_runpath=no
  10016. hardcode_into_libs=yes
  10017. ;;
  10018. haiku*)
  10019. version_type=linux # correct to gnu/linux during the next big refactor
  10020. need_lib_prefix=no
  10021. need_version=no
  10022. dynamic_linker="$host_os runtime_loader"
  10023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10024. soname_spec='${libname}${release}${shared_ext}$major'
  10025. shlibpath_var=LIBRARY_PATH
  10026. shlibpath_overrides_runpath=yes
  10027. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10028. hardcode_into_libs=yes
  10029. ;;
  10030. hpux9* | hpux10* | hpux11*)
  10031. # Give a soname corresponding to the major version so that dld.sl refuses to
  10032. # link against other versions.
  10033. version_type=sunos
  10034. need_lib_prefix=no
  10035. need_version=no
  10036. case $host_cpu in
  10037. ia64*)
  10038. shrext_cmds='.so'
  10039. hardcode_into_libs=yes
  10040. dynamic_linker="$host_os dld.so"
  10041. shlibpath_var=LD_LIBRARY_PATH
  10042. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10044. soname_spec='${libname}${release}${shared_ext}$major'
  10045. if test "X$HPUX_IA64_MODE" = X32; then
  10046. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10047. else
  10048. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10049. fi
  10050. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10051. ;;
  10052. hppa*64*)
  10053. shrext_cmds='.sl'
  10054. hardcode_into_libs=yes
  10055. dynamic_linker="$host_os dld.sl"
  10056. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10057. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10059. soname_spec='${libname}${release}${shared_ext}$major'
  10060. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10061. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10062. ;;
  10063. *)
  10064. shrext_cmds='.sl'
  10065. dynamic_linker="$host_os dld.sl"
  10066. shlibpath_var=SHLIB_PATH
  10067. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  10071. esac
  10072. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10073. postinstall_cmds='chmod 555 $lib'
  10074. # or fails outright, so override atomically:
  10075. install_override_mode=555
  10076. ;;
  10077. interix[3-9]*)
  10078. version_type=linux # correct to gnu/linux during the next big refactor
  10079. need_lib_prefix=no
  10080. need_version=no
  10081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10082. soname_spec='${libname}${release}${shared_ext}$major'
  10083. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10084. shlibpath_var=LD_LIBRARY_PATH
  10085. shlibpath_overrides_runpath=no
  10086. hardcode_into_libs=yes
  10087. ;;
  10088. irix5* | irix6* | nonstopux*)
  10089. case $host_os in
  10090. nonstopux*) version_type=nonstopux ;;
  10091. *)
  10092. if test "$lt_cv_prog_gnu_ld" = yes; then
  10093. version_type=linux # correct to gnu/linux during the next big refactor
  10094. else
  10095. version_type=irix
  10096. fi ;;
  10097. esac
  10098. need_lib_prefix=no
  10099. need_version=no
  10100. soname_spec='${libname}${release}${shared_ext}$major'
  10101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10102. case $host_os in
  10103. irix5* | nonstopux*)
  10104. libsuff= shlibsuff=
  10105. ;;
  10106. *)
  10107. case $LD in # libtool.m4 will add one of these switches to LD
  10108. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10109. libsuff= shlibsuff= libmagic=32-bit;;
  10110. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10111. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10112. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10113. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10114. *) libsuff= shlibsuff= libmagic=never-match;;
  10115. esac
  10116. ;;
  10117. esac
  10118. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10119. shlibpath_overrides_runpath=no
  10120. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10121. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10122. hardcode_into_libs=yes
  10123. ;;
  10124. # No shared lib support for Linux oldld, aout, or coff.
  10125. linux*oldld* | linux*aout* | linux*coff*)
  10126. dynamic_linker=no
  10127. ;;
  10128. # This must be glibc/ELF.
  10129. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10130. version_type=linux # correct to gnu/linux during the next big refactor
  10131. need_lib_prefix=no
  10132. need_version=no
  10133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10134. soname_spec='${libname}${release}${shared_ext}$major'
  10135. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10136. shlibpath_var=LD_LIBRARY_PATH
  10137. shlibpath_overrides_runpath=no
  10138. # Some binutils ld are patched to set DT_RUNPATH
  10139. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10140. $as_echo_n "(cached) " >&6
  10141. else
  10142. lt_cv_shlibpath_overrides_runpath=no
  10143. save_LDFLAGS=$LDFLAGS
  10144. save_libdir=$libdir
  10145. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10146. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10148. /* end confdefs.h. */
  10149. int
  10150. main ()
  10151. {
  10152. ;
  10153. return 0;
  10154. }
  10155. _ACEOF
  10156. if ac_fn_c_try_link "$LINENO"; then :
  10157. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10158. lt_cv_shlibpath_overrides_runpath=yes
  10159. fi
  10160. fi
  10161. rm -f core conftest.err conftest.$ac_objext \
  10162. conftest$ac_exeext conftest.$ac_ext
  10163. LDFLAGS=$save_LDFLAGS
  10164. libdir=$save_libdir
  10165. fi
  10166. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10167. # This implies no fast_install, which is unacceptable.
  10168. # Some rework will be needed to allow for fast_install
  10169. # before this can be enabled.
  10170. hardcode_into_libs=yes
  10171. # Add ABI-specific directories to the system library path.
  10172. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10173. # Append ld.so.conf contents to the search path
  10174. if test -f /etc/ld.so.conf; then
  10175. 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' ' '`
  10176. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10177. fi
  10178. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10179. # powerpc, because MkLinux only supported shared libraries with the
  10180. # GNU dynamic linker. Since this was broken with cross compilers,
  10181. # most powerpc-linux boxes support dynamic linking these days and
  10182. # people can always --disable-shared, the test was removed, and we
  10183. # assume the GNU/Linux dynamic linker is in use.
  10184. dynamic_linker='GNU/Linux ld.so'
  10185. ;;
  10186. netbsd*)
  10187. version_type=sunos
  10188. need_lib_prefix=no
  10189. need_version=no
  10190. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10192. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10193. dynamic_linker='NetBSD (a.out) ld.so'
  10194. else
  10195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10196. soname_spec='${libname}${release}${shared_ext}$major'
  10197. dynamic_linker='NetBSD ld.elf_so'
  10198. fi
  10199. shlibpath_var=LD_LIBRARY_PATH
  10200. shlibpath_overrides_runpath=yes
  10201. hardcode_into_libs=yes
  10202. ;;
  10203. newsos6)
  10204. version_type=linux # correct to gnu/linux during the next big refactor
  10205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10206. shlibpath_var=LD_LIBRARY_PATH
  10207. shlibpath_overrides_runpath=yes
  10208. ;;
  10209. *nto* | *qnx*)
  10210. version_type=qnx
  10211. need_lib_prefix=no
  10212. need_version=no
  10213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10214. soname_spec='${libname}${release}${shared_ext}$major'
  10215. shlibpath_var=LD_LIBRARY_PATH
  10216. shlibpath_overrides_runpath=no
  10217. hardcode_into_libs=yes
  10218. dynamic_linker='ldqnx.so'
  10219. ;;
  10220. openbsd*)
  10221. version_type=sunos
  10222. sys_lib_dlsearch_path_spec="/usr/lib"
  10223. need_lib_prefix=no
  10224. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10225. case $host_os in
  10226. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10227. *) need_version=no ;;
  10228. esac
  10229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10230. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10231. shlibpath_var=LD_LIBRARY_PATH
  10232. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10233. case $host_os in
  10234. openbsd2.[89] | openbsd2.[89].*)
  10235. shlibpath_overrides_runpath=no
  10236. ;;
  10237. *)
  10238. shlibpath_overrides_runpath=yes
  10239. ;;
  10240. esac
  10241. else
  10242. shlibpath_overrides_runpath=yes
  10243. fi
  10244. ;;
  10245. os2*)
  10246. libname_spec='$name'
  10247. shrext_cmds=".dll"
  10248. need_lib_prefix=no
  10249. library_names_spec='$libname${shared_ext} $libname.a'
  10250. dynamic_linker='OS/2 ld.exe'
  10251. shlibpath_var=LIBPATH
  10252. ;;
  10253. osf3* | osf4* | osf5*)
  10254. version_type=osf
  10255. need_lib_prefix=no
  10256. need_version=no
  10257. soname_spec='${libname}${release}${shared_ext}$major'
  10258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10259. shlibpath_var=LD_LIBRARY_PATH
  10260. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10261. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10262. ;;
  10263. rdos*)
  10264. dynamic_linker=no
  10265. ;;
  10266. solaris*)
  10267. version_type=linux # correct to gnu/linux during the next big refactor
  10268. need_lib_prefix=no
  10269. need_version=no
  10270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10271. soname_spec='${libname}${release}${shared_ext}$major'
  10272. shlibpath_var=LD_LIBRARY_PATH
  10273. shlibpath_overrides_runpath=yes
  10274. hardcode_into_libs=yes
  10275. # ldd complains unless libraries are executable
  10276. postinstall_cmds='chmod +x $lib'
  10277. ;;
  10278. sunos4*)
  10279. version_type=sunos
  10280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10281. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10282. shlibpath_var=LD_LIBRARY_PATH
  10283. shlibpath_overrides_runpath=yes
  10284. if test "$with_gnu_ld" = yes; then
  10285. need_lib_prefix=no
  10286. fi
  10287. need_version=yes
  10288. ;;
  10289. sysv4 | sysv4.3*)
  10290. version_type=linux # correct to gnu/linux during the next big refactor
  10291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10292. soname_spec='${libname}${release}${shared_ext}$major'
  10293. shlibpath_var=LD_LIBRARY_PATH
  10294. case $host_vendor in
  10295. sni)
  10296. shlibpath_overrides_runpath=no
  10297. need_lib_prefix=no
  10298. runpath_var=LD_RUN_PATH
  10299. ;;
  10300. siemens)
  10301. need_lib_prefix=no
  10302. ;;
  10303. motorola)
  10304. need_lib_prefix=no
  10305. need_version=no
  10306. shlibpath_overrides_runpath=no
  10307. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10308. ;;
  10309. esac
  10310. ;;
  10311. sysv4*MP*)
  10312. if test -d /usr/nec ;then
  10313. version_type=linux # correct to gnu/linux during the next big refactor
  10314. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10315. soname_spec='$libname${shared_ext}.$major'
  10316. shlibpath_var=LD_LIBRARY_PATH
  10317. fi
  10318. ;;
  10319. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10320. version_type=freebsd-elf
  10321. need_lib_prefix=no
  10322. need_version=no
  10323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10324. soname_spec='${libname}${release}${shared_ext}$major'
  10325. shlibpath_var=LD_LIBRARY_PATH
  10326. shlibpath_overrides_runpath=yes
  10327. hardcode_into_libs=yes
  10328. if test "$with_gnu_ld" = yes; then
  10329. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10330. else
  10331. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10332. case $host_os in
  10333. sco3.2v5*)
  10334. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10335. ;;
  10336. esac
  10337. fi
  10338. sys_lib_dlsearch_path_spec='/usr/lib'
  10339. ;;
  10340. tpf*)
  10341. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10342. version_type=linux # correct to gnu/linux during the next big refactor
  10343. need_lib_prefix=no
  10344. need_version=no
  10345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10346. shlibpath_var=LD_LIBRARY_PATH
  10347. shlibpath_overrides_runpath=no
  10348. hardcode_into_libs=yes
  10349. ;;
  10350. uts4*)
  10351. version_type=linux # correct to gnu/linux during the next big refactor
  10352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10353. soname_spec='${libname}${release}${shared_ext}$major'
  10354. shlibpath_var=LD_LIBRARY_PATH
  10355. ;;
  10356. *)
  10357. dynamic_linker=no
  10358. ;;
  10359. esac
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10361. $as_echo "$dynamic_linker" >&6; }
  10362. test "$dynamic_linker" = no && can_build_shared=no
  10363. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10364. if test "$GCC" = yes; then
  10365. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10366. fi
  10367. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10368. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10369. fi
  10370. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10371. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10372. fi
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10374. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10375. hardcode_action=
  10376. if test -n "$hardcode_libdir_flag_spec" ||
  10377. test -n "$runpath_var" ||
  10378. test "X$hardcode_automatic" = "Xyes" ; then
  10379. # We can hardcode non-existent directories.
  10380. if test "$hardcode_direct" != no &&
  10381. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10382. # have to relink, otherwise we might link with an installed library
  10383. # when we should be linking with a yet-to-be-installed one
  10384. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10385. test "$hardcode_minus_L" != no; then
  10386. # Linking always hardcodes the temporary library directory.
  10387. hardcode_action=relink
  10388. else
  10389. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10390. hardcode_action=immediate
  10391. fi
  10392. else
  10393. # We cannot hardcode anything, or else we can only hardcode existing
  10394. # directories.
  10395. hardcode_action=unsupported
  10396. fi
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10398. $as_echo "$hardcode_action" >&6; }
  10399. if test "$hardcode_action" = relink ||
  10400. test "$inherit_rpath" = yes; then
  10401. # Fast installation is not supported
  10402. enable_fast_install=no
  10403. elif test "$shlibpath_overrides_runpath" = yes ||
  10404. test "$enable_shared" = no; then
  10405. # Fast installation is not necessary
  10406. enable_fast_install=needless
  10407. fi
  10408. if test "x$enable_dlopen" != xyes; then
  10409. enable_dlopen=unknown
  10410. enable_dlopen_self=unknown
  10411. enable_dlopen_self_static=unknown
  10412. else
  10413. lt_cv_dlopen=no
  10414. lt_cv_dlopen_libs=
  10415. case $host_os in
  10416. beos*)
  10417. lt_cv_dlopen="load_add_on"
  10418. lt_cv_dlopen_libs=
  10419. lt_cv_dlopen_self=yes
  10420. ;;
  10421. mingw* | pw32* | cegcc*)
  10422. lt_cv_dlopen="LoadLibrary"
  10423. lt_cv_dlopen_libs=
  10424. ;;
  10425. cygwin*)
  10426. lt_cv_dlopen="dlopen"
  10427. lt_cv_dlopen_libs=
  10428. ;;
  10429. darwin*)
  10430. # if libdl is installed we need to link against it
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10432. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10433. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10434. $as_echo_n "(cached) " >&6
  10435. else
  10436. ac_check_lib_save_LIBS=$LIBS
  10437. LIBS="-ldl $LIBS"
  10438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10439. /* end confdefs.h. */
  10440. /* Override any GCC internal prototype to avoid an error.
  10441. Use char because int might match the return type of a GCC
  10442. builtin and then its argument prototype would still apply. */
  10443. #ifdef __cplusplus
  10444. extern "C"
  10445. #endif
  10446. char dlopen ();
  10447. int
  10448. main ()
  10449. {
  10450. return dlopen ();
  10451. ;
  10452. return 0;
  10453. }
  10454. _ACEOF
  10455. if ac_fn_c_try_link "$LINENO"; then :
  10456. ac_cv_lib_dl_dlopen=yes
  10457. else
  10458. ac_cv_lib_dl_dlopen=no
  10459. fi
  10460. rm -f core conftest.err conftest.$ac_objext \
  10461. conftest$ac_exeext conftest.$ac_ext
  10462. LIBS=$ac_check_lib_save_LIBS
  10463. fi
  10464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10465. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10466. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10467. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10468. else
  10469. lt_cv_dlopen="dyld"
  10470. lt_cv_dlopen_libs=
  10471. lt_cv_dlopen_self=yes
  10472. fi
  10473. ;;
  10474. *)
  10475. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10476. if test "x$ac_cv_func_shl_load" = xyes; then :
  10477. lt_cv_dlopen="shl_load"
  10478. else
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10480. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10481. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10482. $as_echo_n "(cached) " >&6
  10483. else
  10484. ac_check_lib_save_LIBS=$LIBS
  10485. LIBS="-ldld $LIBS"
  10486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10487. /* end confdefs.h. */
  10488. /* Override any GCC internal prototype to avoid an error.
  10489. Use char because int might match the return type of a GCC
  10490. builtin and then its argument prototype would still apply. */
  10491. #ifdef __cplusplus
  10492. extern "C"
  10493. #endif
  10494. char shl_load ();
  10495. int
  10496. main ()
  10497. {
  10498. return shl_load ();
  10499. ;
  10500. return 0;
  10501. }
  10502. _ACEOF
  10503. if ac_fn_c_try_link "$LINENO"; then :
  10504. ac_cv_lib_dld_shl_load=yes
  10505. else
  10506. ac_cv_lib_dld_shl_load=no
  10507. fi
  10508. rm -f core conftest.err conftest.$ac_objext \
  10509. conftest$ac_exeext conftest.$ac_ext
  10510. LIBS=$ac_check_lib_save_LIBS
  10511. fi
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10513. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10514. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10515. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10516. else
  10517. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10518. if test "x$ac_cv_func_dlopen" = xyes; then :
  10519. lt_cv_dlopen="dlopen"
  10520. else
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10522. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10523. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10524. $as_echo_n "(cached) " >&6
  10525. else
  10526. ac_check_lib_save_LIBS=$LIBS
  10527. LIBS="-ldl $LIBS"
  10528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10529. /* end confdefs.h. */
  10530. /* Override any GCC internal prototype to avoid an error.
  10531. Use char because int might match the return type of a GCC
  10532. builtin and then its argument prototype would still apply. */
  10533. #ifdef __cplusplus
  10534. extern "C"
  10535. #endif
  10536. char dlopen ();
  10537. int
  10538. main ()
  10539. {
  10540. return dlopen ();
  10541. ;
  10542. return 0;
  10543. }
  10544. _ACEOF
  10545. if ac_fn_c_try_link "$LINENO"; then :
  10546. ac_cv_lib_dl_dlopen=yes
  10547. else
  10548. ac_cv_lib_dl_dlopen=no
  10549. fi
  10550. rm -f core conftest.err conftest.$ac_objext \
  10551. conftest$ac_exeext conftest.$ac_ext
  10552. LIBS=$ac_check_lib_save_LIBS
  10553. fi
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10555. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10556. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10557. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10558. else
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10560. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10561. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10562. $as_echo_n "(cached) " >&6
  10563. else
  10564. ac_check_lib_save_LIBS=$LIBS
  10565. LIBS="-lsvld $LIBS"
  10566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10567. /* end confdefs.h. */
  10568. /* Override any GCC internal prototype to avoid an error.
  10569. Use char because int might match the return type of a GCC
  10570. builtin and then its argument prototype would still apply. */
  10571. #ifdef __cplusplus
  10572. extern "C"
  10573. #endif
  10574. char dlopen ();
  10575. int
  10576. main ()
  10577. {
  10578. return dlopen ();
  10579. ;
  10580. return 0;
  10581. }
  10582. _ACEOF
  10583. if ac_fn_c_try_link "$LINENO"; then :
  10584. ac_cv_lib_svld_dlopen=yes
  10585. else
  10586. ac_cv_lib_svld_dlopen=no
  10587. fi
  10588. rm -f core conftest.err conftest.$ac_objext \
  10589. conftest$ac_exeext conftest.$ac_ext
  10590. LIBS=$ac_check_lib_save_LIBS
  10591. fi
  10592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10593. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10594. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10595. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10596. else
  10597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10598. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10599. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10600. $as_echo_n "(cached) " >&6
  10601. else
  10602. ac_check_lib_save_LIBS=$LIBS
  10603. LIBS="-ldld $LIBS"
  10604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10605. /* end confdefs.h. */
  10606. /* Override any GCC internal prototype to avoid an error.
  10607. Use char because int might match the return type of a GCC
  10608. builtin and then its argument prototype would still apply. */
  10609. #ifdef __cplusplus
  10610. extern "C"
  10611. #endif
  10612. char dld_link ();
  10613. int
  10614. main ()
  10615. {
  10616. return dld_link ();
  10617. ;
  10618. return 0;
  10619. }
  10620. _ACEOF
  10621. if ac_fn_c_try_link "$LINENO"; then :
  10622. ac_cv_lib_dld_dld_link=yes
  10623. else
  10624. ac_cv_lib_dld_dld_link=no
  10625. fi
  10626. rm -f core conftest.err conftest.$ac_objext \
  10627. conftest$ac_exeext conftest.$ac_ext
  10628. LIBS=$ac_check_lib_save_LIBS
  10629. fi
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10631. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10632. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10633. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10634. fi
  10635. fi
  10636. fi
  10637. fi
  10638. fi
  10639. fi
  10640. ;;
  10641. esac
  10642. if test "x$lt_cv_dlopen" != xno; then
  10643. enable_dlopen=yes
  10644. else
  10645. enable_dlopen=no
  10646. fi
  10647. case $lt_cv_dlopen in
  10648. dlopen)
  10649. save_CPPFLAGS="$CPPFLAGS"
  10650. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10651. save_LDFLAGS="$LDFLAGS"
  10652. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10653. save_LIBS="$LIBS"
  10654. LIBS="$lt_cv_dlopen_libs $LIBS"
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10656. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10657. if ${lt_cv_dlopen_self+:} false; then :
  10658. $as_echo_n "(cached) " >&6
  10659. else
  10660. if test "$cross_compiling" = yes; then :
  10661. lt_cv_dlopen_self=cross
  10662. else
  10663. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10664. lt_status=$lt_dlunknown
  10665. cat > conftest.$ac_ext <<_LT_EOF
  10666. #line $LINENO "configure"
  10667. #include "confdefs.h"
  10668. #if HAVE_DLFCN_H
  10669. #include <dlfcn.h>
  10670. #endif
  10671. #include <stdio.h>
  10672. #ifdef RTLD_GLOBAL
  10673. # define LT_DLGLOBAL RTLD_GLOBAL
  10674. #else
  10675. # ifdef DL_GLOBAL
  10676. # define LT_DLGLOBAL DL_GLOBAL
  10677. # else
  10678. # define LT_DLGLOBAL 0
  10679. # endif
  10680. #endif
  10681. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10682. find out it does not work in some platform. */
  10683. #ifndef LT_DLLAZY_OR_NOW
  10684. # ifdef RTLD_LAZY
  10685. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10686. # else
  10687. # ifdef DL_LAZY
  10688. # define LT_DLLAZY_OR_NOW DL_LAZY
  10689. # else
  10690. # ifdef RTLD_NOW
  10691. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10692. # else
  10693. # ifdef DL_NOW
  10694. # define LT_DLLAZY_OR_NOW DL_NOW
  10695. # else
  10696. # define LT_DLLAZY_OR_NOW 0
  10697. # endif
  10698. # endif
  10699. # endif
  10700. # endif
  10701. #endif
  10702. /* When -fvisbility=hidden is used, assume the code has been annotated
  10703. correspondingly for the symbols needed. */
  10704. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10705. int fnord () __attribute__((visibility("default")));
  10706. #endif
  10707. int fnord () { return 42; }
  10708. int main ()
  10709. {
  10710. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10711. int status = $lt_dlunknown;
  10712. if (self)
  10713. {
  10714. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10715. else
  10716. {
  10717. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10718. else puts (dlerror ());
  10719. }
  10720. /* dlclose (self); */
  10721. }
  10722. else
  10723. puts (dlerror ());
  10724. return status;
  10725. }
  10726. _LT_EOF
  10727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10728. (eval $ac_link) 2>&5
  10729. ac_status=$?
  10730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10731. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10732. (./conftest; exit; ) >&5 2>/dev/null
  10733. lt_status=$?
  10734. case x$lt_status in
  10735. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10736. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10737. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10738. esac
  10739. else :
  10740. # compilation failed
  10741. lt_cv_dlopen_self=no
  10742. fi
  10743. fi
  10744. rm -fr conftest*
  10745. fi
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10747. $as_echo "$lt_cv_dlopen_self" >&6; }
  10748. if test "x$lt_cv_dlopen_self" = xyes; then
  10749. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10751. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10752. if ${lt_cv_dlopen_self_static+:} false; then :
  10753. $as_echo_n "(cached) " >&6
  10754. else
  10755. if test "$cross_compiling" = yes; then :
  10756. lt_cv_dlopen_self_static=cross
  10757. else
  10758. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10759. lt_status=$lt_dlunknown
  10760. cat > conftest.$ac_ext <<_LT_EOF
  10761. #line $LINENO "configure"
  10762. #include "confdefs.h"
  10763. #if HAVE_DLFCN_H
  10764. #include <dlfcn.h>
  10765. #endif
  10766. #include <stdio.h>
  10767. #ifdef RTLD_GLOBAL
  10768. # define LT_DLGLOBAL RTLD_GLOBAL
  10769. #else
  10770. # ifdef DL_GLOBAL
  10771. # define LT_DLGLOBAL DL_GLOBAL
  10772. # else
  10773. # define LT_DLGLOBAL 0
  10774. # endif
  10775. #endif
  10776. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10777. find out it does not work in some platform. */
  10778. #ifndef LT_DLLAZY_OR_NOW
  10779. # ifdef RTLD_LAZY
  10780. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10781. # else
  10782. # ifdef DL_LAZY
  10783. # define LT_DLLAZY_OR_NOW DL_LAZY
  10784. # else
  10785. # ifdef RTLD_NOW
  10786. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10787. # else
  10788. # ifdef DL_NOW
  10789. # define LT_DLLAZY_OR_NOW DL_NOW
  10790. # else
  10791. # define LT_DLLAZY_OR_NOW 0
  10792. # endif
  10793. # endif
  10794. # endif
  10795. # endif
  10796. #endif
  10797. /* When -fvisbility=hidden is used, assume the code has been annotated
  10798. correspondingly for the symbols needed. */
  10799. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10800. int fnord () __attribute__((visibility("default")));
  10801. #endif
  10802. int fnord () { return 42; }
  10803. int main ()
  10804. {
  10805. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10806. int status = $lt_dlunknown;
  10807. if (self)
  10808. {
  10809. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10810. else
  10811. {
  10812. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10813. else puts (dlerror ());
  10814. }
  10815. /* dlclose (self); */
  10816. }
  10817. else
  10818. puts (dlerror ());
  10819. return status;
  10820. }
  10821. _LT_EOF
  10822. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10823. (eval $ac_link) 2>&5
  10824. ac_status=$?
  10825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10826. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10827. (./conftest; exit; ) >&5 2>/dev/null
  10828. lt_status=$?
  10829. case x$lt_status in
  10830. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10831. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10832. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10833. esac
  10834. else :
  10835. # compilation failed
  10836. lt_cv_dlopen_self_static=no
  10837. fi
  10838. fi
  10839. rm -fr conftest*
  10840. fi
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10842. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10843. fi
  10844. CPPFLAGS="$save_CPPFLAGS"
  10845. LDFLAGS="$save_LDFLAGS"
  10846. LIBS="$save_LIBS"
  10847. ;;
  10848. esac
  10849. case $lt_cv_dlopen_self in
  10850. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10851. *) enable_dlopen_self=unknown ;;
  10852. esac
  10853. case $lt_cv_dlopen_self_static in
  10854. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10855. *) enable_dlopen_self_static=unknown ;;
  10856. esac
  10857. fi
  10858. striplib=
  10859. old_striplib=
  10860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10861. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10862. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10863. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10864. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10866. $as_echo "yes" >&6; }
  10867. else
  10868. # FIXME - insert some real tests, host_os isn't really good enough
  10869. case $host_os in
  10870. darwin*)
  10871. if test -n "$STRIP" ; then
  10872. striplib="$STRIP -x"
  10873. old_striplib="$STRIP -S"
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10875. $as_echo "yes" >&6; }
  10876. else
  10877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10878. $as_echo "no" >&6; }
  10879. fi
  10880. ;;
  10881. *)
  10882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10883. $as_echo "no" >&6; }
  10884. ;;
  10885. esac
  10886. fi
  10887. # Report which library types will actually be built
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10889. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10891. $as_echo "$can_build_shared" >&6; }
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10893. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10894. test "$can_build_shared" = "no" && enable_shared=no
  10895. # On AIX, shared libraries and static libraries use the same namespace, and
  10896. # are all built from PIC.
  10897. case $host_os in
  10898. aix3*)
  10899. test "$enable_shared" = yes && enable_static=no
  10900. if test -n "$RANLIB"; then
  10901. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10902. postinstall_cmds='$RANLIB $lib'
  10903. fi
  10904. ;;
  10905. aix[4-9]*)
  10906. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10907. test "$enable_shared" = yes && enable_static=no
  10908. fi
  10909. ;;
  10910. esac
  10911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10912. $as_echo "$enable_shared" >&6; }
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10914. $as_echo_n "checking whether to build static libraries... " >&6; }
  10915. # Make sure either enable_shared or enable_static is yes.
  10916. test "$enable_shared" = yes || enable_static=yes
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10918. $as_echo "$enable_static" >&6; }
  10919. fi
  10920. ac_ext=c
  10921. ac_cpp='$CPP $CPPFLAGS'
  10922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10925. CC="$lt_save_CC"
  10926. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10927. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10928. (test "X$CXX" != "Xg++"))) ; then
  10929. ac_ext=cpp
  10930. ac_cpp='$CXXCPP $CPPFLAGS'
  10931. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10932. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10933. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10935. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10936. if test -z "$CXXCPP"; then
  10937. if ${ac_cv_prog_CXXCPP+:} false; then :
  10938. $as_echo_n "(cached) " >&6
  10939. else
  10940. # Double quotes because CXXCPP needs to be expanded
  10941. for CXXCPP in "$CXX -E" "/lib/cpp"
  10942. do
  10943. ac_preproc_ok=false
  10944. for ac_cxx_preproc_warn_flag in '' yes
  10945. do
  10946. # Use a header file that comes with gcc, so configuring glibc
  10947. # with a fresh cross-compiler works.
  10948. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10949. # <limits.h> exists even on freestanding compilers.
  10950. # On the NeXT, cc -E runs the code through the compiler's parser,
  10951. # not just through cpp. "Syntax error" is here to catch this case.
  10952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10953. /* end confdefs.h. */
  10954. #ifdef __STDC__
  10955. # include <limits.h>
  10956. #else
  10957. # include <assert.h>
  10958. #endif
  10959. Syntax error
  10960. _ACEOF
  10961. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10962. else
  10963. # Broken: fails on valid input.
  10964. continue
  10965. fi
  10966. rm -f conftest.err conftest.i conftest.$ac_ext
  10967. # OK, works on sane cases. Now check whether nonexistent headers
  10968. # can be detected and how.
  10969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10970. /* end confdefs.h. */
  10971. #include <ac_nonexistent.h>
  10972. _ACEOF
  10973. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10974. # Broken: success on invalid input.
  10975. continue
  10976. else
  10977. # Passes both tests.
  10978. ac_preproc_ok=:
  10979. break
  10980. fi
  10981. rm -f conftest.err conftest.i conftest.$ac_ext
  10982. done
  10983. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10984. rm -f conftest.i conftest.err conftest.$ac_ext
  10985. if $ac_preproc_ok; then :
  10986. break
  10987. fi
  10988. done
  10989. ac_cv_prog_CXXCPP=$CXXCPP
  10990. fi
  10991. CXXCPP=$ac_cv_prog_CXXCPP
  10992. else
  10993. ac_cv_prog_CXXCPP=$CXXCPP
  10994. fi
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10996. $as_echo "$CXXCPP" >&6; }
  10997. ac_preproc_ok=false
  10998. for ac_cxx_preproc_warn_flag in '' yes
  10999. do
  11000. # Use a header file that comes with gcc, so configuring glibc
  11001. # with a fresh cross-compiler works.
  11002. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11003. # <limits.h> exists even on freestanding compilers.
  11004. # On the NeXT, cc -E runs the code through the compiler's parser,
  11005. # not just through cpp. "Syntax error" is here to catch this case.
  11006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11007. /* end confdefs.h. */
  11008. #ifdef __STDC__
  11009. # include <limits.h>
  11010. #else
  11011. # include <assert.h>
  11012. #endif
  11013. Syntax error
  11014. _ACEOF
  11015. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11016. else
  11017. # Broken: fails on valid input.
  11018. continue
  11019. fi
  11020. rm -f conftest.err conftest.i conftest.$ac_ext
  11021. # OK, works on sane cases. Now check whether nonexistent headers
  11022. # can be detected and how.
  11023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11024. /* end confdefs.h. */
  11025. #include <ac_nonexistent.h>
  11026. _ACEOF
  11027. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11028. # Broken: success on invalid input.
  11029. continue
  11030. else
  11031. # Passes both tests.
  11032. ac_preproc_ok=:
  11033. break
  11034. fi
  11035. rm -f conftest.err conftest.i conftest.$ac_ext
  11036. done
  11037. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11038. rm -f conftest.i conftest.err conftest.$ac_ext
  11039. if $ac_preproc_ok; then :
  11040. else
  11041. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11043. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11044. See \`config.log' for more details" "$LINENO" 5; }
  11045. fi
  11046. ac_ext=c
  11047. ac_cpp='$CPP $CPPFLAGS'
  11048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11051. else
  11052. _lt_caught_CXX_error=yes
  11053. fi
  11054. ac_ext=cpp
  11055. ac_cpp='$CXXCPP $CPPFLAGS'
  11056. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11057. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11058. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11059. archive_cmds_need_lc_CXX=no
  11060. allow_undefined_flag_CXX=
  11061. always_export_symbols_CXX=no
  11062. archive_expsym_cmds_CXX=
  11063. compiler_needs_object_CXX=no
  11064. export_dynamic_flag_spec_CXX=
  11065. hardcode_direct_CXX=no
  11066. hardcode_direct_absolute_CXX=no
  11067. hardcode_libdir_flag_spec_CXX=
  11068. hardcode_libdir_separator_CXX=
  11069. hardcode_minus_L_CXX=no
  11070. hardcode_shlibpath_var_CXX=unsupported
  11071. hardcode_automatic_CXX=no
  11072. inherit_rpath_CXX=no
  11073. module_cmds_CXX=
  11074. module_expsym_cmds_CXX=
  11075. link_all_deplibs_CXX=unknown
  11076. old_archive_cmds_CXX=$old_archive_cmds
  11077. reload_flag_CXX=$reload_flag
  11078. reload_cmds_CXX=$reload_cmds
  11079. no_undefined_flag_CXX=
  11080. whole_archive_flag_spec_CXX=
  11081. enable_shared_with_static_runtimes_CXX=no
  11082. # Source file extension for C++ test sources.
  11083. ac_ext=cpp
  11084. # Object file extension for compiled C++ test sources.
  11085. objext=o
  11086. objext_CXX=$objext
  11087. # No sense in running all these tests if we already determined that
  11088. # the CXX compiler isn't working. Some variables (like enable_shared)
  11089. # are currently assumed to apply to all compilers on this platform,
  11090. # and will be corrupted by setting them based on a non-working compiler.
  11091. if test "$_lt_caught_CXX_error" != yes; then
  11092. # Code to be used in simple compile tests
  11093. lt_simple_compile_test_code="int some_variable = 0;"
  11094. # Code to be used in simple link tests
  11095. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11096. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11097. # If no C compiler was specified, use CC.
  11098. LTCC=${LTCC-"$CC"}
  11099. # If no C compiler flags were specified, use CFLAGS.
  11100. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11101. # Allow CC to be a program name with arguments.
  11102. compiler=$CC
  11103. # save warnings/boilerplate of simple test code
  11104. ac_outfile=conftest.$ac_objext
  11105. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11106. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11107. _lt_compiler_boilerplate=`cat conftest.err`
  11108. $RM conftest*
  11109. ac_outfile=conftest.$ac_objext
  11110. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11111. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11112. _lt_linker_boilerplate=`cat conftest.err`
  11113. $RM -r conftest*
  11114. # Allow CC to be a program name with arguments.
  11115. lt_save_CC=$CC
  11116. lt_save_CFLAGS=$CFLAGS
  11117. lt_save_LD=$LD
  11118. lt_save_GCC=$GCC
  11119. GCC=$GXX
  11120. lt_save_with_gnu_ld=$with_gnu_ld
  11121. lt_save_path_LD=$lt_cv_path_LD
  11122. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11123. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11124. else
  11125. $as_unset lt_cv_prog_gnu_ld
  11126. fi
  11127. if test -n "${lt_cv_path_LDCXX+set}"; then
  11128. lt_cv_path_LD=$lt_cv_path_LDCXX
  11129. else
  11130. $as_unset lt_cv_path_LD
  11131. fi
  11132. test -z "${LDCXX+set}" || LD=$LDCXX
  11133. CC=${CXX-"c++"}
  11134. CFLAGS=$CXXFLAGS
  11135. compiler=$CC
  11136. compiler_CXX=$CC
  11137. for cc_temp in $compiler""; do
  11138. case $cc_temp in
  11139. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11140. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11141. \-*) ;;
  11142. *) break;;
  11143. esac
  11144. done
  11145. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11146. if test -n "$compiler"; then
  11147. # We don't want -fno-exception when compiling C++ code, so set the
  11148. # no_builtin_flag separately
  11149. if test "$GXX" = yes; then
  11150. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11151. else
  11152. lt_prog_compiler_no_builtin_flag_CXX=
  11153. fi
  11154. if test "$GXX" = yes; then
  11155. # Set up default GNU C++ configuration
  11156. # Check whether --with-gnu-ld was given.
  11157. if test "${with_gnu_ld+set}" = set; then :
  11158. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11159. else
  11160. with_gnu_ld=no
  11161. fi
  11162. ac_prog=ld
  11163. if test "$GCC" = yes; then
  11164. # Check if gcc -print-prog-name=ld gives a path.
  11165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11166. $as_echo_n "checking for ld used by $CC... " >&6; }
  11167. case $host in
  11168. *-*-mingw*)
  11169. # gcc leaves a trailing carriage return which upsets mingw
  11170. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11171. *)
  11172. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11173. esac
  11174. case $ac_prog in
  11175. # Accept absolute paths.
  11176. [\\/]* | ?:[\\/]*)
  11177. re_direlt='/[^/][^/]*/\.\./'
  11178. # Canonicalize the pathname of ld
  11179. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11180. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11181. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11182. done
  11183. test -z "$LD" && LD="$ac_prog"
  11184. ;;
  11185. "")
  11186. # If it fails, then pretend we aren't using GCC.
  11187. ac_prog=ld
  11188. ;;
  11189. *)
  11190. # If it is relative, then search for the first ld in PATH.
  11191. with_gnu_ld=unknown
  11192. ;;
  11193. esac
  11194. elif test "$with_gnu_ld" = yes; then
  11195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11196. $as_echo_n "checking for GNU ld... " >&6; }
  11197. else
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11199. $as_echo_n "checking for non-GNU ld... " >&6; }
  11200. fi
  11201. if ${lt_cv_path_LD+:} false; then :
  11202. $as_echo_n "(cached) " >&6
  11203. else
  11204. if test -z "$LD"; then
  11205. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11206. for ac_dir in $PATH; do
  11207. IFS="$lt_save_ifs"
  11208. test -z "$ac_dir" && ac_dir=.
  11209. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11210. lt_cv_path_LD="$ac_dir/$ac_prog"
  11211. # Check to see if the program is GNU ld. I'd rather use --version,
  11212. # but apparently some variants of GNU ld only accept -v.
  11213. # Break only if it was the GNU/non-GNU ld that we prefer.
  11214. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11215. *GNU* | *'with BFD'*)
  11216. test "$with_gnu_ld" != no && break
  11217. ;;
  11218. *)
  11219. test "$with_gnu_ld" != yes && break
  11220. ;;
  11221. esac
  11222. fi
  11223. done
  11224. IFS="$lt_save_ifs"
  11225. else
  11226. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11227. fi
  11228. fi
  11229. LD="$lt_cv_path_LD"
  11230. if test -n "$LD"; then
  11231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11232. $as_echo "$LD" >&6; }
  11233. else
  11234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11235. $as_echo "no" >&6; }
  11236. fi
  11237. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11239. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11240. if ${lt_cv_prog_gnu_ld+:} false; then :
  11241. $as_echo_n "(cached) " >&6
  11242. else
  11243. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11244. case `$LD -v 2>&1 </dev/null` in
  11245. *GNU* | *'with BFD'*)
  11246. lt_cv_prog_gnu_ld=yes
  11247. ;;
  11248. *)
  11249. lt_cv_prog_gnu_ld=no
  11250. ;;
  11251. esac
  11252. fi
  11253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11254. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11255. with_gnu_ld=$lt_cv_prog_gnu_ld
  11256. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11257. # archiving commands below assume that GNU ld is being used.
  11258. if test "$with_gnu_ld" = yes; then
  11259. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11260. 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'
  11261. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11262. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11263. # If archive_cmds runs LD, not CC, wlarc should be empty
  11264. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11265. # investigate it a little bit more. (MM)
  11266. wlarc='${wl}'
  11267. # ancient GNU ld didn't support --whole-archive et. al.
  11268. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11269. $GREP 'no-whole-archive' > /dev/null; then
  11270. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11271. else
  11272. whole_archive_flag_spec_CXX=
  11273. fi
  11274. else
  11275. with_gnu_ld=no
  11276. wlarc=
  11277. # A generic and very simple default shared library creation
  11278. # command for GNU C++ for the case where it uses the native
  11279. # linker, instead of GNU ld. If possible, this setting should
  11280. # overridden to take advantage of the native linker features on
  11281. # the platform it is being used on.
  11282. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11283. fi
  11284. # Commands to make compiler produce verbose output that lists
  11285. # what "hidden" libraries, object files and flags are used when
  11286. # linking a shared library.
  11287. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11288. else
  11289. GXX=no
  11290. with_gnu_ld=no
  11291. wlarc=
  11292. fi
  11293. # PORTME: fill in a description of your system's C++ link characteristics
  11294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11295. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11296. ld_shlibs_CXX=yes
  11297. case $host_os in
  11298. aix3*)
  11299. # FIXME: insert proper C++ library support
  11300. ld_shlibs_CXX=no
  11301. ;;
  11302. aix[4-9]*)
  11303. if test "$host_cpu" = ia64; then
  11304. # On IA64, the linker does run time linking by default, so we don't
  11305. # have to do anything special.
  11306. aix_use_runtimelinking=no
  11307. exp_sym_flag='-Bexport'
  11308. no_entry_flag=""
  11309. else
  11310. aix_use_runtimelinking=no
  11311. # Test if we are trying to use run time linking or normal
  11312. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11313. # need to do runtime linking.
  11314. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11315. for ld_flag in $LDFLAGS; do
  11316. case $ld_flag in
  11317. *-brtl*)
  11318. aix_use_runtimelinking=yes
  11319. break
  11320. ;;
  11321. esac
  11322. done
  11323. ;;
  11324. esac
  11325. exp_sym_flag='-bexport'
  11326. no_entry_flag='-bnoentry'
  11327. fi
  11328. # When large executables or shared objects are built, AIX ld can
  11329. # have problems creating the table of contents. If linking a library
  11330. # or program results in "error TOC overflow" add -mminimal-toc to
  11331. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11332. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11333. archive_cmds_CXX=''
  11334. hardcode_direct_CXX=yes
  11335. hardcode_direct_absolute_CXX=yes
  11336. hardcode_libdir_separator_CXX=':'
  11337. link_all_deplibs_CXX=yes
  11338. file_list_spec_CXX='${wl}-f,'
  11339. if test "$GXX" = yes; then
  11340. case $host_os in aix4.[012]|aix4.[012].*)
  11341. # We only want to do this on AIX 4.2 and lower, the check
  11342. # below for broken collect2 doesn't work under 4.3+
  11343. collect2name=`${CC} -print-prog-name=collect2`
  11344. if test -f "$collect2name" &&
  11345. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11346. then
  11347. # We have reworked collect2
  11348. :
  11349. else
  11350. # We have old collect2
  11351. hardcode_direct_CXX=unsupported
  11352. # It fails to find uninstalled libraries when the uninstalled
  11353. # path is not listed in the libpath. Setting hardcode_minus_L
  11354. # to unsupported forces relinking
  11355. hardcode_minus_L_CXX=yes
  11356. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11357. hardcode_libdir_separator_CXX=
  11358. fi
  11359. esac
  11360. shared_flag='-shared'
  11361. if test "$aix_use_runtimelinking" = yes; then
  11362. shared_flag="$shared_flag "'${wl}-G'
  11363. fi
  11364. else
  11365. # not using gcc
  11366. if test "$host_cpu" = ia64; then
  11367. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11368. # chokes on -Wl,-G. The following line is correct:
  11369. shared_flag='-G'
  11370. else
  11371. if test "$aix_use_runtimelinking" = yes; then
  11372. shared_flag='${wl}-G'
  11373. else
  11374. shared_flag='${wl}-bM:SRE'
  11375. fi
  11376. fi
  11377. fi
  11378. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11379. # It seems that -bexpall does not export symbols beginning with
  11380. # underscore (_), so it is better to generate a list of symbols to
  11381. # export.
  11382. always_export_symbols_CXX=yes
  11383. if test "$aix_use_runtimelinking" = yes; then
  11384. # Warning - without using the other runtime loading flags (-brtl),
  11385. # -berok will link without error, but may produce a broken library.
  11386. allow_undefined_flag_CXX='-berok'
  11387. # Determine the default libpath from the value encoded in an empty
  11388. # executable.
  11389. if test "${lt_cv_aix_libpath+set}" = set; then
  11390. aix_libpath=$lt_cv_aix_libpath
  11391. else
  11392. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11393. $as_echo_n "(cached) " >&6
  11394. else
  11395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11396. /* end confdefs.h. */
  11397. int
  11398. main ()
  11399. {
  11400. ;
  11401. return 0;
  11402. }
  11403. _ACEOF
  11404. if ac_fn_cxx_try_link "$LINENO"; then :
  11405. lt_aix_libpath_sed='
  11406. /Import File Strings/,/^$/ {
  11407. /^0/ {
  11408. s/^0 *\([^ ]*\) *$/\1/
  11409. p
  11410. }
  11411. }'
  11412. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11413. # Check for a 64-bit object if we didn't find anything.
  11414. if test -z "$lt_cv_aix_libpath__CXX"; then
  11415. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11416. fi
  11417. fi
  11418. rm -f core conftest.err conftest.$ac_objext \
  11419. conftest$ac_exeext conftest.$ac_ext
  11420. if test -z "$lt_cv_aix_libpath__CXX"; then
  11421. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11422. fi
  11423. fi
  11424. aix_libpath=$lt_cv_aix_libpath__CXX
  11425. fi
  11426. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11427. 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"
  11428. else
  11429. if test "$host_cpu" = ia64; then
  11430. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11431. allow_undefined_flag_CXX="-z nodefs"
  11432. 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"
  11433. else
  11434. # Determine the default libpath from the value encoded in an
  11435. # empty executable.
  11436. if test "${lt_cv_aix_libpath+set}" = set; then
  11437. aix_libpath=$lt_cv_aix_libpath
  11438. else
  11439. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11440. $as_echo_n "(cached) " >&6
  11441. else
  11442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11443. /* end confdefs.h. */
  11444. int
  11445. main ()
  11446. {
  11447. ;
  11448. return 0;
  11449. }
  11450. _ACEOF
  11451. if ac_fn_cxx_try_link "$LINENO"; then :
  11452. lt_aix_libpath_sed='
  11453. /Import File Strings/,/^$/ {
  11454. /^0/ {
  11455. s/^0 *\([^ ]*\) *$/\1/
  11456. p
  11457. }
  11458. }'
  11459. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11460. # Check for a 64-bit object if we didn't find anything.
  11461. if test -z "$lt_cv_aix_libpath__CXX"; then
  11462. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11463. fi
  11464. fi
  11465. rm -f core conftest.err conftest.$ac_objext \
  11466. conftest$ac_exeext conftest.$ac_ext
  11467. if test -z "$lt_cv_aix_libpath__CXX"; then
  11468. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11469. fi
  11470. fi
  11471. aix_libpath=$lt_cv_aix_libpath__CXX
  11472. fi
  11473. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11474. # Warning - without using the other run time loading flags,
  11475. # -berok will link without error, but may produce a broken library.
  11476. no_undefined_flag_CXX=' ${wl}-bernotok'
  11477. allow_undefined_flag_CXX=' ${wl}-berok'
  11478. if test "$with_gnu_ld" = yes; then
  11479. # We only use this code for GNU lds that support --whole-archive.
  11480. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11481. else
  11482. # Exported symbols can be pulled into shared objects from archives
  11483. whole_archive_flag_spec_CXX='$convenience'
  11484. fi
  11485. archive_cmds_need_lc_CXX=yes
  11486. # This is similar to how AIX traditionally builds its shared
  11487. # libraries.
  11488. 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'
  11489. fi
  11490. fi
  11491. ;;
  11492. beos*)
  11493. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11494. allow_undefined_flag_CXX=unsupported
  11495. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11496. # support --undefined. This deserves some investigation. FIXME
  11497. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11498. else
  11499. ld_shlibs_CXX=no
  11500. fi
  11501. ;;
  11502. chorus*)
  11503. case $cc_basename in
  11504. *)
  11505. # FIXME: insert proper C++ library support
  11506. ld_shlibs_CXX=no
  11507. ;;
  11508. esac
  11509. ;;
  11510. cygwin* | mingw* | pw32* | cegcc*)
  11511. case $GXX,$cc_basename in
  11512. ,cl* | no,cl*)
  11513. # Native MSVC
  11514. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11515. # no search path for DLLs.
  11516. hardcode_libdir_flag_spec_CXX=' '
  11517. allow_undefined_flag_CXX=unsupported
  11518. always_export_symbols_CXX=yes
  11519. file_list_spec_CXX='@'
  11520. # Tell ltmain to make .lib files, not .a files.
  11521. libext=lib
  11522. # Tell ltmain to make .dll files, not .so files.
  11523. shrext_cmds=".dll"
  11524. # FIXME: Setting linknames here is a bad hack.
  11525. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11526. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11527. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11528. else
  11529. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11530. fi~
  11531. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11532. linknames='
  11533. # The linker will not automatically build a static lib if we build a DLL.
  11534. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11535. enable_shared_with_static_runtimes_CXX=yes
  11536. # Don't use ranlib
  11537. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11538. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11539. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11540. case $lt_outputfile in
  11541. *.exe|*.EXE) ;;
  11542. *)
  11543. lt_outputfile="$lt_outputfile.exe"
  11544. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11545. ;;
  11546. esac~
  11547. func_to_tool_file "$lt_outputfile"~
  11548. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11549. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11550. $RM "$lt_outputfile.manifest";
  11551. fi'
  11552. ;;
  11553. *)
  11554. # g++
  11555. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11556. # as there is no search path for DLLs.
  11557. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11558. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11559. allow_undefined_flag_CXX=unsupported
  11560. always_export_symbols_CXX=no
  11561. enable_shared_with_static_runtimes_CXX=yes
  11562. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11563. 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'
  11564. # If the export-symbols file already is a .def file (1st line
  11565. # is EXPORTS), use it as is; otherwise, prepend...
  11566. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11567. cp $export_symbols $output_objdir/$soname.def;
  11568. else
  11569. echo EXPORTS > $output_objdir/$soname.def;
  11570. cat $export_symbols >> $output_objdir/$soname.def;
  11571. fi~
  11572. $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'
  11573. else
  11574. ld_shlibs_CXX=no
  11575. fi
  11576. ;;
  11577. esac
  11578. ;;
  11579. darwin* | rhapsody*)
  11580. archive_cmds_need_lc_CXX=no
  11581. hardcode_direct_CXX=no
  11582. hardcode_automatic_CXX=yes
  11583. hardcode_shlibpath_var_CXX=unsupported
  11584. if test "$lt_cv_ld_force_load" = "yes"; then
  11585. 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\"`'
  11586. else
  11587. whole_archive_flag_spec_CXX=''
  11588. fi
  11589. link_all_deplibs_CXX=yes
  11590. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11591. case $cc_basename in
  11592. ifort*) _lt_dar_can_shared=yes ;;
  11593. *) _lt_dar_can_shared=$GCC ;;
  11594. esac
  11595. if test "$_lt_dar_can_shared" = "yes"; then
  11596. output_verbose_link_cmd=func_echo_all
  11597. 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}"
  11598. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11599. 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}"
  11600. 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}"
  11601. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11602. 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}"
  11603. 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}"
  11604. fi
  11605. else
  11606. ld_shlibs_CXX=no
  11607. fi
  11608. ;;
  11609. dgux*)
  11610. case $cc_basename in
  11611. ec++*)
  11612. # FIXME: insert proper C++ library support
  11613. ld_shlibs_CXX=no
  11614. ;;
  11615. ghcx*)
  11616. # Green Hills C++ Compiler
  11617. # FIXME: insert proper C++ library support
  11618. ld_shlibs_CXX=no
  11619. ;;
  11620. *)
  11621. # FIXME: insert proper C++ library support
  11622. ld_shlibs_CXX=no
  11623. ;;
  11624. esac
  11625. ;;
  11626. freebsd2.*)
  11627. # C++ shared libraries reported to be fairly broken before
  11628. # switch to ELF
  11629. ld_shlibs_CXX=no
  11630. ;;
  11631. freebsd-elf*)
  11632. archive_cmds_need_lc_CXX=no
  11633. ;;
  11634. freebsd* | dragonfly*)
  11635. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11636. # conventions
  11637. ld_shlibs_CXX=yes
  11638. ;;
  11639. gnu*)
  11640. ;;
  11641. haiku*)
  11642. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11643. link_all_deplibs_CXX=yes
  11644. ;;
  11645. hpux9*)
  11646. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11647. hardcode_libdir_separator_CXX=:
  11648. export_dynamic_flag_spec_CXX='${wl}-E'
  11649. hardcode_direct_CXX=yes
  11650. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11651. # but as the default
  11652. # location of the library.
  11653. case $cc_basename in
  11654. CC*)
  11655. # FIXME: insert proper C++ library support
  11656. ld_shlibs_CXX=no
  11657. ;;
  11658. aCC*)
  11659. 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'
  11660. # Commands to make compiler produce verbose output that lists
  11661. # what "hidden" libraries, object files and flags are used when
  11662. # linking a shared library.
  11663. #
  11664. # There doesn't appear to be a way to prevent this compiler from
  11665. # explicitly linking system object files so we need to strip them
  11666. # from the output so that they don't get included in the library
  11667. # dependencies.
  11668. 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"'
  11669. ;;
  11670. *)
  11671. if test "$GXX" = yes; then
  11672. 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'
  11673. else
  11674. # FIXME: insert proper C++ library support
  11675. ld_shlibs_CXX=no
  11676. fi
  11677. ;;
  11678. esac
  11679. ;;
  11680. hpux10*|hpux11*)
  11681. if test $with_gnu_ld = no; then
  11682. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11683. hardcode_libdir_separator_CXX=:
  11684. case $host_cpu in
  11685. hppa*64*|ia64*)
  11686. ;;
  11687. *)
  11688. export_dynamic_flag_spec_CXX='${wl}-E'
  11689. ;;
  11690. esac
  11691. fi
  11692. case $host_cpu in
  11693. hppa*64*|ia64*)
  11694. hardcode_direct_CXX=no
  11695. hardcode_shlibpath_var_CXX=no
  11696. ;;
  11697. *)
  11698. hardcode_direct_CXX=yes
  11699. hardcode_direct_absolute_CXX=yes
  11700. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11701. # but as the default
  11702. # location of the library.
  11703. ;;
  11704. esac
  11705. case $cc_basename in
  11706. CC*)
  11707. # FIXME: insert proper C++ library support
  11708. ld_shlibs_CXX=no
  11709. ;;
  11710. aCC*)
  11711. case $host_cpu in
  11712. hppa*64*)
  11713. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11714. ;;
  11715. ia64*)
  11716. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11717. ;;
  11718. *)
  11719. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11720. ;;
  11721. esac
  11722. # Commands to make compiler produce verbose output that lists
  11723. # what "hidden" libraries, object files and flags are used when
  11724. # linking a shared library.
  11725. #
  11726. # There doesn't appear to be a way to prevent this compiler from
  11727. # explicitly linking system object files so we need to strip them
  11728. # from the output so that they don't get included in the library
  11729. # dependencies.
  11730. 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"'
  11731. ;;
  11732. *)
  11733. if test "$GXX" = yes; then
  11734. if test $with_gnu_ld = no; then
  11735. case $host_cpu in
  11736. hppa*64*)
  11737. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11738. ;;
  11739. ia64*)
  11740. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11741. ;;
  11742. *)
  11743. 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'
  11744. ;;
  11745. esac
  11746. fi
  11747. else
  11748. # FIXME: insert proper C++ library support
  11749. ld_shlibs_CXX=no
  11750. fi
  11751. ;;
  11752. esac
  11753. ;;
  11754. interix[3-9]*)
  11755. hardcode_direct_CXX=no
  11756. hardcode_shlibpath_var_CXX=no
  11757. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11758. export_dynamic_flag_spec_CXX='${wl}-E'
  11759. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11760. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11761. # default) and relocated if they conflict, which is a slow very memory
  11762. # consuming and fragmenting process. To avoid this, we pick a random,
  11763. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11764. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11765. 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'
  11766. 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'
  11767. ;;
  11768. irix5* | irix6*)
  11769. case $cc_basename in
  11770. CC*)
  11771. # SGI C++
  11772. 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'
  11773. # Archives containing C++ object files must be created using
  11774. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11775. # necessary to make sure instantiated templates are included
  11776. # in the archive.
  11777. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11778. ;;
  11779. *)
  11780. if test "$GXX" = yes; then
  11781. if test "$with_gnu_ld" = no; then
  11782. 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'
  11783. else
  11784. 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'
  11785. fi
  11786. fi
  11787. link_all_deplibs_CXX=yes
  11788. ;;
  11789. esac
  11790. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11791. hardcode_libdir_separator_CXX=:
  11792. inherit_rpath_CXX=yes
  11793. ;;
  11794. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11795. case $cc_basename in
  11796. KCC*)
  11797. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11798. # KCC will only create a shared library if the output file
  11799. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11800. # to its proper name (with version) after linking.
  11801. 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'
  11802. 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'
  11803. # Commands to make compiler produce verbose output that lists
  11804. # what "hidden" libraries, object files and flags are used when
  11805. # linking a shared library.
  11806. #
  11807. # There doesn't appear to be a way to prevent this compiler from
  11808. # explicitly linking system object files so we need to strip them
  11809. # from the output so that they don't get included in the library
  11810. # dependencies.
  11811. 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"'
  11812. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11813. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11814. # Archives containing C++ object files must be created using
  11815. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11816. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11817. ;;
  11818. icpc* | ecpc* )
  11819. # Intel C++
  11820. with_gnu_ld=yes
  11821. # version 8.0 and above of icpc choke on multiply defined symbols
  11822. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11823. # earlier do not add the objects themselves.
  11824. case `$CC -V 2>&1` in
  11825. *"Version 7."*)
  11826. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11827. 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'
  11828. ;;
  11829. *) # Version 8.0 or newer
  11830. tmp_idyn=
  11831. case $host_cpu in
  11832. ia64*) tmp_idyn=' -i_dynamic';;
  11833. esac
  11834. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11835. 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'
  11836. ;;
  11837. esac
  11838. archive_cmds_need_lc_CXX=no
  11839. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11840. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11841. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11842. ;;
  11843. pgCC* | pgcpp*)
  11844. # Portland Group C++ compiler
  11845. case `$CC -V` in
  11846. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11847. prelink_cmds_CXX='tpldir=Template.dir~
  11848. rm -rf $tpldir~
  11849. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11850. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11851. old_archive_cmds_CXX='tpldir=Template.dir~
  11852. rm -rf $tpldir~
  11853. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11854. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11855. $RANLIB $oldlib'
  11856. archive_cmds_CXX='tpldir=Template.dir~
  11857. rm -rf $tpldir~
  11858. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11859. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11860. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11861. rm -rf $tpldir~
  11862. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11863. $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'
  11864. ;;
  11865. *) # Version 6 and above use weak symbols
  11866. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11867. 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'
  11868. ;;
  11869. esac
  11870. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11871. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11872. 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'
  11873. ;;
  11874. cxx*)
  11875. # Compaq C++
  11876. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11877. 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'
  11878. runpath_var=LD_RUN_PATH
  11879. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11880. hardcode_libdir_separator_CXX=:
  11881. # Commands to make compiler produce verbose output that lists
  11882. # what "hidden" libraries, object files and flags are used when
  11883. # linking a shared library.
  11884. #
  11885. # There doesn't appear to be a way to prevent this compiler from
  11886. # explicitly linking system object files so we need to strip them
  11887. # from the output so that they don't get included in the library
  11888. # dependencies.
  11889. 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'
  11890. ;;
  11891. xl* | mpixl* | bgxl*)
  11892. # IBM XL 8.0 on PPC, with GNU ld
  11893. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11894. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11895. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11896. if test "x$supports_anon_versioning" = xyes; then
  11897. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11898. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11899. echo "local: *; };" >> $output_objdir/$libname.ver~
  11900. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11901. fi
  11902. ;;
  11903. *)
  11904. case `$CC -V 2>&1 | sed 5q` in
  11905. *Sun\ C*)
  11906. # Sun C++ 5.9
  11907. no_undefined_flag_CXX=' -zdefs'
  11908. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11909. 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'
  11910. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11911. 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'
  11912. compiler_needs_object_CXX=yes
  11913. # Not sure whether something based on
  11914. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11915. # would be better.
  11916. output_verbose_link_cmd='func_echo_all'
  11917. # Archives containing C++ object files must be created using
  11918. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11919. # necessary to make sure instantiated templates are included
  11920. # in the archive.
  11921. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11922. ;;
  11923. esac
  11924. ;;
  11925. esac
  11926. ;;
  11927. lynxos*)
  11928. # FIXME: insert proper C++ library support
  11929. ld_shlibs_CXX=no
  11930. ;;
  11931. m88k*)
  11932. # FIXME: insert proper C++ library support
  11933. ld_shlibs_CXX=no
  11934. ;;
  11935. mvs*)
  11936. case $cc_basename in
  11937. cxx*)
  11938. # FIXME: insert proper C++ library support
  11939. ld_shlibs_CXX=no
  11940. ;;
  11941. *)
  11942. # FIXME: insert proper C++ library support
  11943. ld_shlibs_CXX=no
  11944. ;;
  11945. esac
  11946. ;;
  11947. netbsd*)
  11948. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11949. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11950. wlarc=
  11951. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11952. hardcode_direct_CXX=yes
  11953. hardcode_shlibpath_var_CXX=no
  11954. fi
  11955. # Workaround some broken pre-1.5 toolchains
  11956. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11957. ;;
  11958. *nto* | *qnx*)
  11959. ld_shlibs_CXX=yes
  11960. ;;
  11961. openbsd2*)
  11962. # C++ shared libraries are fairly broken
  11963. ld_shlibs_CXX=no
  11964. ;;
  11965. openbsd*)
  11966. if test -f /usr/libexec/ld.so; then
  11967. hardcode_direct_CXX=yes
  11968. hardcode_shlibpath_var_CXX=no
  11969. hardcode_direct_absolute_CXX=yes
  11970. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11971. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11972. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11973. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11974. export_dynamic_flag_spec_CXX='${wl}-E'
  11975. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11976. fi
  11977. output_verbose_link_cmd=func_echo_all
  11978. else
  11979. ld_shlibs_CXX=no
  11980. fi
  11981. ;;
  11982. osf3* | osf4* | osf5*)
  11983. case $cc_basename in
  11984. KCC*)
  11985. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11986. # KCC will only create a shared library if the output file
  11987. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11988. # to its proper name (with version) after linking.
  11989. 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'
  11990. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11991. hardcode_libdir_separator_CXX=:
  11992. # Archives containing C++ object files must be created using
  11993. # the KAI C++ compiler.
  11994. case $host in
  11995. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11996. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11997. esac
  11998. ;;
  11999. RCC*)
  12000. # Rational C++ 2.4.1
  12001. # FIXME: insert proper C++ library support
  12002. ld_shlibs_CXX=no
  12003. ;;
  12004. cxx*)
  12005. case $host in
  12006. osf3*)
  12007. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12008. 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'
  12009. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12010. ;;
  12011. *)
  12012. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12013. 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'
  12014. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12015. echo "-hidden">> $lib.exp~
  12016. $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~
  12017. $RM $lib.exp'
  12018. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12019. ;;
  12020. esac
  12021. hardcode_libdir_separator_CXX=:
  12022. # Commands to make compiler produce verbose output that lists
  12023. # what "hidden" libraries, object files and flags are used when
  12024. # linking a shared library.
  12025. #
  12026. # There doesn't appear to be a way to prevent this compiler from
  12027. # explicitly linking system object files so we need to strip them
  12028. # from the output so that they don't get included in the library
  12029. # dependencies.
  12030. 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"'
  12031. ;;
  12032. *)
  12033. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12034. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12035. case $host in
  12036. osf3*)
  12037. 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'
  12038. ;;
  12039. *)
  12040. 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'
  12041. ;;
  12042. esac
  12043. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12044. hardcode_libdir_separator_CXX=:
  12045. # Commands to make compiler produce verbose output that lists
  12046. # what "hidden" libraries, object files and flags are used when
  12047. # linking a shared library.
  12048. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12049. else
  12050. # FIXME: insert proper C++ library support
  12051. ld_shlibs_CXX=no
  12052. fi
  12053. ;;
  12054. esac
  12055. ;;
  12056. psos*)
  12057. # FIXME: insert proper C++ library support
  12058. ld_shlibs_CXX=no
  12059. ;;
  12060. sunos4*)
  12061. case $cc_basename in
  12062. CC*)
  12063. # Sun C++ 4.x
  12064. # FIXME: insert proper C++ library support
  12065. ld_shlibs_CXX=no
  12066. ;;
  12067. lcc*)
  12068. # Lucid
  12069. # FIXME: insert proper C++ library support
  12070. ld_shlibs_CXX=no
  12071. ;;
  12072. *)
  12073. # FIXME: insert proper C++ library support
  12074. ld_shlibs_CXX=no
  12075. ;;
  12076. esac
  12077. ;;
  12078. solaris*)
  12079. case $cc_basename in
  12080. CC* | sunCC*)
  12081. # Sun C++ 4.2, 5.x and Centerline C++
  12082. archive_cmds_need_lc_CXX=yes
  12083. no_undefined_flag_CXX=' -zdefs'
  12084. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12085. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12086. $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'
  12087. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12088. hardcode_shlibpath_var_CXX=no
  12089. case $host_os in
  12090. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12091. *)
  12092. # The compiler driver will combine and reorder linker options,
  12093. # but understands `-z linker_flag'.
  12094. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12095. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12096. ;;
  12097. esac
  12098. link_all_deplibs_CXX=yes
  12099. output_verbose_link_cmd='func_echo_all'
  12100. # Archives containing C++ object files must be created using
  12101. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12102. # necessary to make sure instantiated templates are included
  12103. # in the archive.
  12104. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12105. ;;
  12106. gcx*)
  12107. # Green Hills C++ Compiler
  12108. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12109. # The C++ compiler must be used to create the archive.
  12110. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12111. ;;
  12112. *)
  12113. # GNU C++ compiler with Solaris linker
  12114. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12115. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12116. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12117. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12118. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12119. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12120. # Commands to make compiler produce verbose output that lists
  12121. # what "hidden" libraries, object files and flags are used when
  12122. # linking a shared library.
  12123. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12124. else
  12125. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12126. # platform.
  12127. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12128. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12129. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12130. # Commands to make compiler produce verbose output that lists
  12131. # what "hidden" libraries, object files and flags are used when
  12132. # linking a shared library.
  12133. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12134. fi
  12135. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12136. case $host_os in
  12137. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12138. *)
  12139. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12140. ;;
  12141. esac
  12142. fi
  12143. ;;
  12144. esac
  12145. ;;
  12146. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12147. no_undefined_flag_CXX='${wl}-z,text'
  12148. archive_cmds_need_lc_CXX=no
  12149. hardcode_shlibpath_var_CXX=no
  12150. runpath_var='LD_RUN_PATH'
  12151. case $cc_basename in
  12152. CC*)
  12153. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12154. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12155. ;;
  12156. *)
  12157. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12158. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12159. ;;
  12160. esac
  12161. ;;
  12162. sysv5* | sco3.2v5* | sco5v6*)
  12163. # Note: We can NOT use -z defs as we might desire, because we do not
  12164. # link with -lc, and that would cause any symbols used from libc to
  12165. # always be unresolved, which means just about no library would
  12166. # ever link correctly. If we're not using GNU ld we use -z text
  12167. # though, which does catch some bad symbols but isn't as heavy-handed
  12168. # as -z defs.
  12169. no_undefined_flag_CXX='${wl}-z,text'
  12170. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12171. archive_cmds_need_lc_CXX=no
  12172. hardcode_shlibpath_var_CXX=no
  12173. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12174. hardcode_libdir_separator_CXX=':'
  12175. link_all_deplibs_CXX=yes
  12176. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12177. runpath_var='LD_RUN_PATH'
  12178. case $cc_basename in
  12179. CC*)
  12180. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12181. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12182. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12183. '"$old_archive_cmds_CXX"
  12184. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12185. '"$reload_cmds_CXX"
  12186. ;;
  12187. *)
  12188. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12189. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12190. ;;
  12191. esac
  12192. ;;
  12193. tandem*)
  12194. case $cc_basename in
  12195. NCC*)
  12196. # NonStop-UX NCC 3.20
  12197. # FIXME: insert proper C++ library support
  12198. ld_shlibs_CXX=no
  12199. ;;
  12200. *)
  12201. # FIXME: insert proper C++ library support
  12202. ld_shlibs_CXX=no
  12203. ;;
  12204. esac
  12205. ;;
  12206. vxworks*)
  12207. # FIXME: insert proper C++ library support
  12208. ld_shlibs_CXX=no
  12209. ;;
  12210. *)
  12211. # FIXME: insert proper C++ library support
  12212. ld_shlibs_CXX=no
  12213. ;;
  12214. esac
  12215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12216. $as_echo "$ld_shlibs_CXX" >&6; }
  12217. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12218. GCC_CXX="$GXX"
  12219. LD_CXX="$LD"
  12220. ## CAVEAT EMPTOR:
  12221. ## There is no encapsulation within the following macros, do not change
  12222. ## the running order or otherwise move them around unless you know exactly
  12223. ## what you are doing...
  12224. # Dependencies to place before and after the object being linked:
  12225. predep_objects_CXX=
  12226. postdep_objects_CXX=
  12227. predeps_CXX=
  12228. postdeps_CXX=
  12229. compiler_lib_search_path_CXX=
  12230. cat > conftest.$ac_ext <<_LT_EOF
  12231. class Foo
  12232. {
  12233. public:
  12234. Foo (void) { a = 0; }
  12235. private:
  12236. int a;
  12237. };
  12238. _LT_EOF
  12239. _lt_libdeps_save_CFLAGS=$CFLAGS
  12240. case "$CC $CFLAGS " in #(
  12241. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12242. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12243. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12244. esac
  12245. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12246. (eval $ac_compile) 2>&5
  12247. ac_status=$?
  12248. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12249. test $ac_status = 0; }; then
  12250. # Parse the compiler output and extract the necessary
  12251. # objects, libraries and library flags.
  12252. # Sentinel used to keep track of whether or not we are before
  12253. # the conftest object file.
  12254. pre_test_object_deps_done=no
  12255. for p in `eval "$output_verbose_link_cmd"`; do
  12256. case ${prev}${p} in
  12257. -L* | -R* | -l*)
  12258. # Some compilers place space between "-{L,R}" and the path.
  12259. # Remove the space.
  12260. if test $p = "-L" ||
  12261. test $p = "-R"; then
  12262. prev=$p
  12263. continue
  12264. fi
  12265. # Expand the sysroot to ease extracting the directories later.
  12266. if test -z "$prev"; then
  12267. case $p in
  12268. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12269. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12270. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12271. esac
  12272. fi
  12273. case $p in
  12274. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12275. esac
  12276. if test "$pre_test_object_deps_done" = no; then
  12277. case ${prev} in
  12278. -L | -R)
  12279. # Internal compiler library paths should come after those
  12280. # provided the user. The postdeps already come after the
  12281. # user supplied libs so there is no need to process them.
  12282. if test -z "$compiler_lib_search_path_CXX"; then
  12283. compiler_lib_search_path_CXX="${prev}${p}"
  12284. else
  12285. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12286. fi
  12287. ;;
  12288. # The "-l" case would never come before the object being
  12289. # linked, so don't bother handling this case.
  12290. esac
  12291. else
  12292. if test -z "$postdeps_CXX"; then
  12293. postdeps_CXX="${prev}${p}"
  12294. else
  12295. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12296. fi
  12297. fi
  12298. prev=
  12299. ;;
  12300. *.lto.$objext) ;; # Ignore GCC LTO objects
  12301. *.$objext)
  12302. # This assumes that the test object file only shows up
  12303. # once in the compiler output.
  12304. if test "$p" = "conftest.$objext"; then
  12305. pre_test_object_deps_done=yes
  12306. continue
  12307. fi
  12308. if test "$pre_test_object_deps_done" = no; then
  12309. if test -z "$predep_objects_CXX"; then
  12310. predep_objects_CXX="$p"
  12311. else
  12312. predep_objects_CXX="$predep_objects_CXX $p"
  12313. fi
  12314. else
  12315. if test -z "$postdep_objects_CXX"; then
  12316. postdep_objects_CXX="$p"
  12317. else
  12318. postdep_objects_CXX="$postdep_objects_CXX $p"
  12319. fi
  12320. fi
  12321. ;;
  12322. *) ;; # Ignore the rest.
  12323. esac
  12324. done
  12325. # Clean up.
  12326. rm -f a.out a.exe
  12327. else
  12328. echo "libtool.m4: error: problem compiling CXX test program"
  12329. fi
  12330. $RM -f confest.$objext
  12331. CFLAGS=$_lt_libdeps_save_CFLAGS
  12332. # PORTME: override above test on systems where it is broken
  12333. case $host_os in
  12334. interix[3-9]*)
  12335. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12336. # hack all around it, let's just trust "g++" to DTRT.
  12337. predep_objects_CXX=
  12338. postdep_objects_CXX=
  12339. postdeps_CXX=
  12340. ;;
  12341. linux*)
  12342. case `$CC -V 2>&1 | sed 5q` in
  12343. *Sun\ C*)
  12344. # Sun C++ 5.9
  12345. # The more standards-conforming stlport4 library is
  12346. # incompatible with the Cstd library. Avoid specifying
  12347. # it if it's in CXXFLAGS. Ignore libCrun as
  12348. # -library=stlport4 depends on it.
  12349. case " $CXX $CXXFLAGS " in
  12350. *" -library=stlport4 "*)
  12351. solaris_use_stlport4=yes
  12352. ;;
  12353. esac
  12354. if test "$solaris_use_stlport4" != yes; then
  12355. postdeps_CXX='-library=Cstd -library=Crun'
  12356. fi
  12357. ;;
  12358. esac
  12359. ;;
  12360. solaris*)
  12361. case $cc_basename in
  12362. CC* | sunCC*)
  12363. # The more standards-conforming stlport4 library is
  12364. # incompatible with the Cstd library. Avoid specifying
  12365. # it if it's in CXXFLAGS. Ignore libCrun as
  12366. # -library=stlport4 depends on it.
  12367. case " $CXX $CXXFLAGS " in
  12368. *" -library=stlport4 "*)
  12369. solaris_use_stlport4=yes
  12370. ;;
  12371. esac
  12372. # Adding this requires a known-good setup of shared libraries for
  12373. # Sun compiler versions before 5.6, else PIC objects from an old
  12374. # archive will be linked into the output, leading to subtle bugs.
  12375. if test "$solaris_use_stlport4" != yes; then
  12376. postdeps_CXX='-library=Cstd -library=Crun'
  12377. fi
  12378. ;;
  12379. esac
  12380. ;;
  12381. esac
  12382. case " $postdeps_CXX " in
  12383. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12384. esac
  12385. compiler_lib_search_dirs_CXX=
  12386. if test -n "${compiler_lib_search_path_CXX}"; then
  12387. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12388. fi
  12389. lt_prog_compiler_wl_CXX=
  12390. lt_prog_compiler_pic_CXX=
  12391. lt_prog_compiler_static_CXX=
  12392. # C++ specific cases for pic, static, wl, etc.
  12393. if test "$GXX" = yes; then
  12394. lt_prog_compiler_wl_CXX='-Wl,'
  12395. lt_prog_compiler_static_CXX='-static'
  12396. case $host_os in
  12397. aix*)
  12398. # All AIX code is PIC.
  12399. if test "$host_cpu" = ia64; then
  12400. # AIX 5 now supports IA64 processor
  12401. lt_prog_compiler_static_CXX='-Bstatic'
  12402. fi
  12403. ;;
  12404. amigaos*)
  12405. case $host_cpu in
  12406. powerpc)
  12407. # see comment about AmigaOS4 .so support
  12408. lt_prog_compiler_pic_CXX='-fPIC'
  12409. ;;
  12410. m68k)
  12411. # FIXME: we need at least 68020 code to build shared libraries, but
  12412. # adding the `-m68020' flag to GCC prevents building anything better,
  12413. # like `-m68040'.
  12414. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12415. ;;
  12416. esac
  12417. ;;
  12418. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12419. # PIC is the default for these OSes.
  12420. ;;
  12421. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12422. # This hack is so that the source file can tell whether it is being
  12423. # built for inclusion in a dll (and should export symbols for example).
  12424. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12425. # (--disable-auto-import) libraries
  12426. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12427. ;;
  12428. darwin* | rhapsody*)
  12429. # PIC is the default on this platform
  12430. # Common symbols not allowed in MH_DYLIB files
  12431. lt_prog_compiler_pic_CXX='-fno-common'
  12432. ;;
  12433. *djgpp*)
  12434. # DJGPP does not support shared libraries at all
  12435. lt_prog_compiler_pic_CXX=
  12436. ;;
  12437. haiku*)
  12438. # PIC is the default for Haiku.
  12439. # The "-static" flag exists, but is broken.
  12440. lt_prog_compiler_static_CXX=
  12441. ;;
  12442. interix[3-9]*)
  12443. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12444. # Instead, we relocate shared libraries at runtime.
  12445. ;;
  12446. sysv4*MP*)
  12447. if test -d /usr/nec; then
  12448. lt_prog_compiler_pic_CXX=-Kconform_pic
  12449. fi
  12450. ;;
  12451. hpux*)
  12452. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12453. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12454. # sets the default TLS model and affects inlining.
  12455. case $host_cpu in
  12456. hppa*64*)
  12457. ;;
  12458. *)
  12459. lt_prog_compiler_pic_CXX='-fPIC'
  12460. ;;
  12461. esac
  12462. ;;
  12463. *qnx* | *nto*)
  12464. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12465. # it will coredump.
  12466. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12467. ;;
  12468. *)
  12469. lt_prog_compiler_pic_CXX='-fPIC'
  12470. ;;
  12471. esac
  12472. else
  12473. case $host_os in
  12474. aix[4-9]*)
  12475. # All AIX code is PIC.
  12476. if test "$host_cpu" = ia64; then
  12477. # AIX 5 now supports IA64 processor
  12478. lt_prog_compiler_static_CXX='-Bstatic'
  12479. else
  12480. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12481. fi
  12482. ;;
  12483. chorus*)
  12484. case $cc_basename in
  12485. cxch68*)
  12486. # Green Hills C++ Compiler
  12487. # _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"
  12488. ;;
  12489. esac
  12490. ;;
  12491. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12492. # This hack is so that the source file can tell whether it is being
  12493. # built for inclusion in a dll (and should export symbols for example).
  12494. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12495. ;;
  12496. dgux*)
  12497. case $cc_basename in
  12498. ec++*)
  12499. lt_prog_compiler_pic_CXX='-KPIC'
  12500. ;;
  12501. ghcx*)
  12502. # Green Hills C++ Compiler
  12503. lt_prog_compiler_pic_CXX='-pic'
  12504. ;;
  12505. *)
  12506. ;;
  12507. esac
  12508. ;;
  12509. freebsd* | dragonfly*)
  12510. # FreeBSD uses GNU C++
  12511. ;;
  12512. hpux9* | hpux10* | hpux11*)
  12513. case $cc_basename in
  12514. CC*)
  12515. lt_prog_compiler_wl_CXX='-Wl,'
  12516. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12517. if test "$host_cpu" != ia64; then
  12518. lt_prog_compiler_pic_CXX='+Z'
  12519. fi
  12520. ;;
  12521. aCC*)
  12522. lt_prog_compiler_wl_CXX='-Wl,'
  12523. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12524. case $host_cpu in
  12525. hppa*64*|ia64*)
  12526. # +Z the default
  12527. ;;
  12528. *)
  12529. lt_prog_compiler_pic_CXX='+Z'
  12530. ;;
  12531. esac
  12532. ;;
  12533. *)
  12534. ;;
  12535. esac
  12536. ;;
  12537. interix*)
  12538. # This is c89, which is MS Visual C++ (no shared libs)
  12539. # Anyone wants to do a port?
  12540. ;;
  12541. irix5* | irix6* | nonstopux*)
  12542. case $cc_basename in
  12543. CC*)
  12544. lt_prog_compiler_wl_CXX='-Wl,'
  12545. lt_prog_compiler_static_CXX='-non_shared'
  12546. # CC pic flag -KPIC is the default.
  12547. ;;
  12548. *)
  12549. ;;
  12550. esac
  12551. ;;
  12552. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12553. case $cc_basename in
  12554. KCC*)
  12555. # KAI C++ Compiler
  12556. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12557. lt_prog_compiler_pic_CXX='-fPIC'
  12558. ;;
  12559. ecpc* )
  12560. # old Intel C++ for x86_64 which still supported -KPIC.
  12561. lt_prog_compiler_wl_CXX='-Wl,'
  12562. lt_prog_compiler_pic_CXX='-KPIC'
  12563. lt_prog_compiler_static_CXX='-static'
  12564. ;;
  12565. icpc* )
  12566. # Intel C++, used to be incompatible with GCC.
  12567. # ICC 10 doesn't accept -KPIC any more.
  12568. lt_prog_compiler_wl_CXX='-Wl,'
  12569. lt_prog_compiler_pic_CXX='-fPIC'
  12570. lt_prog_compiler_static_CXX='-static'
  12571. ;;
  12572. pgCC* | pgcpp*)
  12573. # Portland Group C++ compiler
  12574. lt_prog_compiler_wl_CXX='-Wl,'
  12575. lt_prog_compiler_pic_CXX='-fpic'
  12576. lt_prog_compiler_static_CXX='-Bstatic'
  12577. ;;
  12578. cxx*)
  12579. # Compaq C++
  12580. # Make sure the PIC flag is empty. It appears that all Alpha
  12581. # Linux and Compaq Tru64 Unix objects are PIC.
  12582. lt_prog_compiler_pic_CXX=
  12583. lt_prog_compiler_static_CXX='-non_shared'
  12584. ;;
  12585. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12586. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12587. lt_prog_compiler_wl_CXX='-Wl,'
  12588. lt_prog_compiler_pic_CXX='-qpic'
  12589. lt_prog_compiler_static_CXX='-qstaticlink'
  12590. ;;
  12591. *)
  12592. case `$CC -V 2>&1 | sed 5q` in
  12593. *Sun\ C*)
  12594. # Sun C++ 5.9
  12595. lt_prog_compiler_pic_CXX='-KPIC'
  12596. lt_prog_compiler_static_CXX='-Bstatic'
  12597. lt_prog_compiler_wl_CXX='-Qoption ld '
  12598. ;;
  12599. esac
  12600. ;;
  12601. esac
  12602. ;;
  12603. lynxos*)
  12604. ;;
  12605. m88k*)
  12606. ;;
  12607. mvs*)
  12608. case $cc_basename in
  12609. cxx*)
  12610. lt_prog_compiler_pic_CXX='-W c,exportall'
  12611. ;;
  12612. *)
  12613. ;;
  12614. esac
  12615. ;;
  12616. netbsd*)
  12617. ;;
  12618. *qnx* | *nto*)
  12619. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12620. # it will coredump.
  12621. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12622. ;;
  12623. osf3* | osf4* | osf5*)
  12624. case $cc_basename in
  12625. KCC*)
  12626. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12627. ;;
  12628. RCC*)
  12629. # Rational C++ 2.4.1
  12630. lt_prog_compiler_pic_CXX='-pic'
  12631. ;;
  12632. cxx*)
  12633. # Digital/Compaq C++
  12634. lt_prog_compiler_wl_CXX='-Wl,'
  12635. # Make sure the PIC flag is empty. It appears that all Alpha
  12636. # Linux and Compaq Tru64 Unix objects are PIC.
  12637. lt_prog_compiler_pic_CXX=
  12638. lt_prog_compiler_static_CXX='-non_shared'
  12639. ;;
  12640. *)
  12641. ;;
  12642. esac
  12643. ;;
  12644. psos*)
  12645. ;;
  12646. solaris*)
  12647. case $cc_basename in
  12648. CC* | sunCC*)
  12649. # Sun C++ 4.2, 5.x and Centerline C++
  12650. lt_prog_compiler_pic_CXX='-KPIC'
  12651. lt_prog_compiler_static_CXX='-Bstatic'
  12652. lt_prog_compiler_wl_CXX='-Qoption ld '
  12653. ;;
  12654. gcx*)
  12655. # Green Hills C++ Compiler
  12656. lt_prog_compiler_pic_CXX='-PIC'
  12657. ;;
  12658. *)
  12659. ;;
  12660. esac
  12661. ;;
  12662. sunos4*)
  12663. case $cc_basename in
  12664. CC*)
  12665. # Sun C++ 4.x
  12666. lt_prog_compiler_pic_CXX='-pic'
  12667. lt_prog_compiler_static_CXX='-Bstatic'
  12668. ;;
  12669. lcc*)
  12670. # Lucid
  12671. lt_prog_compiler_pic_CXX='-pic'
  12672. ;;
  12673. *)
  12674. ;;
  12675. esac
  12676. ;;
  12677. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12678. case $cc_basename in
  12679. CC*)
  12680. lt_prog_compiler_wl_CXX='-Wl,'
  12681. lt_prog_compiler_pic_CXX='-KPIC'
  12682. lt_prog_compiler_static_CXX='-Bstatic'
  12683. ;;
  12684. esac
  12685. ;;
  12686. tandem*)
  12687. case $cc_basename in
  12688. NCC*)
  12689. # NonStop-UX NCC 3.20
  12690. lt_prog_compiler_pic_CXX='-KPIC'
  12691. ;;
  12692. *)
  12693. ;;
  12694. esac
  12695. ;;
  12696. vxworks*)
  12697. ;;
  12698. *)
  12699. lt_prog_compiler_can_build_shared_CXX=no
  12700. ;;
  12701. esac
  12702. fi
  12703. case $host_os in
  12704. # For platforms which do not support PIC, -DPIC is meaningless:
  12705. *djgpp*)
  12706. lt_prog_compiler_pic_CXX=
  12707. ;;
  12708. *)
  12709. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12710. ;;
  12711. esac
  12712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12713. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12714. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12715. $as_echo_n "(cached) " >&6
  12716. else
  12717. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12718. fi
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12720. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12721. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12722. #
  12723. # Check to make sure the PIC flag actually works.
  12724. #
  12725. if test -n "$lt_prog_compiler_pic_CXX"; then
  12726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12727. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12728. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12729. $as_echo_n "(cached) " >&6
  12730. else
  12731. lt_cv_prog_compiler_pic_works_CXX=no
  12732. ac_outfile=conftest.$ac_objext
  12733. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12734. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12735. # Insert the option either (1) after the last *FLAGS variable, or
  12736. # (2) before a word containing "conftest.", or (3) at the end.
  12737. # Note that $ac_compile itself does not contain backslashes and begins
  12738. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12739. # The option is referenced via a variable to avoid confusing sed.
  12740. lt_compile=`echo "$ac_compile" | $SED \
  12741. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12742. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12743. -e 's:$: $lt_compiler_flag:'`
  12744. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12745. (eval "$lt_compile" 2>conftest.err)
  12746. ac_status=$?
  12747. cat conftest.err >&5
  12748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12749. if (exit $ac_status) && test -s "$ac_outfile"; then
  12750. # The compiler can only warn and ignore the option if not recognized
  12751. # So say no if there are warnings other than the usual output.
  12752. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12753. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12754. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12755. lt_cv_prog_compiler_pic_works_CXX=yes
  12756. fi
  12757. fi
  12758. $RM conftest*
  12759. fi
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12761. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12762. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12763. case $lt_prog_compiler_pic_CXX in
  12764. "" | " "*) ;;
  12765. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12766. esac
  12767. else
  12768. lt_prog_compiler_pic_CXX=
  12769. lt_prog_compiler_can_build_shared_CXX=no
  12770. fi
  12771. fi
  12772. #
  12773. # Check to make sure the static flag actually works.
  12774. #
  12775. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12777. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12778. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12779. $as_echo_n "(cached) " >&6
  12780. else
  12781. lt_cv_prog_compiler_static_works_CXX=no
  12782. save_LDFLAGS="$LDFLAGS"
  12783. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12784. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12785. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12786. # The linker can only warn and ignore the option if not recognized
  12787. # So say no if there are warnings
  12788. if test -s conftest.err; then
  12789. # Append any errors to the config.log.
  12790. cat conftest.err 1>&5
  12791. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12792. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12793. if diff conftest.exp conftest.er2 >/dev/null; then
  12794. lt_cv_prog_compiler_static_works_CXX=yes
  12795. fi
  12796. else
  12797. lt_cv_prog_compiler_static_works_CXX=yes
  12798. fi
  12799. fi
  12800. $RM -r conftest*
  12801. LDFLAGS="$save_LDFLAGS"
  12802. fi
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12804. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12805. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12806. :
  12807. else
  12808. lt_prog_compiler_static_CXX=
  12809. fi
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12811. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12812. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12813. $as_echo_n "(cached) " >&6
  12814. else
  12815. lt_cv_prog_compiler_c_o_CXX=no
  12816. $RM -r conftest 2>/dev/null
  12817. mkdir conftest
  12818. cd conftest
  12819. mkdir out
  12820. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12821. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12822. # Insert the option either (1) after the last *FLAGS variable, or
  12823. # (2) before a word containing "conftest.", or (3) at the end.
  12824. # Note that $ac_compile itself does not contain backslashes and begins
  12825. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12826. lt_compile=`echo "$ac_compile" | $SED \
  12827. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12828. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12829. -e 's:$: $lt_compiler_flag:'`
  12830. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12831. (eval "$lt_compile" 2>out/conftest.err)
  12832. ac_status=$?
  12833. cat out/conftest.err >&5
  12834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12835. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12836. then
  12837. # The compiler can only warn and ignore the option if not recognized
  12838. # So say no if there are warnings
  12839. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12840. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12841. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12842. lt_cv_prog_compiler_c_o_CXX=yes
  12843. fi
  12844. fi
  12845. chmod u+w . 2>&5
  12846. $RM conftest*
  12847. # SGI C++ compiler will create directory out/ii_files/ for
  12848. # template instantiation
  12849. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12850. $RM out/* && rmdir out
  12851. cd ..
  12852. $RM -r conftest
  12853. $RM conftest*
  12854. fi
  12855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12856. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12858. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12859. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12860. $as_echo_n "(cached) " >&6
  12861. else
  12862. lt_cv_prog_compiler_c_o_CXX=no
  12863. $RM -r conftest 2>/dev/null
  12864. mkdir conftest
  12865. cd conftest
  12866. mkdir out
  12867. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12868. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12869. # Insert the option either (1) after the last *FLAGS variable, or
  12870. # (2) before a word containing "conftest.", or (3) at the end.
  12871. # Note that $ac_compile itself does not contain backslashes and begins
  12872. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12873. lt_compile=`echo "$ac_compile" | $SED \
  12874. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12875. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12876. -e 's:$: $lt_compiler_flag:'`
  12877. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12878. (eval "$lt_compile" 2>out/conftest.err)
  12879. ac_status=$?
  12880. cat out/conftest.err >&5
  12881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12882. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12883. then
  12884. # The compiler can only warn and ignore the option if not recognized
  12885. # So say no if there are warnings
  12886. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12887. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12888. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12889. lt_cv_prog_compiler_c_o_CXX=yes
  12890. fi
  12891. fi
  12892. chmod u+w . 2>&5
  12893. $RM conftest*
  12894. # SGI C++ compiler will create directory out/ii_files/ for
  12895. # template instantiation
  12896. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12897. $RM out/* && rmdir out
  12898. cd ..
  12899. $RM -r conftest
  12900. $RM conftest*
  12901. fi
  12902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12903. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12904. hard_links="nottested"
  12905. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12906. # do not overwrite the value of need_locks provided by the user
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12908. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12909. hard_links=yes
  12910. $RM conftest*
  12911. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12912. touch conftest.a
  12913. ln conftest.a conftest.b 2>&5 || hard_links=no
  12914. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12916. $as_echo "$hard_links" >&6; }
  12917. if test "$hard_links" = no; then
  12918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12919. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12920. need_locks=warn
  12921. fi
  12922. else
  12923. need_locks=no
  12924. fi
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12926. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12927. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12928. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12929. case $host_os in
  12930. aix[4-9]*)
  12931. # If we're using GNU nm, then we don't want the "-C" option.
  12932. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12933. # Also, AIX nm treats weak defined symbols like other global defined
  12934. # symbols, whereas GNU nm marks them as "W".
  12935. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12936. 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'
  12937. else
  12938. 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'
  12939. fi
  12940. ;;
  12941. pw32*)
  12942. export_symbols_cmds_CXX="$ltdll_cmds"
  12943. ;;
  12944. cygwin* | mingw* | cegcc*)
  12945. case $cc_basename in
  12946. cl*)
  12947. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12948. ;;
  12949. *)
  12950. 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'
  12951. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12952. ;;
  12953. esac
  12954. ;;
  12955. *)
  12956. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12957. ;;
  12958. esac
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12960. $as_echo "$ld_shlibs_CXX" >&6; }
  12961. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12962. with_gnu_ld_CXX=$with_gnu_ld
  12963. #
  12964. # Do we need to explicitly link libc?
  12965. #
  12966. case "x$archive_cmds_need_lc_CXX" in
  12967. x|xyes)
  12968. # Assume -lc should be added
  12969. archive_cmds_need_lc_CXX=yes
  12970. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12971. case $archive_cmds_CXX in
  12972. *'~'*)
  12973. # FIXME: we may have to deal with multi-command sequences.
  12974. ;;
  12975. '$CC '*)
  12976. # Test whether the compiler implicitly links with -lc since on some
  12977. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12978. # to ld, don't add -lc before -lgcc.
  12979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12980. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12981. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12982. $as_echo_n "(cached) " >&6
  12983. else
  12984. $RM conftest*
  12985. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12986. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12987. (eval $ac_compile) 2>&5
  12988. ac_status=$?
  12989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12990. test $ac_status = 0; } 2>conftest.err; then
  12991. soname=conftest
  12992. lib=conftest
  12993. libobjs=conftest.$ac_objext
  12994. deplibs=
  12995. wl=$lt_prog_compiler_wl_CXX
  12996. pic_flag=$lt_prog_compiler_pic_CXX
  12997. compiler_flags=-v
  12998. linker_flags=-v
  12999. verstring=
  13000. output_objdir=.
  13001. libname=conftest
  13002. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13003. allow_undefined_flag_CXX=
  13004. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13005. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13006. ac_status=$?
  13007. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13008. test $ac_status = 0; }
  13009. then
  13010. lt_cv_archive_cmds_need_lc_CXX=no
  13011. else
  13012. lt_cv_archive_cmds_need_lc_CXX=yes
  13013. fi
  13014. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13015. else
  13016. cat conftest.err 1>&5
  13017. fi
  13018. $RM conftest*
  13019. fi
  13020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13021. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13022. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13023. ;;
  13024. esac
  13025. fi
  13026. ;;
  13027. esac
  13028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13029. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13030. library_names_spec=
  13031. libname_spec='lib$name'
  13032. soname_spec=
  13033. shrext_cmds=".so"
  13034. postinstall_cmds=
  13035. postuninstall_cmds=
  13036. finish_cmds=
  13037. finish_eval=
  13038. shlibpath_var=
  13039. shlibpath_overrides_runpath=unknown
  13040. version_type=none
  13041. dynamic_linker="$host_os ld.so"
  13042. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13043. need_lib_prefix=unknown
  13044. hardcode_into_libs=no
  13045. # when you set need_version to no, make sure it does not cause -set_version
  13046. # flags to be left without arguments
  13047. need_version=unknown
  13048. case $host_os in
  13049. aix3*)
  13050. version_type=linux # correct to gnu/linux during the next big refactor
  13051. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13052. shlibpath_var=LIBPATH
  13053. # AIX 3 has no versioning support, so we append a major version to the name.
  13054. soname_spec='${libname}${release}${shared_ext}$major'
  13055. ;;
  13056. aix[4-9]*)
  13057. version_type=linux # correct to gnu/linux during the next big refactor
  13058. need_lib_prefix=no
  13059. need_version=no
  13060. hardcode_into_libs=yes
  13061. if test "$host_cpu" = ia64; then
  13062. # AIX 5 supports IA64
  13063. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13064. shlibpath_var=LD_LIBRARY_PATH
  13065. else
  13066. # With GCC up to 2.95.x, collect2 would create an import file
  13067. # for dependence libraries. The import file would start with
  13068. # the line `#! .'. This would cause the generated library to
  13069. # depend on `.', always an invalid library. This was fixed in
  13070. # development snapshots of GCC prior to 3.0.
  13071. case $host_os in
  13072. aix4 | aix4.[01] | aix4.[01].*)
  13073. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13074. echo ' yes '
  13075. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13076. :
  13077. else
  13078. can_build_shared=no
  13079. fi
  13080. ;;
  13081. esac
  13082. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13083. # soname into executable. Probably we can add versioning support to
  13084. # collect2, so additional links can be useful in future.
  13085. if test "$aix_use_runtimelinking" = yes; then
  13086. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13087. # instead of lib<name>.a to let people know that these are not
  13088. # typical AIX shared libraries.
  13089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13090. else
  13091. # We preserve .a as extension for shared libraries through AIX4.2
  13092. # and later when we are not doing run time linking.
  13093. library_names_spec='${libname}${release}.a $libname.a'
  13094. soname_spec='${libname}${release}${shared_ext}$major'
  13095. fi
  13096. shlibpath_var=LIBPATH
  13097. fi
  13098. ;;
  13099. amigaos*)
  13100. case $host_cpu in
  13101. powerpc)
  13102. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13103. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13105. ;;
  13106. m68k)
  13107. library_names_spec='$libname.ixlibrary $libname.a'
  13108. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13109. 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'
  13110. ;;
  13111. esac
  13112. ;;
  13113. beos*)
  13114. library_names_spec='${libname}${shared_ext}'
  13115. dynamic_linker="$host_os ld.so"
  13116. shlibpath_var=LIBRARY_PATH
  13117. ;;
  13118. bsdi[45]*)
  13119. version_type=linux # correct to gnu/linux during the next big refactor
  13120. need_version=no
  13121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13122. soname_spec='${libname}${release}${shared_ext}$major'
  13123. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13124. shlibpath_var=LD_LIBRARY_PATH
  13125. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13126. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13127. # the default ld.so.conf also contains /usr/contrib/lib and
  13128. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13129. # libtool to hard-code these into programs
  13130. ;;
  13131. cygwin* | mingw* | pw32* | cegcc*)
  13132. version_type=windows
  13133. shrext_cmds=".dll"
  13134. need_version=no
  13135. need_lib_prefix=no
  13136. case $GCC,$cc_basename in
  13137. yes,*)
  13138. # gcc
  13139. library_names_spec='$libname.dll.a'
  13140. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13141. postinstall_cmds='base_file=`basename \${file}`~
  13142. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13143. dldir=$destdir/`dirname \$dlpath`~
  13144. test -d \$dldir || mkdir -p \$dldir~
  13145. $install_prog $dir/$dlname \$dldir/$dlname~
  13146. chmod a+x \$dldir/$dlname~
  13147. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13148. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13149. fi'
  13150. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13151. dlpath=$dir/\$dldll~
  13152. $RM \$dlpath'
  13153. shlibpath_overrides_runpath=yes
  13154. case $host_os in
  13155. cygwin*)
  13156. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13157. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13158. ;;
  13159. mingw* | cegcc*)
  13160. # MinGW DLLs use traditional 'lib' prefix
  13161. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13162. ;;
  13163. pw32*)
  13164. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13165. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13166. ;;
  13167. esac
  13168. dynamic_linker='Win32 ld.exe'
  13169. ;;
  13170. *,cl*)
  13171. # Native MSVC
  13172. libname_spec='$name'
  13173. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13174. library_names_spec='${libname}.dll.lib'
  13175. case $build_os in
  13176. mingw*)
  13177. sys_lib_search_path_spec=
  13178. lt_save_ifs=$IFS
  13179. IFS=';'
  13180. for lt_path in $LIB
  13181. do
  13182. IFS=$lt_save_ifs
  13183. # Let DOS variable expansion print the short 8.3 style file name.
  13184. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13185. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13186. done
  13187. IFS=$lt_save_ifs
  13188. # Convert to MSYS style.
  13189. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13190. ;;
  13191. cygwin*)
  13192. # Convert to unix form, then to dos form, then back to unix form
  13193. # but this time dos style (no spaces!) so that the unix form looks
  13194. # like /cygdrive/c/PROGRA~1:/cygdr...
  13195. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13196. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13197. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13198. ;;
  13199. *)
  13200. sys_lib_search_path_spec="$LIB"
  13201. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13202. # It is most probably a Windows format PATH.
  13203. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13204. else
  13205. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13206. fi
  13207. # FIXME: find the short name or the path components, as spaces are
  13208. # common. (e.g. "Program Files" -> "PROGRA~1")
  13209. ;;
  13210. esac
  13211. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13212. postinstall_cmds='base_file=`basename \${file}`~
  13213. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13214. dldir=$destdir/`dirname \$dlpath`~
  13215. test -d \$dldir || mkdir -p \$dldir~
  13216. $install_prog $dir/$dlname \$dldir/$dlname'
  13217. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13218. dlpath=$dir/\$dldll~
  13219. $RM \$dlpath'
  13220. shlibpath_overrides_runpath=yes
  13221. dynamic_linker='Win32 link.exe'
  13222. ;;
  13223. *)
  13224. # Assume MSVC wrapper
  13225. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13226. dynamic_linker='Win32 ld.exe'
  13227. ;;
  13228. esac
  13229. # FIXME: first we should search . and the directory the executable is in
  13230. shlibpath_var=PATH
  13231. ;;
  13232. darwin* | rhapsody*)
  13233. dynamic_linker="$host_os dyld"
  13234. version_type=darwin
  13235. need_lib_prefix=no
  13236. need_version=no
  13237. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13238. soname_spec='${libname}${release}${major}$shared_ext'
  13239. shlibpath_overrides_runpath=yes
  13240. shlibpath_var=DYLD_LIBRARY_PATH
  13241. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13242. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13243. ;;
  13244. dgux*)
  13245. version_type=linux # correct to gnu/linux during the next big refactor
  13246. need_lib_prefix=no
  13247. need_version=no
  13248. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13249. soname_spec='${libname}${release}${shared_ext}$major'
  13250. shlibpath_var=LD_LIBRARY_PATH
  13251. ;;
  13252. freebsd* | dragonfly*)
  13253. # DragonFly does not have aout. When/if they implement a new
  13254. # versioning mechanism, adjust this.
  13255. if test -x /usr/bin/objformat; then
  13256. objformat=`/usr/bin/objformat`
  13257. else
  13258. case $host_os in
  13259. freebsd[23].*) objformat=aout ;;
  13260. *) objformat=elf ;;
  13261. esac
  13262. fi
  13263. version_type=freebsd-$objformat
  13264. case $version_type in
  13265. freebsd-elf*)
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13267. need_version=no
  13268. need_lib_prefix=no
  13269. ;;
  13270. freebsd-*)
  13271. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13272. need_version=yes
  13273. ;;
  13274. esac
  13275. shlibpath_var=LD_LIBRARY_PATH
  13276. case $host_os in
  13277. freebsd2.*)
  13278. shlibpath_overrides_runpath=yes
  13279. ;;
  13280. freebsd3.[01]* | freebsdelf3.[01]*)
  13281. shlibpath_overrides_runpath=yes
  13282. hardcode_into_libs=yes
  13283. ;;
  13284. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13285. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13286. shlibpath_overrides_runpath=no
  13287. hardcode_into_libs=yes
  13288. ;;
  13289. *) # from 4.6 on, and DragonFly
  13290. shlibpath_overrides_runpath=yes
  13291. hardcode_into_libs=yes
  13292. ;;
  13293. esac
  13294. ;;
  13295. gnu*)
  13296. version_type=linux # correct to gnu/linux during the next big refactor
  13297. need_lib_prefix=no
  13298. need_version=no
  13299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13300. soname_spec='${libname}${release}${shared_ext}$major'
  13301. shlibpath_var=LD_LIBRARY_PATH
  13302. shlibpath_overrides_runpath=no
  13303. hardcode_into_libs=yes
  13304. ;;
  13305. haiku*)
  13306. version_type=linux # correct to gnu/linux during the next big refactor
  13307. need_lib_prefix=no
  13308. need_version=no
  13309. dynamic_linker="$host_os runtime_loader"
  13310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13311. soname_spec='${libname}${release}${shared_ext}$major'
  13312. shlibpath_var=LIBRARY_PATH
  13313. shlibpath_overrides_runpath=yes
  13314. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13315. hardcode_into_libs=yes
  13316. ;;
  13317. hpux9* | hpux10* | hpux11*)
  13318. # Give a soname corresponding to the major version so that dld.sl refuses to
  13319. # link against other versions.
  13320. version_type=sunos
  13321. need_lib_prefix=no
  13322. need_version=no
  13323. case $host_cpu in
  13324. ia64*)
  13325. shrext_cmds='.so'
  13326. hardcode_into_libs=yes
  13327. dynamic_linker="$host_os dld.so"
  13328. shlibpath_var=LD_LIBRARY_PATH
  13329. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13331. soname_spec='${libname}${release}${shared_ext}$major'
  13332. if test "X$HPUX_IA64_MODE" = X32; then
  13333. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13334. else
  13335. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13336. fi
  13337. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13338. ;;
  13339. hppa*64*)
  13340. shrext_cmds='.sl'
  13341. hardcode_into_libs=yes
  13342. dynamic_linker="$host_os dld.sl"
  13343. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13344. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13346. soname_spec='${libname}${release}${shared_ext}$major'
  13347. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13348. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13349. ;;
  13350. *)
  13351. shrext_cmds='.sl'
  13352. dynamic_linker="$host_os dld.sl"
  13353. shlibpath_var=SHLIB_PATH
  13354. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  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. ;;
  13358. esac
  13359. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13360. postinstall_cmds='chmod 555 $lib'
  13361. # or fails outright, so override atomically:
  13362. install_override_mode=555
  13363. ;;
  13364. interix[3-9]*)
  13365. version_type=linux # correct to gnu/linux during the next big refactor
  13366. need_lib_prefix=no
  13367. need_version=no
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13369. soname_spec='${libname}${release}${shared_ext}$major'
  13370. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13371. shlibpath_var=LD_LIBRARY_PATH
  13372. shlibpath_overrides_runpath=no
  13373. hardcode_into_libs=yes
  13374. ;;
  13375. irix5* | irix6* | nonstopux*)
  13376. case $host_os in
  13377. nonstopux*) version_type=nonstopux ;;
  13378. *)
  13379. if test "$lt_cv_prog_gnu_ld" = yes; then
  13380. version_type=linux # correct to gnu/linux during the next big refactor
  13381. else
  13382. version_type=irix
  13383. fi ;;
  13384. esac
  13385. need_lib_prefix=no
  13386. need_version=no
  13387. soname_spec='${libname}${release}${shared_ext}$major'
  13388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13389. case $host_os in
  13390. irix5* | nonstopux*)
  13391. libsuff= shlibsuff=
  13392. ;;
  13393. *)
  13394. case $LD in # libtool.m4 will add one of these switches to LD
  13395. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13396. libsuff= shlibsuff= libmagic=32-bit;;
  13397. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13398. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13399. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13400. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13401. *) libsuff= shlibsuff= libmagic=never-match;;
  13402. esac
  13403. ;;
  13404. esac
  13405. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13406. shlibpath_overrides_runpath=no
  13407. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13408. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13409. hardcode_into_libs=yes
  13410. ;;
  13411. # No shared lib support for Linux oldld, aout, or coff.
  13412. linux*oldld* | linux*aout* | linux*coff*)
  13413. dynamic_linker=no
  13414. ;;
  13415. # This must be glibc/ELF.
  13416. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13417. version_type=linux # correct to gnu/linux during the next big refactor
  13418. need_lib_prefix=no
  13419. need_version=no
  13420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13421. soname_spec='${libname}${release}${shared_ext}$major'
  13422. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13423. shlibpath_var=LD_LIBRARY_PATH
  13424. shlibpath_overrides_runpath=no
  13425. # Some binutils ld are patched to set DT_RUNPATH
  13426. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13427. $as_echo_n "(cached) " >&6
  13428. else
  13429. lt_cv_shlibpath_overrides_runpath=no
  13430. save_LDFLAGS=$LDFLAGS
  13431. save_libdir=$libdir
  13432. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13433. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13435. /* end confdefs.h. */
  13436. int
  13437. main ()
  13438. {
  13439. ;
  13440. return 0;
  13441. }
  13442. _ACEOF
  13443. if ac_fn_cxx_try_link "$LINENO"; then :
  13444. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13445. lt_cv_shlibpath_overrides_runpath=yes
  13446. fi
  13447. fi
  13448. rm -f core conftest.err conftest.$ac_objext \
  13449. conftest$ac_exeext conftest.$ac_ext
  13450. LDFLAGS=$save_LDFLAGS
  13451. libdir=$save_libdir
  13452. fi
  13453. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13454. # This implies no fast_install, which is unacceptable.
  13455. # Some rework will be needed to allow for fast_install
  13456. # before this can be enabled.
  13457. hardcode_into_libs=yes
  13458. # Add ABI-specific directories to the system library path.
  13459. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13460. # Append ld.so.conf contents to the search path
  13461. if test -f /etc/ld.so.conf; then
  13462. 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' ' '`
  13463. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13464. fi
  13465. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13466. # powerpc, because MkLinux only supported shared libraries with the
  13467. # GNU dynamic linker. Since this was broken with cross compilers,
  13468. # most powerpc-linux boxes support dynamic linking these days and
  13469. # people can always --disable-shared, the test was removed, and we
  13470. # assume the GNU/Linux dynamic linker is in use.
  13471. dynamic_linker='GNU/Linux ld.so'
  13472. ;;
  13473. netbsd*)
  13474. version_type=sunos
  13475. need_lib_prefix=no
  13476. need_version=no
  13477. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13479. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13480. dynamic_linker='NetBSD (a.out) ld.so'
  13481. else
  13482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13483. soname_spec='${libname}${release}${shared_ext}$major'
  13484. dynamic_linker='NetBSD ld.elf_so'
  13485. fi
  13486. shlibpath_var=LD_LIBRARY_PATH
  13487. shlibpath_overrides_runpath=yes
  13488. hardcode_into_libs=yes
  13489. ;;
  13490. newsos6)
  13491. version_type=linux # correct to gnu/linux during the next big refactor
  13492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13493. shlibpath_var=LD_LIBRARY_PATH
  13494. shlibpath_overrides_runpath=yes
  13495. ;;
  13496. *nto* | *qnx*)
  13497. version_type=qnx
  13498. need_lib_prefix=no
  13499. need_version=no
  13500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13501. soname_spec='${libname}${release}${shared_ext}$major'
  13502. shlibpath_var=LD_LIBRARY_PATH
  13503. shlibpath_overrides_runpath=no
  13504. hardcode_into_libs=yes
  13505. dynamic_linker='ldqnx.so'
  13506. ;;
  13507. openbsd*)
  13508. version_type=sunos
  13509. sys_lib_dlsearch_path_spec="/usr/lib"
  13510. need_lib_prefix=no
  13511. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13512. case $host_os in
  13513. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13514. *) need_version=no ;;
  13515. esac
  13516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13518. shlibpath_var=LD_LIBRARY_PATH
  13519. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13520. case $host_os in
  13521. openbsd2.[89] | openbsd2.[89].*)
  13522. shlibpath_overrides_runpath=no
  13523. ;;
  13524. *)
  13525. shlibpath_overrides_runpath=yes
  13526. ;;
  13527. esac
  13528. else
  13529. shlibpath_overrides_runpath=yes
  13530. fi
  13531. ;;
  13532. os2*)
  13533. libname_spec='$name'
  13534. shrext_cmds=".dll"
  13535. need_lib_prefix=no
  13536. library_names_spec='$libname${shared_ext} $libname.a'
  13537. dynamic_linker='OS/2 ld.exe'
  13538. shlibpath_var=LIBPATH
  13539. ;;
  13540. osf3* | osf4* | osf5*)
  13541. version_type=osf
  13542. need_lib_prefix=no
  13543. need_version=no
  13544. soname_spec='${libname}${release}${shared_ext}$major'
  13545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13546. shlibpath_var=LD_LIBRARY_PATH
  13547. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13548. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13549. ;;
  13550. rdos*)
  13551. dynamic_linker=no
  13552. ;;
  13553. solaris*)
  13554. version_type=linux # correct to gnu/linux during the next big refactor
  13555. need_lib_prefix=no
  13556. need_version=no
  13557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13558. soname_spec='${libname}${release}${shared_ext}$major'
  13559. shlibpath_var=LD_LIBRARY_PATH
  13560. shlibpath_overrides_runpath=yes
  13561. hardcode_into_libs=yes
  13562. # ldd complains unless libraries are executable
  13563. postinstall_cmds='chmod +x $lib'
  13564. ;;
  13565. sunos4*)
  13566. version_type=sunos
  13567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13568. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13569. shlibpath_var=LD_LIBRARY_PATH
  13570. shlibpath_overrides_runpath=yes
  13571. if test "$with_gnu_ld" = yes; then
  13572. need_lib_prefix=no
  13573. fi
  13574. need_version=yes
  13575. ;;
  13576. sysv4 | sysv4.3*)
  13577. version_type=linux # correct to gnu/linux during the next big refactor
  13578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13579. soname_spec='${libname}${release}${shared_ext}$major'
  13580. shlibpath_var=LD_LIBRARY_PATH
  13581. case $host_vendor in
  13582. sni)
  13583. shlibpath_overrides_runpath=no
  13584. need_lib_prefix=no
  13585. runpath_var=LD_RUN_PATH
  13586. ;;
  13587. siemens)
  13588. need_lib_prefix=no
  13589. ;;
  13590. motorola)
  13591. need_lib_prefix=no
  13592. need_version=no
  13593. shlibpath_overrides_runpath=no
  13594. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13595. ;;
  13596. esac
  13597. ;;
  13598. sysv4*MP*)
  13599. if test -d /usr/nec ;then
  13600. version_type=linux # correct to gnu/linux during the next big refactor
  13601. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13602. soname_spec='$libname${shared_ext}.$major'
  13603. shlibpath_var=LD_LIBRARY_PATH
  13604. fi
  13605. ;;
  13606. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13607. version_type=freebsd-elf
  13608. need_lib_prefix=no
  13609. need_version=no
  13610. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13611. soname_spec='${libname}${release}${shared_ext}$major'
  13612. shlibpath_var=LD_LIBRARY_PATH
  13613. shlibpath_overrides_runpath=yes
  13614. hardcode_into_libs=yes
  13615. if test "$with_gnu_ld" = yes; then
  13616. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13617. else
  13618. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13619. case $host_os in
  13620. sco3.2v5*)
  13621. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13622. ;;
  13623. esac
  13624. fi
  13625. sys_lib_dlsearch_path_spec='/usr/lib'
  13626. ;;
  13627. tpf*)
  13628. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13629. version_type=linux # correct to gnu/linux during the next big refactor
  13630. need_lib_prefix=no
  13631. need_version=no
  13632. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13633. shlibpath_var=LD_LIBRARY_PATH
  13634. shlibpath_overrides_runpath=no
  13635. hardcode_into_libs=yes
  13636. ;;
  13637. uts4*)
  13638. version_type=linux # correct to gnu/linux during the next big refactor
  13639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13640. soname_spec='${libname}${release}${shared_ext}$major'
  13641. shlibpath_var=LD_LIBRARY_PATH
  13642. ;;
  13643. *)
  13644. dynamic_linker=no
  13645. ;;
  13646. esac
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13648. $as_echo "$dynamic_linker" >&6; }
  13649. test "$dynamic_linker" = no && can_build_shared=no
  13650. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13651. if test "$GCC" = yes; then
  13652. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13653. fi
  13654. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13655. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13656. fi
  13657. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13658. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13659. fi
  13660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13661. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13662. hardcode_action_CXX=
  13663. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13664. test -n "$runpath_var_CXX" ||
  13665. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13666. # We can hardcode non-existent directories.
  13667. if test "$hardcode_direct_CXX" != no &&
  13668. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13669. # have to relink, otherwise we might link with an installed library
  13670. # when we should be linking with a yet-to-be-installed one
  13671. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13672. test "$hardcode_minus_L_CXX" != no; then
  13673. # Linking always hardcodes the temporary library directory.
  13674. hardcode_action_CXX=relink
  13675. else
  13676. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13677. hardcode_action_CXX=immediate
  13678. fi
  13679. else
  13680. # We cannot hardcode anything, or else we can only hardcode existing
  13681. # directories.
  13682. hardcode_action_CXX=unsupported
  13683. fi
  13684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13685. $as_echo "$hardcode_action_CXX" >&6; }
  13686. if test "$hardcode_action_CXX" = relink ||
  13687. test "$inherit_rpath_CXX" = yes; then
  13688. # Fast installation is not supported
  13689. enable_fast_install=no
  13690. elif test "$shlibpath_overrides_runpath" = yes ||
  13691. test "$enable_shared" = no; then
  13692. # Fast installation is not necessary
  13693. enable_fast_install=needless
  13694. fi
  13695. fi # test -n "$compiler"
  13696. CC=$lt_save_CC
  13697. CFLAGS=$lt_save_CFLAGS
  13698. LDCXX=$LD
  13699. LD=$lt_save_LD
  13700. GCC=$lt_save_GCC
  13701. with_gnu_ld=$lt_save_with_gnu_ld
  13702. lt_cv_path_LDCXX=$lt_cv_path_LD
  13703. lt_cv_path_LD=$lt_save_path_LD
  13704. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13705. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13706. fi # test "$_lt_caught_CXX_error" != yes
  13707. ac_ext=c
  13708. ac_cpp='$CPP $CPPFLAGS'
  13709. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13710. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13711. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13712. ac_config_commands="$ac_config_commands libtool"
  13713. # Only expand once:
  13714. # Checks for header files.
  13715. ac_header_dirent=no
  13716. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13717. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13719. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13720. if eval \${$as_ac_Header+:} false; then :
  13721. $as_echo_n "(cached) " >&6
  13722. else
  13723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13724. /* end confdefs.h. */
  13725. #include <sys/types.h>
  13726. #include <$ac_hdr>
  13727. int
  13728. main ()
  13729. {
  13730. if ((DIR *) 0)
  13731. return 0;
  13732. ;
  13733. return 0;
  13734. }
  13735. _ACEOF
  13736. if ac_fn_c_try_compile "$LINENO"; then :
  13737. eval "$as_ac_Header=yes"
  13738. else
  13739. eval "$as_ac_Header=no"
  13740. fi
  13741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13742. fi
  13743. eval ac_res=\$$as_ac_Header
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13745. $as_echo "$ac_res" >&6; }
  13746. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13747. cat >>confdefs.h <<_ACEOF
  13748. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13749. _ACEOF
  13750. ac_header_dirent=$ac_hdr; break
  13751. fi
  13752. done
  13753. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13754. if test $ac_header_dirent = dirent.h; then
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13756. $as_echo_n "checking for library containing opendir... " >&6; }
  13757. if ${ac_cv_search_opendir+:} false; then :
  13758. $as_echo_n "(cached) " >&6
  13759. else
  13760. ac_func_search_save_LIBS=$LIBS
  13761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13762. /* end confdefs.h. */
  13763. /* Override any GCC internal prototype to avoid an error.
  13764. Use char because int might match the return type of a GCC
  13765. builtin and then its argument prototype would still apply. */
  13766. #ifdef __cplusplus
  13767. extern "C"
  13768. #endif
  13769. char opendir ();
  13770. int
  13771. main ()
  13772. {
  13773. return opendir ();
  13774. ;
  13775. return 0;
  13776. }
  13777. _ACEOF
  13778. for ac_lib in '' dir; do
  13779. if test -z "$ac_lib"; then
  13780. ac_res="none required"
  13781. else
  13782. ac_res=-l$ac_lib
  13783. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13784. fi
  13785. if ac_fn_c_try_link "$LINENO"; then :
  13786. ac_cv_search_opendir=$ac_res
  13787. fi
  13788. rm -f core conftest.err conftest.$ac_objext \
  13789. conftest$ac_exeext
  13790. if ${ac_cv_search_opendir+:} false; then :
  13791. break
  13792. fi
  13793. done
  13794. if ${ac_cv_search_opendir+:} false; then :
  13795. else
  13796. ac_cv_search_opendir=no
  13797. fi
  13798. rm conftest.$ac_ext
  13799. LIBS=$ac_func_search_save_LIBS
  13800. fi
  13801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13802. $as_echo "$ac_cv_search_opendir" >&6; }
  13803. ac_res=$ac_cv_search_opendir
  13804. if test "$ac_res" != no; then :
  13805. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13806. fi
  13807. else
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13809. $as_echo_n "checking for library containing opendir... " >&6; }
  13810. if ${ac_cv_search_opendir+:} false; then :
  13811. $as_echo_n "(cached) " >&6
  13812. else
  13813. ac_func_search_save_LIBS=$LIBS
  13814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13815. /* end confdefs.h. */
  13816. /* Override any GCC internal prototype to avoid an error.
  13817. Use char because int might match the return type of a GCC
  13818. builtin and then its argument prototype would still apply. */
  13819. #ifdef __cplusplus
  13820. extern "C"
  13821. #endif
  13822. char opendir ();
  13823. int
  13824. main ()
  13825. {
  13826. return opendir ();
  13827. ;
  13828. return 0;
  13829. }
  13830. _ACEOF
  13831. for ac_lib in '' x; do
  13832. if test -z "$ac_lib"; then
  13833. ac_res="none required"
  13834. else
  13835. ac_res=-l$ac_lib
  13836. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13837. fi
  13838. if ac_fn_c_try_link "$LINENO"; then :
  13839. ac_cv_search_opendir=$ac_res
  13840. fi
  13841. rm -f core conftest.err conftest.$ac_objext \
  13842. conftest$ac_exeext
  13843. if ${ac_cv_search_opendir+:} false; then :
  13844. break
  13845. fi
  13846. done
  13847. if ${ac_cv_search_opendir+:} false; then :
  13848. else
  13849. ac_cv_search_opendir=no
  13850. fi
  13851. rm conftest.$ac_ext
  13852. LIBS=$ac_func_search_save_LIBS
  13853. fi
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13855. $as_echo "$ac_cv_search_opendir" >&6; }
  13856. ac_res=$ac_cv_search_opendir
  13857. if test "$ac_res" != no; then :
  13858. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13859. fi
  13860. fi
  13861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13862. $as_echo_n "checking for ANSI C header files... " >&6; }
  13863. if ${ac_cv_header_stdc+:} false; then :
  13864. $as_echo_n "(cached) " >&6
  13865. else
  13866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13867. /* end confdefs.h. */
  13868. #include <stdlib.h>
  13869. #include <stdarg.h>
  13870. #include <string.h>
  13871. #include <float.h>
  13872. int
  13873. main ()
  13874. {
  13875. ;
  13876. return 0;
  13877. }
  13878. _ACEOF
  13879. if ac_fn_c_try_compile "$LINENO"; then :
  13880. ac_cv_header_stdc=yes
  13881. else
  13882. ac_cv_header_stdc=no
  13883. fi
  13884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13885. if test $ac_cv_header_stdc = yes; then
  13886. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13888. /* end confdefs.h. */
  13889. #include <string.h>
  13890. _ACEOF
  13891. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13892. $EGREP "memchr" >/dev/null 2>&1; then :
  13893. else
  13894. ac_cv_header_stdc=no
  13895. fi
  13896. rm -f conftest*
  13897. fi
  13898. if test $ac_cv_header_stdc = yes; then
  13899. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13901. /* end confdefs.h. */
  13902. #include <stdlib.h>
  13903. _ACEOF
  13904. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13905. $EGREP "free" >/dev/null 2>&1; then :
  13906. else
  13907. ac_cv_header_stdc=no
  13908. fi
  13909. rm -f conftest*
  13910. fi
  13911. if test $ac_cv_header_stdc = yes; then
  13912. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13913. if test "$cross_compiling" = yes; then :
  13914. :
  13915. else
  13916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13917. /* end confdefs.h. */
  13918. #include <ctype.h>
  13919. #include <stdlib.h>
  13920. #if ((' ' & 0x0FF) == 0x020)
  13921. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13922. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13923. #else
  13924. # define ISLOWER(c) \
  13925. (('a' <= (c) && (c) <= 'i') \
  13926. || ('j' <= (c) && (c) <= 'r') \
  13927. || ('s' <= (c) && (c) <= 'z'))
  13928. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13929. #endif
  13930. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13931. int
  13932. main ()
  13933. {
  13934. int i;
  13935. for (i = 0; i < 256; i++)
  13936. if (XOR (islower (i), ISLOWER (i))
  13937. || toupper (i) != TOUPPER (i))
  13938. return 2;
  13939. return 0;
  13940. }
  13941. _ACEOF
  13942. if ac_fn_c_try_run "$LINENO"; then :
  13943. else
  13944. ac_cv_header_stdc=no
  13945. fi
  13946. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13947. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13948. fi
  13949. fi
  13950. fi
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13952. $as_echo "$ac_cv_header_stdc" >&6; }
  13953. if test $ac_cv_header_stdc = yes; then
  13954. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13955. fi
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13957. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13958. if ${ac_cv_header_sys_wait_h+:} false; then :
  13959. $as_echo_n "(cached) " >&6
  13960. else
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. #include <sys/types.h>
  13964. #include <sys/wait.h>
  13965. #ifndef WEXITSTATUS
  13966. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13967. #endif
  13968. #ifndef WIFEXITED
  13969. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13970. #endif
  13971. int
  13972. main ()
  13973. {
  13974. int s;
  13975. wait (&s);
  13976. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13977. ;
  13978. return 0;
  13979. }
  13980. _ACEOF
  13981. if ac_fn_c_try_compile "$LINENO"; then :
  13982. ac_cv_header_sys_wait_h=yes
  13983. else
  13984. ac_cv_header_sys_wait_h=no
  13985. fi
  13986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13987. fi
  13988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13989. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13990. if test $ac_cv_header_sys_wait_h = yes; then
  13991. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13992. fi
  13993. 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
  13994. do :
  13995. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13996. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13997. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13998. cat >>confdefs.h <<_ACEOF
  13999. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14000. _ACEOF
  14001. fi
  14002. done
  14003. # Checks for typedefs, structures, and compiler characteristics.
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  14005. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14006. if ${ac_cv_header_stat_broken+:} false; then :
  14007. $as_echo_n "(cached) " >&6
  14008. else
  14009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14010. /* end confdefs.h. */
  14011. #include <sys/types.h>
  14012. #include <sys/stat.h>
  14013. #if defined S_ISBLK && defined S_IFDIR
  14014. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14015. #endif
  14016. #if defined S_ISBLK && defined S_IFCHR
  14017. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14018. #endif
  14019. #if defined S_ISLNK && defined S_IFREG
  14020. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14021. #endif
  14022. #if defined S_ISSOCK && defined S_IFREG
  14023. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14024. #endif
  14025. _ACEOF
  14026. if ac_fn_c_try_compile "$LINENO"; then :
  14027. ac_cv_header_stat_broken=no
  14028. else
  14029. ac_cv_header_stat_broken=yes
  14030. fi
  14031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14032. fi
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  14034. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14035. if test $ac_cv_header_stat_broken = yes; then
  14036. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  14037. fi
  14038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14039. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14040. if ${ac_cv_c_const+:} false; then :
  14041. $as_echo_n "(cached) " >&6
  14042. else
  14043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14044. /* end confdefs.h. */
  14045. int
  14046. main ()
  14047. {
  14048. #ifndef __cplusplus
  14049. /* Ultrix mips cc rejects this sort of thing. */
  14050. typedef int charset[2];
  14051. const charset cs = { 0, 0 };
  14052. /* SunOS 4.1.1 cc rejects this. */
  14053. char const *const *pcpcc;
  14054. char **ppc;
  14055. /* NEC SVR4.0.2 mips cc rejects this. */
  14056. struct point {int x, y;};
  14057. static struct point const zero = {0,0};
  14058. /* AIX XL C 1.02.0.0 rejects this.
  14059. It does not let you subtract one const X* pointer from another in
  14060. an arm of an if-expression whose if-part is not a constant
  14061. expression */
  14062. const char *g = "string";
  14063. pcpcc = &g + (g ? g-g : 0);
  14064. /* HPUX 7.0 cc rejects these. */
  14065. ++pcpcc;
  14066. ppc = (char**) pcpcc;
  14067. pcpcc = (char const *const *) ppc;
  14068. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14069. char tx;
  14070. char *t = &tx;
  14071. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14072. *t++ = 0;
  14073. if (s) return 0;
  14074. }
  14075. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14076. int x[] = {25, 17};
  14077. const int *foo = &x[0];
  14078. ++foo;
  14079. }
  14080. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14081. typedef const int *iptr;
  14082. iptr p = 0;
  14083. ++p;
  14084. }
  14085. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14086. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14087. struct s { int j; const int *ap[3]; } bx;
  14088. struct s *b = &bx; b->j = 5;
  14089. }
  14090. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14091. const int foo = 10;
  14092. if (!foo) return 0;
  14093. }
  14094. return !cs[0] && !zero.x;
  14095. #endif
  14096. ;
  14097. return 0;
  14098. }
  14099. _ACEOF
  14100. if ac_fn_c_try_compile "$LINENO"; then :
  14101. ac_cv_c_const=yes
  14102. else
  14103. ac_cv_c_const=no
  14104. fi
  14105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14106. fi
  14107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14108. $as_echo "$ac_cv_c_const" >&6; }
  14109. if test $ac_cv_c_const = no; then
  14110. $as_echo "#define const /**/" >>confdefs.h
  14111. fi
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14113. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14114. if ${ac_cv_header_stdbool_h+:} false; then :
  14115. $as_echo_n "(cached) " >&6
  14116. else
  14117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14118. /* end confdefs.h. */
  14119. #include <stdbool.h>
  14120. #ifndef bool
  14121. "error: bool is not defined"
  14122. #endif
  14123. #ifndef false
  14124. "error: false is not defined"
  14125. #endif
  14126. #if false
  14127. "error: false is not 0"
  14128. #endif
  14129. #ifndef true
  14130. "error: true is not defined"
  14131. #endif
  14132. #if true != 1
  14133. "error: true is not 1"
  14134. #endif
  14135. #ifndef __bool_true_false_are_defined
  14136. "error: __bool_true_false_are_defined is not defined"
  14137. #endif
  14138. struct s { _Bool s: 1; _Bool t; } s;
  14139. char a[true == 1 ? 1 : -1];
  14140. char b[false == 0 ? 1 : -1];
  14141. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14142. char d[(bool) 0.5 == true ? 1 : -1];
  14143. /* See body of main program for 'e'. */
  14144. char f[(_Bool) 0.0 == false ? 1 : -1];
  14145. char g[true];
  14146. char h[sizeof (_Bool)];
  14147. char i[sizeof s.t];
  14148. enum { j = false, k = true, l = false * true, m = true * 256 };
  14149. /* The following fails for
  14150. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14151. _Bool n[m];
  14152. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14153. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14154. /* Catch a bug in an HP-UX C compiler. See
  14155. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14156. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14157. */
  14158. _Bool q = true;
  14159. _Bool *pq = &q;
  14160. int
  14161. main ()
  14162. {
  14163. bool e = &s;
  14164. *pq |= q;
  14165. *pq |= ! q;
  14166. /* Refer to every declared value, to avoid compiler optimizations. */
  14167. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14168. + !m + !n + !o + !p + !q + !pq);
  14169. ;
  14170. return 0;
  14171. }
  14172. _ACEOF
  14173. if ac_fn_c_try_compile "$LINENO"; then :
  14174. ac_cv_header_stdbool_h=yes
  14175. else
  14176. ac_cv_header_stdbool_h=no
  14177. fi
  14178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14179. fi
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14181. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14182. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14183. if test "x$ac_cv_type__Bool" = xyes; then :
  14184. cat >>confdefs.h <<_ACEOF
  14185. #define HAVE__BOOL 1
  14186. _ACEOF
  14187. fi
  14188. if test $ac_cv_header_stdbool_h = yes; then
  14189. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14190. fi
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14192. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14193. if ${ac_cv_type_uid_t+:} false; then :
  14194. $as_echo_n "(cached) " >&6
  14195. else
  14196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14197. /* end confdefs.h. */
  14198. #include <sys/types.h>
  14199. _ACEOF
  14200. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14201. $EGREP "uid_t" >/dev/null 2>&1; then :
  14202. ac_cv_type_uid_t=yes
  14203. else
  14204. ac_cv_type_uid_t=no
  14205. fi
  14206. rm -f conftest*
  14207. fi
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14209. $as_echo "$ac_cv_type_uid_t" >&6; }
  14210. if test $ac_cv_type_uid_t = no; then
  14211. $as_echo "#define uid_t int" >>confdefs.h
  14212. $as_echo "#define gid_t int" >>confdefs.h
  14213. fi
  14214. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14215. if test "x$ac_cv_type_pid_t" = xyes; then :
  14216. else
  14217. cat >>confdefs.h <<_ACEOF
  14218. #define pid_t int
  14219. _ACEOF
  14220. fi
  14221. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14222. if test "x$ac_cv_type_size_t" = xyes; then :
  14223. else
  14224. cat >>confdefs.h <<_ACEOF
  14225. #define size_t unsigned int
  14226. _ACEOF
  14227. fi
  14228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14229. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14230. if ${ac_cv_header_time+:} false; then :
  14231. $as_echo_n "(cached) " >&6
  14232. else
  14233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14234. /* end confdefs.h. */
  14235. #include <sys/types.h>
  14236. #include <sys/time.h>
  14237. #include <time.h>
  14238. int
  14239. main ()
  14240. {
  14241. if ((struct tm *) 0)
  14242. return 0;
  14243. ;
  14244. return 0;
  14245. }
  14246. _ACEOF
  14247. if ac_fn_c_try_compile "$LINENO"; then :
  14248. ac_cv_header_time=yes
  14249. else
  14250. ac_cv_header_time=no
  14251. fi
  14252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14253. fi
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14255. $as_echo "$ac_cv_header_time" >&6; }
  14256. if test $ac_cv_header_time = yes; then
  14257. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14258. fi
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14260. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14261. if ${ac_cv_struct_tm+:} false; then :
  14262. $as_echo_n "(cached) " >&6
  14263. else
  14264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14265. /* end confdefs.h. */
  14266. #include <sys/types.h>
  14267. #include <time.h>
  14268. int
  14269. main ()
  14270. {
  14271. struct tm tm;
  14272. int *p = &tm.tm_sec;
  14273. return !p;
  14274. ;
  14275. return 0;
  14276. }
  14277. _ACEOF
  14278. if ac_fn_c_try_compile "$LINENO"; then :
  14279. ac_cv_struct_tm=time.h
  14280. else
  14281. ac_cv_struct_tm=sys/time.h
  14282. fi
  14283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14284. fi
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14286. $as_echo "$ac_cv_struct_tm" >&6; }
  14287. if test $ac_cv_struct_tm = sys/time.h; then
  14288. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14289. fi
  14290. # Checks for library functions.
  14291. for ac_header in unistd.h
  14292. do :
  14293. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14294. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14295. cat >>confdefs.h <<_ACEOF
  14296. #define HAVE_UNISTD_H 1
  14297. _ACEOF
  14298. fi
  14299. done
  14300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14301. $as_echo_n "checking for working chown... " >&6; }
  14302. if ${ac_cv_func_chown_works+:} false; then :
  14303. $as_echo_n "(cached) " >&6
  14304. else
  14305. if test "$cross_compiling" = yes; then :
  14306. ac_cv_func_chown_works=no
  14307. else
  14308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14309. /* end confdefs.h. */
  14310. $ac_includes_default
  14311. #include <fcntl.h>
  14312. int
  14313. main ()
  14314. {
  14315. char *f = "conftest.chown";
  14316. struct stat before, after;
  14317. if (creat (f, 0600) < 0)
  14318. return 1;
  14319. if (stat (f, &before) < 0)
  14320. return 1;
  14321. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14322. return 1;
  14323. if (stat (f, &after) < 0)
  14324. return 1;
  14325. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14326. ;
  14327. return 0;
  14328. }
  14329. _ACEOF
  14330. if ac_fn_c_try_run "$LINENO"; then :
  14331. ac_cv_func_chown_works=yes
  14332. else
  14333. ac_cv_func_chown_works=no
  14334. fi
  14335. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14336. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14337. fi
  14338. rm -f conftest.chown
  14339. fi
  14340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14341. $as_echo "$ac_cv_func_chown_works" >&6; }
  14342. if test $ac_cv_func_chown_works = yes; then
  14343. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14344. fi
  14345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14346. $as_echo_n "checking whether closedir returns void... " >&6; }
  14347. if ${ac_cv_func_closedir_void+:} false; then :
  14348. $as_echo_n "(cached) " >&6
  14349. else
  14350. if test "$cross_compiling" = yes; then :
  14351. ac_cv_func_closedir_void=yes
  14352. else
  14353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14354. /* end confdefs.h. */
  14355. $ac_includes_default
  14356. #include <$ac_header_dirent>
  14357. #ifndef __cplusplus
  14358. int closedir ();
  14359. #endif
  14360. int
  14361. main ()
  14362. {
  14363. return closedir (opendir (".")) != 0;
  14364. ;
  14365. return 0;
  14366. }
  14367. _ACEOF
  14368. if ac_fn_c_try_run "$LINENO"; then :
  14369. ac_cv_func_closedir_void=no
  14370. else
  14371. ac_cv_func_closedir_void=yes
  14372. fi
  14373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14374. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14375. fi
  14376. fi
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14378. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14379. if test $ac_cv_func_closedir_void = yes; then
  14380. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14381. fi
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14383. $as_echo_n "checking for error_at_line... " >&6; }
  14384. if ${ac_cv_lib_error_at_line+:} false; then :
  14385. $as_echo_n "(cached) " >&6
  14386. else
  14387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14388. /* end confdefs.h. */
  14389. #include <error.h>
  14390. int
  14391. main ()
  14392. {
  14393. error_at_line (0, 0, "", 0, "an error occurred");
  14394. ;
  14395. return 0;
  14396. }
  14397. _ACEOF
  14398. if ac_fn_c_try_link "$LINENO"; then :
  14399. ac_cv_lib_error_at_line=yes
  14400. else
  14401. ac_cv_lib_error_at_line=no
  14402. fi
  14403. rm -f core conftest.err conftest.$ac_objext \
  14404. conftest$ac_exeext conftest.$ac_ext
  14405. fi
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14407. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14408. if test $ac_cv_lib_error_at_line = no; then
  14409. case " $LIBOBJS " in
  14410. *" error.$ac_objext "* ) ;;
  14411. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14412. ;;
  14413. esac
  14414. fi
  14415. for ac_header in vfork.h
  14416. do :
  14417. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14418. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14419. cat >>confdefs.h <<_ACEOF
  14420. #define HAVE_VFORK_H 1
  14421. _ACEOF
  14422. fi
  14423. done
  14424. for ac_func in fork vfork
  14425. do :
  14426. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14427. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14428. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14429. cat >>confdefs.h <<_ACEOF
  14430. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14431. _ACEOF
  14432. fi
  14433. done
  14434. if test "x$ac_cv_func_fork" = xyes; then
  14435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14436. $as_echo_n "checking for working fork... " >&6; }
  14437. if ${ac_cv_func_fork_works+:} false; then :
  14438. $as_echo_n "(cached) " >&6
  14439. else
  14440. if test "$cross_compiling" = yes; then :
  14441. ac_cv_func_fork_works=cross
  14442. else
  14443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14444. /* end confdefs.h. */
  14445. $ac_includes_default
  14446. int
  14447. main ()
  14448. {
  14449. /* By Ruediger Kuhlmann. */
  14450. return fork () < 0;
  14451. ;
  14452. return 0;
  14453. }
  14454. _ACEOF
  14455. if ac_fn_c_try_run "$LINENO"; then :
  14456. ac_cv_func_fork_works=yes
  14457. else
  14458. ac_cv_func_fork_works=no
  14459. fi
  14460. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14461. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14462. fi
  14463. fi
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14465. $as_echo "$ac_cv_func_fork_works" >&6; }
  14466. else
  14467. ac_cv_func_fork_works=$ac_cv_func_fork
  14468. fi
  14469. if test "x$ac_cv_func_fork_works" = xcross; then
  14470. case $host in
  14471. *-*-amigaos* | *-*-msdosdjgpp*)
  14472. # Override, as these systems have only a dummy fork() stub
  14473. ac_cv_func_fork_works=no
  14474. ;;
  14475. *)
  14476. ac_cv_func_fork_works=yes
  14477. ;;
  14478. esac
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14480. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14481. fi
  14482. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14483. if test "x$ac_cv_func_vfork" = xyes; then
  14484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14485. $as_echo_n "checking for working vfork... " >&6; }
  14486. if ${ac_cv_func_vfork_works+:} false; then :
  14487. $as_echo_n "(cached) " >&6
  14488. else
  14489. if test "$cross_compiling" = yes; then :
  14490. ac_cv_func_vfork_works=cross
  14491. else
  14492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14493. /* end confdefs.h. */
  14494. /* Thanks to Paul Eggert for this test. */
  14495. $ac_includes_default
  14496. #include <sys/wait.h>
  14497. #ifdef HAVE_VFORK_H
  14498. # include <vfork.h>
  14499. #endif
  14500. /* On some sparc systems, changes by the child to local and incoming
  14501. argument registers are propagated back to the parent. The compiler
  14502. is told about this with #include <vfork.h>, but some compilers
  14503. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14504. static variable whose address is put into a register that is
  14505. clobbered by the vfork. */
  14506. static void
  14507. #ifdef __cplusplus
  14508. sparc_address_test (int arg)
  14509. # else
  14510. sparc_address_test (arg) int arg;
  14511. #endif
  14512. {
  14513. static pid_t child;
  14514. if (!child) {
  14515. child = vfork ();
  14516. if (child < 0) {
  14517. perror ("vfork");
  14518. _exit(2);
  14519. }
  14520. if (!child) {
  14521. arg = getpid();
  14522. write(-1, "", 0);
  14523. _exit (arg);
  14524. }
  14525. }
  14526. }
  14527. int
  14528. main ()
  14529. {
  14530. pid_t parent = getpid ();
  14531. pid_t child;
  14532. sparc_address_test (0);
  14533. child = vfork ();
  14534. if (child == 0) {
  14535. /* Here is another test for sparc vfork register problems. This
  14536. test uses lots of local variables, at least as many local
  14537. variables as main has allocated so far including compiler
  14538. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14539. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14540. reuse the register of parent for one of the local variables,
  14541. since it will think that parent can't possibly be used any more
  14542. in this routine. Assigning to the local variable will thus
  14543. munge parent in the parent process. */
  14544. pid_t
  14545. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14546. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14547. /* Convince the compiler that p..p7 are live; otherwise, it might
  14548. use the same hardware register for all 8 local variables. */
  14549. if (p != p1 || p != p2 || p != p3 || p != p4
  14550. || p != p5 || p != p6 || p != p7)
  14551. _exit(1);
  14552. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14553. from child file descriptors. If the child closes a descriptor
  14554. before it execs or exits, this munges the parent's descriptor
  14555. as well. Test for this by closing stdout in the child. */
  14556. _exit(close(fileno(stdout)) != 0);
  14557. } else {
  14558. int status;
  14559. struct stat st;
  14560. while (wait(&status) != child)
  14561. ;
  14562. return (
  14563. /* Was there some problem with vforking? */
  14564. child < 0
  14565. /* Did the child fail? (This shouldn't happen.) */
  14566. || status
  14567. /* Did the vfork/compiler bug occur? */
  14568. || parent != getpid()
  14569. /* Did the file descriptor bug occur? */
  14570. || fstat(fileno(stdout), &st) != 0
  14571. );
  14572. }
  14573. }
  14574. _ACEOF
  14575. if ac_fn_c_try_run "$LINENO"; then :
  14576. ac_cv_func_vfork_works=yes
  14577. else
  14578. ac_cv_func_vfork_works=no
  14579. fi
  14580. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14581. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14582. fi
  14583. fi
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14585. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14586. fi;
  14587. if test "x$ac_cv_func_fork_works" = xcross; then
  14588. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14590. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14591. fi
  14592. if test "x$ac_cv_func_vfork_works" = xyes; then
  14593. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14594. else
  14595. $as_echo "#define vfork fork" >>confdefs.h
  14596. fi
  14597. if test "x$ac_cv_func_fork_works" = xyes; then
  14598. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14599. fi
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14601. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14602. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14603. $as_echo_n "(cached) " >&6
  14604. else
  14605. rm -f conftest.sym conftest.file
  14606. echo >conftest.file
  14607. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14608. if test "$cross_compiling" = yes; then :
  14609. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14610. else
  14611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14612. /* end confdefs.h. */
  14613. $ac_includes_default
  14614. int
  14615. main ()
  14616. {
  14617. struct stat sbuf;
  14618. /* Linux will dereference the symlink and fail, as required by POSIX.
  14619. That is better in the sense that it means we will not
  14620. have to compile and use the lstat wrapper. */
  14621. return lstat ("conftest.sym/", &sbuf) == 0;
  14622. ;
  14623. return 0;
  14624. }
  14625. _ACEOF
  14626. if ac_fn_c_try_run "$LINENO"; then :
  14627. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14628. else
  14629. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14630. fi
  14631. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14632. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14633. fi
  14634. else
  14635. # If the `ln -s' command failed, then we probably don't even
  14636. # have an lstat function.
  14637. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14638. fi
  14639. rm -f conftest.sym conftest.file
  14640. fi
  14641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14642. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14643. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14644. cat >>confdefs.h <<_ACEOF
  14645. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14646. _ACEOF
  14647. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14648. case " $LIBOBJS " in
  14649. *" lstat.$ac_objext "* ) ;;
  14650. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14651. ;;
  14652. esac
  14653. fi
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14655. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14656. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14657. $as_echo_n "(cached) " >&6
  14658. else
  14659. if test "$cross_compiling" = yes; then :
  14660. ac_cv_func_lstat_empty_string_bug=yes
  14661. else
  14662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14663. /* end confdefs.h. */
  14664. $ac_includes_default
  14665. int
  14666. main ()
  14667. {
  14668. struct stat sbuf;
  14669. return lstat ("", &sbuf) == 0;
  14670. ;
  14671. return 0;
  14672. }
  14673. _ACEOF
  14674. if ac_fn_c_try_run "$LINENO"; then :
  14675. ac_cv_func_lstat_empty_string_bug=no
  14676. else
  14677. ac_cv_func_lstat_empty_string_bug=yes
  14678. fi
  14679. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14680. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14681. fi
  14682. fi
  14683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14684. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14685. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14686. case " $LIBOBJS " in
  14687. *" lstat.$ac_objext "* ) ;;
  14688. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14689. ;;
  14690. esac
  14691. cat >>confdefs.h <<_ACEOF
  14692. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14693. _ACEOF
  14694. fi
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14696. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14697. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14698. $as_echo_n "(cached) " >&6
  14699. else
  14700. rm -f conftest.sym conftest.file
  14701. echo >conftest.file
  14702. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14703. if test "$cross_compiling" = yes; then :
  14704. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14705. else
  14706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14707. /* end confdefs.h. */
  14708. $ac_includes_default
  14709. int
  14710. main ()
  14711. {
  14712. struct stat sbuf;
  14713. /* Linux will dereference the symlink and fail, as required by POSIX.
  14714. That is better in the sense that it means we will not
  14715. have to compile and use the lstat wrapper. */
  14716. return lstat ("conftest.sym/", &sbuf) == 0;
  14717. ;
  14718. return 0;
  14719. }
  14720. _ACEOF
  14721. if ac_fn_c_try_run "$LINENO"; then :
  14722. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14723. else
  14724. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14725. fi
  14726. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14727. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14728. fi
  14729. else
  14730. # If the `ln -s' command failed, then we probably don't even
  14731. # have an lstat function.
  14732. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14733. fi
  14734. rm -f conftest.sym conftest.file
  14735. fi
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14737. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14738. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14739. cat >>confdefs.h <<_ACEOF
  14740. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14741. _ACEOF
  14742. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14743. case " $LIBOBJS " in
  14744. *" lstat.$ac_objext "* ) ;;
  14745. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14746. ;;
  14747. esac
  14748. fi
  14749. for ac_header in stdlib.h
  14750. do :
  14751. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14752. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14753. cat >>confdefs.h <<_ACEOF
  14754. #define HAVE_STDLIB_H 1
  14755. _ACEOF
  14756. fi
  14757. done
  14758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14759. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14760. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14761. $as_echo_n "(cached) " >&6
  14762. else
  14763. if test "$cross_compiling" = yes; then :
  14764. ac_cv_func_malloc_0_nonnull=no
  14765. else
  14766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14767. /* end confdefs.h. */
  14768. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14769. # include <stdlib.h>
  14770. #else
  14771. char *malloc ();
  14772. #endif
  14773. int
  14774. main ()
  14775. {
  14776. return ! malloc (0);
  14777. ;
  14778. return 0;
  14779. }
  14780. _ACEOF
  14781. if ac_fn_c_try_run "$LINENO"; then :
  14782. ac_cv_func_malloc_0_nonnull=yes
  14783. else
  14784. ac_cv_func_malloc_0_nonnull=no
  14785. fi
  14786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14787. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14788. fi
  14789. fi
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14791. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14792. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14793. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14794. else
  14795. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14796. case " $LIBOBJS " in
  14797. *" malloc.$ac_objext "* ) ;;
  14798. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14799. ;;
  14800. esac
  14801. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14802. fi
  14803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14804. $as_echo_n "checking for working memcmp... " >&6; }
  14805. if ${ac_cv_func_memcmp_working+:} false; then :
  14806. $as_echo_n "(cached) " >&6
  14807. else
  14808. if test "$cross_compiling" = yes; then :
  14809. ac_cv_func_memcmp_working=no
  14810. else
  14811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14812. /* end confdefs.h. */
  14813. $ac_includes_default
  14814. int
  14815. main ()
  14816. {
  14817. /* Some versions of memcmp are not 8-bit clean. */
  14818. char c0 = '\100', c1 = '\200', c2 = '\201';
  14819. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14820. return 1;
  14821. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14822. or more and with at least one buffer not starting on a 4-byte boundary.
  14823. William Lewis provided this test program. */
  14824. {
  14825. char foo[21];
  14826. char bar[21];
  14827. int i;
  14828. for (i = 0; i < 4; i++)
  14829. {
  14830. char *a = foo + i;
  14831. char *b = bar + i;
  14832. strcpy (a, "--------01111111");
  14833. strcpy (b, "--------10000000");
  14834. if (memcmp (a, b, 16) >= 0)
  14835. return 1;
  14836. }
  14837. return 0;
  14838. }
  14839. ;
  14840. return 0;
  14841. }
  14842. _ACEOF
  14843. if ac_fn_c_try_run "$LINENO"; then :
  14844. ac_cv_func_memcmp_working=yes
  14845. else
  14846. ac_cv_func_memcmp_working=no
  14847. fi
  14848. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14849. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14850. fi
  14851. fi
  14852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14853. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14854. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14855. *" memcmp.$ac_objext "* ) ;;
  14856. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14857. ;;
  14858. esac
  14859. for ac_header in $ac_header_list
  14860. do :
  14861. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14862. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14863. "
  14864. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14865. cat >>confdefs.h <<_ACEOF
  14866. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14867. _ACEOF
  14868. fi
  14869. done
  14870. for ac_func in getpagesize
  14871. do :
  14872. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14873. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14874. cat >>confdefs.h <<_ACEOF
  14875. #define HAVE_GETPAGESIZE 1
  14876. _ACEOF
  14877. fi
  14878. done
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14880. $as_echo_n "checking for working mmap... " >&6; }
  14881. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14882. $as_echo_n "(cached) " >&6
  14883. else
  14884. if test "$cross_compiling" = yes; then :
  14885. ac_cv_func_mmap_fixed_mapped=no
  14886. else
  14887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14888. /* end confdefs.h. */
  14889. $ac_includes_default
  14890. /* malloc might have been renamed as rpl_malloc. */
  14891. #undef malloc
  14892. /* Thanks to Mike Haertel and Jim Avera for this test.
  14893. Here is a matrix of mmap possibilities:
  14894. mmap private not fixed
  14895. mmap private fixed at somewhere currently unmapped
  14896. mmap private fixed at somewhere already mapped
  14897. mmap shared not fixed
  14898. mmap shared fixed at somewhere currently unmapped
  14899. mmap shared fixed at somewhere already mapped
  14900. For private mappings, we should verify that changes cannot be read()
  14901. back from the file, nor mmap's back from the file at a different
  14902. address. (There have been systems where private was not correctly
  14903. implemented like the infamous i386 svr4.0, and systems where the
  14904. VM page cache was not coherent with the file system buffer cache
  14905. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14906. For shared mappings, we should conversely verify that changes get
  14907. propagated back to all the places they're supposed to be.
  14908. Grep wants private fixed already mapped.
  14909. The main things grep needs to know about mmap are:
  14910. * does it exist and is it safe to write into the mmap'd area
  14911. * how to use it (BSD variants) */
  14912. #include <fcntl.h>
  14913. #include <sys/mman.h>
  14914. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14915. char *malloc ();
  14916. #endif
  14917. /* This mess was copied from the GNU getpagesize.h. */
  14918. #ifndef HAVE_GETPAGESIZE
  14919. # ifdef _SC_PAGESIZE
  14920. # define getpagesize() sysconf(_SC_PAGESIZE)
  14921. # else /* no _SC_PAGESIZE */
  14922. # ifdef HAVE_SYS_PARAM_H
  14923. # include <sys/param.h>
  14924. # ifdef EXEC_PAGESIZE
  14925. # define getpagesize() EXEC_PAGESIZE
  14926. # else /* no EXEC_PAGESIZE */
  14927. # ifdef NBPG
  14928. # define getpagesize() NBPG * CLSIZE
  14929. # ifndef CLSIZE
  14930. # define CLSIZE 1
  14931. # endif /* no CLSIZE */
  14932. # else /* no NBPG */
  14933. # ifdef NBPC
  14934. # define getpagesize() NBPC
  14935. # else /* no NBPC */
  14936. # ifdef PAGESIZE
  14937. # define getpagesize() PAGESIZE
  14938. # endif /* PAGESIZE */
  14939. # endif /* no NBPC */
  14940. # endif /* no NBPG */
  14941. # endif /* no EXEC_PAGESIZE */
  14942. # else /* no HAVE_SYS_PARAM_H */
  14943. # define getpagesize() 8192 /* punt totally */
  14944. # endif /* no HAVE_SYS_PARAM_H */
  14945. # endif /* no _SC_PAGESIZE */
  14946. #endif /* no HAVE_GETPAGESIZE */
  14947. int
  14948. main ()
  14949. {
  14950. char *data, *data2, *data3;
  14951. const char *cdata2;
  14952. int i, pagesize;
  14953. int fd, fd2;
  14954. pagesize = getpagesize ();
  14955. /* First, make a file with some known garbage in it. */
  14956. data = (char *) malloc (pagesize);
  14957. if (!data)
  14958. return 1;
  14959. for (i = 0; i < pagesize; ++i)
  14960. *(data + i) = rand ();
  14961. umask (0);
  14962. fd = creat ("conftest.mmap", 0600);
  14963. if (fd < 0)
  14964. return 2;
  14965. if (write (fd, data, pagesize) != pagesize)
  14966. return 3;
  14967. close (fd);
  14968. /* Next, check that the tail of a page is zero-filled. File must have
  14969. non-zero length, otherwise we risk SIGBUS for entire page. */
  14970. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14971. if (fd2 < 0)
  14972. return 4;
  14973. cdata2 = "";
  14974. if (write (fd2, cdata2, 1) != 1)
  14975. return 5;
  14976. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14977. if (data2 == MAP_FAILED)
  14978. return 6;
  14979. for (i = 0; i < pagesize; ++i)
  14980. if (*(data2 + i))
  14981. return 7;
  14982. close (fd2);
  14983. if (munmap (data2, pagesize))
  14984. return 8;
  14985. /* Next, try to mmap the file at a fixed address which already has
  14986. something else allocated at it. If we can, also make sure that
  14987. we see the same garbage. */
  14988. fd = open ("conftest.mmap", O_RDWR);
  14989. if (fd < 0)
  14990. return 9;
  14991. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14992. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14993. return 10;
  14994. for (i = 0; i < pagesize; ++i)
  14995. if (*(data + i) != *(data2 + i))
  14996. return 11;
  14997. /* Finally, make sure that changes to the mapped area do not
  14998. percolate back to the file as seen by read(). (This is a bug on
  14999. some variants of i386 svr4.0.) */
  15000. for (i = 0; i < pagesize; ++i)
  15001. *(data2 + i) = *(data2 + i) + 1;
  15002. data3 = (char *) malloc (pagesize);
  15003. if (!data3)
  15004. return 12;
  15005. if (read (fd, data3, pagesize) != pagesize)
  15006. return 13;
  15007. for (i = 0; i < pagesize; ++i)
  15008. if (*(data + i) != *(data3 + i))
  15009. return 14;
  15010. close (fd);
  15011. return 0;
  15012. }
  15013. _ACEOF
  15014. if ac_fn_c_try_run "$LINENO"; then :
  15015. ac_cv_func_mmap_fixed_mapped=yes
  15016. else
  15017. ac_cv_func_mmap_fixed_mapped=no
  15018. fi
  15019. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15020. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15021. fi
  15022. fi
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15024. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15025. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15026. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15027. fi
  15028. rm -f conftest.mmap conftest.txt
  15029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  15030. $as_echo_n "checking return type of signal handlers... " >&6; }
  15031. if ${ac_cv_type_signal+:} false; then :
  15032. $as_echo_n "(cached) " >&6
  15033. else
  15034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15035. /* end confdefs.h. */
  15036. #include <sys/types.h>
  15037. #include <signal.h>
  15038. int
  15039. main ()
  15040. {
  15041. return *(signal (0, 0)) (0) == 1;
  15042. ;
  15043. return 0;
  15044. }
  15045. _ACEOF
  15046. if ac_fn_c_try_compile "$LINENO"; then :
  15047. ac_cv_type_signal=int
  15048. else
  15049. ac_cv_type_signal=void
  15050. fi
  15051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15052. fi
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  15054. $as_echo "$ac_cv_type_signal" >&6; }
  15055. cat >>confdefs.h <<_ACEOF
  15056. #define RETSIGTYPE $ac_cv_type_signal
  15057. _ACEOF
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  15059. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  15060. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  15061. $as_echo_n "(cached) " >&6
  15062. else
  15063. if test "$cross_compiling" = yes; then :
  15064. ac_cv_func_stat_empty_string_bug=yes
  15065. else
  15066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15067. /* end confdefs.h. */
  15068. $ac_includes_default
  15069. int
  15070. main ()
  15071. {
  15072. struct stat sbuf;
  15073. return stat ("", &sbuf) == 0;
  15074. ;
  15075. return 0;
  15076. }
  15077. _ACEOF
  15078. if ac_fn_c_try_run "$LINENO"; then :
  15079. ac_cv_func_stat_empty_string_bug=no
  15080. else
  15081. ac_cv_func_stat_empty_string_bug=yes
  15082. fi
  15083. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15084. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15085. fi
  15086. fi
  15087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15088. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15089. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15090. case " $LIBOBJS " in
  15091. *" stat.$ac_objext "* ) ;;
  15092. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15093. ;;
  15094. esac
  15095. cat >>confdefs.h <<_ACEOF
  15096. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15097. _ACEOF
  15098. fi
  15099. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15100. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15101. ac_have_decl=1
  15102. else
  15103. ac_have_decl=0
  15104. fi
  15105. cat >>confdefs.h <<_ACEOF
  15106. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15107. _ACEOF
  15108. for ac_func in strerror_r
  15109. do :
  15110. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15111. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15112. cat >>confdefs.h <<_ACEOF
  15113. #define HAVE_STRERROR_R 1
  15114. _ACEOF
  15115. fi
  15116. done
  15117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15118. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15119. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15120. $as_echo_n "(cached) " >&6
  15121. else
  15122. ac_cv_func_strerror_r_char_p=no
  15123. if test $ac_cv_have_decl_strerror_r = yes; then
  15124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15125. /* end confdefs.h. */
  15126. $ac_includes_default
  15127. int
  15128. main ()
  15129. {
  15130. char buf[100];
  15131. char x = *strerror_r (0, buf, sizeof buf);
  15132. char *p = strerror_r (0, buf, sizeof buf);
  15133. return !p || x;
  15134. ;
  15135. return 0;
  15136. }
  15137. _ACEOF
  15138. if ac_fn_c_try_compile "$LINENO"; then :
  15139. ac_cv_func_strerror_r_char_p=yes
  15140. fi
  15141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15142. else
  15143. # strerror_r is not declared. Choose between
  15144. # systems that have relatively inaccessible declarations for the
  15145. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15146. # former has a strerror_r that returns char*, while the latter
  15147. # has a strerror_r that returns `int'.
  15148. # This test should segfault on the DEC system.
  15149. if test "$cross_compiling" = yes; then :
  15150. :
  15151. else
  15152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15153. /* end confdefs.h. */
  15154. $ac_includes_default
  15155. extern char *strerror_r ();
  15156. int
  15157. main ()
  15158. {
  15159. char buf[100];
  15160. char x = *strerror_r (0, buf, sizeof buf);
  15161. return ! isalpha (x);
  15162. ;
  15163. return 0;
  15164. }
  15165. _ACEOF
  15166. if ac_fn_c_try_run "$LINENO"; then :
  15167. ac_cv_func_strerror_r_char_p=yes
  15168. fi
  15169. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15170. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15171. fi
  15172. fi
  15173. fi
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15175. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15176. if test $ac_cv_func_strerror_r_char_p = yes; then
  15177. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15178. fi
  15179. for ac_func in strftime
  15180. do :
  15181. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15182. if test "x$ac_cv_func_strftime" = xyes; then :
  15183. cat >>confdefs.h <<_ACEOF
  15184. #define HAVE_STRFTIME 1
  15185. _ACEOF
  15186. else
  15187. # strftime is in -lintl on SCO UNIX.
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15189. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15190. if ${ac_cv_lib_intl_strftime+:} false; then :
  15191. $as_echo_n "(cached) " >&6
  15192. else
  15193. ac_check_lib_save_LIBS=$LIBS
  15194. LIBS="-lintl $LIBS"
  15195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15196. /* end confdefs.h. */
  15197. /* Override any GCC internal prototype to avoid an error.
  15198. Use char because int might match the return type of a GCC
  15199. builtin and then its argument prototype would still apply. */
  15200. #ifdef __cplusplus
  15201. extern "C"
  15202. #endif
  15203. char strftime ();
  15204. int
  15205. main ()
  15206. {
  15207. return strftime ();
  15208. ;
  15209. return 0;
  15210. }
  15211. _ACEOF
  15212. if ac_fn_c_try_link "$LINENO"; then :
  15213. ac_cv_lib_intl_strftime=yes
  15214. else
  15215. ac_cv_lib_intl_strftime=no
  15216. fi
  15217. rm -f core conftest.err conftest.$ac_objext \
  15218. conftest$ac_exeext conftest.$ac_ext
  15219. LIBS=$ac_check_lib_save_LIBS
  15220. fi
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15222. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15223. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15224. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15225. LIBS="-lintl $LIBS"
  15226. fi
  15227. fi
  15228. done
  15229. for ac_func in vprintf
  15230. do :
  15231. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15232. if test "x$ac_cv_func_vprintf" = xyes; then :
  15233. cat >>confdefs.h <<_ACEOF
  15234. #define HAVE_VPRINTF 1
  15235. _ACEOF
  15236. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15237. if test "x$ac_cv_func__doprnt" = xyes; then :
  15238. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15239. fi
  15240. fi
  15241. done
  15242. for ac_func in clock_gettime endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir setrlimit socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset
  15243. do :
  15244. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15245. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15246. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15247. cat >>confdefs.h <<_ACEOF
  15248. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15249. _ACEOF
  15250. fi
  15251. done
  15252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15253. $as_echo_n "checking for --enable-debug... " >&6; }
  15254. # Check whether --enable-debug was given.
  15255. if test "${enable_debug+set}" = set; then :
  15256. enableval=$enable_debug;
  15257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15258. $as_echo "yes" >&6; }
  15259. debug_defs="-g3 -DDEBUG -DMCC_DEBUG -O0"
  15260. else
  15261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15262. $as_echo "no" >&6; }
  15263. debug_defs=""
  15264. fi
  15265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-asan" >&5
  15266. $as_echo_n "checking for --enable-asan... " >&6; }
  15267. # Check whether --enable-asan was given.
  15268. if test "${enable_asan+set}" = set; then :
  15269. enableval=$enable_asan;
  15270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15271. $as_echo "yes" >&6; }
  15272. asan_defs="-fsanitize=address -fno-omit-frame-pointer"
  15273. else
  15274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15275. $as_echo "no" >&6; }
  15276. asan_defs=""
  15277. fi
  15278. if test "$enable_asan" = "yes"; then
  15279. enable_asan_TRUE=
  15280. enable_asan_FALSE='#'
  15281. else
  15282. enable_asan_TRUE='#'
  15283. enable_asan_FALSE=
  15284. fi
  15285. if test -f /usr/lib/rpm/redhat/redhat-hardened-cc1; then
  15286. RPM_HARDEND_CC_TRUE=
  15287. RPM_HARDEND_CC_FALSE='#'
  15288. else
  15289. RPM_HARDEND_CC_TRUE='#'
  15290. RPM_HARDEND_CC_FALSE=
  15291. fi
  15292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-gcc-security" >&5
  15293. $as_echo_n "checking for --enable-gcc-security... " >&6; }
  15294. # Check whether --enable-gcc-security was given.
  15295. if test "${enable_gcc_security+set}" = set; then :
  15296. enableval=$enable_gcc_security;
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15298. $as_echo "yes" >&6; }
  15299. if test -z "$RPM_HARDEND_CC_TRUE"; then :
  15300. gccsec_defs="-Wall -Wp,-D_FORITY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 "
  15301. else
  15302. gccsec_defs="-Wall -Wp,-D_FORITY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security"
  15303. fi
  15304. else
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15306. $as_echo "no" >&6; }
  15307. gccsec_defs=""
  15308. fi
  15309. # Used for legacy style packaging where we bundle all of the dependencies.
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15311. $as_echo_n "checking for --enable-bundle... " >&6; }
  15312. # Check whether --enable-bundle was given.
  15313. if test "${enable_bundle+set}" = set; then :
  15314. enableval=$enable_bundle;
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15316. $as_echo "yes" >&6; }
  15317. bundle="1";
  15318. else
  15319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15320. $as_echo "no" >&6; }
  15321. bundle="";
  15322. fi
  15323. if test "$bundle" = "1"; then
  15324. BUNDLE_TRUE=
  15325. BUNDLE_FALSE='#'
  15326. else
  15327. BUNDLE_TRUE='#'
  15328. BUNDLE_FALSE=
  15329. fi
  15330. # these enables are for optional or experimental features
  15331. if test -z "$enable_pam_passthru" ; then
  15332. enable_pam_passthru=yes # if not set on cmdline, set default
  15333. fi
  15334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15335. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15336. # Check whether --enable-pam-passthru was given.
  15337. if test "${enable_pam_passthru+set}" = set; then :
  15338. enableval=$enable_pam_passthru;
  15339. fi
  15340. if test "$enable_pam_passthru" = yes ; then
  15341. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15342. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15343. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15344. else
  15345. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15346. fi
  15347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15348. $as_echo "yes" >&6; }
  15349. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15350. else
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15352. $as_echo "no" >&6; }
  15353. fi
  15354. if test "$enable_pam_passthru" = "yes"; then
  15355. enable_pam_passthru_TRUE=
  15356. enable_pam_passthru_FALSE='#'
  15357. else
  15358. enable_pam_passthru_TRUE='#'
  15359. enable_pam_passthru_FALSE=
  15360. fi
  15361. if test -z "$enable_dna" ; then
  15362. enable_dna=yes # if not set on cmdline, set default
  15363. fi
  15364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15365. $as_echo_n "checking for --enable-dna... " >&6; }
  15366. # Check whether --enable-dna was given.
  15367. if test "${enable_dna+set}" = set; then :
  15368. enableval=$enable_dna;
  15369. fi
  15370. if test "$enable_dna" = yes ; then
  15371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15372. $as_echo "yes" >&6; }
  15373. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15374. else
  15375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15376. $as_echo "no" >&6; }
  15377. fi
  15378. if test "$enable_dna" = "yes"; then
  15379. enable_dna_TRUE=
  15380. enable_dna_FALSE='#'
  15381. else
  15382. enable_dna_TRUE='#'
  15383. enable_dna_FALSE=
  15384. fi
  15385. if test -z "$enable_ldapi" ; then
  15386. enable_ldapi=yes # if not set on cmdline, set default
  15387. fi
  15388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15389. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15390. # Check whether --enable-ldapi was given.
  15391. if test "${enable_ldapi+set}" = set; then :
  15392. enableval=$enable_ldapi;
  15393. fi
  15394. if test "$enable_ldapi" = yes ; then
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15396. $as_echo "yes" >&6; }
  15397. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15398. else
  15399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15400. $as_echo "no" >&6; }
  15401. fi
  15402. if test "$enable_ldapi" = "yes"; then
  15403. enable_ldapi_TRUE=
  15404. enable_ldapi_FALSE='#'
  15405. else
  15406. enable_ldapi_TRUE='#'
  15407. enable_ldapi_FALSE=
  15408. fi
  15409. if test -z "$enable_autobind" ; then
  15410. enable_autobind=no # if not set on cmdline, set default
  15411. fi
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15413. $as_echo_n "checking for --enable-autobind... " >&6; }
  15414. # Check whether --enable-autobind was given.
  15415. if test "${enable_autobind+set}" = set; then :
  15416. enableval=$enable_autobind;
  15417. fi
  15418. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15420. $as_echo "yes" >&6; }
  15421. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15422. else
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15424. $as_echo "no" >&6; }
  15425. fi
  15426. if test "$enable_autobind" = "yes"; then
  15427. enable_autobind_TRUE=
  15428. enable_autobind_FALSE='#'
  15429. else
  15430. enable_autobind_TRUE='#'
  15431. enable_autobind_FALSE=
  15432. fi
  15433. if test -z "$enable_auto_dn_suffix" ; then
  15434. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15435. fi
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15437. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15438. # Check whether --enable-auto-dn-suffix was given.
  15439. if test "${enable_auto_dn_suffix+set}" = set; then :
  15440. enableval=$enable_auto_dn_suffix;
  15441. fi
  15442. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15444. $as_echo "yes" >&6; }
  15445. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15446. else
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15448. $as_echo "no" >&6; }
  15449. fi
  15450. if test "$enable_auto_dn_suffix" = "yes"; then
  15451. enable_auto_dn_suffix_TRUE=
  15452. enable_auto_dn_suffix_FALSE='#'
  15453. else
  15454. enable_auto_dn_suffix_TRUE='#'
  15455. enable_auto_dn_suffix_FALSE=
  15456. fi
  15457. if test -z "$enable_bitwise" ; then
  15458. enable_bitwise=yes # if not set on cmdline, set default
  15459. fi
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15461. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15462. # Check whether --enable-bitwise was given.
  15463. if test "${enable_bitwise+set}" = set; then :
  15464. enableval=$enable_bitwise;
  15465. fi
  15466. if test "$enable_bitwise" = yes ; then
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15468. $as_echo "yes" >&6; }
  15469. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15470. else
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15472. $as_echo "no" >&6; }
  15473. fi
  15474. if test "$enable_bitwise" = "yes"; then
  15475. enable_bitwise_TRUE=
  15476. enable_bitwise_FALSE='#'
  15477. else
  15478. enable_bitwise_TRUE='#'
  15479. enable_bitwise_FALSE=
  15480. fi
  15481. if test -z "$enable_presence" ; then
  15482. enable_presence=no # if not set on cmdline, set default
  15483. fi
  15484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15485. $as_echo_n "checking for --enable-presence... " >&6; }
  15486. # Check whether --enable-presence was given.
  15487. if test "${enable_presence+set}" = set; then :
  15488. enableval=$enable_presence;
  15489. fi
  15490. if test "$enable_presence" = yes ; then
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15492. $as_echo "yes" >&6; }
  15493. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15494. else
  15495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15496. $as_echo "no" >&6; }
  15497. fi
  15498. if test "$enable_presence" = "yes"; then
  15499. enable_presence_TRUE=
  15500. enable_presence_FALSE='#'
  15501. else
  15502. enable_presence_TRUE='#'
  15503. enable_presence_FALSE=
  15504. fi
  15505. if test -z "$enable_acctpolicy" ; then
  15506. enable_acctpolicy=yes # if not set on cmdline, set default
  15507. fi
  15508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15509. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15510. # Check whether --enable-acctpolicy was given.
  15511. if test "${enable_acctpolicy+set}" = set; then :
  15512. enableval=$enable_acctpolicy;
  15513. fi
  15514. if test "$enable_acctpolicy" = yes ; then
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15516. $as_echo "yes" >&6; }
  15517. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15518. else
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15520. $as_echo "no" >&6; }
  15521. fi
  15522. if test "$enable_acctpolicy" = "yes"; then
  15523. enable_acctpolicy_TRUE=
  15524. enable_acctpolicy_FALSE='#'
  15525. else
  15526. enable_acctpolicy_TRUE='#'
  15527. enable_acctpolicy_FALSE=
  15528. fi
  15529. if test -z "$enable_posix_winsync" ; then
  15530. enable_posix_winsync=yes # if not set on cmdline, set default
  15531. fi
  15532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15533. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15534. # Check whether --enable-posix_winsync was given.
  15535. if test "${enable_posix_winsync+set}" = set; then :
  15536. enableval=$enable_posix_winsync;
  15537. fi
  15538. if test "$enable_posix_winsync" = yes ; then
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15540. $as_echo "yes" >&6; }
  15541. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15542. else
  15543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15544. $as_echo "no" >&6; }
  15545. fi
  15546. if test "$enable_posix_winsync" = "yes"; then
  15547. enable_posix_winsync_TRUE=
  15548. enable_posix_winsync_FALSE='#'
  15549. else
  15550. enable_posix_winsync_TRUE='#'
  15551. enable_posix_winsync_FALSE=
  15552. fi
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-nunc-stans" >&5
  15554. $as_echo_n "checking for --enable-nunc-stans... " >&6; }
  15555. # Check whether --enable-nunc_stans was given.
  15556. if test "${enable_nunc_stans+set}" = set; then :
  15557. enableval=$enable_nunc_stans;
  15558. fi
  15559. if test "$enable_nunc_stans" = yes ; then
  15560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15561. $as_echo "yes" >&6; }
  15562. $as_echo "#define ENABLE_NUNC_STANS 1" >>confdefs.h
  15563. else
  15564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15565. $as_echo "no" >&6; }
  15566. fi
  15567. if test "$enable_nunc_stans" = "yes"; then
  15568. enable_nunc_stans_TRUE=
  15569. enable_nunc_stans_FALSE='#'
  15570. else
  15571. enable_nunc_stans_TRUE='#'
  15572. enable_nunc_stans_FALSE=
  15573. fi
  15574. # the default prefix - override with --prefix or --with-fhs
  15575. # BEGIN COPYRIGHT BLOCK
  15576. # Copyright (C) 2006 Red Hat, Inc.
  15577. # All rights reserved.
  15578. #
  15579. # License: GPL (version 3 or any later version).
  15580. # See LICENSE for details.
  15581. # END COPYRIGHT BLOCK
  15582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15583. $as_echo "$as_me: checking for FHS..." >&6;}
  15584. # check for --with-fhs
  15585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15586. $as_echo_n "checking for --with-fhs... " >&6; }
  15587. # Check whether --with-fhs was given.
  15588. if test "${with_fhs+set}" = set; then :
  15589. withval=$with_fhs;
  15590. with_fhs=yes
  15591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15592. $as_echo "yes" >&6; }
  15593. else
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15595. $as_echo "no" >&6; }
  15596. fi
  15597. if test "$with_fhs" = "yes"; then
  15598. $as_echo "#define IS_FHS 1" >>confdefs.h
  15599. fi
  15600. # check for --with-fhs-opt
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15602. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15603. # Check whether --with-fhs-opt was given.
  15604. if test "${with_fhs_opt+set}" = set; then :
  15605. withval=$with_fhs_opt;
  15606. with_fhs_opt=yes
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15608. $as_echo "yes" >&6; }
  15609. else
  15610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15611. $as_echo "no" >&6; }
  15612. fi
  15613. if test "$with_fhs_opt" = "yes"; then
  15614. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15615. fi
  15616. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15617. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15618. fi
  15619. localrundir='/run'
  15620. # installation paths - by default, we store everything
  15621. # under the prefix. The with-fhs option will use /usr,
  15622. # /etc, and /var. The with-fhs-opt option will use the
  15623. # prefix, but it's sysconfdir and localstatedir will be
  15624. # /etc/opt, and /var/opt.
  15625. if test "$with_fhs_opt" = "yes"; then
  15626. # Override sysconfdir and localstatedir if FHS optional
  15627. # package was requested.
  15628. sysconfdir='/etc/opt'
  15629. localstatedir='/var/opt'
  15630. localrundir='/var/opt/run'
  15631. # relative to datadir
  15632. sampledatadir=/data
  15633. # relative to datadir
  15634. scripttemplatedir=/script-templates
  15635. # relative to datadir
  15636. updatedir=/updates
  15637. # relative to libdir
  15638. serverdir=
  15639. # relative to includedir
  15640. serverincdir=
  15641. # relative to libdir
  15642. serverplugindir=/plugins
  15643. # relative to datadir
  15644. infdir=/inf
  15645. # relative to datadir
  15646. mibdir=/mibs
  15647. # location of property/resource files, relative to datadir
  15648. propertydir=/properties
  15649. # relative to libdir
  15650. perldir=/perl
  15651. # relative to libdir
  15652. pythondir=/python
  15653. else
  15654. if test "$with_fhs" = "yes"; then
  15655. ac_default_prefix=/usr
  15656. prefix=$ac_default_prefix
  15657. exec_prefix=$prefix
  15658. sysconfdir='/etc'
  15659. localstatedir='/var'
  15660. localrundir='/run'
  15661. fi
  15662. # relative to datadir
  15663. sampledatadir=/$PACKAGE_NAME/data
  15664. # relative to datadir
  15665. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15666. # relative to datadir
  15667. updatedir=/$PACKAGE_NAME/updates
  15668. # relative to libdir
  15669. serverdir=/$PACKAGE_NAME
  15670. # relative to includedir
  15671. serverincdir=/$PACKAGE_NAME
  15672. # relative to libdir
  15673. serverplugindir=/$PACKAGE_NAME/plugins
  15674. # relative to datadir
  15675. infdir=/$PACKAGE_NAME/inf
  15676. # relative to datadir
  15677. mibdir=/$PACKAGE_NAME/mibs
  15678. # location of property/resource files, relative to datadir
  15679. propertydir=/$PACKAGE_NAME/properties
  15680. # relative to libdir
  15681. perldir=/$PACKAGE_NAME/perl
  15682. # relative to libdir
  15683. pythondir=/$PACKAGE_NAME/python
  15684. fi
  15685. # if mandir is the default value, override it
  15686. # otherwise, the user must have set it - just use it
  15687. if test X"$mandir" = X'${prefix}/man' ; then
  15688. mandir='$(datadir)/man'
  15689. fi
  15690. # Shared paths for all layouts
  15691. # relative to sysconfdir
  15692. configdir=/$PACKAGE_NAME/config
  15693. # relative to sysconfdir
  15694. schemadir=/$PACKAGE_NAME/schema
  15695. # default user, group
  15696. defaultuser=dirsrv
  15697. defaultgroup=dirsrv
  15698. if test -z "$with_tmpfiles_d" ; then
  15699. if test -d $sysconfdir/tmpfiles.d ; then
  15700. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15701. fi
  15702. fi
  15703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15704. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15705. # Check whether --with-tmpfiles-d was given.
  15706. if test "${with_tmpfiles_d+set}" = set; then :
  15707. withval=$with_tmpfiles_d;
  15708. fi
  15709. if test "$with_tmpfiles_d" = yes ; then
  15710. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15711. elif test "$with_tmpfiles_d" = no ; then
  15712. with_tmpfiles_d=
  15713. else
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15715. $as_echo "$with_tmpfiles_d" >&6; }
  15716. fi
  15717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15718. $as_echo_n "checking for --with-perldir... " >&6; }
  15719. # Check whether --with-perldir was given.
  15720. if test "${with_perldir+set}" = set; then :
  15721. withval=$with_perldir;
  15722. fi
  15723. if test -n "$with_perldir"; then
  15724. if test "$with_perldir" = yes ; then
  15725. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15726. elif test "$with_perldir" = no ; then
  15727. with_perldir=
  15728. else
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15730. $as_echo "$with_perldir" >&6; }
  15731. fi
  15732. else
  15733. with_perldir=
  15734. fi
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pythonexec" >&5
  15736. $as_echo_n "checking for --with-pythonexec... " >&6; }
  15737. # Check whether --with-pythonexec was given.
  15738. if test "${with_pythonexec+set}" = set; then :
  15739. withval=$with_pythonexec;
  15740. fi
  15741. if test -n "$with_pythonexec"; then
  15742. if test "$with_pythonexec" = yes ; then
  15743. as_fn_error $? "You must specify --with-pythonexec=/full/path/to/python" "$LINENO" 5
  15744. elif test "$with_pythonexec" = no ; then
  15745. with_pythonexec=/usr/bin/python2
  15746. else
  15747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pythonexec" >&5
  15748. $as_echo "$with_pythonexec" >&6; }
  15749. fi
  15750. else
  15751. with_pythonexec=/usr/bin/python2
  15752. fi
  15753. # check for --with-instconfigdir
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15755. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15756. # Check whether --with-instconfigdir was given.
  15757. if test "${with_instconfigdir+set}" = set; then :
  15758. withval=$with_instconfigdir;
  15759. if test $withval = yes ; then
  15760. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15761. fi
  15762. instconfigdir="$withval"
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15764. $as_echo "$withval" >&6; }
  15765. else
  15766. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15768. $as_echo "no" >&6; }
  15769. fi
  15770. # WINNT should be true if building on Windows system not using
  15771. # cygnus, mingw, or the like and using cmd.exe as the shell
  15772. if false; then
  15773. WINNT_TRUE=
  15774. WINNT_FALSE='#'
  15775. else
  15776. WINNT_TRUE='#'
  15777. WINNT_FALSE=
  15778. fi
  15779. # Deal with platform dependent defines
  15780. # initdir is the location for the SysV init scripts - very heavily platform
  15781. # dependent and not specified in fhs or lsb
  15782. # and not used if systemd is used
  15783. initdir='$(sysconfdir)/rc.d'
  15784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15785. $as_echo_n "checking for --with-initddir... " >&6; }
  15786. # Check whether --with-initddir was given.
  15787. if test "${with_initddir+set}" = set; then :
  15788. withval=$with_initddir;
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15790. $as_echo "$withval" >&6; }
  15791. else
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15793. $as_echo "no" >&6; }
  15794. fi
  15795. if test -n "$with_initddir" -a "$with_initddir" != "no"; then
  15796. INITDDIR_TRUE=
  15797. INITDDIR_FALSE='#'
  15798. else
  15799. INITDDIR_TRUE='#'
  15800. INITDDIR_FALSE=
  15801. fi
  15802. # on most platforms, we will just use perl from PATH
  15803. # On some platforms, we cannot. Why not just use any old
  15804. # perl? Because of perldap. We use a perldap that is
  15805. # compiled to either 32bit or 64bit, so we must use a native
  15806. # perl binary compiled with the same bitsize. On Solaris
  15807. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15808. # those with our 64 bit compiled product.
  15809. if test -n "$with_perldir"; then
  15810. perlexec="$with_perldir/perl"
  15811. else
  15812. perlexec='/usr/bin/env perl'
  15813. fi
  15814. # This will let us change over the python version easier in the future.
  15815. if test -n "$with_pythonexec"; then
  15816. pythonexec="$with_pythonexec"
  15817. else
  15818. pythonexec='/usr/bin/env python2'
  15819. fi
  15820. # we use stty in perl scripts to disable password echo
  15821. # this doesn't work unless the full absolute path of the
  15822. # stty command is used e.g. system("stty -echo") does not
  15823. # work but system("/bin/stty -echo") does work
  15824. # since the path of stty may not be the same on all
  15825. # platforms, we set the default here to /bin/stty and
  15826. # allow that value to be overridden in the platform
  15827. # specific section below
  15828. sttyexec=/bin/stty
  15829. case $host in
  15830. *-*-linux*)
  15831. $as_echo "#define Linux 1" >>confdefs.h
  15832. $as_echo "#define LINUX 1" >>confdefs.h
  15833. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15834. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15835. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15836. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15837. platform="linux"
  15838. initdir='$(sysconfdir)/rc.d/init.d'
  15839. # do arch specific linux stuff here
  15840. case $host in
  15841. i*86-*-linux*)
  15842. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15843. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15844. ;;
  15845. x86_64-*-linux*)
  15846. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15847. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15848. ;;
  15849. aarch64-*-linux*)
  15850. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15851. ;;
  15852. arm*-linux*)
  15853. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15854. ;;
  15855. esac
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15857. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15859. /* end confdefs.h. */
  15860. int
  15861. main ()
  15862. {
  15863. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15864. ;
  15865. return 0;
  15866. }
  15867. _ACEOF
  15868. if ac_fn_c_try_link "$LINENO"; then :
  15869. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15871. $as_echo "yes" >&6; }
  15872. else
  15873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15874. $as_echo "no" >&6; }
  15875. fi
  15876. rm -f core conftest.err conftest.$ac_objext \
  15877. conftest$ac_exeext conftest.$ac_ext
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15879. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15881. /* end confdefs.h. */
  15882. int
  15883. main ()
  15884. {
  15885. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15886. ;
  15887. return 0;
  15888. }
  15889. _ACEOF
  15890. if ac_fn_c_try_link "$LINENO"; then :
  15891. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15893. $as_echo "yes" >&6; }
  15894. else
  15895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15896. $as_echo "no" >&6; }
  15897. fi
  15898. rm -f core conftest.err conftest.$ac_objext \
  15899. conftest$ac_exeext conftest.$ac_ext
  15900. # some programs use the native thread library directly
  15901. THREADLIB=-lpthread
  15902. THREADLIB=$THREADLIB
  15903. LIBCRYPT=-lcrypt
  15904. LIBCRYPT=$LIBCRYPT
  15905. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15906. ;;
  15907. ia64-hp-hpux*)
  15908. $as_echo "#define hpux 1" >>confdefs.h
  15909. $as_echo "#define HPUX 1" >>confdefs.h
  15910. $as_echo "#define HPUX11 1" >>confdefs.h
  15911. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15912. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15913. $as_echo "#define OS_hpux 1" >>confdefs.h
  15914. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15915. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15916. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15917. # assume 64 bit
  15918. perlexec='/opt/perl_64/bin/perl'
  15919. platform="hpux"
  15920. initconfigdir="/$PACKAGE_NAME/config"
  15921. # HPUX doesn't use /etc for this
  15922. initdir=/init.d
  15923. ;;
  15924. hppa*-hp-hpux*)
  15925. $as_echo "#define hpux 1" >>confdefs.h
  15926. $as_echo "#define HPUX 1" >>confdefs.h
  15927. $as_echo "#define HPUX11 1" >>confdefs.h
  15928. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15929. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15930. $as_echo "#define OS_hpux 1" >>confdefs.h
  15931. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15932. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15933. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15934. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15935. # assume 64 bit
  15936. initconfigdir="/$PACKAGE_NAME/config"
  15937. perlexec='/opt/perl_64/bin/perl'
  15938. platform="hpux"
  15939. # HPUX doesn't use /etc for this
  15940. initdir=/init.d
  15941. ;;
  15942. *-*-solaris*)
  15943. $as_echo "#define SVR4 1" >>confdefs.h
  15944. $as_echo "#define __svr4 1" >>confdefs.h
  15945. $as_echo "#define __svr4__ 1" >>confdefs.h
  15946. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15947. $as_echo "#define SOLARIS 1" >>confdefs.h
  15948. $as_echo "#define OS_solaris 1" >>confdefs.h
  15949. $as_echo "#define sunos5 1" >>confdefs.h
  15950. $as_echo "#define OSVERSION 509" >>confdefs.h
  15951. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15952. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15953. LIBSOCKET=-lsocket
  15954. LIBSOCKET=$LIBSOCKET
  15955. LIBNSL=-lnsl
  15956. LIBNSL=$LIBNSL
  15957. LIBDL=-ldl
  15958. LIBDL=$LIBDL
  15959. LIBCSTD=-lCstd
  15960. LIBCSTD=$LIBCSTD
  15961. LIBCRUN=-lCrun
  15962. LIBCRUN=$LIBCRUN
  15963. platform="solaris"
  15964. initdir='$(sysconfdir)/init.d'
  15965. case $host in
  15966. i?86-*-solaris2.1[0-9]*)
  15967. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  15968. ;;
  15969. sparc-*-solaris*)
  15970. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15971. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  15972. TARGET='SPARC'
  15973. ;;
  15974. esac
  15975. ;;
  15976. *)
  15977. platform=""
  15978. ;;
  15979. esac
  15980. # cmd line overrides default setting above
  15981. if test -n "$with_initddir" ; then
  15982. initdir="$with_initddir"
  15983. fi
  15984. # sysv init scripts not used when systemd is used
  15985. # set default initconfigdir if not already set
  15986. # value will be set so as to be relative to $(sysconfdir)
  15987. if test -z "$initconfigdir" ; then
  15988. if test -d /etc/sysconfig ; then
  15989. initconfigdir=/sysconfig
  15990. elif test -d /etc/default ; then
  15991. initconfigdir=/default
  15992. else
  15993. initconfigdir="/$PACKAGE_NAME/config"
  15994. fi
  15995. fi
  15996. if test "$platform" = "hpux"; then
  15997. HPUX_TRUE=
  15998. HPUX_FALSE='#'
  15999. else
  16000. HPUX_TRUE='#'
  16001. HPUX_FALSE=
  16002. fi
  16003. if test "$platform" = "solaris"; then
  16004. SOLARIS_TRUE=
  16005. SOLARIS_FALSE='#'
  16006. else
  16007. SOLARIS_TRUE='#'
  16008. SOLARIS_FALSE=
  16009. fi
  16010. # Check for library dependencies
  16011. # BEGIN COPYRIGHT BLOCK
  16012. # Copyright (C) 2007 Red Hat, Inc.
  16013. # All rights reserved.
  16014. #
  16015. # License: GPL (version 3 or any later version).
  16016. # See LICENSE for details.
  16017. # END COPYRIGHT BLOCK
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16019. $as_echo "$as_me: checking for NSPR..." >&6;}
  16020. # check for --with-nspr
  16021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16022. $as_echo_n "checking for --with-nspr... " >&6; }
  16023. # Check whether --with-nspr was given.
  16024. if test "${with_nspr+set}" = set; then :
  16025. withval=$with_nspr;
  16026. if test "$withval" = "yes"
  16027. then
  16028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16029. $as_echo "yes" >&6; }
  16030. elif test "$withval" = "no"
  16031. then
  16032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16033. $as_echo "no" >&6; }
  16034. as_fn_error $? "NSPR is required." "$LINENO" 5
  16035. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16036. then
  16037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16038. $as_echo "using $withval" >&6; }
  16039. NSPRDIR=$withval
  16040. nspr_inc="-I$NSPRDIR/include"
  16041. nspr_lib="-L$NSPRDIR/lib"
  16042. nspr_libdir="$NSPRDIR/lib"
  16043. else
  16044. echo
  16045. as_fn_error $? "$withval not found" "$LINENO" 5
  16046. fi
  16047. else
  16048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16049. $as_echo "yes" >&6; }
  16050. fi
  16051. # check for --with-nspr-inc
  16052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16053. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16054. # Check whether --with-nspr-inc was given.
  16055. if test "${with_nspr_inc+set}" = set; then :
  16056. withval=$with_nspr_inc;
  16057. if test -e "$withval"/nspr.h
  16058. then
  16059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16060. $as_echo "using $withval" >&6; }
  16061. nspr_inc="-I$withval"
  16062. else
  16063. echo
  16064. as_fn_error $? "$withval not found" "$LINENO" 5
  16065. fi
  16066. else
  16067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16068. $as_echo "no" >&6; }
  16069. fi
  16070. # check for --with-nspr-lib
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16072. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16073. # Check whether --with-nspr-lib was given.
  16074. if test "${with_nspr_lib+set}" = set; then :
  16075. withval=$with_nspr_lib;
  16076. if test -d "$withval"
  16077. then
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16079. $as_echo "using $withval" >&6; }
  16080. nspr_lib="-L$withval"
  16081. nspr_libdir="$withval"
  16082. else
  16083. echo
  16084. as_fn_error $? "$withval not found" "$LINENO" 5
  16085. fi
  16086. else
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16088. $as_echo "no" >&6; }
  16089. fi
  16090. # if NSPR is not found yet, try pkg-config
  16091. # last resort
  16092. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16093. # Extract the first word of "pkg-config", so it can be a program name with args.
  16094. set dummy pkg-config; ac_word=$2
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16096. $as_echo_n "checking for $ac_word... " >&6; }
  16097. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16098. $as_echo_n "(cached) " >&6
  16099. else
  16100. case $PKG_CONFIG in
  16101. [\\/]* | ?:[\\/]*)
  16102. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16103. ;;
  16104. *)
  16105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16106. for as_dir in $PATH
  16107. do
  16108. IFS=$as_save_IFS
  16109. test -z "$as_dir" && as_dir=.
  16110. for ac_exec_ext in '' $ac_executable_extensions; do
  16111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16112. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16114. break 2
  16115. fi
  16116. done
  16117. done
  16118. IFS=$as_save_IFS
  16119. ;;
  16120. esac
  16121. fi
  16122. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16123. if test -n "$PKG_CONFIG"; then
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16125. $as_echo "$PKG_CONFIG" >&6; }
  16126. else
  16127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16128. $as_echo "no" >&6; }
  16129. fi
  16130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16131. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16132. if test -n "$PKG_CONFIG"; then
  16133. if $PKG_CONFIG --exists nspr; then
  16134. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16135. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16136. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16138. $as_echo "using system NSPR" >&6; }
  16139. elif $PKG_CONFIG --exists dirsec-nspr; then
  16140. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16141. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16142. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16144. $as_echo "using system dirsec NSPR" >&6; }
  16145. else
  16146. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16147. fi
  16148. fi
  16149. fi
  16150. # BEGIN COPYRIGHT BLOCK
  16151. # Copyright (C) 2007 Red Hat, Inc.
  16152. # All rights reserved.
  16153. #
  16154. # License: GPL (version 3 or any later version).
  16155. # See LICENSE for details.
  16156. # END COPYRIGHT BLOCK
  16157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16158. $as_echo "$as_me: checking for NSS..." >&6;}
  16159. # check for --with-nss
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16161. $as_echo_n "checking for --with-nss... " >&6; }
  16162. # Check whether --with-nss was given.
  16163. if test "${with_nss+set}" = set; then :
  16164. withval=$with_nss;
  16165. if test "$withval" = "yes"
  16166. then
  16167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16168. $as_echo "yes" >&6; }
  16169. elif test "$withval" = "no"
  16170. then
  16171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16172. $as_echo "no" >&6; }
  16173. as_fn_error $? "NSS is required." "$LINENO" 5
  16174. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16175. then
  16176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16177. $as_echo "using $withval" >&6; }
  16178. NSSDIR=$withval
  16179. nss_inc="-I$NSSDIR/include"
  16180. nss_lib="-L$NSSDIR/lib"
  16181. nss_libdir="$NSSDIR/lib"
  16182. else
  16183. echo
  16184. as_fn_error $? "$withval not found" "$LINENO" 5
  16185. fi
  16186. else
  16187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16188. $as_echo "yes" >&6; }
  16189. fi
  16190. # check for --with-nss-inc
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16192. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16193. # Check whether --with-nss-inc was given.
  16194. if test "${with_nss_inc+set}" = set; then :
  16195. withval=$with_nss_inc;
  16196. if test -e "$withval"/nss.h
  16197. then
  16198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16199. $as_echo "using $withval" >&6; }
  16200. nss_inc="-I$withval"
  16201. else
  16202. echo
  16203. as_fn_error $? "$withval not found" "$LINENO" 5
  16204. fi
  16205. else
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16207. $as_echo "no" >&6; }
  16208. fi
  16209. # check for --with-nss-lib
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16211. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16212. # Check whether --with-nss-lib was given.
  16213. if test "${with_nss_lib+set}" = set; then :
  16214. withval=$with_nss_lib;
  16215. if test -d "$withval"
  16216. then
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16218. $as_echo "using $withval" >&6; }
  16219. nss_lib="-L$withval"
  16220. nss_libdir="$withval"
  16221. else
  16222. echo
  16223. as_fn_error $? "$withval not found" "$LINENO" 5
  16224. fi
  16225. else
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16227. $as_echo "no" >&6; }
  16228. fi
  16229. # if NSS is not found yet, try pkg-config
  16230. # last resort
  16231. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16232. # Extract the first word of "pkg-config", so it can be a program name with args.
  16233. set dummy pkg-config; ac_word=$2
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16235. $as_echo_n "checking for $ac_word... " >&6; }
  16236. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16237. $as_echo_n "(cached) " >&6
  16238. else
  16239. case $PKG_CONFIG in
  16240. [\\/]* | ?:[\\/]*)
  16241. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16242. ;;
  16243. *)
  16244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16245. for as_dir in $PATH
  16246. do
  16247. IFS=$as_save_IFS
  16248. test -z "$as_dir" && as_dir=.
  16249. for ac_exec_ext in '' $ac_executable_extensions; do
  16250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16251. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16253. break 2
  16254. fi
  16255. done
  16256. done
  16257. IFS=$as_save_IFS
  16258. ;;
  16259. esac
  16260. fi
  16261. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16262. if test -n "$PKG_CONFIG"; then
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16264. $as_echo "$PKG_CONFIG" >&6; }
  16265. else
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16267. $as_echo "no" >&6; }
  16268. fi
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16270. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16271. if test -n "$PKG_CONFIG"; then
  16272. if $PKG_CONFIG --exists nss; then
  16273. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16274. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16275. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16277. $as_echo "using system NSS" >&6; }
  16278. elif $PKG_CONFIG --exists dirsec-nss; then
  16279. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16280. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16281. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16283. $as_echo "using system dirsec NSS" >&6; }
  16284. else
  16285. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16286. fi
  16287. fi
  16288. fi
  16289. # BEGIN COPYRIGHT BLOCK
  16290. # Copyright (C) 2009 Red Hat, Inc.
  16291. # All rights reserved.
  16292. #
  16293. # License: GPL (version 3 or any later version).
  16294. # See LICENSE for details.
  16295. # END COPYRIGHT BLOCK
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16297. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16298. # check for --with-openldap
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16300. $as_echo_n "checking for --with-openldap... " >&6; }
  16301. # Check whether --with-openldap was given.
  16302. if test "${with_openldap+set}" = set; then :
  16303. withval=$with_openldap;
  16304. if test "$withval" = yes
  16305. then
  16306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16307. $as_echo "using system OpenLDAP" >&6; }
  16308. elif test "$withval" = no
  16309. then
  16310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16311. $as_echo "no" >&6; }
  16312. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16313. then
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16315. $as_echo "using $withval" >&6; }
  16316. OPENLDAPDIR=$withval
  16317. openldap_incdir="$OPENLDAPDIR/include"
  16318. openldap_inc="-I$openldap_incdir"
  16319. openldap_lib="-L$OPENLDAPDIR/lib"
  16320. openldap_libdir="$OPENLDAPDIR/lib"
  16321. openldap_bindir="$OPENLDAPDIR/bin"
  16322. with_openldap=yes
  16323. else
  16324. echo
  16325. as_fn_error $? "$withval not found" "$LINENO" 5
  16326. fi
  16327. else
  16328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16329. $as_echo "no" >&6; }
  16330. fi
  16331. # check for --with-openldap-inc
  16332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16333. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16334. # Check whether --with-openldap-inc was given.
  16335. if test "${with_openldap_inc+set}" = set; then :
  16336. withval=$with_openldap_inc;
  16337. if test -e "$withval"/ldap.h
  16338. then
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16340. $as_echo "using $withval" >&6; }
  16341. openldap_incdir="$withval"
  16342. openldap_inc="-I$withval"
  16343. with_openldap=yes
  16344. else
  16345. echo
  16346. as_fn_error $? "$withval not found" "$LINENO" 5
  16347. fi
  16348. else
  16349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16350. $as_echo "no" >&6; }
  16351. fi
  16352. # check for --with-openldap-lib
  16353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16354. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16355. # Check whether --with-openldap-lib was given.
  16356. if test "${with_openldap_lib+set}" = set; then :
  16357. withval=$with_openldap_lib;
  16358. if test -d "$withval"
  16359. then
  16360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16361. $as_echo "using $withval" >&6; }
  16362. openldap_lib="-L$withval"
  16363. openldap_libdir="$withval"
  16364. with_openldap=yes
  16365. else
  16366. echo
  16367. as_fn_error $? "$withval not found" "$LINENO" 5
  16368. fi
  16369. else
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16371. $as_echo "no" >&6; }
  16372. fi
  16373. # check for --with-openldap-bin
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16375. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16376. # Check whether --with-openldap-bin was given.
  16377. if test "${with_openldap_bin+set}" = set; then :
  16378. withval=$with_openldap_bin;
  16379. if test -d "$withval"
  16380. then
  16381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16382. $as_echo "using $withval" >&6; }
  16383. openldap_bindir="$withval"
  16384. with_openldap=yes
  16385. else
  16386. echo
  16387. as_fn_error $? "$withval not found" "$LINENO" 5
  16388. fi
  16389. else
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16391. $as_echo "no" >&6; }
  16392. fi
  16393. # if OPENLDAP is not found yet, try pkg-config
  16394. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16395. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16396. # Extract the first word of "pkg-config", so it can be a program name with args.
  16397. set dummy pkg-config; ac_word=$2
  16398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16399. $as_echo_n "checking for $ac_word... " >&6; }
  16400. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16401. $as_echo_n "(cached) " >&6
  16402. else
  16403. case $PKG_CONFIG in
  16404. [\\/]* | ?:[\\/]*)
  16405. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16406. ;;
  16407. *)
  16408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16409. for as_dir in $PATH
  16410. do
  16411. IFS=$as_save_IFS
  16412. test -z "$as_dir" && as_dir=.
  16413. for ac_exec_ext in '' $ac_executable_extensions; do
  16414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16415. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16417. break 2
  16418. fi
  16419. done
  16420. done
  16421. IFS=$as_save_IFS
  16422. ;;
  16423. esac
  16424. fi
  16425. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16426. if test -n "$PKG_CONFIG"; then
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16428. $as_echo "$PKG_CONFIG" >&6; }
  16429. else
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16431. $as_echo "no" >&6; }
  16432. fi
  16433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16434. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16435. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16436. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16437. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16438. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16439. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16440. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16442. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16443. else
  16444. openldap_incdir="/usr/include"
  16445. openldap_inc="-I$openldap_incdir"
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16447. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16448. fi
  16449. fi
  16450. fi
  16451. if test "$with_openldap" = yes ; then
  16452. save_cppflags="$CPPFLAGS"
  16453. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16454. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16455. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16456. else
  16457. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16458. fi
  16459. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16460. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16461. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16462. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16463. save_ldflags="$LDFLAGS"
  16464. LDFLAGS="$openldap_lib $LDFLAGS"
  16465. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16467. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16468. if eval \${$as_ac_Lib+:} false; then :
  16469. $as_echo_n "(cached) " >&6
  16470. else
  16471. ac_check_lib_save_LIBS=$LIBS
  16472. LIBS="-lldap$ol_libver $LIBS"
  16473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16474. /* end confdefs.h. */
  16475. /* Override any GCC internal prototype to avoid an error.
  16476. Use char because int might match the return type of a GCC
  16477. builtin and then its argument prototype would still apply. */
  16478. #ifdef __cplusplus
  16479. extern "C"
  16480. #endif
  16481. char ldap_initialize ();
  16482. int
  16483. main ()
  16484. {
  16485. return ldap_initialize ();
  16486. ;
  16487. return 0;
  16488. }
  16489. _ACEOF
  16490. if ac_fn_c_try_link "$LINENO"; then :
  16491. eval "$as_ac_Lib=yes"
  16492. else
  16493. eval "$as_ac_Lib=no"
  16494. fi
  16495. rm -f core conftest.err conftest.$ac_objext \
  16496. conftest$ac_exeext conftest.$ac_ext
  16497. LIBS=$ac_check_lib_save_LIBS
  16498. fi
  16499. eval ac_res=\$$as_ac_Lib
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16501. $as_echo "$ac_res" >&6; }
  16502. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16503. have_ldap_lib=1
  16504. fi
  16505. if test -z "$have_ldap_lib" ; then
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16507. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16508. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16509. $as_echo_n "(cached) " >&6
  16510. else
  16511. ac_check_lib_save_LIBS=$LIBS
  16512. LIBS="-lldap $LIBS"
  16513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16514. /* end confdefs.h. */
  16515. /* Override any GCC internal prototype to avoid an error.
  16516. Use char because int might match the return type of a GCC
  16517. builtin and then its argument prototype would still apply. */
  16518. #ifdef __cplusplus
  16519. extern "C"
  16520. #endif
  16521. char ldap_initialize ();
  16522. int
  16523. main ()
  16524. {
  16525. return ldap_initialize ();
  16526. ;
  16527. return 0;
  16528. }
  16529. _ACEOF
  16530. if ac_fn_c_try_link "$LINENO"; then :
  16531. ac_cv_lib_ldap_ldap_initialize=yes
  16532. else
  16533. ac_cv_lib_ldap_ldap_initialize=no
  16534. fi
  16535. rm -f core conftest.err conftest.$ac_objext \
  16536. conftest$ac_exeext conftest.$ac_ext
  16537. LIBS=$ac_check_lib_save_LIBS
  16538. fi
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16540. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16541. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16542. unset ol_libver
  16543. else
  16544. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16545. fi
  16546. fi
  16547. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16549. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16550. if eval \${$as_ac_Lib+:} false; then :
  16551. $as_echo_n "(cached) " >&6
  16552. else
  16553. ac_check_lib_save_LIBS=$LIBS
  16554. LIBS="-lldap$ol_libver $LIBS"
  16555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16556. /* end confdefs.h. */
  16557. /* Override any GCC internal prototype to avoid an error.
  16558. Use char because int might match the return type of a GCC
  16559. builtin and then its argument prototype would still apply. */
  16560. #ifdef __cplusplus
  16561. extern "C"
  16562. #endif
  16563. char ldap_url_parse_ext ();
  16564. int
  16565. main ()
  16566. {
  16567. return ldap_url_parse_ext ();
  16568. ;
  16569. return 0;
  16570. }
  16571. _ACEOF
  16572. if ac_fn_c_try_link "$LINENO"; then :
  16573. eval "$as_ac_Lib=yes"
  16574. else
  16575. eval "$as_ac_Lib=no"
  16576. fi
  16577. rm -f core conftest.err conftest.$ac_objext \
  16578. conftest$ac_exeext conftest.$ac_ext
  16579. LIBS=$ac_check_lib_save_LIBS
  16580. fi
  16581. eval ac_res=\$$as_ac_Lib
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16583. $as_echo "$ac_res" >&6; }
  16584. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16585. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16586. fi
  16587. ldap_lib_ldif=""
  16588. LDFLAGS="$LDFLAGS -lldap$ol_libver"
  16589. as_ac_Lib=`$as_echo "ac_cv_lib_ldif$ol_libver''__init" | $as_tr_sh`
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _init in -lldif$ol_libver" >&5
  16591. $as_echo_n "checking for _init in -lldif$ol_libver... " >&6; }
  16592. if eval \${$as_ac_Lib+:} false; then :
  16593. $as_echo_n "(cached) " >&6
  16594. else
  16595. ac_check_lib_save_LIBS=$LIBS
  16596. LIBS="-lldif$ol_libver $LIBS"
  16597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16598. /* end confdefs.h. */
  16599. /* Override any GCC internal prototype to avoid an error.
  16600. Use char because int might match the return type of a GCC
  16601. builtin and then its argument prototype would still apply. */
  16602. #ifdef __cplusplus
  16603. extern "C"
  16604. #endif
  16605. char _init ();
  16606. int
  16607. main ()
  16608. {
  16609. return _init ();
  16610. ;
  16611. return 0;
  16612. }
  16613. _ACEOF
  16614. if ac_fn_c_try_link "$LINENO"; then :
  16615. eval "$as_ac_Lib=yes"
  16616. else
  16617. eval "$as_ac_Lib=no"
  16618. fi
  16619. rm -f core conftest.err conftest.$ac_objext \
  16620. conftest$ac_exeext conftest.$ac_ext
  16621. LIBS=$ac_check_lib_save_LIBS
  16622. fi
  16623. eval ac_res=\$$as_ac_Lib
  16624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16625. $as_echo "$ac_res" >&6; }
  16626. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16627. ldap_lib_ldif=-lldif$ol_libver
  16628. else
  16629. ldap_lib_ldif=
  16630. fi
  16631. LDFLAGS="$save_ldflags"
  16632. CPPFLAGS="$save_cppflags"
  16633. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16634. # where to find ldapsearch, et. al.
  16635. ldaptool_bindir=$openldap_bindir
  16636. # default options to pass to the tools
  16637. # use -x because all of our scripts use simple bind
  16638. ldaptool_opts=-x
  16639. # get plain output from ldapsearch - no version, no comments
  16640. plainldif_opts=-LLL
  16641. fi
  16642. # BEGIN COPYRIGHT BLOCK
  16643. # Copyright (C) 2007 Red Hat, Inc.
  16644. # All rights reserved.
  16645. #
  16646. # License: GPL (version 3 or any later version).
  16647. # See LICENSE for details.
  16648. # END COPYRIGHT BLOCK
  16649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16650. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16651. # check for --with-ldapsdk
  16652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16653. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16654. # Check whether --with-ldapsdk was given.
  16655. if test "${with_ldapsdk+set}" = set; then :
  16656. withval=$with_ldapsdk;
  16657. if test "$withval" = yes
  16658. then
  16659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16660. $as_echo "yes" >&6; }
  16661. elif test "$withval" = no
  16662. then
  16663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16664. $as_echo "no" >&6; }
  16665. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16666. then
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16668. $as_echo "using $withval" >&6; }
  16669. LDAPSDKDIR=$withval
  16670. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16671. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16672. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16673. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16674. with_ldapsdk=yes
  16675. else
  16676. echo
  16677. as_fn_error $? "$withval not found" "$LINENO" 5
  16678. fi
  16679. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16680. then
  16681. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16682. fi
  16683. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16684. then
  16685. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16686. fi
  16687. else
  16688. if test "$with_openldap" = yes
  16689. then
  16690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16691. $as_echo "no" >&6; }
  16692. else
  16693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16694. $as_echo "yes" >&6; }
  16695. with_ldapsdk=yes
  16696. fi
  16697. fi
  16698. # check for --with-ldapsdk-inc
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16700. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16701. # Check whether --with-ldapsdk-inc was given.
  16702. if test "${with_ldapsdk_inc+set}" = set; then :
  16703. withval=$with_ldapsdk_inc;
  16704. if test -e "$withval"/ldap.h
  16705. then
  16706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16707. $as_echo "using $withval" >&6; }
  16708. ldapsdk_inc="-I$withval"
  16709. with_ldapsdk=yes
  16710. else
  16711. echo
  16712. as_fn_error $? "$withval not found" "$LINENO" 5
  16713. fi
  16714. else
  16715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16716. $as_echo "no" >&6; }
  16717. fi
  16718. # check for --with-ldapsdk-lib
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16720. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16721. # Check whether --with-ldapsdk-lib was given.
  16722. if test "${with_ldapsdk_lib+set}" = set; then :
  16723. withval=$with_ldapsdk_lib;
  16724. if test -d "$withval"
  16725. then
  16726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16727. $as_echo "using $withval" >&6; }
  16728. ldapsdk_lib="-L$withval"
  16729. ldapsdk_libdir="$withval"
  16730. with_ldapsdk=yes
  16731. else
  16732. echo
  16733. as_fn_error $? "$withval not found" "$LINENO" 5
  16734. fi
  16735. else
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16737. $as_echo "no" >&6; }
  16738. fi
  16739. # check for --with-ldapsdk-bin
  16740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16741. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16742. # Check whether --with-ldapsdk-bin was given.
  16743. if test "${with_ldapsdk_bin+set}" = set; then :
  16744. withval=$with_ldapsdk_bin;
  16745. if test -d "$withval"
  16746. then
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16748. $as_echo "using $withval" >&6; }
  16749. ldapsdk_bindir="$withval"
  16750. with_ldapsdk=yes
  16751. else
  16752. echo
  16753. as_fn_error $? "$withval not found" "$LINENO" 5
  16754. fi
  16755. else
  16756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16757. $as_echo "no" >&6; }
  16758. fi
  16759. # if LDAPSDK is not found yet, try pkg-config
  16760. # last resort
  16761. if test "$with_ldapsdk" = yes ; then
  16762. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16763. # Extract the first word of "pkg-config", so it can be a program name with args.
  16764. set dummy pkg-config; ac_word=$2
  16765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16766. $as_echo_n "checking for $ac_word... " >&6; }
  16767. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16768. $as_echo_n "(cached) " >&6
  16769. else
  16770. case $PKG_CONFIG in
  16771. [\\/]* | ?:[\\/]*)
  16772. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16773. ;;
  16774. *)
  16775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16776. for as_dir in $PATH
  16777. do
  16778. IFS=$as_save_IFS
  16779. test -z "$as_dir" && as_dir=.
  16780. for ac_exec_ext in '' $ac_executable_extensions; do
  16781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16782. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16784. break 2
  16785. fi
  16786. done
  16787. done
  16788. IFS=$as_save_IFS
  16789. ;;
  16790. esac
  16791. fi
  16792. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16793. if test -n "$PKG_CONFIG"; then
  16794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16795. $as_echo "$PKG_CONFIG" >&6; }
  16796. else
  16797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16798. $as_echo "no" >&6; }
  16799. fi
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16801. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16802. if test -n "$PKG_CONFIG"; then
  16803. if $PKG_CONFIG --exists mozldap6; then
  16804. mozldappkg=mozldap6
  16805. elif $PKG_CONFIG --exists mozldap; then
  16806. mozldappkg=mozldap
  16807. else
  16808. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16809. fi
  16810. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16811. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16812. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16813. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16815. $as_echo "using system $mozldappkg" >&6; }
  16816. fi
  16817. fi
  16818. fi
  16819. if test "$with_ldapsdk" = yes ; then
  16820. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16821. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16822. fi
  16823. if test -z "$ldapsdk_bindir" ; then
  16824. if -d $libdir/mozldap6 ; then
  16825. ldapsdk_bindir=$libdir/mozldap6
  16826. else
  16827. ldapsdk_bindir=$libdir/mozldap
  16828. fi
  16829. fi
  16830. save_cppflags="$CPPFLAGS"
  16831. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16832. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16833. #if LDAP_VENDOR_VERSION < 600
  16834. #error The LDAP C SDK version is not supported
  16835. #endif
  16836. "
  16837. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16838. isversion6=1
  16839. else
  16840. isversion6=
  16841. fi
  16842. CPPFLAGS="$save_cppflags"
  16843. if test -z "$isversion6" ; then
  16844. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16845. fi
  16846. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16847. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16848. # where to find ldapsearch, et. al.
  16849. ldaptool_bindir=$ldapsdk_bindir
  16850. # default options to pass to the tools
  16851. ldaptool_opts=
  16852. # get plain output from ldapsearch - no version
  16853. plainldif_opts=-1
  16854. fi
  16855. # BEGIN COPYRIGHT BLOCK
  16856. # Copyright (C) 2007 Red Hat, Inc.
  16857. # All rights reserved.
  16858. #
  16859. # License: GPL (version 3 or any later version).
  16860. # See LICENSE for details.
  16861. # END COPYRIGHT BLOCK
  16862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16863. $as_echo "$as_me: checking for db..." >&6;}
  16864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16865. $as_echo_n "checking for --with-db... " >&6; }
  16866. # Check whether --with-db was given.
  16867. if test "${with_db+set}" = set; then :
  16868. withval=$with_db;
  16869. if test "$withval" = "yes"; then
  16870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16871. $as_echo "yes" >&6; }
  16872. elif test "$withval" = "no"; then
  16873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16874. $as_echo "no" >&6; }
  16875. as_fn_error $? "db is required." "$LINENO" 5
  16876. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16878. $as_echo "using $withval" >&6; }
  16879. DBDIR=$withval
  16880. db_lib="-L$DBDIR/lib"
  16881. db_libdir="$DBDIR/lib"
  16882. db_incdir="$DBDIR/include"
  16883. if ! test -e "$db_incdir/db.h" ; then
  16884. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16885. fi
  16886. db_inc="-I$db_incdir"
  16887. else
  16888. echo
  16889. as_fn_error $? "$withval not found" "$LINENO" 5
  16890. fi
  16891. else
  16892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16893. $as_echo "yes" >&6; }
  16894. fi
  16895. # check for --with-db-inc
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16897. $as_echo_n "checking for --with-db-inc... " >&6; }
  16898. # Check whether --with-db-inc was given.
  16899. if test "${with_db_inc+set}" = set; then :
  16900. withval=$with_db_inc;
  16901. if test -e "$withval"/db.h
  16902. then
  16903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16904. $as_echo "using $withval" >&6; }
  16905. db_incdir="$withval"
  16906. db_inc="-I$withval"
  16907. else
  16908. echo
  16909. as_fn_error $? "$withval not found" "$LINENO" 5
  16910. fi
  16911. else
  16912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16913. $as_echo "no" >&6; }
  16914. fi
  16915. # check for --with-db-lib
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  16917. $as_echo_n "checking for --with-db-lib... " >&6; }
  16918. # Check whether --with-db-lib was given.
  16919. if test "${with_db_lib+set}" = set; then :
  16920. withval=$with_db_lib;
  16921. if test -d "$withval"
  16922. then
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16924. $as_echo "using $withval" >&6; }
  16925. db_lib="-L$withval"
  16926. db_libdir="$withval"
  16927. else
  16928. echo
  16929. as_fn_error $? "$withval not found" "$LINENO" 5
  16930. fi
  16931. else
  16932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16933. $as_echo "no" >&6; }
  16934. fi
  16935. if test -z "$db_inc"; then
  16936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  16937. $as_echo_n "checking for db.h... " >&6; }
  16938. if test -f "/usr/include/db4/db.h"; then
  16939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  16940. $as_echo "using /usr/include/db4/db.h" >&6; }
  16941. db_incdir="/usr/include/db4"
  16942. db_inc="-I/usr/include/db4"
  16943. db_lib='-L$(libdir)'
  16944. db_libdir='$(libdir)'
  16945. elif test -f "/usr/include/libdb/db.h"; then
  16946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  16947. $as_echo "using /usr/include/libdb/db.h" >&6; }
  16948. db_incdir="/usr/include/libdb"
  16949. db_inc="-I/usr/include/libdb"
  16950. db_lib='-L$(libdir)'
  16951. db_libdir='$(libdir)'
  16952. elif test -f "/usr/include/db.h"; then
  16953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  16954. $as_echo "using /usr/include/db.h" >&6; }
  16955. db_incdir="/usr/include"
  16956. db_inc="-I/usr/include"
  16957. db_lib='-L$(libdir)'
  16958. db_libdir='$(libdir)'
  16959. else
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16961. $as_echo "no" >&6; }
  16962. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  16963. fi
  16964. fi
  16965. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  16966. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  16967. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  16968. db_libver=${db_ver_maj}.${db_ver_min}
  16969. save_ldflags="$LDFLAGS"
  16970. LDFLAGS="$db_lib $LDFLAGS"
  16971. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  16972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  16973. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  16974. if eval \${$as_ac_Lib+:} false; then :
  16975. $as_echo_n "(cached) " >&6
  16976. else
  16977. ac_check_lib_save_LIBS=$LIBS
  16978. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  16979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16980. /* end confdefs.h. */
  16981. /* Override any GCC internal prototype to avoid an error.
  16982. Use char because int might match the return type of a GCC
  16983. builtin and then its argument prototype would still apply. */
  16984. #ifdef __cplusplus
  16985. extern "C"
  16986. #endif
  16987. char db_create ();
  16988. int
  16989. main ()
  16990. {
  16991. return db_create ();
  16992. ;
  16993. return 0;
  16994. }
  16995. _ACEOF
  16996. if ac_fn_c_try_link "$LINENO"; then :
  16997. eval "$as_ac_Lib=yes"
  16998. else
  16999. eval "$as_ac_Lib=no"
  17000. fi
  17001. rm -f core conftest.err conftest.$ac_objext \
  17002. conftest$ac_exeext conftest.$ac_ext
  17003. LIBS=$ac_check_lib_save_LIBS
  17004. fi
  17005. eval ac_res=\$$as_ac_Lib
  17006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17007. $as_echo "$ac_res" >&6; }
  17008. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17009. true
  17010. else
  17011. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17012. fi
  17013. LDFLAGS="$save_ldflags"
  17014. # if DB is not found yet, try pkg-config
  17015. # last resort
  17016. # Although the other db_* variables are correctly assigned at this point,
  17017. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17018. if test -n "$PKG_CONFIG"; then
  17019. if $PKG_CONFIG --exists db; then
  17020. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17021. else
  17022. db_bindir=/usr/bin
  17023. fi
  17024. else
  17025. db_bindir=/usr/bin
  17026. fi
  17027. # BEGIN COPYRIGHT BLOCK
  17028. # Copyright (C) 2007 Red Hat, Inc.
  17029. # All rights reserved.
  17030. #
  17031. # License: GPL (version 3 or any later version).
  17032. # See LICENSE for details.
  17033. # END COPYRIGHT BLOCK
  17034. # -*- tab-width: 4; -*-
  17035. # Configure paths for SASL
  17036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17037. $as_echo "$as_me: checking for SASL..." >&6;}
  17038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17039. $as_echo_n "checking for --with-sasl... " >&6; }
  17040. # Check whether --with-sasl was given.
  17041. if test "${with_sasl+set}" = set; then :
  17042. withval=$with_sasl;
  17043. if test "$withval" = "yes"; then
  17044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17045. $as_echo "yes" >&6; }
  17046. elif test "$withval" = "no"; then
  17047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17048. $as_echo "no" >&6; }
  17049. as_fn_error $? "SASL is required." "$LINENO" 5
  17050. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17052. $as_echo "using $withval" >&6; }
  17053. if test -f "$withval/include/sasl/sasl.h"; then
  17054. sasl_inc="-I$withval/include/sasl"
  17055. elif test -f "$withval/include/sasl.h"; then
  17056. sasl_inc="-I$withval/include"
  17057. else
  17058. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17059. fi
  17060. sasl_lib="-L$withval/lib"
  17061. sasl_libdir="$withval/lib"
  17062. else
  17063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17064. $as_echo "yes" >&6; }
  17065. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17066. fi
  17067. else
  17068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17069. $as_echo "yes" >&6; }
  17070. fi
  17071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17072. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17073. # Check whether --with-sasl-inc was given.
  17074. if test "${with_sasl_inc+set}" = set; then :
  17075. withval=$with_sasl_inc;
  17076. if test -f "$withval"/sasl.h; then
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17078. $as_echo "using $withval" >&6; }
  17079. sasl_inc="-I$withval"
  17080. else
  17081. echo
  17082. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17083. fi
  17084. else
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17086. $as_echo "no" >&6; }
  17087. fi
  17088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17089. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17090. # Check whether --with-sasl-lib was given.
  17091. if test "${with_sasl_lib+set}" = set; then :
  17092. withval=$with_sasl_lib;
  17093. if test -d "$withval"; then
  17094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17095. $as_echo "using $withval" >&6; }
  17096. sasl_lib="-L$withval"
  17097. sasl_libdir="$withval"
  17098. else
  17099. echo
  17100. as_fn_error $? "$withval not found" "$LINENO" 5
  17101. fi
  17102. else
  17103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17104. $as_echo "no" >&6; }
  17105. fi
  17106. if test -z "$sasl_inc"; then
  17107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17108. $as_echo_n "checking for sasl.h... " >&6; }
  17109. if test -f /usr/include/sasl/sasl.h; then
  17110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17111. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17112. sasl_inc="-I/usr/include/sasl"
  17113. elif test -f /usr/include/sasl.h; then
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17115. $as_echo "using /usr/include/sasl.h" >&6; }
  17116. sasl_inc="-I/usr/include"
  17117. else
  17118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17119. $as_echo "no" >&6; }
  17120. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17121. fi
  17122. fi
  17123. # BEGIN COPYRIGHT BLOCK
  17124. # Copyright (C) 2007 Red Hat, Inc.
  17125. # All rights reserved.
  17126. #
  17127. # License: GPL (version 3 or any later version).
  17128. # See LICENSE for details.
  17129. # END COPYRIGHT BLOCK
  17130. #
  17131. # Configure paths for SVRCORE
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17133. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17135. $as_echo_n "checking for --with-svrcore... " >&6; }
  17136. # Check whether --with-svrcore was given.
  17137. if test "${with_svrcore+set}" = set; then :
  17138. withval=$with_svrcore;
  17139. if test "$withval" = "yes"; then
  17140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17141. $as_echo "yes" >&6; }
  17142. elif test "$withval" = "no"; then
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17144. $as_echo "no" >&6; }
  17145. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17146. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17148. $as_echo "using $withval" >&6; }
  17149. if test -f "$withval/include/svrcore.h"; then
  17150. svrcore_inc="-I$withval/include"
  17151. else
  17152. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17153. fi
  17154. svrcore_lib="-L$withval/lib"
  17155. else
  17156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17157. $as_echo "yes" >&6; }
  17158. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17159. fi
  17160. else
  17161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17162. $as_echo "yes" >&6; }
  17163. fi
  17164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17165. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17166. # Check whether --with-svrcore-inc was given.
  17167. if test "${with_svrcore_inc+set}" = set; then :
  17168. withval=$with_svrcore_inc;
  17169. if test -f "$withval"/svrcore.h; then
  17170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17171. $as_echo "using $withval" >&6; }
  17172. svrcore_inc="-I$withval"
  17173. else
  17174. echo
  17175. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17176. fi
  17177. else
  17178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17179. $as_echo "no" >&6; }
  17180. fi
  17181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17182. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17183. # Check whether --with-svrcore-lib was given.
  17184. if test "${with_svrcore_lib+set}" = set; then :
  17185. withval=$with_svrcore_lib;
  17186. if test -d "$withval"; then
  17187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17188. $as_echo "using $withval" >&6; }
  17189. svrcore_lib="-L$withval"
  17190. else
  17191. echo
  17192. as_fn_error $? "$withval not found" "$LINENO" 5
  17193. fi
  17194. else
  17195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17196. $as_echo "no" >&6; }
  17197. fi
  17198. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17199. # Extract the first word of "pkg-config", so it can be a program name with args.
  17200. set dummy pkg-config; ac_word=$2
  17201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17202. $as_echo_n "checking for $ac_word... " >&6; }
  17203. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17204. $as_echo_n "(cached) " >&6
  17205. else
  17206. case $PKG_CONFIG in
  17207. [\\/]* | ?:[\\/]*)
  17208. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17209. ;;
  17210. *)
  17211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17212. for as_dir in $PATH
  17213. do
  17214. IFS=$as_save_IFS
  17215. test -z "$as_dir" && as_dir=.
  17216. for ac_exec_ext in '' $ac_executable_extensions; do
  17217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17218. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17220. break 2
  17221. fi
  17222. done
  17223. done
  17224. IFS=$as_save_IFS
  17225. ;;
  17226. esac
  17227. fi
  17228. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17229. if test -n "$PKG_CONFIG"; then
  17230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17231. $as_echo "$PKG_CONFIG" >&6; }
  17232. else
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17234. $as_echo "no" >&6; }
  17235. fi
  17236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17237. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17238. if test -n "$PKG_CONFIG"; then
  17239. if $PKG_CONFIG --exists svrcore; then
  17240. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17241. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17243. $as_echo "using system svrcore" >&6; }
  17244. fi
  17245. fi
  17246. fi
  17247. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17249. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17250. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17251. $as_echo_n "(cached) " >&6
  17252. else
  17253. ac_check_lib_save_LIBS=$LIBS
  17254. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17256. /* end confdefs.h. */
  17257. /* Override any GCC internal prototype to avoid an error.
  17258. Use char because int might match the return type of a GCC
  17259. builtin and then its argument prototype would still apply. */
  17260. #ifdef __cplusplus
  17261. extern "C"
  17262. #endif
  17263. char SVRCORE_GetRegisteredPinObj ();
  17264. int
  17265. main ()
  17266. {
  17267. return SVRCORE_GetRegisteredPinObj ();
  17268. ;
  17269. return 0;
  17270. }
  17271. _ACEOF
  17272. if ac_fn_c_try_link "$LINENO"; then :
  17273. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17274. else
  17275. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17276. fi
  17277. rm -f core conftest.err conftest.$ac_objext \
  17278. conftest$ac_exeext conftest.$ac_ext
  17279. LIBS=$ac_check_lib_save_LIBS
  17280. fi
  17281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17282. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17283. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17284. havesvrcore=1
  17285. fi
  17286. if test -n "$havesvrcore" ; then
  17287. save_cppflags="$CPPFLAGS"
  17288. CPPFLAGS="$nss_inc $nspr_inc"
  17289. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17290. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17291. havesvrcore=1
  17292. else
  17293. havesvrcore=
  17294. fi
  17295. CPPFLAGS="$save_cppflags"
  17296. fi
  17297. if test -z "$havesvrcore" ; then
  17298. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17299. fi
  17300. fi
  17301. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17302. if test -f /usr/include/svrcore.h; then
  17303. svrcore_inc="-I/usr/include"
  17304. svrcore_lib="-L/usr/lib"
  17305. else
  17306. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17307. fi
  17308. fi
  17309. # BEGIN COPYRIGHT BLOCK
  17310. # Copyright (C) 2006 Red Hat, Inc.
  17311. # All rights reserved.
  17312. #
  17313. # License: GPL (version 3 or any later version).
  17314. # See LICENSE for details.
  17315. # END COPYRIGHT BLOCK
  17316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17317. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17318. # check for --with-icu
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17320. $as_echo_n "checking for --with-icu... " >&6; }
  17321. # Check whether --with-icu was given.
  17322. if test "${with_icu+set}" = set; then :
  17323. withval=$with_icu;
  17324. if test "$withval" = "yes"
  17325. then
  17326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17327. $as_echo "yes" >&6; }
  17328. elif test "$withval" = "no"
  17329. then
  17330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17331. $as_echo "no" >&6; }
  17332. as_fn_error $? "ICU is required." "$LINENO" 5
  17333. elif test -d "$withval"/lib
  17334. then
  17335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17336. $as_echo "using $withval" >&6; }
  17337. ICUDIR=$withval
  17338. icu_lib="-L$ICUDIR/lib"
  17339. icu_inc="-I$withval/include"
  17340. icu_bin="$withval/bin"
  17341. else
  17342. echo
  17343. as_fn_error $? "$withval not found" "$LINENO" 5
  17344. fi
  17345. else
  17346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17347. $as_echo "yes" >&6; }
  17348. fi
  17349. # check for --with-icu-inc
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17351. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17352. # Check whether --with-icu-inc was given.
  17353. if test "${with_icu_inc+set}" = set; then :
  17354. withval=$with_icu_inc;
  17355. if test -d "$withval"
  17356. then
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17358. $as_echo "using $withval" >&6; }
  17359. icu_inc="-I$withval"
  17360. else
  17361. echo
  17362. as_fn_error $? "$withval not found" "$LINENO" 5
  17363. fi
  17364. else
  17365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17366. $as_echo "no" >&6; }
  17367. fi
  17368. # check for --with-icu-lib
  17369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17370. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17371. # Check whether --with-icu-lib was given.
  17372. if test "${with_icu_lib+set}" = set; then :
  17373. withval=$with_icu_lib;
  17374. if test -d "$withval"
  17375. then
  17376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17377. $as_echo "using $withval" >&6; }
  17378. icu_lib="-L$withval"
  17379. else
  17380. echo
  17381. as_fn_error $? "$withval not found" "$LINENO" 5
  17382. fi
  17383. else
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17385. $as_echo "no" >&6; }
  17386. fi
  17387. # check for --with-icu-bin
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17389. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17390. # Check whether --with-icu-bin was given.
  17391. if test "${with_icu_bin+set}" = set; then :
  17392. withval=$with_icu_bin;
  17393. if test -d "$withval"
  17394. then
  17395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17396. $as_echo "using $withval" >&6; }
  17397. icu_bin="$withval"
  17398. else
  17399. echo
  17400. as_fn_error $? "$withval not found" "$LINENO" 5
  17401. fi
  17402. else
  17403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17404. $as_echo "no" >&6; }
  17405. fi
  17406. # if ICU is not found yet, try pkg-config
  17407. # last resort
  17408. if test -z "$icu_lib"; then
  17409. # Extract the first word of "icu-config", so it can be a program name with args.
  17410. set dummy icu-config; ac_word=$2
  17411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17412. $as_echo_n "checking for $ac_word... " >&6; }
  17413. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17414. $as_echo_n "(cached) " >&6
  17415. else
  17416. case $ICU_CONFIG in
  17417. [\\/]* | ?:[\\/]*)
  17418. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17419. ;;
  17420. *)
  17421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17422. for as_dir in $PATH
  17423. do
  17424. IFS=$as_save_IFS
  17425. test -z "$as_dir" && as_dir=.
  17426. for ac_exec_ext in '' $ac_executable_extensions; do
  17427. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17428. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17430. break 2
  17431. fi
  17432. done
  17433. done
  17434. IFS=$as_save_IFS
  17435. ;;
  17436. esac
  17437. fi
  17438. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17439. if test -n "$ICU_CONFIG"; then
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17441. $as_echo "$ICU_CONFIG" >&6; }
  17442. else
  17443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17444. $as_echo "no" >&6; }
  17445. fi
  17446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17447. $as_echo_n "checking for icu with icu-config... " >&6; }
  17448. if test -n "$ICU_CONFIG"; then
  17449. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17450. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17451. icu_bin=`$ICU_CONFIG --bindir`
  17452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17453. $as_echo "using system ICU" >&6; }
  17454. else
  17455. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17456. fi
  17457. fi
  17458. # BEGIN COPYRIGHT BLOCK
  17459. # Copyright (C) 2006 Red Hat, Inc.
  17460. # All rights reserved.
  17461. #
  17462. # License: GPL (version 3 or any later version).
  17463. # See LICENSE for details.
  17464. # END COPYRIGHT BLOCK
  17465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17466. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17468. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17469. # Check whether --with-netsnmp was given.
  17470. if test "${with_netsnmp+set}" = set; then :
  17471. withval=$with_netsnmp;
  17472. if test "$withval" = "yes"; then
  17473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17474. $as_echo "yes" >&6; }
  17475. elif test "$withval" = "no"; then
  17476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17477. $as_echo "no" >&6; }
  17478. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17479. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17481. $as_echo "using $withval" >&6; }
  17482. NETSNMPDIR=$withval
  17483. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17484. netsnmp_inc="-I$withval/include"
  17485. else
  17486. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17487. fi
  17488. netsnmp_lib="-L$withval/lib"
  17489. netsnmp_libdir="$withval/lib"
  17490. else
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17492. $as_echo "yes" >&6; }
  17493. as_fn_error $? "$withval not found" "$LINENO" 5
  17494. fi
  17495. else
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17497. $as_echo "yes" >&6; }
  17498. fi
  17499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17500. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17501. # Check whether --with-netsnmp-inc was given.
  17502. if test "${with_netsnmp_inc+set}" = set; then :
  17503. withval=$with_netsnmp_inc;
  17504. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17506. $as_echo "using $withval" >&6; }
  17507. netsnmp_inc="-I$withval"
  17508. else
  17509. echo
  17510. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17511. fi
  17512. else
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17514. $as_echo "no" >&6; }
  17515. fi
  17516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17517. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17518. # Check whether --with-netsnmp-lib was given.
  17519. if test "${with_netsnmp_lib+set}" = set; then :
  17520. withval=$with_netsnmp_lib;
  17521. if test -d "$withval"
  17522. then
  17523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17524. $as_echo "using $withval" >&6; }
  17525. netsnmp_lib="-L$withval"
  17526. netsnmp_libdir="$withval"
  17527. else
  17528. echo
  17529. as_fn_error $? "$withval not found" "$LINENO" 5
  17530. fi
  17531. else
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17533. $as_echo "no" >&6; }
  17534. fi
  17535. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17537. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17538. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17540. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17541. netsnmp_inc="-I/usr/include"
  17542. else
  17543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17544. $as_echo "no" >&6; }
  17545. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17546. fi
  17547. fi
  17548. if test -n "$netsnmp_inc"; then
  17549. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17550. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17551. else
  17552. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17553. set dummy net-snmp-config; ac_word=$2
  17554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17555. $as_echo_n "checking for $ac_word... " >&6; }
  17556. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17557. $as_echo_n "(cached) " >&6
  17558. else
  17559. case $NETSNMP_CONFIG in
  17560. [\\/]* | ?:[\\/]*)
  17561. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17562. ;;
  17563. *)
  17564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17565. for as_dir in $PATH
  17566. do
  17567. IFS=$as_save_IFS
  17568. test -z "$as_dir" && as_dir=.
  17569. for ac_exec_ext in '' $ac_executable_extensions; do
  17570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17571. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17573. break 2
  17574. fi
  17575. done
  17576. done
  17577. IFS=$as_save_IFS
  17578. ;;
  17579. esac
  17580. fi
  17581. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17582. if test -n "$NETSNMP_CONFIG"; then
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17584. $as_echo "$NETSNMP_CONFIG" >&6; }
  17585. else
  17586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17587. $as_echo "no" >&6; }
  17588. fi
  17589. fi
  17590. if test -n "$NETSNMP_CONFIG"; then
  17591. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17592. else
  17593. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17594. fi
  17595. else
  17596. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17597. fi
  17598. # BEGIN COPYRIGHT BLOCK
  17599. # Copyright (C) 2008 Red Hat, Inc.
  17600. # All rights reserved.
  17601. #
  17602. # License: GPL (version 3 or any later version).
  17603. # See LICENSE for details.
  17604. # END COPYRIGHT BLOCK
  17605. # -*- tab-width: 4; -*-
  17606. # Configure paths for Kerberos
  17607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17608. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17609. if test -z "$with_kerberos" ; then
  17610. with_kerberos=yes # if not set on cmdline, set default
  17611. fi
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17613. $as_echo_n "checking for --with-kerberos... " >&6; }
  17614. # Check whether --with-kerberos was given.
  17615. if test "${with_kerberos+set}" = set; then :
  17616. withval=$with_kerberos;
  17617. if test "x$withval" = "xyes"; then
  17618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17619. $as_echo "yes" >&6; }
  17620. elif test "x$withval" = "xno"; then
  17621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17622. $as_echo "no" >&6; }
  17623. with_kerberos=
  17624. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17626. $as_echo "using $withval" >&6; }
  17627. kerberos_incdir="$withval/include"
  17628. kerberos_libdir="$withval/lib"
  17629. else
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17631. $as_echo "yes" >&6; }
  17632. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17633. fi
  17634. else
  17635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17636. $as_echo "no" >&6; }
  17637. with_kerberos=
  17638. fi
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17640. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17641. # Check whether --with-kerberos-inc was given.
  17642. if test "${with_kerberos_inc+set}" = set; then :
  17643. withval=$with_kerberos_inc;
  17644. if test -f "$withval"/krb5.h; then
  17645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17646. $as_echo "using $withval" >&6; }
  17647. kerberos_incdir="$withval"
  17648. with_kerberos=yes # implies use of kerberos
  17649. else
  17650. echo
  17651. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17652. fi
  17653. else
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17655. $as_echo "no" >&6; }
  17656. fi
  17657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17658. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17659. # Check whether --with-kerberos-lib was given.
  17660. if test "${with_kerberos_lib+set}" = set; then :
  17661. withval=$with_kerberos_lib;
  17662. if test -d "$withval"; then
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17664. $as_echo "using $withval" >&6; }
  17665. kerberos_libdir="$withval"
  17666. with_kerberos=yes # implies use of kerberos
  17667. else
  17668. echo
  17669. as_fn_error $? "$withval not found" "$LINENO" 5
  17670. fi
  17671. else
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17673. $as_echo "no" >&6; }
  17674. fi
  17675. if test -n "$with_kerberos" ; then
  17676. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17677. if test -z "$KRB5_CONFIG_BIN" ; then
  17678. # Extract the first word of "krb5-config", so it can be a program name with args.
  17679. set dummy krb5-config; ac_word=$2
  17680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17681. $as_echo_n "checking for $ac_word... " >&6; }
  17682. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17683. $as_echo_n "(cached) " >&6
  17684. else
  17685. case $KRB5_CONFIG_BIN in
  17686. [\\/]* | ?:[\\/]*)
  17687. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17688. ;;
  17689. *)
  17690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17691. for as_dir in $PATH
  17692. do
  17693. IFS=$as_save_IFS
  17694. test -z "$as_dir" && as_dir=.
  17695. for ac_exec_ext in '' $ac_executable_extensions; do
  17696. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17697. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17699. break 2
  17700. fi
  17701. done
  17702. done
  17703. IFS=$as_save_IFS
  17704. ;;
  17705. esac
  17706. fi
  17707. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17708. if test -n "$KRB5_CONFIG_BIN"; then
  17709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17710. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17711. else
  17712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17713. $as_echo "no" >&6; }
  17714. fi
  17715. fi
  17716. if test -n "$KRB5_CONFIG_BIN" ; then
  17717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17718. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17719. if test -z "$kerberos_libdir" ; then
  17720. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17721. fi
  17722. if test -z "$kerberos_incdir" ; then
  17723. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17724. fi
  17725. if test -n "$kerberos_lib" ; then
  17726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17727. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17728. have_krb5=yes
  17729. fi
  17730. fi
  17731. fi
  17732. fi
  17733. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17734. # save these in order to set them to use the check macros below
  17735. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17736. save_CPPFLAGS="$CPPFLAGS"
  17737. if test -n "$kerberos_incdir" ; then
  17738. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17739. fi
  17740. save_LDFLAGS="$LDFLAGS"
  17741. if test -n "$kerberos_libdir" ; then
  17742. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17743. fi
  17744. krb5_impl=mit
  17745. for ac_header in heim_err.h
  17746. do :
  17747. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17748. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17749. cat >>confdefs.h <<_ACEOF
  17750. #define HAVE_HEIM_ERR_H 1
  17751. _ACEOF
  17752. fi
  17753. done
  17754. if test $ac_cv_header_heim_err_h = yes ; then
  17755. krb5_impl=heimdal
  17756. fi
  17757. if test "x$krb5_impl" = "xmit"; then
  17758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17759. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17760. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17761. $as_echo_n "(cached) " >&6
  17762. else
  17763. ac_check_lib_save_LIBS=$LIBS
  17764. LIBS="-lk5crypto $LIBS"
  17765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17766. /* end confdefs.h. */
  17767. int
  17768. main ()
  17769. {
  17770. return main ();
  17771. ;
  17772. return 0;
  17773. }
  17774. _ACEOF
  17775. if ac_fn_c_try_link "$LINENO"; then :
  17776. ac_cv_lib_k5crypto_main=yes
  17777. else
  17778. ac_cv_lib_k5crypto_main=no
  17779. fi
  17780. rm -f core conftest.err conftest.$ac_objext \
  17781. conftest$ac_exeext conftest.$ac_ext
  17782. LIBS=$ac_check_lib_save_LIBS
  17783. fi
  17784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17785. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17786. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17787. krb5crypto=k5crypto
  17788. else
  17789. krb5crypto=crypto
  17790. fi
  17791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17792. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17793. if ${ac_cv_lib_krb5_main+:} false; then :
  17794. $as_echo_n "(cached) " >&6
  17795. else
  17796. ac_check_lib_save_LIBS=$LIBS
  17797. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17799. /* end confdefs.h. */
  17800. int
  17801. main ()
  17802. {
  17803. return main ();
  17804. ;
  17805. return 0;
  17806. }
  17807. _ACEOF
  17808. if ac_fn_c_try_link "$LINENO"; then :
  17809. ac_cv_lib_krb5_main=yes
  17810. else
  17811. ac_cv_lib_krb5_main=no
  17812. fi
  17813. rm -f core conftest.err conftest.$ac_objext \
  17814. conftest$ac_exeext conftest.$ac_ext
  17815. LIBS=$ac_check_lib_save_LIBS
  17816. fi
  17817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17818. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17819. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17820. have_krb5=yes
  17821. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17822. else
  17823. have_krb5=no
  17824. fi
  17825. elif test "x$krb5_impl" = "xheimdal"; then
  17826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17827. $as_echo_n "checking for main in -ldes... " >&6; }
  17828. if ${ac_cv_lib_des_main+:} false; then :
  17829. $as_echo_n "(cached) " >&6
  17830. else
  17831. ac_check_lib_save_LIBS=$LIBS
  17832. LIBS="-ldes $LIBS"
  17833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17834. /* end confdefs.h. */
  17835. int
  17836. main ()
  17837. {
  17838. return main ();
  17839. ;
  17840. return 0;
  17841. }
  17842. _ACEOF
  17843. if ac_fn_c_try_link "$LINENO"; then :
  17844. ac_cv_lib_des_main=yes
  17845. else
  17846. ac_cv_lib_des_main=no
  17847. fi
  17848. rm -f core conftest.err conftest.$ac_objext \
  17849. conftest$ac_exeext conftest.$ac_ext
  17850. LIBS=$ac_check_lib_save_LIBS
  17851. fi
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17853. $as_echo "$ac_cv_lib_des_main" >&6; }
  17854. if test "x$ac_cv_lib_des_main" = xyes; then :
  17855. krb5crypto=des
  17856. else
  17857. krb5crypto=crypto
  17858. fi
  17859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17860. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17861. if ${ac_cv_lib_krb5_main+:} false; then :
  17862. $as_echo_n "(cached) " >&6
  17863. else
  17864. ac_check_lib_save_LIBS=$LIBS
  17865. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17867. /* end confdefs.h. */
  17868. int
  17869. main ()
  17870. {
  17871. return main ();
  17872. ;
  17873. return 0;
  17874. }
  17875. _ACEOF
  17876. if ac_fn_c_try_link "$LINENO"; then :
  17877. ac_cv_lib_krb5_main=yes
  17878. else
  17879. ac_cv_lib_krb5_main=no
  17880. fi
  17881. rm -f core conftest.err conftest.$ac_objext \
  17882. conftest$ac_exeext conftest.$ac_ext
  17883. LIBS=$ac_check_lib_save_LIBS
  17884. fi
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17886. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17887. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17888. have_krb5=yes
  17889. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  17890. else
  17891. have_krb5=no
  17892. fi
  17893. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  17894. else
  17895. have_krb5=no
  17896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  17897. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  17898. fi
  17899. # reset to original values
  17900. CPPFLAGS="$save_CPPFLAGS"
  17901. LDFLAGS="$save_LDFLAGS"
  17902. if test -n "$kerberos_incdir" ; then
  17903. kerberos_inc="-I$kerberos_incdir"
  17904. fi
  17905. if test -n "$kerberos_libdir" ; then
  17906. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  17907. fi
  17908. fi
  17909. if test -n "$with_kerberos" ; then
  17910. if test "x$have_krb5" = "xyes" ; then
  17911. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  17912. else
  17913. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  17914. fi
  17915. save_LIBS="$LIBS"
  17916. LIBS="$kerberos_lib"
  17917. save_CPPFLAGS="$CPPFLAGS"
  17918. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  17919. for ac_func in krb5_cc_new_unique
  17920. do :
  17921. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  17922. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  17923. cat >>confdefs.h <<_ACEOF
  17924. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  17925. _ACEOF
  17926. fi
  17927. done
  17928. LIBS="$save_LIBS"
  17929. CPPFLAGS="$save_CPPFLAGS"
  17930. fi
  17931. # BEGIN COPYRIGHT BLOCK
  17932. # Copyright (C) 2007 Red Hat, Inc.
  17933. # All rights reserved.
  17934. #
  17935. # License: GPL (version 3 or any later version).
  17936. # See LICENSE for details.
  17937. # END COPYRIGHT BLOCK
  17938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  17939. $as_echo "$as_me: checking for PCRE..." >&6;}
  17940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  17941. $as_echo_n "checking for --with-pcre... " >&6; }
  17942. # Check whether --with-pcre was given.
  17943. if test "${with_pcre+set}" = set; then :
  17944. withval=$with_pcre;
  17945. if test "$withval" = "yes"; then
  17946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17947. $as_echo "yes" >&6; }
  17948. elif test "$withval" = "no"; then
  17949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17950. $as_echo "no" >&6; }
  17951. as_fn_error $? "PCRE is required." "$LINENO" 5
  17952. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17954. $as_echo "using $withval" >&6; }
  17955. PCREDIR=$withval
  17956. pcre_lib="-L$PCREDIR/lib"
  17957. pcre_libdir="$PCREDIR/lib"
  17958. pcre_incdir="$PCREDIR/include"
  17959. if ! test -e "$pcre_incdir/pcre.h" ; then
  17960. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17961. fi
  17962. pcre_inc="-I$pcre_incdir"
  17963. else
  17964. echo
  17965. as_fn_error $? "$withval not found" "$LINENO" 5
  17966. fi
  17967. else
  17968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17969. $as_echo "yes" >&6; }
  17970. fi
  17971. #
  17972. # if PCRE is not found yet, try pkg-config
  17973. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  17974. # Extract the first word of "pkg-config", so it can be a program name with args.
  17975. set dummy pkg-config; ac_word=$2
  17976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17977. $as_echo_n "checking for $ac_word... " >&6; }
  17978. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17979. $as_echo_n "(cached) " >&6
  17980. else
  17981. case $PKG_CONFIG in
  17982. [\\/]* | ?:[\\/]*)
  17983. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17984. ;;
  17985. *)
  17986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17987. for as_dir in $PATH
  17988. do
  17989. IFS=$as_save_IFS
  17990. test -z "$as_dir" && as_dir=.
  17991. for ac_exec_ext in '' $ac_executable_extensions; do
  17992. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17993. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17995. break 2
  17996. fi
  17997. done
  17998. done
  17999. IFS=$as_save_IFS
  18000. ;;
  18001. esac
  18002. fi
  18003. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18004. if test -n "$PKG_CONFIG"; then
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18006. $as_echo "$PKG_CONFIG" >&6; }
  18007. else
  18008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18009. $as_echo "no" >&6; }
  18010. fi
  18011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18012. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18013. if test -n "$PKG_CONFIG"; then
  18014. if $PKG_CONFIG --exists pcre; then
  18015. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18016. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18017. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18019. $as_echo "using system PCRE" >&6; }
  18020. elif $PKG_CONFIG --exists libpcre; then
  18021. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18022. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18023. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18025. $as_echo "using system PCRE" >&6; }
  18026. else
  18027. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18028. fi
  18029. fi
  18030. fi
  18031. if test -z "$pcre_inc"; then
  18032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18033. $as_echo_n "checking for pcre.h... " >&6; }
  18034. if test -f "/usr/include/pcre/pcre.h"; then
  18035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18036. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18037. pcre_incdir="/usr/include/pcre"
  18038. pcre_inc="-I/usr/include/pcre"
  18039. pcre_lib='-L$(libdir)'
  18040. pcre_libdir='$(libdir)'
  18041. elif test -f "/usr/include/pcre.h"; then
  18042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18043. $as_echo "using /usr/include/pcre.h" >&6; }
  18044. pcre_incdir="/usr/include"
  18045. pcre_inc="-I/usr/include"
  18046. pcre_lib='-L$(libdir)'
  18047. pcre_libdir='$(libdir)'
  18048. else
  18049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18050. $as_echo "no" >&6; }
  18051. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18052. fi
  18053. fi
  18054. # BEGIN COPYRIGHT BLOCK
  18055. # Copyright (C) 2009 Red Hat, Inc.
  18056. # All rights reserved.
  18057. #
  18058. # License: GPL (version 3 or any later version).
  18059. # See LICENSE for details.
  18060. # END COPYRIGHT BLOCK
  18061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18062. $as_echo "$as_me: checking for SELinux..." >&6;}
  18063. # check for --with-selinux
  18064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18065. $as_echo_n "checking for --with-selinux... " >&6; }
  18066. # Check whether --with-selinux was given.
  18067. if test "${with_selinux+set}" = set; then :
  18068. withval=$with_selinux;
  18069. if test "$withval" = "no"; then
  18070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18071. $as_echo "no" >&6; }
  18072. else
  18073. with_selinux=yes
  18074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18075. $as_echo "yes" >&6; }
  18076. fi
  18077. else
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18079. $as_echo "no" >&6; }
  18080. fi
  18081. # BEGIN COPYRIGHT BLOCK
  18082. # License: GPL (version 3 or any later version).
  18083. # See LICENSE for details.
  18084. # END COPYRIGHT BLOCK
  18085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nunc-stans..." >&5
  18086. $as_echo "$as_me: checking for nunc-stans..." >&6;}
  18087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans" >&5
  18088. $as_echo_n "checking for --with-nunc-stans... " >&6; }
  18089. # Check whether --with-nunc-stans was given.
  18090. if test "${with_nunc_stans+set}" = set; then :
  18091. withval=$with_nunc_stans;
  18092. if test "$withval" = "yes"; then
  18093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18094. $as_echo "yes" >&6; }
  18095. elif test "$withval" = "no"; then
  18096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18097. $as_echo "no" >&6; }
  18098. elif test -d "$withval"; then
  18099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18100. $as_echo "using $withval" >&6; }
  18101. nunc_stans_lib="-L$withval/lib"
  18102. nunc_stans_libdir="$withval/lib"
  18103. nunc_stans_incdir="$withval/include"
  18104. if ! test -e "$nunc_stans_incdir/nunc-stans/nunc-stans.h" ; then
  18105. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18106. fi
  18107. nunc_stans_inc="-I$nunc_stans_incdir"
  18108. else
  18109. echo
  18110. as_fn_error $? "$withval not found" "$LINENO" 5
  18111. fi
  18112. else
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18114. $as_echo "no" >&6; }
  18115. fi
  18116. # check for --with-nunc-stans-inc
  18117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-inc" >&5
  18118. $as_echo_n "checking for --with-nunc-stans-inc... " >&6; }
  18119. # Check whether --with-nunc-stans-inc was given.
  18120. if test "${with_nunc_stans_inc+set}" = set; then :
  18121. withval=$with_nunc_stans_inc;
  18122. if test -e "$withval"/nunc-stans/nunc-stans.h
  18123. then
  18124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18125. $as_echo "using $withval" >&6; }
  18126. nunc_stans_incdir="$withval"
  18127. nunc_stans_inc="-I$withval"
  18128. else
  18129. echo
  18130. as_fn_error $? "$withval not found" "$LINENO" 5
  18131. fi
  18132. else
  18133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18134. $as_echo "no" >&6; }
  18135. fi
  18136. # check for --with-nunc-stans-lib
  18137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-lib" >&5
  18138. $as_echo_n "checking for --with-nunc-stans-lib... " >&6; }
  18139. # Check whether --with-nunc-stans-lib was given.
  18140. if test "${with_nunc_stans_lib+set}" = set; then :
  18141. withval=$with_nunc_stans_lib;
  18142. if test -d "$withval"
  18143. then
  18144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18145. $as_echo "using $withval" >&6; }
  18146. nunc_stans_lib="-L$withval"
  18147. nunc_stans_libdir="$withval"
  18148. else
  18149. echo
  18150. as_fn_error $? "$withval not found" "$LINENO" 5
  18151. fi
  18152. else
  18153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18154. $as_echo "no" >&6; }
  18155. fi
  18156. # BEGIN COPYRIGHT BLOCK
  18157. # Copyright (C) 2015 Red Hat, Inc.
  18158. # All rights reserved.
  18159. #
  18160. # License: GPL (version 3 or any later version).
  18161. # See LICENSE for details.
  18162. # END COPYRIGHT BLOCK
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd..." >&5
  18164. $as_echo "$as_me: checking for Systemd..." >&6;}
  18165. # check for --with-systemd
  18166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemd" >&5
  18167. $as_echo_n "checking for --with-systemd... " >&6; }
  18168. # Check whether --with-systemd was given.
  18169. if test "${with_systemd+set}" = set; then :
  18170. withval=$with_systemd;
  18171. if test "$withval" = yes
  18172. then
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using systemd native features" >&5
  18174. $as_echo "using systemd native features" >&6; }
  18175. with_systemd=yes
  18176. else
  18177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18178. $as_echo "no" >&6; }
  18179. fi
  18180. else
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18182. $as_echo "no" >&6; }
  18183. fi
  18184. if test "$with_systemd" = yes; then
  18185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-journald" >&5
  18186. $as_echo_n "checking for --with-journald... " >&6; }
  18187. # Check whether --with-journald was given.
  18188. if test "${with_journald+set}" = set; then :
  18189. withval=$with_journald;
  18190. if test "$withval" = yes
  18191. then
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using journald logging: WARNING, this may cause system instability" >&5
  18193. $as_echo "using journald logging: WARNING, this may cause system instability" >&6; }
  18194. with_systemd=yes
  18195. else
  18196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18197. $as_echo "no" >&6; }
  18198. fi
  18199. else
  18200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18201. $as_echo "no" >&6; }
  18202. fi
  18203. # Extract the first word of "pkg-config", so it can be a program name with args.
  18204. set dummy pkg-config; ac_word=$2
  18205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18206. $as_echo_n "checking for $ac_word... " >&6; }
  18207. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18208. $as_echo_n "(cached) " >&6
  18209. else
  18210. case $PKG_CONFIG in
  18211. [\\/]* | ?:[\\/]*)
  18212. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18213. ;;
  18214. *)
  18215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18216. for as_dir in $PATH
  18217. do
  18218. IFS=$as_save_IFS
  18219. test -z "$as_dir" && as_dir=.
  18220. for ac_exec_ext in '' $ac_executable_extensions; do
  18221. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18222. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18224. break 2
  18225. fi
  18226. done
  18227. done
  18228. IFS=$as_save_IFS
  18229. ;;
  18230. esac
  18231. fi
  18232. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18233. if test -n "$PKG_CONFIG"; then
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18235. $as_echo "$PKG_CONFIG" >&6; }
  18236. else
  18237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18238. $as_echo "no" >&6; }
  18239. fi
  18240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd with pkg-config" >&5
  18241. $as_echo_n "checking for Systemd with pkg-config... " >&6; }
  18242. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists libsystemd ; then
  18243. systemd_inc=`$PKG_CONFIG --cflags-only-I libsystemd`
  18244. systemd_lib=`$PKG_CONFIG --libs-only-l libsystemd`
  18245. else
  18246. as_fn_error $? "no Systemd pkg-config files" "$LINENO" 5
  18247. fi
  18248. if test "$with_journald" = yes; then
  18249. systemd_defs="-DWITH_SYSTEMD -DHAVE_JOURNALD"
  18250. else
  18251. systemd_defs="-DWITH_SYSTEMD"
  18252. fi
  18253. # Check for the pkg config provided unit paths
  18254. if test -n "$PKG_CONFIG" ; then
  18255. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  18256. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  18257. fi
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  18259. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  18260. # Check whether --with-systemdsystemunitdir was given.
  18261. if test "${with_systemdsystemunitdir+set}" = set; then :
  18262. withval=$with_systemdsystemunitdir;
  18263. fi
  18264. if test "$with_systemdsystemunitdir" = yes ; then
  18265. if test -n "$default_systemdsystemunitdir" ; then
  18266. with_systemdsystemunitdir=$default_systemdsystemunitdir
  18267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  18268. $as_echo "$with_systemdsystemunitdir" >&6; }
  18269. else
  18270. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  18271. fi
  18272. elif test "$with_systemdsystemunitdir" = no ; then
  18273. with_systemdsystemunitdir=
  18274. else
  18275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  18276. $as_echo "$with_systemdsystemunitdir" >&6; }
  18277. fi
  18278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  18279. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  18280. # Check whether --with-systemdsystemconfdir was given.
  18281. if test "${with_systemdsystemconfdir+set}" = set; then :
  18282. withval=$with_systemdsystemconfdir;
  18283. fi
  18284. if test "$with_systemdsystemconfdir" = yes ; then
  18285. if test -n "$default_systemdsystemconfdir" ; then
  18286. with_systemdsystemconfdir=$default_systemdsystemconfdir
  18287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  18288. $as_echo "$with_systemdsystemconfdir" >&6; }
  18289. else
  18290. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  18291. fi
  18292. elif test "$with_systemdsystemconfdir" = no ; then
  18293. with_systemdsystemconfdir=
  18294. else
  18295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  18296. $as_echo "$with_systemdsystemconfdir" >&6; }
  18297. fi
  18298. if test -z "$with_systemdgroupname" ; then
  18299. with_systemdgroupname=$PACKAGE_NAME.target
  18300. fi
  18301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  18302. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  18303. # Check whether --with-systemdgroupname was given.
  18304. if test "${with_systemdgroupname+set}" = set; then :
  18305. withval=$with_systemdgroupname;
  18306. fi
  18307. if test "$with_systemdgroupname" = yes ; then
  18308. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  18309. elif test "$with_systemdgroupname" = no ; then
  18310. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  18311. else
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  18313. $as_echo "$with_systemdgroupname" >&6; }
  18314. fi
  18315. fi
  18316. # End of with_systemd
  18317. if test -n "$with_systemd"; then
  18318. SYSTEMD_TRUE=
  18319. SYSTEMD_FALSE='#'
  18320. else
  18321. SYSTEMD_TRUE='#'
  18322. SYSTEMD_FALSE=
  18323. fi
  18324. if test -n "$with_journald"; then
  18325. JOURNALD_TRUE=
  18326. JOURNALD_FALSE='#'
  18327. else
  18328. JOURNALD_TRUE='#'
  18329. JOURNALD_FALSE=
  18330. fi
  18331. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18332. # set sasl_path for wrapper scripts
  18333. if test -z "$sasl_libdir" ; then
  18334. sasl_path="$libdir/sasl2"
  18335. else
  18336. sasl_path="$sasl_libdir/sasl2"
  18337. fi
  18338. if test "$with_selinux" = "yes"; then
  18339. SELINUX_TRUE=
  18340. SELINUX_FALSE='#'
  18341. else
  18342. SELINUX_TRUE='#'
  18343. SELINUX_FALSE=
  18344. fi
  18345. if test "$with_openldap" = "yes"; then
  18346. OPENLDAP_TRUE=
  18347. OPENLDAP_FALSE='#'
  18348. else
  18349. OPENLDAP_TRUE='#'
  18350. OPENLDAP_FALSE=
  18351. fi
  18352. if test "$platform" = "solaris"; then
  18353. SOLARIS_TRUE=
  18354. SOLARIS_FALSE='#'
  18355. else
  18356. SOLARIS_TRUE='#'
  18357. SOLARIS_FALSE=
  18358. fi
  18359. if test "x$TARGET" = xSPARC; then
  18360. SPARC_TRUE=
  18361. SPARC_FALSE='#'
  18362. else
  18363. SPARC_TRUE='#'
  18364. SPARC_FALSE=
  18365. fi
  18366. # write out paths for binary components
  18367. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18368. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18369. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18370. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18371. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18372. # we remove them here
  18373. if test "$GCC" != yes ; then
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18375. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18376. cp -p libtool libtool.orig
  18377. cp -p libtool libtool.tmp
  18378. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18379. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18380. # perl produced write-only code . . .
  18381. sed -e '/^gcc_dir/ d' \
  18382. -e '/^gcc_ver/ d' \
  18383. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18384. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18385. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18386. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18387. libtool > libtool.tmp
  18388. cp -p libtool.tmp libtool
  18389. rm -f libtool.tmp
  18390. fi
  18391. ac_config_files="$ac_config_files Makefile rpm/389-ds-base.spec"
  18392. cat >confcache <<\_ACEOF
  18393. # This file is a shell script that caches the results of configure
  18394. # tests run on this system so they can be shared between configure
  18395. # scripts and configure runs, see configure's option --config-cache.
  18396. # It is not useful on other systems. If it contains results you don't
  18397. # want to keep, you may remove or edit it.
  18398. #
  18399. # config.status only pays attention to the cache file if you give it
  18400. # the --recheck option to rerun configure.
  18401. #
  18402. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18403. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18404. # following values.
  18405. _ACEOF
  18406. # The following way of writing the cache mishandles newlines in values,
  18407. # but we know of no workaround that is simple, portable, and efficient.
  18408. # So, we kill variables containing newlines.
  18409. # Ultrix sh set writes to stderr and can't be redirected directly,
  18410. # and sets the high bit in the cache file unless we assign to the vars.
  18411. (
  18412. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18413. eval ac_val=\$$ac_var
  18414. case $ac_val in #(
  18415. *${as_nl}*)
  18416. case $ac_var in #(
  18417. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18418. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18419. esac
  18420. case $ac_var in #(
  18421. _ | IFS | as_nl) ;; #(
  18422. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18423. *) { eval $ac_var=; unset $ac_var;} ;;
  18424. esac ;;
  18425. esac
  18426. done
  18427. (set) 2>&1 |
  18428. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18429. *${as_nl}ac_space=\ *)
  18430. # `set' does not quote correctly, so add quotes: double-quote
  18431. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18432. sed -n \
  18433. "s/'/'\\\\''/g;
  18434. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18435. ;; #(
  18436. *)
  18437. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18438. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18439. ;;
  18440. esac |
  18441. sort
  18442. ) |
  18443. sed '
  18444. /^ac_cv_env_/b end
  18445. t clear
  18446. :clear
  18447. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18448. t end
  18449. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18450. :end' >>confcache
  18451. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18452. if test -w "$cache_file"; then
  18453. if test "x$cache_file" != "x/dev/null"; then
  18454. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18455. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18456. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18457. cat confcache >"$cache_file"
  18458. else
  18459. case $cache_file in #(
  18460. */* | ?:*)
  18461. mv -f confcache "$cache_file"$$ &&
  18462. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18463. *)
  18464. mv -f confcache "$cache_file" ;;
  18465. esac
  18466. fi
  18467. fi
  18468. else
  18469. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18470. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18471. fi
  18472. fi
  18473. rm -f confcache
  18474. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18475. # Let make expand exec_prefix.
  18476. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18477. DEFS=-DHAVE_CONFIG_H
  18478. ac_libobjs=
  18479. ac_ltlibobjs=
  18480. U=
  18481. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18482. # 1. Remove the extension, and $U if already installed.
  18483. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18484. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18485. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18486. # will be set to the directory where LIBOBJS objects are built.
  18487. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18488. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18489. done
  18490. LIBOBJS=$ac_libobjs
  18491. LTLIBOBJS=$ac_ltlibobjs
  18492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18493. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18494. if test -n "$am_sleep_pid"; then
  18495. # Hide warnings about reused PIDs.
  18496. wait $am_sleep_pid 2>/dev/null
  18497. fi
  18498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18499. $as_echo "done" >&6; }
  18500. if test -n "$EXEEXT"; then
  18501. am__EXEEXT_TRUE=
  18502. am__EXEEXT_FALSE='#'
  18503. else
  18504. am__EXEEXT_TRUE='#'
  18505. am__EXEEXT_FALSE=
  18506. fi
  18507. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18508. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18510. fi
  18511. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18512. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18514. fi
  18515. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18516. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18518. fi
  18519. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18520. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18522. fi
  18523. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18524. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18526. fi
  18527. if test -z "${enable_asan_TRUE}" && test -z "${enable_asan_FALSE}"; then
  18528. as_fn_error $? "conditional \"enable_asan\" was never defined.
  18529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18530. fi
  18531. if test -z "${RPM_HARDEND_CC_TRUE}" && test -z "${RPM_HARDEND_CC_FALSE}"; then
  18532. as_fn_error $? "conditional \"RPM_HARDEND_CC\" was never defined.
  18533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18534. fi
  18535. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18536. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18538. fi
  18539. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18540. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18542. fi
  18543. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18544. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18546. fi
  18547. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18548. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18550. fi
  18551. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18552. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18554. fi
  18555. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18556. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18558. fi
  18559. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18560. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18562. fi
  18563. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18564. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18566. fi
  18567. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18568. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18570. fi
  18571. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18572. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18574. fi
  18575. if test -z "${enable_nunc_stans_TRUE}" && test -z "${enable_nunc_stans_FALSE}"; then
  18576. as_fn_error $? "conditional \"enable_nunc_stans\" was never defined.
  18577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18578. fi
  18579. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18580. as_fn_error $? "conditional \"WINNT\" was never defined.
  18581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18582. fi
  18583. if test -z "${INITDDIR_TRUE}" && test -z "${INITDDIR_FALSE}"; then
  18584. as_fn_error $? "conditional \"INITDDIR\" was never defined.
  18585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18586. fi
  18587. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18588. as_fn_error $? "conditional \"HPUX\" was never defined.
  18589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18590. fi
  18591. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18592. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18594. fi
  18595. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18596. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18598. fi
  18599. if test -z "${JOURNALD_TRUE}" && test -z "${JOURNALD_FALSE}"; then
  18600. as_fn_error $? "conditional \"JOURNALD\" was never defined.
  18601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18602. fi
  18603. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18604. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18606. fi
  18607. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18608. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18610. fi
  18611. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18612. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18614. fi
  18615. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18616. as_fn_error $? "conditional \"SPARC\" was never defined.
  18617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18618. fi
  18619. : "${CONFIG_STATUS=./config.status}"
  18620. ac_write_fail=0
  18621. ac_clean_files_save=$ac_clean_files
  18622. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18623. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18624. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18625. as_write_fail=0
  18626. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18627. #! $SHELL
  18628. # Generated by $as_me.
  18629. # Run this file to recreate the current configuration.
  18630. # Compiler output produced by configure, useful for debugging
  18631. # configure, is in config.log if it exists.
  18632. debug=false
  18633. ac_cs_recheck=false
  18634. ac_cs_silent=false
  18635. SHELL=\${CONFIG_SHELL-$SHELL}
  18636. export SHELL
  18637. _ASEOF
  18638. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18639. ## -------------------- ##
  18640. ## M4sh Initialization. ##
  18641. ## -------------------- ##
  18642. # Be more Bourne compatible
  18643. DUALCASE=1; export DUALCASE # for MKS sh
  18644. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18645. emulate sh
  18646. NULLCMD=:
  18647. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18648. # is contrary to our usage. Disable this feature.
  18649. alias -g '${1+"$@"}'='"$@"'
  18650. setopt NO_GLOB_SUBST
  18651. else
  18652. case `(set -o) 2>/dev/null` in #(
  18653. *posix*) :
  18654. set -o posix ;; #(
  18655. *) :
  18656. ;;
  18657. esac
  18658. fi
  18659. as_nl='
  18660. '
  18661. export as_nl
  18662. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18663. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18664. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18665. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18666. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18667. # but without wasting forks for bash or zsh.
  18668. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18669. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18670. as_echo='print -r --'
  18671. as_echo_n='print -rn --'
  18672. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18673. as_echo='printf %s\n'
  18674. as_echo_n='printf %s'
  18675. else
  18676. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18677. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18678. as_echo_n='/usr/ucb/echo -n'
  18679. else
  18680. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18681. as_echo_n_body='eval
  18682. arg=$1;
  18683. case $arg in #(
  18684. *"$as_nl"*)
  18685. expr "X$arg" : "X\\(.*\\)$as_nl";
  18686. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18687. esac;
  18688. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18689. '
  18690. export as_echo_n_body
  18691. as_echo_n='sh -c $as_echo_n_body as_echo'
  18692. fi
  18693. export as_echo_body
  18694. as_echo='sh -c $as_echo_body as_echo'
  18695. fi
  18696. # The user is always right.
  18697. if test "${PATH_SEPARATOR+set}" != set; then
  18698. PATH_SEPARATOR=:
  18699. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18700. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18701. PATH_SEPARATOR=';'
  18702. }
  18703. fi
  18704. # IFS
  18705. # We need space, tab and new line, in precisely that order. Quoting is
  18706. # there to prevent editors from complaining about space-tab.
  18707. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18708. # splitting by setting IFS to empty value.)
  18709. IFS=" "" $as_nl"
  18710. # Find who we are. Look in the path if we contain no directory separator.
  18711. as_myself=
  18712. case $0 in #((
  18713. *[\\/]* ) as_myself=$0 ;;
  18714. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18715. for as_dir in $PATH
  18716. do
  18717. IFS=$as_save_IFS
  18718. test -z "$as_dir" && as_dir=.
  18719. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18720. done
  18721. IFS=$as_save_IFS
  18722. ;;
  18723. esac
  18724. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18725. # in which case we are not to be found in the path.
  18726. if test "x$as_myself" = x; then
  18727. as_myself=$0
  18728. fi
  18729. if test ! -f "$as_myself"; then
  18730. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18731. exit 1
  18732. fi
  18733. # Unset variables that we do not need and which cause bugs (e.g. in
  18734. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18735. # suppresses any "Segmentation fault" message there. '((' could
  18736. # trigger a bug in pdksh 5.2.14.
  18737. for as_var in BASH_ENV ENV MAIL MAILPATH
  18738. do eval test x\${$as_var+set} = xset \
  18739. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18740. done
  18741. PS1='$ '
  18742. PS2='> '
  18743. PS4='+ '
  18744. # NLS nuisances.
  18745. LC_ALL=C
  18746. export LC_ALL
  18747. LANGUAGE=C
  18748. export LANGUAGE
  18749. # CDPATH.
  18750. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18751. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18752. # ----------------------------------------
  18753. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18754. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18755. # script with STATUS, using 1 if that was 0.
  18756. as_fn_error ()
  18757. {
  18758. as_status=$1; test $as_status -eq 0 && as_status=1
  18759. if test "$4"; then
  18760. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18761. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18762. fi
  18763. $as_echo "$as_me: error: $2" >&2
  18764. as_fn_exit $as_status
  18765. } # as_fn_error
  18766. # as_fn_set_status STATUS
  18767. # -----------------------
  18768. # Set $? to STATUS, without forking.
  18769. as_fn_set_status ()
  18770. {
  18771. return $1
  18772. } # as_fn_set_status
  18773. # as_fn_exit STATUS
  18774. # -----------------
  18775. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18776. as_fn_exit ()
  18777. {
  18778. set +e
  18779. as_fn_set_status $1
  18780. exit $1
  18781. } # as_fn_exit
  18782. # as_fn_unset VAR
  18783. # ---------------
  18784. # Portably unset VAR.
  18785. as_fn_unset ()
  18786. {
  18787. { eval $1=; unset $1;}
  18788. }
  18789. as_unset=as_fn_unset
  18790. # as_fn_append VAR VALUE
  18791. # ----------------------
  18792. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18793. # advantage of any shell optimizations that allow amortized linear growth over
  18794. # repeated appends, instead of the typical quadratic growth present in naive
  18795. # implementations.
  18796. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18797. eval 'as_fn_append ()
  18798. {
  18799. eval $1+=\$2
  18800. }'
  18801. else
  18802. as_fn_append ()
  18803. {
  18804. eval $1=\$$1\$2
  18805. }
  18806. fi # as_fn_append
  18807. # as_fn_arith ARG...
  18808. # ------------------
  18809. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18810. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18811. # must be portable across $(()) and expr.
  18812. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18813. eval 'as_fn_arith ()
  18814. {
  18815. as_val=$(( $* ))
  18816. }'
  18817. else
  18818. as_fn_arith ()
  18819. {
  18820. as_val=`expr "$@" || test $? -eq 1`
  18821. }
  18822. fi # as_fn_arith
  18823. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18824. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18825. as_expr=expr
  18826. else
  18827. as_expr=false
  18828. fi
  18829. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18830. as_basename=basename
  18831. else
  18832. as_basename=false
  18833. fi
  18834. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18835. as_dirname=dirname
  18836. else
  18837. as_dirname=false
  18838. fi
  18839. as_me=`$as_basename -- "$0" ||
  18840. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18841. X"$0" : 'X\(//\)$' \| \
  18842. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18843. $as_echo X/"$0" |
  18844. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18845. s//\1/
  18846. q
  18847. }
  18848. /^X\/\(\/\/\)$/{
  18849. s//\1/
  18850. q
  18851. }
  18852. /^X\/\(\/\).*/{
  18853. s//\1/
  18854. q
  18855. }
  18856. s/.*/./; q'`
  18857. # Avoid depending upon Character Ranges.
  18858. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18859. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18860. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18861. as_cr_digits='0123456789'
  18862. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18863. ECHO_C= ECHO_N= ECHO_T=
  18864. case `echo -n x` in #(((((
  18865. -n*)
  18866. case `echo 'xy\c'` in
  18867. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18868. xy) ECHO_C='\c';;
  18869. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18870. ECHO_T=' ';;
  18871. esac;;
  18872. *)
  18873. ECHO_N='-n';;
  18874. esac
  18875. rm -f conf$$ conf$$.exe conf$$.file
  18876. if test -d conf$$.dir; then
  18877. rm -f conf$$.dir/conf$$.file
  18878. else
  18879. rm -f conf$$.dir
  18880. mkdir conf$$.dir 2>/dev/null
  18881. fi
  18882. if (echo >conf$$.file) 2>/dev/null; then
  18883. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18884. as_ln_s='ln -s'
  18885. # ... but there are two gotchas:
  18886. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18887. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18888. # In both cases, we have to default to `cp -pR'.
  18889. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18890. as_ln_s='cp -pR'
  18891. elif ln conf$$.file conf$$ 2>/dev/null; then
  18892. as_ln_s=ln
  18893. else
  18894. as_ln_s='cp -pR'
  18895. fi
  18896. else
  18897. as_ln_s='cp -pR'
  18898. fi
  18899. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18900. rmdir conf$$.dir 2>/dev/null
  18901. # as_fn_mkdir_p
  18902. # -------------
  18903. # Create "$as_dir" as a directory, including parents if necessary.
  18904. as_fn_mkdir_p ()
  18905. {
  18906. case $as_dir in #(
  18907. -*) as_dir=./$as_dir;;
  18908. esac
  18909. test -d "$as_dir" || eval $as_mkdir_p || {
  18910. as_dirs=
  18911. while :; do
  18912. case $as_dir in #(
  18913. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18914. *) as_qdir=$as_dir;;
  18915. esac
  18916. as_dirs="'$as_qdir' $as_dirs"
  18917. as_dir=`$as_dirname -- "$as_dir" ||
  18918. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18919. X"$as_dir" : 'X\(//\)[^/]' \| \
  18920. X"$as_dir" : 'X\(//\)$' \| \
  18921. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18922. $as_echo X"$as_dir" |
  18923. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18924. s//\1/
  18925. q
  18926. }
  18927. /^X\(\/\/\)[^/].*/{
  18928. s//\1/
  18929. q
  18930. }
  18931. /^X\(\/\/\)$/{
  18932. s//\1/
  18933. q
  18934. }
  18935. /^X\(\/\).*/{
  18936. s//\1/
  18937. q
  18938. }
  18939. s/.*/./; q'`
  18940. test -d "$as_dir" && break
  18941. done
  18942. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18943. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18944. } # as_fn_mkdir_p
  18945. if mkdir -p . 2>/dev/null; then
  18946. as_mkdir_p='mkdir -p "$as_dir"'
  18947. else
  18948. test -d ./-p && rmdir ./-p
  18949. as_mkdir_p=false
  18950. fi
  18951. # as_fn_executable_p FILE
  18952. # -----------------------
  18953. # Test if FILE is an executable regular file.
  18954. as_fn_executable_p ()
  18955. {
  18956. test -f "$1" && test -x "$1"
  18957. } # as_fn_executable_p
  18958. as_test_x='test -x'
  18959. as_executable_p=as_fn_executable_p
  18960. # Sed expression to map a string onto a valid CPP name.
  18961. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18962. # Sed expression to map a string onto a valid variable name.
  18963. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18964. exec 6>&1
  18965. ## ----------------------------------- ##
  18966. ## Main body of $CONFIG_STATUS script. ##
  18967. ## ----------------------------------- ##
  18968. _ASEOF
  18969. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18971. # Save the log message, to keep $0 and so on meaningful, and to
  18972. # report actual input values of CONFIG_FILES etc. instead of their
  18973. # values after options handling.
  18974. ac_log="
  18975. This file was extended by dirsrv $as_me 1.0, which was
  18976. generated by GNU Autoconf 2.69. Invocation command line was
  18977. CONFIG_FILES = $CONFIG_FILES
  18978. CONFIG_HEADERS = $CONFIG_HEADERS
  18979. CONFIG_LINKS = $CONFIG_LINKS
  18980. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18981. $ $0 $@
  18982. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18983. "
  18984. _ACEOF
  18985. case $ac_config_files in *"
  18986. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18987. esac
  18988. case $ac_config_headers in *"
  18989. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18990. esac
  18991. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18992. # Files that config.status was made for.
  18993. config_files="$ac_config_files"
  18994. config_headers="$ac_config_headers"
  18995. config_commands="$ac_config_commands"
  18996. _ACEOF
  18997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18998. ac_cs_usage="\
  18999. \`$as_me' instantiates files and other configuration actions
  19000. from templates according to the current configuration. Unless the files
  19001. and actions are specified as TAGs, all are instantiated by default.
  19002. Usage: $0 [OPTION]... [TAG]...
  19003. -h, --help print this help, then exit
  19004. -V, --version print version number and configuration settings, then exit
  19005. --config print configuration, then exit
  19006. -q, --quiet, --silent
  19007. do not print progress messages
  19008. -d, --debug don't remove temporary files
  19009. --recheck update $as_me by reconfiguring in the same conditions
  19010. --file=FILE[:TEMPLATE]
  19011. instantiate the configuration file FILE
  19012. --header=FILE[:TEMPLATE]
  19013. instantiate the configuration header FILE
  19014. Configuration files:
  19015. $config_files
  19016. Configuration headers:
  19017. $config_headers
  19018. Configuration commands:
  19019. $config_commands
  19020. Report bugs to <http://bugzilla.redhat.com/>."
  19021. _ACEOF
  19022. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19023. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19024. ac_cs_version="\\
  19025. dirsrv config.status 1.0
  19026. configured by $0, generated by GNU Autoconf 2.69,
  19027. with options \\"\$ac_cs_config\\"
  19028. Copyright (C) 2012 Free Software Foundation, Inc.
  19029. This config.status script is free software; the Free Software Foundation
  19030. gives unlimited permission to copy, distribute and modify it."
  19031. ac_pwd='$ac_pwd'
  19032. srcdir='$srcdir'
  19033. INSTALL='$INSTALL'
  19034. MKDIR_P='$MKDIR_P'
  19035. AWK='$AWK'
  19036. test -n "\$AWK" || AWK=awk
  19037. _ACEOF
  19038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19039. # The default lists apply if the user does not specify any file.
  19040. ac_need_defaults=:
  19041. while test $# != 0
  19042. do
  19043. case $1 in
  19044. --*=?*)
  19045. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19046. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19047. ac_shift=:
  19048. ;;
  19049. --*=)
  19050. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19051. ac_optarg=
  19052. ac_shift=:
  19053. ;;
  19054. *)
  19055. ac_option=$1
  19056. ac_optarg=$2
  19057. ac_shift=shift
  19058. ;;
  19059. esac
  19060. case $ac_option in
  19061. # Handling of the options.
  19062. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19063. ac_cs_recheck=: ;;
  19064. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19065. $as_echo "$ac_cs_version"; exit ;;
  19066. --config | --confi | --conf | --con | --co | --c )
  19067. $as_echo "$ac_cs_config"; exit ;;
  19068. --debug | --debu | --deb | --de | --d | -d )
  19069. debug=: ;;
  19070. --file | --fil | --fi | --f )
  19071. $ac_shift
  19072. case $ac_optarg in
  19073. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19074. '') as_fn_error $? "missing file argument" ;;
  19075. esac
  19076. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19077. ac_need_defaults=false;;
  19078. --header | --heade | --head | --hea )
  19079. $ac_shift
  19080. case $ac_optarg in
  19081. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19082. esac
  19083. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19084. ac_need_defaults=false;;
  19085. --he | --h)
  19086. # Conflict between --help and --header
  19087. as_fn_error $? "ambiguous option: \`$1'
  19088. Try \`$0 --help' for more information.";;
  19089. --help | --hel | -h )
  19090. $as_echo "$ac_cs_usage"; exit ;;
  19091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19092. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19093. ac_cs_silent=: ;;
  19094. # This is an error.
  19095. -*) as_fn_error $? "unrecognized option: \`$1'
  19096. Try \`$0 --help' for more information." ;;
  19097. *) as_fn_append ac_config_targets " $1"
  19098. ac_need_defaults=false ;;
  19099. esac
  19100. shift
  19101. done
  19102. ac_configure_extra_args=
  19103. if $ac_cs_silent; then
  19104. exec 6>/dev/null
  19105. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19106. fi
  19107. _ACEOF
  19108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19109. if \$ac_cs_recheck; then
  19110. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19111. shift
  19112. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19113. CONFIG_SHELL='$SHELL'
  19114. export CONFIG_SHELL
  19115. exec "\$@"
  19116. fi
  19117. _ACEOF
  19118. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19119. exec 5>>config.log
  19120. {
  19121. echo
  19122. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19123. ## Running $as_me. ##
  19124. _ASBOX
  19125. $as_echo "$ac_log"
  19126. } >&5
  19127. _ACEOF
  19128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19129. #
  19130. # INIT-COMMANDS
  19131. #
  19132. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19133. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19134. # if CDPATH is set.
  19135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19136. sed_quote_subst='$sed_quote_subst'
  19137. double_quote_subst='$double_quote_subst'
  19138. delay_variable_subst='$delay_variable_subst'
  19139. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19140. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19141. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19142. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19143. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19144. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19145. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19146. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19147. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19148. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19149. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19150. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19151. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19152. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19153. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19154. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19155. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19156. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19157. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19158. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19159. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19160. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19161. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19162. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19163. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19164. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19165. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19166. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19167. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19168. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19169. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19170. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19171. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19172. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19173. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19174. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19175. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19176. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19177. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19178. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19179. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19180. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19181. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19182. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19183. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19184. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19185. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19186. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19187. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19188. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19189. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19190. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19191. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19192. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19193. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19194. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19195. 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"`'
  19196. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19197. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19198. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19199. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19200. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19201. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19202. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19203. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19204. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19205. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19206. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19207. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19208. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19209. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19210. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19211. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19212. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19213. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19214. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19215. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19216. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19217. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19218. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19219. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19220. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19221. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19222. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19223. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19224. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19225. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19226. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19227. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19228. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19229. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19230. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19231. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19232. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19233. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19234. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19235. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19236. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19237. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19238. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19239. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19240. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19241. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19242. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19243. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19244. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19245. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19246. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19247. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19248. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19249. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19250. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19251. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19252. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19253. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19254. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19255. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19256. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19257. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19258. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19259. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19260. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19261. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19262. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19263. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19264. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19265. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19266. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19267. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19268. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19269. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19270. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19271. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19272. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19273. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19274. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19275. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19276. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19277. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19278. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19279. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19280. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19281. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19282. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19283. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19284. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19285. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19286. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19287. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19288. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19289. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19290. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19291. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19292. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19293. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19294. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19295. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19296. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19297. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19298. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19299. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19300. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19301. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19302. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19303. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19304. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19305. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19306. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19307. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19308. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19309. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19310. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19311. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19312. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19313. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19314. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19315. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19316. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19317. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19318. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19319. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19320. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19321. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19322. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19323. LTCC='$LTCC'
  19324. LTCFLAGS='$LTCFLAGS'
  19325. compiler='$compiler_DEFAULT'
  19326. # A function that is used when there is no print builtin or printf.
  19327. func_fallback_echo ()
  19328. {
  19329. eval 'cat <<_LTECHO_EOF
  19330. \$1
  19331. _LTECHO_EOF'
  19332. }
  19333. # Quote evaled strings.
  19334. for var in SHELL \
  19335. ECHO \
  19336. PATH_SEPARATOR \
  19337. SED \
  19338. GREP \
  19339. EGREP \
  19340. FGREP \
  19341. LD \
  19342. NM \
  19343. LN_S \
  19344. lt_SP2NL \
  19345. lt_NL2SP \
  19346. reload_flag \
  19347. OBJDUMP \
  19348. deplibs_check_method \
  19349. file_magic_cmd \
  19350. file_magic_glob \
  19351. want_nocaseglob \
  19352. DLLTOOL \
  19353. sharedlib_from_linklib_cmd \
  19354. AR \
  19355. AR_FLAGS \
  19356. archiver_list_spec \
  19357. STRIP \
  19358. RANLIB \
  19359. CC \
  19360. CFLAGS \
  19361. compiler \
  19362. lt_cv_sys_global_symbol_pipe \
  19363. lt_cv_sys_global_symbol_to_cdecl \
  19364. lt_cv_sys_global_symbol_to_c_name_address \
  19365. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19366. nm_file_list_spec \
  19367. lt_prog_compiler_no_builtin_flag \
  19368. lt_prog_compiler_pic \
  19369. lt_prog_compiler_wl \
  19370. lt_prog_compiler_static \
  19371. lt_cv_prog_compiler_c_o \
  19372. need_locks \
  19373. MANIFEST_TOOL \
  19374. DSYMUTIL \
  19375. NMEDIT \
  19376. LIPO \
  19377. OTOOL \
  19378. OTOOL64 \
  19379. shrext_cmds \
  19380. export_dynamic_flag_spec \
  19381. whole_archive_flag_spec \
  19382. compiler_needs_object \
  19383. with_gnu_ld \
  19384. allow_undefined_flag \
  19385. no_undefined_flag \
  19386. hardcode_libdir_flag_spec \
  19387. hardcode_libdir_separator \
  19388. exclude_expsyms \
  19389. include_expsyms \
  19390. file_list_spec \
  19391. variables_saved_for_relink \
  19392. libname_spec \
  19393. library_names_spec \
  19394. soname_spec \
  19395. install_override_mode \
  19396. finish_eval \
  19397. old_striplib \
  19398. striplib \
  19399. compiler_lib_search_dirs \
  19400. predep_objects \
  19401. postdep_objects \
  19402. predeps \
  19403. postdeps \
  19404. compiler_lib_search_path \
  19405. LD_CXX \
  19406. reload_flag_CXX \
  19407. compiler_CXX \
  19408. lt_prog_compiler_no_builtin_flag_CXX \
  19409. lt_prog_compiler_pic_CXX \
  19410. lt_prog_compiler_wl_CXX \
  19411. lt_prog_compiler_static_CXX \
  19412. lt_cv_prog_compiler_c_o_CXX \
  19413. export_dynamic_flag_spec_CXX \
  19414. whole_archive_flag_spec_CXX \
  19415. compiler_needs_object_CXX \
  19416. with_gnu_ld_CXX \
  19417. allow_undefined_flag_CXX \
  19418. no_undefined_flag_CXX \
  19419. hardcode_libdir_flag_spec_CXX \
  19420. hardcode_libdir_separator_CXX \
  19421. exclude_expsyms_CXX \
  19422. include_expsyms_CXX \
  19423. file_list_spec_CXX \
  19424. compiler_lib_search_dirs_CXX \
  19425. predep_objects_CXX \
  19426. postdep_objects_CXX \
  19427. predeps_CXX \
  19428. postdeps_CXX \
  19429. compiler_lib_search_path_CXX; do
  19430. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19431. *[\\\\\\\`\\"\\\$]*)
  19432. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19433. ;;
  19434. *)
  19435. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19436. ;;
  19437. esac
  19438. done
  19439. # Double-quote double-evaled strings.
  19440. for var in reload_cmds \
  19441. old_postinstall_cmds \
  19442. old_postuninstall_cmds \
  19443. old_archive_cmds \
  19444. extract_expsyms_cmds \
  19445. old_archive_from_new_cmds \
  19446. old_archive_from_expsyms_cmds \
  19447. archive_cmds \
  19448. archive_expsym_cmds \
  19449. module_cmds \
  19450. module_expsym_cmds \
  19451. export_symbols_cmds \
  19452. prelink_cmds \
  19453. postlink_cmds \
  19454. postinstall_cmds \
  19455. postuninstall_cmds \
  19456. finish_cmds \
  19457. sys_lib_search_path_spec \
  19458. sys_lib_dlsearch_path_spec \
  19459. reload_cmds_CXX \
  19460. old_archive_cmds_CXX \
  19461. old_archive_from_new_cmds_CXX \
  19462. old_archive_from_expsyms_cmds_CXX \
  19463. archive_cmds_CXX \
  19464. archive_expsym_cmds_CXX \
  19465. module_cmds_CXX \
  19466. module_expsym_cmds_CXX \
  19467. export_symbols_cmds_CXX \
  19468. prelink_cmds_CXX \
  19469. postlink_cmds_CXX; do
  19470. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19471. *[\\\\\\\`\\"\\\$]*)
  19472. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19473. ;;
  19474. *)
  19475. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19476. ;;
  19477. esac
  19478. done
  19479. ac_aux_dir='$ac_aux_dir'
  19480. xsi_shell='$xsi_shell'
  19481. lt_shell_append='$lt_shell_append'
  19482. # See if we are running on zsh, and set the options which allow our
  19483. # commands through without removal of \ escapes INIT.
  19484. if test -n "\${ZSH_VERSION+set}" ; then
  19485. setopt NO_GLOB_SUBST
  19486. fi
  19487. PACKAGE='$PACKAGE'
  19488. VERSION='$VERSION'
  19489. TIMESTAMP='$TIMESTAMP'
  19490. RM='$RM'
  19491. ofile='$ofile'
  19492. _ACEOF
  19493. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19494. # Handling of arguments.
  19495. for ac_config_target in $ac_config_targets
  19496. do
  19497. case $ac_config_target in
  19498. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19499. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19500. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19501. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19502. "rpm/389-ds-base.spec") CONFIG_FILES="$CONFIG_FILES rpm/389-ds-base.spec" ;;
  19503. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19504. esac
  19505. done
  19506. # If the user did not use the arguments to specify the items to instantiate,
  19507. # then the envvar interface is used. Set only those that are not.
  19508. # We use the long form for the default assignment because of an extremely
  19509. # bizarre bug on SunOS 4.1.3.
  19510. if $ac_need_defaults; then
  19511. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19512. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19513. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19514. fi
  19515. # Have a temporary directory for convenience. Make it in the build tree
  19516. # simply because there is no reason against having it here, and in addition,
  19517. # creating and moving files from /tmp can sometimes cause problems.
  19518. # Hook for its removal unless debugging.
  19519. # Note that there is a small window in which the directory will not be cleaned:
  19520. # after its creation but before its name has been assigned to `$tmp'.
  19521. $debug ||
  19522. {
  19523. tmp= ac_tmp=
  19524. trap 'exit_status=$?
  19525. : "${ac_tmp:=$tmp}"
  19526. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19527. ' 0
  19528. trap 'as_fn_exit 1' 1 2 13 15
  19529. }
  19530. # Create a (secure) tmp directory for tmp files.
  19531. {
  19532. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19533. test -d "$tmp"
  19534. } ||
  19535. {
  19536. tmp=./conf$$-$RANDOM
  19537. (umask 077 && mkdir "$tmp")
  19538. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19539. ac_tmp=$tmp
  19540. # Set up the scripts for CONFIG_FILES section.
  19541. # No need to generate them if there are no CONFIG_FILES.
  19542. # This happens for instance with `./config.status config.h'.
  19543. if test -n "$CONFIG_FILES"; then
  19544. ac_cr=`echo X | tr X '\015'`
  19545. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19546. # But we know of no other shell where ac_cr would be empty at this
  19547. # point, so we can use a bashism as a fallback.
  19548. if test "x$ac_cr" = x; then
  19549. eval ac_cr=\$\'\\r\'
  19550. fi
  19551. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19552. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19553. ac_cs_awk_cr='\\r'
  19554. else
  19555. ac_cs_awk_cr=$ac_cr
  19556. fi
  19557. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19558. _ACEOF
  19559. {
  19560. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19561. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19562. echo "_ACEOF"
  19563. } >conf$$subs.sh ||
  19564. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19565. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19566. ac_delim='%!_!# '
  19567. for ac_last_try in false false false false false :; do
  19568. . ./conf$$subs.sh ||
  19569. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19570. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19571. if test $ac_delim_n = $ac_delim_num; then
  19572. break
  19573. elif $ac_last_try; then
  19574. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19575. else
  19576. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19577. fi
  19578. done
  19579. rm -f conf$$subs.sh
  19580. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19581. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19582. _ACEOF
  19583. sed -n '
  19584. h
  19585. s/^/S["/; s/!.*/"]=/
  19586. p
  19587. g
  19588. s/^[^!]*!//
  19589. :repl
  19590. t repl
  19591. s/'"$ac_delim"'$//
  19592. t delim
  19593. :nl
  19594. h
  19595. s/\(.\{148\}\)..*/\1/
  19596. t more1
  19597. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19598. p
  19599. n
  19600. b repl
  19601. :more1
  19602. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19603. p
  19604. g
  19605. s/.\{148\}//
  19606. t nl
  19607. :delim
  19608. h
  19609. s/\(.\{148\}\)..*/\1/
  19610. t more2
  19611. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19612. p
  19613. b
  19614. :more2
  19615. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19616. p
  19617. g
  19618. s/.\{148\}//
  19619. t delim
  19620. ' <conf$$subs.awk | sed '
  19621. /^[^""]/{
  19622. N
  19623. s/\n//
  19624. }
  19625. ' >>$CONFIG_STATUS || ac_write_fail=1
  19626. rm -f conf$$subs.awk
  19627. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19628. _ACAWK
  19629. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19630. for (key in S) S_is_set[key] = 1
  19631. FS = ""
  19632. }
  19633. {
  19634. line = $ 0
  19635. nfields = split(line, field, "@")
  19636. substed = 0
  19637. len = length(field[1])
  19638. for (i = 2; i < nfields; i++) {
  19639. key = field[i]
  19640. keylen = length(key)
  19641. if (S_is_set[key]) {
  19642. value = S[key]
  19643. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19644. len += length(value) + length(field[++i])
  19645. substed = 1
  19646. } else
  19647. len += 1 + keylen
  19648. }
  19649. print line
  19650. }
  19651. _ACAWK
  19652. _ACEOF
  19653. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19654. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19655. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19656. else
  19657. cat
  19658. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19659. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19660. _ACEOF
  19661. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19662. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19663. # trailing colons and then remove the whole line if VPATH becomes empty
  19664. # (actually we leave an empty line to preserve line numbers).
  19665. if test "x$srcdir" = x.; then
  19666. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19667. h
  19668. s///
  19669. s/^/:/
  19670. s/[ ]*$/:/
  19671. s/:\$(srcdir):/:/g
  19672. s/:\${srcdir}:/:/g
  19673. s/:@srcdir@:/:/g
  19674. s/^:*//
  19675. s/:*$//
  19676. x
  19677. s/\(=[ ]*\).*/\1/
  19678. G
  19679. s/\n//
  19680. s/^[^=]*=[ ]*$//
  19681. }'
  19682. fi
  19683. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19684. fi # test -n "$CONFIG_FILES"
  19685. # Set up the scripts for CONFIG_HEADERS section.
  19686. # No need to generate them if there are no CONFIG_HEADERS.
  19687. # This happens for instance with `./config.status Makefile'.
  19688. if test -n "$CONFIG_HEADERS"; then
  19689. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19690. BEGIN {
  19691. _ACEOF
  19692. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19693. # here-document in config.status, that substitutes the proper values into
  19694. # config.h.in to produce config.h.
  19695. # Create a delimiter string that does not exist in confdefs.h, to ease
  19696. # handling of long lines.
  19697. ac_delim='%!_!# '
  19698. for ac_last_try in false false :; do
  19699. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19700. if test -z "$ac_tt"; then
  19701. break
  19702. elif $ac_last_try; then
  19703. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19704. else
  19705. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19706. fi
  19707. done
  19708. # For the awk script, D is an array of macro values keyed by name,
  19709. # likewise P contains macro parameters if any. Preserve backslash
  19710. # newline sequences.
  19711. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19712. sed -n '
  19713. s/.\{148\}/&'"$ac_delim"'/g
  19714. t rset
  19715. :rset
  19716. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19717. t def
  19718. d
  19719. :def
  19720. s/\\$//
  19721. t bsnl
  19722. s/["\\]/\\&/g
  19723. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19724. D["\1"]=" \3"/p
  19725. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19726. d
  19727. :bsnl
  19728. s/["\\]/\\&/g
  19729. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19730. D["\1"]=" \3\\\\\\n"\\/p
  19731. t cont
  19732. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19733. t cont
  19734. d
  19735. :cont
  19736. n
  19737. s/.\{148\}/&'"$ac_delim"'/g
  19738. t clear
  19739. :clear
  19740. s/\\$//
  19741. t bsnlc
  19742. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19743. d
  19744. :bsnlc
  19745. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19746. b cont
  19747. ' <confdefs.h | sed '
  19748. s/'"$ac_delim"'/"\\\
  19749. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19750. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19751. for (key in D) D_is_set[key] = 1
  19752. FS = ""
  19753. }
  19754. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19755. line = \$ 0
  19756. split(line, arg, " ")
  19757. if (arg[1] == "#") {
  19758. defundef = arg[2]
  19759. mac1 = arg[3]
  19760. } else {
  19761. defundef = substr(arg[1], 2)
  19762. mac1 = arg[2]
  19763. }
  19764. split(mac1, mac2, "(") #)
  19765. macro = mac2[1]
  19766. prefix = substr(line, 1, index(line, defundef) - 1)
  19767. if (D_is_set[macro]) {
  19768. # Preserve the white space surrounding the "#".
  19769. print prefix "define", macro P[macro] D[macro]
  19770. next
  19771. } else {
  19772. # Replace #undef with comments. This is necessary, for example,
  19773. # in the case of _POSIX_SOURCE, which is predefined and required
  19774. # on some systems where configure will not decide to define it.
  19775. if (defundef == "undef") {
  19776. print "/*", prefix defundef, macro, "*/"
  19777. next
  19778. }
  19779. }
  19780. }
  19781. { print }
  19782. _ACAWK
  19783. _ACEOF
  19784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19785. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19786. fi # test -n "$CONFIG_HEADERS"
  19787. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19788. shift
  19789. for ac_tag
  19790. do
  19791. case $ac_tag in
  19792. :[FHLC]) ac_mode=$ac_tag; continue;;
  19793. esac
  19794. case $ac_mode$ac_tag in
  19795. :[FHL]*:*);;
  19796. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19797. :[FH]-) ac_tag=-:-;;
  19798. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19799. esac
  19800. ac_save_IFS=$IFS
  19801. IFS=:
  19802. set x $ac_tag
  19803. IFS=$ac_save_IFS
  19804. shift
  19805. ac_file=$1
  19806. shift
  19807. case $ac_mode in
  19808. :L) ac_source=$1;;
  19809. :[FH])
  19810. ac_file_inputs=
  19811. for ac_f
  19812. do
  19813. case $ac_f in
  19814. -) ac_f="$ac_tmp/stdin";;
  19815. *) # Look for the file first in the build tree, then in the source tree
  19816. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19817. # because $ac_f cannot contain `:'.
  19818. test -f "$ac_f" ||
  19819. case $ac_f in
  19820. [\\/$]*) false;;
  19821. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19822. esac ||
  19823. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19824. esac
  19825. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19826. as_fn_append ac_file_inputs " '$ac_f'"
  19827. done
  19828. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19829. # use $as_me), people would be surprised to read:
  19830. # /* config.h. Generated by config.status. */
  19831. configure_input='Generated from '`
  19832. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19833. `' by configure.'
  19834. if test x"$ac_file" != x-; then
  19835. configure_input="$ac_file. $configure_input"
  19836. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19837. $as_echo "$as_me: creating $ac_file" >&6;}
  19838. fi
  19839. # Neutralize special characters interpreted by sed in replacement strings.
  19840. case $configure_input in #(
  19841. *\&* | *\|* | *\\* )
  19842. ac_sed_conf_input=`$as_echo "$configure_input" |
  19843. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19844. *) ac_sed_conf_input=$configure_input;;
  19845. esac
  19846. case $ac_tag in
  19847. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19848. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19849. esac
  19850. ;;
  19851. esac
  19852. ac_dir=`$as_dirname -- "$ac_file" ||
  19853. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19854. X"$ac_file" : 'X\(//\)[^/]' \| \
  19855. X"$ac_file" : 'X\(//\)$' \| \
  19856. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19857. $as_echo X"$ac_file" |
  19858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19859. s//\1/
  19860. q
  19861. }
  19862. /^X\(\/\/\)[^/].*/{
  19863. s//\1/
  19864. q
  19865. }
  19866. /^X\(\/\/\)$/{
  19867. s//\1/
  19868. q
  19869. }
  19870. /^X\(\/\).*/{
  19871. s//\1/
  19872. q
  19873. }
  19874. s/.*/./; q'`
  19875. as_dir="$ac_dir"; as_fn_mkdir_p
  19876. ac_builddir=.
  19877. case "$ac_dir" in
  19878. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19879. *)
  19880. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19881. # A ".." for each directory in $ac_dir_suffix.
  19882. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19883. case $ac_top_builddir_sub in
  19884. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19885. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19886. esac ;;
  19887. esac
  19888. ac_abs_top_builddir=$ac_pwd
  19889. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19890. # for backward compatibility:
  19891. ac_top_builddir=$ac_top_build_prefix
  19892. case $srcdir in
  19893. .) # We are building in place.
  19894. ac_srcdir=.
  19895. ac_top_srcdir=$ac_top_builddir_sub
  19896. ac_abs_top_srcdir=$ac_pwd ;;
  19897. [\\/]* | ?:[\\/]* ) # Absolute name.
  19898. ac_srcdir=$srcdir$ac_dir_suffix;
  19899. ac_top_srcdir=$srcdir
  19900. ac_abs_top_srcdir=$srcdir ;;
  19901. *) # Relative name.
  19902. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19903. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19904. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19905. esac
  19906. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19907. case $ac_mode in
  19908. :F)
  19909. #
  19910. # CONFIG_FILE
  19911. #
  19912. case $INSTALL in
  19913. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19914. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19915. esac
  19916. ac_MKDIR_P=$MKDIR_P
  19917. case $MKDIR_P in
  19918. [\\/$]* | ?:[\\/]* ) ;;
  19919. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19920. esac
  19921. _ACEOF
  19922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19923. # If the template does not know about datarootdir, expand it.
  19924. # FIXME: This hack should be removed a few years after 2.60.
  19925. ac_datarootdir_hack=; ac_datarootdir_seen=
  19926. ac_sed_dataroot='
  19927. /datarootdir/ {
  19928. p
  19929. q
  19930. }
  19931. /@datadir@/p
  19932. /@docdir@/p
  19933. /@infodir@/p
  19934. /@localedir@/p
  19935. /@mandir@/p'
  19936. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19937. *datarootdir*) ac_datarootdir_seen=yes;;
  19938. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19940. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19941. _ACEOF
  19942. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19943. ac_datarootdir_hack='
  19944. s&@datadir@&$datadir&g
  19945. s&@docdir@&$docdir&g
  19946. s&@infodir@&$infodir&g
  19947. s&@localedir@&$localedir&g
  19948. s&@mandir@&$mandir&g
  19949. s&\\\${datarootdir}&$datarootdir&g' ;;
  19950. esac
  19951. _ACEOF
  19952. # Neutralize VPATH when `$srcdir' = `.'.
  19953. # Shell code in configure.ac might set extrasub.
  19954. # FIXME: do we really want to maintain this feature?
  19955. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19956. ac_sed_extra="$ac_vpsub
  19957. $extrasub
  19958. _ACEOF
  19959. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19960. :t
  19961. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19962. s|@configure_input@|$ac_sed_conf_input|;t t
  19963. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19964. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19965. s&@srcdir@&$ac_srcdir&;t t
  19966. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19967. s&@top_srcdir@&$ac_top_srcdir&;t t
  19968. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19969. s&@builddir@&$ac_builddir&;t t
  19970. s&@abs_builddir@&$ac_abs_builddir&;t t
  19971. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19972. s&@INSTALL@&$ac_INSTALL&;t t
  19973. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19974. $ac_datarootdir_hack
  19975. "
  19976. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19977. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19978. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19979. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19980. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19981. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19983. which seems to be undefined. Please make sure it is defined" >&5
  19984. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19985. which seems to be undefined. Please make sure it is defined" >&2;}
  19986. rm -f "$ac_tmp/stdin"
  19987. case $ac_file in
  19988. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19989. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19990. esac \
  19991. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19992. ;;
  19993. :H)
  19994. #
  19995. # CONFIG_HEADER
  19996. #
  19997. if test x"$ac_file" != x-; then
  19998. {
  19999. $as_echo "/* $configure_input */" \
  20000. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20001. } >"$ac_tmp/config.h" \
  20002. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20003. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20004. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20005. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20006. else
  20007. rm -f "$ac_file"
  20008. mv "$ac_tmp/config.h" "$ac_file" \
  20009. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20010. fi
  20011. else
  20012. $as_echo "/* $configure_input */" \
  20013. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20014. || as_fn_error $? "could not create -" "$LINENO" 5
  20015. fi
  20016. # Compute "$ac_file"'s index in $config_headers.
  20017. _am_arg="$ac_file"
  20018. _am_stamp_count=1
  20019. for _am_header in $config_headers :; do
  20020. case $_am_header in
  20021. $_am_arg | $_am_arg:* )
  20022. break ;;
  20023. * )
  20024. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20025. esac
  20026. done
  20027. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20028. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20029. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20030. X"$_am_arg" : 'X\(//\)$' \| \
  20031. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20032. $as_echo X"$_am_arg" |
  20033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20034. s//\1/
  20035. q
  20036. }
  20037. /^X\(\/\/\)[^/].*/{
  20038. s//\1/
  20039. q
  20040. }
  20041. /^X\(\/\/\)$/{
  20042. s//\1/
  20043. q
  20044. }
  20045. /^X\(\/\).*/{
  20046. s//\1/
  20047. q
  20048. }
  20049. s/.*/./; q'`/stamp-h$_am_stamp_count
  20050. ;;
  20051. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20052. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20053. ;;
  20054. esac
  20055. case $ac_file$ac_mode in
  20056. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20057. # Older Autoconf quotes --file arguments for eval, but not when files
  20058. # are listed without --file. Let's play safe and only enable the eval
  20059. # if we detect the quoting.
  20060. case $CONFIG_FILES in
  20061. *\'*) eval set x "$CONFIG_FILES" ;;
  20062. *) set x $CONFIG_FILES ;;
  20063. esac
  20064. shift
  20065. for mf
  20066. do
  20067. # Strip MF so we end up with the name of the file.
  20068. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20069. # Check whether this is an Automake generated Makefile or not.
  20070. # We used to match only the files named 'Makefile.in', but
  20071. # some people rename them; so instead we look at the file content.
  20072. # Grep'ing the first line is not enough: some people post-process
  20073. # each Makefile.in and add a new line on top of each file to say so.
  20074. # Grep'ing the whole file is not good either: AIX grep has a line
  20075. # limit of 2048, but all sed's we know have understand at least 4000.
  20076. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20077. dirpart=`$as_dirname -- "$mf" ||
  20078. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20079. X"$mf" : 'X\(//\)[^/]' \| \
  20080. X"$mf" : 'X\(//\)$' \| \
  20081. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20082. $as_echo X"$mf" |
  20083. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20084. s//\1/
  20085. q
  20086. }
  20087. /^X\(\/\/\)[^/].*/{
  20088. s//\1/
  20089. q
  20090. }
  20091. /^X\(\/\/\)$/{
  20092. s//\1/
  20093. q
  20094. }
  20095. /^X\(\/\).*/{
  20096. s//\1/
  20097. q
  20098. }
  20099. s/.*/./; q'`
  20100. else
  20101. continue
  20102. fi
  20103. # Extract the definition of DEPDIR, am__include, and am__quote
  20104. # from the Makefile without running 'make'.
  20105. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20106. test -z "$DEPDIR" && continue
  20107. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20108. test -z "$am__include" && continue
  20109. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20110. # Find all dependency output files, they are included files with
  20111. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20112. # simplest approach to changing $(DEPDIR) to its actual value in the
  20113. # expansion.
  20114. for file in `sed -n "
  20115. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20116. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  20117. # Make sure the directory exists.
  20118. test -f "$dirpart/$file" && continue
  20119. fdir=`$as_dirname -- "$file" ||
  20120. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20121. X"$file" : 'X\(//\)[^/]' \| \
  20122. X"$file" : 'X\(//\)$' \| \
  20123. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20124. $as_echo X"$file" |
  20125. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20126. s//\1/
  20127. q
  20128. }
  20129. /^X\(\/\/\)[^/].*/{
  20130. s//\1/
  20131. q
  20132. }
  20133. /^X\(\/\/\)$/{
  20134. s//\1/
  20135. q
  20136. }
  20137. /^X\(\/\).*/{
  20138. s//\1/
  20139. q
  20140. }
  20141. s/.*/./; q'`
  20142. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20143. # echo "creating $dirpart/$file"
  20144. echo '# dummy' > "$dirpart/$file"
  20145. done
  20146. done
  20147. }
  20148. ;;
  20149. "libtool":C)
  20150. # See if we are running on zsh, and set the options which allow our
  20151. # commands through without removal of \ escapes.
  20152. if test -n "${ZSH_VERSION+set}" ; then
  20153. setopt NO_GLOB_SUBST
  20154. fi
  20155. cfgfile="${ofile}T"
  20156. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20157. $RM "$cfgfile"
  20158. cat <<_LT_EOF >> "$cfgfile"
  20159. #! $SHELL
  20160. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20161. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20162. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20163. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20164. #
  20165. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20166. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20167. # Foundation, Inc.
  20168. # Written by Gordon Matzigkeit, 1996
  20169. #
  20170. # This file is part of GNU Libtool.
  20171. #
  20172. # GNU Libtool is free software; you can redistribute it and/or
  20173. # modify it under the terms of the GNU General Public License as
  20174. # published by the Free Software Foundation; either version 2 of
  20175. # the License, or (at your option) any later version.
  20176. #
  20177. # As a special exception to the GNU General Public License,
  20178. # if you distribute this file as part of a program or library that
  20179. # is built using GNU Libtool, you may include this file under the
  20180. # same distribution terms that you use for the rest of that program.
  20181. #
  20182. # GNU Libtool is distributed in the hope that it will be useful,
  20183. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20184. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20185. # GNU General Public License for more details.
  20186. #
  20187. # You should have received a copy of the GNU General Public License
  20188. # along with GNU Libtool; see the file COPYING. If not, a copy
  20189. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20190. # obtained by writing to the Free Software Foundation, Inc.,
  20191. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20192. # The names of the tagged configurations supported by this script.
  20193. available_tags="CXX "
  20194. # ### BEGIN LIBTOOL CONFIG
  20195. # Whether or not to build static libraries.
  20196. build_old_libs=$enable_static
  20197. # Which release of libtool.m4 was used?
  20198. macro_version=$macro_version
  20199. macro_revision=$macro_revision
  20200. # Whether or not to build shared libraries.
  20201. build_libtool_libs=$enable_shared
  20202. # What type of objects to build.
  20203. pic_mode=$pic_mode
  20204. # Whether or not to optimize for fast installation.
  20205. fast_install=$enable_fast_install
  20206. # Shell to use when invoking shell scripts.
  20207. SHELL=$lt_SHELL
  20208. # An echo program that protects backslashes.
  20209. ECHO=$lt_ECHO
  20210. # The PATH separator for the build system.
  20211. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20212. # The host system.
  20213. host_alias=$host_alias
  20214. host=$host
  20215. host_os=$host_os
  20216. # The build system.
  20217. build_alias=$build_alias
  20218. build=$build
  20219. build_os=$build_os
  20220. # A sed program that does not truncate output.
  20221. SED=$lt_SED
  20222. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20223. Xsed="\$SED -e 1s/^X//"
  20224. # A grep program that handles long lines.
  20225. GREP=$lt_GREP
  20226. # An ERE matcher.
  20227. EGREP=$lt_EGREP
  20228. # A literal string matcher.
  20229. FGREP=$lt_FGREP
  20230. # A BSD- or MS-compatible name lister.
  20231. NM=$lt_NM
  20232. # Whether we need soft or hard links.
  20233. LN_S=$lt_LN_S
  20234. # What is the maximum length of a command?
  20235. max_cmd_len=$max_cmd_len
  20236. # Object file suffix (normally "o").
  20237. objext=$ac_objext
  20238. # Executable file suffix (normally "").
  20239. exeext=$exeext
  20240. # whether the shell understands "unset".
  20241. lt_unset=$lt_unset
  20242. # turn spaces into newlines.
  20243. SP2NL=$lt_lt_SP2NL
  20244. # turn newlines into spaces.
  20245. NL2SP=$lt_lt_NL2SP
  20246. # convert \$build file names to \$host format.
  20247. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20248. # convert \$build files to toolchain format.
  20249. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20250. # An object symbol dumper.
  20251. OBJDUMP=$lt_OBJDUMP
  20252. # Method to check whether dependent libraries are shared objects.
  20253. deplibs_check_method=$lt_deplibs_check_method
  20254. # Command to use when deplibs_check_method = "file_magic".
  20255. file_magic_cmd=$lt_file_magic_cmd
  20256. # How to find potential files when deplibs_check_method = "file_magic".
  20257. file_magic_glob=$lt_file_magic_glob
  20258. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20259. want_nocaseglob=$lt_want_nocaseglob
  20260. # DLL creation program.
  20261. DLLTOOL=$lt_DLLTOOL
  20262. # Command to associate shared and link libraries.
  20263. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20264. # The archiver.
  20265. AR=$lt_AR
  20266. # Flags to create an archive.
  20267. AR_FLAGS=$lt_AR_FLAGS
  20268. # How to feed a file listing to the archiver.
  20269. archiver_list_spec=$lt_archiver_list_spec
  20270. # A symbol stripping program.
  20271. STRIP=$lt_STRIP
  20272. # Commands used to install an old-style archive.
  20273. RANLIB=$lt_RANLIB
  20274. old_postinstall_cmds=$lt_old_postinstall_cmds
  20275. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20276. # Whether to use a lock for old archive extraction.
  20277. lock_old_archive_extraction=$lock_old_archive_extraction
  20278. # A C compiler.
  20279. LTCC=$lt_CC
  20280. # LTCC compiler flags.
  20281. LTCFLAGS=$lt_CFLAGS
  20282. # Take the output of nm and produce a listing of raw symbols and C names.
  20283. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20284. # Transform the output of nm in a proper C declaration.
  20285. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20286. # Transform the output of nm in a C name address pair.
  20287. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20288. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20289. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20290. # Specify filename containing input files for \$NM.
  20291. nm_file_list_spec=$lt_nm_file_list_spec
  20292. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20293. lt_sysroot=$lt_sysroot
  20294. # The name of the directory that contains temporary libtool files.
  20295. objdir=$objdir
  20296. # Used to examine libraries when file_magic_cmd begins with "file".
  20297. MAGIC_CMD=$MAGIC_CMD
  20298. # Must we lock files when doing compilation?
  20299. need_locks=$lt_need_locks
  20300. # Manifest tool.
  20301. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20302. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20303. DSYMUTIL=$lt_DSYMUTIL
  20304. # Tool to change global to local symbols on Mac OS X.
  20305. NMEDIT=$lt_NMEDIT
  20306. # Tool to manipulate fat objects and archives on Mac OS X.
  20307. LIPO=$lt_LIPO
  20308. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20309. OTOOL=$lt_OTOOL
  20310. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20311. OTOOL64=$lt_OTOOL64
  20312. # Old archive suffix (normally "a").
  20313. libext=$libext
  20314. # Shared library suffix (normally ".so").
  20315. shrext_cmds=$lt_shrext_cmds
  20316. # The commands to extract the exported symbol list from a shared archive.
  20317. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20318. # Variables whose values should be saved in libtool wrapper scripts and
  20319. # restored at link time.
  20320. variables_saved_for_relink=$lt_variables_saved_for_relink
  20321. # Do we need the "lib" prefix for modules?
  20322. need_lib_prefix=$need_lib_prefix
  20323. # Do we need a version for libraries?
  20324. need_version=$need_version
  20325. # Library versioning type.
  20326. version_type=$version_type
  20327. # Shared library runtime path variable.
  20328. runpath_var=$runpath_var
  20329. # Shared library path variable.
  20330. shlibpath_var=$shlibpath_var
  20331. # Is shlibpath searched before the hard-coded library search path?
  20332. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20333. # Format of library name prefix.
  20334. libname_spec=$lt_libname_spec
  20335. # List of archive names. First name is the real one, the rest are links.
  20336. # The last name is the one that the linker finds with -lNAME
  20337. library_names_spec=$lt_library_names_spec
  20338. # The coded name of the library, if different from the real name.
  20339. soname_spec=$lt_soname_spec
  20340. # Permission mode override for installation of shared libraries.
  20341. install_override_mode=$lt_install_override_mode
  20342. # Command to use after installation of a shared archive.
  20343. postinstall_cmds=$lt_postinstall_cmds
  20344. # Command to use after uninstallation of a shared archive.
  20345. postuninstall_cmds=$lt_postuninstall_cmds
  20346. # Commands used to finish a libtool library installation in a directory.
  20347. finish_cmds=$lt_finish_cmds
  20348. # As "finish_cmds", except a single script fragment to be evaled but
  20349. # not shown.
  20350. finish_eval=$lt_finish_eval
  20351. # Whether we should hardcode library paths into libraries.
  20352. hardcode_into_libs=$hardcode_into_libs
  20353. # Compile-time system search path for libraries.
  20354. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20355. # Run-time system search path for libraries.
  20356. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20357. # Whether dlopen is supported.
  20358. dlopen_support=$enable_dlopen
  20359. # Whether dlopen of programs is supported.
  20360. dlopen_self=$enable_dlopen_self
  20361. # Whether dlopen of statically linked programs is supported.
  20362. dlopen_self_static=$enable_dlopen_self_static
  20363. # Commands to strip libraries.
  20364. old_striplib=$lt_old_striplib
  20365. striplib=$lt_striplib
  20366. # The linker used to build libraries.
  20367. LD=$lt_LD
  20368. # How to create reloadable object files.
  20369. reload_flag=$lt_reload_flag
  20370. reload_cmds=$lt_reload_cmds
  20371. # Commands used to build an old-style archive.
  20372. old_archive_cmds=$lt_old_archive_cmds
  20373. # A language specific compiler.
  20374. CC=$lt_compiler
  20375. # Is the compiler the GNU compiler?
  20376. with_gcc=$GCC
  20377. # Compiler flag to turn off builtin functions.
  20378. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20379. # Additional compiler flags for building library objects.
  20380. pic_flag=$lt_lt_prog_compiler_pic
  20381. # How to pass a linker flag through the compiler.
  20382. wl=$lt_lt_prog_compiler_wl
  20383. # Compiler flag to prevent dynamic linking.
  20384. link_static_flag=$lt_lt_prog_compiler_static
  20385. # Does compiler simultaneously support -c and -o options?
  20386. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20387. # Whether or not to add -lc for building shared libraries.
  20388. build_libtool_need_lc=$archive_cmds_need_lc
  20389. # Whether or not to disallow shared libs when runtime libs are static.
  20390. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20391. # Compiler flag to allow reflexive dlopens.
  20392. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20393. # Compiler flag to generate shared objects directly from archives.
  20394. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20395. # Whether the compiler copes with passing no objects directly.
  20396. compiler_needs_object=$lt_compiler_needs_object
  20397. # Create an old-style archive from a shared archive.
  20398. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20399. # Create a temporary old-style archive to link instead of a shared archive.
  20400. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20401. # Commands used to build a shared archive.
  20402. archive_cmds=$lt_archive_cmds
  20403. archive_expsym_cmds=$lt_archive_expsym_cmds
  20404. # Commands used to build a loadable module if different from building
  20405. # a shared archive.
  20406. module_cmds=$lt_module_cmds
  20407. module_expsym_cmds=$lt_module_expsym_cmds
  20408. # Whether we are building with GNU ld or not.
  20409. with_gnu_ld=$lt_with_gnu_ld
  20410. # Flag that allows shared libraries with undefined symbols to be built.
  20411. allow_undefined_flag=$lt_allow_undefined_flag
  20412. # Flag that enforces no undefined symbols.
  20413. no_undefined_flag=$lt_no_undefined_flag
  20414. # Flag to hardcode \$libdir into a binary during linking.
  20415. # This must work even if \$libdir does not exist
  20416. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20417. # Whether we need a single "-rpath" flag with a separated argument.
  20418. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20419. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20420. # DIR into the resulting binary.
  20421. hardcode_direct=$hardcode_direct
  20422. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20423. # DIR into the resulting binary and the resulting library dependency is
  20424. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20425. # library is relocated.
  20426. hardcode_direct_absolute=$hardcode_direct_absolute
  20427. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20428. # into the resulting binary.
  20429. hardcode_minus_L=$hardcode_minus_L
  20430. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20431. # into the resulting binary.
  20432. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20433. # Set to "yes" if building a shared library automatically hardcodes DIR
  20434. # into the library and all subsequent libraries and executables linked
  20435. # against it.
  20436. hardcode_automatic=$hardcode_automatic
  20437. # Set to yes if linker adds runtime paths of dependent libraries
  20438. # to runtime path list.
  20439. inherit_rpath=$inherit_rpath
  20440. # Whether libtool must link a program against all its dependency libraries.
  20441. link_all_deplibs=$link_all_deplibs
  20442. # Set to "yes" if exported symbols are required.
  20443. always_export_symbols=$always_export_symbols
  20444. # The commands to list exported symbols.
  20445. export_symbols_cmds=$lt_export_symbols_cmds
  20446. # Symbols that should not be listed in the preloaded symbols.
  20447. exclude_expsyms=$lt_exclude_expsyms
  20448. # Symbols that must always be exported.
  20449. include_expsyms=$lt_include_expsyms
  20450. # Commands necessary for linking programs (against libraries) with templates.
  20451. prelink_cmds=$lt_prelink_cmds
  20452. # Commands necessary for finishing linking programs.
  20453. postlink_cmds=$lt_postlink_cmds
  20454. # Specify filename containing input files.
  20455. file_list_spec=$lt_file_list_spec
  20456. # How to hardcode a shared library path into an executable.
  20457. hardcode_action=$hardcode_action
  20458. # The directories searched by this compiler when creating a shared library.
  20459. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20460. # Dependencies to place before and after the objects being linked to
  20461. # create a shared library.
  20462. predep_objects=$lt_predep_objects
  20463. postdep_objects=$lt_postdep_objects
  20464. predeps=$lt_predeps
  20465. postdeps=$lt_postdeps
  20466. # The library search path used internally by the compiler when linking
  20467. # a shared library.
  20468. compiler_lib_search_path=$lt_compiler_lib_search_path
  20469. # ### END LIBTOOL CONFIG
  20470. _LT_EOF
  20471. case $host_os in
  20472. aix3*)
  20473. cat <<\_LT_EOF >> "$cfgfile"
  20474. # AIX sometimes has problems with the GCC collect2 program. For some
  20475. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20476. # vanish in a puff of smoke.
  20477. if test "X${COLLECT_NAMES+set}" != Xset; then
  20478. COLLECT_NAMES=
  20479. export COLLECT_NAMES
  20480. fi
  20481. _LT_EOF
  20482. ;;
  20483. esac
  20484. ltmain="$ac_aux_dir/ltmain.sh"
  20485. # We use sed instead of cat because bash on DJGPP gets confused if
  20486. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20487. # text mode, it properly converts lines to CR/LF. This bash problem
  20488. # is reportedly fixed, but why not run on old versions too?
  20489. sed '$q' "$ltmain" >> "$cfgfile" \
  20490. || (rm -f "$cfgfile"; exit 1)
  20491. if test x"$xsi_shell" = xyes; then
  20492. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20493. func_dirname ()\
  20494. {\
  20495. \ case ${1} in\
  20496. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20497. \ * ) func_dirname_result="${3}" ;;\
  20498. \ esac\
  20499. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20500. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20501. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20502. test 0 -eq $? || _lt_function_replace_fail=:
  20503. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20504. func_basename ()\
  20505. {\
  20506. \ func_basename_result="${1##*/}"\
  20507. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20508. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20509. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20510. test 0 -eq $? || _lt_function_replace_fail=:
  20511. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20512. func_dirname_and_basename ()\
  20513. {\
  20514. \ case ${1} in\
  20515. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20516. \ * ) func_dirname_result="${3}" ;;\
  20517. \ esac\
  20518. \ func_basename_result="${1##*/}"\
  20519. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20520. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20521. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20522. test 0 -eq $? || _lt_function_replace_fail=:
  20523. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20524. func_stripname ()\
  20525. {\
  20526. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20527. \ # positional parameters, so assign one to ordinary parameter first.\
  20528. \ func_stripname_result=${3}\
  20529. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20530. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20531. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20532. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20533. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20534. test 0 -eq $? || _lt_function_replace_fail=:
  20535. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20536. func_split_long_opt ()\
  20537. {\
  20538. \ func_split_long_opt_name=${1%%=*}\
  20539. \ func_split_long_opt_arg=${1#*=}\
  20540. } # Extended-shell func_split_long_opt 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_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20545. func_split_short_opt ()\
  20546. {\
  20547. \ func_split_short_opt_arg=${1#??}\
  20548. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20549. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20550. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20551. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20552. test 0 -eq $? || _lt_function_replace_fail=:
  20553. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20554. func_lo2o ()\
  20555. {\
  20556. \ case ${1} in\
  20557. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20558. \ *) func_lo2o_result=${1} ;;\
  20559. \ esac\
  20560. } # Extended-shell func_lo2o 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_xform ()$/,/^} # func_xform /c\
  20565. func_xform ()\
  20566. {\
  20567. func_xform_result=${1%.*}.lo\
  20568. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20569. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20570. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20571. test 0 -eq $? || _lt_function_replace_fail=:
  20572. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20573. func_arith ()\
  20574. {\
  20575. func_arith_result=$(( $* ))\
  20576. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20577. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20578. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20579. test 0 -eq $? || _lt_function_replace_fail=:
  20580. sed -e '/^func_len ()$/,/^} # func_len /c\
  20581. func_len ()\
  20582. {\
  20583. func_len_result=${#1}\
  20584. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20585. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20586. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20587. test 0 -eq $? || _lt_function_replace_fail=:
  20588. fi
  20589. if test x"$lt_shell_append" = xyes; then
  20590. sed -e '/^func_append ()$/,/^} # func_append /c\
  20591. func_append ()\
  20592. {\
  20593. eval "${1}+=\\${2}"\
  20594. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20595. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20596. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20597. test 0 -eq $? || _lt_function_replace_fail=:
  20598. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20599. func_append_quoted ()\
  20600. {\
  20601. \ func_quote_for_eval "${2}"\
  20602. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20603. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20604. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20605. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20606. test 0 -eq $? || _lt_function_replace_fail=:
  20607. # Save a `func_append' function call where possible by direct use of '+='
  20608. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20609. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20610. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20611. test 0 -eq $? || _lt_function_replace_fail=:
  20612. else
  20613. # Save a `func_append' function call even when '+=' is not available
  20614. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20615. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20616. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20617. test 0 -eq $? || _lt_function_replace_fail=:
  20618. fi
  20619. if test x"$_lt_function_replace_fail" = x":"; then
  20620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20621. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20622. fi
  20623. mv -f "$cfgfile" "$ofile" ||
  20624. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20625. chmod +x "$ofile"
  20626. cat <<_LT_EOF >> "$ofile"
  20627. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20628. # The linker used to build libraries.
  20629. LD=$lt_LD_CXX
  20630. # How to create reloadable object files.
  20631. reload_flag=$lt_reload_flag_CXX
  20632. reload_cmds=$lt_reload_cmds_CXX
  20633. # Commands used to build an old-style archive.
  20634. old_archive_cmds=$lt_old_archive_cmds_CXX
  20635. # A language specific compiler.
  20636. CC=$lt_compiler_CXX
  20637. # Is the compiler the GNU compiler?
  20638. with_gcc=$GCC_CXX
  20639. # Compiler flag to turn off builtin functions.
  20640. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20641. # Additional compiler flags for building library objects.
  20642. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20643. # How to pass a linker flag through the compiler.
  20644. wl=$lt_lt_prog_compiler_wl_CXX
  20645. # Compiler flag to prevent dynamic linking.
  20646. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20647. # Does compiler simultaneously support -c and -o options?
  20648. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20649. # Whether or not to add -lc for building shared libraries.
  20650. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20651. # Whether or not to disallow shared libs when runtime libs are static.
  20652. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20653. # Compiler flag to allow reflexive dlopens.
  20654. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20655. # Compiler flag to generate shared objects directly from archives.
  20656. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20657. # Whether the compiler copes with passing no objects directly.
  20658. compiler_needs_object=$lt_compiler_needs_object_CXX
  20659. # Create an old-style archive from a shared archive.
  20660. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20661. # Create a temporary old-style archive to link instead of a shared archive.
  20662. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20663. # Commands used to build a shared archive.
  20664. archive_cmds=$lt_archive_cmds_CXX
  20665. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20666. # Commands used to build a loadable module if different from building
  20667. # a shared archive.
  20668. module_cmds=$lt_module_cmds_CXX
  20669. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20670. # Whether we are building with GNU ld or not.
  20671. with_gnu_ld=$lt_with_gnu_ld_CXX
  20672. # Flag that allows shared libraries with undefined symbols to be built.
  20673. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20674. # Flag that enforces no undefined symbols.
  20675. no_undefined_flag=$lt_no_undefined_flag_CXX
  20676. # Flag to hardcode \$libdir into a binary during linking.
  20677. # This must work even if \$libdir does not exist
  20678. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20679. # Whether we need a single "-rpath" flag with a separated argument.
  20680. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20681. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20682. # DIR into the resulting binary.
  20683. hardcode_direct=$hardcode_direct_CXX
  20684. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20685. # DIR into the resulting binary and the resulting library dependency is
  20686. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20687. # library is relocated.
  20688. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20689. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20690. # into the resulting binary.
  20691. hardcode_minus_L=$hardcode_minus_L_CXX
  20692. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20693. # into the resulting binary.
  20694. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20695. # Set to "yes" if building a shared library automatically hardcodes DIR
  20696. # into the library and all subsequent libraries and executables linked
  20697. # against it.
  20698. hardcode_automatic=$hardcode_automatic_CXX
  20699. # Set to yes if linker adds runtime paths of dependent libraries
  20700. # to runtime path list.
  20701. inherit_rpath=$inherit_rpath_CXX
  20702. # Whether libtool must link a program against all its dependency libraries.
  20703. link_all_deplibs=$link_all_deplibs_CXX
  20704. # Set to "yes" if exported symbols are required.
  20705. always_export_symbols=$always_export_symbols_CXX
  20706. # The commands to list exported symbols.
  20707. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20708. # Symbols that should not be listed in the preloaded symbols.
  20709. exclude_expsyms=$lt_exclude_expsyms_CXX
  20710. # Symbols that must always be exported.
  20711. include_expsyms=$lt_include_expsyms_CXX
  20712. # Commands necessary for linking programs (against libraries) with templates.
  20713. prelink_cmds=$lt_prelink_cmds_CXX
  20714. # Commands necessary for finishing linking programs.
  20715. postlink_cmds=$lt_postlink_cmds_CXX
  20716. # Specify filename containing input files.
  20717. file_list_spec=$lt_file_list_spec_CXX
  20718. # How to hardcode a shared library path into an executable.
  20719. hardcode_action=$hardcode_action_CXX
  20720. # The directories searched by this compiler when creating a shared library.
  20721. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20722. # Dependencies to place before and after the objects being linked to
  20723. # create a shared library.
  20724. predep_objects=$lt_predep_objects_CXX
  20725. postdep_objects=$lt_postdep_objects_CXX
  20726. predeps=$lt_predeps_CXX
  20727. postdeps=$lt_postdeps_CXX
  20728. # The library search path used internally by the compiler when linking
  20729. # a shared library.
  20730. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20731. # ### END LIBTOOL TAG CONFIG: CXX
  20732. _LT_EOF
  20733. ;;
  20734. esac
  20735. done # for ac_tag
  20736. as_fn_exit 0
  20737. _ACEOF
  20738. ac_clean_files=$ac_clean_files_save
  20739. test $ac_write_fail = 0 ||
  20740. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20741. # configure is writing to config.log, and then calls config.status.
  20742. # config.status does its own redirection, appending to config.log.
  20743. # Unfortunately, on DOS this fails, as config.log is still kept open
  20744. # by configure, so config.status won't be able to write to it; its
  20745. # output is simply discarded. So we exec the FD to /dev/null,
  20746. # effectively closing config.log, so it can be properly (re)opened and
  20747. # appended to by config.status. When coming back to configure, we
  20748. # need to make the FD available again.
  20749. if test "$no_create" != yes; then
  20750. ac_cs_success=:
  20751. ac_config_status_args=
  20752. test "$silent" = yes &&
  20753. ac_config_status_args="$ac_config_status_args --quiet"
  20754. exec 5>/dev/null
  20755. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20756. exec 5>>config.log
  20757. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20758. # would make configure fail if this is the last instruction.
  20759. $ac_cs_success || as_fn_exit 1
  20760. fi
  20761. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20763. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20764. fi