configure 716 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298
  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. with_selinux
  645. kerberos_libdir
  646. kerberos_lib
  647. kerberos_inc
  648. KRB5_CONFIG_BIN
  649. NETSNMP_CONFIG
  650. ICU_CONFIG
  651. ldap_lib_ldif
  652. SYSTEMD_FALSE
  653. SYSTEMD_TRUE
  654. SOLARIS_FALSE
  655. SOLARIS_TRUE
  656. HPUX_FALSE
  657. HPUX_TRUE
  658. initconfigdir
  659. sttyexec
  660. perlexec
  661. initdir
  662. LIBCRUN
  663. LIBCSTD
  664. LIBDL
  665. LIBNSL
  666. LIBSOCKET
  667. LIBCRYPT
  668. THREADLIB
  669. WINNT_FALSE
  670. WINNT_TRUE
  671. instconfigdir
  672. defaultgroup
  673. defaultuser
  674. updatedir
  675. mibdir
  676. infdir
  677. pythondir
  678. perldir
  679. scripttemplatedir
  680. serverplugindir
  681. serverincdir
  682. serverdir
  683. schemadir
  684. propertydir
  685. sampledatadir
  686. configdir
  687. with_systemdgroupname
  688. with_systemdsystemconfdir
  689. with_systemdsystemunitdir
  690. PKG_CONFIG_LIBDIR
  691. PKG_CONFIG_PATH
  692. PKG_CONFIG
  693. with_tmpfiles_d
  694. with_fhs_opt
  695. enable_nunc_stans_FALSE
  696. enable_nunc_stans_TRUE
  697. enable_posix_winsync_FALSE
  698. enable_posix_winsync_TRUE
  699. enable_acctpolicy_FALSE
  700. enable_acctpolicy_TRUE
  701. enable_presence_FALSE
  702. enable_presence_TRUE
  703. enable_bitwise_FALSE
  704. enable_bitwise_TRUE
  705. enable_auto_dn_suffix_FALSE
  706. enable_auto_dn_suffix_TRUE
  707. enable_autobind_FALSE
  708. enable_autobind_TRUE
  709. enable_ldapi_FALSE
  710. enable_ldapi_TRUE
  711. enable_dna_FALSE
  712. enable_dna_TRUE
  713. enable_pam_passthru_FALSE
  714. enable_pam_passthru_TRUE
  715. BUNDLE_FALSE
  716. BUNDLE_TRUE
  717. gccsec_defs
  718. RPM_HARDEND_CC_FALSE
  719. RPM_HARDEND_CC_TRUE
  720. asan_defs
  721. debug_defs
  722. LIBOBJS
  723. CXXCPP
  724. CPP
  725. OTOOL64
  726. OTOOL
  727. LIPO
  728. NMEDIT
  729. DSYMUTIL
  730. MANIFEST_TOOL
  731. RANLIB
  732. ac_ct_AR
  733. AR
  734. DLLTOOL
  735. OBJDUMP
  736. LN_S
  737. NM
  738. ac_ct_DUMPBIN
  739. DUMPBIN
  740. LD
  741. FGREP
  742. EGREP
  743. GREP
  744. SED
  745. LIBTOOL
  746. am__fastdepCCAS_FALSE
  747. am__fastdepCCAS_TRUE
  748. CCASDEPMODE
  749. CCASFLAGS
  750. CCAS
  751. am__fastdepCC_FALSE
  752. am__fastdepCC_TRUE
  753. CCDEPMODE
  754. ac_ct_CC
  755. CFLAGS
  756. CC
  757. am__fastdepCXX_FALSE
  758. am__fastdepCXX_TRUE
  759. CXXDEPMODE
  760. am__nodep
  761. AMDEPBACKSLASH
  762. AMDEP_FALSE
  763. AMDEP_TRUE
  764. am__quote
  765. am__include
  766. DEPDIR
  767. OBJEXT
  768. EXEEXT
  769. ac_ct_CXX
  770. CPPFLAGS
  771. LDFLAGS
  772. CXXFLAGS
  773. CXX
  774. host_os
  775. host_vendor
  776. host_cpu
  777. host
  778. build_os
  779. build_vendor
  780. build_cpu
  781. build
  782. MAINT
  783. MAINTAINER_MODE_FALSE
  784. MAINTAINER_MODE_TRUE
  785. CONSOLE_VERSION
  786. RPM_RELEASE
  787. RPM_VERSION
  788. AM_BACKSLASH
  789. AM_DEFAULT_VERBOSITY
  790. AM_DEFAULT_V
  791. AM_V
  792. am__untar
  793. am__tar
  794. AMTAR
  795. am__leading_dot
  796. SET_MAKE
  797. AWK
  798. mkdir_p
  799. MKDIR_P
  800. INSTALL_STRIP_PROGRAM
  801. STRIP
  802. install_sh
  803. MAKEINFO
  804. AUTOHEADER
  805. AUTOMAKE
  806. AUTOCONF
  807. ACLOCAL
  808. VERSION
  809. PACKAGE
  810. CYGPATH_W
  811. am__isrc
  812. INSTALL_DATA
  813. INSTALL_SCRIPT
  814. INSTALL_PROGRAM
  815. target_alias
  816. host_alias
  817. build_alias
  818. LIBS
  819. ECHO_T
  820. ECHO_N
  821. ECHO_C
  822. DEFS
  823. mandir
  824. localedir
  825. libdir
  826. psdir
  827. pdfdir
  828. dvidir
  829. htmldir
  830. infodir
  831. docdir
  832. oldincludedir
  833. includedir
  834. localstatedir
  835. sharedstatedir
  836. sysconfdir
  837. datadir
  838. datarootdir
  839. libexecdir
  840. sbindir
  841. bindir
  842. program_transform_name
  843. prefix
  844. exec_prefix
  845. PACKAGE_URL
  846. PACKAGE_BUGREPORT
  847. PACKAGE_STRING
  848. PACKAGE_VERSION
  849. PACKAGE_TARNAME
  850. PACKAGE_NAME
  851. PATH_SEPARATOR
  852. SHELL'
  853. ac_subst_files=''
  854. ac_user_opts='
  855. enable_option_checking
  856. enable_silent_rules
  857. enable_maintainer_mode
  858. enable_dependency_tracking
  859. enable_static
  860. enable_shared
  861. with_pic
  862. enable_fast_install
  863. with_gnu_ld
  864. with_sysroot
  865. enable_libtool_lock
  866. enable_debug
  867. enable_asan
  868. enable_gcc_security
  869. enable_bundle
  870. enable_pam_passthru
  871. enable_dna
  872. enable_ldapi
  873. enable_autobind
  874. enable_bitwise
  875. enable_presence
  876. enable_acctpolicy
  877. enable_posix_winsync
  878. enable_nunc_stans
  879. with_fhs
  880. with_fhs_opt
  881. with_tmpfiles_d
  882. with_perldir
  883. with_pythondir
  884. with_systemdsystemunitdir
  885. with_systemdsystemconfdir
  886. with_systemdgroupname
  887. with_instconfigdir
  888. with_initddir
  889. with_nspr
  890. with_nspr_inc
  891. with_nspr_lib
  892. with_nss
  893. with_nss_inc
  894. with_nss_lib
  895. with_openldap
  896. with_openldap_inc
  897. with_openldap_lib
  898. with_openldap_bin
  899. with_ldapsdk
  900. with_ldapsdk_inc
  901. with_ldapsdk_lib
  902. with_ldapsdk_bin
  903. with_db
  904. with_db_inc
  905. with_db_lib
  906. with_sasl
  907. with_sasl_inc
  908. with_sasl_lib
  909. with_svrcore
  910. with_svrcore_inc
  911. with_svrcore_lib
  912. with_icu
  913. with_icu_inc
  914. with_icu_lib
  915. with_icu_bin
  916. with_netsnmp
  917. with_netsnmp_inc
  918. with_netsnmp_lib
  919. with_kerberos
  920. with_kerberos_inc
  921. with_kerberos_lib
  922. with_pcre
  923. with_selinux
  924. with_nunc_stans
  925. with_nunc_stans_inc
  926. with_nunc_stans_lib
  927. with_systemd
  928. '
  929. ac_precious_vars='build_alias
  930. host_alias
  931. target_alias
  932. CXX
  933. CXXFLAGS
  934. LDFLAGS
  935. LIBS
  936. CPPFLAGS
  937. CCC
  938. CC
  939. CFLAGS
  940. CCAS
  941. CCASFLAGS
  942. CPP
  943. CXXCPP
  944. PKG_CONFIG
  945. PKG_CONFIG_PATH
  946. PKG_CONFIG_LIBDIR'
  947. # Initialize some variables set by options.
  948. ac_init_help=
  949. ac_init_version=false
  950. ac_unrecognized_opts=
  951. ac_unrecognized_sep=
  952. # The variables have the same names as the options, with
  953. # dashes changed to underlines.
  954. cache_file=/dev/null
  955. exec_prefix=NONE
  956. no_create=
  957. no_recursion=
  958. prefix=NONE
  959. program_prefix=NONE
  960. program_suffix=NONE
  961. program_transform_name=s,x,x,
  962. silent=
  963. site=
  964. srcdir=
  965. verbose=
  966. x_includes=NONE
  967. x_libraries=NONE
  968. # Installation directory options.
  969. # These are left unexpanded so users can "make install exec_prefix=/foo"
  970. # and all the variables that are supposed to be based on exec_prefix
  971. # by default will actually change.
  972. # Use braces instead of parens because sh, perl, etc. also accept them.
  973. # (The list follows the same order as the GNU Coding Standards.)
  974. bindir='${exec_prefix}/bin'
  975. sbindir='${exec_prefix}/sbin'
  976. libexecdir='${exec_prefix}/libexec'
  977. datarootdir='${prefix}/share'
  978. datadir='${datarootdir}'
  979. sysconfdir='${prefix}/etc'
  980. sharedstatedir='${prefix}/com'
  981. localstatedir='${prefix}/var'
  982. includedir='${prefix}/include'
  983. oldincludedir='/usr/include'
  984. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  985. infodir='${datarootdir}/info'
  986. htmldir='${docdir}'
  987. dvidir='${docdir}'
  988. pdfdir='${docdir}'
  989. psdir='${docdir}'
  990. libdir='${exec_prefix}/lib'
  991. localedir='${datarootdir}/locale'
  992. mandir='${datarootdir}/man'
  993. ac_prev=
  994. ac_dashdash=
  995. for ac_option
  996. do
  997. # If the previous option needs an argument, assign it.
  998. if test -n "$ac_prev"; then
  999. eval $ac_prev=\$ac_option
  1000. ac_prev=
  1001. continue
  1002. fi
  1003. case $ac_option in
  1004. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1005. *=) ac_optarg= ;;
  1006. *) ac_optarg=yes ;;
  1007. esac
  1008. # Accept the important Cygnus configure options, so we can diagnose typos.
  1009. case $ac_dashdash$ac_option in
  1010. --)
  1011. ac_dashdash=yes ;;
  1012. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1013. ac_prev=bindir ;;
  1014. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1015. bindir=$ac_optarg ;;
  1016. -build | --build | --buil | --bui | --bu)
  1017. ac_prev=build_alias ;;
  1018. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1019. build_alias=$ac_optarg ;;
  1020. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1021. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1022. ac_prev=cache_file ;;
  1023. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1024. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1025. cache_file=$ac_optarg ;;
  1026. --config-cache | -C)
  1027. cache_file=config.cache ;;
  1028. -datadir | --datadir | --datadi | --datad)
  1029. ac_prev=datadir ;;
  1030. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1031. datadir=$ac_optarg ;;
  1032. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1033. | --dataroo | --dataro | --datar)
  1034. ac_prev=datarootdir ;;
  1035. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1036. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1037. datarootdir=$ac_optarg ;;
  1038. -disable-* | --disable-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1040. # Reject names that are not valid shell variable names.
  1041. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1042. as_fn_error $? "invalid feature name: $ac_useropt"
  1043. ac_useropt_orig=$ac_useropt
  1044. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1045. case $ac_user_opts in
  1046. *"
  1047. "enable_$ac_useropt"
  1048. "*) ;;
  1049. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval enable_$ac_useropt=no ;;
  1053. -docdir | --docdir | --docdi | --doc | --do)
  1054. ac_prev=docdir ;;
  1055. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1056. docdir=$ac_optarg ;;
  1057. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1058. ac_prev=dvidir ;;
  1059. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1060. dvidir=$ac_optarg ;;
  1061. -enable-* | --enable-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error $? "invalid feature name: $ac_useropt"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "enable_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval enable_$ac_useropt=\$ac_optarg ;;
  1076. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1077. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1078. | --exec | --exe | --ex)
  1079. ac_prev=exec_prefix ;;
  1080. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1081. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1082. | --exec=* | --exe=* | --ex=*)
  1083. exec_prefix=$ac_optarg ;;
  1084. -gas | --gas | --ga | --g)
  1085. # Obsolete; use --with-gas.
  1086. with_gas=yes ;;
  1087. -help | --help | --hel | --he | -h)
  1088. ac_init_help=long ;;
  1089. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1090. ac_init_help=recursive ;;
  1091. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1092. ac_init_help=short ;;
  1093. -host | --host | --hos | --ho)
  1094. ac_prev=host_alias ;;
  1095. -host=* | --host=* | --hos=* | --ho=*)
  1096. host_alias=$ac_optarg ;;
  1097. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1098. ac_prev=htmldir ;;
  1099. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1100. | --ht=*)
  1101. htmldir=$ac_optarg ;;
  1102. -includedir | --includedir | --includedi | --included | --include \
  1103. | --includ | --inclu | --incl | --inc)
  1104. ac_prev=includedir ;;
  1105. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1106. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1107. includedir=$ac_optarg ;;
  1108. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1109. ac_prev=infodir ;;
  1110. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1111. infodir=$ac_optarg ;;
  1112. -libdir | --libdir | --libdi | --libd)
  1113. ac_prev=libdir ;;
  1114. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1115. libdir=$ac_optarg ;;
  1116. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1117. | --libexe | --libex | --libe)
  1118. ac_prev=libexecdir ;;
  1119. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1120. | --libexe=* | --libex=* | --libe=*)
  1121. libexecdir=$ac_optarg ;;
  1122. -localedir | --localedir | --localedi | --localed | --locale)
  1123. ac_prev=localedir ;;
  1124. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1125. localedir=$ac_optarg ;;
  1126. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1127. | --localstate | --localstat | --localsta | --localst | --locals)
  1128. ac_prev=localstatedir ;;
  1129. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1130. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1131. localstatedir=$ac_optarg ;;
  1132. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1133. ac_prev=mandir ;;
  1134. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1135. mandir=$ac_optarg ;;
  1136. -nfp | --nfp | --nf)
  1137. # Obsolete; use --without-fp.
  1138. with_fp=no ;;
  1139. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1140. | --no-cr | --no-c | -n)
  1141. no_create=yes ;;
  1142. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1143. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1144. no_recursion=yes ;;
  1145. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1146. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1147. | --oldin | --oldi | --old | --ol | --o)
  1148. ac_prev=oldincludedir ;;
  1149. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1150. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1151. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1152. oldincludedir=$ac_optarg ;;
  1153. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1154. ac_prev=prefix ;;
  1155. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1156. prefix=$ac_optarg ;;
  1157. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1158. | --program-pre | --program-pr | --program-p)
  1159. ac_prev=program_prefix ;;
  1160. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1161. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1162. program_prefix=$ac_optarg ;;
  1163. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1164. | --program-suf | --program-su | --program-s)
  1165. ac_prev=program_suffix ;;
  1166. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1167. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1168. program_suffix=$ac_optarg ;;
  1169. -program-transform-name | --program-transform-name \
  1170. | --program-transform-nam | --program-transform-na \
  1171. | --program-transform-n | --program-transform- \
  1172. | --program-transform | --program-transfor \
  1173. | --program-transfo | --program-transf \
  1174. | --program-trans | --program-tran \
  1175. | --progr-tra | --program-tr | --program-t)
  1176. ac_prev=program_transform_name ;;
  1177. -program-transform-name=* | --program-transform-name=* \
  1178. | --program-transform-nam=* | --program-transform-na=* \
  1179. | --program-transform-n=* | --program-transform-=* \
  1180. | --program-transform=* | --program-transfor=* \
  1181. | --program-transfo=* | --program-transf=* \
  1182. | --program-trans=* | --program-tran=* \
  1183. | --progr-tra=* | --program-tr=* | --program-t=*)
  1184. program_transform_name=$ac_optarg ;;
  1185. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1186. ac_prev=pdfdir ;;
  1187. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1188. pdfdir=$ac_optarg ;;
  1189. -psdir | --psdir | --psdi | --psd | --ps)
  1190. ac_prev=psdir ;;
  1191. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1192. psdir=$ac_optarg ;;
  1193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1194. | -silent | --silent | --silen | --sile | --sil)
  1195. silent=yes ;;
  1196. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1197. ac_prev=sbindir ;;
  1198. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1199. | --sbi=* | --sb=*)
  1200. sbindir=$ac_optarg ;;
  1201. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1202. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1203. | --sharedst | --shareds | --shared | --share | --shar \
  1204. | --sha | --sh)
  1205. ac_prev=sharedstatedir ;;
  1206. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1207. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1208. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1209. | --sha=* | --sh=*)
  1210. sharedstatedir=$ac_optarg ;;
  1211. -site | --site | --sit)
  1212. ac_prev=site ;;
  1213. -site=* | --site=* | --sit=*)
  1214. site=$ac_optarg ;;
  1215. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1216. ac_prev=srcdir ;;
  1217. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1218. srcdir=$ac_optarg ;;
  1219. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1220. | --syscon | --sysco | --sysc | --sys | --sy)
  1221. ac_prev=sysconfdir ;;
  1222. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1223. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1224. sysconfdir=$ac_optarg ;;
  1225. -target | --target | --targe | --targ | --tar | --ta | --t)
  1226. ac_prev=target_alias ;;
  1227. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1228. target_alias=$ac_optarg ;;
  1229. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1230. verbose=yes ;;
  1231. -version | --version | --versio | --versi | --vers | -V)
  1232. ac_init_version=: ;;
  1233. -with-* | --with-*)
  1234. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1235. # Reject names that are not valid shell variable names.
  1236. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1237. as_fn_error $? "invalid package name: $ac_useropt"
  1238. ac_useropt_orig=$ac_useropt
  1239. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1240. case $ac_user_opts in
  1241. *"
  1242. "with_$ac_useropt"
  1243. "*) ;;
  1244. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1245. ac_unrecognized_sep=', ';;
  1246. esac
  1247. eval with_$ac_useropt=\$ac_optarg ;;
  1248. -without-* | --without-*)
  1249. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1250. # Reject names that are not valid shell variable names.
  1251. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1252. as_fn_error $? "invalid package name: $ac_useropt"
  1253. ac_useropt_orig=$ac_useropt
  1254. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1255. case $ac_user_opts in
  1256. *"
  1257. "with_$ac_useropt"
  1258. "*) ;;
  1259. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1260. ac_unrecognized_sep=', ';;
  1261. esac
  1262. eval with_$ac_useropt=no ;;
  1263. --x)
  1264. # Obsolete; use --with-x.
  1265. with_x=yes ;;
  1266. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1267. | --x-incl | --x-inc | --x-in | --x-i)
  1268. ac_prev=x_includes ;;
  1269. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1270. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1271. x_includes=$ac_optarg ;;
  1272. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1273. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1274. ac_prev=x_libraries ;;
  1275. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1276. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1277. x_libraries=$ac_optarg ;;
  1278. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1279. Try \`$0 --help' for more information"
  1280. ;;
  1281. *=*)
  1282. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1283. # Reject names that are not valid shell variable names.
  1284. case $ac_envvar in #(
  1285. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1286. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1287. esac
  1288. eval $ac_envvar=\$ac_optarg
  1289. export $ac_envvar ;;
  1290. *)
  1291. # FIXME: should be removed in autoconf 3.0.
  1292. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1293. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1294. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1295. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1296. ;;
  1297. esac
  1298. done
  1299. if test -n "$ac_prev"; then
  1300. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1301. as_fn_error $? "missing argument to $ac_option"
  1302. fi
  1303. if test -n "$ac_unrecognized_opts"; then
  1304. case $enable_option_checking in
  1305. no) ;;
  1306. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1307. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1308. esac
  1309. fi
  1310. # Check all directory arguments for consistency.
  1311. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1312. datadir sysconfdir sharedstatedir localstatedir includedir \
  1313. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1314. libdir localedir mandir
  1315. do
  1316. eval ac_val=\$$ac_var
  1317. # Remove trailing slashes.
  1318. case $ac_val in
  1319. */ )
  1320. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1321. eval $ac_var=\$ac_val;;
  1322. esac
  1323. # Be sure to have absolute directory names.
  1324. case $ac_val in
  1325. [\\/$]* | ?:[\\/]* ) continue;;
  1326. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1327. esac
  1328. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1329. done
  1330. # There might be people who depend on the old broken behavior: `$host'
  1331. # used to hold the argument of --host etc.
  1332. # FIXME: To remove some day.
  1333. build=$build_alias
  1334. host=$host_alias
  1335. target=$target_alias
  1336. # FIXME: To remove some day.
  1337. if test "x$host_alias" != x; then
  1338. if test "x$build_alias" = x; then
  1339. cross_compiling=maybe
  1340. elif test "x$build_alias" != "x$host_alias"; then
  1341. cross_compiling=yes
  1342. fi
  1343. fi
  1344. ac_tool_prefix=
  1345. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1346. test "$silent" = yes && exec 6>/dev/null
  1347. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1348. ac_ls_di=`ls -di .` &&
  1349. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1350. as_fn_error $? "working directory cannot be determined"
  1351. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1352. as_fn_error $? "pwd does not report name of working directory"
  1353. # Find the source files, if location was not specified.
  1354. if test -z "$srcdir"; then
  1355. ac_srcdir_defaulted=yes
  1356. # Try the directory containing this script, then the parent directory.
  1357. ac_confdir=`$as_dirname -- "$as_myself" ||
  1358. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1359. X"$as_myself" : 'X\(//\)[^/]' \| \
  1360. X"$as_myself" : 'X\(//\)$' \| \
  1361. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1362. $as_echo X"$as_myself" |
  1363. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1364. s//\1/
  1365. q
  1366. }
  1367. /^X\(\/\/\)[^/].*/{
  1368. s//\1/
  1369. q
  1370. }
  1371. /^X\(\/\/\)$/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\).*/{
  1376. s//\1/
  1377. q
  1378. }
  1379. s/.*/./; q'`
  1380. srcdir=$ac_confdir
  1381. if test ! -r "$srcdir/$ac_unique_file"; then
  1382. srcdir=..
  1383. fi
  1384. else
  1385. ac_srcdir_defaulted=no
  1386. fi
  1387. if test ! -r "$srcdir/$ac_unique_file"; then
  1388. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1389. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1390. fi
  1391. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1392. ac_abs_confdir=`(
  1393. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1394. pwd)`
  1395. # When building in place, set srcdir=.
  1396. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1397. srcdir=.
  1398. fi
  1399. # Remove unnecessary trailing slashes from srcdir.
  1400. # Double slashes in file names in object file debugging info
  1401. # mess up M-x gdb in Emacs.
  1402. case $srcdir in
  1403. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1404. esac
  1405. for ac_var in $ac_precious_vars; do
  1406. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1407. eval ac_env_${ac_var}_value=\$${ac_var}
  1408. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1409. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1410. done
  1411. #
  1412. # Report the --help message.
  1413. #
  1414. if test "$ac_init_help" = "long"; then
  1415. # Omit some internal or obsolete options to make the list less imposing.
  1416. # This message is too long to be a string in the A/UX 3.1 sh.
  1417. cat <<_ACEOF
  1418. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1419. Usage: $0 [OPTION]... [VAR=VALUE]...
  1420. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1421. VAR=VALUE. See below for descriptions of some of the useful variables.
  1422. Defaults for the options are specified in brackets.
  1423. Configuration:
  1424. -h, --help display this help and exit
  1425. --help=short display options specific to this package
  1426. --help=recursive display the short help of all the included packages
  1427. -V, --version display version information and exit
  1428. -q, --quiet, --silent do not print \`checking ...' messages
  1429. --cache-file=FILE cache test results in FILE [disabled]
  1430. -C, --config-cache alias for \`--cache-file=config.cache'
  1431. -n, --no-create do not create output files
  1432. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1433. Installation directories:
  1434. --prefix=PREFIX install architecture-independent files in PREFIX
  1435. [$ac_default_prefix]
  1436. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1437. [PREFIX]
  1438. By default, \`make install' will install all the files in
  1439. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1440. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1441. for instance \`--prefix=\$HOME'.
  1442. For better control, use the options below.
  1443. Fine tuning of the installation directories:
  1444. --bindir=DIR user executables [EPREFIX/bin]
  1445. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1446. --libexecdir=DIR program executables [EPREFIX/libexec]
  1447. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1448. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1449. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1450. --libdir=DIR object code libraries [EPREFIX/lib]
  1451. --includedir=DIR C header files [PREFIX/include]
  1452. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1453. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1454. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1455. --infodir=DIR info documentation [DATAROOTDIR/info]
  1456. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1457. --mandir=DIR man documentation [DATAROOTDIR/man]
  1458. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1459. --htmldir=DIR html documentation [DOCDIR]
  1460. --dvidir=DIR dvi documentation [DOCDIR]
  1461. --pdfdir=DIR pdf documentation [DOCDIR]
  1462. --psdir=DIR ps documentation [DOCDIR]
  1463. _ACEOF
  1464. cat <<\_ACEOF
  1465. Program names:
  1466. --program-prefix=PREFIX prepend PREFIX to installed program names
  1467. --program-suffix=SUFFIX append SUFFIX to installed program names
  1468. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1469. System types:
  1470. --build=BUILD configure for building on BUILD [guessed]
  1471. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1472. _ACEOF
  1473. fi
  1474. if test -n "$ac_init_help"; then
  1475. case $ac_init_help in
  1476. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1477. esac
  1478. cat <<\_ACEOF
  1479. Optional Features:
  1480. --disable-option-checking ignore unrecognized --enable/--with options
  1481. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1482. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1483. --enable-silent-rules less verbose build output (undo: "make V=1")
  1484. --disable-silent-rules verbose build output (undo: "make V=0")
  1485. --enable-maintainer-mode
  1486. enable make rules and dependencies not useful (and
  1487. sometimes confusing) to the casual installer
  1488. --enable-dependency-tracking
  1489. do not reject slow dependency extractors
  1490. --disable-dependency-tracking
  1491. speeds up one-time build
  1492. --enable-static[=PKGS] build static libraries [default=no]
  1493. --enable-shared[=PKGS] build shared libraries [default=yes]
  1494. --enable-fast-install[=PKGS]
  1495. optimize for fast installation [default=yes]
  1496. --disable-libtool-lock avoid locking (might break parallel builds)
  1497. --enable-debug Enable debug features (default: no)
  1498. --enable-asan Enable gcc address sanitizer options (default: no)
  1499. --enable-gcc-security Enable gcc secure compilation options (default: no)
  1500. --enable-bundle Enable bundled dependencies (default: no)
  1501. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1502. yes)
  1503. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1504. plugin (default: yes)
  1505. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1506. (default: yes)
  1507. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1508. support (default: no)
  1509. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1510. domain socket (LDAPI) support (default: no)
  1511. --enable-bitwise enable the bitwise matching rule plugin (default:
  1512. yes)
  1513. --enable-presence enable the presence plugin (default: no)
  1514. --enable-acctpolicy enable the account policy plugin (default: yes)
  1515. --enable-posix-winsync enable support for POSIX user/group attributes in
  1516. winsync (default: yes)
  1517. --enable-nunc-stans enable support for nunc-stans event framework
  1518. (default: no)
  1519. Optional Packages:
  1520. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1521. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1522. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1523. both]
  1524. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1525. --with-sysroot=DIR Search for dependent libraries within DIR
  1526. (or the compiler's sysroot if not specified).
  1527. --with-fhs Use FHS layout
  1528. --with-fhs-opt Use FHS optional layout
  1529. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1530. (default: $with_tmpfiles_d)
  1531. --with-perldir=PATH Directory for perl)
  1532. --with-pythondir=PATH Directory for python)
  1533. --with-systemdsystemunitdir=PATH
  1534. Directory for systemd service files (default:
  1535. $with_systemdsystemunitdir)
  1536. --with-systemdsystemconfdir=PATH
  1537. Directory for systemd service files (default:
  1538. $with_systemdsystemconfdir)
  1539. --with-systemdgroupname=NAME
  1540. Name of group target for all instances (default:
  1541. $with_systemdgroupname)
  1542. --with-instconfigdir=/path
  1543. Base directory for instance specific writable
  1544. configuration directories (default
  1545. $sysconfdir/$PACKAGE_NAME)
  1546. --with-initddir=/path Absolute path (not relative like some of the other
  1547. options) that should contain the SysV init scripts
  1548. (default '$(sysconfdir)/rc.d')
  1549. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1550. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1551. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1552. --with-nss[=PATH] Network Security Services (NSS) directory
  1553. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1554. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1555. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1556. --with-openldap-inc=PATH
  1557. OpenLDAP SDK include directory
  1558. --with-openldap-lib=PATH
  1559. OpenLDAP SDK library directory
  1560. --with-openldap-bin=PATH
  1561. OpenLDAP SDK binary directory
  1562. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1563. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1564. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1565. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1566. --with-db[=PATH] Berkeley DB directory
  1567. --with-db-inc=PATH Berkeley DB include file directory
  1568. --with-db-lib=PATH Berkeley DB library directory
  1569. --with-sasl[=PATH] Use SASL from supplied path
  1570. --with-sasl-inc=PATH SASL include file directory
  1571. --with-sasl-lib=PATH SASL library directory
  1572. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1573. SVRCORE
  1574. --with-svrcore-inc=PATH SVRCORE include file directory
  1575. --with-svrcore-lib=PATH SVRCORE library directory
  1576. --with-icu[=PATH] ICU directory
  1577. --with-icu-inc=PATH ICU include directory
  1578. --with-icu-lib=PATH ICU library directory
  1579. --with-icu-bin=PATH ICU binary directory
  1580. --with-netsnmp[=PATH] Net-SNMP directory
  1581. --with-netsnmp-inc=PATH Net-SNMP include directory
  1582. --with-netsnmp-lib=PATH Net-SNMP library directory
  1583. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1584. the server to authenticate directly with a keytab -
  1585. otherwise, SASL/GSSAPI auth depends on underlying
  1586. SASL libraries and external kinit with a keytab - if
  1587. PATH is not specified, look for kerberos in the
  1588. system locations. This will attempt to use
  1589. krb5-config from the PATH to find the libs and
  1590. include dirs - you can specify KRB5_CONFIG_BIN to
  1591. specify a different filename or absolute path. If
  1592. krb5-config does not work, this will attempt to look
  1593. in various system directories
  1594. --with-kerberos-inc=PATH
  1595. Allows you to explicitly set the directory
  1596. containing the kerberos include files - implies use
  1597. of kerberos
  1598. --with-kerberos-lib=PATH
  1599. Allows you to explicitly set the directory
  1600. containing the kerberos libraries - implies use of
  1601. kerberos
  1602. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1603. --with-selinux Support SELinux policy
  1604. --with-nunc-stans[=PATH]
  1605. nunc-stans directory
  1606. --with-nunc-stans-inc=PATH
  1607. nunc-stans include file directory
  1608. --with-nunc-stans-lib=PATH
  1609. nunc-stans library directory
  1610. --with-systemd Enable Systemd native integration.
  1611. Some influential environment variables:
  1612. CXX C++ compiler command
  1613. CXXFLAGS C++ compiler flags
  1614. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1615. nonstandard directory <lib dir>
  1616. LIBS libraries to pass to the linker, e.g. -l<library>
  1617. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1618. you have headers in a nonstandard directory <include dir>
  1619. CC C compiler command
  1620. CFLAGS C compiler flags
  1621. CCAS assembler compiler command (defaults to CC)
  1622. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1623. CPP C preprocessor
  1624. CXXCPP C++ preprocessor
  1625. PKG_CONFIG path to pkg-config utility
  1626. PKG_CONFIG_PATH
  1627. directories to add to pkg-config's search path
  1628. PKG_CONFIG_LIBDIR
  1629. path overriding pkg-config's built-in search path
  1630. Use these variables to override the choices made by `configure' or to help
  1631. it to find libraries and programs with nonstandard names/locations.
  1632. Report bugs to <http://bugzilla.redhat.com/>.
  1633. _ACEOF
  1634. ac_status=$?
  1635. fi
  1636. if test "$ac_init_help" = "recursive"; then
  1637. # If there are subdirs, report their specific --help.
  1638. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1639. test -d "$ac_dir" ||
  1640. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1641. continue
  1642. ac_builddir=.
  1643. case "$ac_dir" in
  1644. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1645. *)
  1646. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1647. # A ".." for each directory in $ac_dir_suffix.
  1648. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1649. case $ac_top_builddir_sub in
  1650. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1651. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1652. esac ;;
  1653. esac
  1654. ac_abs_top_builddir=$ac_pwd
  1655. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1656. # for backward compatibility:
  1657. ac_top_builddir=$ac_top_build_prefix
  1658. case $srcdir in
  1659. .) # We are building in place.
  1660. ac_srcdir=.
  1661. ac_top_srcdir=$ac_top_builddir_sub
  1662. ac_abs_top_srcdir=$ac_pwd ;;
  1663. [\\/]* | ?:[\\/]* ) # Absolute name.
  1664. ac_srcdir=$srcdir$ac_dir_suffix;
  1665. ac_top_srcdir=$srcdir
  1666. ac_abs_top_srcdir=$srcdir ;;
  1667. *) # Relative name.
  1668. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1669. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1670. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1671. esac
  1672. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1673. cd "$ac_dir" || { ac_status=$?; continue; }
  1674. # Check for guested configure.
  1675. if test -f "$ac_srcdir/configure.gnu"; then
  1676. echo &&
  1677. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1678. elif test -f "$ac_srcdir/configure"; then
  1679. echo &&
  1680. $SHELL "$ac_srcdir/configure" --help=recursive
  1681. else
  1682. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1683. fi || ac_status=$?
  1684. cd "$ac_pwd" || { ac_status=$?; break; }
  1685. done
  1686. fi
  1687. test -n "$ac_init_help" && exit $ac_status
  1688. if $ac_init_version; then
  1689. cat <<\_ACEOF
  1690. dirsrv configure 1.0
  1691. generated by GNU Autoconf 2.69
  1692. Copyright (C) 2012 Free Software Foundation, Inc.
  1693. This configure script is free software; the Free Software Foundation
  1694. gives unlimited permission to copy, distribute and modify it.
  1695. _ACEOF
  1696. exit
  1697. fi
  1698. ## ------------------------ ##
  1699. ## Autoconf initialization. ##
  1700. ## ------------------------ ##
  1701. # ac_fn_cxx_try_compile LINENO
  1702. # ----------------------------
  1703. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1704. ac_fn_cxx_try_compile ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. rm -f conftest.$ac_objext
  1708. if { { ac_try="$ac_compile"
  1709. case "(($ac_try" in
  1710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1711. *) ac_try_echo=$ac_try;;
  1712. esac
  1713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1714. $as_echo "$ac_try_echo"; } >&5
  1715. (eval "$ac_compile") 2>conftest.err
  1716. ac_status=$?
  1717. if test -s conftest.err; then
  1718. grep -v '^ *+' conftest.err >conftest.er1
  1719. cat conftest.er1 >&5
  1720. mv -f conftest.er1 conftest.err
  1721. fi
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; } && {
  1724. test -z "$ac_cxx_werror_flag" ||
  1725. test ! -s conftest.err
  1726. } && test -s conftest.$ac_objext; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: failed program was:" >&5
  1730. sed 's/^/| /' conftest.$ac_ext >&5
  1731. ac_retval=1
  1732. fi
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_cxx_try_compile
  1736. # ac_fn_c_try_compile LINENO
  1737. # --------------------------
  1738. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_compile ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext
  1743. if { { ac_try="$ac_compile"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_compile") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_c_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest.$ac_objext; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1769. as_fn_set_status $ac_retval
  1770. } # ac_fn_c_try_compile
  1771. # ac_fn_c_try_link LINENO
  1772. # -----------------------
  1773. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1774. ac_fn_c_try_link ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. rm -f conftest.$ac_objext conftest$ac_exeext
  1778. if { { ac_try="$ac_link"
  1779. case "(($ac_try" in
  1780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1781. *) ac_try_echo=$ac_try;;
  1782. esac
  1783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1784. $as_echo "$ac_try_echo"; } >&5
  1785. (eval "$ac_link") 2>conftest.err
  1786. ac_status=$?
  1787. if test -s conftest.err; then
  1788. grep -v '^ *+' conftest.err >conftest.er1
  1789. cat conftest.er1 >&5
  1790. mv -f conftest.er1 conftest.err
  1791. fi
  1792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1793. test $ac_status = 0; } && {
  1794. test -z "$ac_c_werror_flag" ||
  1795. test ! -s conftest.err
  1796. } && test -s conftest$ac_exeext && {
  1797. test "$cross_compiling" = yes ||
  1798. test -x conftest$ac_exeext
  1799. }; then :
  1800. ac_retval=0
  1801. else
  1802. $as_echo "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1807. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1808. # interfere with the next link command; also delete a directory that is
  1809. # left behind by Apple's compiler. We do this before executing the actions.
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_try_link
  1814. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1815. # -------------------------------------------------------
  1816. # Tests whether HEADER exists and can be compiled using the include files in
  1817. # INCLUDES, setting the cache variable VAR accordingly.
  1818. ac_fn_c_check_header_compile ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if eval \${$3+:} false; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. #include <$2>
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"; then :
  1832. eval "$3=yes"
  1833. else
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$3
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. $as_echo "$ac_res" >&6; }
  1841. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1842. } # ac_fn_c_check_header_compile
  1843. # ac_fn_c_try_cpp LINENO
  1844. # ----------------------
  1845. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1846. ac_fn_c_try_cpp ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1857. ac_status=$?
  1858. if test -s conftest.err; then
  1859. grep -v '^ *+' conftest.err >conftest.er1
  1860. cat conftest.er1 >&5
  1861. mv -f conftest.er1 conftest.err
  1862. fi
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } > conftest.i && {
  1865. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1866. test ! -s conftest.err
  1867. }; then :
  1868. ac_retval=0
  1869. else
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=1
  1873. fi
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_c_try_cpp
  1877. # ac_fn_c_try_run LINENO
  1878. # ----------------------
  1879. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1880. # that executables *can* be run.
  1881. ac_fn_c_try_run ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. if { { ac_try="$ac_link"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. $as_echo "$ac_try_echo"; } >&5
  1891. (eval "$ac_link") 2>&5
  1892. ac_status=$?
  1893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1894. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1895. { { case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo"; } >&5
  1901. (eval "$ac_try") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1904. test $ac_status = 0; }; }; then :
  1905. ac_retval=0
  1906. else
  1907. $as_echo "$as_me: program exited with status $ac_status" >&5
  1908. $as_echo "$as_me: failed program was:" >&5
  1909. sed 's/^/| /' conftest.$ac_ext >&5
  1910. ac_retval=$ac_status
  1911. fi
  1912. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1913. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1914. as_fn_set_status $ac_retval
  1915. } # ac_fn_c_try_run
  1916. # ac_fn_c_check_func LINENO FUNC VAR
  1917. # ----------------------------------
  1918. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1919. ac_fn_c_check_func ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. $as_echo_n "checking for $2... " >&6; }
  1924. if eval \${$3+:} false; then :
  1925. $as_echo_n "(cached) " >&6
  1926. else
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below.
  1934. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1935. <limits.h> exists even on freestanding compilers. */
  1936. #ifdef __STDC__
  1937. # include <limits.h>
  1938. #else
  1939. # include <assert.h>
  1940. #endif
  1941. #undef $2
  1942. /* Override any GCC internal prototype to avoid an error.
  1943. Use char because int might match the return type of a GCC
  1944. builtin and then its argument prototype would still apply. */
  1945. #ifdef __cplusplus
  1946. extern "C"
  1947. #endif
  1948. char $2 ();
  1949. /* The GNU C library defines this for functions which it implements
  1950. to always fail with ENOSYS. Some functions are actually named
  1951. something starting with __ and the normal name is an alias. */
  1952. #if defined __stub_$2 || defined __stub___$2
  1953. choke me
  1954. #endif
  1955. int
  1956. main ()
  1957. {
  1958. return $2 ();
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. if ac_fn_c_try_link "$LINENO"; then :
  1964. eval "$3=yes"
  1965. else
  1966. eval "$3=no"
  1967. fi
  1968. rm -f core conftest.err conftest.$ac_objext \
  1969. conftest$ac_exeext conftest.$ac_ext
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1975. } # ac_fn_c_check_func
  1976. # ac_fn_cxx_try_cpp LINENO
  1977. # ------------------------
  1978. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1979. ac_fn_cxx_try_cpp ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1983. case "(($ac_try" in
  1984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1985. *) ac_try_echo=$ac_try;;
  1986. esac
  1987. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1988. $as_echo "$ac_try_echo"; } >&5
  1989. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1990. ac_status=$?
  1991. if test -s conftest.err; then
  1992. grep -v '^ *+' conftest.err >conftest.er1
  1993. cat conftest.er1 >&5
  1994. mv -f conftest.er1 conftest.err
  1995. fi
  1996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1997. test $ac_status = 0; } > conftest.i && {
  1998. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1999. test ! -s conftest.err
  2000. }; then :
  2001. ac_retval=0
  2002. else
  2003. $as_echo "$as_me: failed program was:" >&5
  2004. sed 's/^/| /' conftest.$ac_ext >&5
  2005. ac_retval=1
  2006. fi
  2007. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2008. as_fn_set_status $ac_retval
  2009. } # ac_fn_cxx_try_cpp
  2010. # ac_fn_cxx_try_link LINENO
  2011. # -------------------------
  2012. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2013. ac_fn_cxx_try_link ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. rm -f conftest.$ac_objext conftest$ac_exeext
  2017. if { { ac_try="$ac_link"
  2018. case "(($ac_try" in
  2019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2020. *) ac_try_echo=$ac_try;;
  2021. esac
  2022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2023. $as_echo "$ac_try_echo"; } >&5
  2024. (eval "$ac_link") 2>conftest.err
  2025. ac_status=$?
  2026. if test -s conftest.err; then
  2027. grep -v '^ *+' conftest.err >conftest.er1
  2028. cat conftest.er1 >&5
  2029. mv -f conftest.er1 conftest.err
  2030. fi
  2031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2032. test $ac_status = 0; } && {
  2033. test -z "$ac_cxx_werror_flag" ||
  2034. test ! -s conftest.err
  2035. } && test -s conftest$ac_exeext && {
  2036. test "$cross_compiling" = yes ||
  2037. test -x conftest$ac_exeext
  2038. }; then :
  2039. ac_retval=0
  2040. else
  2041. $as_echo "$as_me: failed program was:" >&5
  2042. sed 's/^/| /' conftest.$ac_ext >&5
  2043. ac_retval=1
  2044. fi
  2045. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2046. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2047. # interfere with the next link command; also delete a directory that is
  2048. # left behind by Apple's compiler. We do this before executing the actions.
  2049. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2050. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2051. as_fn_set_status $ac_retval
  2052. } # ac_fn_cxx_try_link
  2053. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2054. # -------------------------------------------------------
  2055. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2056. # the include files in INCLUDES and setting the cache variable VAR
  2057. # accordingly.
  2058. ac_fn_c_check_header_mongrel ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. if eval \${$3+:} false; then :
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2063. $as_echo_n "checking for $2... " >&6; }
  2064. if eval \${$3+:} false; then :
  2065. $as_echo_n "(cached) " >&6
  2066. fi
  2067. eval ac_res=\$$3
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2069. $as_echo "$ac_res" >&6; }
  2070. else
  2071. # Is the header compilable?
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2073. $as_echo_n "checking $2 usability... " >&6; }
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. #include <$2>
  2078. _ACEOF
  2079. if ac_fn_c_try_compile "$LINENO"; then :
  2080. ac_header_compiler=yes
  2081. else
  2082. ac_header_compiler=no
  2083. fi
  2084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2086. $as_echo "$ac_header_compiler" >&6; }
  2087. # Is the header present?
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2089. $as_echo_n "checking $2 presence... " >&6; }
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. #include <$2>
  2093. _ACEOF
  2094. if ac_fn_c_try_cpp "$LINENO"; then :
  2095. ac_header_preproc=yes
  2096. else
  2097. ac_header_preproc=no
  2098. fi
  2099. rm -f conftest.err conftest.i conftest.$ac_ext
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2101. $as_echo "$ac_header_preproc" >&6; }
  2102. # So? What about this header?
  2103. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2104. yes:no: )
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2106. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2108. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2109. ;;
  2110. no:yes:* )
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2112. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2114. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2116. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2118. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2120. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2121. ( $as_echo "## ------------------------------------------ ##
  2122. ## Report this to http://bugzilla.redhat.com/ ##
  2123. ## ------------------------------------------ ##"
  2124. ) | sed "s/^/$as_me: WARNING: /" >&2
  2125. ;;
  2126. esac
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2128. $as_echo_n "checking for $2... " >&6; }
  2129. if eval \${$3+:} false; then :
  2130. $as_echo_n "(cached) " >&6
  2131. else
  2132. eval "$3=\$ac_header_compiler"
  2133. fi
  2134. eval ac_res=\$$3
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2136. $as_echo "$ac_res" >&6; }
  2137. fi
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_header_mongrel
  2140. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2141. # -------------------------------------------
  2142. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2143. # variable VAR accordingly.
  2144. ac_fn_c_check_type ()
  2145. {
  2146. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2148. $as_echo_n "checking for $2... " >&6; }
  2149. if eval \${$3+:} false; then :
  2150. $as_echo_n "(cached) " >&6
  2151. else
  2152. eval "$3=no"
  2153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2154. /* end confdefs.h. */
  2155. $4
  2156. int
  2157. main ()
  2158. {
  2159. if (sizeof ($2))
  2160. return 0;
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. if ac_fn_c_try_compile "$LINENO"; then :
  2166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2167. /* end confdefs.h. */
  2168. $4
  2169. int
  2170. main ()
  2171. {
  2172. if (sizeof (($2)))
  2173. return 0;
  2174. ;
  2175. return 0;
  2176. }
  2177. _ACEOF
  2178. if ac_fn_c_try_compile "$LINENO"; then :
  2179. else
  2180. eval "$3=yes"
  2181. fi
  2182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2183. fi
  2184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2185. fi
  2186. eval ac_res=\$$3
  2187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2188. $as_echo "$ac_res" >&6; }
  2189. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2190. } # ac_fn_c_check_type
  2191. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2192. # ---------------------------------------------
  2193. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2194. # accordingly.
  2195. ac_fn_c_check_decl ()
  2196. {
  2197. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2198. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2199. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2201. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2202. if eval \${$3+:} false; then :
  2203. $as_echo_n "(cached) " >&6
  2204. else
  2205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2206. /* end confdefs.h. */
  2207. $4
  2208. int
  2209. main ()
  2210. {
  2211. #ifndef $as_decl_name
  2212. #ifdef __cplusplus
  2213. (void) $as_decl_use;
  2214. #else
  2215. (void) $as_decl_name;
  2216. #endif
  2217. #endif
  2218. ;
  2219. return 0;
  2220. }
  2221. _ACEOF
  2222. if ac_fn_c_try_compile "$LINENO"; then :
  2223. eval "$3=yes"
  2224. else
  2225. eval "$3=no"
  2226. fi
  2227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2228. fi
  2229. eval ac_res=\$$3
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2231. $as_echo "$ac_res" >&6; }
  2232. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2233. } # ac_fn_c_check_decl
  2234. cat >config.log <<_ACEOF
  2235. This file contains any messages produced by compilers while
  2236. running configure, to aid debugging if configure makes a mistake.
  2237. It was created by dirsrv $as_me 1.0, which was
  2238. generated by GNU Autoconf 2.69. Invocation command line was
  2239. $ $0 $@
  2240. _ACEOF
  2241. exec 5>>config.log
  2242. {
  2243. cat <<_ASUNAME
  2244. ## --------- ##
  2245. ## Platform. ##
  2246. ## --------- ##
  2247. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2248. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2249. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2250. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2251. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2252. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2253. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2254. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2255. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2256. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2257. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2258. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2259. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2260. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2261. _ASUNAME
  2262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2263. for as_dir in $PATH
  2264. do
  2265. IFS=$as_save_IFS
  2266. test -z "$as_dir" && as_dir=.
  2267. $as_echo "PATH: $as_dir"
  2268. done
  2269. IFS=$as_save_IFS
  2270. } >&5
  2271. cat >&5 <<_ACEOF
  2272. ## ----------- ##
  2273. ## Core tests. ##
  2274. ## ----------- ##
  2275. _ACEOF
  2276. # Keep a trace of the command line.
  2277. # Strip out --no-create and --no-recursion so they do not pile up.
  2278. # Strip out --silent because we don't want to record it for future runs.
  2279. # Also quote any args containing shell meta-characters.
  2280. # Make two passes to allow for proper duplicate-argument suppression.
  2281. ac_configure_args=
  2282. ac_configure_args0=
  2283. ac_configure_args1=
  2284. ac_must_keep_next=false
  2285. for ac_pass in 1 2
  2286. do
  2287. for ac_arg
  2288. do
  2289. case $ac_arg in
  2290. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2291. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2292. | -silent | --silent | --silen | --sile | --sil)
  2293. continue ;;
  2294. *\'*)
  2295. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2296. esac
  2297. case $ac_pass in
  2298. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2299. 2)
  2300. as_fn_append ac_configure_args1 " '$ac_arg'"
  2301. if test $ac_must_keep_next = true; then
  2302. ac_must_keep_next=false # Got value, back to normal.
  2303. else
  2304. case $ac_arg in
  2305. *=* | --config-cache | -C | -disable-* | --disable-* \
  2306. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2307. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2308. | -with-* | --with-* | -without-* | --without-* | --x)
  2309. case "$ac_configure_args0 " in
  2310. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2311. esac
  2312. ;;
  2313. -* ) ac_must_keep_next=true ;;
  2314. esac
  2315. fi
  2316. as_fn_append ac_configure_args " '$ac_arg'"
  2317. ;;
  2318. esac
  2319. done
  2320. done
  2321. { ac_configure_args0=; unset ac_configure_args0;}
  2322. { ac_configure_args1=; unset ac_configure_args1;}
  2323. # When interrupted or exit'd, cleanup temporary files, and complete
  2324. # config.log. We remove comments because anyway the quotes in there
  2325. # would cause problems or look ugly.
  2326. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2327. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2328. trap 'exit_status=$?
  2329. # Save into config.log some information that might help in debugging.
  2330. {
  2331. echo
  2332. $as_echo "## ---------------- ##
  2333. ## Cache variables. ##
  2334. ## ---------------- ##"
  2335. echo
  2336. # The following way of writing the cache mishandles newlines in values,
  2337. (
  2338. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2339. eval ac_val=\$$ac_var
  2340. case $ac_val in #(
  2341. *${as_nl}*)
  2342. case $ac_var in #(
  2343. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2344. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2345. esac
  2346. case $ac_var in #(
  2347. _ | IFS | as_nl) ;; #(
  2348. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2349. *) { eval $ac_var=; unset $ac_var;} ;;
  2350. esac ;;
  2351. esac
  2352. done
  2353. (set) 2>&1 |
  2354. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2355. *${as_nl}ac_space=\ *)
  2356. sed -n \
  2357. "s/'\''/'\''\\\\'\'''\''/g;
  2358. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2359. ;; #(
  2360. *)
  2361. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2362. ;;
  2363. esac |
  2364. sort
  2365. )
  2366. echo
  2367. $as_echo "## ----------------- ##
  2368. ## Output variables. ##
  2369. ## ----------------- ##"
  2370. echo
  2371. for ac_var in $ac_subst_vars
  2372. do
  2373. eval ac_val=\$$ac_var
  2374. case $ac_val in
  2375. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2376. esac
  2377. $as_echo "$ac_var='\''$ac_val'\''"
  2378. done | sort
  2379. echo
  2380. if test -n "$ac_subst_files"; then
  2381. $as_echo "## ------------------- ##
  2382. ## File substitutions. ##
  2383. ## ------------------- ##"
  2384. echo
  2385. for ac_var in $ac_subst_files
  2386. do
  2387. eval ac_val=\$$ac_var
  2388. case $ac_val in
  2389. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2390. esac
  2391. $as_echo "$ac_var='\''$ac_val'\''"
  2392. done | sort
  2393. echo
  2394. fi
  2395. if test -s confdefs.h; then
  2396. $as_echo "## ----------- ##
  2397. ## confdefs.h. ##
  2398. ## ----------- ##"
  2399. echo
  2400. cat confdefs.h
  2401. echo
  2402. fi
  2403. test "$ac_signal" != 0 &&
  2404. $as_echo "$as_me: caught signal $ac_signal"
  2405. $as_echo "$as_me: exit $exit_status"
  2406. } >&5
  2407. rm -f core *.core core.conftest.* &&
  2408. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2409. exit $exit_status
  2410. ' 0
  2411. for ac_signal in 1 2 13 15; do
  2412. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2413. done
  2414. ac_signal=0
  2415. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2416. rm -f -r conftest* confdefs.h
  2417. $as_echo "/* confdefs.h */" > confdefs.h
  2418. # Predefined preprocessor variables.
  2419. cat >>confdefs.h <<_ACEOF
  2420. #define PACKAGE_NAME "$PACKAGE_NAME"
  2421. _ACEOF
  2422. cat >>confdefs.h <<_ACEOF
  2423. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2424. _ACEOF
  2425. cat >>confdefs.h <<_ACEOF
  2426. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2427. _ACEOF
  2428. cat >>confdefs.h <<_ACEOF
  2429. #define PACKAGE_STRING "$PACKAGE_STRING"
  2430. _ACEOF
  2431. cat >>confdefs.h <<_ACEOF
  2432. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2433. _ACEOF
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE_URL "$PACKAGE_URL"
  2436. _ACEOF
  2437. # Let the site file select an alternate cache file if it wants to.
  2438. # Prefer an explicitly selected file to automatically selected ones.
  2439. ac_site_file1=NONE
  2440. ac_site_file2=NONE
  2441. if test -n "$CONFIG_SITE"; then
  2442. # We do not want a PATH search for config.site.
  2443. case $CONFIG_SITE in #((
  2444. -*) ac_site_file1=./$CONFIG_SITE;;
  2445. */*) ac_site_file1=$CONFIG_SITE;;
  2446. *) ac_site_file1=./$CONFIG_SITE;;
  2447. esac
  2448. elif test "x$prefix" != xNONE; then
  2449. ac_site_file1=$prefix/share/config.site
  2450. ac_site_file2=$prefix/etc/config.site
  2451. else
  2452. ac_site_file1=$ac_default_prefix/share/config.site
  2453. ac_site_file2=$ac_default_prefix/etc/config.site
  2454. fi
  2455. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2456. do
  2457. test "x$ac_site_file" = xNONE && continue
  2458. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2460. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2461. sed 's/^/| /' "$ac_site_file" >&5
  2462. . "$ac_site_file" \
  2463. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2464. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2465. as_fn_error $? "failed to load site script $ac_site_file
  2466. See \`config.log' for more details" "$LINENO" 5; }
  2467. fi
  2468. done
  2469. if test -r "$cache_file"; then
  2470. # Some versions of bash will fail to source /dev/null (special files
  2471. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2472. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2474. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2475. case $cache_file in
  2476. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2477. *) . "./$cache_file";;
  2478. esac
  2479. fi
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2482. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2483. >$cache_file
  2484. fi
  2485. as_fn_append ac_header_list " stdlib.h"
  2486. as_fn_append ac_header_list " unistd.h"
  2487. as_fn_append ac_header_list " sys/param.h"
  2488. # Check that the precious variables saved in the cache have kept the same
  2489. # value.
  2490. ac_cache_corrupted=false
  2491. for ac_var in $ac_precious_vars; do
  2492. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2493. eval ac_new_set=\$ac_env_${ac_var}_set
  2494. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2495. eval ac_new_val=\$ac_env_${ac_var}_value
  2496. case $ac_old_set,$ac_new_set in
  2497. set,)
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2499. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2500. ac_cache_corrupted=: ;;
  2501. ,set)
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2503. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2504. ac_cache_corrupted=: ;;
  2505. ,);;
  2506. *)
  2507. if test "x$ac_old_val" != "x$ac_new_val"; then
  2508. # differences in whitespace do not lead to failure.
  2509. ac_old_val_w=`echo x $ac_old_val`
  2510. ac_new_val_w=`echo x $ac_new_val`
  2511. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2513. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2514. ac_cache_corrupted=:
  2515. else
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2517. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2518. eval $ac_var=\$ac_old_val
  2519. fi
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2521. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2523. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2524. fi;;
  2525. esac
  2526. # Pass precious variables to config.status.
  2527. if test "$ac_new_set" = set; then
  2528. case $ac_new_val in
  2529. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2530. *) ac_arg=$ac_var=$ac_new_val ;;
  2531. esac
  2532. case " $ac_configure_args " in
  2533. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2534. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2535. esac
  2536. fi
  2537. done
  2538. if $ac_cache_corrupted; then
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2542. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2543. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2544. fi
  2545. ## -------------------- ##
  2546. ## Main body of script. ##
  2547. ## -------------------- ##
  2548. ac_ext=c
  2549. ac_cpp='$CPP $CPPFLAGS'
  2550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2553. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2554. ac_config_headers="$ac_config_headers config.h"
  2555. # include the version information
  2556. . $srcdir/VERSION.sh
  2557. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2558. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2559. cat >>confdefs.h <<_ACEOF
  2560. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2561. _ACEOF
  2562. cat >>confdefs.h <<_ACEOF
  2563. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2564. _ACEOF
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2567. _ACEOF
  2568. cat >>confdefs.h <<_ACEOF
  2569. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2570. _ACEOF
  2571. am__api_version='1.13'
  2572. ac_aux_dir=
  2573. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2574. if test -f "$ac_dir/install-sh"; then
  2575. ac_aux_dir=$ac_dir
  2576. ac_install_sh="$ac_aux_dir/install-sh -c"
  2577. break
  2578. elif test -f "$ac_dir/install.sh"; then
  2579. ac_aux_dir=$ac_dir
  2580. ac_install_sh="$ac_aux_dir/install.sh -c"
  2581. break
  2582. elif test -f "$ac_dir/shtool"; then
  2583. ac_aux_dir=$ac_dir
  2584. ac_install_sh="$ac_aux_dir/shtool install -c"
  2585. break
  2586. fi
  2587. done
  2588. if test -z "$ac_aux_dir"; then
  2589. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2590. fi
  2591. # These three variables are undocumented and unsupported,
  2592. # and are intended to be withdrawn in a future Autoconf release.
  2593. # They can cause serious problems if a builder's source tree is in a directory
  2594. # whose full name contains unusual characters.
  2595. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2596. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2597. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2598. # Find a good install program. We prefer a C program (faster),
  2599. # so one script is as good as another. But avoid the broken or
  2600. # incompatible versions:
  2601. # SysV /etc/install, /usr/sbin/install
  2602. # SunOS /usr/etc/install
  2603. # IRIX /sbin/install
  2604. # AIX /bin/install
  2605. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2606. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2607. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2608. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2609. # OS/2's system install, which has a completely different semantic
  2610. # ./install, which can be erroneously created by make from ./install.sh.
  2611. # Reject install programs that cannot install multiple files.
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2613. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2614. if test -z "$INSTALL"; then
  2615. if ${ac_cv_path_install+:} false; then :
  2616. $as_echo_n "(cached) " >&6
  2617. else
  2618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2619. for as_dir in $PATH
  2620. do
  2621. IFS=$as_save_IFS
  2622. test -z "$as_dir" && as_dir=.
  2623. # Account for people who put trailing slashes in PATH elements.
  2624. case $as_dir/ in #((
  2625. ./ | .// | /[cC]/* | \
  2626. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2627. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2628. /usr/ucb/* ) ;;
  2629. *)
  2630. # OSF1 and SCO ODT 3.0 have their own names for install.
  2631. # Don't use installbsd from OSF since it installs stuff as root
  2632. # by default.
  2633. for ac_prog in ginstall scoinst install; do
  2634. for ac_exec_ext in '' $ac_executable_extensions; do
  2635. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2636. if test $ac_prog = install &&
  2637. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2638. # AIX install. It has an incompatible calling convention.
  2639. :
  2640. elif test $ac_prog = install &&
  2641. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2642. # program-specific install script used by HP pwplus--don't use.
  2643. :
  2644. else
  2645. rm -rf conftest.one conftest.two conftest.dir
  2646. echo one > conftest.one
  2647. echo two > conftest.two
  2648. mkdir conftest.dir
  2649. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2650. test -s conftest.one && test -s conftest.two &&
  2651. test -s conftest.dir/conftest.one &&
  2652. test -s conftest.dir/conftest.two
  2653. then
  2654. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2655. break 3
  2656. fi
  2657. fi
  2658. fi
  2659. done
  2660. done
  2661. ;;
  2662. esac
  2663. done
  2664. IFS=$as_save_IFS
  2665. rm -rf conftest.one conftest.two conftest.dir
  2666. fi
  2667. if test "${ac_cv_path_install+set}" = set; then
  2668. INSTALL=$ac_cv_path_install
  2669. else
  2670. # As a last resort, use the slow shell script. Don't cache a
  2671. # value for INSTALL within a source directory, because that will
  2672. # break other packages using the cache if that directory is
  2673. # removed, or if the value is a relative name.
  2674. INSTALL=$ac_install_sh
  2675. fi
  2676. fi
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2678. $as_echo "$INSTALL" >&6; }
  2679. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2680. # It thinks the first close brace ends the variable substitution.
  2681. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2682. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2683. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2685. $as_echo_n "checking whether build environment is sane... " >&6; }
  2686. # Reject unsafe characters in $srcdir or the absolute working directory
  2687. # name. Accept space and tab only in the latter.
  2688. am_lf='
  2689. '
  2690. case `pwd` in
  2691. *[\\\"\#\$\&\'\`$am_lf]*)
  2692. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2693. esac
  2694. case $srcdir in
  2695. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2696. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2697. esac
  2698. # Do 'set' in a subshell so we don't clobber the current shell's
  2699. # arguments. Must try -L first in case configure is actually a
  2700. # symlink; some systems play weird games with the mod time of symlinks
  2701. # (eg FreeBSD returns the mod time of the symlink's containing
  2702. # directory).
  2703. if (
  2704. am_has_slept=no
  2705. for am_try in 1 2; do
  2706. echo "timestamp, slept: $am_has_slept" > conftest.file
  2707. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2708. if test "$*" = "X"; then
  2709. # -L didn't work.
  2710. set X `ls -t "$srcdir/configure" conftest.file`
  2711. fi
  2712. if test "$*" != "X $srcdir/configure conftest.file" \
  2713. && test "$*" != "X conftest.file $srcdir/configure"; then
  2714. # If neither matched, then we have a broken ls. This can happen
  2715. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2716. # broken ls alias from the environment. This has actually
  2717. # happened. Such a system could not be considered "sane".
  2718. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2719. alias in your environment" "$LINENO" 5
  2720. fi
  2721. if test "$2" = conftest.file || test $am_try -eq 2; then
  2722. break
  2723. fi
  2724. # Just in case.
  2725. sleep 1
  2726. am_has_slept=yes
  2727. done
  2728. test "$2" = conftest.file
  2729. )
  2730. then
  2731. # Ok.
  2732. :
  2733. else
  2734. as_fn_error $? "newly created file is older than distributed files!
  2735. Check your system clock" "$LINENO" 5
  2736. fi
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2738. $as_echo "yes" >&6; }
  2739. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2740. # generated files are strictly newer.
  2741. am_sleep_pid=
  2742. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2743. ( sleep 1 ) &
  2744. am_sleep_pid=$!
  2745. fi
  2746. rm -f conftest.file
  2747. test "$program_prefix" != NONE &&
  2748. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2749. # Use a double $ so make ignores it.
  2750. test "$program_suffix" != NONE &&
  2751. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2752. # Double any \ or $.
  2753. # By default was `s,x,x', remove it if useless.
  2754. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2755. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2756. # expand $ac_aux_dir to an absolute path
  2757. am_aux_dir=`cd $ac_aux_dir && pwd`
  2758. if test x"${MISSING+set}" != xset; then
  2759. case $am_aux_dir in
  2760. *\ * | *\ *)
  2761. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2762. *)
  2763. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2764. esac
  2765. fi
  2766. # Use eval to expand $SHELL
  2767. if eval "$MISSING --is-lightweight"; then
  2768. am_missing_run="$MISSING "
  2769. else
  2770. am_missing_run=
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2772. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2773. fi
  2774. if test x"${install_sh}" != xset; then
  2775. case $am_aux_dir in
  2776. *\ * | *\ *)
  2777. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2778. *)
  2779. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2780. esac
  2781. fi
  2782. # Installed binaries are usually stripped using 'strip' when the user
  2783. # run "make install-strip". However 'strip' might not be the right
  2784. # tool to use in cross-compilation environments, therefore Automake
  2785. # will honor the 'STRIP' environment variable to overrule this program.
  2786. if test "$cross_compiling" != no; then
  2787. if test -n "$ac_tool_prefix"; then
  2788. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2789. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if ${ac_cv_prog_STRIP+:} false; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$STRIP"; then
  2796. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. STRIP=$ac_cv_prog_STRIP
  2815. if test -n "$STRIP"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2817. $as_echo "$STRIP" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. fi
  2823. if test -z "$ac_cv_prog_STRIP"; then
  2824. ac_ct_STRIP=$STRIP
  2825. # Extract the first word of "strip", so it can be a program name with args.
  2826. set dummy strip; ac_word=$2
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2828. $as_echo_n "checking for $ac_word... " >&6; }
  2829. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2830. $as_echo_n "(cached) " >&6
  2831. else
  2832. if test -n "$ac_ct_STRIP"; then
  2833. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2834. else
  2835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2836. for as_dir in $PATH
  2837. do
  2838. IFS=$as_save_IFS
  2839. test -z "$as_dir" && as_dir=.
  2840. for ac_exec_ext in '' $ac_executable_extensions; do
  2841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2842. ac_cv_prog_ac_ct_STRIP="strip"
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2844. break 2
  2845. fi
  2846. done
  2847. done
  2848. IFS=$as_save_IFS
  2849. fi
  2850. fi
  2851. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2852. if test -n "$ac_ct_STRIP"; then
  2853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2854. $as_echo "$ac_ct_STRIP" >&6; }
  2855. else
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2857. $as_echo "no" >&6; }
  2858. fi
  2859. if test "x$ac_ct_STRIP" = x; then
  2860. STRIP=":"
  2861. else
  2862. case $cross_compiling:$ac_tool_warned in
  2863. yes:)
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2866. ac_tool_warned=yes ;;
  2867. esac
  2868. STRIP=$ac_ct_STRIP
  2869. fi
  2870. else
  2871. STRIP="$ac_cv_prog_STRIP"
  2872. fi
  2873. fi
  2874. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2876. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2877. if test -z "$MKDIR_P"; then
  2878. if ${ac_cv_path_mkdir+:} false; then :
  2879. $as_echo_n "(cached) " >&6
  2880. else
  2881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2882. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2883. do
  2884. IFS=$as_save_IFS
  2885. test -z "$as_dir" && as_dir=.
  2886. for ac_prog in mkdir gmkdir; do
  2887. for ac_exec_ext in '' $ac_executable_extensions; do
  2888. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2889. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2890. 'mkdir (GNU coreutils) '* | \
  2891. 'mkdir (coreutils) '* | \
  2892. 'mkdir (fileutils) '4.1*)
  2893. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2894. break 3;;
  2895. esac
  2896. done
  2897. done
  2898. done
  2899. IFS=$as_save_IFS
  2900. fi
  2901. test -d ./--version && rmdir ./--version
  2902. if test "${ac_cv_path_mkdir+set}" = set; then
  2903. MKDIR_P="$ac_cv_path_mkdir -p"
  2904. else
  2905. # As a last resort, use the slow shell script. Don't cache a
  2906. # value for MKDIR_P within a source directory, because that will
  2907. # break other packages using the cache if that directory is
  2908. # removed, or if the value is a relative name.
  2909. MKDIR_P="$ac_install_sh -d"
  2910. fi
  2911. fi
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2913. $as_echo "$MKDIR_P" >&6; }
  2914. for ac_prog in gawk mawk nawk awk
  2915. do
  2916. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2917. set dummy $ac_prog; ac_word=$2
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2919. $as_echo_n "checking for $ac_word... " >&6; }
  2920. if ${ac_cv_prog_AWK+:} false; then :
  2921. $as_echo_n "(cached) " >&6
  2922. else
  2923. if test -n "$AWK"; then
  2924. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2925. else
  2926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2927. for as_dir in $PATH
  2928. do
  2929. IFS=$as_save_IFS
  2930. test -z "$as_dir" && as_dir=.
  2931. for ac_exec_ext in '' $ac_executable_extensions; do
  2932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2933. ac_cv_prog_AWK="$ac_prog"
  2934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2935. break 2
  2936. fi
  2937. done
  2938. done
  2939. IFS=$as_save_IFS
  2940. fi
  2941. fi
  2942. AWK=$ac_cv_prog_AWK
  2943. if test -n "$AWK"; then
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2945. $as_echo "$AWK" >&6; }
  2946. else
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2948. $as_echo "no" >&6; }
  2949. fi
  2950. test -n "$AWK" && break
  2951. done
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2953. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2954. set x ${MAKE-make}
  2955. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2956. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2957. $as_echo_n "(cached) " >&6
  2958. else
  2959. cat >conftest.make <<\_ACEOF
  2960. SHELL = /bin/sh
  2961. all:
  2962. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2963. _ACEOF
  2964. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2965. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2966. *@@@%%%=?*=@@@%%%*)
  2967. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2968. *)
  2969. eval ac_cv_prog_make_${ac_make}_set=no;;
  2970. esac
  2971. rm -f conftest.make
  2972. fi
  2973. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2975. $as_echo "yes" >&6; }
  2976. SET_MAKE=
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. $as_echo "no" >&6; }
  2980. SET_MAKE="MAKE=${MAKE-make}"
  2981. fi
  2982. rm -rf .tst 2>/dev/null
  2983. mkdir .tst 2>/dev/null
  2984. if test -d .tst; then
  2985. am__leading_dot=.
  2986. else
  2987. am__leading_dot=_
  2988. fi
  2989. rmdir .tst 2>/dev/null
  2990. # Check whether --enable-silent-rules was given.
  2991. if test "${enable_silent_rules+set}" = set; then :
  2992. enableval=$enable_silent_rules;
  2993. fi
  2994. case $enable_silent_rules in # (((
  2995. yes) AM_DEFAULT_VERBOSITY=0;;
  2996. no) AM_DEFAULT_VERBOSITY=1;;
  2997. *) AM_DEFAULT_VERBOSITY=1;;
  2998. esac
  2999. am_make=${MAKE-make}
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3001. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3002. if ${am_cv_make_support_nested_variables+:} false; then :
  3003. $as_echo_n "(cached) " >&6
  3004. else
  3005. if $as_echo 'TRUE=$(BAR$(V))
  3006. BAR0=false
  3007. BAR1=true
  3008. V=1
  3009. am__doit:
  3010. @$(TRUE)
  3011. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3012. am_cv_make_support_nested_variables=yes
  3013. else
  3014. am_cv_make_support_nested_variables=no
  3015. fi
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3018. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3019. if test $am_cv_make_support_nested_variables = yes; then
  3020. AM_V='$(V)'
  3021. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3022. else
  3023. AM_V=$AM_DEFAULT_VERBOSITY
  3024. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3025. fi
  3026. AM_BACKSLASH='\'
  3027. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3028. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3029. # is not polluted with repeated "-I."
  3030. am__isrc=' -I$(srcdir)'
  3031. # test to see if srcdir already configured
  3032. if test -f $srcdir/config.status; then
  3033. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3034. fi
  3035. fi
  3036. # test whether we have cygpath
  3037. if test -z "$CYGPATH_W"; then
  3038. if (cygpath --version) >/dev/null 2>/dev/null; then
  3039. CYGPATH_W='cygpath -w'
  3040. else
  3041. CYGPATH_W=echo
  3042. fi
  3043. fi
  3044. # Define the identity of the package.
  3045. PACKAGE='dirsrv'
  3046. VERSION='1.0'
  3047. # Some tools Automake needs.
  3048. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3049. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3050. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3051. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3052. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3053. # For better backward compatibility. To be removed once Automake 1.9.x
  3054. # dies out for good. For more background, see:
  3055. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3056. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3057. mkdir_p='$(MKDIR_P)'
  3058. # We need awk for the "check" target. The system "awk" is bad on
  3059. # some platforms.
  3060. # Always define AMTAR for backward compatibility. Yes, it's still used
  3061. # in the wild :-( We should find a proper way to deprecate it ...
  3062. AMTAR='$${TAR-tar}'
  3063. # We'll loop over all known methods to create a tar archive until one works.
  3064. _am_tools='gnutar pax cpio none'
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
  3066. $as_echo_n "checking how to create a pax tar archive... " >&6; }
  3067. # Go ahead even if we have the value already cached. We do so because we
  3068. # need to set the values for the 'am__tar' and 'am__untar' variables.
  3069. _am_tools=${am_cv_prog_tar_pax-$_am_tools}
  3070. for _am_tool in $_am_tools; do
  3071. case $_am_tool in
  3072. gnutar)
  3073. for _am_tar in tar gnutar gtar; do
  3074. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3075. ($_am_tar --version) >&5 2>&5
  3076. ac_status=$?
  3077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3078. (exit $ac_status); } && break
  3079. done
  3080. am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
  3081. am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
  3082. am__untar="$_am_tar -xf -"
  3083. ;;
  3084. plaintar)
  3085. # Must skip GNU tar: if it does not support --format= it doesn't create
  3086. # ustar tarball either.
  3087. (tar --version) >/dev/null 2>&1 && continue
  3088. am__tar='tar chf - "$$tardir"'
  3089. am__tar_='tar chf - "$tardir"'
  3090. am__untar='tar xf -'
  3091. ;;
  3092. pax)
  3093. am__tar='pax -L -x pax -w "$$tardir"'
  3094. am__tar_='pax -L -x pax -w "$tardir"'
  3095. am__untar='pax -r'
  3096. ;;
  3097. cpio)
  3098. am__tar='find "$$tardir" -print | cpio -o -H pax -L'
  3099. am__tar_='find "$tardir" -print | cpio -o -H pax -L'
  3100. am__untar='cpio -i -H pax -d'
  3101. ;;
  3102. none)
  3103. am__tar=false
  3104. am__tar_=false
  3105. am__untar=false
  3106. ;;
  3107. esac
  3108. # If the value was cached, stop now. We just wanted to have am__tar
  3109. # and am__untar set.
  3110. test -n "${am_cv_prog_tar_pax}" && break
  3111. # tar/untar a dummy directory, and stop if the command works.
  3112. rm -rf conftest.dir
  3113. mkdir conftest.dir
  3114. echo GrepMe > conftest.dir/file
  3115. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3116. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3117. ac_status=$?
  3118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3119. (exit $ac_status); }
  3120. rm -rf conftest.dir
  3121. if test -s conftest.tar; then
  3122. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3123. ($am__untar <conftest.tar) >&5 2>&5
  3124. ac_status=$?
  3125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3126. (exit $ac_status); }
  3127. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3128. (cat conftest.dir/file) >&5 2>&5
  3129. ac_status=$?
  3130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3131. (exit $ac_status); }
  3132. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3133. fi
  3134. done
  3135. rm -rf conftest.dir
  3136. if ${am_cv_prog_tar_pax+:} false; then :
  3137. $as_echo_n "(cached) " >&6
  3138. else
  3139. am_cv_prog_tar_pax=$_am_tool
  3140. fi
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
  3142. $as_echo "$am_cv_prog_tar_pax" >&6; }
  3143. # define these for automake distdir
  3144. VERSION=$PACKAGE_VERSION
  3145. PACKAGE=$PACKAGE_TARNAME
  3146. cat >>confdefs.h <<_ACEOF
  3147. #define VERSION "$VERSION"
  3148. _ACEOF
  3149. cat >>confdefs.h <<_ACEOF
  3150. #define PACKAGE "$PACKAGE"
  3151. _ACEOF
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3153. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3154. # Check whether --enable-maintainer-mode was given.
  3155. if test "${enable_maintainer_mode+set}" = set; then :
  3156. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3157. else
  3158. USE_MAINTAINER_MODE=no
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3161. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3162. if test $USE_MAINTAINER_MODE = yes; then
  3163. MAINTAINER_MODE_TRUE=
  3164. MAINTAINER_MODE_FALSE='#'
  3165. else
  3166. MAINTAINER_MODE_TRUE='#'
  3167. MAINTAINER_MODE_FALSE=
  3168. fi
  3169. MAINT=$MAINTAINER_MODE_TRUE
  3170. # Make sure we can run config.sub.
  3171. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3172. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3174. $as_echo_n "checking build system type... " >&6; }
  3175. if ${ac_cv_build+:} false; then :
  3176. $as_echo_n "(cached) " >&6
  3177. else
  3178. ac_build_alias=$build_alias
  3179. test "x$ac_build_alias" = x &&
  3180. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3181. test "x$ac_build_alias" = x &&
  3182. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3183. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3184. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3185. fi
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3187. $as_echo "$ac_cv_build" >&6; }
  3188. case $ac_cv_build in
  3189. *-*-*) ;;
  3190. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3191. esac
  3192. build=$ac_cv_build
  3193. ac_save_IFS=$IFS; IFS='-'
  3194. set x $ac_cv_build
  3195. shift
  3196. build_cpu=$1
  3197. build_vendor=$2
  3198. shift; shift
  3199. # Remember, the first character of IFS is used to create $*,
  3200. # except with old shells:
  3201. build_os=$*
  3202. IFS=$ac_save_IFS
  3203. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3205. $as_echo_n "checking host system type... " >&6; }
  3206. if ${ac_cv_host+:} false; then :
  3207. $as_echo_n "(cached) " >&6
  3208. else
  3209. if test "x$host_alias" = x; then
  3210. ac_cv_host=$ac_cv_build
  3211. else
  3212. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3213. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3214. fi
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3217. $as_echo "$ac_cv_host" >&6; }
  3218. case $ac_cv_host in
  3219. *-*-*) ;;
  3220. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3221. esac
  3222. host=$ac_cv_host
  3223. ac_save_IFS=$IFS; IFS='-'
  3224. set x $ac_cv_host
  3225. shift
  3226. host_cpu=$1
  3227. host_vendor=$2
  3228. shift; shift
  3229. # Remember, the first character of IFS is used to create $*,
  3230. # except with old shells:
  3231. host_os=$*
  3232. IFS=$ac_save_IFS
  3233. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3234. # Checks for programs.
  3235. ac_ext=cpp
  3236. ac_cpp='$CXXCPP $CPPFLAGS'
  3237. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3238. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3239. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3240. if test -z "$CXX"; then
  3241. if test -n "$CCC"; then
  3242. CXX=$CCC
  3243. else
  3244. if test -n "$ac_tool_prefix"; then
  3245. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3246. do
  3247. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3248. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3250. $as_echo_n "checking for $ac_word... " >&6; }
  3251. if ${ac_cv_prog_CXX+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. if test -n "$CXX"; then
  3255. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3256. else
  3257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3258. for as_dir in $PATH
  3259. do
  3260. IFS=$as_save_IFS
  3261. test -z "$as_dir" && as_dir=.
  3262. for ac_exec_ext in '' $ac_executable_extensions; do
  3263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3264. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3266. break 2
  3267. fi
  3268. done
  3269. done
  3270. IFS=$as_save_IFS
  3271. fi
  3272. fi
  3273. CXX=$ac_cv_prog_CXX
  3274. if test -n "$CXX"; then
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3276. $as_echo "$CXX" >&6; }
  3277. else
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3279. $as_echo "no" >&6; }
  3280. fi
  3281. test -n "$CXX" && break
  3282. done
  3283. fi
  3284. if test -z "$CXX"; then
  3285. ac_ct_CXX=$CXX
  3286. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3287. do
  3288. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3289. set dummy $ac_prog; ac_word=$2
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3291. $as_echo_n "checking for $ac_word... " >&6; }
  3292. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3293. $as_echo_n "(cached) " >&6
  3294. else
  3295. if test -n "$ac_ct_CXX"; then
  3296. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3297. else
  3298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3299. for as_dir in $PATH
  3300. do
  3301. IFS=$as_save_IFS
  3302. test -z "$as_dir" && as_dir=.
  3303. for ac_exec_ext in '' $ac_executable_extensions; do
  3304. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3305. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3306. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3307. break 2
  3308. fi
  3309. done
  3310. done
  3311. IFS=$as_save_IFS
  3312. fi
  3313. fi
  3314. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3315. if test -n "$ac_ct_CXX"; then
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3317. $as_echo "$ac_ct_CXX" >&6; }
  3318. else
  3319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3320. $as_echo "no" >&6; }
  3321. fi
  3322. test -n "$ac_ct_CXX" && break
  3323. done
  3324. if test "x$ac_ct_CXX" = x; then
  3325. CXX="g++"
  3326. else
  3327. case $cross_compiling:$ac_tool_warned in
  3328. yes:)
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3331. ac_tool_warned=yes ;;
  3332. esac
  3333. CXX=$ac_ct_CXX
  3334. fi
  3335. fi
  3336. fi
  3337. fi
  3338. # Provide some information about the compiler.
  3339. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3340. set X $ac_compile
  3341. ac_compiler=$2
  3342. for ac_option in --version -v -V -qversion; do
  3343. { { ac_try="$ac_compiler $ac_option >&5"
  3344. case "(($ac_try" in
  3345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3346. *) ac_try_echo=$ac_try;;
  3347. esac
  3348. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3349. $as_echo "$ac_try_echo"; } >&5
  3350. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3351. ac_status=$?
  3352. if test -s conftest.err; then
  3353. sed '10a\
  3354. ... rest of stderr output deleted ...
  3355. 10q' conftest.err >conftest.er1
  3356. cat conftest.er1 >&5
  3357. fi
  3358. rm -f conftest.er1 conftest.err
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3360. test $ac_status = 0; }
  3361. done
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. ac_clean_files_save=$ac_clean_files
  3372. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3373. # Try to create an executable without -o first, disregard a.out.
  3374. # It will help us diagnose broken compilers, and finding out an intuition
  3375. # of exeext.
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3377. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3378. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3379. # The possible output files:
  3380. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3381. ac_rmfiles=
  3382. for ac_file in $ac_files
  3383. do
  3384. case $ac_file in
  3385. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3386. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3387. esac
  3388. done
  3389. rm -f $ac_rmfiles
  3390. if { { ac_try="$ac_link_default"
  3391. case "(($ac_try" in
  3392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3393. *) ac_try_echo=$ac_try;;
  3394. esac
  3395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3396. $as_echo "$ac_try_echo"; } >&5
  3397. (eval "$ac_link_default") 2>&5
  3398. ac_status=$?
  3399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3400. test $ac_status = 0; }; then :
  3401. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3402. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3403. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3404. # so that the user can short-circuit this test for compilers unknown to
  3405. # Autoconf.
  3406. for ac_file in $ac_files ''
  3407. do
  3408. test -f "$ac_file" || continue
  3409. case $ac_file in
  3410. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3411. ;;
  3412. [ab].out )
  3413. # We found the default executable, but exeext='' is most
  3414. # certainly right.
  3415. break;;
  3416. *.* )
  3417. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3418. then :; else
  3419. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3420. fi
  3421. # We set ac_cv_exeext here because the later test for it is not
  3422. # safe: cross compilers may not add the suffix if given an `-o'
  3423. # argument, so we may need to know it at that point already.
  3424. # Even if this section looks crufty: it has the advantage of
  3425. # actually working.
  3426. break;;
  3427. * )
  3428. break;;
  3429. esac
  3430. done
  3431. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3432. else
  3433. ac_file=''
  3434. fi
  3435. if test -z "$ac_file"; then :
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3437. $as_echo "no" >&6; }
  3438. $as_echo "$as_me: failed program was:" >&5
  3439. sed 's/^/| /' conftest.$ac_ext >&5
  3440. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3442. as_fn_error 77 "C++ compiler cannot create executables
  3443. See \`config.log' for more details" "$LINENO" 5; }
  3444. else
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3446. $as_echo "yes" >&6; }
  3447. fi
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3449. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3451. $as_echo "$ac_file" >&6; }
  3452. ac_exeext=$ac_cv_exeext
  3453. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3454. ac_clean_files=$ac_clean_files_save
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3456. $as_echo_n "checking for suffix of executables... " >&6; }
  3457. if { { ac_try="$ac_link"
  3458. case "(($ac_try" in
  3459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3460. *) ac_try_echo=$ac_try;;
  3461. esac
  3462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3463. $as_echo "$ac_try_echo"; } >&5
  3464. (eval "$ac_link") 2>&5
  3465. ac_status=$?
  3466. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3467. test $ac_status = 0; }; then :
  3468. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3469. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3470. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3471. # `rm'.
  3472. for ac_file in conftest.exe conftest conftest.*; do
  3473. test -f "$ac_file" || continue
  3474. case $ac_file in
  3475. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3476. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3477. break;;
  3478. * ) break;;
  3479. esac
  3480. done
  3481. else
  3482. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3484. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3485. See \`config.log' for more details" "$LINENO" 5; }
  3486. fi
  3487. rm -f conftest conftest$ac_cv_exeext
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3489. $as_echo "$ac_cv_exeext" >&6; }
  3490. rm -f conftest.$ac_ext
  3491. EXEEXT=$ac_cv_exeext
  3492. ac_exeext=$EXEEXT
  3493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3494. /* end confdefs.h. */
  3495. #include <stdio.h>
  3496. int
  3497. main ()
  3498. {
  3499. FILE *f = fopen ("conftest.out", "w");
  3500. return ferror (f) || fclose (f) != 0;
  3501. ;
  3502. return 0;
  3503. }
  3504. _ACEOF
  3505. ac_clean_files="$ac_clean_files conftest.out"
  3506. # Check that the compiler produces executables we can run. If not, either
  3507. # the compiler is broken, or we cross compile.
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3509. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3510. if test "$cross_compiling" != yes; then
  3511. { { ac_try="$ac_link"
  3512. case "(($ac_try" in
  3513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3514. *) ac_try_echo=$ac_try;;
  3515. esac
  3516. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3517. $as_echo "$ac_try_echo"; } >&5
  3518. (eval "$ac_link") 2>&5
  3519. ac_status=$?
  3520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3521. test $ac_status = 0; }
  3522. if { ac_try='./conftest$ac_cv_exeext'
  3523. { { case "(($ac_try" in
  3524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3525. *) ac_try_echo=$ac_try;;
  3526. esac
  3527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3528. $as_echo "$ac_try_echo"; } >&5
  3529. (eval "$ac_try") 2>&5
  3530. ac_status=$?
  3531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3532. test $ac_status = 0; }; }; then
  3533. cross_compiling=no
  3534. else
  3535. if test "$cross_compiling" = maybe; then
  3536. cross_compiling=yes
  3537. else
  3538. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3539. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3540. as_fn_error $? "cannot run C++ compiled programs.
  3541. If you meant to cross compile, use \`--host'.
  3542. See \`config.log' for more details" "$LINENO" 5; }
  3543. fi
  3544. fi
  3545. fi
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3547. $as_echo "$cross_compiling" >&6; }
  3548. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3549. ac_clean_files=$ac_clean_files_save
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3551. $as_echo_n "checking for suffix of object files... " >&6; }
  3552. if ${ac_cv_objext+:} false; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3556. /* end confdefs.h. */
  3557. int
  3558. main ()
  3559. {
  3560. ;
  3561. return 0;
  3562. }
  3563. _ACEOF
  3564. rm -f conftest.o conftest.obj
  3565. if { { ac_try="$ac_compile"
  3566. case "(($ac_try" in
  3567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3568. *) ac_try_echo=$ac_try;;
  3569. esac
  3570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3571. $as_echo "$ac_try_echo"; } >&5
  3572. (eval "$ac_compile") 2>&5
  3573. ac_status=$?
  3574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3575. test $ac_status = 0; }; then :
  3576. for ac_file in conftest.o conftest.obj conftest.*; do
  3577. test -f "$ac_file" || continue;
  3578. case $ac_file in
  3579. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3580. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3581. break;;
  3582. esac
  3583. done
  3584. else
  3585. $as_echo "$as_me: failed program was:" >&5
  3586. sed 's/^/| /' conftest.$ac_ext >&5
  3587. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3588. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3589. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3590. See \`config.log' for more details" "$LINENO" 5; }
  3591. fi
  3592. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3593. fi
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3595. $as_echo "$ac_cv_objext" >&6; }
  3596. OBJEXT=$ac_cv_objext
  3597. ac_objext=$OBJEXT
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3599. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3600. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3604. /* end confdefs.h. */
  3605. int
  3606. main ()
  3607. {
  3608. #ifndef __GNUC__
  3609. choke me
  3610. #endif
  3611. ;
  3612. return 0;
  3613. }
  3614. _ACEOF
  3615. if ac_fn_cxx_try_compile "$LINENO"; then :
  3616. ac_compiler_gnu=yes
  3617. else
  3618. ac_compiler_gnu=no
  3619. fi
  3620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3621. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3622. fi
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3624. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3625. if test $ac_compiler_gnu = yes; then
  3626. GXX=yes
  3627. else
  3628. GXX=
  3629. fi
  3630. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3631. ac_save_CXXFLAGS=$CXXFLAGS
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3633. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3634. if ${ac_cv_prog_cxx_g+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3638. ac_cxx_werror_flag=yes
  3639. ac_cv_prog_cxx_g=no
  3640. CXXFLAGS="-g"
  3641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3642. /* end confdefs.h. */
  3643. int
  3644. main ()
  3645. {
  3646. ;
  3647. return 0;
  3648. }
  3649. _ACEOF
  3650. if ac_fn_cxx_try_compile "$LINENO"; then :
  3651. ac_cv_prog_cxx_g=yes
  3652. else
  3653. CXXFLAGS=""
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. int
  3657. main ()
  3658. {
  3659. ;
  3660. return 0;
  3661. }
  3662. _ACEOF
  3663. if ac_fn_cxx_try_compile "$LINENO"; then :
  3664. else
  3665. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3666. CXXFLAGS="-g"
  3667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3668. /* end confdefs.h. */
  3669. int
  3670. main ()
  3671. {
  3672. ;
  3673. return 0;
  3674. }
  3675. _ACEOF
  3676. if ac_fn_cxx_try_compile "$LINENO"; then :
  3677. ac_cv_prog_cxx_g=yes
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3682. fi
  3683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3684. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3687. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3688. if test "$ac_test_CXXFLAGS" = set; then
  3689. CXXFLAGS=$ac_save_CXXFLAGS
  3690. elif test $ac_cv_prog_cxx_g = yes; then
  3691. if test "$GXX" = yes; then
  3692. CXXFLAGS="-g -O2"
  3693. else
  3694. CXXFLAGS="-g"
  3695. fi
  3696. else
  3697. if test "$GXX" = yes; then
  3698. CXXFLAGS="-O2"
  3699. else
  3700. CXXFLAGS=
  3701. fi
  3702. fi
  3703. ac_ext=c
  3704. ac_cpp='$CPP $CPPFLAGS'
  3705. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3706. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3707. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3708. DEPDIR="${am__leading_dot}deps"
  3709. ac_config_commands="$ac_config_commands depfiles"
  3710. am_make=${MAKE-make}
  3711. cat > confinc << 'END'
  3712. am__doit:
  3713. @echo this is the am__doit target
  3714. .PHONY: am__doit
  3715. END
  3716. # If we don't find an include directive, just comment out the code.
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3718. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3719. am__include="#"
  3720. am__quote=
  3721. _am_result=none
  3722. # First try GNU make style include.
  3723. echo "include confinc" > confmf
  3724. # Ignore all kinds of additional output from 'make'.
  3725. case `$am_make -s -f confmf 2> /dev/null` in #(
  3726. *the\ am__doit\ target*)
  3727. am__include=include
  3728. am__quote=
  3729. _am_result=GNU
  3730. ;;
  3731. esac
  3732. # Now try BSD make style include.
  3733. if test "$am__include" = "#"; then
  3734. echo '.include "confinc"' > confmf
  3735. case `$am_make -s -f confmf 2> /dev/null` in #(
  3736. *the\ am__doit\ target*)
  3737. am__include=.include
  3738. am__quote="\""
  3739. _am_result=BSD
  3740. ;;
  3741. esac
  3742. fi
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3744. $as_echo "$_am_result" >&6; }
  3745. rm -f confinc confmf
  3746. # Check whether --enable-dependency-tracking was given.
  3747. if test "${enable_dependency_tracking+set}" = set; then :
  3748. enableval=$enable_dependency_tracking;
  3749. fi
  3750. if test "x$enable_dependency_tracking" != xno; then
  3751. am_depcomp="$ac_aux_dir/depcomp"
  3752. AMDEPBACKSLASH='\'
  3753. am__nodep='_no'
  3754. fi
  3755. if test "x$enable_dependency_tracking" != xno; then
  3756. AMDEP_TRUE=
  3757. AMDEP_FALSE='#'
  3758. else
  3759. AMDEP_TRUE='#'
  3760. AMDEP_FALSE=
  3761. fi
  3762. depcc="$CXX" am_compiler_list=
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3764. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3765. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3766. $as_echo_n "(cached) " >&6
  3767. else
  3768. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3769. # We make a subdir and do the tests there. Otherwise we can end up
  3770. # making bogus files that we don't know about and never remove. For
  3771. # instance it was reported that on HP-UX the gcc test will end up
  3772. # making a dummy file named 'D' -- because '-MD' means "put the output
  3773. # in D".
  3774. rm -rf conftest.dir
  3775. mkdir conftest.dir
  3776. # Copy depcomp to subdir because otherwise we won't find it if we're
  3777. # using a relative directory.
  3778. cp "$am_depcomp" conftest.dir
  3779. cd conftest.dir
  3780. # We will build objects and dependencies in a subdirectory because
  3781. # it helps to detect inapplicable dependency modes. For instance
  3782. # both Tru64's cc and ICC support -MD to output dependencies as a
  3783. # side effect of compilation, but ICC will put the dependencies in
  3784. # the current directory while Tru64 will put them in the object
  3785. # directory.
  3786. mkdir sub
  3787. am_cv_CXX_dependencies_compiler_type=none
  3788. if test "$am_compiler_list" = ""; then
  3789. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3790. fi
  3791. am__universal=false
  3792. case " $depcc " in #(
  3793. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3794. esac
  3795. for depmode in $am_compiler_list; do
  3796. # Setup a source with many dependencies, because some compilers
  3797. # like to wrap large dependency lists on column 80 (with \), and
  3798. # we should not choose a depcomp mode which is confused by this.
  3799. #
  3800. # We need to recreate these files for each test, as the compiler may
  3801. # overwrite some of them when testing with obscure command lines.
  3802. # This happens at least with the AIX C compiler.
  3803. : > sub/conftest.c
  3804. for i in 1 2 3 4 5 6; do
  3805. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3806. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3807. # Solaris 10 /bin/sh.
  3808. echo '/* dummy */' > sub/conftst$i.h
  3809. done
  3810. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3811. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3812. # mode. It turns out that the SunPro C++ compiler does not properly
  3813. # handle '-M -o', and we need to detect this. Also, some Intel
  3814. # versions had trouble with output in subdirs.
  3815. am__obj=sub/conftest.${OBJEXT-o}
  3816. am__minus_obj="-o $am__obj"
  3817. case $depmode in
  3818. gcc)
  3819. # This depmode causes a compiler race in universal mode.
  3820. test "$am__universal" = false || continue
  3821. ;;
  3822. nosideeffect)
  3823. # After this tag, mechanisms are not by side-effect, so they'll
  3824. # only be used when explicitly requested.
  3825. if test "x$enable_dependency_tracking" = xyes; then
  3826. continue
  3827. else
  3828. break
  3829. fi
  3830. ;;
  3831. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3832. # This compiler won't grok '-c -o', but also, the minuso test has
  3833. # not run yet. These depmodes are late enough in the game, and
  3834. # so weak that their functioning should not be impacted.
  3835. am__obj=conftest.${OBJEXT-o}
  3836. am__minus_obj=
  3837. ;;
  3838. none) break ;;
  3839. esac
  3840. if depmode=$depmode \
  3841. source=sub/conftest.c object=$am__obj \
  3842. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3843. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3844. >/dev/null 2>conftest.err &&
  3845. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3846. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3847. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3848. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3849. # icc doesn't choke on unknown options, it will just issue warnings
  3850. # or remarks (even with -Werror). So we grep stderr for any message
  3851. # that says an option was ignored or not supported.
  3852. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3853. # icc: Command line warning: ignoring option '-M'; no argument required
  3854. # The diagnosis changed in icc 8.0:
  3855. # icc: Command line remark: option '-MP' not supported
  3856. if (grep 'ignoring option' conftest.err ||
  3857. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3858. am_cv_CXX_dependencies_compiler_type=$depmode
  3859. break
  3860. fi
  3861. fi
  3862. done
  3863. cd ..
  3864. rm -rf conftest.dir
  3865. else
  3866. am_cv_CXX_dependencies_compiler_type=none
  3867. fi
  3868. fi
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3870. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3871. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3872. if
  3873. test "x$enable_dependency_tracking" != xno \
  3874. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3875. am__fastdepCXX_TRUE=
  3876. am__fastdepCXX_FALSE='#'
  3877. else
  3878. am__fastdepCXX_TRUE='#'
  3879. am__fastdepCXX_FALSE=
  3880. fi
  3881. ac_ext=c
  3882. ac_cpp='$CPP $CPPFLAGS'
  3883. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3884. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3885. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3886. if test -n "$ac_tool_prefix"; then
  3887. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3888. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3890. $as_echo_n "checking for $ac_word... " >&6; }
  3891. if ${ac_cv_prog_CC+:} false; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. if test -n "$CC"; then
  3895. ac_cv_prog_CC="$CC" # Let the user override the test.
  3896. else
  3897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3898. for as_dir in $PATH
  3899. do
  3900. IFS=$as_save_IFS
  3901. test -z "$as_dir" && as_dir=.
  3902. for ac_exec_ext in '' $ac_executable_extensions; do
  3903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3904. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3906. break 2
  3907. fi
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. fi
  3912. fi
  3913. CC=$ac_cv_prog_CC
  3914. if test -n "$CC"; then
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3916. $as_echo "$CC" >&6; }
  3917. else
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3919. $as_echo "no" >&6; }
  3920. fi
  3921. fi
  3922. if test -z "$ac_cv_prog_CC"; then
  3923. ac_ct_CC=$CC
  3924. # Extract the first word of "gcc", so it can be a program name with args.
  3925. set dummy gcc; ac_word=$2
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3927. $as_echo_n "checking for $ac_word... " >&6; }
  3928. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. if test -n "$ac_ct_CC"; then
  3932. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3933. else
  3934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3935. for as_dir in $PATH
  3936. do
  3937. IFS=$as_save_IFS
  3938. test -z "$as_dir" && as_dir=.
  3939. for ac_exec_ext in '' $ac_executable_extensions; do
  3940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3941. ac_cv_prog_ac_ct_CC="gcc"
  3942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3943. break 2
  3944. fi
  3945. done
  3946. done
  3947. IFS=$as_save_IFS
  3948. fi
  3949. fi
  3950. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3951. if test -n "$ac_ct_CC"; then
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3953. $as_echo "$ac_ct_CC" >&6; }
  3954. else
  3955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3956. $as_echo "no" >&6; }
  3957. fi
  3958. if test "x$ac_ct_CC" = x; then
  3959. CC=""
  3960. else
  3961. case $cross_compiling:$ac_tool_warned in
  3962. yes:)
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3965. ac_tool_warned=yes ;;
  3966. esac
  3967. CC=$ac_ct_CC
  3968. fi
  3969. else
  3970. CC="$ac_cv_prog_CC"
  3971. fi
  3972. if test -z "$CC"; then
  3973. if test -n "$ac_tool_prefix"; then
  3974. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3975. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3977. $as_echo_n "checking for $ac_word... " >&6; }
  3978. if ${ac_cv_prog_CC+:} false; then :
  3979. $as_echo_n "(cached) " >&6
  3980. else
  3981. if test -n "$CC"; then
  3982. ac_cv_prog_CC="$CC" # Let the user override the test.
  3983. else
  3984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3985. for as_dir in $PATH
  3986. do
  3987. IFS=$as_save_IFS
  3988. test -z "$as_dir" && as_dir=.
  3989. for ac_exec_ext in '' $ac_executable_extensions; do
  3990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3991. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3993. break 2
  3994. fi
  3995. done
  3996. done
  3997. IFS=$as_save_IFS
  3998. fi
  3999. fi
  4000. CC=$ac_cv_prog_CC
  4001. if test -n "$CC"; then
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4003. $as_echo "$CC" >&6; }
  4004. else
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4006. $as_echo "no" >&6; }
  4007. fi
  4008. fi
  4009. fi
  4010. if test -z "$CC"; then
  4011. # Extract the first word of "cc", so it can be a program name with args.
  4012. set dummy cc; ac_word=$2
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4014. $as_echo_n "checking for $ac_word... " >&6; }
  4015. if ${ac_cv_prog_CC+:} false; then :
  4016. $as_echo_n "(cached) " >&6
  4017. else
  4018. if test -n "$CC"; then
  4019. ac_cv_prog_CC="$CC" # Let the user override the test.
  4020. else
  4021. ac_prog_rejected=no
  4022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4023. for as_dir in $PATH
  4024. do
  4025. IFS=$as_save_IFS
  4026. test -z "$as_dir" && as_dir=.
  4027. for ac_exec_ext in '' $ac_executable_extensions; do
  4028. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4029. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4030. ac_prog_rejected=yes
  4031. continue
  4032. fi
  4033. ac_cv_prog_CC="cc"
  4034. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4035. break 2
  4036. fi
  4037. done
  4038. done
  4039. IFS=$as_save_IFS
  4040. if test $ac_prog_rejected = yes; then
  4041. # We found a bogon in the path, so make sure we never use it.
  4042. set dummy $ac_cv_prog_CC
  4043. shift
  4044. if test $# != 0; then
  4045. # We chose a different compiler from the bogus one.
  4046. # However, it has the same basename, so the bogon will be chosen
  4047. # first if we set CC to just the basename; use the full file name.
  4048. shift
  4049. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4050. fi
  4051. fi
  4052. fi
  4053. fi
  4054. CC=$ac_cv_prog_CC
  4055. if test -n "$CC"; then
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4057. $as_echo "$CC" >&6; }
  4058. else
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4060. $as_echo "no" >&6; }
  4061. fi
  4062. fi
  4063. if test -z "$CC"; then
  4064. if test -n "$ac_tool_prefix"; then
  4065. for ac_prog in cl.exe
  4066. do
  4067. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4068. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4070. $as_echo_n "checking for $ac_word... " >&6; }
  4071. if ${ac_cv_prog_CC+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. if test -n "$CC"; then
  4075. ac_cv_prog_CC="$CC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4084. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. CC=$ac_cv_prog_CC
  4094. if test -n "$CC"; then
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4096. $as_echo "$CC" >&6; }
  4097. else
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4099. $as_echo "no" >&6; }
  4100. fi
  4101. test -n "$CC" && break
  4102. done
  4103. fi
  4104. if test -z "$CC"; then
  4105. ac_ct_CC=$CC
  4106. for ac_prog in cl.exe
  4107. do
  4108. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4109. set dummy $ac_prog; ac_word=$2
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4111. $as_echo_n "checking for $ac_word... " >&6; }
  4112. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. if test -n "$ac_ct_CC"; then
  4116. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4117. else
  4118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4119. for as_dir in $PATH
  4120. do
  4121. IFS=$as_save_IFS
  4122. test -z "$as_dir" && as_dir=.
  4123. for ac_exec_ext in '' $ac_executable_extensions; do
  4124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4125. ac_cv_prog_ac_ct_CC="$ac_prog"
  4126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4127. break 2
  4128. fi
  4129. done
  4130. done
  4131. IFS=$as_save_IFS
  4132. fi
  4133. fi
  4134. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4135. if test -n "$ac_ct_CC"; then
  4136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4137. $as_echo "$ac_ct_CC" >&6; }
  4138. else
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4140. $as_echo "no" >&6; }
  4141. fi
  4142. test -n "$ac_ct_CC" && break
  4143. done
  4144. if test "x$ac_ct_CC" = x; then
  4145. CC=""
  4146. else
  4147. case $cross_compiling:$ac_tool_warned in
  4148. yes:)
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4151. ac_tool_warned=yes ;;
  4152. esac
  4153. CC=$ac_ct_CC
  4154. fi
  4155. fi
  4156. fi
  4157. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4158. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4159. as_fn_error $? "no acceptable C compiler found in \$PATH
  4160. See \`config.log' for more details" "$LINENO" 5; }
  4161. # Provide some information about the compiler.
  4162. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4163. set X $ac_compile
  4164. ac_compiler=$2
  4165. for ac_option in --version -v -V -qversion; do
  4166. { { ac_try="$ac_compiler $ac_option >&5"
  4167. case "(($ac_try" in
  4168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4169. *) ac_try_echo=$ac_try;;
  4170. esac
  4171. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4172. $as_echo "$ac_try_echo"; } >&5
  4173. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4174. ac_status=$?
  4175. if test -s conftest.err; then
  4176. sed '10a\
  4177. ... rest of stderr output deleted ...
  4178. 10q' conftest.err >conftest.er1
  4179. cat conftest.er1 >&5
  4180. fi
  4181. rm -f conftest.er1 conftest.err
  4182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4183. test $ac_status = 0; }
  4184. done
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4186. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4187. if ${ac_cv_c_compiler_gnu+:} false; then :
  4188. $as_echo_n "(cached) " >&6
  4189. else
  4190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4191. /* end confdefs.h. */
  4192. int
  4193. main ()
  4194. {
  4195. #ifndef __GNUC__
  4196. choke me
  4197. #endif
  4198. ;
  4199. return 0;
  4200. }
  4201. _ACEOF
  4202. if ac_fn_c_try_compile "$LINENO"; then :
  4203. ac_compiler_gnu=yes
  4204. else
  4205. ac_compiler_gnu=no
  4206. fi
  4207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4208. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4209. fi
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4211. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4212. if test $ac_compiler_gnu = yes; then
  4213. GCC=yes
  4214. else
  4215. GCC=
  4216. fi
  4217. ac_test_CFLAGS=${CFLAGS+set}
  4218. ac_save_CFLAGS=$CFLAGS
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4220. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4221. if ${ac_cv_prog_cc_g+:} false; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. ac_save_c_werror_flag=$ac_c_werror_flag
  4225. ac_c_werror_flag=yes
  4226. ac_cv_prog_cc_g=no
  4227. CFLAGS="-g"
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. int
  4231. main ()
  4232. {
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. if ac_fn_c_try_compile "$LINENO"; then :
  4238. ac_cv_prog_cc_g=yes
  4239. else
  4240. CFLAGS=""
  4241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4242. /* end confdefs.h. */
  4243. int
  4244. main ()
  4245. {
  4246. ;
  4247. return 0;
  4248. }
  4249. _ACEOF
  4250. if ac_fn_c_try_compile "$LINENO"; then :
  4251. else
  4252. ac_c_werror_flag=$ac_save_c_werror_flag
  4253. CFLAGS="-g"
  4254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4255. /* end confdefs.h. */
  4256. int
  4257. main ()
  4258. {
  4259. ;
  4260. return 0;
  4261. }
  4262. _ACEOF
  4263. if ac_fn_c_try_compile "$LINENO"; then :
  4264. ac_cv_prog_cc_g=yes
  4265. fi
  4266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4267. fi
  4268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4269. fi
  4270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4271. ac_c_werror_flag=$ac_save_c_werror_flag
  4272. fi
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4274. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4275. if test "$ac_test_CFLAGS" = set; then
  4276. CFLAGS=$ac_save_CFLAGS
  4277. elif test $ac_cv_prog_cc_g = yes; then
  4278. if test "$GCC" = yes; then
  4279. CFLAGS="-g -O2"
  4280. else
  4281. CFLAGS="-g"
  4282. fi
  4283. else
  4284. if test "$GCC" = yes; then
  4285. CFLAGS="-O2"
  4286. else
  4287. CFLAGS=
  4288. fi
  4289. fi
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4291. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4292. if ${ac_cv_prog_cc_c89+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. ac_cv_prog_cc_c89=no
  4296. ac_save_CC=$CC
  4297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4298. /* end confdefs.h. */
  4299. #include <stdarg.h>
  4300. #include <stdio.h>
  4301. struct stat;
  4302. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4303. struct buf { int x; };
  4304. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4305. static char *e (p, i)
  4306. char **p;
  4307. int i;
  4308. {
  4309. return p[i];
  4310. }
  4311. static char *f (char * (*g) (char **, int), char **p, ...)
  4312. {
  4313. char *s;
  4314. va_list v;
  4315. va_start (v,p);
  4316. s = g (p, va_arg (v,int));
  4317. va_end (v);
  4318. return s;
  4319. }
  4320. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4321. function prototypes and stuff, but not '\xHH' hex character constants.
  4322. These don't provoke an error unfortunately, instead are silently treated
  4323. as 'x'. The following induces an error, until -std is added to get
  4324. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4325. array size at least. It's necessary to write '\x00'==0 to get something
  4326. that's true only with -std. */
  4327. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4328. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4329. inside strings and character constants. */
  4330. #define FOO(x) 'x'
  4331. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4332. int test (int i, double x);
  4333. struct s1 {int (*f) (int a);};
  4334. struct s2 {int (*f) (double a);};
  4335. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4336. int argc;
  4337. char **argv;
  4338. int
  4339. main ()
  4340. {
  4341. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4342. ;
  4343. return 0;
  4344. }
  4345. _ACEOF
  4346. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4347. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4348. do
  4349. CC="$ac_save_CC $ac_arg"
  4350. if ac_fn_c_try_compile "$LINENO"; then :
  4351. ac_cv_prog_cc_c89=$ac_arg
  4352. fi
  4353. rm -f core conftest.err conftest.$ac_objext
  4354. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4355. done
  4356. rm -f conftest.$ac_ext
  4357. CC=$ac_save_CC
  4358. fi
  4359. # AC_CACHE_VAL
  4360. case "x$ac_cv_prog_cc_c89" in
  4361. x)
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4363. $as_echo "none needed" >&6; } ;;
  4364. xno)
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4366. $as_echo "unsupported" >&6; } ;;
  4367. *)
  4368. CC="$CC $ac_cv_prog_cc_c89"
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4370. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4371. esac
  4372. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4373. fi
  4374. ac_ext=c
  4375. ac_cpp='$CPP $CPPFLAGS'
  4376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4379. depcc="$CC" am_compiler_list=
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4381. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4382. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4386. # We make a subdir and do the tests there. Otherwise we can end up
  4387. # making bogus files that we don't know about and never remove. For
  4388. # instance it was reported that on HP-UX the gcc test will end up
  4389. # making a dummy file named 'D' -- because '-MD' means "put the output
  4390. # in D".
  4391. rm -rf conftest.dir
  4392. mkdir conftest.dir
  4393. # Copy depcomp to subdir because otherwise we won't find it if we're
  4394. # using a relative directory.
  4395. cp "$am_depcomp" conftest.dir
  4396. cd conftest.dir
  4397. # We will build objects and dependencies in a subdirectory because
  4398. # it helps to detect inapplicable dependency modes. For instance
  4399. # both Tru64's cc and ICC support -MD to output dependencies as a
  4400. # side effect of compilation, but ICC will put the dependencies in
  4401. # the current directory while Tru64 will put them in the object
  4402. # directory.
  4403. mkdir sub
  4404. am_cv_CC_dependencies_compiler_type=none
  4405. if test "$am_compiler_list" = ""; then
  4406. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4407. fi
  4408. am__universal=false
  4409. case " $depcc " in #(
  4410. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4411. esac
  4412. for depmode in $am_compiler_list; do
  4413. # Setup a source with many dependencies, because some compilers
  4414. # like to wrap large dependency lists on column 80 (with \), and
  4415. # we should not choose a depcomp mode which is confused by this.
  4416. #
  4417. # We need to recreate these files for each test, as the compiler may
  4418. # overwrite some of them when testing with obscure command lines.
  4419. # This happens at least with the AIX C compiler.
  4420. : > sub/conftest.c
  4421. for i in 1 2 3 4 5 6; do
  4422. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4423. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4424. # Solaris 10 /bin/sh.
  4425. echo '/* dummy */' > sub/conftst$i.h
  4426. done
  4427. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4428. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4429. # mode. It turns out that the SunPro C++ compiler does not properly
  4430. # handle '-M -o', and we need to detect this. Also, some Intel
  4431. # versions had trouble with output in subdirs.
  4432. am__obj=sub/conftest.${OBJEXT-o}
  4433. am__minus_obj="-o $am__obj"
  4434. case $depmode in
  4435. gcc)
  4436. # This depmode causes a compiler race in universal mode.
  4437. test "$am__universal" = false || continue
  4438. ;;
  4439. nosideeffect)
  4440. # After this tag, mechanisms are not by side-effect, so they'll
  4441. # only be used when explicitly requested.
  4442. if test "x$enable_dependency_tracking" = xyes; then
  4443. continue
  4444. else
  4445. break
  4446. fi
  4447. ;;
  4448. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4449. # This compiler won't grok '-c -o', but also, the minuso test has
  4450. # not run yet. These depmodes are late enough in the game, and
  4451. # so weak that their functioning should not be impacted.
  4452. am__obj=conftest.${OBJEXT-o}
  4453. am__minus_obj=
  4454. ;;
  4455. none) break ;;
  4456. esac
  4457. if depmode=$depmode \
  4458. source=sub/conftest.c object=$am__obj \
  4459. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4460. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4461. >/dev/null 2>conftest.err &&
  4462. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4463. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4464. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4465. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4466. # icc doesn't choke on unknown options, it will just issue warnings
  4467. # or remarks (even with -Werror). So we grep stderr for any message
  4468. # that says an option was ignored or not supported.
  4469. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4470. # icc: Command line warning: ignoring option '-M'; no argument required
  4471. # The diagnosis changed in icc 8.0:
  4472. # icc: Command line remark: option '-MP' not supported
  4473. if (grep 'ignoring option' conftest.err ||
  4474. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4475. am_cv_CC_dependencies_compiler_type=$depmode
  4476. break
  4477. fi
  4478. fi
  4479. done
  4480. cd ..
  4481. rm -rf conftest.dir
  4482. else
  4483. am_cv_CC_dependencies_compiler_type=none
  4484. fi
  4485. fi
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4487. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4488. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4489. if
  4490. test "x$enable_dependency_tracking" != xno \
  4491. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4492. am__fastdepCC_TRUE=
  4493. am__fastdepCC_FALSE='#'
  4494. else
  4495. am__fastdepCC_TRUE='#'
  4496. am__fastdepCC_FALSE=
  4497. fi
  4498. if test "x$CC" != xcc; then
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4500. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4501. else
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4503. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4504. fi
  4505. set dummy $CC; ac_cc=`$as_echo "$2" |
  4506. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4507. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4511. /* end confdefs.h. */
  4512. int
  4513. main ()
  4514. {
  4515. ;
  4516. return 0;
  4517. }
  4518. _ACEOF
  4519. # Make sure it works both with $CC and with simple cc.
  4520. # We do the test twice because some compilers refuse to overwrite an
  4521. # existing .o file with -o, though they will create one.
  4522. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4523. rm -f conftest2.*
  4524. if { { case "(($ac_try" in
  4525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4526. *) ac_try_echo=$ac_try;;
  4527. esac
  4528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4529. $as_echo "$ac_try_echo"; } >&5
  4530. (eval "$ac_try") 2>&5
  4531. ac_status=$?
  4532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4533. test $ac_status = 0; } &&
  4534. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4536. *) ac_try_echo=$ac_try;;
  4537. esac
  4538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4539. $as_echo "$ac_try_echo"; } >&5
  4540. (eval "$ac_try") 2>&5
  4541. ac_status=$?
  4542. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4543. test $ac_status = 0; };
  4544. then
  4545. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4546. if test "x$CC" != xcc; then
  4547. # Test first that cc exists at all.
  4548. if { ac_try='cc -c conftest.$ac_ext >&5'
  4549. { { case "(($ac_try" in
  4550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4551. *) ac_try_echo=$ac_try;;
  4552. esac
  4553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4554. $as_echo "$ac_try_echo"; } >&5
  4555. (eval "$ac_try") 2>&5
  4556. ac_status=$?
  4557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4558. test $ac_status = 0; }; }; then
  4559. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4560. rm -f conftest2.*
  4561. if { { case "(($ac_try" in
  4562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4563. *) ac_try_echo=$ac_try;;
  4564. esac
  4565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4566. $as_echo "$ac_try_echo"; } >&5
  4567. (eval "$ac_try") 2>&5
  4568. ac_status=$?
  4569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4570. test $ac_status = 0; } &&
  4571. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4573. *) ac_try_echo=$ac_try;;
  4574. esac
  4575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4576. $as_echo "$ac_try_echo"; } >&5
  4577. (eval "$ac_try") 2>&5
  4578. ac_status=$?
  4579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4580. test $ac_status = 0; };
  4581. then
  4582. # cc works too.
  4583. :
  4584. else
  4585. # cc exists but doesn't like -o.
  4586. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4587. fi
  4588. fi
  4589. fi
  4590. else
  4591. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4592. fi
  4593. rm -f core conftest*
  4594. fi
  4595. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4597. $as_echo "yes" >&6; }
  4598. else
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4600. $as_echo "no" >&6; }
  4601. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4602. fi
  4603. # FIXME: we rely on the cache variable name because
  4604. # there is no other way.
  4605. set dummy $CC
  4606. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4607. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4608. if test "$am_t" != yes; then
  4609. # Losing compiler, so override with the script.
  4610. # FIXME: It is wrong to rewrite CC.
  4611. # But if we don't then we get into trouble of one sort or another.
  4612. # A longer-term fix would be to have automake use am__CC in this case,
  4613. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4614. CC="$am_aux_dir/compile $CC"
  4615. fi
  4616. # By default we simply use the C compiler to build assembly code.
  4617. test "${CCAS+set}" = set || CCAS=$CC
  4618. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4619. depcc="$CCAS" am_compiler_list=
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4621. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4622. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4623. $as_echo_n "(cached) " >&6
  4624. else
  4625. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4626. # We make a subdir and do the tests there. Otherwise we can end up
  4627. # making bogus files that we don't know about and never remove. For
  4628. # instance it was reported that on HP-UX the gcc test will end up
  4629. # making a dummy file named 'D' -- because '-MD' means "put the output
  4630. # in D".
  4631. rm -rf conftest.dir
  4632. mkdir conftest.dir
  4633. # Copy depcomp to subdir because otherwise we won't find it if we're
  4634. # using a relative directory.
  4635. cp "$am_depcomp" conftest.dir
  4636. cd conftest.dir
  4637. # We will build objects and dependencies in a subdirectory because
  4638. # it helps to detect inapplicable dependency modes. For instance
  4639. # both Tru64's cc and ICC support -MD to output dependencies as a
  4640. # side effect of compilation, but ICC will put the dependencies in
  4641. # the current directory while Tru64 will put them in the object
  4642. # directory.
  4643. mkdir sub
  4644. am_cv_CCAS_dependencies_compiler_type=none
  4645. if test "$am_compiler_list" = ""; then
  4646. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4647. fi
  4648. am__universal=false
  4649. for depmode in $am_compiler_list; do
  4650. # Setup a source with many dependencies, because some compilers
  4651. # like to wrap large dependency lists on column 80 (with \), and
  4652. # we should not choose a depcomp mode which is confused by this.
  4653. #
  4654. # We need to recreate these files for each test, as the compiler may
  4655. # overwrite some of them when testing with obscure command lines.
  4656. # This happens at least with the AIX C compiler.
  4657. : > sub/conftest.c
  4658. for i in 1 2 3 4 5 6; do
  4659. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4660. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4661. # Solaris 10 /bin/sh.
  4662. echo '/* dummy */' > sub/conftst$i.h
  4663. done
  4664. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4665. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4666. # mode. It turns out that the SunPro C++ compiler does not properly
  4667. # handle '-M -o', and we need to detect this. Also, some Intel
  4668. # versions had trouble with output in subdirs.
  4669. am__obj=sub/conftest.${OBJEXT-o}
  4670. am__minus_obj="-o $am__obj"
  4671. case $depmode in
  4672. gcc)
  4673. # This depmode causes a compiler race in universal mode.
  4674. test "$am__universal" = false || continue
  4675. ;;
  4676. nosideeffect)
  4677. # After this tag, mechanisms are not by side-effect, so they'll
  4678. # only be used when explicitly requested.
  4679. if test "x$enable_dependency_tracking" = xyes; then
  4680. continue
  4681. else
  4682. break
  4683. fi
  4684. ;;
  4685. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4686. # This compiler won't grok '-c -o', but also, the minuso test has
  4687. # not run yet. These depmodes are late enough in the game, and
  4688. # so weak that their functioning should not be impacted.
  4689. am__obj=conftest.${OBJEXT-o}
  4690. am__minus_obj=
  4691. ;;
  4692. none) break ;;
  4693. esac
  4694. if depmode=$depmode \
  4695. source=sub/conftest.c object=$am__obj \
  4696. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4697. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4698. >/dev/null 2>conftest.err &&
  4699. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4700. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4701. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4702. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4703. # icc doesn't choke on unknown options, it will just issue warnings
  4704. # or remarks (even with -Werror). So we grep stderr for any message
  4705. # that says an option was ignored or not supported.
  4706. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4707. # icc: Command line warning: ignoring option '-M'; no argument required
  4708. # The diagnosis changed in icc 8.0:
  4709. # icc: Command line remark: option '-MP' not supported
  4710. if (grep 'ignoring option' conftest.err ||
  4711. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4712. am_cv_CCAS_dependencies_compiler_type=$depmode
  4713. break
  4714. fi
  4715. fi
  4716. done
  4717. cd ..
  4718. rm -rf conftest.dir
  4719. else
  4720. am_cv_CCAS_dependencies_compiler_type=none
  4721. fi
  4722. fi
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4724. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4725. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4726. if
  4727. test "x$enable_dependency_tracking" != xno \
  4728. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4729. am__fastdepCCAS_TRUE=
  4730. am__fastdepCCAS_FALSE='#'
  4731. else
  4732. am__fastdepCCAS_TRUE='#'
  4733. am__fastdepCCAS_FALSE=
  4734. fi
  4735. # disable static libs by default - we only use a couple
  4736. # Check whether --enable-static was given.
  4737. if test "${enable_static+set}" = set; then :
  4738. enableval=$enable_static; p=${PACKAGE-default}
  4739. case $enableval in
  4740. yes) enable_static=yes ;;
  4741. no) enable_static=no ;;
  4742. *)
  4743. enable_static=no
  4744. # Look at the argument we got. We use all the common list separators.
  4745. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4746. for pkg in $enableval; do
  4747. IFS="$lt_save_ifs"
  4748. if test "X$pkg" = "X$p"; then
  4749. enable_static=yes
  4750. fi
  4751. done
  4752. IFS="$lt_save_ifs"
  4753. ;;
  4754. esac
  4755. else
  4756. enable_static=no
  4757. fi
  4758. case `pwd` in
  4759. *\ * | *\ *)
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4761. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4762. esac
  4763. macro_version='2.4.2'
  4764. macro_revision='1.3337'
  4765. ltmain="$ac_aux_dir/ltmain.sh"
  4766. # Backslashify metacharacters that are still active within
  4767. # double-quoted strings.
  4768. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4769. # Same as above, but do not quote variable references.
  4770. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4771. # Sed substitution to delay expansion of an escaped shell variable in a
  4772. # double_quote_subst'ed string.
  4773. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4774. # Sed substitution to delay expansion of an escaped single quote.
  4775. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4776. # Sed substitution to avoid accidental globbing in evaled expressions
  4777. no_glob_subst='s/\*/\\\*/g'
  4778. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4779. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4780. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4782. $as_echo_n "checking how to print strings... " >&6; }
  4783. # Test print first, because it will be a builtin if present.
  4784. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4785. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4786. ECHO='print -r --'
  4787. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4788. ECHO='printf %s\n'
  4789. else
  4790. # Use this function as a fallback that always works.
  4791. func_fallback_echo ()
  4792. {
  4793. eval 'cat <<_LTECHO_EOF
  4794. $1
  4795. _LTECHO_EOF'
  4796. }
  4797. ECHO='func_fallback_echo'
  4798. fi
  4799. # func_echo_all arg...
  4800. # Invoke $ECHO with all args, space-separated.
  4801. func_echo_all ()
  4802. {
  4803. $ECHO ""
  4804. }
  4805. case "$ECHO" in
  4806. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4807. $as_echo "printf" >&6; } ;;
  4808. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4809. $as_echo "print -r" >&6; } ;;
  4810. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4811. $as_echo "cat" >&6; } ;;
  4812. esac
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4814. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4815. if ${ac_cv_path_SED+:} false; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4819. for ac_i in 1 2 3 4 5 6 7; do
  4820. ac_script="$ac_script$as_nl$ac_script"
  4821. done
  4822. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4823. { ac_script=; unset ac_script;}
  4824. if test -z "$SED"; then
  4825. ac_path_SED_found=false
  4826. # Loop through the user's path and test for each of PROGNAME-LIST
  4827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4828. for as_dir in $PATH
  4829. do
  4830. IFS=$as_save_IFS
  4831. test -z "$as_dir" && as_dir=.
  4832. for ac_prog in sed gsed; do
  4833. for ac_exec_ext in '' $ac_executable_extensions; do
  4834. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4835. as_fn_executable_p "$ac_path_SED" || continue
  4836. # Check for GNU ac_path_SED and select it if it is found.
  4837. # Check for GNU $ac_path_SED
  4838. case `"$ac_path_SED" --version 2>&1` in
  4839. *GNU*)
  4840. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4841. *)
  4842. ac_count=0
  4843. $as_echo_n 0123456789 >"conftest.in"
  4844. while :
  4845. do
  4846. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4847. mv "conftest.tmp" "conftest.in"
  4848. cp "conftest.in" "conftest.nl"
  4849. $as_echo '' >> "conftest.nl"
  4850. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4851. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4852. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4853. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4854. # Best one so far, save it but keep looking for a better one
  4855. ac_cv_path_SED="$ac_path_SED"
  4856. ac_path_SED_max=$ac_count
  4857. fi
  4858. # 10*(2^10) chars as input seems more than enough
  4859. test $ac_count -gt 10 && break
  4860. done
  4861. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4862. esac
  4863. $ac_path_SED_found && break 3
  4864. done
  4865. done
  4866. done
  4867. IFS=$as_save_IFS
  4868. if test -z "$ac_cv_path_SED"; then
  4869. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4870. fi
  4871. else
  4872. ac_cv_path_SED=$SED
  4873. fi
  4874. fi
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4876. $as_echo "$ac_cv_path_SED" >&6; }
  4877. SED="$ac_cv_path_SED"
  4878. rm -f conftest.sed
  4879. test -z "$SED" && SED=sed
  4880. Xsed="$SED -e 1s/^X//"
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4882. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4883. if ${ac_cv_path_GREP+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. if test -z "$GREP"; then
  4887. ac_path_GREP_found=false
  4888. # Loop through the user's path and test for each of PROGNAME-LIST
  4889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4890. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4891. do
  4892. IFS=$as_save_IFS
  4893. test -z "$as_dir" && as_dir=.
  4894. for ac_prog in grep ggrep; do
  4895. for ac_exec_ext in '' $ac_executable_extensions; do
  4896. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4897. as_fn_executable_p "$ac_path_GREP" || continue
  4898. # Check for GNU ac_path_GREP and select it if it is found.
  4899. # Check for GNU $ac_path_GREP
  4900. case `"$ac_path_GREP" --version 2>&1` in
  4901. *GNU*)
  4902. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4903. *)
  4904. ac_count=0
  4905. $as_echo_n 0123456789 >"conftest.in"
  4906. while :
  4907. do
  4908. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4909. mv "conftest.tmp" "conftest.in"
  4910. cp "conftest.in" "conftest.nl"
  4911. $as_echo 'GREP' >> "conftest.nl"
  4912. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4913. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4914. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4915. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4916. # Best one so far, save it but keep looking for a better one
  4917. ac_cv_path_GREP="$ac_path_GREP"
  4918. ac_path_GREP_max=$ac_count
  4919. fi
  4920. # 10*(2^10) chars as input seems more than enough
  4921. test $ac_count -gt 10 && break
  4922. done
  4923. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4924. esac
  4925. $ac_path_GREP_found && break 3
  4926. done
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. if test -z "$ac_cv_path_GREP"; then
  4931. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4932. fi
  4933. else
  4934. ac_cv_path_GREP=$GREP
  4935. fi
  4936. fi
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4938. $as_echo "$ac_cv_path_GREP" >&6; }
  4939. GREP="$ac_cv_path_GREP"
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4941. $as_echo_n "checking for egrep... " >&6; }
  4942. if ${ac_cv_path_EGREP+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4946. then ac_cv_path_EGREP="$GREP -E"
  4947. else
  4948. if test -z "$EGREP"; then
  4949. ac_path_EGREP_found=false
  4950. # Loop through the user's path and test for each of PROGNAME-LIST
  4951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4952. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4953. do
  4954. IFS=$as_save_IFS
  4955. test -z "$as_dir" && as_dir=.
  4956. for ac_prog in egrep; do
  4957. for ac_exec_ext in '' $ac_executable_extensions; do
  4958. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4959. as_fn_executable_p "$ac_path_EGREP" || continue
  4960. # Check for GNU ac_path_EGREP and select it if it is found.
  4961. # Check for GNU $ac_path_EGREP
  4962. case `"$ac_path_EGREP" --version 2>&1` in
  4963. *GNU*)
  4964. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4965. *)
  4966. ac_count=0
  4967. $as_echo_n 0123456789 >"conftest.in"
  4968. while :
  4969. do
  4970. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4971. mv "conftest.tmp" "conftest.in"
  4972. cp "conftest.in" "conftest.nl"
  4973. $as_echo 'EGREP' >> "conftest.nl"
  4974. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4975. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4976. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4977. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4978. # Best one so far, save it but keep looking for a better one
  4979. ac_cv_path_EGREP="$ac_path_EGREP"
  4980. ac_path_EGREP_max=$ac_count
  4981. fi
  4982. # 10*(2^10) chars as input seems more than enough
  4983. test $ac_count -gt 10 && break
  4984. done
  4985. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4986. esac
  4987. $ac_path_EGREP_found && break 3
  4988. done
  4989. done
  4990. done
  4991. IFS=$as_save_IFS
  4992. if test -z "$ac_cv_path_EGREP"; then
  4993. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4994. fi
  4995. else
  4996. ac_cv_path_EGREP=$EGREP
  4997. fi
  4998. fi
  4999. fi
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5001. $as_echo "$ac_cv_path_EGREP" >&6; }
  5002. EGREP="$ac_cv_path_EGREP"
  5003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5004. $as_echo_n "checking for fgrep... " >&6; }
  5005. if ${ac_cv_path_FGREP+:} false; then :
  5006. $as_echo_n "(cached) " >&6
  5007. else
  5008. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5009. then ac_cv_path_FGREP="$GREP -F"
  5010. else
  5011. if test -z "$FGREP"; then
  5012. ac_path_FGREP_found=false
  5013. # Loop through the user's path and test for each of PROGNAME-LIST
  5014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5015. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5016. do
  5017. IFS=$as_save_IFS
  5018. test -z "$as_dir" && as_dir=.
  5019. for ac_prog in fgrep; do
  5020. for ac_exec_ext in '' $ac_executable_extensions; do
  5021. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5022. as_fn_executable_p "$ac_path_FGREP" || continue
  5023. # Check for GNU ac_path_FGREP and select it if it is found.
  5024. # Check for GNU $ac_path_FGREP
  5025. case `"$ac_path_FGREP" --version 2>&1` in
  5026. *GNU*)
  5027. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5028. *)
  5029. ac_count=0
  5030. $as_echo_n 0123456789 >"conftest.in"
  5031. while :
  5032. do
  5033. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5034. mv "conftest.tmp" "conftest.in"
  5035. cp "conftest.in" "conftest.nl"
  5036. $as_echo 'FGREP' >> "conftest.nl"
  5037. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5038. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5039. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5040. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5041. # Best one so far, save it but keep looking for a better one
  5042. ac_cv_path_FGREP="$ac_path_FGREP"
  5043. ac_path_FGREP_max=$ac_count
  5044. fi
  5045. # 10*(2^10) chars as input seems more than enough
  5046. test $ac_count -gt 10 && break
  5047. done
  5048. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5049. esac
  5050. $ac_path_FGREP_found && break 3
  5051. done
  5052. done
  5053. done
  5054. IFS=$as_save_IFS
  5055. if test -z "$ac_cv_path_FGREP"; then
  5056. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5057. fi
  5058. else
  5059. ac_cv_path_FGREP=$FGREP
  5060. fi
  5061. fi
  5062. fi
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5064. $as_echo "$ac_cv_path_FGREP" >&6; }
  5065. FGREP="$ac_cv_path_FGREP"
  5066. test -z "$GREP" && GREP=grep
  5067. # Check whether --with-gnu-ld was given.
  5068. if test "${with_gnu_ld+set}" = set; then :
  5069. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5070. else
  5071. with_gnu_ld=no
  5072. fi
  5073. ac_prog=ld
  5074. if test "$GCC" = yes; then
  5075. # Check if gcc -print-prog-name=ld gives a path.
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5077. $as_echo_n "checking for ld used by $CC... " >&6; }
  5078. case $host in
  5079. *-*-mingw*)
  5080. # gcc leaves a trailing carriage return which upsets mingw
  5081. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5082. *)
  5083. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5084. esac
  5085. case $ac_prog in
  5086. # Accept absolute paths.
  5087. [\\/]* | ?:[\\/]*)
  5088. re_direlt='/[^/][^/]*/\.\./'
  5089. # Canonicalize the pathname of ld
  5090. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5091. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5092. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5093. done
  5094. test -z "$LD" && LD="$ac_prog"
  5095. ;;
  5096. "")
  5097. # If it fails, then pretend we aren't using GCC.
  5098. ac_prog=ld
  5099. ;;
  5100. *)
  5101. # If it is relative, then search for the first ld in PATH.
  5102. with_gnu_ld=unknown
  5103. ;;
  5104. esac
  5105. elif test "$with_gnu_ld" = yes; then
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5107. $as_echo_n "checking for GNU ld... " >&6; }
  5108. else
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5110. $as_echo_n "checking for non-GNU ld... " >&6; }
  5111. fi
  5112. if ${lt_cv_path_LD+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. if test -z "$LD"; then
  5116. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5117. for ac_dir in $PATH; do
  5118. IFS="$lt_save_ifs"
  5119. test -z "$ac_dir" && ac_dir=.
  5120. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5121. lt_cv_path_LD="$ac_dir/$ac_prog"
  5122. # Check to see if the program is GNU ld. I'd rather use --version,
  5123. # but apparently some variants of GNU ld only accept -v.
  5124. # Break only if it was the GNU/non-GNU ld that we prefer.
  5125. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5126. *GNU* | *'with BFD'*)
  5127. test "$with_gnu_ld" != no && break
  5128. ;;
  5129. *)
  5130. test "$with_gnu_ld" != yes && break
  5131. ;;
  5132. esac
  5133. fi
  5134. done
  5135. IFS="$lt_save_ifs"
  5136. else
  5137. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5138. fi
  5139. fi
  5140. LD="$lt_cv_path_LD"
  5141. if test -n "$LD"; then
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5143. $as_echo "$LD" >&6; }
  5144. else
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5146. $as_echo "no" >&6; }
  5147. fi
  5148. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5150. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5151. if ${lt_cv_prog_gnu_ld+:} false; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5155. case `$LD -v 2>&1 </dev/null` in
  5156. *GNU* | *'with BFD'*)
  5157. lt_cv_prog_gnu_ld=yes
  5158. ;;
  5159. *)
  5160. lt_cv_prog_gnu_ld=no
  5161. ;;
  5162. esac
  5163. fi
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5165. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5166. with_gnu_ld=$lt_cv_prog_gnu_ld
  5167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5168. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5169. if ${lt_cv_path_NM+:} false; then :
  5170. $as_echo_n "(cached) " >&6
  5171. else
  5172. if test -n "$NM"; then
  5173. # Let the user override the test.
  5174. lt_cv_path_NM="$NM"
  5175. else
  5176. lt_nm_to_check="${ac_tool_prefix}nm"
  5177. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5178. lt_nm_to_check="$lt_nm_to_check nm"
  5179. fi
  5180. for lt_tmp_nm in $lt_nm_to_check; do
  5181. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5182. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5183. IFS="$lt_save_ifs"
  5184. test -z "$ac_dir" && ac_dir=.
  5185. tmp_nm="$ac_dir/$lt_tmp_nm"
  5186. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5187. # Check to see if the nm accepts a BSD-compat flag.
  5188. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5189. # nm: unknown option "B" ignored
  5190. # Tru64's nm complains that /dev/null is an invalid object file
  5191. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5192. */dev/null* | *'Invalid file or object type'*)
  5193. lt_cv_path_NM="$tmp_nm -B"
  5194. break
  5195. ;;
  5196. *)
  5197. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5198. */dev/null*)
  5199. lt_cv_path_NM="$tmp_nm -p"
  5200. break
  5201. ;;
  5202. *)
  5203. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5204. continue # so that we can try to find one that supports BSD flags
  5205. ;;
  5206. esac
  5207. ;;
  5208. esac
  5209. fi
  5210. done
  5211. IFS="$lt_save_ifs"
  5212. done
  5213. : ${lt_cv_path_NM=no}
  5214. fi
  5215. fi
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5217. $as_echo "$lt_cv_path_NM" >&6; }
  5218. if test "$lt_cv_path_NM" != "no"; then
  5219. NM="$lt_cv_path_NM"
  5220. else
  5221. # Didn't find any BSD compatible name lister, look for dumpbin.
  5222. if test -n "$DUMPBIN"; then :
  5223. # Let the user override the test.
  5224. else
  5225. if test -n "$ac_tool_prefix"; then
  5226. for ac_prog in dumpbin "link -dump"
  5227. do
  5228. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5229. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5231. $as_echo_n "checking for $ac_word... " >&6; }
  5232. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5233. $as_echo_n "(cached) " >&6
  5234. else
  5235. if test -n "$DUMPBIN"; then
  5236. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5237. else
  5238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5239. for as_dir in $PATH
  5240. do
  5241. IFS=$as_save_IFS
  5242. test -z "$as_dir" && as_dir=.
  5243. for ac_exec_ext in '' $ac_executable_extensions; do
  5244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5245. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5247. break 2
  5248. fi
  5249. done
  5250. done
  5251. IFS=$as_save_IFS
  5252. fi
  5253. fi
  5254. DUMPBIN=$ac_cv_prog_DUMPBIN
  5255. if test -n "$DUMPBIN"; then
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5257. $as_echo "$DUMPBIN" >&6; }
  5258. else
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5260. $as_echo "no" >&6; }
  5261. fi
  5262. test -n "$DUMPBIN" && break
  5263. done
  5264. fi
  5265. if test -z "$DUMPBIN"; then
  5266. ac_ct_DUMPBIN=$DUMPBIN
  5267. for ac_prog in dumpbin "link -dump"
  5268. do
  5269. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5270. set dummy $ac_prog; ac_word=$2
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5272. $as_echo_n "checking for $ac_word... " >&6; }
  5273. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. if test -n "$ac_ct_DUMPBIN"; then
  5277. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5278. else
  5279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5280. for as_dir in $PATH
  5281. do
  5282. IFS=$as_save_IFS
  5283. test -z "$as_dir" && as_dir=.
  5284. for ac_exec_ext in '' $ac_executable_extensions; do
  5285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5286. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5288. break 2
  5289. fi
  5290. done
  5291. done
  5292. IFS=$as_save_IFS
  5293. fi
  5294. fi
  5295. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5296. if test -n "$ac_ct_DUMPBIN"; then
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5298. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5299. else
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5301. $as_echo "no" >&6; }
  5302. fi
  5303. test -n "$ac_ct_DUMPBIN" && break
  5304. done
  5305. if test "x$ac_ct_DUMPBIN" = x; then
  5306. DUMPBIN=":"
  5307. else
  5308. case $cross_compiling:$ac_tool_warned in
  5309. yes:)
  5310. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5311. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5312. ac_tool_warned=yes ;;
  5313. esac
  5314. DUMPBIN=$ac_ct_DUMPBIN
  5315. fi
  5316. fi
  5317. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5318. *COFF*)
  5319. DUMPBIN="$DUMPBIN -symbols"
  5320. ;;
  5321. *)
  5322. DUMPBIN=:
  5323. ;;
  5324. esac
  5325. fi
  5326. if test "$DUMPBIN" != ":"; then
  5327. NM="$DUMPBIN"
  5328. fi
  5329. fi
  5330. test -z "$NM" && NM=nm
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5332. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5333. if ${lt_cv_nm_interface+:} false; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. lt_cv_nm_interface="BSD nm"
  5337. echo "int some_variable = 0;" > conftest.$ac_ext
  5338. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5339. (eval "$ac_compile" 2>conftest.err)
  5340. cat conftest.err >&5
  5341. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5342. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5343. cat conftest.err >&5
  5344. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5345. cat conftest.out >&5
  5346. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5347. lt_cv_nm_interface="MS dumpbin"
  5348. fi
  5349. rm -f conftest*
  5350. fi
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5352. $as_echo "$lt_cv_nm_interface" >&6; }
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5354. $as_echo_n "checking whether ln -s works... " >&6; }
  5355. LN_S=$as_ln_s
  5356. if test "$LN_S" = "ln -s"; then
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5358. $as_echo "yes" >&6; }
  5359. else
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5361. $as_echo "no, using $LN_S" >&6; }
  5362. fi
  5363. # find the maximum length of command line arguments
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5365. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5366. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5367. $as_echo_n "(cached) " >&6
  5368. else
  5369. i=0
  5370. teststring="ABCD"
  5371. case $build_os in
  5372. msdosdjgpp*)
  5373. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5374. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5375. # during glob expansion). Even if it were fixed, the result of this
  5376. # check would be larger than it should be.
  5377. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5378. ;;
  5379. gnu*)
  5380. # Under GNU Hurd, this test is not required because there is
  5381. # no limit to the length of command line arguments.
  5382. # Libtool will interpret -1 as no limit whatsoever
  5383. lt_cv_sys_max_cmd_len=-1;
  5384. ;;
  5385. cygwin* | mingw* | cegcc*)
  5386. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5387. # about 5 minutes as the teststring grows exponentially.
  5388. # Worse, since 9x/ME are not pre-emptively multitasking,
  5389. # you end up with a "frozen" computer, even though with patience
  5390. # the test eventually succeeds (with a max line length of 256k).
  5391. # Instead, let's just punt: use the minimum linelength reported by
  5392. # all of the supported platforms: 8192 (on NT/2K/XP).
  5393. lt_cv_sys_max_cmd_len=8192;
  5394. ;;
  5395. mint*)
  5396. # On MiNT this can take a long time and run out of memory.
  5397. lt_cv_sys_max_cmd_len=8192;
  5398. ;;
  5399. amigaos*)
  5400. # On AmigaOS with pdksh, this test takes hours, literally.
  5401. # So we just punt and use a minimum line length of 8192.
  5402. lt_cv_sys_max_cmd_len=8192;
  5403. ;;
  5404. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5405. # This has been around since 386BSD, at least. Likely further.
  5406. if test -x /sbin/sysctl; then
  5407. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5408. elif test -x /usr/sbin/sysctl; then
  5409. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5410. else
  5411. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5412. fi
  5413. # And add a safety zone
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5415. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5416. ;;
  5417. interix*)
  5418. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5419. lt_cv_sys_max_cmd_len=196608
  5420. ;;
  5421. os2*)
  5422. # The test takes a long time on OS/2.
  5423. lt_cv_sys_max_cmd_len=8192
  5424. ;;
  5425. osf*)
  5426. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5427. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5428. # nice to cause kernel panics so lets avoid the loop below.
  5429. # First set a reasonable default.
  5430. lt_cv_sys_max_cmd_len=16384
  5431. #
  5432. if test -x /sbin/sysconfig; then
  5433. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5434. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5435. esac
  5436. fi
  5437. ;;
  5438. sco3.2v5*)
  5439. lt_cv_sys_max_cmd_len=102400
  5440. ;;
  5441. sysv5* | sco5v6* | sysv4.2uw2*)
  5442. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5443. if test -n "$kargmax"; then
  5444. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5445. else
  5446. lt_cv_sys_max_cmd_len=32768
  5447. fi
  5448. ;;
  5449. *)
  5450. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5451. if test -n "$lt_cv_sys_max_cmd_len"; then
  5452. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5454. else
  5455. # Make teststring a little bigger before we do anything with it.
  5456. # a 1K string should be a reasonable start.
  5457. for i in 1 2 3 4 5 6 7 8 ; do
  5458. teststring=$teststring$teststring
  5459. done
  5460. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5461. # If test is not a shell built-in, we'll probably end up computing a
  5462. # maximum length that is only half of the actual maximum length, but
  5463. # we can't tell.
  5464. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5465. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5466. test $i != 17 # 1/2 MB should be enough
  5467. do
  5468. i=`expr $i + 1`
  5469. teststring=$teststring$teststring
  5470. done
  5471. # Only check the string length outside the loop.
  5472. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5473. teststring=
  5474. # Add a significant safety factor because C++ compilers can tack on
  5475. # massive amounts of additional arguments before passing them to the
  5476. # linker. It appears as though 1/2 is a usable value.
  5477. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5478. fi
  5479. ;;
  5480. esac
  5481. fi
  5482. if test -n $lt_cv_sys_max_cmd_len ; then
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5484. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5485. else
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5487. $as_echo "none" >&6; }
  5488. fi
  5489. max_cmd_len=$lt_cv_sys_max_cmd_len
  5490. : ${CP="cp -f"}
  5491. : ${MV="mv -f"}
  5492. : ${RM="rm -f"}
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5494. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5495. # Try some XSI features
  5496. xsi_shell=no
  5497. ( _lt_dummy="a/b/c"
  5498. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5499. = c,a/b,b/c, \
  5500. && eval 'test $(( 1 + 1 )) -eq 2 \
  5501. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5502. && xsi_shell=yes
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5504. $as_echo "$xsi_shell" >&6; }
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5506. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5507. lt_shell_append=no
  5508. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5509. >/dev/null 2>&1 \
  5510. && lt_shell_append=yes
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5512. $as_echo "$lt_shell_append" >&6; }
  5513. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5514. lt_unset=unset
  5515. else
  5516. lt_unset=false
  5517. fi
  5518. # test EBCDIC or ASCII
  5519. case `echo X|tr X '\101'` in
  5520. A) # ASCII based system
  5521. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5522. lt_SP2NL='tr \040 \012'
  5523. lt_NL2SP='tr \015\012 \040\040'
  5524. ;;
  5525. *) # EBCDIC based system
  5526. lt_SP2NL='tr \100 \n'
  5527. lt_NL2SP='tr \r\n \100\100'
  5528. ;;
  5529. esac
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5531. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5532. if ${lt_cv_to_host_file_cmd+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. case $host in
  5536. *-*-mingw* )
  5537. case $build in
  5538. *-*-mingw* ) # actually msys
  5539. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5540. ;;
  5541. *-*-cygwin* )
  5542. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5543. ;;
  5544. * ) # otherwise, assume *nix
  5545. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5546. ;;
  5547. esac
  5548. ;;
  5549. *-*-cygwin* )
  5550. case $build in
  5551. *-*-mingw* ) # actually msys
  5552. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5553. ;;
  5554. *-*-cygwin* )
  5555. lt_cv_to_host_file_cmd=func_convert_file_noop
  5556. ;;
  5557. * ) # otherwise, assume *nix
  5558. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5559. ;;
  5560. esac
  5561. ;;
  5562. * ) # unhandled hosts (and "normal" native builds)
  5563. lt_cv_to_host_file_cmd=func_convert_file_noop
  5564. ;;
  5565. esac
  5566. fi
  5567. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5569. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5571. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5572. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5573. $as_echo_n "(cached) " >&6
  5574. else
  5575. #assume ordinary cross tools, or native build.
  5576. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5577. case $host in
  5578. *-*-mingw* )
  5579. case $build in
  5580. *-*-mingw* ) # actually msys
  5581. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5582. ;;
  5583. esac
  5584. ;;
  5585. esac
  5586. fi
  5587. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5589. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5591. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5592. if ${lt_cv_ld_reload_flag+:} false; then :
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. lt_cv_ld_reload_flag='-r'
  5596. fi
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5598. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5599. reload_flag=$lt_cv_ld_reload_flag
  5600. case $reload_flag in
  5601. "" | " "*) ;;
  5602. *) reload_flag=" $reload_flag" ;;
  5603. esac
  5604. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5605. case $host_os in
  5606. cygwin* | mingw* | pw32* | cegcc*)
  5607. if test "$GCC" != yes; then
  5608. reload_cmds=false
  5609. fi
  5610. ;;
  5611. darwin*)
  5612. if test "$GCC" = yes; then
  5613. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5614. else
  5615. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5616. fi
  5617. ;;
  5618. esac
  5619. if test -n "$ac_tool_prefix"; then
  5620. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5621. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5623. $as_echo_n "checking for $ac_word... " >&6; }
  5624. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. if test -n "$OBJDUMP"; then
  5628. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5629. else
  5630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5631. for as_dir in $PATH
  5632. do
  5633. IFS=$as_save_IFS
  5634. test -z "$as_dir" && as_dir=.
  5635. for ac_exec_ext in '' $ac_executable_extensions; do
  5636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5637. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5639. break 2
  5640. fi
  5641. done
  5642. done
  5643. IFS=$as_save_IFS
  5644. fi
  5645. fi
  5646. OBJDUMP=$ac_cv_prog_OBJDUMP
  5647. if test -n "$OBJDUMP"; then
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5649. $as_echo "$OBJDUMP" >&6; }
  5650. else
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5652. $as_echo "no" >&6; }
  5653. fi
  5654. fi
  5655. if test -z "$ac_cv_prog_OBJDUMP"; then
  5656. ac_ct_OBJDUMP=$OBJDUMP
  5657. # Extract the first word of "objdump", so it can be a program name with args.
  5658. set dummy objdump; ac_word=$2
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5660. $as_echo_n "checking for $ac_word... " >&6; }
  5661. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. if test -n "$ac_ct_OBJDUMP"; then
  5665. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. test -z "$as_dir" && as_dir=.
  5672. for ac_exec_ext in '' $ac_executable_extensions; do
  5673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5674. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5676. break 2
  5677. fi
  5678. done
  5679. done
  5680. IFS=$as_save_IFS
  5681. fi
  5682. fi
  5683. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5684. if test -n "$ac_ct_OBJDUMP"; then
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5686. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5687. else
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5689. $as_echo "no" >&6; }
  5690. fi
  5691. if test "x$ac_ct_OBJDUMP" = x; then
  5692. OBJDUMP="false"
  5693. else
  5694. case $cross_compiling:$ac_tool_warned in
  5695. yes:)
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5698. ac_tool_warned=yes ;;
  5699. esac
  5700. OBJDUMP=$ac_ct_OBJDUMP
  5701. fi
  5702. else
  5703. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5704. fi
  5705. test -z "$OBJDUMP" && OBJDUMP=objdump
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5707. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5708. if ${lt_cv_deplibs_check_method+:} false; then :
  5709. $as_echo_n "(cached) " >&6
  5710. else
  5711. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5712. lt_cv_file_magic_test_file=
  5713. lt_cv_deplibs_check_method='unknown'
  5714. # Need to set the preceding variable on all platforms that support
  5715. # interlibrary dependencies.
  5716. # 'none' -- dependencies not supported.
  5717. # `unknown' -- same as none, but documents that we really don't know.
  5718. # 'pass_all' -- all dependencies passed with no checks.
  5719. # 'test_compile' -- check by making test program.
  5720. # 'file_magic [[regex]]' -- check by looking for files in library path
  5721. # which responds to the $file_magic_cmd with a given extended regex.
  5722. # If you have `file' or equivalent on your system and you're not sure
  5723. # whether `pass_all' will *always* work, you probably want this one.
  5724. case $host_os in
  5725. aix[4-9]*)
  5726. lt_cv_deplibs_check_method=pass_all
  5727. ;;
  5728. beos*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. bsdi[45]*)
  5732. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5733. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5734. lt_cv_file_magic_test_file=/shlib/libc.so
  5735. ;;
  5736. cygwin*)
  5737. # func_win32_libid is a shell function defined in ltmain.sh
  5738. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5739. lt_cv_file_magic_cmd='func_win32_libid'
  5740. ;;
  5741. mingw* | pw32*)
  5742. # Base MSYS/MinGW do not provide the 'file' command needed by
  5743. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5744. # unless we find 'file', for example because we are cross-compiling.
  5745. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5746. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5747. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5748. lt_cv_file_magic_cmd='func_win32_libid'
  5749. else
  5750. # Keep this pattern in sync with the one in func_win32_libid.
  5751. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5752. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5753. fi
  5754. ;;
  5755. cegcc*)
  5756. # use the weaker test based on 'objdump'. See mingw*.
  5757. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5758. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5759. ;;
  5760. darwin* | rhapsody*)
  5761. lt_cv_deplibs_check_method=pass_all
  5762. ;;
  5763. freebsd* | dragonfly*)
  5764. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5765. case $host_cpu in
  5766. i*86 )
  5767. # Not sure whether the presence of OpenBSD here was a mistake.
  5768. # Let's accept both of them until this is cleared up.
  5769. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5770. lt_cv_file_magic_cmd=/usr/bin/file
  5771. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5772. ;;
  5773. esac
  5774. else
  5775. lt_cv_deplibs_check_method=pass_all
  5776. fi
  5777. ;;
  5778. gnu*)
  5779. lt_cv_deplibs_check_method=pass_all
  5780. ;;
  5781. haiku*)
  5782. lt_cv_deplibs_check_method=pass_all
  5783. ;;
  5784. hpux10.20* | hpux11*)
  5785. lt_cv_file_magic_cmd=/usr/bin/file
  5786. case $host_cpu in
  5787. ia64*)
  5788. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5789. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5790. ;;
  5791. hppa*64*)
  5792. 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]'
  5793. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5794. ;;
  5795. *)
  5796. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5797. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5798. ;;
  5799. esac
  5800. ;;
  5801. interix[3-9]*)
  5802. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5803. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5804. ;;
  5805. irix5* | irix6* | nonstopux*)
  5806. case $LD in
  5807. *-32|*"-32 ") libmagic=32-bit;;
  5808. *-n32|*"-n32 ") libmagic=N32;;
  5809. *-64|*"-64 ") libmagic=64-bit;;
  5810. *) libmagic=never-match;;
  5811. esac
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. # This must be glibc/ELF.
  5815. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5816. lt_cv_deplibs_check_method=pass_all
  5817. ;;
  5818. netbsd*)
  5819. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5820. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5821. else
  5822. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5823. fi
  5824. ;;
  5825. newos6*)
  5826. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5827. lt_cv_file_magic_cmd=/usr/bin/file
  5828. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5829. ;;
  5830. *nto* | *qnx*)
  5831. lt_cv_deplibs_check_method=pass_all
  5832. ;;
  5833. openbsd*)
  5834. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5835. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5836. else
  5837. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5838. fi
  5839. ;;
  5840. osf3* | osf4* | osf5*)
  5841. lt_cv_deplibs_check_method=pass_all
  5842. ;;
  5843. rdos*)
  5844. lt_cv_deplibs_check_method=pass_all
  5845. ;;
  5846. solaris*)
  5847. lt_cv_deplibs_check_method=pass_all
  5848. ;;
  5849. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5850. lt_cv_deplibs_check_method=pass_all
  5851. ;;
  5852. sysv4 | sysv4.3*)
  5853. case $host_vendor in
  5854. motorola)
  5855. 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]'
  5856. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5857. ;;
  5858. ncr)
  5859. lt_cv_deplibs_check_method=pass_all
  5860. ;;
  5861. sequent)
  5862. lt_cv_file_magic_cmd='/bin/file'
  5863. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5864. ;;
  5865. sni)
  5866. lt_cv_file_magic_cmd='/bin/file'
  5867. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5868. lt_cv_file_magic_test_file=/lib/libc.so
  5869. ;;
  5870. siemens)
  5871. lt_cv_deplibs_check_method=pass_all
  5872. ;;
  5873. pc)
  5874. lt_cv_deplibs_check_method=pass_all
  5875. ;;
  5876. esac
  5877. ;;
  5878. tpf*)
  5879. lt_cv_deplibs_check_method=pass_all
  5880. ;;
  5881. esac
  5882. fi
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5884. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5885. file_magic_glob=
  5886. want_nocaseglob=no
  5887. if test "$build" = "$host"; then
  5888. case $host_os in
  5889. mingw* | pw32*)
  5890. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5891. want_nocaseglob=yes
  5892. else
  5893. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5894. fi
  5895. ;;
  5896. esac
  5897. fi
  5898. file_magic_cmd=$lt_cv_file_magic_cmd
  5899. deplibs_check_method=$lt_cv_deplibs_check_method
  5900. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5901. if test -n "$ac_tool_prefix"; then
  5902. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5903. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5905. $as_echo_n "checking for $ac_word... " >&6; }
  5906. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. if test -n "$DLLTOOL"; then
  5910. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5911. else
  5912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5913. for as_dir in $PATH
  5914. do
  5915. IFS=$as_save_IFS
  5916. test -z "$as_dir" && as_dir=.
  5917. for ac_exec_ext in '' $ac_executable_extensions; do
  5918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5919. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5921. break 2
  5922. fi
  5923. done
  5924. done
  5925. IFS=$as_save_IFS
  5926. fi
  5927. fi
  5928. DLLTOOL=$ac_cv_prog_DLLTOOL
  5929. if test -n "$DLLTOOL"; then
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5931. $as_echo "$DLLTOOL" >&6; }
  5932. else
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5934. $as_echo "no" >&6; }
  5935. fi
  5936. fi
  5937. if test -z "$ac_cv_prog_DLLTOOL"; then
  5938. ac_ct_DLLTOOL=$DLLTOOL
  5939. # Extract the first word of "dlltool", so it can be a program name with args.
  5940. set dummy dlltool; ac_word=$2
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5942. $as_echo_n "checking for $ac_word... " >&6; }
  5943. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5944. $as_echo_n "(cached) " >&6
  5945. else
  5946. if test -n "$ac_ct_DLLTOOL"; then
  5947. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5948. else
  5949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5950. for as_dir in $PATH
  5951. do
  5952. IFS=$as_save_IFS
  5953. test -z "$as_dir" && as_dir=.
  5954. for ac_exec_ext in '' $ac_executable_extensions; do
  5955. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5956. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5957. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5958. break 2
  5959. fi
  5960. done
  5961. done
  5962. IFS=$as_save_IFS
  5963. fi
  5964. fi
  5965. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5966. if test -n "$ac_ct_DLLTOOL"; then
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5968. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5969. else
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5971. $as_echo "no" >&6; }
  5972. fi
  5973. if test "x$ac_ct_DLLTOOL" = x; then
  5974. DLLTOOL="false"
  5975. else
  5976. case $cross_compiling:$ac_tool_warned in
  5977. yes:)
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5979. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5980. ac_tool_warned=yes ;;
  5981. esac
  5982. DLLTOOL=$ac_ct_DLLTOOL
  5983. fi
  5984. else
  5985. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5986. fi
  5987. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5989. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5990. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5994. case $host_os in
  5995. cygwin* | mingw* | pw32* | cegcc*)
  5996. # two different shell functions defined in ltmain.sh
  5997. # decide which to use based on capabilities of $DLLTOOL
  5998. case `$DLLTOOL --help 2>&1` in
  5999. *--identify-strict*)
  6000. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6001. ;;
  6002. *)
  6003. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6004. ;;
  6005. esac
  6006. ;;
  6007. *)
  6008. # fallback: assume linklib IS sharedlib
  6009. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  6010. ;;
  6011. esac
  6012. fi
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6014. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6015. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6016. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6017. if test -n "$ac_tool_prefix"; then
  6018. for ac_prog in ar
  6019. do
  6020. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6021. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6023. $as_echo_n "checking for $ac_word... " >&6; }
  6024. if ${ac_cv_prog_AR+:} false; then :
  6025. $as_echo_n "(cached) " >&6
  6026. else
  6027. if test -n "$AR"; then
  6028. ac_cv_prog_AR="$AR" # Let the user override the test.
  6029. else
  6030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6031. for as_dir in $PATH
  6032. do
  6033. IFS=$as_save_IFS
  6034. test -z "$as_dir" && as_dir=.
  6035. for ac_exec_ext in '' $ac_executable_extensions; do
  6036. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6037. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6038. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6039. break 2
  6040. fi
  6041. done
  6042. done
  6043. IFS=$as_save_IFS
  6044. fi
  6045. fi
  6046. AR=$ac_cv_prog_AR
  6047. if test -n "$AR"; then
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6049. $as_echo "$AR" >&6; }
  6050. else
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6052. $as_echo "no" >&6; }
  6053. fi
  6054. test -n "$AR" && break
  6055. done
  6056. fi
  6057. if test -z "$AR"; then
  6058. ac_ct_AR=$AR
  6059. for ac_prog in ar
  6060. do
  6061. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6062. set dummy $ac_prog; ac_word=$2
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6064. $as_echo_n "checking for $ac_word... " >&6; }
  6065. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6066. $as_echo_n "(cached) " >&6
  6067. else
  6068. if test -n "$ac_ct_AR"; then
  6069. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6070. else
  6071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6072. for as_dir in $PATH
  6073. do
  6074. IFS=$as_save_IFS
  6075. test -z "$as_dir" && as_dir=.
  6076. for ac_exec_ext in '' $ac_executable_extensions; do
  6077. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6078. ac_cv_prog_ac_ct_AR="$ac_prog"
  6079. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6080. break 2
  6081. fi
  6082. done
  6083. done
  6084. IFS=$as_save_IFS
  6085. fi
  6086. fi
  6087. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6088. if test -n "$ac_ct_AR"; then
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6090. $as_echo "$ac_ct_AR" >&6; }
  6091. else
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6093. $as_echo "no" >&6; }
  6094. fi
  6095. test -n "$ac_ct_AR" && break
  6096. done
  6097. if test "x$ac_ct_AR" = x; then
  6098. AR="false"
  6099. else
  6100. case $cross_compiling:$ac_tool_warned in
  6101. yes:)
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6103. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6104. ac_tool_warned=yes ;;
  6105. esac
  6106. AR=$ac_ct_AR
  6107. fi
  6108. fi
  6109. : ${AR=ar}
  6110. : ${AR_FLAGS=cru}
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6112. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6113. if ${lt_cv_ar_at_file+:} false; then :
  6114. $as_echo_n "(cached) " >&6
  6115. else
  6116. lt_cv_ar_at_file=no
  6117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6118. /* end confdefs.h. */
  6119. int
  6120. main ()
  6121. {
  6122. ;
  6123. return 0;
  6124. }
  6125. _ACEOF
  6126. if ac_fn_c_try_compile "$LINENO"; then :
  6127. echo conftest.$ac_objext > conftest.lst
  6128. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6129. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6130. (eval $lt_ar_try) 2>&5
  6131. ac_status=$?
  6132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6133. test $ac_status = 0; }
  6134. if test "$ac_status" -eq 0; then
  6135. # Ensure the archiver fails upon bogus file names.
  6136. rm -f conftest.$ac_objext libconftest.a
  6137. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6138. (eval $lt_ar_try) 2>&5
  6139. ac_status=$?
  6140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6141. test $ac_status = 0; }
  6142. if test "$ac_status" -ne 0; then
  6143. lt_cv_ar_at_file=@
  6144. fi
  6145. fi
  6146. rm -f conftest.* libconftest.a
  6147. fi
  6148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6149. fi
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6151. $as_echo "$lt_cv_ar_at_file" >&6; }
  6152. if test "x$lt_cv_ar_at_file" = xno; then
  6153. archiver_list_spec=
  6154. else
  6155. archiver_list_spec=$lt_cv_ar_at_file
  6156. fi
  6157. if test -n "$ac_tool_prefix"; then
  6158. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6159. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if ${ac_cv_prog_STRIP+:} false; then :
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. if test -n "$STRIP"; then
  6166. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6167. else
  6168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6169. for as_dir in $PATH
  6170. do
  6171. IFS=$as_save_IFS
  6172. test -z "$as_dir" && as_dir=.
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6175. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6177. break 2
  6178. fi
  6179. done
  6180. done
  6181. IFS=$as_save_IFS
  6182. fi
  6183. fi
  6184. STRIP=$ac_cv_prog_STRIP
  6185. if test -n "$STRIP"; then
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6187. $as_echo "$STRIP" >&6; }
  6188. else
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6190. $as_echo "no" >&6; }
  6191. fi
  6192. fi
  6193. if test -z "$ac_cv_prog_STRIP"; then
  6194. ac_ct_STRIP=$STRIP
  6195. # Extract the first word of "strip", so it can be a program name with args.
  6196. set dummy strip; ac_word=$2
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6198. $as_echo_n "checking for $ac_word... " >&6; }
  6199. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6200. $as_echo_n "(cached) " >&6
  6201. else
  6202. if test -n "$ac_ct_STRIP"; then
  6203. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6204. else
  6205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6206. for as_dir in $PATH
  6207. do
  6208. IFS=$as_save_IFS
  6209. test -z "$as_dir" && as_dir=.
  6210. for ac_exec_ext in '' $ac_executable_extensions; do
  6211. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6212. ac_cv_prog_ac_ct_STRIP="strip"
  6213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6214. break 2
  6215. fi
  6216. done
  6217. done
  6218. IFS=$as_save_IFS
  6219. fi
  6220. fi
  6221. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6222. if test -n "$ac_ct_STRIP"; then
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6224. $as_echo "$ac_ct_STRIP" >&6; }
  6225. else
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6227. $as_echo "no" >&6; }
  6228. fi
  6229. if test "x$ac_ct_STRIP" = x; then
  6230. STRIP=":"
  6231. else
  6232. case $cross_compiling:$ac_tool_warned in
  6233. yes:)
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6235. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6236. ac_tool_warned=yes ;;
  6237. esac
  6238. STRIP=$ac_ct_STRIP
  6239. fi
  6240. else
  6241. STRIP="$ac_cv_prog_STRIP"
  6242. fi
  6243. test -z "$STRIP" && STRIP=:
  6244. if test -n "$ac_tool_prefix"; then
  6245. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6246. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6248. $as_echo_n "checking for $ac_word... " >&6; }
  6249. if ${ac_cv_prog_RANLIB+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$RANLIB"; then
  6253. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6262. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. RANLIB=$ac_cv_prog_RANLIB
  6272. if test -n "$RANLIB"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6274. $as_echo "$RANLIB" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. fi
  6280. if test -z "$ac_cv_prog_RANLIB"; then
  6281. ac_ct_RANLIB=$RANLIB
  6282. # Extract the first word of "ranlib", so it can be a program name with args.
  6283. set dummy ranlib; ac_word=$2
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. if test -n "$ac_ct_RANLIB"; then
  6290. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6299. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6309. if test -n "$ac_ct_RANLIB"; then
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6311. $as_echo "$ac_ct_RANLIB" >&6; }
  6312. else
  6313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6314. $as_echo "no" >&6; }
  6315. fi
  6316. if test "x$ac_ct_RANLIB" = x; then
  6317. RANLIB=":"
  6318. else
  6319. case $cross_compiling:$ac_tool_warned in
  6320. yes:)
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6322. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6323. ac_tool_warned=yes ;;
  6324. esac
  6325. RANLIB=$ac_ct_RANLIB
  6326. fi
  6327. else
  6328. RANLIB="$ac_cv_prog_RANLIB"
  6329. fi
  6330. test -z "$RANLIB" && RANLIB=:
  6331. # Determine commands to create old-style static archives.
  6332. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6333. old_postinstall_cmds='chmod 644 $oldlib'
  6334. old_postuninstall_cmds=
  6335. if test -n "$RANLIB"; then
  6336. case $host_os in
  6337. openbsd*)
  6338. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6339. ;;
  6340. *)
  6341. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6342. ;;
  6343. esac
  6344. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6345. fi
  6346. case $host_os in
  6347. darwin*)
  6348. lock_old_archive_extraction=yes ;;
  6349. *)
  6350. lock_old_archive_extraction=no ;;
  6351. esac
  6352. # If no C compiler was specified, use CC.
  6353. LTCC=${LTCC-"$CC"}
  6354. # If no C compiler flags were specified, use CFLAGS.
  6355. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6356. # Allow CC to be a program name with arguments.
  6357. compiler=$CC
  6358. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6360. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6361. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6362. $as_echo_n "(cached) " >&6
  6363. else
  6364. # These are sane defaults that work on at least a few old systems.
  6365. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6366. # Character class describing NM global symbol codes.
  6367. symcode='[BCDEGRST]'
  6368. # Regexp to match symbols that can be accessed directly from C.
  6369. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6370. # Define system-specific variables.
  6371. case $host_os in
  6372. aix*)
  6373. symcode='[BCDT]'
  6374. ;;
  6375. cygwin* | mingw* | pw32* | cegcc*)
  6376. symcode='[ABCDGISTW]'
  6377. ;;
  6378. hpux*)
  6379. if test "$host_cpu" = ia64; then
  6380. symcode='[ABCDEGRST]'
  6381. fi
  6382. ;;
  6383. irix* | nonstopux*)
  6384. symcode='[BCDEGRST]'
  6385. ;;
  6386. osf*)
  6387. symcode='[BCDEGQRST]'
  6388. ;;
  6389. solaris*)
  6390. symcode='[BDRT]'
  6391. ;;
  6392. sco3.2v5*)
  6393. symcode='[DT]'
  6394. ;;
  6395. sysv4.2uw2*)
  6396. symcode='[DT]'
  6397. ;;
  6398. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6399. symcode='[ABDT]'
  6400. ;;
  6401. sysv4)
  6402. symcode='[DFNSTU]'
  6403. ;;
  6404. esac
  6405. # If we're using GNU nm, then use its standard symbol codes.
  6406. case `$NM -V 2>&1` in
  6407. *GNU* | *'with BFD'*)
  6408. symcode='[ABCDGIRSTW]' ;;
  6409. esac
  6410. # Transform an extracted symbol line into a proper C declaration.
  6411. # Some systems (esp. on ia64) link data and code symbols differently,
  6412. # so use this general approach.
  6413. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6414. # Transform an extracted symbol line into symbol name and symbol address
  6415. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6416. 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'"
  6417. # Handle CRLF in mingw tool chain
  6418. opt_cr=
  6419. case $build_os in
  6420. mingw*)
  6421. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6422. ;;
  6423. esac
  6424. # Try without a prefix underscore, then with it.
  6425. for ac_symprfx in "" "_"; do
  6426. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6427. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6428. # Write the raw and C identifiers.
  6429. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6430. # Fake it for dumpbin and say T for any non-static function
  6431. # and D for any global variable.
  6432. # Also find C++ and __fastcall symbols from MSVC++,
  6433. # which start with @ or ?.
  6434. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6435. " {last_section=section; section=\$ 3};"\
  6436. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6437. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6438. " \$ 0!~/External *\|/{next};"\
  6439. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6440. " {if(hide[section]) next};"\
  6441. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6442. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6443. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6444. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6445. " ' prfx=^$ac_symprfx"
  6446. else
  6447. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6448. fi
  6449. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6450. # Check to see that the pipe works correctly.
  6451. pipe_works=no
  6452. rm -f conftest*
  6453. cat > conftest.$ac_ext <<_LT_EOF
  6454. #ifdef __cplusplus
  6455. extern "C" {
  6456. #endif
  6457. char nm_test_var;
  6458. void nm_test_func(void);
  6459. void nm_test_func(void){}
  6460. #ifdef __cplusplus
  6461. }
  6462. #endif
  6463. int main(){nm_test_var='a';nm_test_func();return(0);}
  6464. _LT_EOF
  6465. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6466. (eval $ac_compile) 2>&5
  6467. ac_status=$?
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6469. test $ac_status = 0; }; then
  6470. # Now try to grab the symbols.
  6471. nlist=conftest.nm
  6472. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6473. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6474. ac_status=$?
  6475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6476. test $ac_status = 0; } && test -s "$nlist"; then
  6477. # Try sorting and uniquifying the output.
  6478. if sort "$nlist" | uniq > "$nlist"T; then
  6479. mv -f "$nlist"T "$nlist"
  6480. else
  6481. rm -f "$nlist"T
  6482. fi
  6483. # Make sure that we snagged all the symbols we need.
  6484. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6485. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6486. cat <<_LT_EOF > conftest.$ac_ext
  6487. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6488. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6489. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6490. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6491. # define LT_DLSYM_CONST
  6492. #elif defined(__osf__)
  6493. /* This system does not cope well with relocations in const data. */
  6494. # define LT_DLSYM_CONST
  6495. #else
  6496. # define LT_DLSYM_CONST const
  6497. #endif
  6498. #ifdef __cplusplus
  6499. extern "C" {
  6500. #endif
  6501. _LT_EOF
  6502. # Now generate the symbol file.
  6503. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6504. cat <<_LT_EOF >> conftest.$ac_ext
  6505. /* The mapping between symbol names and symbols. */
  6506. LT_DLSYM_CONST struct {
  6507. const char *name;
  6508. void *address;
  6509. }
  6510. lt__PROGRAM__LTX_preloaded_symbols[] =
  6511. {
  6512. { "@PROGRAM@", (void *) 0 },
  6513. _LT_EOF
  6514. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6515. cat <<\_LT_EOF >> conftest.$ac_ext
  6516. {0, (void *) 0}
  6517. };
  6518. /* This works around a problem in FreeBSD linker */
  6519. #ifdef FREEBSD_WORKAROUND
  6520. static const void *lt_preloaded_setup() {
  6521. return lt__PROGRAM__LTX_preloaded_symbols;
  6522. }
  6523. #endif
  6524. #ifdef __cplusplus
  6525. }
  6526. #endif
  6527. _LT_EOF
  6528. # Now try linking the two files.
  6529. mv conftest.$ac_objext conftstm.$ac_objext
  6530. lt_globsym_save_LIBS=$LIBS
  6531. lt_globsym_save_CFLAGS=$CFLAGS
  6532. LIBS="conftstm.$ac_objext"
  6533. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6534. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6535. (eval $ac_link) 2>&5
  6536. ac_status=$?
  6537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6538. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6539. pipe_works=yes
  6540. fi
  6541. LIBS=$lt_globsym_save_LIBS
  6542. CFLAGS=$lt_globsym_save_CFLAGS
  6543. else
  6544. echo "cannot find nm_test_func in $nlist" >&5
  6545. fi
  6546. else
  6547. echo "cannot find nm_test_var in $nlist" >&5
  6548. fi
  6549. else
  6550. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6551. fi
  6552. else
  6553. echo "$progname: failed program was:" >&5
  6554. cat conftest.$ac_ext >&5
  6555. fi
  6556. rm -rf conftest* conftst*
  6557. # Do not use the global_symbol_pipe unless it works.
  6558. if test "$pipe_works" = yes; then
  6559. break
  6560. else
  6561. lt_cv_sys_global_symbol_pipe=
  6562. fi
  6563. done
  6564. fi
  6565. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6566. lt_cv_sys_global_symbol_to_cdecl=
  6567. fi
  6568. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6570. $as_echo "failed" >&6; }
  6571. else
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6573. $as_echo "ok" >&6; }
  6574. fi
  6575. # Response file support.
  6576. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6577. nm_file_list_spec='@'
  6578. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6579. nm_file_list_spec='@'
  6580. fi
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6582. $as_echo_n "checking for sysroot... " >&6; }
  6583. # Check whether --with-sysroot was given.
  6584. if test "${with_sysroot+set}" = set; then :
  6585. withval=$with_sysroot;
  6586. else
  6587. with_sysroot=no
  6588. fi
  6589. lt_sysroot=
  6590. case ${with_sysroot} in #(
  6591. yes)
  6592. if test "$GCC" = yes; then
  6593. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6594. fi
  6595. ;; #(
  6596. /*)
  6597. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6598. ;; #(
  6599. no|'')
  6600. ;; #(
  6601. *)
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6603. $as_echo "${with_sysroot}" >&6; }
  6604. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6605. ;;
  6606. esac
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6608. $as_echo "${lt_sysroot:-no}" >&6; }
  6609. # Check whether --enable-libtool-lock was given.
  6610. if test "${enable_libtool_lock+set}" = set; then :
  6611. enableval=$enable_libtool_lock;
  6612. fi
  6613. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6614. # Some flags need to be propagated to the compiler or linker for good
  6615. # libtool support.
  6616. case $host in
  6617. ia64-*-hpux*)
  6618. # Find out which ABI we are using.
  6619. echo 'int i;' > conftest.$ac_ext
  6620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6621. (eval $ac_compile) 2>&5
  6622. ac_status=$?
  6623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6624. test $ac_status = 0; }; then
  6625. case `/usr/bin/file conftest.$ac_objext` in
  6626. *ELF-32*)
  6627. HPUX_IA64_MODE="32"
  6628. ;;
  6629. *ELF-64*)
  6630. HPUX_IA64_MODE="64"
  6631. ;;
  6632. esac
  6633. fi
  6634. rm -rf conftest*
  6635. ;;
  6636. *-*-irix6*)
  6637. # Find out which ABI we are using.
  6638. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6639. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6640. (eval $ac_compile) 2>&5
  6641. ac_status=$?
  6642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6643. test $ac_status = 0; }; then
  6644. if test "$lt_cv_prog_gnu_ld" = yes; then
  6645. case `/usr/bin/file conftest.$ac_objext` in
  6646. *32-bit*)
  6647. LD="${LD-ld} -melf32bsmip"
  6648. ;;
  6649. *N32*)
  6650. LD="${LD-ld} -melf32bmipn32"
  6651. ;;
  6652. *64-bit*)
  6653. LD="${LD-ld} -melf64bmip"
  6654. ;;
  6655. esac
  6656. else
  6657. case `/usr/bin/file conftest.$ac_objext` in
  6658. *32-bit*)
  6659. LD="${LD-ld} -32"
  6660. ;;
  6661. *N32*)
  6662. LD="${LD-ld} -n32"
  6663. ;;
  6664. *64-bit*)
  6665. LD="${LD-ld} -64"
  6666. ;;
  6667. esac
  6668. fi
  6669. fi
  6670. rm -rf conftest*
  6671. ;;
  6672. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6673. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6674. # Find out which ABI we are using.
  6675. echo 'int i;' > conftest.$ac_ext
  6676. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6677. (eval $ac_compile) 2>&5
  6678. ac_status=$?
  6679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6680. test $ac_status = 0; }; then
  6681. case `/usr/bin/file conftest.o` in
  6682. *32-bit*)
  6683. case $host in
  6684. x86_64-*kfreebsd*-gnu)
  6685. LD="${LD-ld} -m elf_i386_fbsd"
  6686. ;;
  6687. x86_64-*linux*)
  6688. LD="${LD-ld} -m elf_i386"
  6689. ;;
  6690. powerpc64le-*linux*)
  6691. LD="${LD-ld} -m elf32lppclinux"
  6692. ;;
  6693. powerpc64-*linux*)
  6694. LD="${LD-ld} -m elf32ppclinux"
  6695. ;;
  6696. s390x-*linux*)
  6697. LD="${LD-ld} -m elf_s390"
  6698. ;;
  6699. sparc64-*linux*)
  6700. LD="${LD-ld} -m elf32_sparc"
  6701. ;;
  6702. esac
  6703. ;;
  6704. *64-bit*)
  6705. case $host in
  6706. x86_64-*kfreebsd*-gnu)
  6707. LD="${LD-ld} -m elf_x86_64_fbsd"
  6708. ;;
  6709. x86_64-*linux*)
  6710. LD="${LD-ld} -m elf_x86_64"
  6711. ;;
  6712. powerpcle-*linux*)
  6713. LD="${LD-ld} -m elf64lppc"
  6714. ;;
  6715. powerpc-*linux*)
  6716. LD="${LD-ld} -m elf64ppc"
  6717. ;;
  6718. s390*-*linux*|s390*-*tpf*)
  6719. LD="${LD-ld} -m elf64_s390"
  6720. ;;
  6721. sparc*-*linux*)
  6722. LD="${LD-ld} -m elf64_sparc"
  6723. ;;
  6724. esac
  6725. ;;
  6726. esac
  6727. fi
  6728. rm -rf conftest*
  6729. ;;
  6730. *-*-sco3.2v5*)
  6731. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6732. SAVE_CFLAGS="$CFLAGS"
  6733. CFLAGS="$CFLAGS -belf"
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6735. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6736. if ${lt_cv_cc_needs_belf+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. ac_ext=c
  6740. ac_cpp='$CPP $CPPFLAGS'
  6741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6745. /* end confdefs.h. */
  6746. int
  6747. main ()
  6748. {
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. if ac_fn_c_try_link "$LINENO"; then :
  6754. lt_cv_cc_needs_belf=yes
  6755. else
  6756. lt_cv_cc_needs_belf=no
  6757. fi
  6758. rm -f core conftest.err conftest.$ac_objext \
  6759. conftest$ac_exeext conftest.$ac_ext
  6760. ac_ext=c
  6761. ac_cpp='$CPP $CPPFLAGS'
  6762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6765. fi
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6767. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6768. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6769. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6770. CFLAGS="$SAVE_CFLAGS"
  6771. fi
  6772. ;;
  6773. *-*solaris*)
  6774. # Find out which ABI we are using.
  6775. echo 'int i;' > conftest.$ac_ext
  6776. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6777. (eval $ac_compile) 2>&5
  6778. ac_status=$?
  6779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6780. test $ac_status = 0; }; then
  6781. case `/usr/bin/file conftest.o` in
  6782. *64-bit*)
  6783. case $lt_cv_prog_gnu_ld in
  6784. yes*)
  6785. case $host in
  6786. i?86-*-solaris*)
  6787. LD="${LD-ld} -m elf_x86_64"
  6788. ;;
  6789. sparc*-*-solaris*)
  6790. LD="${LD-ld} -m elf64_sparc"
  6791. ;;
  6792. esac
  6793. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6794. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6795. LD="${LD-ld}_sol2"
  6796. fi
  6797. ;;
  6798. *)
  6799. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6800. LD="${LD-ld} -64"
  6801. fi
  6802. ;;
  6803. esac
  6804. ;;
  6805. esac
  6806. fi
  6807. rm -rf conftest*
  6808. ;;
  6809. esac
  6810. need_locks="$enable_libtool_lock"
  6811. if test -n "$ac_tool_prefix"; then
  6812. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6813. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6815. $as_echo_n "checking for $ac_word... " >&6; }
  6816. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. if test -n "$MANIFEST_TOOL"; then
  6820. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6821. else
  6822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6823. for as_dir in $PATH
  6824. do
  6825. IFS=$as_save_IFS
  6826. test -z "$as_dir" && as_dir=.
  6827. for ac_exec_ext in '' $ac_executable_extensions; do
  6828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6829. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6831. break 2
  6832. fi
  6833. done
  6834. done
  6835. IFS=$as_save_IFS
  6836. fi
  6837. fi
  6838. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6839. if test -n "$MANIFEST_TOOL"; then
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6841. $as_echo "$MANIFEST_TOOL" >&6; }
  6842. else
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6844. $as_echo "no" >&6; }
  6845. fi
  6846. fi
  6847. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6848. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6849. # Extract the first word of "mt", so it can be a program name with args.
  6850. set dummy mt; ac_word=$2
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6852. $as_echo_n "checking for $ac_word... " >&6; }
  6853. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6854. $as_echo_n "(cached) " >&6
  6855. else
  6856. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6857. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6858. else
  6859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6860. for as_dir in $PATH
  6861. do
  6862. IFS=$as_save_IFS
  6863. test -z "$as_dir" && as_dir=.
  6864. for ac_exec_ext in '' $ac_executable_extensions; do
  6865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6866. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6868. break 2
  6869. fi
  6870. done
  6871. done
  6872. IFS=$as_save_IFS
  6873. fi
  6874. fi
  6875. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6876. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6878. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6879. else
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6881. $as_echo "no" >&6; }
  6882. fi
  6883. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6884. MANIFEST_TOOL=":"
  6885. else
  6886. case $cross_compiling:$ac_tool_warned in
  6887. yes:)
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6889. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6890. ac_tool_warned=yes ;;
  6891. esac
  6892. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6893. fi
  6894. else
  6895. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6896. fi
  6897. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6899. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6900. if ${lt_cv_path_mainfest_tool+:} false; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. lt_cv_path_mainfest_tool=no
  6904. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6905. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6906. cat conftest.err >&5
  6907. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6908. lt_cv_path_mainfest_tool=yes
  6909. fi
  6910. rm -f conftest*
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6913. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6914. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6915. MANIFEST_TOOL=:
  6916. fi
  6917. case $host_os in
  6918. rhapsody* | darwin*)
  6919. if test -n "$ac_tool_prefix"; then
  6920. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6921. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6923. $as_echo_n "checking for $ac_word... " >&6; }
  6924. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6925. $as_echo_n "(cached) " >&6
  6926. else
  6927. if test -n "$DSYMUTIL"; then
  6928. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6929. else
  6930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6931. for as_dir in $PATH
  6932. do
  6933. IFS=$as_save_IFS
  6934. test -z "$as_dir" && as_dir=.
  6935. for ac_exec_ext in '' $ac_executable_extensions; do
  6936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6937. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6939. break 2
  6940. fi
  6941. done
  6942. done
  6943. IFS=$as_save_IFS
  6944. fi
  6945. fi
  6946. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6947. if test -n "$DSYMUTIL"; then
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6949. $as_echo "$DSYMUTIL" >&6; }
  6950. else
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6952. $as_echo "no" >&6; }
  6953. fi
  6954. fi
  6955. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6956. ac_ct_DSYMUTIL=$DSYMUTIL
  6957. # Extract the first word of "dsymutil", so it can be a program name with args.
  6958. set dummy dsymutil; ac_word=$2
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6960. $as_echo_n "checking for $ac_word... " >&6; }
  6961. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. if test -n "$ac_ct_DSYMUTIL"; then
  6965. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6966. else
  6967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6968. for as_dir in $PATH
  6969. do
  6970. IFS=$as_save_IFS
  6971. test -z "$as_dir" && as_dir=.
  6972. for ac_exec_ext in '' $ac_executable_extensions; do
  6973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6974. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6976. break 2
  6977. fi
  6978. done
  6979. done
  6980. IFS=$as_save_IFS
  6981. fi
  6982. fi
  6983. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6984. if test -n "$ac_ct_DSYMUTIL"; then
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6986. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6987. else
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6989. $as_echo "no" >&6; }
  6990. fi
  6991. if test "x$ac_ct_DSYMUTIL" = x; then
  6992. DSYMUTIL=":"
  6993. else
  6994. case $cross_compiling:$ac_tool_warned in
  6995. yes:)
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6997. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6998. ac_tool_warned=yes ;;
  6999. esac
  7000. DSYMUTIL=$ac_ct_DSYMUTIL
  7001. fi
  7002. else
  7003. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7004. fi
  7005. if test -n "$ac_tool_prefix"; then
  7006. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7007. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7009. $as_echo_n "checking for $ac_word... " >&6; }
  7010. if ${ac_cv_prog_NMEDIT+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. if test -n "$NMEDIT"; then
  7014. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7015. else
  7016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7017. for as_dir in $PATH
  7018. do
  7019. IFS=$as_save_IFS
  7020. test -z "$as_dir" && as_dir=.
  7021. for ac_exec_ext in '' $ac_executable_extensions; do
  7022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7023. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7025. break 2
  7026. fi
  7027. done
  7028. done
  7029. IFS=$as_save_IFS
  7030. fi
  7031. fi
  7032. NMEDIT=$ac_cv_prog_NMEDIT
  7033. if test -n "$NMEDIT"; then
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7035. $as_echo "$NMEDIT" >&6; }
  7036. else
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7038. $as_echo "no" >&6; }
  7039. fi
  7040. fi
  7041. if test -z "$ac_cv_prog_NMEDIT"; then
  7042. ac_ct_NMEDIT=$NMEDIT
  7043. # Extract the first word of "nmedit", so it can be a program name with args.
  7044. set dummy nmedit; ac_word=$2
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$ac_ct_NMEDIT"; then
  7051. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7060. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7070. if test -n "$ac_ct_NMEDIT"; then
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7072. $as_echo "$ac_ct_NMEDIT" >&6; }
  7073. else
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. $as_echo "no" >&6; }
  7076. fi
  7077. if test "x$ac_ct_NMEDIT" = x; then
  7078. NMEDIT=":"
  7079. else
  7080. case $cross_compiling:$ac_tool_warned in
  7081. yes:)
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7083. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7084. ac_tool_warned=yes ;;
  7085. esac
  7086. NMEDIT=$ac_ct_NMEDIT
  7087. fi
  7088. else
  7089. NMEDIT="$ac_cv_prog_NMEDIT"
  7090. fi
  7091. if test -n "$ac_tool_prefix"; then
  7092. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7093. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7095. $as_echo_n "checking for $ac_word... " >&6; }
  7096. if ${ac_cv_prog_LIPO+:} false; then :
  7097. $as_echo_n "(cached) " >&6
  7098. else
  7099. if test -n "$LIPO"; then
  7100. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7101. else
  7102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7103. for as_dir in $PATH
  7104. do
  7105. IFS=$as_save_IFS
  7106. test -z "$as_dir" && as_dir=.
  7107. for ac_exec_ext in '' $ac_executable_extensions; do
  7108. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7109. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7110. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7111. break 2
  7112. fi
  7113. done
  7114. done
  7115. IFS=$as_save_IFS
  7116. fi
  7117. fi
  7118. LIPO=$ac_cv_prog_LIPO
  7119. if test -n "$LIPO"; then
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7121. $as_echo "$LIPO" >&6; }
  7122. else
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7124. $as_echo "no" >&6; }
  7125. fi
  7126. fi
  7127. if test -z "$ac_cv_prog_LIPO"; then
  7128. ac_ct_LIPO=$LIPO
  7129. # Extract the first word of "lipo", so it can be a program name with args.
  7130. set dummy lipo; ac_word=$2
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7132. $as_echo_n "checking for $ac_word... " >&6; }
  7133. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. if test -n "$ac_ct_LIPO"; then
  7137. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7138. else
  7139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7140. for as_dir in $PATH
  7141. do
  7142. IFS=$as_save_IFS
  7143. test -z "$as_dir" && as_dir=.
  7144. for ac_exec_ext in '' $ac_executable_extensions; do
  7145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7146. ac_cv_prog_ac_ct_LIPO="lipo"
  7147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7148. break 2
  7149. fi
  7150. done
  7151. done
  7152. IFS=$as_save_IFS
  7153. fi
  7154. fi
  7155. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7156. if test -n "$ac_ct_LIPO"; then
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7158. $as_echo "$ac_ct_LIPO" >&6; }
  7159. else
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7161. $as_echo "no" >&6; }
  7162. fi
  7163. if test "x$ac_ct_LIPO" = x; then
  7164. LIPO=":"
  7165. else
  7166. case $cross_compiling:$ac_tool_warned in
  7167. yes:)
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7169. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7170. ac_tool_warned=yes ;;
  7171. esac
  7172. LIPO=$ac_ct_LIPO
  7173. fi
  7174. else
  7175. LIPO="$ac_cv_prog_LIPO"
  7176. fi
  7177. if test -n "$ac_tool_prefix"; then
  7178. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7179. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7181. $as_echo_n "checking for $ac_word... " >&6; }
  7182. if ${ac_cv_prog_OTOOL+:} false; then :
  7183. $as_echo_n "(cached) " >&6
  7184. else
  7185. if test -n "$OTOOL"; then
  7186. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7187. else
  7188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7189. for as_dir in $PATH
  7190. do
  7191. IFS=$as_save_IFS
  7192. test -z "$as_dir" && as_dir=.
  7193. for ac_exec_ext in '' $ac_executable_extensions; do
  7194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7195. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7197. break 2
  7198. fi
  7199. done
  7200. done
  7201. IFS=$as_save_IFS
  7202. fi
  7203. fi
  7204. OTOOL=$ac_cv_prog_OTOOL
  7205. if test -n "$OTOOL"; then
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7207. $as_echo "$OTOOL" >&6; }
  7208. else
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7210. $as_echo "no" >&6; }
  7211. fi
  7212. fi
  7213. if test -z "$ac_cv_prog_OTOOL"; then
  7214. ac_ct_OTOOL=$OTOOL
  7215. # Extract the first word of "otool", so it can be a program name with args.
  7216. set dummy otool; ac_word=$2
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7218. $as_echo_n "checking for $ac_word... " >&6; }
  7219. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. if test -n "$ac_ct_OTOOL"; then
  7223. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7224. else
  7225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7226. for as_dir in $PATH
  7227. do
  7228. IFS=$as_save_IFS
  7229. test -z "$as_dir" && as_dir=.
  7230. for ac_exec_ext in '' $ac_executable_extensions; do
  7231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7232. ac_cv_prog_ac_ct_OTOOL="otool"
  7233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7234. break 2
  7235. fi
  7236. done
  7237. done
  7238. IFS=$as_save_IFS
  7239. fi
  7240. fi
  7241. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7242. if test -n "$ac_ct_OTOOL"; then
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7244. $as_echo "$ac_ct_OTOOL" >&6; }
  7245. else
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7247. $as_echo "no" >&6; }
  7248. fi
  7249. if test "x$ac_ct_OTOOL" = x; then
  7250. OTOOL=":"
  7251. else
  7252. case $cross_compiling:$ac_tool_warned in
  7253. yes:)
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7255. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7256. ac_tool_warned=yes ;;
  7257. esac
  7258. OTOOL=$ac_ct_OTOOL
  7259. fi
  7260. else
  7261. OTOOL="$ac_cv_prog_OTOOL"
  7262. fi
  7263. if test -n "$ac_tool_prefix"; then
  7264. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7265. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7267. $as_echo_n "checking for $ac_word... " >&6; }
  7268. if ${ac_cv_prog_OTOOL64+:} false; then :
  7269. $as_echo_n "(cached) " >&6
  7270. else
  7271. if test -n "$OTOOL64"; then
  7272. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7273. else
  7274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7275. for as_dir in $PATH
  7276. do
  7277. IFS=$as_save_IFS
  7278. test -z "$as_dir" && as_dir=.
  7279. for ac_exec_ext in '' $ac_executable_extensions; do
  7280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7281. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7283. break 2
  7284. fi
  7285. done
  7286. done
  7287. IFS=$as_save_IFS
  7288. fi
  7289. fi
  7290. OTOOL64=$ac_cv_prog_OTOOL64
  7291. if test -n "$OTOOL64"; then
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7293. $as_echo "$OTOOL64" >&6; }
  7294. else
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7296. $as_echo "no" >&6; }
  7297. fi
  7298. fi
  7299. if test -z "$ac_cv_prog_OTOOL64"; then
  7300. ac_ct_OTOOL64=$OTOOL64
  7301. # Extract the first word of "otool64", so it can be a program name with args.
  7302. set dummy otool64; ac_word=$2
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7304. $as_echo_n "checking for $ac_word... " >&6; }
  7305. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7306. $as_echo_n "(cached) " >&6
  7307. else
  7308. if test -n "$ac_ct_OTOOL64"; then
  7309. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7310. else
  7311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7312. for as_dir in $PATH
  7313. do
  7314. IFS=$as_save_IFS
  7315. test -z "$as_dir" && as_dir=.
  7316. for ac_exec_ext in '' $ac_executable_extensions; do
  7317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7318. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7320. break 2
  7321. fi
  7322. done
  7323. done
  7324. IFS=$as_save_IFS
  7325. fi
  7326. fi
  7327. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7328. if test -n "$ac_ct_OTOOL64"; then
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7330. $as_echo "$ac_ct_OTOOL64" >&6; }
  7331. else
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7333. $as_echo "no" >&6; }
  7334. fi
  7335. if test "x$ac_ct_OTOOL64" = x; then
  7336. OTOOL64=":"
  7337. else
  7338. case $cross_compiling:$ac_tool_warned in
  7339. yes:)
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7342. ac_tool_warned=yes ;;
  7343. esac
  7344. OTOOL64=$ac_ct_OTOOL64
  7345. fi
  7346. else
  7347. OTOOL64="$ac_cv_prog_OTOOL64"
  7348. fi
  7349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7350. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7351. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7352. $as_echo_n "(cached) " >&6
  7353. else
  7354. lt_cv_apple_cc_single_mod=no
  7355. if test -z "${LT_MULTI_MODULE}"; then
  7356. # By default we will add the -single_module flag. You can override
  7357. # by either setting the environment variable LT_MULTI_MODULE
  7358. # non-empty at configure time, or by adding -multi_module to the
  7359. # link flags.
  7360. rm -rf libconftest.dylib*
  7361. echo "int foo(void){return 1;}" > conftest.c
  7362. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7363. -dynamiclib -Wl,-single_module conftest.c" >&5
  7364. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7365. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7366. _lt_result=$?
  7367. # If there is a non-empty error log, and "single_module"
  7368. # appears in it, assume the flag caused a linker warning
  7369. if test -s conftest.err && $GREP single_module conftest.err; then
  7370. cat conftest.err >&5
  7371. # Otherwise, if the output was created with a 0 exit code from
  7372. # the compiler, it worked.
  7373. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7374. lt_cv_apple_cc_single_mod=yes
  7375. else
  7376. cat conftest.err >&5
  7377. fi
  7378. rm -rf libconftest.dylib*
  7379. rm -f conftest.*
  7380. fi
  7381. fi
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7383. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7385. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7386. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7387. $as_echo_n "(cached) " >&6
  7388. else
  7389. lt_cv_ld_exported_symbols_list=no
  7390. save_LDFLAGS=$LDFLAGS
  7391. echo "_main" > conftest.sym
  7392. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7394. /* end confdefs.h. */
  7395. int
  7396. main ()
  7397. {
  7398. ;
  7399. return 0;
  7400. }
  7401. _ACEOF
  7402. if ac_fn_c_try_link "$LINENO"; then :
  7403. lt_cv_ld_exported_symbols_list=yes
  7404. else
  7405. lt_cv_ld_exported_symbols_list=no
  7406. fi
  7407. rm -f core conftest.err conftest.$ac_objext \
  7408. conftest$ac_exeext conftest.$ac_ext
  7409. LDFLAGS="$save_LDFLAGS"
  7410. fi
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7412. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7414. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7415. if ${lt_cv_ld_force_load+:} false; then :
  7416. $as_echo_n "(cached) " >&6
  7417. else
  7418. lt_cv_ld_force_load=no
  7419. cat > conftest.c << _LT_EOF
  7420. int forced_loaded() { return 2;}
  7421. _LT_EOF
  7422. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7423. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7424. echo "$AR cru libconftest.a conftest.o" >&5
  7425. $AR cru libconftest.a conftest.o 2>&5
  7426. echo "$RANLIB libconftest.a" >&5
  7427. $RANLIB libconftest.a 2>&5
  7428. cat > conftest.c << _LT_EOF
  7429. int main() { return 0;}
  7430. _LT_EOF
  7431. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7432. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7433. _lt_result=$?
  7434. if test -s conftest.err && $GREP force_load conftest.err; then
  7435. cat conftest.err >&5
  7436. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7437. lt_cv_ld_force_load=yes
  7438. else
  7439. cat conftest.err >&5
  7440. fi
  7441. rm -f conftest.err libconftest.a conftest conftest.c
  7442. rm -rf conftest.dSYM
  7443. fi
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7445. $as_echo "$lt_cv_ld_force_load" >&6; }
  7446. case $host_os in
  7447. rhapsody* | darwin1.[012])
  7448. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7449. darwin1.*)
  7450. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7451. darwin*) # darwin 5.x on
  7452. # if running on 10.5 or later, the deployment target defaults
  7453. # to the OS version, if on x86, and 10.4, the deployment
  7454. # target defaults to 10.4. Don't you love it?
  7455. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7456. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7457. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7458. 10.[012]*)
  7459. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7460. 10.*)
  7461. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7462. esac
  7463. ;;
  7464. esac
  7465. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7466. _lt_dar_single_mod='$single_module'
  7467. fi
  7468. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7469. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7470. else
  7471. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7472. fi
  7473. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7474. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7475. else
  7476. _lt_dsymutil=
  7477. fi
  7478. ;;
  7479. esac
  7480. ac_ext=c
  7481. ac_cpp='$CPP $CPPFLAGS'
  7482. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7483. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7484. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7486. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7487. # On Suns, sometimes $CPP names a directory.
  7488. if test -n "$CPP" && test -d "$CPP"; then
  7489. CPP=
  7490. fi
  7491. if test -z "$CPP"; then
  7492. if ${ac_cv_prog_CPP+:} false; then :
  7493. $as_echo_n "(cached) " >&6
  7494. else
  7495. # Double quotes because CPP needs to be expanded
  7496. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7497. do
  7498. ac_preproc_ok=false
  7499. for ac_c_preproc_warn_flag in '' yes
  7500. do
  7501. # Use a header file that comes with gcc, so configuring glibc
  7502. # with a fresh cross-compiler works.
  7503. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7504. # <limits.h> exists even on freestanding compilers.
  7505. # On the NeXT, cc -E runs the code through the compiler's parser,
  7506. # not just through cpp. "Syntax error" is here to catch this case.
  7507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7508. /* end confdefs.h. */
  7509. #ifdef __STDC__
  7510. # include <limits.h>
  7511. #else
  7512. # include <assert.h>
  7513. #endif
  7514. Syntax error
  7515. _ACEOF
  7516. if ac_fn_c_try_cpp "$LINENO"; then :
  7517. else
  7518. # Broken: fails on valid input.
  7519. continue
  7520. fi
  7521. rm -f conftest.err conftest.i conftest.$ac_ext
  7522. # OK, works on sane cases. Now check whether nonexistent headers
  7523. # can be detected and how.
  7524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7525. /* end confdefs.h. */
  7526. #include <ac_nonexistent.h>
  7527. _ACEOF
  7528. if ac_fn_c_try_cpp "$LINENO"; then :
  7529. # Broken: success on invalid input.
  7530. continue
  7531. else
  7532. # Passes both tests.
  7533. ac_preproc_ok=:
  7534. break
  7535. fi
  7536. rm -f conftest.err conftest.i conftest.$ac_ext
  7537. done
  7538. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7539. rm -f conftest.i conftest.err conftest.$ac_ext
  7540. if $ac_preproc_ok; then :
  7541. break
  7542. fi
  7543. done
  7544. ac_cv_prog_CPP=$CPP
  7545. fi
  7546. CPP=$ac_cv_prog_CPP
  7547. else
  7548. ac_cv_prog_CPP=$CPP
  7549. fi
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7551. $as_echo "$CPP" >&6; }
  7552. ac_preproc_ok=false
  7553. for ac_c_preproc_warn_flag in '' yes
  7554. do
  7555. # Use a header file that comes with gcc, so configuring glibc
  7556. # with a fresh cross-compiler works.
  7557. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7558. # <limits.h> exists even on freestanding compilers.
  7559. # On the NeXT, cc -E runs the code through the compiler's parser,
  7560. # not just through cpp. "Syntax error" is here to catch this case.
  7561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7562. /* end confdefs.h. */
  7563. #ifdef __STDC__
  7564. # include <limits.h>
  7565. #else
  7566. # include <assert.h>
  7567. #endif
  7568. Syntax error
  7569. _ACEOF
  7570. if ac_fn_c_try_cpp "$LINENO"; then :
  7571. else
  7572. # Broken: fails on valid input.
  7573. continue
  7574. fi
  7575. rm -f conftest.err conftest.i conftest.$ac_ext
  7576. # OK, works on sane cases. Now check whether nonexistent headers
  7577. # can be detected and how.
  7578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7579. /* end confdefs.h. */
  7580. #include <ac_nonexistent.h>
  7581. _ACEOF
  7582. if ac_fn_c_try_cpp "$LINENO"; then :
  7583. # Broken: success on invalid input.
  7584. continue
  7585. else
  7586. # Passes both tests.
  7587. ac_preproc_ok=:
  7588. break
  7589. fi
  7590. rm -f conftest.err conftest.i conftest.$ac_ext
  7591. done
  7592. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7593. rm -f conftest.i conftest.err conftest.$ac_ext
  7594. if $ac_preproc_ok; then :
  7595. else
  7596. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7597. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7598. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7599. See \`config.log' for more details" "$LINENO" 5; }
  7600. fi
  7601. ac_ext=c
  7602. ac_cpp='$CPP $CPPFLAGS'
  7603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7607. $as_echo_n "checking for ANSI C header files... " >&6; }
  7608. if ${ac_cv_header_stdc+:} false; then :
  7609. $as_echo_n "(cached) " >&6
  7610. else
  7611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7612. /* end confdefs.h. */
  7613. #include <stdlib.h>
  7614. #include <stdarg.h>
  7615. #include <string.h>
  7616. #include <float.h>
  7617. int
  7618. main ()
  7619. {
  7620. ;
  7621. return 0;
  7622. }
  7623. _ACEOF
  7624. if ac_fn_c_try_compile "$LINENO"; then :
  7625. ac_cv_header_stdc=yes
  7626. else
  7627. ac_cv_header_stdc=no
  7628. fi
  7629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7630. if test $ac_cv_header_stdc = yes; then
  7631. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7633. /* end confdefs.h. */
  7634. #include <string.h>
  7635. _ACEOF
  7636. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7637. $EGREP "memchr" >/dev/null 2>&1; then :
  7638. else
  7639. ac_cv_header_stdc=no
  7640. fi
  7641. rm -f conftest*
  7642. fi
  7643. if test $ac_cv_header_stdc = yes; then
  7644. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7646. /* end confdefs.h. */
  7647. #include <stdlib.h>
  7648. _ACEOF
  7649. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7650. $EGREP "free" >/dev/null 2>&1; then :
  7651. else
  7652. ac_cv_header_stdc=no
  7653. fi
  7654. rm -f conftest*
  7655. fi
  7656. if test $ac_cv_header_stdc = yes; then
  7657. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7658. if test "$cross_compiling" = yes; then :
  7659. :
  7660. else
  7661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7662. /* end confdefs.h. */
  7663. #include <ctype.h>
  7664. #include <stdlib.h>
  7665. #if ((' ' & 0x0FF) == 0x020)
  7666. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7667. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7668. #else
  7669. # define ISLOWER(c) \
  7670. (('a' <= (c) && (c) <= 'i') \
  7671. || ('j' <= (c) && (c) <= 'r') \
  7672. || ('s' <= (c) && (c) <= 'z'))
  7673. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7674. #endif
  7675. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7676. int
  7677. main ()
  7678. {
  7679. int i;
  7680. for (i = 0; i < 256; i++)
  7681. if (XOR (islower (i), ISLOWER (i))
  7682. || toupper (i) != TOUPPER (i))
  7683. return 2;
  7684. return 0;
  7685. }
  7686. _ACEOF
  7687. if ac_fn_c_try_run "$LINENO"; then :
  7688. else
  7689. ac_cv_header_stdc=no
  7690. fi
  7691. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7692. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7693. fi
  7694. fi
  7695. fi
  7696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7697. $as_echo "$ac_cv_header_stdc" >&6; }
  7698. if test $ac_cv_header_stdc = yes; then
  7699. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7700. fi
  7701. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7702. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7703. inttypes.h stdint.h unistd.h
  7704. do :
  7705. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7706. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7707. "
  7708. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7709. cat >>confdefs.h <<_ACEOF
  7710. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7711. _ACEOF
  7712. fi
  7713. done
  7714. for ac_header in dlfcn.h
  7715. do :
  7716. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7717. "
  7718. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7719. cat >>confdefs.h <<_ACEOF
  7720. #define HAVE_DLFCN_H 1
  7721. _ACEOF
  7722. fi
  7723. done
  7724. func_stripname_cnf ()
  7725. {
  7726. case ${2} in
  7727. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7728. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7729. esac
  7730. } # func_stripname_cnf
  7731. # Set options
  7732. enable_dlopen=no
  7733. enable_win32_dll=no
  7734. # Check whether --enable-shared was given.
  7735. if test "${enable_shared+set}" = set; then :
  7736. enableval=$enable_shared; p=${PACKAGE-default}
  7737. case $enableval in
  7738. yes) enable_shared=yes ;;
  7739. no) enable_shared=no ;;
  7740. *)
  7741. enable_shared=no
  7742. # Look at the argument we got. We use all the common list separators.
  7743. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7744. for pkg in $enableval; do
  7745. IFS="$lt_save_ifs"
  7746. if test "X$pkg" = "X$p"; then
  7747. enable_shared=yes
  7748. fi
  7749. done
  7750. IFS="$lt_save_ifs"
  7751. ;;
  7752. esac
  7753. else
  7754. enable_shared=yes
  7755. fi
  7756. # Check whether --with-pic was given.
  7757. if test "${with_pic+set}" = set; then :
  7758. withval=$with_pic; lt_p=${PACKAGE-default}
  7759. case $withval in
  7760. yes|no) pic_mode=$withval ;;
  7761. *)
  7762. pic_mode=default
  7763. # Look at the argument we got. We use all the common list separators.
  7764. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7765. for lt_pkg in $withval; do
  7766. IFS="$lt_save_ifs"
  7767. if test "X$lt_pkg" = "X$lt_p"; then
  7768. pic_mode=yes
  7769. fi
  7770. done
  7771. IFS="$lt_save_ifs"
  7772. ;;
  7773. esac
  7774. else
  7775. pic_mode=default
  7776. fi
  7777. test -z "$pic_mode" && pic_mode=default
  7778. # Check whether --enable-fast-install was given.
  7779. if test "${enable_fast_install+set}" = set; then :
  7780. enableval=$enable_fast_install; p=${PACKAGE-default}
  7781. case $enableval in
  7782. yes) enable_fast_install=yes ;;
  7783. no) enable_fast_install=no ;;
  7784. *)
  7785. enable_fast_install=no
  7786. # Look at the argument we got. We use all the common list separators.
  7787. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7788. for pkg in $enableval; do
  7789. IFS="$lt_save_ifs"
  7790. if test "X$pkg" = "X$p"; then
  7791. enable_fast_install=yes
  7792. fi
  7793. done
  7794. IFS="$lt_save_ifs"
  7795. ;;
  7796. esac
  7797. else
  7798. enable_fast_install=yes
  7799. fi
  7800. # This can be used to rebuild libtool when needed
  7801. LIBTOOL_DEPS="$ltmain"
  7802. # Always use our own libtool.
  7803. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7804. test -z "$LN_S" && LN_S="ln -s"
  7805. if test -n "${ZSH_VERSION+set}" ; then
  7806. setopt NO_GLOB_SUBST
  7807. fi
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7809. $as_echo_n "checking for objdir... " >&6; }
  7810. if ${lt_cv_objdir+:} false; then :
  7811. $as_echo_n "(cached) " >&6
  7812. else
  7813. rm -f .libs 2>/dev/null
  7814. mkdir .libs 2>/dev/null
  7815. if test -d .libs; then
  7816. lt_cv_objdir=.libs
  7817. else
  7818. # MS-DOS does not allow filenames that begin with a dot.
  7819. lt_cv_objdir=_libs
  7820. fi
  7821. rmdir .libs 2>/dev/null
  7822. fi
  7823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7824. $as_echo "$lt_cv_objdir" >&6; }
  7825. objdir=$lt_cv_objdir
  7826. cat >>confdefs.h <<_ACEOF
  7827. #define LT_OBJDIR "$lt_cv_objdir/"
  7828. _ACEOF
  7829. case $host_os in
  7830. aix3*)
  7831. # AIX sometimes has problems with the GCC collect2 program. For some
  7832. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7833. # vanish in a puff of smoke.
  7834. if test "X${COLLECT_NAMES+set}" != Xset; then
  7835. COLLECT_NAMES=
  7836. export COLLECT_NAMES
  7837. fi
  7838. ;;
  7839. esac
  7840. # Global variables:
  7841. ofile=libtool
  7842. can_build_shared=yes
  7843. # All known linkers require a `.a' archive for static linking (except MSVC,
  7844. # which needs '.lib').
  7845. libext=a
  7846. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7847. old_CC="$CC"
  7848. old_CFLAGS="$CFLAGS"
  7849. # Set sane defaults for various variables
  7850. test -z "$CC" && CC=cc
  7851. test -z "$LTCC" && LTCC=$CC
  7852. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7853. test -z "$LD" && LD=ld
  7854. test -z "$ac_objext" && ac_objext=o
  7855. for cc_temp in $compiler""; do
  7856. case $cc_temp in
  7857. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7858. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7859. \-*) ;;
  7860. *) break;;
  7861. esac
  7862. done
  7863. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7864. # Only perform the check for file, if the check method requires it
  7865. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7866. case $deplibs_check_method in
  7867. file_magic*)
  7868. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7870. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7871. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. case $MAGIC_CMD in
  7875. [\\/*] | ?:[\\/]*)
  7876. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7877. ;;
  7878. *)
  7879. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7880. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7881. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7882. for ac_dir in $ac_dummy; do
  7883. IFS="$lt_save_ifs"
  7884. test -z "$ac_dir" && ac_dir=.
  7885. if test -f $ac_dir/${ac_tool_prefix}file; then
  7886. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7887. if test -n "$file_magic_test_file"; then
  7888. case $deplibs_check_method in
  7889. "file_magic "*)
  7890. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7891. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7892. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7893. $EGREP "$file_magic_regex" > /dev/null; then
  7894. :
  7895. else
  7896. cat <<_LT_EOF 1>&2
  7897. *** Warning: the command libtool uses to detect shared libraries,
  7898. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7899. *** The result is that libtool may fail to recognize shared libraries
  7900. *** as such. This will affect the creation of libtool libraries that
  7901. *** depend on shared libraries, but programs linked with such libtool
  7902. *** libraries will work regardless of this problem. Nevertheless, you
  7903. *** may want to report the problem to your system manager and/or to
  7904. *** [email protected]
  7905. _LT_EOF
  7906. fi ;;
  7907. esac
  7908. fi
  7909. break
  7910. fi
  7911. done
  7912. IFS="$lt_save_ifs"
  7913. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7914. ;;
  7915. esac
  7916. fi
  7917. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7918. if test -n "$MAGIC_CMD"; then
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7920. $as_echo "$MAGIC_CMD" >&6; }
  7921. else
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7923. $as_echo "no" >&6; }
  7924. fi
  7925. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7926. if test -n "$ac_tool_prefix"; then
  7927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7928. $as_echo_n "checking for file... " >&6; }
  7929. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7930. $as_echo_n "(cached) " >&6
  7931. else
  7932. case $MAGIC_CMD in
  7933. [\\/*] | ?:[\\/]*)
  7934. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7935. ;;
  7936. *)
  7937. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7938. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7939. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7940. for ac_dir in $ac_dummy; do
  7941. IFS="$lt_save_ifs"
  7942. test -z "$ac_dir" && ac_dir=.
  7943. if test -f $ac_dir/file; then
  7944. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7945. if test -n "$file_magic_test_file"; then
  7946. case $deplibs_check_method in
  7947. "file_magic "*)
  7948. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7949. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7950. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7951. $EGREP "$file_magic_regex" > /dev/null; then
  7952. :
  7953. else
  7954. cat <<_LT_EOF 1>&2
  7955. *** Warning: the command libtool uses to detect shared libraries,
  7956. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7957. *** The result is that libtool may fail to recognize shared libraries
  7958. *** as such. This will affect the creation of libtool libraries that
  7959. *** depend on shared libraries, but programs linked with such libtool
  7960. *** libraries will work regardless of this problem. Nevertheless, you
  7961. *** may want to report the problem to your system manager and/or to
  7962. *** [email protected]
  7963. _LT_EOF
  7964. fi ;;
  7965. esac
  7966. fi
  7967. break
  7968. fi
  7969. done
  7970. IFS="$lt_save_ifs"
  7971. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7972. ;;
  7973. esac
  7974. fi
  7975. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7976. if test -n "$MAGIC_CMD"; then
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7978. $as_echo "$MAGIC_CMD" >&6; }
  7979. else
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7981. $as_echo "no" >&6; }
  7982. fi
  7983. else
  7984. MAGIC_CMD=:
  7985. fi
  7986. fi
  7987. fi
  7988. ;;
  7989. esac
  7990. # Use C for the default configuration in the libtool script
  7991. lt_save_CC="$CC"
  7992. ac_ext=c
  7993. ac_cpp='$CPP $CPPFLAGS'
  7994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7997. # Source file extension for C test sources.
  7998. ac_ext=c
  7999. # Object file extension for compiled C test sources.
  8000. objext=o
  8001. objext=$objext
  8002. # Code to be used in simple compile tests
  8003. lt_simple_compile_test_code="int some_variable = 0;"
  8004. # Code to be used in simple link tests
  8005. lt_simple_link_test_code='int main(){return(0);}'
  8006. # If no C compiler was specified, use CC.
  8007. LTCC=${LTCC-"$CC"}
  8008. # If no C compiler flags were specified, use CFLAGS.
  8009. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8010. # Allow CC to be a program name with arguments.
  8011. compiler=$CC
  8012. # Save the default compiler, since it gets overwritten when the other
  8013. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8014. compiler_DEFAULT=$CC
  8015. # save warnings/boilerplate of simple test code
  8016. ac_outfile=conftest.$ac_objext
  8017. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8018. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8019. _lt_compiler_boilerplate=`cat conftest.err`
  8020. $RM conftest*
  8021. ac_outfile=conftest.$ac_objext
  8022. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8023. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8024. _lt_linker_boilerplate=`cat conftest.err`
  8025. $RM -r conftest*
  8026. ## CAVEAT EMPTOR:
  8027. ## There is no encapsulation within the following macros, do not change
  8028. ## the running order or otherwise move them around unless you know exactly
  8029. ## what you are doing...
  8030. if test -n "$compiler"; then
  8031. lt_prog_compiler_no_builtin_flag=
  8032. if test "$GCC" = yes; then
  8033. case $cc_basename in
  8034. nvcc*)
  8035. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8036. *)
  8037. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8038. esac
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8040. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8041. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8042. $as_echo_n "(cached) " >&6
  8043. else
  8044. lt_cv_prog_compiler_rtti_exceptions=no
  8045. ac_outfile=conftest.$ac_objext
  8046. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8047. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8048. # Insert the option either (1) after the last *FLAGS variable, or
  8049. # (2) before a word containing "conftest.", or (3) at the end.
  8050. # Note that $ac_compile itself does not contain backslashes and begins
  8051. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8052. # The option is referenced via a variable to avoid confusing sed.
  8053. lt_compile=`echo "$ac_compile" | $SED \
  8054. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8055. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8056. -e 's:$: $lt_compiler_flag:'`
  8057. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8058. (eval "$lt_compile" 2>conftest.err)
  8059. ac_status=$?
  8060. cat conftest.err >&5
  8061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8062. if (exit $ac_status) && test -s "$ac_outfile"; then
  8063. # The compiler can only warn and ignore the option if not recognized
  8064. # So say no if there are warnings other than the usual output.
  8065. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8066. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8067. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8068. lt_cv_prog_compiler_rtti_exceptions=yes
  8069. fi
  8070. fi
  8071. $RM conftest*
  8072. fi
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8074. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8075. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8076. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8077. else
  8078. :
  8079. fi
  8080. fi
  8081. lt_prog_compiler_wl=
  8082. lt_prog_compiler_pic=
  8083. lt_prog_compiler_static=
  8084. if test "$GCC" = yes; then
  8085. lt_prog_compiler_wl='-Wl,'
  8086. lt_prog_compiler_static='-static'
  8087. case $host_os in
  8088. aix*)
  8089. # All AIX code is PIC.
  8090. if test "$host_cpu" = ia64; then
  8091. # AIX 5 now supports IA64 processor
  8092. lt_prog_compiler_static='-Bstatic'
  8093. fi
  8094. ;;
  8095. amigaos*)
  8096. case $host_cpu in
  8097. powerpc)
  8098. # see comment about AmigaOS4 .so support
  8099. lt_prog_compiler_pic='-fPIC'
  8100. ;;
  8101. m68k)
  8102. # FIXME: we need at least 68020 code to build shared libraries, but
  8103. # adding the `-m68020' flag to GCC prevents building anything better,
  8104. # like `-m68040'.
  8105. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8106. ;;
  8107. esac
  8108. ;;
  8109. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8110. # PIC is the default for these OSes.
  8111. ;;
  8112. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8113. # This hack is so that the source file can tell whether it is being
  8114. # built for inclusion in a dll (and should export symbols for example).
  8115. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8116. # (--disable-auto-import) libraries
  8117. lt_prog_compiler_pic='-DDLL_EXPORT'
  8118. ;;
  8119. darwin* | rhapsody*)
  8120. # PIC is the default on this platform
  8121. # Common symbols not allowed in MH_DYLIB files
  8122. lt_prog_compiler_pic='-fno-common'
  8123. ;;
  8124. haiku*)
  8125. # PIC is the default for Haiku.
  8126. # The "-static" flag exists, but is broken.
  8127. lt_prog_compiler_static=
  8128. ;;
  8129. hpux*)
  8130. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8131. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8132. # sets the default TLS model and affects inlining.
  8133. case $host_cpu in
  8134. hppa*64*)
  8135. # +Z the default
  8136. ;;
  8137. *)
  8138. lt_prog_compiler_pic='-fPIC'
  8139. ;;
  8140. esac
  8141. ;;
  8142. interix[3-9]*)
  8143. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8144. # Instead, we relocate shared libraries at runtime.
  8145. ;;
  8146. msdosdjgpp*)
  8147. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8148. # on systems that don't support them.
  8149. lt_prog_compiler_can_build_shared=no
  8150. enable_shared=no
  8151. ;;
  8152. *nto* | *qnx*)
  8153. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8154. # it will coredump.
  8155. lt_prog_compiler_pic='-fPIC -shared'
  8156. ;;
  8157. sysv4*MP*)
  8158. if test -d /usr/nec; then
  8159. lt_prog_compiler_pic=-Kconform_pic
  8160. fi
  8161. ;;
  8162. *)
  8163. lt_prog_compiler_pic='-fPIC'
  8164. ;;
  8165. esac
  8166. case $cc_basename in
  8167. nvcc*) # Cuda Compiler Driver 2.2
  8168. lt_prog_compiler_wl='-Xlinker '
  8169. if test -n "$lt_prog_compiler_pic"; then
  8170. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8171. fi
  8172. ;;
  8173. esac
  8174. else
  8175. # PORTME Check for flag to pass linker flags through the system compiler.
  8176. case $host_os in
  8177. aix*)
  8178. lt_prog_compiler_wl='-Wl,'
  8179. if test "$host_cpu" = ia64; then
  8180. # AIX 5 now supports IA64 processor
  8181. lt_prog_compiler_static='-Bstatic'
  8182. else
  8183. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8184. fi
  8185. ;;
  8186. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8187. # This hack is so that the source file can tell whether it is being
  8188. # built for inclusion in a dll (and should export symbols for example).
  8189. lt_prog_compiler_pic='-DDLL_EXPORT'
  8190. ;;
  8191. hpux9* | hpux10* | hpux11*)
  8192. lt_prog_compiler_wl='-Wl,'
  8193. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8194. # not for PA HP-UX.
  8195. case $host_cpu in
  8196. hppa*64*|ia64*)
  8197. # +Z the default
  8198. ;;
  8199. *)
  8200. lt_prog_compiler_pic='+Z'
  8201. ;;
  8202. esac
  8203. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8204. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8205. ;;
  8206. irix5* | irix6* | nonstopux*)
  8207. lt_prog_compiler_wl='-Wl,'
  8208. # PIC (with -KPIC) is the default.
  8209. lt_prog_compiler_static='-non_shared'
  8210. ;;
  8211. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8212. case $cc_basename in
  8213. # old Intel for x86_64 which still supported -KPIC.
  8214. ecc*)
  8215. lt_prog_compiler_wl='-Wl,'
  8216. lt_prog_compiler_pic='-KPIC'
  8217. lt_prog_compiler_static='-static'
  8218. ;;
  8219. # icc used to be incompatible with GCC.
  8220. # ICC 10 doesn't accept -KPIC any more.
  8221. icc* | ifort*)
  8222. lt_prog_compiler_wl='-Wl,'
  8223. lt_prog_compiler_pic='-fPIC'
  8224. lt_prog_compiler_static='-static'
  8225. ;;
  8226. # Lahey Fortran 8.1.
  8227. lf95*)
  8228. lt_prog_compiler_wl='-Wl,'
  8229. lt_prog_compiler_pic='--shared'
  8230. lt_prog_compiler_static='--static'
  8231. ;;
  8232. nagfor*)
  8233. # NAG Fortran compiler
  8234. lt_prog_compiler_wl='-Wl,-Wl,,'
  8235. lt_prog_compiler_pic='-PIC'
  8236. lt_prog_compiler_static='-Bstatic'
  8237. ;;
  8238. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8239. # Portland Group compilers (*not* the Pentium gcc compiler,
  8240. # which looks to be a dead project)
  8241. lt_prog_compiler_wl='-Wl,'
  8242. lt_prog_compiler_pic='-fpic'
  8243. lt_prog_compiler_static='-Bstatic'
  8244. ;;
  8245. ccc*)
  8246. lt_prog_compiler_wl='-Wl,'
  8247. # All Alpha code is PIC.
  8248. lt_prog_compiler_static='-non_shared'
  8249. ;;
  8250. xl* | bgxl* | bgf* | mpixl*)
  8251. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8252. lt_prog_compiler_wl='-Wl,'
  8253. lt_prog_compiler_pic='-qpic'
  8254. lt_prog_compiler_static='-qstaticlink'
  8255. ;;
  8256. *)
  8257. case `$CC -V 2>&1 | sed 5q` in
  8258. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8259. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8260. lt_prog_compiler_pic='-KPIC'
  8261. lt_prog_compiler_static='-Bstatic'
  8262. lt_prog_compiler_wl=''
  8263. ;;
  8264. *Sun\ F* | *Sun*Fortran*)
  8265. lt_prog_compiler_pic='-KPIC'
  8266. lt_prog_compiler_static='-Bstatic'
  8267. lt_prog_compiler_wl='-Qoption ld '
  8268. ;;
  8269. *Sun\ C*)
  8270. # Sun C 5.9
  8271. lt_prog_compiler_pic='-KPIC'
  8272. lt_prog_compiler_static='-Bstatic'
  8273. lt_prog_compiler_wl='-Wl,'
  8274. ;;
  8275. *Intel*\ [CF]*Compiler*)
  8276. lt_prog_compiler_wl='-Wl,'
  8277. lt_prog_compiler_pic='-fPIC'
  8278. lt_prog_compiler_static='-static'
  8279. ;;
  8280. *Portland\ Group*)
  8281. lt_prog_compiler_wl='-Wl,'
  8282. lt_prog_compiler_pic='-fpic'
  8283. lt_prog_compiler_static='-Bstatic'
  8284. ;;
  8285. esac
  8286. ;;
  8287. esac
  8288. ;;
  8289. newsos6)
  8290. lt_prog_compiler_pic='-KPIC'
  8291. lt_prog_compiler_static='-Bstatic'
  8292. ;;
  8293. *nto* | *qnx*)
  8294. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8295. # it will coredump.
  8296. lt_prog_compiler_pic='-fPIC -shared'
  8297. ;;
  8298. osf3* | osf4* | osf5*)
  8299. lt_prog_compiler_wl='-Wl,'
  8300. # All OSF/1 code is PIC.
  8301. lt_prog_compiler_static='-non_shared'
  8302. ;;
  8303. rdos*)
  8304. lt_prog_compiler_static='-non_shared'
  8305. ;;
  8306. solaris*)
  8307. lt_prog_compiler_pic='-KPIC'
  8308. lt_prog_compiler_static='-Bstatic'
  8309. case $cc_basename in
  8310. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8311. lt_prog_compiler_wl='-Qoption ld ';;
  8312. *)
  8313. lt_prog_compiler_wl='-Wl,';;
  8314. esac
  8315. ;;
  8316. sunos4*)
  8317. lt_prog_compiler_wl='-Qoption ld '
  8318. lt_prog_compiler_pic='-PIC'
  8319. lt_prog_compiler_static='-Bstatic'
  8320. ;;
  8321. sysv4 | sysv4.2uw2* | sysv4.3*)
  8322. lt_prog_compiler_wl='-Wl,'
  8323. lt_prog_compiler_pic='-KPIC'
  8324. lt_prog_compiler_static='-Bstatic'
  8325. ;;
  8326. sysv4*MP*)
  8327. if test -d /usr/nec ;then
  8328. lt_prog_compiler_pic='-Kconform_pic'
  8329. lt_prog_compiler_static='-Bstatic'
  8330. fi
  8331. ;;
  8332. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8333. lt_prog_compiler_wl='-Wl,'
  8334. lt_prog_compiler_pic='-KPIC'
  8335. lt_prog_compiler_static='-Bstatic'
  8336. ;;
  8337. unicos*)
  8338. lt_prog_compiler_wl='-Wl,'
  8339. lt_prog_compiler_can_build_shared=no
  8340. ;;
  8341. uts4*)
  8342. lt_prog_compiler_pic='-pic'
  8343. lt_prog_compiler_static='-Bstatic'
  8344. ;;
  8345. *)
  8346. lt_prog_compiler_can_build_shared=no
  8347. ;;
  8348. esac
  8349. fi
  8350. case $host_os in
  8351. # For platforms which do not support PIC, -DPIC is meaningless:
  8352. *djgpp*)
  8353. lt_prog_compiler_pic=
  8354. ;;
  8355. *)
  8356. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8357. ;;
  8358. esac
  8359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8360. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8361. if ${lt_cv_prog_compiler_pic+:} false; then :
  8362. $as_echo_n "(cached) " >&6
  8363. else
  8364. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8365. fi
  8366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8367. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8368. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8369. #
  8370. # Check to make sure the PIC flag actually works.
  8371. #
  8372. if test -n "$lt_prog_compiler_pic"; then
  8373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8374. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8375. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8376. $as_echo_n "(cached) " >&6
  8377. else
  8378. lt_cv_prog_compiler_pic_works=no
  8379. ac_outfile=conftest.$ac_objext
  8380. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8381. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8382. # Insert the option either (1) after the last *FLAGS variable, or
  8383. # (2) before a word containing "conftest.", or (3) at the end.
  8384. # Note that $ac_compile itself does not contain backslashes and begins
  8385. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8386. # The option is referenced via a variable to avoid confusing sed.
  8387. lt_compile=`echo "$ac_compile" | $SED \
  8388. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8389. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8390. -e 's:$: $lt_compiler_flag:'`
  8391. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8392. (eval "$lt_compile" 2>conftest.err)
  8393. ac_status=$?
  8394. cat conftest.err >&5
  8395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8396. if (exit $ac_status) && test -s "$ac_outfile"; then
  8397. # The compiler can only warn and ignore the option if not recognized
  8398. # So say no if there are warnings other than the usual output.
  8399. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8400. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8401. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8402. lt_cv_prog_compiler_pic_works=yes
  8403. fi
  8404. fi
  8405. $RM conftest*
  8406. fi
  8407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8408. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8409. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8410. case $lt_prog_compiler_pic in
  8411. "" | " "*) ;;
  8412. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8413. esac
  8414. else
  8415. lt_prog_compiler_pic=
  8416. lt_prog_compiler_can_build_shared=no
  8417. fi
  8418. fi
  8419. #
  8420. # Check to make sure the static flag actually works.
  8421. #
  8422. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8424. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8425. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8426. $as_echo_n "(cached) " >&6
  8427. else
  8428. lt_cv_prog_compiler_static_works=no
  8429. save_LDFLAGS="$LDFLAGS"
  8430. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8431. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8432. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8433. # The linker can only warn and ignore the option if not recognized
  8434. # So say no if there are warnings
  8435. if test -s conftest.err; then
  8436. # Append any errors to the config.log.
  8437. cat conftest.err 1>&5
  8438. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8439. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8440. if diff conftest.exp conftest.er2 >/dev/null; then
  8441. lt_cv_prog_compiler_static_works=yes
  8442. fi
  8443. else
  8444. lt_cv_prog_compiler_static_works=yes
  8445. fi
  8446. fi
  8447. $RM -r conftest*
  8448. LDFLAGS="$save_LDFLAGS"
  8449. fi
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8451. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8452. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8453. :
  8454. else
  8455. lt_prog_compiler_static=
  8456. fi
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8458. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8459. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8460. $as_echo_n "(cached) " >&6
  8461. else
  8462. lt_cv_prog_compiler_c_o=no
  8463. $RM -r conftest 2>/dev/null
  8464. mkdir conftest
  8465. cd conftest
  8466. mkdir out
  8467. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8468. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8469. # Insert the option either (1) after the last *FLAGS variable, or
  8470. # (2) before a word containing "conftest.", or (3) at the end.
  8471. # Note that $ac_compile itself does not contain backslashes and begins
  8472. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8473. lt_compile=`echo "$ac_compile" | $SED \
  8474. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8475. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8476. -e 's:$: $lt_compiler_flag:'`
  8477. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8478. (eval "$lt_compile" 2>out/conftest.err)
  8479. ac_status=$?
  8480. cat out/conftest.err >&5
  8481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8482. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8483. then
  8484. # The compiler can only warn and ignore the option if not recognized
  8485. # So say no if there are warnings
  8486. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8487. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8488. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8489. lt_cv_prog_compiler_c_o=yes
  8490. fi
  8491. fi
  8492. chmod u+w . 2>&5
  8493. $RM conftest*
  8494. # SGI C++ compiler will create directory out/ii_files/ for
  8495. # template instantiation
  8496. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8497. $RM out/* && rmdir out
  8498. cd ..
  8499. $RM -r conftest
  8500. $RM conftest*
  8501. fi
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8503. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8505. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8506. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8507. $as_echo_n "(cached) " >&6
  8508. else
  8509. lt_cv_prog_compiler_c_o=no
  8510. $RM -r conftest 2>/dev/null
  8511. mkdir conftest
  8512. cd conftest
  8513. mkdir out
  8514. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8515. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8516. # Insert the option either (1) after the last *FLAGS variable, or
  8517. # (2) before a word containing "conftest.", or (3) at the end.
  8518. # Note that $ac_compile itself does not contain backslashes and begins
  8519. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8520. lt_compile=`echo "$ac_compile" | $SED \
  8521. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8522. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8523. -e 's:$: $lt_compiler_flag:'`
  8524. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8525. (eval "$lt_compile" 2>out/conftest.err)
  8526. ac_status=$?
  8527. cat out/conftest.err >&5
  8528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8529. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8530. then
  8531. # The compiler can only warn and ignore the option if not recognized
  8532. # So say no if there are warnings
  8533. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8534. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8535. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8536. lt_cv_prog_compiler_c_o=yes
  8537. fi
  8538. fi
  8539. chmod u+w . 2>&5
  8540. $RM conftest*
  8541. # SGI C++ compiler will create directory out/ii_files/ for
  8542. # template instantiation
  8543. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8544. $RM out/* && rmdir out
  8545. cd ..
  8546. $RM -r conftest
  8547. $RM conftest*
  8548. fi
  8549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8550. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8551. hard_links="nottested"
  8552. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8553. # do not overwrite the value of need_locks provided by the user
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8555. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8556. hard_links=yes
  8557. $RM conftest*
  8558. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8559. touch conftest.a
  8560. ln conftest.a conftest.b 2>&5 || hard_links=no
  8561. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8563. $as_echo "$hard_links" >&6; }
  8564. if test "$hard_links" = no; then
  8565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8566. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8567. need_locks=warn
  8568. fi
  8569. else
  8570. need_locks=no
  8571. fi
  8572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8573. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8574. runpath_var=
  8575. allow_undefined_flag=
  8576. always_export_symbols=no
  8577. archive_cmds=
  8578. archive_expsym_cmds=
  8579. compiler_needs_object=no
  8580. enable_shared_with_static_runtimes=no
  8581. export_dynamic_flag_spec=
  8582. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8583. hardcode_automatic=no
  8584. hardcode_direct=no
  8585. hardcode_direct_absolute=no
  8586. hardcode_libdir_flag_spec=
  8587. hardcode_libdir_separator=
  8588. hardcode_minus_L=no
  8589. hardcode_shlibpath_var=unsupported
  8590. inherit_rpath=no
  8591. link_all_deplibs=unknown
  8592. module_cmds=
  8593. module_expsym_cmds=
  8594. old_archive_from_new_cmds=
  8595. old_archive_from_expsyms_cmds=
  8596. thread_safe_flag_spec=
  8597. whole_archive_flag_spec=
  8598. # include_expsyms should be a list of space-separated symbols to be *always*
  8599. # included in the symbol list
  8600. include_expsyms=
  8601. # exclude_expsyms can be an extended regexp of symbols to exclude
  8602. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8603. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8604. # as well as any symbol that contains `d'.
  8605. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8606. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8607. # platforms (ab)use it in PIC code, but their linkers get confused if
  8608. # the symbol is explicitly referenced. Since portable code cannot
  8609. # rely on this symbol name, it's probably fine to never include it in
  8610. # preloaded symbol tables.
  8611. # Exclude shared library initialization/finalization symbols.
  8612. extract_expsyms_cmds=
  8613. case $host_os in
  8614. cygwin* | mingw* | pw32* | cegcc*)
  8615. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8616. # When not using gcc, we currently assume that we are using
  8617. # Microsoft Visual C++.
  8618. if test "$GCC" != yes; then
  8619. with_gnu_ld=no
  8620. fi
  8621. ;;
  8622. interix*)
  8623. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8624. with_gnu_ld=yes
  8625. ;;
  8626. openbsd*)
  8627. with_gnu_ld=no
  8628. ;;
  8629. esac
  8630. ld_shlibs=yes
  8631. # On some targets, GNU ld is compatible enough with the native linker
  8632. # that we're better off using the native interface for both.
  8633. lt_use_gnu_ld_interface=no
  8634. if test "$with_gnu_ld" = yes; then
  8635. case $host_os in
  8636. aix*)
  8637. # The AIX port of GNU ld has always aspired to compatibility
  8638. # with the native linker. However, as the warning in the GNU ld
  8639. # block says, versions before 2.19.5* couldn't really create working
  8640. # shared libraries, regardless of the interface used.
  8641. case `$LD -v 2>&1` in
  8642. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8643. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8644. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8645. *)
  8646. lt_use_gnu_ld_interface=yes
  8647. ;;
  8648. esac
  8649. ;;
  8650. *)
  8651. lt_use_gnu_ld_interface=yes
  8652. ;;
  8653. esac
  8654. fi
  8655. if test "$lt_use_gnu_ld_interface" = yes; then
  8656. # If archive_cmds runs LD, not CC, wlarc should be empty
  8657. wlarc='${wl}'
  8658. # Set some defaults for GNU ld with shared library support. These
  8659. # are reset later if shared libraries are not supported. Putting them
  8660. # here allows them to be overridden if necessary.
  8661. runpath_var=LD_RUN_PATH
  8662. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8663. export_dynamic_flag_spec='${wl}--export-dynamic'
  8664. # ancient GNU ld didn't support --whole-archive et. al.
  8665. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8666. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8667. else
  8668. whole_archive_flag_spec=
  8669. fi
  8670. supports_anon_versioning=no
  8671. case `$LD -v 2>&1` in
  8672. *GNU\ gold*) supports_anon_versioning=yes ;;
  8673. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8674. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8675. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8676. *\ 2.11.*) ;; # other 2.11 versions
  8677. *) supports_anon_versioning=yes ;;
  8678. esac
  8679. # See if GNU ld supports shared libraries.
  8680. case $host_os in
  8681. aix[3-9]*)
  8682. # On AIX/PPC, the GNU linker is very broken
  8683. if test "$host_cpu" != ia64; then
  8684. ld_shlibs=no
  8685. cat <<_LT_EOF 1>&2
  8686. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8687. *** to be unable to reliably create shared libraries on AIX.
  8688. *** Therefore, libtool is disabling shared libraries support. If you
  8689. *** really care for shared libraries, you may want to install binutils
  8690. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8691. *** You will then need to restart the configuration process.
  8692. _LT_EOF
  8693. fi
  8694. ;;
  8695. amigaos*)
  8696. case $host_cpu in
  8697. powerpc)
  8698. # see comment about AmigaOS4 .so support
  8699. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8700. archive_expsym_cmds=''
  8701. ;;
  8702. m68k)
  8703. 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)'
  8704. hardcode_libdir_flag_spec='-L$libdir'
  8705. hardcode_minus_L=yes
  8706. ;;
  8707. esac
  8708. ;;
  8709. beos*)
  8710. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8711. allow_undefined_flag=unsupported
  8712. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8713. # support --undefined. This deserves some investigation. FIXME
  8714. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8715. else
  8716. ld_shlibs=no
  8717. fi
  8718. ;;
  8719. cygwin* | mingw* | pw32* | cegcc*)
  8720. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8721. # as there is no search path for DLLs.
  8722. hardcode_libdir_flag_spec='-L$libdir'
  8723. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8724. allow_undefined_flag=unsupported
  8725. always_export_symbols=no
  8726. enable_shared_with_static_runtimes=yes
  8727. 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'
  8728. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8729. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8730. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8731. # If the export-symbols file already is a .def file (1st line
  8732. # is EXPORTS), use it as is; otherwise, prepend...
  8733. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8734. cp $export_symbols $output_objdir/$soname.def;
  8735. else
  8736. echo EXPORTS > $output_objdir/$soname.def;
  8737. cat $export_symbols >> $output_objdir/$soname.def;
  8738. fi~
  8739. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8740. else
  8741. ld_shlibs=no
  8742. fi
  8743. ;;
  8744. haiku*)
  8745. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8746. link_all_deplibs=yes
  8747. ;;
  8748. interix[3-9]*)
  8749. hardcode_direct=no
  8750. hardcode_shlibpath_var=no
  8751. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8752. export_dynamic_flag_spec='${wl}-E'
  8753. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8754. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8755. # default) and relocated if they conflict, which is a slow very memory
  8756. # consuming and fragmenting process. To avoid this, we pick a random,
  8757. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8758. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8759. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8760. 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'
  8761. ;;
  8762. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8763. tmp_diet=no
  8764. if test "$host_os" = linux-dietlibc; then
  8765. case $cc_basename in
  8766. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8767. esac
  8768. fi
  8769. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8770. && test "$tmp_diet" = no
  8771. then
  8772. tmp_addflag=' $pic_flag'
  8773. tmp_sharedflag='-shared'
  8774. case $cc_basename,$host_cpu in
  8775. pgcc*) # Portland Group C compiler
  8776. 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'
  8777. tmp_addflag=' $pic_flag'
  8778. ;;
  8779. pgf77* | pgf90* | pgf95* | pgfortran*)
  8780. # Portland Group f77 and f90 compilers
  8781. 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'
  8782. tmp_addflag=' $pic_flag -Mnomain' ;;
  8783. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8784. tmp_addflag=' -i_dynamic' ;;
  8785. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8786. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8787. ifc* | ifort*) # Intel Fortran compiler
  8788. tmp_addflag=' -nofor_main' ;;
  8789. lf95*) # Lahey Fortran 8.1
  8790. whole_archive_flag_spec=
  8791. tmp_sharedflag='--shared' ;;
  8792. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8793. tmp_sharedflag='-qmkshrobj'
  8794. tmp_addflag= ;;
  8795. nvcc*) # Cuda Compiler Driver 2.2
  8796. 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'
  8797. compiler_needs_object=yes
  8798. ;;
  8799. esac
  8800. case `$CC -V 2>&1 | sed 5q` in
  8801. *Sun\ C*) # Sun C 5.9
  8802. 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'
  8803. compiler_needs_object=yes
  8804. tmp_sharedflag='-G' ;;
  8805. *Sun\ F*) # Sun Fortran 8.3
  8806. tmp_sharedflag='-G' ;;
  8807. esac
  8808. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8809. if test "x$supports_anon_versioning" = xyes; then
  8810. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8811. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8812. echo "local: *; };" >> $output_objdir/$libname.ver~
  8813. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8814. fi
  8815. case $cc_basename in
  8816. xlf* | bgf* | bgxlf* | mpixlf*)
  8817. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8818. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8819. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8820. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8821. if test "x$supports_anon_versioning" = xyes; then
  8822. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8823. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8824. echo "local: *; };" >> $output_objdir/$libname.ver~
  8825. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8826. fi
  8827. ;;
  8828. esac
  8829. else
  8830. ld_shlibs=no
  8831. fi
  8832. ;;
  8833. netbsd*)
  8834. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8835. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8836. wlarc=
  8837. else
  8838. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8839. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8840. fi
  8841. ;;
  8842. solaris*)
  8843. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8844. ld_shlibs=no
  8845. cat <<_LT_EOF 1>&2
  8846. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8847. *** create shared libraries on Solaris systems. Therefore, libtool
  8848. *** is disabling shared libraries support. We urge you to upgrade GNU
  8849. *** binutils to release 2.9.1 or newer. Another option is to modify
  8850. *** your PATH or compiler configuration so that the native linker is
  8851. *** used, and then restart.
  8852. _LT_EOF
  8853. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8854. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8855. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8856. else
  8857. ld_shlibs=no
  8858. fi
  8859. ;;
  8860. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8861. case `$LD -v 2>&1` in
  8862. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8863. ld_shlibs=no
  8864. cat <<_LT_EOF 1>&2
  8865. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8866. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8867. *** is disabling shared libraries support. We urge you to upgrade GNU
  8868. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8869. *** your PATH or compiler configuration so that the native linker is
  8870. *** used, and then restart.
  8871. _LT_EOF
  8872. ;;
  8873. *)
  8874. # For security reasons, it is highly recommended that you always
  8875. # use absolute paths for naming shared libraries, and exclude the
  8876. # DT_RUNPATH tag from executables and libraries. But doing so
  8877. # requires that you compile everything twice, which is a pain.
  8878. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8879. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8880. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8881. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8882. else
  8883. ld_shlibs=no
  8884. fi
  8885. ;;
  8886. esac
  8887. ;;
  8888. sunos4*)
  8889. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8890. wlarc=
  8891. hardcode_direct=yes
  8892. hardcode_shlibpath_var=no
  8893. ;;
  8894. *)
  8895. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8896. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8897. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8898. else
  8899. ld_shlibs=no
  8900. fi
  8901. ;;
  8902. esac
  8903. if test "$ld_shlibs" = no; then
  8904. runpath_var=
  8905. hardcode_libdir_flag_spec=
  8906. export_dynamic_flag_spec=
  8907. whole_archive_flag_spec=
  8908. fi
  8909. else
  8910. # PORTME fill in a description of your system's linker (not GNU ld)
  8911. case $host_os in
  8912. aix3*)
  8913. allow_undefined_flag=unsupported
  8914. always_export_symbols=yes
  8915. 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'
  8916. # Note: this linker hardcodes the directories in LIBPATH if there
  8917. # are no directories specified by -L.
  8918. hardcode_minus_L=yes
  8919. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8920. # Neither direct hardcoding nor static linking is supported with a
  8921. # broken collect2.
  8922. hardcode_direct=unsupported
  8923. fi
  8924. ;;
  8925. aix[4-9]*)
  8926. if test "$host_cpu" = ia64; then
  8927. # On IA64, the linker does run time linking by default, so we don't
  8928. # have to do anything special.
  8929. aix_use_runtimelinking=no
  8930. exp_sym_flag='-Bexport'
  8931. no_entry_flag=""
  8932. else
  8933. # If we're using GNU nm, then we don't want the "-C" option.
  8934. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8935. # Also, AIX nm treats weak defined symbols like other global
  8936. # defined symbols, whereas GNU nm marks them as "W".
  8937. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8938. 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'
  8939. else
  8940. 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'
  8941. fi
  8942. aix_use_runtimelinking=no
  8943. # Test if we are trying to use run time linking or normal
  8944. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8945. # need to do runtime linking.
  8946. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8947. for ld_flag in $LDFLAGS; do
  8948. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8949. aix_use_runtimelinking=yes
  8950. break
  8951. fi
  8952. done
  8953. ;;
  8954. esac
  8955. exp_sym_flag='-bexport'
  8956. no_entry_flag='-bnoentry'
  8957. fi
  8958. # When large executables or shared objects are built, AIX ld can
  8959. # have problems creating the table of contents. If linking a library
  8960. # or program results in "error TOC overflow" add -mminimal-toc to
  8961. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8962. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8963. archive_cmds=''
  8964. hardcode_direct=yes
  8965. hardcode_direct_absolute=yes
  8966. hardcode_libdir_separator=':'
  8967. link_all_deplibs=yes
  8968. file_list_spec='${wl}-f,'
  8969. if test "$GCC" = yes; then
  8970. case $host_os in aix4.[012]|aix4.[012].*)
  8971. # We only want to do this on AIX 4.2 and lower, the check
  8972. # below for broken collect2 doesn't work under 4.3+
  8973. collect2name=`${CC} -print-prog-name=collect2`
  8974. if test -f "$collect2name" &&
  8975. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8976. then
  8977. # We have reworked collect2
  8978. :
  8979. else
  8980. # We have old collect2
  8981. hardcode_direct=unsupported
  8982. # It fails to find uninstalled libraries when the uninstalled
  8983. # path is not listed in the libpath. Setting hardcode_minus_L
  8984. # to unsupported forces relinking
  8985. hardcode_minus_L=yes
  8986. hardcode_libdir_flag_spec='-L$libdir'
  8987. hardcode_libdir_separator=
  8988. fi
  8989. ;;
  8990. esac
  8991. shared_flag='-shared'
  8992. if test "$aix_use_runtimelinking" = yes; then
  8993. shared_flag="$shared_flag "'${wl}-G'
  8994. fi
  8995. else
  8996. # not using gcc
  8997. if test "$host_cpu" = ia64; then
  8998. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8999. # chokes on -Wl,-G. The following line is correct:
  9000. shared_flag='-G'
  9001. else
  9002. if test "$aix_use_runtimelinking" = yes; then
  9003. shared_flag='${wl}-G'
  9004. else
  9005. shared_flag='${wl}-bM:SRE'
  9006. fi
  9007. fi
  9008. fi
  9009. export_dynamic_flag_spec='${wl}-bexpall'
  9010. # It seems that -bexpall does not export symbols beginning with
  9011. # underscore (_), so it is better to generate a list of symbols to export.
  9012. always_export_symbols=yes
  9013. if test "$aix_use_runtimelinking" = yes; then
  9014. # Warning - without using the other runtime loading flags (-brtl),
  9015. # -berok will link without error, but may produce a broken library.
  9016. allow_undefined_flag='-berok'
  9017. # Determine the default libpath from the value encoded in an
  9018. # empty executable.
  9019. if test "${lt_cv_aix_libpath+set}" = set; then
  9020. aix_libpath=$lt_cv_aix_libpath
  9021. else
  9022. if ${lt_cv_aix_libpath_+:} false; then :
  9023. $as_echo_n "(cached) " >&6
  9024. else
  9025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9026. /* end confdefs.h. */
  9027. int
  9028. main ()
  9029. {
  9030. ;
  9031. return 0;
  9032. }
  9033. _ACEOF
  9034. if ac_fn_c_try_link "$LINENO"; then :
  9035. lt_aix_libpath_sed='
  9036. /Import File Strings/,/^$/ {
  9037. /^0/ {
  9038. s/^0 *\([^ ]*\) *$/\1/
  9039. p
  9040. }
  9041. }'
  9042. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9043. # Check for a 64-bit object if we didn't find anything.
  9044. if test -z "$lt_cv_aix_libpath_"; then
  9045. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9046. fi
  9047. fi
  9048. rm -f core conftest.err conftest.$ac_objext \
  9049. conftest$ac_exeext conftest.$ac_ext
  9050. if test -z "$lt_cv_aix_libpath_"; then
  9051. lt_cv_aix_libpath_="/usr/lib:/lib"
  9052. fi
  9053. fi
  9054. aix_libpath=$lt_cv_aix_libpath_
  9055. fi
  9056. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9057. 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"
  9058. else
  9059. if test "$host_cpu" = ia64; then
  9060. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9061. allow_undefined_flag="-z nodefs"
  9062. 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"
  9063. else
  9064. # Determine the default libpath from the value encoded in an
  9065. # empty executable.
  9066. if test "${lt_cv_aix_libpath+set}" = set; then
  9067. aix_libpath=$lt_cv_aix_libpath
  9068. else
  9069. if ${lt_cv_aix_libpath_+:} false; then :
  9070. $as_echo_n "(cached) " >&6
  9071. else
  9072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9073. /* end confdefs.h. */
  9074. int
  9075. main ()
  9076. {
  9077. ;
  9078. return 0;
  9079. }
  9080. _ACEOF
  9081. if ac_fn_c_try_link "$LINENO"; then :
  9082. lt_aix_libpath_sed='
  9083. /Import File Strings/,/^$/ {
  9084. /^0/ {
  9085. s/^0 *\([^ ]*\) *$/\1/
  9086. p
  9087. }
  9088. }'
  9089. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9090. # Check for a 64-bit object if we didn't find anything.
  9091. if test -z "$lt_cv_aix_libpath_"; then
  9092. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9093. fi
  9094. fi
  9095. rm -f core conftest.err conftest.$ac_objext \
  9096. conftest$ac_exeext conftest.$ac_ext
  9097. if test -z "$lt_cv_aix_libpath_"; then
  9098. lt_cv_aix_libpath_="/usr/lib:/lib"
  9099. fi
  9100. fi
  9101. aix_libpath=$lt_cv_aix_libpath_
  9102. fi
  9103. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9104. # Warning - without using the other run time loading flags,
  9105. # -berok will link without error, but may produce a broken library.
  9106. no_undefined_flag=' ${wl}-bernotok'
  9107. allow_undefined_flag=' ${wl}-berok'
  9108. if test "$with_gnu_ld" = yes; then
  9109. # We only use this code for GNU lds that support --whole-archive.
  9110. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9111. else
  9112. # Exported symbols can be pulled into shared objects from archives
  9113. whole_archive_flag_spec='$convenience'
  9114. fi
  9115. archive_cmds_need_lc=yes
  9116. # This is similar to how AIX traditionally builds its shared libraries.
  9117. 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'
  9118. fi
  9119. fi
  9120. ;;
  9121. amigaos*)
  9122. case $host_cpu in
  9123. powerpc)
  9124. # see comment about AmigaOS4 .so support
  9125. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9126. archive_expsym_cmds=''
  9127. ;;
  9128. m68k)
  9129. 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)'
  9130. hardcode_libdir_flag_spec='-L$libdir'
  9131. hardcode_minus_L=yes
  9132. ;;
  9133. esac
  9134. ;;
  9135. bsdi[45]*)
  9136. export_dynamic_flag_spec=-rdynamic
  9137. ;;
  9138. cygwin* | mingw* | pw32* | cegcc*)
  9139. # When not using gcc, we currently assume that we are using
  9140. # Microsoft Visual C++.
  9141. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9142. # no search path for DLLs.
  9143. case $cc_basename in
  9144. cl*)
  9145. # Native MSVC
  9146. hardcode_libdir_flag_spec=' '
  9147. allow_undefined_flag=unsupported
  9148. always_export_symbols=yes
  9149. file_list_spec='@'
  9150. # Tell ltmain to make .lib files, not .a files.
  9151. libext=lib
  9152. # Tell ltmain to make .dll files, not .so files.
  9153. shrext_cmds=".dll"
  9154. # FIXME: Setting linknames here is a bad hack.
  9155. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9156. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9157. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9158. else
  9159. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9160. fi~
  9161. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9162. linknames='
  9163. # The linker will not automatically build a static lib if we build a DLL.
  9164. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9165. enable_shared_with_static_runtimes=yes
  9166. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9167. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9168. # Don't use ranlib
  9169. old_postinstall_cmds='chmod 644 $oldlib'
  9170. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9171. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9172. case $lt_outputfile in
  9173. *.exe|*.EXE) ;;
  9174. *)
  9175. lt_outputfile="$lt_outputfile.exe"
  9176. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9177. ;;
  9178. esac~
  9179. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9180. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9181. $RM "$lt_outputfile.manifest";
  9182. fi'
  9183. ;;
  9184. *)
  9185. # Assume MSVC wrapper
  9186. hardcode_libdir_flag_spec=' '
  9187. allow_undefined_flag=unsupported
  9188. # Tell ltmain to make .lib files, not .a files.
  9189. libext=lib
  9190. # Tell ltmain to make .dll files, not .so files.
  9191. shrext_cmds=".dll"
  9192. # FIXME: Setting linknames here is a bad hack.
  9193. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9194. # The linker will automatically build a .lib file if we build a DLL.
  9195. old_archive_from_new_cmds='true'
  9196. # FIXME: Should let the user specify the lib program.
  9197. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9198. enable_shared_with_static_runtimes=yes
  9199. ;;
  9200. esac
  9201. ;;
  9202. darwin* | rhapsody*)
  9203. archive_cmds_need_lc=no
  9204. hardcode_direct=no
  9205. hardcode_automatic=yes
  9206. hardcode_shlibpath_var=unsupported
  9207. if test "$lt_cv_ld_force_load" = "yes"; then
  9208. 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\"`'
  9209. else
  9210. whole_archive_flag_spec=''
  9211. fi
  9212. link_all_deplibs=yes
  9213. allow_undefined_flag="$_lt_dar_allow_undefined"
  9214. case $cc_basename in
  9215. ifort*) _lt_dar_can_shared=yes ;;
  9216. *) _lt_dar_can_shared=$GCC ;;
  9217. esac
  9218. if test "$_lt_dar_can_shared" = "yes"; then
  9219. output_verbose_link_cmd=func_echo_all
  9220. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9221. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9222. 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}"
  9223. 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}"
  9224. else
  9225. ld_shlibs=no
  9226. fi
  9227. ;;
  9228. dgux*)
  9229. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9230. hardcode_libdir_flag_spec='-L$libdir'
  9231. hardcode_shlibpath_var=no
  9232. ;;
  9233. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9234. # support. Future versions do this automatically, but an explicit c++rt0.o
  9235. # does not break anything, and helps significantly (at the cost of a little
  9236. # extra space).
  9237. freebsd2.2*)
  9238. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9239. hardcode_libdir_flag_spec='-R$libdir'
  9240. hardcode_direct=yes
  9241. hardcode_shlibpath_var=no
  9242. ;;
  9243. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9244. freebsd2.*)
  9245. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9246. hardcode_direct=yes
  9247. hardcode_minus_L=yes
  9248. hardcode_shlibpath_var=no
  9249. ;;
  9250. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9251. freebsd* | dragonfly*)
  9252. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9253. hardcode_libdir_flag_spec='-R$libdir'
  9254. hardcode_direct=yes
  9255. hardcode_shlibpath_var=no
  9256. ;;
  9257. hpux9*)
  9258. if test "$GCC" = yes; then
  9259. 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'
  9260. else
  9261. 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'
  9262. fi
  9263. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9264. hardcode_libdir_separator=:
  9265. hardcode_direct=yes
  9266. # hardcode_minus_L: Not really in the search PATH,
  9267. # but as the default location of the library.
  9268. hardcode_minus_L=yes
  9269. export_dynamic_flag_spec='${wl}-E'
  9270. ;;
  9271. hpux10*)
  9272. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9273. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9274. else
  9275. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9276. fi
  9277. if test "$with_gnu_ld" = no; then
  9278. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9279. hardcode_libdir_separator=:
  9280. hardcode_direct=yes
  9281. hardcode_direct_absolute=yes
  9282. export_dynamic_flag_spec='${wl}-E'
  9283. # hardcode_minus_L: Not really in the search PATH,
  9284. # but as the default location of the library.
  9285. hardcode_minus_L=yes
  9286. fi
  9287. ;;
  9288. hpux11*)
  9289. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9290. case $host_cpu in
  9291. hppa*64*)
  9292. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9293. ;;
  9294. ia64*)
  9295. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9296. ;;
  9297. *)
  9298. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9299. ;;
  9300. esac
  9301. else
  9302. case $host_cpu in
  9303. hppa*64*)
  9304. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9305. ;;
  9306. ia64*)
  9307. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9308. ;;
  9309. *)
  9310. # Older versions of the 11.00 compiler do not understand -b yet
  9311. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9313. $as_echo_n "checking if $CC understands -b... " >&6; }
  9314. if ${lt_cv_prog_compiler__b+:} false; then :
  9315. $as_echo_n "(cached) " >&6
  9316. else
  9317. lt_cv_prog_compiler__b=no
  9318. save_LDFLAGS="$LDFLAGS"
  9319. LDFLAGS="$LDFLAGS -b"
  9320. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9321. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9322. # The linker can only warn and ignore the option if not recognized
  9323. # So say no if there are warnings
  9324. if test -s conftest.err; then
  9325. # Append any errors to the config.log.
  9326. cat conftest.err 1>&5
  9327. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9328. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9329. if diff conftest.exp conftest.er2 >/dev/null; then
  9330. lt_cv_prog_compiler__b=yes
  9331. fi
  9332. else
  9333. lt_cv_prog_compiler__b=yes
  9334. fi
  9335. fi
  9336. $RM -r conftest*
  9337. LDFLAGS="$save_LDFLAGS"
  9338. fi
  9339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9340. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9341. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9342. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9343. else
  9344. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9345. fi
  9346. ;;
  9347. esac
  9348. fi
  9349. if test "$with_gnu_ld" = no; then
  9350. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9351. hardcode_libdir_separator=:
  9352. case $host_cpu in
  9353. hppa*64*|ia64*)
  9354. hardcode_direct=no
  9355. hardcode_shlibpath_var=no
  9356. ;;
  9357. *)
  9358. hardcode_direct=yes
  9359. hardcode_direct_absolute=yes
  9360. export_dynamic_flag_spec='${wl}-E'
  9361. # hardcode_minus_L: Not really in the search PATH,
  9362. # but as the default location of the library.
  9363. hardcode_minus_L=yes
  9364. ;;
  9365. esac
  9366. fi
  9367. ;;
  9368. irix5* | irix6* | nonstopux*)
  9369. if test "$GCC" = yes; then
  9370. 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'
  9371. # Try to use the -exported_symbol ld option, if it does not
  9372. # work, assume that -exports_file does not work either and
  9373. # implicitly export all symbols.
  9374. # This should be the same for all languages, so no per-tag cache variable.
  9375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9376. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9377. if ${lt_cv_irix_exported_symbol+:} false; then :
  9378. $as_echo_n "(cached) " >&6
  9379. else
  9380. save_LDFLAGS="$LDFLAGS"
  9381. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9383. /* end confdefs.h. */
  9384. int foo (void) { return 0; }
  9385. _ACEOF
  9386. if ac_fn_c_try_link "$LINENO"; then :
  9387. lt_cv_irix_exported_symbol=yes
  9388. else
  9389. lt_cv_irix_exported_symbol=no
  9390. fi
  9391. rm -f core conftest.err conftest.$ac_objext \
  9392. conftest$ac_exeext conftest.$ac_ext
  9393. LDFLAGS="$save_LDFLAGS"
  9394. fi
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9396. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9397. if test "$lt_cv_irix_exported_symbol" = yes; then
  9398. 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'
  9399. fi
  9400. else
  9401. 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'
  9402. 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'
  9403. fi
  9404. archive_cmds_need_lc='no'
  9405. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9406. hardcode_libdir_separator=:
  9407. inherit_rpath=yes
  9408. link_all_deplibs=yes
  9409. ;;
  9410. netbsd*)
  9411. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9412. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9413. else
  9414. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9415. fi
  9416. hardcode_libdir_flag_spec='-R$libdir'
  9417. hardcode_direct=yes
  9418. hardcode_shlibpath_var=no
  9419. ;;
  9420. newsos6)
  9421. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9422. hardcode_direct=yes
  9423. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9424. hardcode_libdir_separator=:
  9425. hardcode_shlibpath_var=no
  9426. ;;
  9427. *nto* | *qnx*)
  9428. ;;
  9429. openbsd*)
  9430. if test -f /usr/libexec/ld.so; then
  9431. hardcode_direct=yes
  9432. hardcode_shlibpath_var=no
  9433. hardcode_direct_absolute=yes
  9434. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9435. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9436. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9437. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9438. export_dynamic_flag_spec='${wl}-E'
  9439. else
  9440. case $host_os in
  9441. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9442. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9443. hardcode_libdir_flag_spec='-R$libdir'
  9444. ;;
  9445. *)
  9446. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9447. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9448. ;;
  9449. esac
  9450. fi
  9451. else
  9452. ld_shlibs=no
  9453. fi
  9454. ;;
  9455. os2*)
  9456. hardcode_libdir_flag_spec='-L$libdir'
  9457. hardcode_minus_L=yes
  9458. allow_undefined_flag=unsupported
  9459. 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'
  9460. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9461. ;;
  9462. osf3*)
  9463. if test "$GCC" = yes; then
  9464. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9465. 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'
  9466. else
  9467. allow_undefined_flag=' -expect_unresolved \*'
  9468. 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'
  9469. fi
  9470. archive_cmds_need_lc='no'
  9471. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9472. hardcode_libdir_separator=:
  9473. ;;
  9474. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9475. if test "$GCC" = yes; then
  9476. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9477. 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'
  9478. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9479. else
  9480. allow_undefined_flag=' -expect_unresolved \*'
  9481. 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'
  9482. 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~
  9483. $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'
  9484. # Both c and cxx compiler support -rpath directly
  9485. hardcode_libdir_flag_spec='-rpath $libdir'
  9486. fi
  9487. archive_cmds_need_lc='no'
  9488. hardcode_libdir_separator=:
  9489. ;;
  9490. solaris*)
  9491. no_undefined_flag=' -z defs'
  9492. if test "$GCC" = yes; then
  9493. wlarc='${wl}'
  9494. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9495. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9496. $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'
  9497. else
  9498. case `$CC -V 2>&1` in
  9499. *"Compilers 5.0"*)
  9500. wlarc=''
  9501. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9502. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9503. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9504. ;;
  9505. *)
  9506. wlarc='${wl}'
  9507. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9508. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9509. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9510. ;;
  9511. esac
  9512. fi
  9513. hardcode_libdir_flag_spec='-R$libdir'
  9514. hardcode_shlibpath_var=no
  9515. case $host_os in
  9516. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9517. *)
  9518. # The compiler driver will combine and reorder linker options,
  9519. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9520. # but is careful enough not to reorder.
  9521. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9522. if test "$GCC" = yes; then
  9523. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9524. else
  9525. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9526. fi
  9527. ;;
  9528. esac
  9529. link_all_deplibs=yes
  9530. ;;
  9531. sunos4*)
  9532. if test "x$host_vendor" = xsequent; then
  9533. # Use $CC to link under sequent, because it throws in some extra .o
  9534. # files that make .init and .fini sections work.
  9535. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9536. else
  9537. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9538. fi
  9539. hardcode_libdir_flag_spec='-L$libdir'
  9540. hardcode_direct=yes
  9541. hardcode_minus_L=yes
  9542. hardcode_shlibpath_var=no
  9543. ;;
  9544. sysv4)
  9545. case $host_vendor in
  9546. sni)
  9547. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9548. hardcode_direct=yes # is this really true???
  9549. ;;
  9550. siemens)
  9551. ## LD is ld it makes a PLAMLIB
  9552. ## CC just makes a GrossModule.
  9553. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9554. reload_cmds='$CC -r -o $output$reload_objs'
  9555. hardcode_direct=no
  9556. ;;
  9557. motorola)
  9558. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9559. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9560. ;;
  9561. esac
  9562. runpath_var='LD_RUN_PATH'
  9563. hardcode_shlibpath_var=no
  9564. ;;
  9565. sysv4.3*)
  9566. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9567. hardcode_shlibpath_var=no
  9568. export_dynamic_flag_spec='-Bexport'
  9569. ;;
  9570. sysv4*MP*)
  9571. if test -d /usr/nec; then
  9572. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9573. hardcode_shlibpath_var=no
  9574. runpath_var=LD_RUN_PATH
  9575. hardcode_runpath_var=yes
  9576. ld_shlibs=yes
  9577. fi
  9578. ;;
  9579. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9580. no_undefined_flag='${wl}-z,text'
  9581. archive_cmds_need_lc=no
  9582. hardcode_shlibpath_var=no
  9583. runpath_var='LD_RUN_PATH'
  9584. if test "$GCC" = yes; then
  9585. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9586. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9587. else
  9588. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9589. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9590. fi
  9591. ;;
  9592. sysv5* | sco3.2v5* | sco5v6*)
  9593. # Note: We can NOT use -z defs as we might desire, because we do not
  9594. # link with -lc, and that would cause any symbols used from libc to
  9595. # always be unresolved, which means just about no library would
  9596. # ever link correctly. If we're not using GNU ld we use -z text
  9597. # though, which does catch some bad symbols but isn't as heavy-handed
  9598. # as -z defs.
  9599. no_undefined_flag='${wl}-z,text'
  9600. allow_undefined_flag='${wl}-z,nodefs'
  9601. archive_cmds_need_lc=no
  9602. hardcode_shlibpath_var=no
  9603. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9604. hardcode_libdir_separator=':'
  9605. link_all_deplibs=yes
  9606. export_dynamic_flag_spec='${wl}-Bexport'
  9607. runpath_var='LD_RUN_PATH'
  9608. if test "$GCC" = yes; then
  9609. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9610. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9611. else
  9612. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9613. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9614. fi
  9615. ;;
  9616. uts4*)
  9617. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9618. hardcode_libdir_flag_spec='-L$libdir'
  9619. hardcode_shlibpath_var=no
  9620. ;;
  9621. *)
  9622. ld_shlibs=no
  9623. ;;
  9624. esac
  9625. if test x$host_vendor = xsni; then
  9626. case $host in
  9627. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9628. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9629. ;;
  9630. esac
  9631. fi
  9632. fi
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9634. $as_echo "$ld_shlibs" >&6; }
  9635. test "$ld_shlibs" = no && can_build_shared=no
  9636. with_gnu_ld=$with_gnu_ld
  9637. #
  9638. # Do we need to explicitly link libc?
  9639. #
  9640. case "x$archive_cmds_need_lc" in
  9641. x|xyes)
  9642. # Assume -lc should be added
  9643. archive_cmds_need_lc=yes
  9644. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9645. case $archive_cmds in
  9646. *'~'*)
  9647. # FIXME: we may have to deal with multi-command sequences.
  9648. ;;
  9649. '$CC '*)
  9650. # Test whether the compiler implicitly links with -lc since on some
  9651. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9652. # to ld, don't add -lc before -lgcc.
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9654. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9655. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9656. $as_echo_n "(cached) " >&6
  9657. else
  9658. $RM conftest*
  9659. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9660. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9661. (eval $ac_compile) 2>&5
  9662. ac_status=$?
  9663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9664. test $ac_status = 0; } 2>conftest.err; then
  9665. soname=conftest
  9666. lib=conftest
  9667. libobjs=conftest.$ac_objext
  9668. deplibs=
  9669. wl=$lt_prog_compiler_wl
  9670. pic_flag=$lt_prog_compiler_pic
  9671. compiler_flags=-v
  9672. linker_flags=-v
  9673. verstring=
  9674. output_objdir=.
  9675. libname=conftest
  9676. lt_save_allow_undefined_flag=$allow_undefined_flag
  9677. allow_undefined_flag=
  9678. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9679. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9680. ac_status=$?
  9681. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9682. test $ac_status = 0; }
  9683. then
  9684. lt_cv_archive_cmds_need_lc=no
  9685. else
  9686. lt_cv_archive_cmds_need_lc=yes
  9687. fi
  9688. allow_undefined_flag=$lt_save_allow_undefined_flag
  9689. else
  9690. cat conftest.err 1>&5
  9691. fi
  9692. $RM conftest*
  9693. fi
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9695. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9696. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9697. ;;
  9698. esac
  9699. fi
  9700. ;;
  9701. esac
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9703. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9704. if test "$GCC" = yes; then
  9705. case $host_os in
  9706. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9707. *) lt_awk_arg="/^libraries:/" ;;
  9708. esac
  9709. case $host_os in
  9710. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9711. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9712. esac
  9713. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9714. case $lt_search_path_spec in
  9715. *\;*)
  9716. # if the path contains ";" then we assume it to be the separator
  9717. # otherwise default to the standard path separator (i.e. ":") - it is
  9718. # assumed that no part of a normal pathname contains ";" but that should
  9719. # okay in the real world where ";" in dirpaths is itself problematic.
  9720. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9721. ;;
  9722. *)
  9723. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9724. ;;
  9725. esac
  9726. # Ok, now we have the path, separated by spaces, we can step through it
  9727. # and add multilib dir if necessary.
  9728. lt_tmp_lt_search_path_spec=
  9729. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9730. for lt_sys_path in $lt_search_path_spec; do
  9731. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9732. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9733. else
  9734. test -d "$lt_sys_path" && \
  9735. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9736. fi
  9737. done
  9738. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9739. BEGIN {RS=" "; FS="/|\n";} {
  9740. lt_foo="";
  9741. lt_count=0;
  9742. for (lt_i = NF; lt_i > 0; lt_i--) {
  9743. if ($lt_i != "" && $lt_i != ".") {
  9744. if ($lt_i == "..") {
  9745. lt_count++;
  9746. } else {
  9747. if (lt_count == 0) {
  9748. lt_foo="/" $lt_i lt_foo;
  9749. } else {
  9750. lt_count--;
  9751. }
  9752. }
  9753. }
  9754. }
  9755. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9756. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9757. }'`
  9758. # AWK program above erroneously prepends '/' to C:/dos/paths
  9759. # for these hosts.
  9760. case $host_os in
  9761. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9762. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9763. esac
  9764. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9765. else
  9766. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9767. fi
  9768. library_names_spec=
  9769. libname_spec='lib$name'
  9770. soname_spec=
  9771. shrext_cmds=".so"
  9772. postinstall_cmds=
  9773. postuninstall_cmds=
  9774. finish_cmds=
  9775. finish_eval=
  9776. shlibpath_var=
  9777. shlibpath_overrides_runpath=unknown
  9778. version_type=none
  9779. dynamic_linker="$host_os ld.so"
  9780. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9781. need_lib_prefix=unknown
  9782. hardcode_into_libs=no
  9783. # when you set need_version to no, make sure it does not cause -set_version
  9784. # flags to be left without arguments
  9785. need_version=unknown
  9786. case $host_os in
  9787. aix3*)
  9788. version_type=linux # correct to gnu/linux during the next big refactor
  9789. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9790. shlibpath_var=LIBPATH
  9791. # AIX 3 has no versioning support, so we append a major version to the name.
  9792. soname_spec='${libname}${release}${shared_ext}$major'
  9793. ;;
  9794. aix[4-9]*)
  9795. version_type=linux # correct to gnu/linux during the next big refactor
  9796. need_lib_prefix=no
  9797. need_version=no
  9798. hardcode_into_libs=yes
  9799. if test "$host_cpu" = ia64; then
  9800. # AIX 5 supports IA64
  9801. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9802. shlibpath_var=LD_LIBRARY_PATH
  9803. else
  9804. # With GCC up to 2.95.x, collect2 would create an import file
  9805. # for dependence libraries. The import file would start with
  9806. # the line `#! .'. This would cause the generated library to
  9807. # depend on `.', always an invalid library. This was fixed in
  9808. # development snapshots of GCC prior to 3.0.
  9809. case $host_os in
  9810. aix4 | aix4.[01] | aix4.[01].*)
  9811. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9812. echo ' yes '
  9813. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9814. :
  9815. else
  9816. can_build_shared=no
  9817. fi
  9818. ;;
  9819. esac
  9820. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9821. # soname into executable. Probably we can add versioning support to
  9822. # collect2, so additional links can be useful in future.
  9823. if test "$aix_use_runtimelinking" = yes; then
  9824. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9825. # instead of lib<name>.a to let people know that these are not
  9826. # typical AIX shared libraries.
  9827. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9828. else
  9829. # We preserve .a as extension for shared libraries through AIX4.2
  9830. # and later when we are not doing run time linking.
  9831. library_names_spec='${libname}${release}.a $libname.a'
  9832. soname_spec='${libname}${release}${shared_ext}$major'
  9833. fi
  9834. shlibpath_var=LIBPATH
  9835. fi
  9836. ;;
  9837. amigaos*)
  9838. case $host_cpu in
  9839. powerpc)
  9840. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9841. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9843. ;;
  9844. m68k)
  9845. library_names_spec='$libname.ixlibrary $libname.a'
  9846. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9847. 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'
  9848. ;;
  9849. esac
  9850. ;;
  9851. beos*)
  9852. library_names_spec='${libname}${shared_ext}'
  9853. dynamic_linker="$host_os ld.so"
  9854. shlibpath_var=LIBRARY_PATH
  9855. ;;
  9856. bsdi[45]*)
  9857. version_type=linux # correct to gnu/linux during the next big refactor
  9858. need_version=no
  9859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9860. soname_spec='${libname}${release}${shared_ext}$major'
  9861. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9862. shlibpath_var=LD_LIBRARY_PATH
  9863. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9864. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9865. # the default ld.so.conf also contains /usr/contrib/lib and
  9866. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9867. # libtool to hard-code these into programs
  9868. ;;
  9869. cygwin* | mingw* | pw32* | cegcc*)
  9870. version_type=windows
  9871. shrext_cmds=".dll"
  9872. need_version=no
  9873. need_lib_prefix=no
  9874. case $GCC,$cc_basename in
  9875. yes,*)
  9876. # gcc
  9877. library_names_spec='$libname.dll.a'
  9878. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9879. postinstall_cmds='base_file=`basename \${file}`~
  9880. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9881. dldir=$destdir/`dirname \$dlpath`~
  9882. test -d \$dldir || mkdir -p \$dldir~
  9883. $install_prog $dir/$dlname \$dldir/$dlname~
  9884. chmod a+x \$dldir/$dlname~
  9885. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9886. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9887. fi'
  9888. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9889. dlpath=$dir/\$dldll~
  9890. $RM \$dlpath'
  9891. shlibpath_overrides_runpath=yes
  9892. case $host_os in
  9893. cygwin*)
  9894. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9895. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9896. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9897. ;;
  9898. mingw* | cegcc*)
  9899. # MinGW DLLs use traditional 'lib' prefix
  9900. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9901. ;;
  9902. pw32*)
  9903. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9904. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9905. ;;
  9906. esac
  9907. dynamic_linker='Win32 ld.exe'
  9908. ;;
  9909. *,cl*)
  9910. # Native MSVC
  9911. libname_spec='$name'
  9912. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9913. library_names_spec='${libname}.dll.lib'
  9914. case $build_os in
  9915. mingw*)
  9916. sys_lib_search_path_spec=
  9917. lt_save_ifs=$IFS
  9918. IFS=';'
  9919. for lt_path in $LIB
  9920. do
  9921. IFS=$lt_save_ifs
  9922. # Let DOS variable expansion print the short 8.3 style file name.
  9923. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9924. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9925. done
  9926. IFS=$lt_save_ifs
  9927. # Convert to MSYS style.
  9928. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9929. ;;
  9930. cygwin*)
  9931. # Convert to unix form, then to dos form, then back to unix form
  9932. # but this time dos style (no spaces!) so that the unix form looks
  9933. # like /cygdrive/c/PROGRA~1:/cygdr...
  9934. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9935. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9936. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9937. ;;
  9938. *)
  9939. sys_lib_search_path_spec="$LIB"
  9940. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9941. # It is most probably a Windows format PATH.
  9942. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9943. else
  9944. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9945. fi
  9946. # FIXME: find the short name or the path components, as spaces are
  9947. # common. (e.g. "Program Files" -> "PROGRA~1")
  9948. ;;
  9949. esac
  9950. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9951. postinstall_cmds='base_file=`basename \${file}`~
  9952. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9953. dldir=$destdir/`dirname \$dlpath`~
  9954. test -d \$dldir || mkdir -p \$dldir~
  9955. $install_prog $dir/$dlname \$dldir/$dlname'
  9956. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9957. dlpath=$dir/\$dldll~
  9958. $RM \$dlpath'
  9959. shlibpath_overrides_runpath=yes
  9960. dynamic_linker='Win32 link.exe'
  9961. ;;
  9962. *)
  9963. # Assume MSVC wrapper
  9964. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9965. dynamic_linker='Win32 ld.exe'
  9966. ;;
  9967. esac
  9968. # FIXME: first we should search . and the directory the executable is in
  9969. shlibpath_var=PATH
  9970. ;;
  9971. darwin* | rhapsody*)
  9972. dynamic_linker="$host_os dyld"
  9973. version_type=darwin
  9974. need_lib_prefix=no
  9975. need_version=no
  9976. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9977. soname_spec='${libname}${release}${major}$shared_ext'
  9978. shlibpath_overrides_runpath=yes
  9979. shlibpath_var=DYLD_LIBRARY_PATH
  9980. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9981. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9982. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9983. ;;
  9984. dgux*)
  9985. version_type=linux # correct to gnu/linux during the next big refactor
  9986. need_lib_prefix=no
  9987. need_version=no
  9988. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9989. soname_spec='${libname}${release}${shared_ext}$major'
  9990. shlibpath_var=LD_LIBRARY_PATH
  9991. ;;
  9992. freebsd* | dragonfly*)
  9993. # DragonFly does not have aout. When/if they implement a new
  9994. # versioning mechanism, adjust this.
  9995. if test -x /usr/bin/objformat; then
  9996. objformat=`/usr/bin/objformat`
  9997. else
  9998. case $host_os in
  9999. freebsd[23].*) objformat=aout ;;
  10000. *) objformat=elf ;;
  10001. esac
  10002. fi
  10003. version_type=freebsd-$objformat
  10004. case $version_type in
  10005. freebsd-elf*)
  10006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10007. need_version=no
  10008. need_lib_prefix=no
  10009. ;;
  10010. freebsd-*)
  10011. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10012. need_version=yes
  10013. ;;
  10014. esac
  10015. shlibpath_var=LD_LIBRARY_PATH
  10016. case $host_os in
  10017. freebsd2.*)
  10018. shlibpath_overrides_runpath=yes
  10019. ;;
  10020. freebsd3.[01]* | freebsdelf3.[01]*)
  10021. shlibpath_overrides_runpath=yes
  10022. hardcode_into_libs=yes
  10023. ;;
  10024. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10025. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10026. shlibpath_overrides_runpath=no
  10027. hardcode_into_libs=yes
  10028. ;;
  10029. *) # from 4.6 on, and DragonFly
  10030. shlibpath_overrides_runpath=yes
  10031. hardcode_into_libs=yes
  10032. ;;
  10033. esac
  10034. ;;
  10035. gnu*)
  10036. version_type=linux # correct to gnu/linux during the next big refactor
  10037. need_lib_prefix=no
  10038. need_version=no
  10039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10040. soname_spec='${libname}${release}${shared_ext}$major'
  10041. shlibpath_var=LD_LIBRARY_PATH
  10042. shlibpath_overrides_runpath=no
  10043. hardcode_into_libs=yes
  10044. ;;
  10045. haiku*)
  10046. version_type=linux # correct to gnu/linux during the next big refactor
  10047. need_lib_prefix=no
  10048. need_version=no
  10049. dynamic_linker="$host_os runtime_loader"
  10050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10051. soname_spec='${libname}${release}${shared_ext}$major'
  10052. shlibpath_var=LIBRARY_PATH
  10053. shlibpath_overrides_runpath=yes
  10054. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10055. hardcode_into_libs=yes
  10056. ;;
  10057. hpux9* | hpux10* | hpux11*)
  10058. # Give a soname corresponding to the major version so that dld.sl refuses to
  10059. # link against other versions.
  10060. version_type=sunos
  10061. need_lib_prefix=no
  10062. need_version=no
  10063. case $host_cpu in
  10064. ia64*)
  10065. shrext_cmds='.so'
  10066. hardcode_into_libs=yes
  10067. dynamic_linker="$host_os dld.so"
  10068. shlibpath_var=LD_LIBRARY_PATH
  10069. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10071. soname_spec='${libname}${release}${shared_ext}$major'
  10072. if test "X$HPUX_IA64_MODE" = X32; then
  10073. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10074. else
  10075. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10076. fi
  10077. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10078. ;;
  10079. hppa*64*)
  10080. shrext_cmds='.sl'
  10081. hardcode_into_libs=yes
  10082. dynamic_linker="$host_os dld.sl"
  10083. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10084. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10086. soname_spec='${libname}${release}${shared_ext}$major'
  10087. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10088. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10089. ;;
  10090. *)
  10091. shrext_cmds='.sl'
  10092. dynamic_linker="$host_os dld.sl"
  10093. shlibpath_var=SHLIB_PATH
  10094. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10096. soname_spec='${libname}${release}${shared_ext}$major'
  10097. ;;
  10098. esac
  10099. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10100. postinstall_cmds='chmod 555 $lib'
  10101. # or fails outright, so override atomically:
  10102. install_override_mode=555
  10103. ;;
  10104. interix[3-9]*)
  10105. version_type=linux # correct to gnu/linux during the next big refactor
  10106. need_lib_prefix=no
  10107. need_version=no
  10108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10109. soname_spec='${libname}${release}${shared_ext}$major'
  10110. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10111. shlibpath_var=LD_LIBRARY_PATH
  10112. shlibpath_overrides_runpath=no
  10113. hardcode_into_libs=yes
  10114. ;;
  10115. irix5* | irix6* | nonstopux*)
  10116. case $host_os in
  10117. nonstopux*) version_type=nonstopux ;;
  10118. *)
  10119. if test "$lt_cv_prog_gnu_ld" = yes; then
  10120. version_type=linux # correct to gnu/linux during the next big refactor
  10121. else
  10122. version_type=irix
  10123. fi ;;
  10124. esac
  10125. need_lib_prefix=no
  10126. need_version=no
  10127. soname_spec='${libname}${release}${shared_ext}$major'
  10128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10129. case $host_os in
  10130. irix5* | nonstopux*)
  10131. libsuff= shlibsuff=
  10132. ;;
  10133. *)
  10134. case $LD in # libtool.m4 will add one of these switches to LD
  10135. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10136. libsuff= shlibsuff= libmagic=32-bit;;
  10137. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10138. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10139. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10140. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10141. *) libsuff= shlibsuff= libmagic=never-match;;
  10142. esac
  10143. ;;
  10144. esac
  10145. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10146. shlibpath_overrides_runpath=no
  10147. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10148. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10149. hardcode_into_libs=yes
  10150. ;;
  10151. # No shared lib support for Linux oldld, aout, or coff.
  10152. linux*oldld* | linux*aout* | linux*coff*)
  10153. dynamic_linker=no
  10154. ;;
  10155. # This must be glibc/ELF.
  10156. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10157. version_type=linux # correct to gnu/linux during the next big refactor
  10158. need_lib_prefix=no
  10159. need_version=no
  10160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10161. soname_spec='${libname}${release}${shared_ext}$major'
  10162. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10163. shlibpath_var=LD_LIBRARY_PATH
  10164. shlibpath_overrides_runpath=no
  10165. # Some binutils ld are patched to set DT_RUNPATH
  10166. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10167. $as_echo_n "(cached) " >&6
  10168. else
  10169. lt_cv_shlibpath_overrides_runpath=no
  10170. save_LDFLAGS=$LDFLAGS
  10171. save_libdir=$libdir
  10172. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10173. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10175. /* end confdefs.h. */
  10176. int
  10177. main ()
  10178. {
  10179. ;
  10180. return 0;
  10181. }
  10182. _ACEOF
  10183. if ac_fn_c_try_link "$LINENO"; then :
  10184. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10185. lt_cv_shlibpath_overrides_runpath=yes
  10186. fi
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext \
  10189. conftest$ac_exeext conftest.$ac_ext
  10190. LDFLAGS=$save_LDFLAGS
  10191. libdir=$save_libdir
  10192. fi
  10193. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10194. # This implies no fast_install, which is unacceptable.
  10195. # Some rework will be needed to allow for fast_install
  10196. # before this can be enabled.
  10197. hardcode_into_libs=yes
  10198. # Add ABI-specific directories to the system library path.
  10199. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10200. # Append ld.so.conf contents to the search path
  10201. if test -f /etc/ld.so.conf; then
  10202. 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' ' '`
  10203. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10204. fi
  10205. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10206. # powerpc, because MkLinux only supported shared libraries with the
  10207. # GNU dynamic linker. Since this was broken with cross compilers,
  10208. # most powerpc-linux boxes support dynamic linking these days and
  10209. # people can always --disable-shared, the test was removed, and we
  10210. # assume the GNU/Linux dynamic linker is in use.
  10211. dynamic_linker='GNU/Linux ld.so'
  10212. ;;
  10213. netbsd*)
  10214. version_type=sunos
  10215. need_lib_prefix=no
  10216. need_version=no
  10217. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10219. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10220. dynamic_linker='NetBSD (a.out) ld.so'
  10221. else
  10222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10223. soname_spec='${libname}${release}${shared_ext}$major'
  10224. dynamic_linker='NetBSD ld.elf_so'
  10225. fi
  10226. shlibpath_var=LD_LIBRARY_PATH
  10227. shlibpath_overrides_runpath=yes
  10228. hardcode_into_libs=yes
  10229. ;;
  10230. newsos6)
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10233. shlibpath_var=LD_LIBRARY_PATH
  10234. shlibpath_overrides_runpath=yes
  10235. ;;
  10236. *nto* | *qnx*)
  10237. version_type=qnx
  10238. need_lib_prefix=no
  10239. need_version=no
  10240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10241. soname_spec='${libname}${release}${shared_ext}$major'
  10242. shlibpath_var=LD_LIBRARY_PATH
  10243. shlibpath_overrides_runpath=no
  10244. hardcode_into_libs=yes
  10245. dynamic_linker='ldqnx.so'
  10246. ;;
  10247. openbsd*)
  10248. version_type=sunos
  10249. sys_lib_dlsearch_path_spec="/usr/lib"
  10250. need_lib_prefix=no
  10251. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10252. case $host_os in
  10253. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10254. *) need_version=no ;;
  10255. esac
  10256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10257. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10258. shlibpath_var=LD_LIBRARY_PATH
  10259. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10260. case $host_os in
  10261. openbsd2.[89] | openbsd2.[89].*)
  10262. shlibpath_overrides_runpath=no
  10263. ;;
  10264. *)
  10265. shlibpath_overrides_runpath=yes
  10266. ;;
  10267. esac
  10268. else
  10269. shlibpath_overrides_runpath=yes
  10270. fi
  10271. ;;
  10272. os2*)
  10273. libname_spec='$name'
  10274. shrext_cmds=".dll"
  10275. need_lib_prefix=no
  10276. library_names_spec='$libname${shared_ext} $libname.a'
  10277. dynamic_linker='OS/2 ld.exe'
  10278. shlibpath_var=LIBPATH
  10279. ;;
  10280. osf3* | osf4* | osf5*)
  10281. version_type=osf
  10282. need_lib_prefix=no
  10283. need_version=no
  10284. soname_spec='${libname}${release}${shared_ext}$major'
  10285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10286. shlibpath_var=LD_LIBRARY_PATH
  10287. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10288. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10289. ;;
  10290. rdos*)
  10291. dynamic_linker=no
  10292. ;;
  10293. solaris*)
  10294. version_type=linux # correct to gnu/linux during the next big refactor
  10295. need_lib_prefix=no
  10296. need_version=no
  10297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10298. soname_spec='${libname}${release}${shared_ext}$major'
  10299. shlibpath_var=LD_LIBRARY_PATH
  10300. shlibpath_overrides_runpath=yes
  10301. hardcode_into_libs=yes
  10302. # ldd complains unless libraries are executable
  10303. postinstall_cmds='chmod +x $lib'
  10304. ;;
  10305. sunos4*)
  10306. version_type=sunos
  10307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10308. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10309. shlibpath_var=LD_LIBRARY_PATH
  10310. shlibpath_overrides_runpath=yes
  10311. if test "$with_gnu_ld" = yes; then
  10312. need_lib_prefix=no
  10313. fi
  10314. need_version=yes
  10315. ;;
  10316. sysv4 | sysv4.3*)
  10317. version_type=linux # correct to gnu/linux during the next big refactor
  10318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10319. soname_spec='${libname}${release}${shared_ext}$major'
  10320. shlibpath_var=LD_LIBRARY_PATH
  10321. case $host_vendor in
  10322. sni)
  10323. shlibpath_overrides_runpath=no
  10324. need_lib_prefix=no
  10325. runpath_var=LD_RUN_PATH
  10326. ;;
  10327. siemens)
  10328. need_lib_prefix=no
  10329. ;;
  10330. motorola)
  10331. need_lib_prefix=no
  10332. need_version=no
  10333. shlibpath_overrides_runpath=no
  10334. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10335. ;;
  10336. esac
  10337. ;;
  10338. sysv4*MP*)
  10339. if test -d /usr/nec ;then
  10340. version_type=linux # correct to gnu/linux during the next big refactor
  10341. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10342. soname_spec='$libname${shared_ext}.$major'
  10343. shlibpath_var=LD_LIBRARY_PATH
  10344. fi
  10345. ;;
  10346. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10347. version_type=freebsd-elf
  10348. need_lib_prefix=no
  10349. need_version=no
  10350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10351. soname_spec='${libname}${release}${shared_ext}$major'
  10352. shlibpath_var=LD_LIBRARY_PATH
  10353. shlibpath_overrides_runpath=yes
  10354. hardcode_into_libs=yes
  10355. if test "$with_gnu_ld" = yes; then
  10356. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10357. else
  10358. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10359. case $host_os in
  10360. sco3.2v5*)
  10361. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10362. ;;
  10363. esac
  10364. fi
  10365. sys_lib_dlsearch_path_spec='/usr/lib'
  10366. ;;
  10367. tpf*)
  10368. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10369. version_type=linux # correct to gnu/linux during the next big refactor
  10370. need_lib_prefix=no
  10371. need_version=no
  10372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10373. shlibpath_var=LD_LIBRARY_PATH
  10374. shlibpath_overrides_runpath=no
  10375. hardcode_into_libs=yes
  10376. ;;
  10377. uts4*)
  10378. version_type=linux # correct to gnu/linux during the next big refactor
  10379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10380. soname_spec='${libname}${release}${shared_ext}$major'
  10381. shlibpath_var=LD_LIBRARY_PATH
  10382. ;;
  10383. *)
  10384. dynamic_linker=no
  10385. ;;
  10386. esac
  10387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10388. $as_echo "$dynamic_linker" >&6; }
  10389. test "$dynamic_linker" = no && can_build_shared=no
  10390. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10391. if test "$GCC" = yes; then
  10392. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10393. fi
  10394. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10395. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10396. fi
  10397. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10398. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10399. fi
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10401. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10402. hardcode_action=
  10403. if test -n "$hardcode_libdir_flag_spec" ||
  10404. test -n "$runpath_var" ||
  10405. test "X$hardcode_automatic" = "Xyes" ; then
  10406. # We can hardcode non-existent directories.
  10407. if test "$hardcode_direct" != no &&
  10408. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10409. # have to relink, otherwise we might link with an installed library
  10410. # when we should be linking with a yet-to-be-installed one
  10411. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10412. test "$hardcode_minus_L" != no; then
  10413. # Linking always hardcodes the temporary library directory.
  10414. hardcode_action=relink
  10415. else
  10416. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10417. hardcode_action=immediate
  10418. fi
  10419. else
  10420. # We cannot hardcode anything, or else we can only hardcode existing
  10421. # directories.
  10422. hardcode_action=unsupported
  10423. fi
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10425. $as_echo "$hardcode_action" >&6; }
  10426. if test "$hardcode_action" = relink ||
  10427. test "$inherit_rpath" = yes; then
  10428. # Fast installation is not supported
  10429. enable_fast_install=no
  10430. elif test "$shlibpath_overrides_runpath" = yes ||
  10431. test "$enable_shared" = no; then
  10432. # Fast installation is not necessary
  10433. enable_fast_install=needless
  10434. fi
  10435. if test "x$enable_dlopen" != xyes; then
  10436. enable_dlopen=unknown
  10437. enable_dlopen_self=unknown
  10438. enable_dlopen_self_static=unknown
  10439. else
  10440. lt_cv_dlopen=no
  10441. lt_cv_dlopen_libs=
  10442. case $host_os in
  10443. beos*)
  10444. lt_cv_dlopen="load_add_on"
  10445. lt_cv_dlopen_libs=
  10446. lt_cv_dlopen_self=yes
  10447. ;;
  10448. mingw* | pw32* | cegcc*)
  10449. lt_cv_dlopen="LoadLibrary"
  10450. lt_cv_dlopen_libs=
  10451. ;;
  10452. cygwin*)
  10453. lt_cv_dlopen="dlopen"
  10454. lt_cv_dlopen_libs=
  10455. ;;
  10456. darwin*)
  10457. # if libdl is installed we need to link against it
  10458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10459. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10460. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10461. $as_echo_n "(cached) " >&6
  10462. else
  10463. ac_check_lib_save_LIBS=$LIBS
  10464. LIBS="-ldl $LIBS"
  10465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10466. /* end confdefs.h. */
  10467. /* Override any GCC internal prototype to avoid an error.
  10468. Use char because int might match the return type of a GCC
  10469. builtin and then its argument prototype would still apply. */
  10470. #ifdef __cplusplus
  10471. extern "C"
  10472. #endif
  10473. char dlopen ();
  10474. int
  10475. main ()
  10476. {
  10477. return dlopen ();
  10478. ;
  10479. return 0;
  10480. }
  10481. _ACEOF
  10482. if ac_fn_c_try_link "$LINENO"; then :
  10483. ac_cv_lib_dl_dlopen=yes
  10484. else
  10485. ac_cv_lib_dl_dlopen=no
  10486. fi
  10487. rm -f core conftest.err conftest.$ac_objext \
  10488. conftest$ac_exeext conftest.$ac_ext
  10489. LIBS=$ac_check_lib_save_LIBS
  10490. fi
  10491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10492. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10493. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10494. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10495. else
  10496. lt_cv_dlopen="dyld"
  10497. lt_cv_dlopen_libs=
  10498. lt_cv_dlopen_self=yes
  10499. fi
  10500. ;;
  10501. *)
  10502. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10503. if test "x$ac_cv_func_shl_load" = xyes; then :
  10504. lt_cv_dlopen="shl_load"
  10505. else
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10507. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10508. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10509. $as_echo_n "(cached) " >&6
  10510. else
  10511. ac_check_lib_save_LIBS=$LIBS
  10512. LIBS="-ldld $LIBS"
  10513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10514. /* end confdefs.h. */
  10515. /* Override any GCC internal prototype to avoid an error.
  10516. Use char because int might match the return type of a GCC
  10517. builtin and then its argument prototype would still apply. */
  10518. #ifdef __cplusplus
  10519. extern "C"
  10520. #endif
  10521. char shl_load ();
  10522. int
  10523. main ()
  10524. {
  10525. return shl_load ();
  10526. ;
  10527. return 0;
  10528. }
  10529. _ACEOF
  10530. if ac_fn_c_try_link "$LINENO"; then :
  10531. ac_cv_lib_dld_shl_load=yes
  10532. else
  10533. ac_cv_lib_dld_shl_load=no
  10534. fi
  10535. rm -f core conftest.err conftest.$ac_objext \
  10536. conftest$ac_exeext conftest.$ac_ext
  10537. LIBS=$ac_check_lib_save_LIBS
  10538. fi
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10540. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10541. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10542. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10543. else
  10544. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10545. if test "x$ac_cv_func_dlopen" = xyes; then :
  10546. lt_cv_dlopen="dlopen"
  10547. else
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10549. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10550. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10551. $as_echo_n "(cached) " >&6
  10552. else
  10553. ac_check_lib_save_LIBS=$LIBS
  10554. LIBS="-ldl $LIBS"
  10555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10556. /* end confdefs.h. */
  10557. /* Override any GCC internal prototype to avoid an error.
  10558. Use char because int might match the return type of a GCC
  10559. builtin and then its argument prototype would still apply. */
  10560. #ifdef __cplusplus
  10561. extern "C"
  10562. #endif
  10563. char dlopen ();
  10564. int
  10565. main ()
  10566. {
  10567. return dlopen ();
  10568. ;
  10569. return 0;
  10570. }
  10571. _ACEOF
  10572. if ac_fn_c_try_link "$LINENO"; then :
  10573. ac_cv_lib_dl_dlopen=yes
  10574. else
  10575. ac_cv_lib_dl_dlopen=no
  10576. fi
  10577. rm -f core conftest.err conftest.$ac_objext \
  10578. conftest$ac_exeext conftest.$ac_ext
  10579. LIBS=$ac_check_lib_save_LIBS
  10580. fi
  10581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10582. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10583. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10584. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10585. else
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10587. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10588. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10589. $as_echo_n "(cached) " >&6
  10590. else
  10591. ac_check_lib_save_LIBS=$LIBS
  10592. LIBS="-lsvld $LIBS"
  10593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10594. /* end confdefs.h. */
  10595. /* Override any GCC internal prototype to avoid an error.
  10596. Use char because int might match the return type of a GCC
  10597. builtin and then its argument prototype would still apply. */
  10598. #ifdef __cplusplus
  10599. extern "C"
  10600. #endif
  10601. char dlopen ();
  10602. int
  10603. main ()
  10604. {
  10605. return dlopen ();
  10606. ;
  10607. return 0;
  10608. }
  10609. _ACEOF
  10610. if ac_fn_c_try_link "$LINENO"; then :
  10611. ac_cv_lib_svld_dlopen=yes
  10612. else
  10613. ac_cv_lib_svld_dlopen=no
  10614. fi
  10615. rm -f core conftest.err conftest.$ac_objext \
  10616. conftest$ac_exeext conftest.$ac_ext
  10617. LIBS=$ac_check_lib_save_LIBS
  10618. fi
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10620. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10621. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10622. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10623. else
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10625. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10626. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10627. $as_echo_n "(cached) " >&6
  10628. else
  10629. ac_check_lib_save_LIBS=$LIBS
  10630. LIBS="-ldld $LIBS"
  10631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10632. /* end confdefs.h. */
  10633. /* Override any GCC internal prototype to avoid an error.
  10634. Use char because int might match the return type of a GCC
  10635. builtin and then its argument prototype would still apply. */
  10636. #ifdef __cplusplus
  10637. extern "C"
  10638. #endif
  10639. char dld_link ();
  10640. int
  10641. main ()
  10642. {
  10643. return dld_link ();
  10644. ;
  10645. return 0;
  10646. }
  10647. _ACEOF
  10648. if ac_fn_c_try_link "$LINENO"; then :
  10649. ac_cv_lib_dld_dld_link=yes
  10650. else
  10651. ac_cv_lib_dld_dld_link=no
  10652. fi
  10653. rm -f core conftest.err conftest.$ac_objext \
  10654. conftest$ac_exeext conftest.$ac_ext
  10655. LIBS=$ac_check_lib_save_LIBS
  10656. fi
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10658. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10659. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10660. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10661. fi
  10662. fi
  10663. fi
  10664. fi
  10665. fi
  10666. fi
  10667. ;;
  10668. esac
  10669. if test "x$lt_cv_dlopen" != xno; then
  10670. enable_dlopen=yes
  10671. else
  10672. enable_dlopen=no
  10673. fi
  10674. case $lt_cv_dlopen in
  10675. dlopen)
  10676. save_CPPFLAGS="$CPPFLAGS"
  10677. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10678. save_LDFLAGS="$LDFLAGS"
  10679. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10680. save_LIBS="$LIBS"
  10681. LIBS="$lt_cv_dlopen_libs $LIBS"
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10683. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10684. if ${lt_cv_dlopen_self+:} false; then :
  10685. $as_echo_n "(cached) " >&6
  10686. else
  10687. if test "$cross_compiling" = yes; then :
  10688. lt_cv_dlopen_self=cross
  10689. else
  10690. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10691. lt_status=$lt_dlunknown
  10692. cat > conftest.$ac_ext <<_LT_EOF
  10693. #line $LINENO "configure"
  10694. #include "confdefs.h"
  10695. #if HAVE_DLFCN_H
  10696. #include <dlfcn.h>
  10697. #endif
  10698. #include <stdio.h>
  10699. #ifdef RTLD_GLOBAL
  10700. # define LT_DLGLOBAL RTLD_GLOBAL
  10701. #else
  10702. # ifdef DL_GLOBAL
  10703. # define LT_DLGLOBAL DL_GLOBAL
  10704. # else
  10705. # define LT_DLGLOBAL 0
  10706. # endif
  10707. #endif
  10708. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10709. find out it does not work in some platform. */
  10710. #ifndef LT_DLLAZY_OR_NOW
  10711. # ifdef RTLD_LAZY
  10712. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10713. # else
  10714. # ifdef DL_LAZY
  10715. # define LT_DLLAZY_OR_NOW DL_LAZY
  10716. # else
  10717. # ifdef RTLD_NOW
  10718. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10719. # else
  10720. # ifdef DL_NOW
  10721. # define LT_DLLAZY_OR_NOW DL_NOW
  10722. # else
  10723. # define LT_DLLAZY_OR_NOW 0
  10724. # endif
  10725. # endif
  10726. # endif
  10727. # endif
  10728. #endif
  10729. /* When -fvisbility=hidden is used, assume the code has been annotated
  10730. correspondingly for the symbols needed. */
  10731. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10732. int fnord () __attribute__((visibility("default")));
  10733. #endif
  10734. int fnord () { return 42; }
  10735. int main ()
  10736. {
  10737. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10738. int status = $lt_dlunknown;
  10739. if (self)
  10740. {
  10741. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10742. else
  10743. {
  10744. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10745. else puts (dlerror ());
  10746. }
  10747. /* dlclose (self); */
  10748. }
  10749. else
  10750. puts (dlerror ());
  10751. return status;
  10752. }
  10753. _LT_EOF
  10754. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10755. (eval $ac_link) 2>&5
  10756. ac_status=$?
  10757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10758. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10759. (./conftest; exit; ) >&5 2>/dev/null
  10760. lt_status=$?
  10761. case x$lt_status in
  10762. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10763. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10764. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10765. esac
  10766. else :
  10767. # compilation failed
  10768. lt_cv_dlopen_self=no
  10769. fi
  10770. fi
  10771. rm -fr conftest*
  10772. fi
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10774. $as_echo "$lt_cv_dlopen_self" >&6; }
  10775. if test "x$lt_cv_dlopen_self" = xyes; then
  10776. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10778. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10779. if ${lt_cv_dlopen_self_static+:} false; then :
  10780. $as_echo_n "(cached) " >&6
  10781. else
  10782. if test "$cross_compiling" = yes; then :
  10783. lt_cv_dlopen_self_static=cross
  10784. else
  10785. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10786. lt_status=$lt_dlunknown
  10787. cat > conftest.$ac_ext <<_LT_EOF
  10788. #line $LINENO "configure"
  10789. #include "confdefs.h"
  10790. #if HAVE_DLFCN_H
  10791. #include <dlfcn.h>
  10792. #endif
  10793. #include <stdio.h>
  10794. #ifdef RTLD_GLOBAL
  10795. # define LT_DLGLOBAL RTLD_GLOBAL
  10796. #else
  10797. # ifdef DL_GLOBAL
  10798. # define LT_DLGLOBAL DL_GLOBAL
  10799. # else
  10800. # define LT_DLGLOBAL 0
  10801. # endif
  10802. #endif
  10803. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10804. find out it does not work in some platform. */
  10805. #ifndef LT_DLLAZY_OR_NOW
  10806. # ifdef RTLD_LAZY
  10807. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10808. # else
  10809. # ifdef DL_LAZY
  10810. # define LT_DLLAZY_OR_NOW DL_LAZY
  10811. # else
  10812. # ifdef RTLD_NOW
  10813. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10814. # else
  10815. # ifdef DL_NOW
  10816. # define LT_DLLAZY_OR_NOW DL_NOW
  10817. # else
  10818. # define LT_DLLAZY_OR_NOW 0
  10819. # endif
  10820. # endif
  10821. # endif
  10822. # endif
  10823. #endif
  10824. /* When -fvisbility=hidden is used, assume the code has been annotated
  10825. correspondingly for the symbols needed. */
  10826. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10827. int fnord () __attribute__((visibility("default")));
  10828. #endif
  10829. int fnord () { return 42; }
  10830. int main ()
  10831. {
  10832. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10833. int status = $lt_dlunknown;
  10834. if (self)
  10835. {
  10836. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10837. else
  10838. {
  10839. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10840. else puts (dlerror ());
  10841. }
  10842. /* dlclose (self); */
  10843. }
  10844. else
  10845. puts (dlerror ());
  10846. return status;
  10847. }
  10848. _LT_EOF
  10849. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10850. (eval $ac_link) 2>&5
  10851. ac_status=$?
  10852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10853. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10854. (./conftest; exit; ) >&5 2>/dev/null
  10855. lt_status=$?
  10856. case x$lt_status in
  10857. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10858. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10859. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10860. esac
  10861. else :
  10862. # compilation failed
  10863. lt_cv_dlopen_self_static=no
  10864. fi
  10865. fi
  10866. rm -fr conftest*
  10867. fi
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10869. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10870. fi
  10871. CPPFLAGS="$save_CPPFLAGS"
  10872. LDFLAGS="$save_LDFLAGS"
  10873. LIBS="$save_LIBS"
  10874. ;;
  10875. esac
  10876. case $lt_cv_dlopen_self in
  10877. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10878. *) enable_dlopen_self=unknown ;;
  10879. esac
  10880. case $lt_cv_dlopen_self_static in
  10881. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10882. *) enable_dlopen_self_static=unknown ;;
  10883. esac
  10884. fi
  10885. striplib=
  10886. old_striplib=
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10888. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10889. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10890. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10891. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10893. $as_echo "yes" >&6; }
  10894. else
  10895. # FIXME - insert some real tests, host_os isn't really good enough
  10896. case $host_os in
  10897. darwin*)
  10898. if test -n "$STRIP" ; then
  10899. striplib="$STRIP -x"
  10900. old_striplib="$STRIP -S"
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10902. $as_echo "yes" >&6; }
  10903. else
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10905. $as_echo "no" >&6; }
  10906. fi
  10907. ;;
  10908. *)
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10910. $as_echo "no" >&6; }
  10911. ;;
  10912. esac
  10913. fi
  10914. # Report which library types will actually be built
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10916. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10918. $as_echo "$can_build_shared" >&6; }
  10919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10920. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10921. test "$can_build_shared" = "no" && enable_shared=no
  10922. # On AIX, shared libraries and static libraries use the same namespace, and
  10923. # are all built from PIC.
  10924. case $host_os in
  10925. aix3*)
  10926. test "$enable_shared" = yes && enable_static=no
  10927. if test -n "$RANLIB"; then
  10928. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10929. postinstall_cmds='$RANLIB $lib'
  10930. fi
  10931. ;;
  10932. aix[4-9]*)
  10933. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10934. test "$enable_shared" = yes && enable_static=no
  10935. fi
  10936. ;;
  10937. esac
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10939. $as_echo "$enable_shared" >&6; }
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10941. $as_echo_n "checking whether to build static libraries... " >&6; }
  10942. # Make sure either enable_shared or enable_static is yes.
  10943. test "$enable_shared" = yes || enable_static=yes
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10945. $as_echo "$enable_static" >&6; }
  10946. fi
  10947. ac_ext=c
  10948. ac_cpp='$CPP $CPPFLAGS'
  10949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10952. CC="$lt_save_CC"
  10953. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10954. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10955. (test "X$CXX" != "Xg++"))) ; then
  10956. ac_ext=cpp
  10957. ac_cpp='$CXXCPP $CPPFLAGS'
  10958. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10959. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10960. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10962. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10963. if test -z "$CXXCPP"; then
  10964. if ${ac_cv_prog_CXXCPP+:} false; then :
  10965. $as_echo_n "(cached) " >&6
  10966. else
  10967. # Double quotes because CXXCPP needs to be expanded
  10968. for CXXCPP in "$CXX -E" "/lib/cpp"
  10969. do
  10970. ac_preproc_ok=false
  10971. for ac_cxx_preproc_warn_flag in '' yes
  10972. do
  10973. # Use a header file that comes with gcc, so configuring glibc
  10974. # with a fresh cross-compiler works.
  10975. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10976. # <limits.h> exists even on freestanding compilers.
  10977. # On the NeXT, cc -E runs the code through the compiler's parser,
  10978. # not just through cpp. "Syntax error" is here to catch this case.
  10979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10980. /* end confdefs.h. */
  10981. #ifdef __STDC__
  10982. # include <limits.h>
  10983. #else
  10984. # include <assert.h>
  10985. #endif
  10986. Syntax error
  10987. _ACEOF
  10988. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10989. else
  10990. # Broken: fails on valid input.
  10991. continue
  10992. fi
  10993. rm -f conftest.err conftest.i conftest.$ac_ext
  10994. # OK, works on sane cases. Now check whether nonexistent headers
  10995. # can be detected and how.
  10996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10997. /* end confdefs.h. */
  10998. #include <ac_nonexistent.h>
  10999. _ACEOF
  11000. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11001. # Broken: success on invalid input.
  11002. continue
  11003. else
  11004. # Passes both tests.
  11005. ac_preproc_ok=:
  11006. break
  11007. fi
  11008. rm -f conftest.err conftest.i conftest.$ac_ext
  11009. done
  11010. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11011. rm -f conftest.i conftest.err conftest.$ac_ext
  11012. if $ac_preproc_ok; then :
  11013. break
  11014. fi
  11015. done
  11016. ac_cv_prog_CXXCPP=$CXXCPP
  11017. fi
  11018. CXXCPP=$ac_cv_prog_CXXCPP
  11019. else
  11020. ac_cv_prog_CXXCPP=$CXXCPP
  11021. fi
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11023. $as_echo "$CXXCPP" >&6; }
  11024. ac_preproc_ok=false
  11025. for ac_cxx_preproc_warn_flag in '' yes
  11026. do
  11027. # Use a header file that comes with gcc, so configuring glibc
  11028. # with a fresh cross-compiler works.
  11029. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11030. # <limits.h> exists even on freestanding compilers.
  11031. # On the NeXT, cc -E runs the code through the compiler's parser,
  11032. # not just through cpp. "Syntax error" is here to catch this case.
  11033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11034. /* end confdefs.h. */
  11035. #ifdef __STDC__
  11036. # include <limits.h>
  11037. #else
  11038. # include <assert.h>
  11039. #endif
  11040. Syntax error
  11041. _ACEOF
  11042. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11043. else
  11044. # Broken: fails on valid input.
  11045. continue
  11046. fi
  11047. rm -f conftest.err conftest.i conftest.$ac_ext
  11048. # OK, works on sane cases. Now check whether nonexistent headers
  11049. # can be detected and how.
  11050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11051. /* end confdefs.h. */
  11052. #include <ac_nonexistent.h>
  11053. _ACEOF
  11054. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11055. # Broken: success on invalid input.
  11056. continue
  11057. else
  11058. # Passes both tests.
  11059. ac_preproc_ok=:
  11060. break
  11061. fi
  11062. rm -f conftest.err conftest.i conftest.$ac_ext
  11063. done
  11064. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11065. rm -f conftest.i conftest.err conftest.$ac_ext
  11066. if $ac_preproc_ok; then :
  11067. else
  11068. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11069. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11070. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11071. See \`config.log' for more details" "$LINENO" 5; }
  11072. fi
  11073. ac_ext=c
  11074. ac_cpp='$CPP $CPPFLAGS'
  11075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11078. else
  11079. _lt_caught_CXX_error=yes
  11080. fi
  11081. ac_ext=cpp
  11082. ac_cpp='$CXXCPP $CPPFLAGS'
  11083. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11084. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11085. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11086. archive_cmds_need_lc_CXX=no
  11087. allow_undefined_flag_CXX=
  11088. always_export_symbols_CXX=no
  11089. archive_expsym_cmds_CXX=
  11090. compiler_needs_object_CXX=no
  11091. export_dynamic_flag_spec_CXX=
  11092. hardcode_direct_CXX=no
  11093. hardcode_direct_absolute_CXX=no
  11094. hardcode_libdir_flag_spec_CXX=
  11095. hardcode_libdir_separator_CXX=
  11096. hardcode_minus_L_CXX=no
  11097. hardcode_shlibpath_var_CXX=unsupported
  11098. hardcode_automatic_CXX=no
  11099. inherit_rpath_CXX=no
  11100. module_cmds_CXX=
  11101. module_expsym_cmds_CXX=
  11102. link_all_deplibs_CXX=unknown
  11103. old_archive_cmds_CXX=$old_archive_cmds
  11104. reload_flag_CXX=$reload_flag
  11105. reload_cmds_CXX=$reload_cmds
  11106. no_undefined_flag_CXX=
  11107. whole_archive_flag_spec_CXX=
  11108. enable_shared_with_static_runtimes_CXX=no
  11109. # Source file extension for C++ test sources.
  11110. ac_ext=cpp
  11111. # Object file extension for compiled C++ test sources.
  11112. objext=o
  11113. objext_CXX=$objext
  11114. # No sense in running all these tests if we already determined that
  11115. # the CXX compiler isn't working. Some variables (like enable_shared)
  11116. # are currently assumed to apply to all compilers on this platform,
  11117. # and will be corrupted by setting them based on a non-working compiler.
  11118. if test "$_lt_caught_CXX_error" != yes; then
  11119. # Code to be used in simple compile tests
  11120. lt_simple_compile_test_code="int some_variable = 0;"
  11121. # Code to be used in simple link tests
  11122. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11123. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11124. # If no C compiler was specified, use CC.
  11125. LTCC=${LTCC-"$CC"}
  11126. # If no C compiler flags were specified, use CFLAGS.
  11127. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11128. # Allow CC to be a program name with arguments.
  11129. compiler=$CC
  11130. # save warnings/boilerplate of simple test code
  11131. ac_outfile=conftest.$ac_objext
  11132. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11133. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11134. _lt_compiler_boilerplate=`cat conftest.err`
  11135. $RM conftest*
  11136. ac_outfile=conftest.$ac_objext
  11137. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11138. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11139. _lt_linker_boilerplate=`cat conftest.err`
  11140. $RM -r conftest*
  11141. # Allow CC to be a program name with arguments.
  11142. lt_save_CC=$CC
  11143. lt_save_CFLAGS=$CFLAGS
  11144. lt_save_LD=$LD
  11145. lt_save_GCC=$GCC
  11146. GCC=$GXX
  11147. lt_save_with_gnu_ld=$with_gnu_ld
  11148. lt_save_path_LD=$lt_cv_path_LD
  11149. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11150. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11151. else
  11152. $as_unset lt_cv_prog_gnu_ld
  11153. fi
  11154. if test -n "${lt_cv_path_LDCXX+set}"; then
  11155. lt_cv_path_LD=$lt_cv_path_LDCXX
  11156. else
  11157. $as_unset lt_cv_path_LD
  11158. fi
  11159. test -z "${LDCXX+set}" || LD=$LDCXX
  11160. CC=${CXX-"c++"}
  11161. CFLAGS=$CXXFLAGS
  11162. compiler=$CC
  11163. compiler_CXX=$CC
  11164. for cc_temp in $compiler""; do
  11165. case $cc_temp in
  11166. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11167. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11168. \-*) ;;
  11169. *) break;;
  11170. esac
  11171. done
  11172. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11173. if test -n "$compiler"; then
  11174. # We don't want -fno-exception when compiling C++ code, so set the
  11175. # no_builtin_flag separately
  11176. if test "$GXX" = yes; then
  11177. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11178. else
  11179. lt_prog_compiler_no_builtin_flag_CXX=
  11180. fi
  11181. if test "$GXX" = yes; then
  11182. # Set up default GNU C++ configuration
  11183. # Check whether --with-gnu-ld was given.
  11184. if test "${with_gnu_ld+set}" = set; then :
  11185. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11186. else
  11187. with_gnu_ld=no
  11188. fi
  11189. ac_prog=ld
  11190. if test "$GCC" = yes; then
  11191. # Check if gcc -print-prog-name=ld gives a path.
  11192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11193. $as_echo_n "checking for ld used by $CC... " >&6; }
  11194. case $host in
  11195. *-*-mingw*)
  11196. # gcc leaves a trailing carriage return which upsets mingw
  11197. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11198. *)
  11199. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11200. esac
  11201. case $ac_prog in
  11202. # Accept absolute paths.
  11203. [\\/]* | ?:[\\/]*)
  11204. re_direlt='/[^/][^/]*/\.\./'
  11205. # Canonicalize the pathname of ld
  11206. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11207. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11208. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11209. done
  11210. test -z "$LD" && LD="$ac_prog"
  11211. ;;
  11212. "")
  11213. # If it fails, then pretend we aren't using GCC.
  11214. ac_prog=ld
  11215. ;;
  11216. *)
  11217. # If it is relative, then search for the first ld in PATH.
  11218. with_gnu_ld=unknown
  11219. ;;
  11220. esac
  11221. elif test "$with_gnu_ld" = yes; then
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11223. $as_echo_n "checking for GNU ld... " >&6; }
  11224. else
  11225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11226. $as_echo_n "checking for non-GNU ld... " >&6; }
  11227. fi
  11228. if ${lt_cv_path_LD+:} false; then :
  11229. $as_echo_n "(cached) " >&6
  11230. else
  11231. if test -z "$LD"; then
  11232. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11233. for ac_dir in $PATH; do
  11234. IFS="$lt_save_ifs"
  11235. test -z "$ac_dir" && ac_dir=.
  11236. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11237. lt_cv_path_LD="$ac_dir/$ac_prog"
  11238. # Check to see if the program is GNU ld. I'd rather use --version,
  11239. # but apparently some variants of GNU ld only accept -v.
  11240. # Break only if it was the GNU/non-GNU ld that we prefer.
  11241. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11242. *GNU* | *'with BFD'*)
  11243. test "$with_gnu_ld" != no && break
  11244. ;;
  11245. *)
  11246. test "$with_gnu_ld" != yes && break
  11247. ;;
  11248. esac
  11249. fi
  11250. done
  11251. IFS="$lt_save_ifs"
  11252. else
  11253. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11254. fi
  11255. fi
  11256. LD="$lt_cv_path_LD"
  11257. if test -n "$LD"; then
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11259. $as_echo "$LD" >&6; }
  11260. else
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11262. $as_echo "no" >&6; }
  11263. fi
  11264. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11266. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11267. if ${lt_cv_prog_gnu_ld+:} false; then :
  11268. $as_echo_n "(cached) " >&6
  11269. else
  11270. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11271. case `$LD -v 2>&1 </dev/null` in
  11272. *GNU* | *'with BFD'*)
  11273. lt_cv_prog_gnu_ld=yes
  11274. ;;
  11275. *)
  11276. lt_cv_prog_gnu_ld=no
  11277. ;;
  11278. esac
  11279. fi
  11280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11281. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11282. with_gnu_ld=$lt_cv_prog_gnu_ld
  11283. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11284. # archiving commands below assume that GNU ld is being used.
  11285. if test "$with_gnu_ld" = yes; then
  11286. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11287. 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'
  11288. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11289. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11290. # If archive_cmds runs LD, not CC, wlarc should be empty
  11291. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11292. # investigate it a little bit more. (MM)
  11293. wlarc='${wl}'
  11294. # ancient GNU ld didn't support --whole-archive et. al.
  11295. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11296. $GREP 'no-whole-archive' > /dev/null; then
  11297. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11298. else
  11299. whole_archive_flag_spec_CXX=
  11300. fi
  11301. else
  11302. with_gnu_ld=no
  11303. wlarc=
  11304. # A generic and very simple default shared library creation
  11305. # command for GNU C++ for the case where it uses the native
  11306. # linker, instead of GNU ld. If possible, this setting should
  11307. # overridden to take advantage of the native linker features on
  11308. # the platform it is being used on.
  11309. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11310. fi
  11311. # Commands to make compiler produce verbose output that lists
  11312. # what "hidden" libraries, object files and flags are used when
  11313. # linking a shared library.
  11314. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11315. else
  11316. GXX=no
  11317. with_gnu_ld=no
  11318. wlarc=
  11319. fi
  11320. # PORTME: fill in a description of your system's C++ link characteristics
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11322. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11323. ld_shlibs_CXX=yes
  11324. case $host_os in
  11325. aix3*)
  11326. # FIXME: insert proper C++ library support
  11327. ld_shlibs_CXX=no
  11328. ;;
  11329. aix[4-9]*)
  11330. if test "$host_cpu" = ia64; then
  11331. # On IA64, the linker does run time linking by default, so we don't
  11332. # have to do anything special.
  11333. aix_use_runtimelinking=no
  11334. exp_sym_flag='-Bexport'
  11335. no_entry_flag=""
  11336. else
  11337. aix_use_runtimelinking=no
  11338. # Test if we are trying to use run time linking or normal
  11339. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11340. # need to do runtime linking.
  11341. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11342. for ld_flag in $LDFLAGS; do
  11343. case $ld_flag in
  11344. *-brtl*)
  11345. aix_use_runtimelinking=yes
  11346. break
  11347. ;;
  11348. esac
  11349. done
  11350. ;;
  11351. esac
  11352. exp_sym_flag='-bexport'
  11353. no_entry_flag='-bnoentry'
  11354. fi
  11355. # When large executables or shared objects are built, AIX ld can
  11356. # have problems creating the table of contents. If linking a library
  11357. # or program results in "error TOC overflow" add -mminimal-toc to
  11358. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11359. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11360. archive_cmds_CXX=''
  11361. hardcode_direct_CXX=yes
  11362. hardcode_direct_absolute_CXX=yes
  11363. hardcode_libdir_separator_CXX=':'
  11364. link_all_deplibs_CXX=yes
  11365. file_list_spec_CXX='${wl}-f,'
  11366. if test "$GXX" = yes; then
  11367. case $host_os in aix4.[012]|aix4.[012].*)
  11368. # We only want to do this on AIX 4.2 and lower, the check
  11369. # below for broken collect2 doesn't work under 4.3+
  11370. collect2name=`${CC} -print-prog-name=collect2`
  11371. if test -f "$collect2name" &&
  11372. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11373. then
  11374. # We have reworked collect2
  11375. :
  11376. else
  11377. # We have old collect2
  11378. hardcode_direct_CXX=unsupported
  11379. # It fails to find uninstalled libraries when the uninstalled
  11380. # path is not listed in the libpath. Setting hardcode_minus_L
  11381. # to unsupported forces relinking
  11382. hardcode_minus_L_CXX=yes
  11383. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11384. hardcode_libdir_separator_CXX=
  11385. fi
  11386. esac
  11387. shared_flag='-shared'
  11388. if test "$aix_use_runtimelinking" = yes; then
  11389. shared_flag="$shared_flag "'${wl}-G'
  11390. fi
  11391. else
  11392. # not using gcc
  11393. if test "$host_cpu" = ia64; then
  11394. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11395. # chokes on -Wl,-G. The following line is correct:
  11396. shared_flag='-G'
  11397. else
  11398. if test "$aix_use_runtimelinking" = yes; then
  11399. shared_flag='${wl}-G'
  11400. else
  11401. shared_flag='${wl}-bM:SRE'
  11402. fi
  11403. fi
  11404. fi
  11405. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11406. # It seems that -bexpall does not export symbols beginning with
  11407. # underscore (_), so it is better to generate a list of symbols to
  11408. # export.
  11409. always_export_symbols_CXX=yes
  11410. if test "$aix_use_runtimelinking" = yes; then
  11411. # Warning - without using the other runtime loading flags (-brtl),
  11412. # -berok will link without error, but may produce a broken library.
  11413. allow_undefined_flag_CXX='-berok'
  11414. # Determine the default libpath from the value encoded in an empty
  11415. # executable.
  11416. if test "${lt_cv_aix_libpath+set}" = set; then
  11417. aix_libpath=$lt_cv_aix_libpath
  11418. else
  11419. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11420. $as_echo_n "(cached) " >&6
  11421. else
  11422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11423. /* end confdefs.h. */
  11424. int
  11425. main ()
  11426. {
  11427. ;
  11428. return 0;
  11429. }
  11430. _ACEOF
  11431. if ac_fn_cxx_try_link "$LINENO"; then :
  11432. lt_aix_libpath_sed='
  11433. /Import File Strings/,/^$/ {
  11434. /^0/ {
  11435. s/^0 *\([^ ]*\) *$/\1/
  11436. p
  11437. }
  11438. }'
  11439. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11440. # Check for a 64-bit object if we didn't find anything.
  11441. if test -z "$lt_cv_aix_libpath__CXX"; then
  11442. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11443. fi
  11444. fi
  11445. rm -f core conftest.err conftest.$ac_objext \
  11446. conftest$ac_exeext conftest.$ac_ext
  11447. if test -z "$lt_cv_aix_libpath__CXX"; then
  11448. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11449. fi
  11450. fi
  11451. aix_libpath=$lt_cv_aix_libpath__CXX
  11452. fi
  11453. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11454. 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"
  11455. else
  11456. if test "$host_cpu" = ia64; then
  11457. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11458. allow_undefined_flag_CXX="-z nodefs"
  11459. 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"
  11460. else
  11461. # Determine the default libpath from the value encoded in an
  11462. # empty executable.
  11463. if test "${lt_cv_aix_libpath+set}" = set; then
  11464. aix_libpath=$lt_cv_aix_libpath
  11465. else
  11466. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11467. $as_echo_n "(cached) " >&6
  11468. else
  11469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11470. /* end confdefs.h. */
  11471. int
  11472. main ()
  11473. {
  11474. ;
  11475. return 0;
  11476. }
  11477. _ACEOF
  11478. if ac_fn_cxx_try_link "$LINENO"; then :
  11479. lt_aix_libpath_sed='
  11480. /Import File Strings/,/^$/ {
  11481. /^0/ {
  11482. s/^0 *\([^ ]*\) *$/\1/
  11483. p
  11484. }
  11485. }'
  11486. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11487. # Check for a 64-bit object if we didn't find anything.
  11488. if test -z "$lt_cv_aix_libpath__CXX"; then
  11489. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11490. fi
  11491. fi
  11492. rm -f core conftest.err conftest.$ac_objext \
  11493. conftest$ac_exeext conftest.$ac_ext
  11494. if test -z "$lt_cv_aix_libpath__CXX"; then
  11495. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11496. fi
  11497. fi
  11498. aix_libpath=$lt_cv_aix_libpath__CXX
  11499. fi
  11500. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11501. # Warning - without using the other run time loading flags,
  11502. # -berok will link without error, but may produce a broken library.
  11503. no_undefined_flag_CXX=' ${wl}-bernotok'
  11504. allow_undefined_flag_CXX=' ${wl}-berok'
  11505. if test "$with_gnu_ld" = yes; then
  11506. # We only use this code for GNU lds that support --whole-archive.
  11507. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11508. else
  11509. # Exported symbols can be pulled into shared objects from archives
  11510. whole_archive_flag_spec_CXX='$convenience'
  11511. fi
  11512. archive_cmds_need_lc_CXX=yes
  11513. # This is similar to how AIX traditionally builds its shared
  11514. # libraries.
  11515. 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'
  11516. fi
  11517. fi
  11518. ;;
  11519. beos*)
  11520. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11521. allow_undefined_flag_CXX=unsupported
  11522. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11523. # support --undefined. This deserves some investigation. FIXME
  11524. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11525. else
  11526. ld_shlibs_CXX=no
  11527. fi
  11528. ;;
  11529. chorus*)
  11530. case $cc_basename in
  11531. *)
  11532. # FIXME: insert proper C++ library support
  11533. ld_shlibs_CXX=no
  11534. ;;
  11535. esac
  11536. ;;
  11537. cygwin* | mingw* | pw32* | cegcc*)
  11538. case $GXX,$cc_basename in
  11539. ,cl* | no,cl*)
  11540. # Native MSVC
  11541. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11542. # no search path for DLLs.
  11543. hardcode_libdir_flag_spec_CXX=' '
  11544. allow_undefined_flag_CXX=unsupported
  11545. always_export_symbols_CXX=yes
  11546. file_list_spec_CXX='@'
  11547. # Tell ltmain to make .lib files, not .a files.
  11548. libext=lib
  11549. # Tell ltmain to make .dll files, not .so files.
  11550. shrext_cmds=".dll"
  11551. # FIXME: Setting linknames here is a bad hack.
  11552. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11553. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11554. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11555. else
  11556. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11557. fi~
  11558. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11559. linknames='
  11560. # The linker will not automatically build a static lib if we build a DLL.
  11561. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11562. enable_shared_with_static_runtimes_CXX=yes
  11563. # Don't use ranlib
  11564. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11565. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11566. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11567. case $lt_outputfile in
  11568. *.exe|*.EXE) ;;
  11569. *)
  11570. lt_outputfile="$lt_outputfile.exe"
  11571. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11572. ;;
  11573. esac~
  11574. func_to_tool_file "$lt_outputfile"~
  11575. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11576. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11577. $RM "$lt_outputfile.manifest";
  11578. fi'
  11579. ;;
  11580. *)
  11581. # g++
  11582. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11583. # as there is no search path for DLLs.
  11584. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11585. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11586. allow_undefined_flag_CXX=unsupported
  11587. always_export_symbols_CXX=no
  11588. enable_shared_with_static_runtimes_CXX=yes
  11589. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11590. 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'
  11591. # If the export-symbols file already is a .def file (1st line
  11592. # is EXPORTS), use it as is; otherwise, prepend...
  11593. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11594. cp $export_symbols $output_objdir/$soname.def;
  11595. else
  11596. echo EXPORTS > $output_objdir/$soname.def;
  11597. cat $export_symbols >> $output_objdir/$soname.def;
  11598. fi~
  11599. $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'
  11600. else
  11601. ld_shlibs_CXX=no
  11602. fi
  11603. ;;
  11604. esac
  11605. ;;
  11606. darwin* | rhapsody*)
  11607. archive_cmds_need_lc_CXX=no
  11608. hardcode_direct_CXX=no
  11609. hardcode_automatic_CXX=yes
  11610. hardcode_shlibpath_var_CXX=unsupported
  11611. if test "$lt_cv_ld_force_load" = "yes"; then
  11612. 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\"`'
  11613. else
  11614. whole_archive_flag_spec_CXX=''
  11615. fi
  11616. link_all_deplibs_CXX=yes
  11617. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11618. case $cc_basename in
  11619. ifort*) _lt_dar_can_shared=yes ;;
  11620. *) _lt_dar_can_shared=$GCC ;;
  11621. esac
  11622. if test "$_lt_dar_can_shared" = "yes"; then
  11623. output_verbose_link_cmd=func_echo_all
  11624. 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}"
  11625. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11626. 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}"
  11627. 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}"
  11628. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11629. 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}"
  11630. 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}"
  11631. fi
  11632. else
  11633. ld_shlibs_CXX=no
  11634. fi
  11635. ;;
  11636. dgux*)
  11637. case $cc_basename in
  11638. ec++*)
  11639. # FIXME: insert proper C++ library support
  11640. ld_shlibs_CXX=no
  11641. ;;
  11642. ghcx*)
  11643. # Green Hills C++ Compiler
  11644. # FIXME: insert proper C++ library support
  11645. ld_shlibs_CXX=no
  11646. ;;
  11647. *)
  11648. # FIXME: insert proper C++ library support
  11649. ld_shlibs_CXX=no
  11650. ;;
  11651. esac
  11652. ;;
  11653. freebsd2.*)
  11654. # C++ shared libraries reported to be fairly broken before
  11655. # switch to ELF
  11656. ld_shlibs_CXX=no
  11657. ;;
  11658. freebsd-elf*)
  11659. archive_cmds_need_lc_CXX=no
  11660. ;;
  11661. freebsd* | dragonfly*)
  11662. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11663. # conventions
  11664. ld_shlibs_CXX=yes
  11665. ;;
  11666. gnu*)
  11667. ;;
  11668. haiku*)
  11669. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11670. link_all_deplibs_CXX=yes
  11671. ;;
  11672. hpux9*)
  11673. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11674. hardcode_libdir_separator_CXX=:
  11675. export_dynamic_flag_spec_CXX='${wl}-E'
  11676. hardcode_direct_CXX=yes
  11677. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11678. # but as the default
  11679. # location of the library.
  11680. case $cc_basename in
  11681. CC*)
  11682. # FIXME: insert proper C++ library support
  11683. ld_shlibs_CXX=no
  11684. ;;
  11685. aCC*)
  11686. 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'
  11687. # Commands to make compiler produce verbose output that lists
  11688. # what "hidden" libraries, object files and flags are used when
  11689. # linking a shared library.
  11690. #
  11691. # There doesn't appear to be a way to prevent this compiler from
  11692. # explicitly linking system object files so we need to strip them
  11693. # from the output so that they don't get included in the library
  11694. # dependencies.
  11695. 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"'
  11696. ;;
  11697. *)
  11698. if test "$GXX" = yes; then
  11699. 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'
  11700. else
  11701. # FIXME: insert proper C++ library support
  11702. ld_shlibs_CXX=no
  11703. fi
  11704. ;;
  11705. esac
  11706. ;;
  11707. hpux10*|hpux11*)
  11708. if test $with_gnu_ld = no; then
  11709. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11710. hardcode_libdir_separator_CXX=:
  11711. case $host_cpu in
  11712. hppa*64*|ia64*)
  11713. ;;
  11714. *)
  11715. export_dynamic_flag_spec_CXX='${wl}-E'
  11716. ;;
  11717. esac
  11718. fi
  11719. case $host_cpu in
  11720. hppa*64*|ia64*)
  11721. hardcode_direct_CXX=no
  11722. hardcode_shlibpath_var_CXX=no
  11723. ;;
  11724. *)
  11725. hardcode_direct_CXX=yes
  11726. hardcode_direct_absolute_CXX=yes
  11727. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11728. # but as the default
  11729. # location of the library.
  11730. ;;
  11731. esac
  11732. case $cc_basename in
  11733. CC*)
  11734. # FIXME: insert proper C++ library support
  11735. ld_shlibs_CXX=no
  11736. ;;
  11737. aCC*)
  11738. case $host_cpu in
  11739. hppa*64*)
  11740. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11741. ;;
  11742. ia64*)
  11743. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11744. ;;
  11745. *)
  11746. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11747. ;;
  11748. esac
  11749. # Commands to make compiler produce verbose output that lists
  11750. # what "hidden" libraries, object files and flags are used when
  11751. # linking a shared library.
  11752. #
  11753. # There doesn't appear to be a way to prevent this compiler from
  11754. # explicitly linking system object files so we need to strip them
  11755. # from the output so that they don't get included in the library
  11756. # dependencies.
  11757. 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"'
  11758. ;;
  11759. *)
  11760. if test "$GXX" = yes; then
  11761. if test $with_gnu_ld = no; then
  11762. case $host_cpu in
  11763. hppa*64*)
  11764. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11765. ;;
  11766. ia64*)
  11767. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11768. ;;
  11769. *)
  11770. 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'
  11771. ;;
  11772. esac
  11773. fi
  11774. else
  11775. # FIXME: insert proper C++ library support
  11776. ld_shlibs_CXX=no
  11777. fi
  11778. ;;
  11779. esac
  11780. ;;
  11781. interix[3-9]*)
  11782. hardcode_direct_CXX=no
  11783. hardcode_shlibpath_var_CXX=no
  11784. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11785. export_dynamic_flag_spec_CXX='${wl}-E'
  11786. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11787. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11788. # default) and relocated if they conflict, which is a slow very memory
  11789. # consuming and fragmenting process. To avoid this, we pick a random,
  11790. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11791. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11792. 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'
  11793. 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'
  11794. ;;
  11795. irix5* | irix6*)
  11796. case $cc_basename in
  11797. CC*)
  11798. # SGI C++
  11799. 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'
  11800. # Archives containing C++ object files must be created using
  11801. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11802. # necessary to make sure instantiated templates are included
  11803. # in the archive.
  11804. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11805. ;;
  11806. *)
  11807. if test "$GXX" = yes; then
  11808. if test "$with_gnu_ld" = no; then
  11809. 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'
  11810. else
  11811. 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'
  11812. fi
  11813. fi
  11814. link_all_deplibs_CXX=yes
  11815. ;;
  11816. esac
  11817. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11818. hardcode_libdir_separator_CXX=:
  11819. inherit_rpath_CXX=yes
  11820. ;;
  11821. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11822. case $cc_basename in
  11823. KCC*)
  11824. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11825. # KCC will only create a shared library if the output file
  11826. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11827. # to its proper name (with version) after linking.
  11828. 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'
  11829. 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'
  11830. # Commands to make compiler produce verbose output that lists
  11831. # what "hidden" libraries, object files and flags are used when
  11832. # linking a shared library.
  11833. #
  11834. # There doesn't appear to be a way to prevent this compiler from
  11835. # explicitly linking system object files so we need to strip them
  11836. # from the output so that they don't get included in the library
  11837. # dependencies.
  11838. 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"'
  11839. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11840. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11841. # Archives containing C++ object files must be created using
  11842. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11843. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11844. ;;
  11845. icpc* | ecpc* )
  11846. # Intel C++
  11847. with_gnu_ld=yes
  11848. # version 8.0 and above of icpc choke on multiply defined symbols
  11849. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11850. # earlier do not add the objects themselves.
  11851. case `$CC -V 2>&1` in
  11852. *"Version 7."*)
  11853. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11854. 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'
  11855. ;;
  11856. *) # Version 8.0 or newer
  11857. tmp_idyn=
  11858. case $host_cpu in
  11859. ia64*) tmp_idyn=' -i_dynamic';;
  11860. esac
  11861. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11862. 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'
  11863. ;;
  11864. esac
  11865. archive_cmds_need_lc_CXX=no
  11866. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11867. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11868. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11869. ;;
  11870. pgCC* | pgcpp*)
  11871. # Portland Group C++ compiler
  11872. case `$CC -V` in
  11873. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11874. prelink_cmds_CXX='tpldir=Template.dir~
  11875. rm -rf $tpldir~
  11876. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11877. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11878. old_archive_cmds_CXX='tpldir=Template.dir~
  11879. rm -rf $tpldir~
  11880. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11881. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11882. $RANLIB $oldlib'
  11883. archive_cmds_CXX='tpldir=Template.dir~
  11884. rm -rf $tpldir~
  11885. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11886. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11887. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11888. rm -rf $tpldir~
  11889. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11890. $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'
  11891. ;;
  11892. *) # Version 6 and above use weak symbols
  11893. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11894. 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'
  11895. ;;
  11896. esac
  11897. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11898. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11899. 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'
  11900. ;;
  11901. cxx*)
  11902. # Compaq C++
  11903. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11904. 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'
  11905. runpath_var=LD_RUN_PATH
  11906. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11907. hardcode_libdir_separator_CXX=:
  11908. # Commands to make compiler produce verbose output that lists
  11909. # what "hidden" libraries, object files and flags are used when
  11910. # linking a shared library.
  11911. #
  11912. # There doesn't appear to be a way to prevent this compiler from
  11913. # explicitly linking system object files so we need to strip them
  11914. # from the output so that they don't get included in the library
  11915. # dependencies.
  11916. 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'
  11917. ;;
  11918. xl* | mpixl* | bgxl*)
  11919. # IBM XL 8.0 on PPC, with GNU ld
  11920. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11921. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11922. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11923. if test "x$supports_anon_versioning" = xyes; then
  11924. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11925. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11926. echo "local: *; };" >> $output_objdir/$libname.ver~
  11927. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11928. fi
  11929. ;;
  11930. *)
  11931. case `$CC -V 2>&1 | sed 5q` in
  11932. *Sun\ C*)
  11933. # Sun C++ 5.9
  11934. no_undefined_flag_CXX=' -zdefs'
  11935. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11936. 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'
  11937. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11938. 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'
  11939. compiler_needs_object_CXX=yes
  11940. # Not sure whether something based on
  11941. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11942. # would be better.
  11943. output_verbose_link_cmd='func_echo_all'
  11944. # Archives containing C++ object files must be created using
  11945. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11946. # necessary to make sure instantiated templates are included
  11947. # in the archive.
  11948. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11949. ;;
  11950. esac
  11951. ;;
  11952. esac
  11953. ;;
  11954. lynxos*)
  11955. # FIXME: insert proper C++ library support
  11956. ld_shlibs_CXX=no
  11957. ;;
  11958. m88k*)
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. ;;
  11962. mvs*)
  11963. case $cc_basename in
  11964. cxx*)
  11965. # FIXME: insert proper C++ library support
  11966. ld_shlibs_CXX=no
  11967. ;;
  11968. *)
  11969. # FIXME: insert proper C++ library support
  11970. ld_shlibs_CXX=no
  11971. ;;
  11972. esac
  11973. ;;
  11974. netbsd*)
  11975. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11976. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11977. wlarc=
  11978. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11979. hardcode_direct_CXX=yes
  11980. hardcode_shlibpath_var_CXX=no
  11981. fi
  11982. # Workaround some broken pre-1.5 toolchains
  11983. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11984. ;;
  11985. *nto* | *qnx*)
  11986. ld_shlibs_CXX=yes
  11987. ;;
  11988. openbsd2*)
  11989. # C++ shared libraries are fairly broken
  11990. ld_shlibs_CXX=no
  11991. ;;
  11992. openbsd*)
  11993. if test -f /usr/libexec/ld.so; then
  11994. hardcode_direct_CXX=yes
  11995. hardcode_shlibpath_var_CXX=no
  11996. hardcode_direct_absolute_CXX=yes
  11997. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11998. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11999. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12000. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12001. export_dynamic_flag_spec_CXX='${wl}-E'
  12002. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12003. fi
  12004. output_verbose_link_cmd=func_echo_all
  12005. else
  12006. ld_shlibs_CXX=no
  12007. fi
  12008. ;;
  12009. osf3* | osf4* | osf5*)
  12010. case $cc_basename in
  12011. KCC*)
  12012. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12013. # KCC will only create a shared library if the output file
  12014. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12015. # to its proper name (with version) after linking.
  12016. 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'
  12017. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12018. hardcode_libdir_separator_CXX=:
  12019. # Archives containing C++ object files must be created using
  12020. # the KAI C++ compiler.
  12021. case $host in
  12022. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12023. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12024. esac
  12025. ;;
  12026. RCC*)
  12027. # Rational C++ 2.4.1
  12028. # FIXME: insert proper C++ library support
  12029. ld_shlibs_CXX=no
  12030. ;;
  12031. cxx*)
  12032. case $host in
  12033. osf3*)
  12034. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12035. 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'
  12036. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12037. ;;
  12038. *)
  12039. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12040. 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'
  12041. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12042. echo "-hidden">> $lib.exp~
  12043. $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~
  12044. $RM $lib.exp'
  12045. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12046. ;;
  12047. esac
  12048. hardcode_libdir_separator_CXX=:
  12049. # Commands to make compiler produce verbose output that lists
  12050. # what "hidden" libraries, object files and flags are used when
  12051. # linking a shared library.
  12052. #
  12053. # There doesn't appear to be a way to prevent this compiler from
  12054. # explicitly linking system object files so we need to strip them
  12055. # from the output so that they don't get included in the library
  12056. # dependencies.
  12057. 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"'
  12058. ;;
  12059. *)
  12060. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12061. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12062. case $host in
  12063. osf3*)
  12064. 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'
  12065. ;;
  12066. *)
  12067. 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'
  12068. ;;
  12069. esac
  12070. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12071. hardcode_libdir_separator_CXX=:
  12072. # Commands to make compiler produce verbose output that lists
  12073. # what "hidden" libraries, object files and flags are used when
  12074. # linking a shared library.
  12075. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12076. else
  12077. # FIXME: insert proper C++ library support
  12078. ld_shlibs_CXX=no
  12079. fi
  12080. ;;
  12081. esac
  12082. ;;
  12083. psos*)
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. sunos4*)
  12088. case $cc_basename in
  12089. CC*)
  12090. # Sun C++ 4.x
  12091. # FIXME: insert proper C++ library support
  12092. ld_shlibs_CXX=no
  12093. ;;
  12094. lcc*)
  12095. # Lucid
  12096. # FIXME: insert proper C++ library support
  12097. ld_shlibs_CXX=no
  12098. ;;
  12099. *)
  12100. # FIXME: insert proper C++ library support
  12101. ld_shlibs_CXX=no
  12102. ;;
  12103. esac
  12104. ;;
  12105. solaris*)
  12106. case $cc_basename in
  12107. CC* | sunCC*)
  12108. # Sun C++ 4.2, 5.x and Centerline C++
  12109. archive_cmds_need_lc_CXX=yes
  12110. no_undefined_flag_CXX=' -zdefs'
  12111. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12112. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12113. $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'
  12114. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12115. hardcode_shlibpath_var_CXX=no
  12116. case $host_os in
  12117. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12118. *)
  12119. # The compiler driver will combine and reorder linker options,
  12120. # but understands `-z linker_flag'.
  12121. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12122. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12123. ;;
  12124. esac
  12125. link_all_deplibs_CXX=yes
  12126. output_verbose_link_cmd='func_echo_all'
  12127. # Archives containing C++ object files must be created using
  12128. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12129. # necessary to make sure instantiated templates are included
  12130. # in the archive.
  12131. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12132. ;;
  12133. gcx*)
  12134. # Green Hills C++ Compiler
  12135. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12136. # The C++ compiler must be used to create the archive.
  12137. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12138. ;;
  12139. *)
  12140. # GNU C++ compiler with Solaris linker
  12141. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12142. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12143. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12144. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12145. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12146. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12147. # Commands to make compiler produce verbose output that lists
  12148. # what "hidden" libraries, object files and flags are used when
  12149. # linking a shared library.
  12150. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12151. else
  12152. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12153. # platform.
  12154. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12155. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12156. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12157. # Commands to make compiler produce verbose output that lists
  12158. # what "hidden" libraries, object files and flags are used when
  12159. # linking a shared library.
  12160. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12161. fi
  12162. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12163. case $host_os in
  12164. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12165. *)
  12166. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12167. ;;
  12168. esac
  12169. fi
  12170. ;;
  12171. esac
  12172. ;;
  12173. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12174. no_undefined_flag_CXX='${wl}-z,text'
  12175. archive_cmds_need_lc_CXX=no
  12176. hardcode_shlibpath_var_CXX=no
  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. ;;
  12183. *)
  12184. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12185. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12186. ;;
  12187. esac
  12188. ;;
  12189. sysv5* | sco3.2v5* | sco5v6*)
  12190. # Note: We can NOT use -z defs as we might desire, because we do not
  12191. # link with -lc, and that would cause any symbols used from libc to
  12192. # always be unresolved, which means just about no library would
  12193. # ever link correctly. If we're not using GNU ld we use -z text
  12194. # though, which does catch some bad symbols but isn't as heavy-handed
  12195. # as -z defs.
  12196. no_undefined_flag_CXX='${wl}-z,text'
  12197. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12198. archive_cmds_need_lc_CXX=no
  12199. hardcode_shlibpath_var_CXX=no
  12200. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12201. hardcode_libdir_separator_CXX=':'
  12202. link_all_deplibs_CXX=yes
  12203. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12204. runpath_var='LD_RUN_PATH'
  12205. case $cc_basename in
  12206. CC*)
  12207. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12208. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12209. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12210. '"$old_archive_cmds_CXX"
  12211. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12212. '"$reload_cmds_CXX"
  12213. ;;
  12214. *)
  12215. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12216. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12217. ;;
  12218. esac
  12219. ;;
  12220. tandem*)
  12221. case $cc_basename in
  12222. NCC*)
  12223. # NonStop-UX NCC 3.20
  12224. # FIXME: insert proper C++ library support
  12225. ld_shlibs_CXX=no
  12226. ;;
  12227. *)
  12228. # FIXME: insert proper C++ library support
  12229. ld_shlibs_CXX=no
  12230. ;;
  12231. esac
  12232. ;;
  12233. vxworks*)
  12234. # FIXME: insert proper C++ library support
  12235. ld_shlibs_CXX=no
  12236. ;;
  12237. *)
  12238. # FIXME: insert proper C++ library support
  12239. ld_shlibs_CXX=no
  12240. ;;
  12241. esac
  12242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12243. $as_echo "$ld_shlibs_CXX" >&6; }
  12244. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12245. GCC_CXX="$GXX"
  12246. LD_CXX="$LD"
  12247. ## CAVEAT EMPTOR:
  12248. ## There is no encapsulation within the following macros, do not change
  12249. ## the running order or otherwise move them around unless you know exactly
  12250. ## what you are doing...
  12251. # Dependencies to place before and after the object being linked:
  12252. predep_objects_CXX=
  12253. postdep_objects_CXX=
  12254. predeps_CXX=
  12255. postdeps_CXX=
  12256. compiler_lib_search_path_CXX=
  12257. cat > conftest.$ac_ext <<_LT_EOF
  12258. class Foo
  12259. {
  12260. public:
  12261. Foo (void) { a = 0; }
  12262. private:
  12263. int a;
  12264. };
  12265. _LT_EOF
  12266. _lt_libdeps_save_CFLAGS=$CFLAGS
  12267. case "$CC $CFLAGS " in #(
  12268. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12269. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12270. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12271. esac
  12272. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12273. (eval $ac_compile) 2>&5
  12274. ac_status=$?
  12275. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12276. test $ac_status = 0; }; then
  12277. # Parse the compiler output and extract the necessary
  12278. # objects, libraries and library flags.
  12279. # Sentinel used to keep track of whether or not we are before
  12280. # the conftest object file.
  12281. pre_test_object_deps_done=no
  12282. for p in `eval "$output_verbose_link_cmd"`; do
  12283. case ${prev}${p} in
  12284. -L* | -R* | -l*)
  12285. # Some compilers place space between "-{L,R}" and the path.
  12286. # Remove the space.
  12287. if test $p = "-L" ||
  12288. test $p = "-R"; then
  12289. prev=$p
  12290. continue
  12291. fi
  12292. # Expand the sysroot to ease extracting the directories later.
  12293. if test -z "$prev"; then
  12294. case $p in
  12295. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12296. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12297. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12298. esac
  12299. fi
  12300. case $p in
  12301. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12302. esac
  12303. if test "$pre_test_object_deps_done" = no; then
  12304. case ${prev} in
  12305. -L | -R)
  12306. # Internal compiler library paths should come after those
  12307. # provided the user. The postdeps already come after the
  12308. # user supplied libs so there is no need to process them.
  12309. if test -z "$compiler_lib_search_path_CXX"; then
  12310. compiler_lib_search_path_CXX="${prev}${p}"
  12311. else
  12312. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12313. fi
  12314. ;;
  12315. # The "-l" case would never come before the object being
  12316. # linked, so don't bother handling this case.
  12317. esac
  12318. else
  12319. if test -z "$postdeps_CXX"; then
  12320. postdeps_CXX="${prev}${p}"
  12321. else
  12322. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12323. fi
  12324. fi
  12325. prev=
  12326. ;;
  12327. *.lto.$objext) ;; # Ignore GCC LTO objects
  12328. *.$objext)
  12329. # This assumes that the test object file only shows up
  12330. # once in the compiler output.
  12331. if test "$p" = "conftest.$objext"; then
  12332. pre_test_object_deps_done=yes
  12333. continue
  12334. fi
  12335. if test "$pre_test_object_deps_done" = no; then
  12336. if test -z "$predep_objects_CXX"; then
  12337. predep_objects_CXX="$p"
  12338. else
  12339. predep_objects_CXX="$predep_objects_CXX $p"
  12340. fi
  12341. else
  12342. if test -z "$postdep_objects_CXX"; then
  12343. postdep_objects_CXX="$p"
  12344. else
  12345. postdep_objects_CXX="$postdep_objects_CXX $p"
  12346. fi
  12347. fi
  12348. ;;
  12349. *) ;; # Ignore the rest.
  12350. esac
  12351. done
  12352. # Clean up.
  12353. rm -f a.out a.exe
  12354. else
  12355. echo "libtool.m4: error: problem compiling CXX test program"
  12356. fi
  12357. $RM -f confest.$objext
  12358. CFLAGS=$_lt_libdeps_save_CFLAGS
  12359. # PORTME: override above test on systems where it is broken
  12360. case $host_os in
  12361. interix[3-9]*)
  12362. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12363. # hack all around it, let's just trust "g++" to DTRT.
  12364. predep_objects_CXX=
  12365. postdep_objects_CXX=
  12366. postdeps_CXX=
  12367. ;;
  12368. linux*)
  12369. case `$CC -V 2>&1 | sed 5q` in
  12370. *Sun\ C*)
  12371. # Sun C++ 5.9
  12372. # The more standards-conforming stlport4 library is
  12373. # incompatible with the Cstd library. Avoid specifying
  12374. # it if it's in CXXFLAGS. Ignore libCrun as
  12375. # -library=stlport4 depends on it.
  12376. case " $CXX $CXXFLAGS " in
  12377. *" -library=stlport4 "*)
  12378. solaris_use_stlport4=yes
  12379. ;;
  12380. esac
  12381. if test "$solaris_use_stlport4" != yes; then
  12382. postdeps_CXX='-library=Cstd -library=Crun'
  12383. fi
  12384. ;;
  12385. esac
  12386. ;;
  12387. solaris*)
  12388. case $cc_basename in
  12389. CC* | sunCC*)
  12390. # The more standards-conforming stlport4 library is
  12391. # incompatible with the Cstd library. Avoid specifying
  12392. # it if it's in CXXFLAGS. Ignore libCrun as
  12393. # -library=stlport4 depends on it.
  12394. case " $CXX $CXXFLAGS " in
  12395. *" -library=stlport4 "*)
  12396. solaris_use_stlport4=yes
  12397. ;;
  12398. esac
  12399. # Adding this requires a known-good setup of shared libraries for
  12400. # Sun compiler versions before 5.6, else PIC objects from an old
  12401. # archive will be linked into the output, leading to subtle bugs.
  12402. if test "$solaris_use_stlport4" != yes; then
  12403. postdeps_CXX='-library=Cstd -library=Crun'
  12404. fi
  12405. ;;
  12406. esac
  12407. ;;
  12408. esac
  12409. case " $postdeps_CXX " in
  12410. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12411. esac
  12412. compiler_lib_search_dirs_CXX=
  12413. if test -n "${compiler_lib_search_path_CXX}"; then
  12414. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12415. fi
  12416. lt_prog_compiler_wl_CXX=
  12417. lt_prog_compiler_pic_CXX=
  12418. lt_prog_compiler_static_CXX=
  12419. # C++ specific cases for pic, static, wl, etc.
  12420. if test "$GXX" = yes; then
  12421. lt_prog_compiler_wl_CXX='-Wl,'
  12422. lt_prog_compiler_static_CXX='-static'
  12423. case $host_os in
  12424. aix*)
  12425. # All AIX code is PIC.
  12426. if test "$host_cpu" = ia64; then
  12427. # AIX 5 now supports IA64 processor
  12428. lt_prog_compiler_static_CXX='-Bstatic'
  12429. fi
  12430. ;;
  12431. amigaos*)
  12432. case $host_cpu in
  12433. powerpc)
  12434. # see comment about AmigaOS4 .so support
  12435. lt_prog_compiler_pic_CXX='-fPIC'
  12436. ;;
  12437. m68k)
  12438. # FIXME: we need at least 68020 code to build shared libraries, but
  12439. # adding the `-m68020' flag to GCC prevents building anything better,
  12440. # like `-m68040'.
  12441. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12442. ;;
  12443. esac
  12444. ;;
  12445. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12446. # PIC is the default for these OSes.
  12447. ;;
  12448. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12449. # This hack is so that the source file can tell whether it is being
  12450. # built for inclusion in a dll (and should export symbols for example).
  12451. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12452. # (--disable-auto-import) libraries
  12453. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12454. ;;
  12455. darwin* | rhapsody*)
  12456. # PIC is the default on this platform
  12457. # Common symbols not allowed in MH_DYLIB files
  12458. lt_prog_compiler_pic_CXX='-fno-common'
  12459. ;;
  12460. *djgpp*)
  12461. # DJGPP does not support shared libraries at all
  12462. lt_prog_compiler_pic_CXX=
  12463. ;;
  12464. haiku*)
  12465. # PIC is the default for Haiku.
  12466. # The "-static" flag exists, but is broken.
  12467. lt_prog_compiler_static_CXX=
  12468. ;;
  12469. interix[3-9]*)
  12470. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12471. # Instead, we relocate shared libraries at runtime.
  12472. ;;
  12473. sysv4*MP*)
  12474. if test -d /usr/nec; then
  12475. lt_prog_compiler_pic_CXX=-Kconform_pic
  12476. fi
  12477. ;;
  12478. hpux*)
  12479. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12480. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12481. # sets the default TLS model and affects inlining.
  12482. case $host_cpu in
  12483. hppa*64*)
  12484. ;;
  12485. *)
  12486. lt_prog_compiler_pic_CXX='-fPIC'
  12487. ;;
  12488. esac
  12489. ;;
  12490. *qnx* | *nto*)
  12491. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12492. # it will coredump.
  12493. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12494. ;;
  12495. *)
  12496. lt_prog_compiler_pic_CXX='-fPIC'
  12497. ;;
  12498. esac
  12499. else
  12500. case $host_os in
  12501. aix[4-9]*)
  12502. # All AIX code is PIC.
  12503. if test "$host_cpu" = ia64; then
  12504. # AIX 5 now supports IA64 processor
  12505. lt_prog_compiler_static_CXX='-Bstatic'
  12506. else
  12507. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12508. fi
  12509. ;;
  12510. chorus*)
  12511. case $cc_basename in
  12512. cxch68*)
  12513. # Green Hills C++ Compiler
  12514. # _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"
  12515. ;;
  12516. esac
  12517. ;;
  12518. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12519. # This hack is so that the source file can tell whether it is being
  12520. # built for inclusion in a dll (and should export symbols for example).
  12521. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12522. ;;
  12523. dgux*)
  12524. case $cc_basename in
  12525. ec++*)
  12526. lt_prog_compiler_pic_CXX='-KPIC'
  12527. ;;
  12528. ghcx*)
  12529. # Green Hills C++ Compiler
  12530. lt_prog_compiler_pic_CXX='-pic'
  12531. ;;
  12532. *)
  12533. ;;
  12534. esac
  12535. ;;
  12536. freebsd* | dragonfly*)
  12537. # FreeBSD uses GNU C++
  12538. ;;
  12539. hpux9* | hpux10* | hpux11*)
  12540. case $cc_basename in
  12541. CC*)
  12542. lt_prog_compiler_wl_CXX='-Wl,'
  12543. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12544. if test "$host_cpu" != ia64; then
  12545. lt_prog_compiler_pic_CXX='+Z'
  12546. fi
  12547. ;;
  12548. aCC*)
  12549. lt_prog_compiler_wl_CXX='-Wl,'
  12550. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12551. case $host_cpu in
  12552. hppa*64*|ia64*)
  12553. # +Z the default
  12554. ;;
  12555. *)
  12556. lt_prog_compiler_pic_CXX='+Z'
  12557. ;;
  12558. esac
  12559. ;;
  12560. *)
  12561. ;;
  12562. esac
  12563. ;;
  12564. interix*)
  12565. # This is c89, which is MS Visual C++ (no shared libs)
  12566. # Anyone wants to do a port?
  12567. ;;
  12568. irix5* | irix6* | nonstopux*)
  12569. case $cc_basename in
  12570. CC*)
  12571. lt_prog_compiler_wl_CXX='-Wl,'
  12572. lt_prog_compiler_static_CXX='-non_shared'
  12573. # CC pic flag -KPIC is the default.
  12574. ;;
  12575. *)
  12576. ;;
  12577. esac
  12578. ;;
  12579. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12580. case $cc_basename in
  12581. KCC*)
  12582. # KAI C++ Compiler
  12583. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12584. lt_prog_compiler_pic_CXX='-fPIC'
  12585. ;;
  12586. ecpc* )
  12587. # old Intel C++ for x86_64 which still supported -KPIC.
  12588. lt_prog_compiler_wl_CXX='-Wl,'
  12589. lt_prog_compiler_pic_CXX='-KPIC'
  12590. lt_prog_compiler_static_CXX='-static'
  12591. ;;
  12592. icpc* )
  12593. # Intel C++, used to be incompatible with GCC.
  12594. # ICC 10 doesn't accept -KPIC any more.
  12595. lt_prog_compiler_wl_CXX='-Wl,'
  12596. lt_prog_compiler_pic_CXX='-fPIC'
  12597. lt_prog_compiler_static_CXX='-static'
  12598. ;;
  12599. pgCC* | pgcpp*)
  12600. # Portland Group C++ compiler
  12601. lt_prog_compiler_wl_CXX='-Wl,'
  12602. lt_prog_compiler_pic_CXX='-fpic'
  12603. lt_prog_compiler_static_CXX='-Bstatic'
  12604. ;;
  12605. cxx*)
  12606. # Compaq C++
  12607. # Make sure the PIC flag is empty. It appears that all Alpha
  12608. # Linux and Compaq Tru64 Unix objects are PIC.
  12609. lt_prog_compiler_pic_CXX=
  12610. lt_prog_compiler_static_CXX='-non_shared'
  12611. ;;
  12612. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12613. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12614. lt_prog_compiler_wl_CXX='-Wl,'
  12615. lt_prog_compiler_pic_CXX='-qpic'
  12616. lt_prog_compiler_static_CXX='-qstaticlink'
  12617. ;;
  12618. *)
  12619. case `$CC -V 2>&1 | sed 5q` in
  12620. *Sun\ C*)
  12621. # Sun C++ 5.9
  12622. lt_prog_compiler_pic_CXX='-KPIC'
  12623. lt_prog_compiler_static_CXX='-Bstatic'
  12624. lt_prog_compiler_wl_CXX='-Qoption ld '
  12625. ;;
  12626. esac
  12627. ;;
  12628. esac
  12629. ;;
  12630. lynxos*)
  12631. ;;
  12632. m88k*)
  12633. ;;
  12634. mvs*)
  12635. case $cc_basename in
  12636. cxx*)
  12637. lt_prog_compiler_pic_CXX='-W c,exportall'
  12638. ;;
  12639. *)
  12640. ;;
  12641. esac
  12642. ;;
  12643. netbsd*)
  12644. ;;
  12645. *qnx* | *nto*)
  12646. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12647. # it will coredump.
  12648. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12649. ;;
  12650. osf3* | osf4* | osf5*)
  12651. case $cc_basename in
  12652. KCC*)
  12653. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12654. ;;
  12655. RCC*)
  12656. # Rational C++ 2.4.1
  12657. lt_prog_compiler_pic_CXX='-pic'
  12658. ;;
  12659. cxx*)
  12660. # Digital/Compaq C++
  12661. lt_prog_compiler_wl_CXX='-Wl,'
  12662. # Make sure the PIC flag is empty. It appears that all Alpha
  12663. # Linux and Compaq Tru64 Unix objects are PIC.
  12664. lt_prog_compiler_pic_CXX=
  12665. lt_prog_compiler_static_CXX='-non_shared'
  12666. ;;
  12667. *)
  12668. ;;
  12669. esac
  12670. ;;
  12671. psos*)
  12672. ;;
  12673. solaris*)
  12674. case $cc_basename in
  12675. CC* | sunCC*)
  12676. # Sun C++ 4.2, 5.x and Centerline C++
  12677. lt_prog_compiler_pic_CXX='-KPIC'
  12678. lt_prog_compiler_static_CXX='-Bstatic'
  12679. lt_prog_compiler_wl_CXX='-Qoption ld '
  12680. ;;
  12681. gcx*)
  12682. # Green Hills C++ Compiler
  12683. lt_prog_compiler_pic_CXX='-PIC'
  12684. ;;
  12685. *)
  12686. ;;
  12687. esac
  12688. ;;
  12689. sunos4*)
  12690. case $cc_basename in
  12691. CC*)
  12692. # Sun C++ 4.x
  12693. lt_prog_compiler_pic_CXX='-pic'
  12694. lt_prog_compiler_static_CXX='-Bstatic'
  12695. ;;
  12696. lcc*)
  12697. # Lucid
  12698. lt_prog_compiler_pic_CXX='-pic'
  12699. ;;
  12700. *)
  12701. ;;
  12702. esac
  12703. ;;
  12704. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12705. case $cc_basename in
  12706. CC*)
  12707. lt_prog_compiler_wl_CXX='-Wl,'
  12708. lt_prog_compiler_pic_CXX='-KPIC'
  12709. lt_prog_compiler_static_CXX='-Bstatic'
  12710. ;;
  12711. esac
  12712. ;;
  12713. tandem*)
  12714. case $cc_basename in
  12715. NCC*)
  12716. # NonStop-UX NCC 3.20
  12717. lt_prog_compiler_pic_CXX='-KPIC'
  12718. ;;
  12719. *)
  12720. ;;
  12721. esac
  12722. ;;
  12723. vxworks*)
  12724. ;;
  12725. *)
  12726. lt_prog_compiler_can_build_shared_CXX=no
  12727. ;;
  12728. esac
  12729. fi
  12730. case $host_os in
  12731. # For platforms which do not support PIC, -DPIC is meaningless:
  12732. *djgpp*)
  12733. lt_prog_compiler_pic_CXX=
  12734. ;;
  12735. *)
  12736. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12737. ;;
  12738. esac
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12740. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12741. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12742. $as_echo_n "(cached) " >&6
  12743. else
  12744. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12745. fi
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12747. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12748. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12749. #
  12750. # Check to make sure the PIC flag actually works.
  12751. #
  12752. if test -n "$lt_prog_compiler_pic_CXX"; then
  12753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12754. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12755. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12756. $as_echo_n "(cached) " >&6
  12757. else
  12758. lt_cv_prog_compiler_pic_works_CXX=no
  12759. ac_outfile=conftest.$ac_objext
  12760. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12761. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12762. # Insert the option either (1) after the last *FLAGS variable, or
  12763. # (2) before a word containing "conftest.", or (3) at the end.
  12764. # Note that $ac_compile itself does not contain backslashes and begins
  12765. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12766. # The option is referenced via a variable to avoid confusing sed.
  12767. lt_compile=`echo "$ac_compile" | $SED \
  12768. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12769. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12770. -e 's:$: $lt_compiler_flag:'`
  12771. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12772. (eval "$lt_compile" 2>conftest.err)
  12773. ac_status=$?
  12774. cat conftest.err >&5
  12775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12776. if (exit $ac_status) && test -s "$ac_outfile"; then
  12777. # The compiler can only warn and ignore the option if not recognized
  12778. # So say no if there are warnings other than the usual output.
  12779. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12780. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12781. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12782. lt_cv_prog_compiler_pic_works_CXX=yes
  12783. fi
  12784. fi
  12785. $RM conftest*
  12786. fi
  12787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12788. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12789. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12790. case $lt_prog_compiler_pic_CXX in
  12791. "" | " "*) ;;
  12792. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12793. esac
  12794. else
  12795. lt_prog_compiler_pic_CXX=
  12796. lt_prog_compiler_can_build_shared_CXX=no
  12797. fi
  12798. fi
  12799. #
  12800. # Check to make sure the static flag actually works.
  12801. #
  12802. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12804. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12805. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12806. $as_echo_n "(cached) " >&6
  12807. else
  12808. lt_cv_prog_compiler_static_works_CXX=no
  12809. save_LDFLAGS="$LDFLAGS"
  12810. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12811. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12812. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12813. # The linker can only warn and ignore the option if not recognized
  12814. # So say no if there are warnings
  12815. if test -s conftest.err; then
  12816. # Append any errors to the config.log.
  12817. cat conftest.err 1>&5
  12818. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12819. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12820. if diff conftest.exp conftest.er2 >/dev/null; then
  12821. lt_cv_prog_compiler_static_works_CXX=yes
  12822. fi
  12823. else
  12824. lt_cv_prog_compiler_static_works_CXX=yes
  12825. fi
  12826. fi
  12827. $RM -r conftest*
  12828. LDFLAGS="$save_LDFLAGS"
  12829. fi
  12830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12831. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12832. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12833. :
  12834. else
  12835. lt_prog_compiler_static_CXX=
  12836. fi
  12837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12838. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12839. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12840. $as_echo_n "(cached) " >&6
  12841. else
  12842. lt_cv_prog_compiler_c_o_CXX=no
  12843. $RM -r conftest 2>/dev/null
  12844. mkdir conftest
  12845. cd conftest
  12846. mkdir out
  12847. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12848. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12849. # Insert the option either (1) after the last *FLAGS variable, or
  12850. # (2) before a word containing "conftest.", or (3) at the end.
  12851. # Note that $ac_compile itself does not contain backslashes and begins
  12852. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12853. lt_compile=`echo "$ac_compile" | $SED \
  12854. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12855. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12856. -e 's:$: $lt_compiler_flag:'`
  12857. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12858. (eval "$lt_compile" 2>out/conftest.err)
  12859. ac_status=$?
  12860. cat out/conftest.err >&5
  12861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12862. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12863. then
  12864. # The compiler can only warn and ignore the option if not recognized
  12865. # So say no if there are warnings
  12866. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12867. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12868. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12869. lt_cv_prog_compiler_c_o_CXX=yes
  12870. fi
  12871. fi
  12872. chmod u+w . 2>&5
  12873. $RM conftest*
  12874. # SGI C++ compiler will create directory out/ii_files/ for
  12875. # template instantiation
  12876. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12877. $RM out/* && rmdir out
  12878. cd ..
  12879. $RM -r conftest
  12880. $RM conftest*
  12881. fi
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12883. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12885. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12886. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12887. $as_echo_n "(cached) " >&6
  12888. else
  12889. lt_cv_prog_compiler_c_o_CXX=no
  12890. $RM -r conftest 2>/dev/null
  12891. mkdir conftest
  12892. cd conftest
  12893. mkdir out
  12894. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12895. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12896. # Insert the option either (1) after the last *FLAGS variable, or
  12897. # (2) before a word containing "conftest.", or (3) at the end.
  12898. # Note that $ac_compile itself does not contain backslashes and begins
  12899. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12900. lt_compile=`echo "$ac_compile" | $SED \
  12901. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12902. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12903. -e 's:$: $lt_compiler_flag:'`
  12904. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12905. (eval "$lt_compile" 2>out/conftest.err)
  12906. ac_status=$?
  12907. cat out/conftest.err >&5
  12908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12909. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12910. then
  12911. # The compiler can only warn and ignore the option if not recognized
  12912. # So say no if there are warnings
  12913. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12914. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12915. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12916. lt_cv_prog_compiler_c_o_CXX=yes
  12917. fi
  12918. fi
  12919. chmod u+w . 2>&5
  12920. $RM conftest*
  12921. # SGI C++ compiler will create directory out/ii_files/ for
  12922. # template instantiation
  12923. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12924. $RM out/* && rmdir out
  12925. cd ..
  12926. $RM -r conftest
  12927. $RM conftest*
  12928. fi
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12930. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12931. hard_links="nottested"
  12932. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12933. # do not overwrite the value of need_locks provided by the user
  12934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12935. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12936. hard_links=yes
  12937. $RM conftest*
  12938. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12939. touch conftest.a
  12940. ln conftest.a conftest.b 2>&5 || hard_links=no
  12941. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12943. $as_echo "$hard_links" >&6; }
  12944. if test "$hard_links" = no; then
  12945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12946. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12947. need_locks=warn
  12948. fi
  12949. else
  12950. need_locks=no
  12951. fi
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12953. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12954. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12955. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12956. case $host_os in
  12957. aix[4-9]*)
  12958. # If we're using GNU nm, then we don't want the "-C" option.
  12959. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12960. # Also, AIX nm treats weak defined symbols like other global defined
  12961. # symbols, whereas GNU nm marks them as "W".
  12962. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12963. 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'
  12964. else
  12965. 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'
  12966. fi
  12967. ;;
  12968. pw32*)
  12969. export_symbols_cmds_CXX="$ltdll_cmds"
  12970. ;;
  12971. cygwin* | mingw* | cegcc*)
  12972. case $cc_basename in
  12973. cl*)
  12974. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12975. ;;
  12976. *)
  12977. 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'
  12978. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12979. ;;
  12980. esac
  12981. ;;
  12982. *)
  12983. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12984. ;;
  12985. esac
  12986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12987. $as_echo "$ld_shlibs_CXX" >&6; }
  12988. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12989. with_gnu_ld_CXX=$with_gnu_ld
  12990. #
  12991. # Do we need to explicitly link libc?
  12992. #
  12993. case "x$archive_cmds_need_lc_CXX" in
  12994. x|xyes)
  12995. # Assume -lc should be added
  12996. archive_cmds_need_lc_CXX=yes
  12997. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12998. case $archive_cmds_CXX in
  12999. *'~'*)
  13000. # FIXME: we may have to deal with multi-command sequences.
  13001. ;;
  13002. '$CC '*)
  13003. # Test whether the compiler implicitly links with -lc since on some
  13004. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13005. # to ld, don't add -lc before -lgcc.
  13006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13007. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13008. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13009. $as_echo_n "(cached) " >&6
  13010. else
  13011. $RM conftest*
  13012. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13014. (eval $ac_compile) 2>&5
  13015. ac_status=$?
  13016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13017. test $ac_status = 0; } 2>conftest.err; then
  13018. soname=conftest
  13019. lib=conftest
  13020. libobjs=conftest.$ac_objext
  13021. deplibs=
  13022. wl=$lt_prog_compiler_wl_CXX
  13023. pic_flag=$lt_prog_compiler_pic_CXX
  13024. compiler_flags=-v
  13025. linker_flags=-v
  13026. verstring=
  13027. output_objdir=.
  13028. libname=conftest
  13029. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13030. allow_undefined_flag_CXX=
  13031. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13032. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13033. ac_status=$?
  13034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13035. test $ac_status = 0; }
  13036. then
  13037. lt_cv_archive_cmds_need_lc_CXX=no
  13038. else
  13039. lt_cv_archive_cmds_need_lc_CXX=yes
  13040. fi
  13041. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13042. else
  13043. cat conftest.err 1>&5
  13044. fi
  13045. $RM conftest*
  13046. fi
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13048. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13049. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13050. ;;
  13051. esac
  13052. fi
  13053. ;;
  13054. esac
  13055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13056. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13057. library_names_spec=
  13058. libname_spec='lib$name'
  13059. soname_spec=
  13060. shrext_cmds=".so"
  13061. postinstall_cmds=
  13062. postuninstall_cmds=
  13063. finish_cmds=
  13064. finish_eval=
  13065. shlibpath_var=
  13066. shlibpath_overrides_runpath=unknown
  13067. version_type=none
  13068. dynamic_linker="$host_os ld.so"
  13069. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13070. need_lib_prefix=unknown
  13071. hardcode_into_libs=no
  13072. # when you set need_version to no, make sure it does not cause -set_version
  13073. # flags to be left without arguments
  13074. need_version=unknown
  13075. case $host_os in
  13076. aix3*)
  13077. version_type=linux # correct to gnu/linux during the next big refactor
  13078. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13079. shlibpath_var=LIBPATH
  13080. # AIX 3 has no versioning support, so we append a major version to the name.
  13081. soname_spec='${libname}${release}${shared_ext}$major'
  13082. ;;
  13083. aix[4-9]*)
  13084. version_type=linux # correct to gnu/linux during the next big refactor
  13085. need_lib_prefix=no
  13086. need_version=no
  13087. hardcode_into_libs=yes
  13088. if test "$host_cpu" = ia64; then
  13089. # AIX 5 supports IA64
  13090. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13091. shlibpath_var=LD_LIBRARY_PATH
  13092. else
  13093. # With GCC up to 2.95.x, collect2 would create an import file
  13094. # for dependence libraries. The import file would start with
  13095. # the line `#! .'. This would cause the generated library to
  13096. # depend on `.', always an invalid library. This was fixed in
  13097. # development snapshots of GCC prior to 3.0.
  13098. case $host_os in
  13099. aix4 | aix4.[01] | aix4.[01].*)
  13100. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13101. echo ' yes '
  13102. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13103. :
  13104. else
  13105. can_build_shared=no
  13106. fi
  13107. ;;
  13108. esac
  13109. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13110. # soname into executable. Probably we can add versioning support to
  13111. # collect2, so additional links can be useful in future.
  13112. if test "$aix_use_runtimelinking" = yes; then
  13113. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13114. # instead of lib<name>.a to let people know that these are not
  13115. # typical AIX shared libraries.
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13117. else
  13118. # We preserve .a as extension for shared libraries through AIX4.2
  13119. # and later when we are not doing run time linking.
  13120. library_names_spec='${libname}${release}.a $libname.a'
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. fi
  13123. shlibpath_var=LIBPATH
  13124. fi
  13125. ;;
  13126. amigaos*)
  13127. case $host_cpu in
  13128. powerpc)
  13129. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13130. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13132. ;;
  13133. m68k)
  13134. library_names_spec='$libname.ixlibrary $libname.a'
  13135. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13136. 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'
  13137. ;;
  13138. esac
  13139. ;;
  13140. beos*)
  13141. library_names_spec='${libname}${shared_ext}'
  13142. dynamic_linker="$host_os ld.so"
  13143. shlibpath_var=LIBRARY_PATH
  13144. ;;
  13145. bsdi[45]*)
  13146. version_type=linux # correct to gnu/linux during the next big refactor
  13147. need_version=no
  13148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13149. soname_spec='${libname}${release}${shared_ext}$major'
  13150. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13151. shlibpath_var=LD_LIBRARY_PATH
  13152. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13153. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13154. # the default ld.so.conf also contains /usr/contrib/lib and
  13155. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13156. # libtool to hard-code these into programs
  13157. ;;
  13158. cygwin* | mingw* | pw32* | cegcc*)
  13159. version_type=windows
  13160. shrext_cmds=".dll"
  13161. need_version=no
  13162. need_lib_prefix=no
  13163. case $GCC,$cc_basename in
  13164. yes,*)
  13165. # gcc
  13166. library_names_spec='$libname.dll.a'
  13167. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13168. postinstall_cmds='base_file=`basename \${file}`~
  13169. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13170. dldir=$destdir/`dirname \$dlpath`~
  13171. test -d \$dldir || mkdir -p \$dldir~
  13172. $install_prog $dir/$dlname \$dldir/$dlname~
  13173. chmod a+x \$dldir/$dlname~
  13174. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13175. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13176. fi'
  13177. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13178. dlpath=$dir/\$dldll~
  13179. $RM \$dlpath'
  13180. shlibpath_overrides_runpath=yes
  13181. case $host_os in
  13182. cygwin*)
  13183. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13184. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13185. ;;
  13186. mingw* | cegcc*)
  13187. # MinGW DLLs use traditional 'lib' prefix
  13188. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13189. ;;
  13190. pw32*)
  13191. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13192. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13193. ;;
  13194. esac
  13195. dynamic_linker='Win32 ld.exe'
  13196. ;;
  13197. *,cl*)
  13198. # Native MSVC
  13199. libname_spec='$name'
  13200. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13201. library_names_spec='${libname}.dll.lib'
  13202. case $build_os in
  13203. mingw*)
  13204. sys_lib_search_path_spec=
  13205. lt_save_ifs=$IFS
  13206. IFS=';'
  13207. for lt_path in $LIB
  13208. do
  13209. IFS=$lt_save_ifs
  13210. # Let DOS variable expansion print the short 8.3 style file name.
  13211. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13212. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13213. done
  13214. IFS=$lt_save_ifs
  13215. # Convert to MSYS style.
  13216. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13217. ;;
  13218. cygwin*)
  13219. # Convert to unix form, then to dos form, then back to unix form
  13220. # but this time dos style (no spaces!) so that the unix form looks
  13221. # like /cygdrive/c/PROGRA~1:/cygdr...
  13222. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13223. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13224. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13225. ;;
  13226. *)
  13227. sys_lib_search_path_spec="$LIB"
  13228. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13229. # It is most probably a Windows format PATH.
  13230. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13231. else
  13232. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13233. fi
  13234. # FIXME: find the short name or the path components, as spaces are
  13235. # common. (e.g. "Program Files" -> "PROGRA~1")
  13236. ;;
  13237. esac
  13238. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13239. postinstall_cmds='base_file=`basename \${file}`~
  13240. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13241. dldir=$destdir/`dirname \$dlpath`~
  13242. test -d \$dldir || mkdir -p \$dldir~
  13243. $install_prog $dir/$dlname \$dldir/$dlname'
  13244. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13245. dlpath=$dir/\$dldll~
  13246. $RM \$dlpath'
  13247. shlibpath_overrides_runpath=yes
  13248. dynamic_linker='Win32 link.exe'
  13249. ;;
  13250. *)
  13251. # Assume MSVC wrapper
  13252. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13253. dynamic_linker='Win32 ld.exe'
  13254. ;;
  13255. esac
  13256. # FIXME: first we should search . and the directory the executable is in
  13257. shlibpath_var=PATH
  13258. ;;
  13259. darwin* | rhapsody*)
  13260. dynamic_linker="$host_os dyld"
  13261. version_type=darwin
  13262. need_lib_prefix=no
  13263. need_version=no
  13264. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13265. soname_spec='${libname}${release}${major}$shared_ext'
  13266. shlibpath_overrides_runpath=yes
  13267. shlibpath_var=DYLD_LIBRARY_PATH
  13268. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13269. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13270. ;;
  13271. dgux*)
  13272. version_type=linux # correct to gnu/linux during the next big refactor
  13273. need_lib_prefix=no
  13274. need_version=no
  13275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13276. soname_spec='${libname}${release}${shared_ext}$major'
  13277. shlibpath_var=LD_LIBRARY_PATH
  13278. ;;
  13279. freebsd* | dragonfly*)
  13280. # DragonFly does not have aout. When/if they implement a new
  13281. # versioning mechanism, adjust this.
  13282. if test -x /usr/bin/objformat; then
  13283. objformat=`/usr/bin/objformat`
  13284. else
  13285. case $host_os in
  13286. freebsd[23].*) objformat=aout ;;
  13287. *) objformat=elf ;;
  13288. esac
  13289. fi
  13290. version_type=freebsd-$objformat
  13291. case $version_type in
  13292. freebsd-elf*)
  13293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13294. need_version=no
  13295. need_lib_prefix=no
  13296. ;;
  13297. freebsd-*)
  13298. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13299. need_version=yes
  13300. ;;
  13301. esac
  13302. shlibpath_var=LD_LIBRARY_PATH
  13303. case $host_os in
  13304. freebsd2.*)
  13305. shlibpath_overrides_runpath=yes
  13306. ;;
  13307. freebsd3.[01]* | freebsdelf3.[01]*)
  13308. shlibpath_overrides_runpath=yes
  13309. hardcode_into_libs=yes
  13310. ;;
  13311. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13312. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13313. shlibpath_overrides_runpath=no
  13314. hardcode_into_libs=yes
  13315. ;;
  13316. *) # from 4.6 on, and DragonFly
  13317. shlibpath_overrides_runpath=yes
  13318. hardcode_into_libs=yes
  13319. ;;
  13320. esac
  13321. ;;
  13322. gnu*)
  13323. version_type=linux # correct to gnu/linux during the next big refactor
  13324. need_lib_prefix=no
  13325. need_version=no
  13326. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13327. soname_spec='${libname}${release}${shared_ext}$major'
  13328. shlibpath_var=LD_LIBRARY_PATH
  13329. shlibpath_overrides_runpath=no
  13330. hardcode_into_libs=yes
  13331. ;;
  13332. haiku*)
  13333. version_type=linux # correct to gnu/linux during the next big refactor
  13334. need_lib_prefix=no
  13335. need_version=no
  13336. dynamic_linker="$host_os runtime_loader"
  13337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13338. soname_spec='${libname}${release}${shared_ext}$major'
  13339. shlibpath_var=LIBRARY_PATH
  13340. shlibpath_overrides_runpath=yes
  13341. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13342. hardcode_into_libs=yes
  13343. ;;
  13344. hpux9* | hpux10* | hpux11*)
  13345. # Give a soname corresponding to the major version so that dld.sl refuses to
  13346. # link against other versions.
  13347. version_type=sunos
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. case $host_cpu in
  13351. ia64*)
  13352. shrext_cmds='.so'
  13353. hardcode_into_libs=yes
  13354. dynamic_linker="$host_os dld.so"
  13355. shlibpath_var=LD_LIBRARY_PATH
  13356. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13358. soname_spec='${libname}${release}${shared_ext}$major'
  13359. if test "X$HPUX_IA64_MODE" = X32; then
  13360. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13361. else
  13362. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13363. fi
  13364. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13365. ;;
  13366. hppa*64*)
  13367. shrext_cmds='.sl'
  13368. hardcode_into_libs=yes
  13369. dynamic_linker="$host_os dld.sl"
  13370. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13371. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13373. soname_spec='${libname}${release}${shared_ext}$major'
  13374. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13375. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13376. ;;
  13377. *)
  13378. shrext_cmds='.sl'
  13379. dynamic_linker="$host_os dld.sl"
  13380. shlibpath_var=SHLIB_PATH
  13381. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13383. soname_spec='${libname}${release}${shared_ext}$major'
  13384. ;;
  13385. esac
  13386. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13387. postinstall_cmds='chmod 555 $lib'
  13388. # or fails outright, so override atomically:
  13389. install_override_mode=555
  13390. ;;
  13391. interix[3-9]*)
  13392. version_type=linux # correct to gnu/linux during the next big refactor
  13393. need_lib_prefix=no
  13394. need_version=no
  13395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13396. soname_spec='${libname}${release}${shared_ext}$major'
  13397. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13398. shlibpath_var=LD_LIBRARY_PATH
  13399. shlibpath_overrides_runpath=no
  13400. hardcode_into_libs=yes
  13401. ;;
  13402. irix5* | irix6* | nonstopux*)
  13403. case $host_os in
  13404. nonstopux*) version_type=nonstopux ;;
  13405. *)
  13406. if test "$lt_cv_prog_gnu_ld" = yes; then
  13407. version_type=linux # correct to gnu/linux during the next big refactor
  13408. else
  13409. version_type=irix
  13410. fi ;;
  13411. esac
  13412. need_lib_prefix=no
  13413. need_version=no
  13414. soname_spec='${libname}${release}${shared_ext}$major'
  13415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13416. case $host_os in
  13417. irix5* | nonstopux*)
  13418. libsuff= shlibsuff=
  13419. ;;
  13420. *)
  13421. case $LD in # libtool.m4 will add one of these switches to LD
  13422. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13423. libsuff= shlibsuff= libmagic=32-bit;;
  13424. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13425. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13426. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13427. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13428. *) libsuff= shlibsuff= libmagic=never-match;;
  13429. esac
  13430. ;;
  13431. esac
  13432. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13433. shlibpath_overrides_runpath=no
  13434. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13435. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13436. hardcode_into_libs=yes
  13437. ;;
  13438. # No shared lib support for Linux oldld, aout, or coff.
  13439. linux*oldld* | linux*aout* | linux*coff*)
  13440. dynamic_linker=no
  13441. ;;
  13442. # This must be glibc/ELF.
  13443. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13444. version_type=linux # correct to gnu/linux during the next big refactor
  13445. need_lib_prefix=no
  13446. need_version=no
  13447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13448. soname_spec='${libname}${release}${shared_ext}$major'
  13449. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13450. shlibpath_var=LD_LIBRARY_PATH
  13451. shlibpath_overrides_runpath=no
  13452. # Some binutils ld are patched to set DT_RUNPATH
  13453. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13454. $as_echo_n "(cached) " >&6
  13455. else
  13456. lt_cv_shlibpath_overrides_runpath=no
  13457. save_LDFLAGS=$LDFLAGS
  13458. save_libdir=$libdir
  13459. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13460. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13462. /* end confdefs.h. */
  13463. int
  13464. main ()
  13465. {
  13466. ;
  13467. return 0;
  13468. }
  13469. _ACEOF
  13470. if ac_fn_cxx_try_link "$LINENO"; then :
  13471. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13472. lt_cv_shlibpath_overrides_runpath=yes
  13473. fi
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext \
  13476. conftest$ac_exeext conftest.$ac_ext
  13477. LDFLAGS=$save_LDFLAGS
  13478. libdir=$save_libdir
  13479. fi
  13480. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13481. # This implies no fast_install, which is unacceptable.
  13482. # Some rework will be needed to allow for fast_install
  13483. # before this can be enabled.
  13484. hardcode_into_libs=yes
  13485. # Add ABI-specific directories to the system library path.
  13486. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13487. # Append ld.so.conf contents to the search path
  13488. if test -f /etc/ld.so.conf; then
  13489. 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' ' '`
  13490. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13491. fi
  13492. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13493. # powerpc, because MkLinux only supported shared libraries with the
  13494. # GNU dynamic linker. Since this was broken with cross compilers,
  13495. # most powerpc-linux boxes support dynamic linking these days and
  13496. # people can always --disable-shared, the test was removed, and we
  13497. # assume the GNU/Linux dynamic linker is in use.
  13498. dynamic_linker='GNU/Linux ld.so'
  13499. ;;
  13500. netbsd*)
  13501. version_type=sunos
  13502. need_lib_prefix=no
  13503. need_version=no
  13504. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13506. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13507. dynamic_linker='NetBSD (a.out) ld.so'
  13508. else
  13509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13510. soname_spec='${libname}${release}${shared_ext}$major'
  13511. dynamic_linker='NetBSD ld.elf_so'
  13512. fi
  13513. shlibpath_var=LD_LIBRARY_PATH
  13514. shlibpath_overrides_runpath=yes
  13515. hardcode_into_libs=yes
  13516. ;;
  13517. newsos6)
  13518. version_type=linux # correct to gnu/linux during the next big refactor
  13519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13520. shlibpath_var=LD_LIBRARY_PATH
  13521. shlibpath_overrides_runpath=yes
  13522. ;;
  13523. *nto* | *qnx*)
  13524. version_type=qnx
  13525. need_lib_prefix=no
  13526. need_version=no
  13527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13528. soname_spec='${libname}${release}${shared_ext}$major'
  13529. shlibpath_var=LD_LIBRARY_PATH
  13530. shlibpath_overrides_runpath=no
  13531. hardcode_into_libs=yes
  13532. dynamic_linker='ldqnx.so'
  13533. ;;
  13534. openbsd*)
  13535. version_type=sunos
  13536. sys_lib_dlsearch_path_spec="/usr/lib"
  13537. need_lib_prefix=no
  13538. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13539. case $host_os in
  13540. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13541. *) need_version=no ;;
  13542. esac
  13543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13544. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13545. shlibpath_var=LD_LIBRARY_PATH
  13546. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13547. case $host_os in
  13548. openbsd2.[89] | openbsd2.[89].*)
  13549. shlibpath_overrides_runpath=no
  13550. ;;
  13551. *)
  13552. shlibpath_overrides_runpath=yes
  13553. ;;
  13554. esac
  13555. else
  13556. shlibpath_overrides_runpath=yes
  13557. fi
  13558. ;;
  13559. os2*)
  13560. libname_spec='$name'
  13561. shrext_cmds=".dll"
  13562. need_lib_prefix=no
  13563. library_names_spec='$libname${shared_ext} $libname.a'
  13564. dynamic_linker='OS/2 ld.exe'
  13565. shlibpath_var=LIBPATH
  13566. ;;
  13567. osf3* | osf4* | osf5*)
  13568. version_type=osf
  13569. need_lib_prefix=no
  13570. need_version=no
  13571. soname_spec='${libname}${release}${shared_ext}$major'
  13572. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13573. shlibpath_var=LD_LIBRARY_PATH
  13574. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13575. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13576. ;;
  13577. rdos*)
  13578. dynamic_linker=no
  13579. ;;
  13580. solaris*)
  13581. version_type=linux # correct to gnu/linux during the next big refactor
  13582. need_lib_prefix=no
  13583. need_version=no
  13584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13585. soname_spec='${libname}${release}${shared_ext}$major'
  13586. shlibpath_var=LD_LIBRARY_PATH
  13587. shlibpath_overrides_runpath=yes
  13588. hardcode_into_libs=yes
  13589. # ldd complains unless libraries are executable
  13590. postinstall_cmds='chmod +x $lib'
  13591. ;;
  13592. sunos4*)
  13593. version_type=sunos
  13594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13595. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13596. shlibpath_var=LD_LIBRARY_PATH
  13597. shlibpath_overrides_runpath=yes
  13598. if test "$with_gnu_ld" = yes; then
  13599. need_lib_prefix=no
  13600. fi
  13601. need_version=yes
  13602. ;;
  13603. sysv4 | sysv4.3*)
  13604. version_type=linux # correct to gnu/linux during the next big refactor
  13605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13606. soname_spec='${libname}${release}${shared_ext}$major'
  13607. shlibpath_var=LD_LIBRARY_PATH
  13608. case $host_vendor in
  13609. sni)
  13610. shlibpath_overrides_runpath=no
  13611. need_lib_prefix=no
  13612. runpath_var=LD_RUN_PATH
  13613. ;;
  13614. siemens)
  13615. need_lib_prefix=no
  13616. ;;
  13617. motorola)
  13618. need_lib_prefix=no
  13619. need_version=no
  13620. shlibpath_overrides_runpath=no
  13621. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13622. ;;
  13623. esac
  13624. ;;
  13625. sysv4*MP*)
  13626. if test -d /usr/nec ;then
  13627. version_type=linux # correct to gnu/linux during the next big refactor
  13628. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13629. soname_spec='$libname${shared_ext}.$major'
  13630. shlibpath_var=LD_LIBRARY_PATH
  13631. fi
  13632. ;;
  13633. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13634. version_type=freebsd-elf
  13635. need_lib_prefix=no
  13636. need_version=no
  13637. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13638. soname_spec='${libname}${release}${shared_ext}$major'
  13639. shlibpath_var=LD_LIBRARY_PATH
  13640. shlibpath_overrides_runpath=yes
  13641. hardcode_into_libs=yes
  13642. if test "$with_gnu_ld" = yes; then
  13643. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13644. else
  13645. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13646. case $host_os in
  13647. sco3.2v5*)
  13648. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13649. ;;
  13650. esac
  13651. fi
  13652. sys_lib_dlsearch_path_spec='/usr/lib'
  13653. ;;
  13654. tpf*)
  13655. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13656. version_type=linux # correct to gnu/linux during the next big refactor
  13657. need_lib_prefix=no
  13658. need_version=no
  13659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13660. shlibpath_var=LD_LIBRARY_PATH
  13661. shlibpath_overrides_runpath=no
  13662. hardcode_into_libs=yes
  13663. ;;
  13664. uts4*)
  13665. version_type=linux # correct to gnu/linux during the next big refactor
  13666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13667. soname_spec='${libname}${release}${shared_ext}$major'
  13668. shlibpath_var=LD_LIBRARY_PATH
  13669. ;;
  13670. *)
  13671. dynamic_linker=no
  13672. ;;
  13673. esac
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13675. $as_echo "$dynamic_linker" >&6; }
  13676. test "$dynamic_linker" = no && can_build_shared=no
  13677. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13678. if test "$GCC" = yes; then
  13679. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13680. fi
  13681. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13682. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13683. fi
  13684. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13685. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13686. fi
  13687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13688. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13689. hardcode_action_CXX=
  13690. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13691. test -n "$runpath_var_CXX" ||
  13692. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13693. # We can hardcode non-existent directories.
  13694. if test "$hardcode_direct_CXX" != no &&
  13695. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13696. # have to relink, otherwise we might link with an installed library
  13697. # when we should be linking with a yet-to-be-installed one
  13698. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13699. test "$hardcode_minus_L_CXX" != no; then
  13700. # Linking always hardcodes the temporary library directory.
  13701. hardcode_action_CXX=relink
  13702. else
  13703. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13704. hardcode_action_CXX=immediate
  13705. fi
  13706. else
  13707. # We cannot hardcode anything, or else we can only hardcode existing
  13708. # directories.
  13709. hardcode_action_CXX=unsupported
  13710. fi
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13712. $as_echo "$hardcode_action_CXX" >&6; }
  13713. if test "$hardcode_action_CXX" = relink ||
  13714. test "$inherit_rpath_CXX" = yes; then
  13715. # Fast installation is not supported
  13716. enable_fast_install=no
  13717. elif test "$shlibpath_overrides_runpath" = yes ||
  13718. test "$enable_shared" = no; then
  13719. # Fast installation is not necessary
  13720. enable_fast_install=needless
  13721. fi
  13722. fi # test -n "$compiler"
  13723. CC=$lt_save_CC
  13724. CFLAGS=$lt_save_CFLAGS
  13725. LDCXX=$LD
  13726. LD=$lt_save_LD
  13727. GCC=$lt_save_GCC
  13728. with_gnu_ld=$lt_save_with_gnu_ld
  13729. lt_cv_path_LDCXX=$lt_cv_path_LD
  13730. lt_cv_path_LD=$lt_save_path_LD
  13731. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13732. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13733. fi # test "$_lt_caught_CXX_error" != yes
  13734. ac_ext=c
  13735. ac_cpp='$CPP $CPPFLAGS'
  13736. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13737. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13738. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13739. ac_config_commands="$ac_config_commands libtool"
  13740. # Only expand once:
  13741. # Checks for header files.
  13742. ac_header_dirent=no
  13743. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13744. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13746. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13747. if eval \${$as_ac_Header+:} false; then :
  13748. $as_echo_n "(cached) " >&6
  13749. else
  13750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13751. /* end confdefs.h. */
  13752. #include <sys/types.h>
  13753. #include <$ac_hdr>
  13754. int
  13755. main ()
  13756. {
  13757. if ((DIR *) 0)
  13758. return 0;
  13759. ;
  13760. return 0;
  13761. }
  13762. _ACEOF
  13763. if ac_fn_c_try_compile "$LINENO"; then :
  13764. eval "$as_ac_Header=yes"
  13765. else
  13766. eval "$as_ac_Header=no"
  13767. fi
  13768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13769. fi
  13770. eval ac_res=\$$as_ac_Header
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13772. $as_echo "$ac_res" >&6; }
  13773. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13774. cat >>confdefs.h <<_ACEOF
  13775. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13776. _ACEOF
  13777. ac_header_dirent=$ac_hdr; break
  13778. fi
  13779. done
  13780. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13781. if test $ac_header_dirent = dirent.h; then
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13783. $as_echo_n "checking for library containing opendir... " >&6; }
  13784. if ${ac_cv_search_opendir+:} false; then :
  13785. $as_echo_n "(cached) " >&6
  13786. else
  13787. ac_func_search_save_LIBS=$LIBS
  13788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13789. /* end confdefs.h. */
  13790. /* Override any GCC internal prototype to avoid an error.
  13791. Use char because int might match the return type of a GCC
  13792. builtin and then its argument prototype would still apply. */
  13793. #ifdef __cplusplus
  13794. extern "C"
  13795. #endif
  13796. char opendir ();
  13797. int
  13798. main ()
  13799. {
  13800. return opendir ();
  13801. ;
  13802. return 0;
  13803. }
  13804. _ACEOF
  13805. for ac_lib in '' dir; do
  13806. if test -z "$ac_lib"; then
  13807. ac_res="none required"
  13808. else
  13809. ac_res=-l$ac_lib
  13810. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13811. fi
  13812. if ac_fn_c_try_link "$LINENO"; then :
  13813. ac_cv_search_opendir=$ac_res
  13814. fi
  13815. rm -f core conftest.err conftest.$ac_objext \
  13816. conftest$ac_exeext
  13817. if ${ac_cv_search_opendir+:} false; then :
  13818. break
  13819. fi
  13820. done
  13821. if ${ac_cv_search_opendir+:} false; then :
  13822. else
  13823. ac_cv_search_opendir=no
  13824. fi
  13825. rm conftest.$ac_ext
  13826. LIBS=$ac_func_search_save_LIBS
  13827. fi
  13828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13829. $as_echo "$ac_cv_search_opendir" >&6; }
  13830. ac_res=$ac_cv_search_opendir
  13831. if test "$ac_res" != no; then :
  13832. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13833. fi
  13834. else
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13836. $as_echo_n "checking for library containing opendir... " >&6; }
  13837. if ${ac_cv_search_opendir+:} false; then :
  13838. $as_echo_n "(cached) " >&6
  13839. else
  13840. ac_func_search_save_LIBS=$LIBS
  13841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13842. /* end confdefs.h. */
  13843. /* Override any GCC internal prototype to avoid an error.
  13844. Use char because int might match the return type of a GCC
  13845. builtin and then its argument prototype would still apply. */
  13846. #ifdef __cplusplus
  13847. extern "C"
  13848. #endif
  13849. char opendir ();
  13850. int
  13851. main ()
  13852. {
  13853. return opendir ();
  13854. ;
  13855. return 0;
  13856. }
  13857. _ACEOF
  13858. for ac_lib in '' x; do
  13859. if test -z "$ac_lib"; then
  13860. ac_res="none required"
  13861. else
  13862. ac_res=-l$ac_lib
  13863. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13864. fi
  13865. if ac_fn_c_try_link "$LINENO"; then :
  13866. ac_cv_search_opendir=$ac_res
  13867. fi
  13868. rm -f core conftest.err conftest.$ac_objext \
  13869. conftest$ac_exeext
  13870. if ${ac_cv_search_opendir+:} false; then :
  13871. break
  13872. fi
  13873. done
  13874. if ${ac_cv_search_opendir+:} false; then :
  13875. else
  13876. ac_cv_search_opendir=no
  13877. fi
  13878. rm conftest.$ac_ext
  13879. LIBS=$ac_func_search_save_LIBS
  13880. fi
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13882. $as_echo "$ac_cv_search_opendir" >&6; }
  13883. ac_res=$ac_cv_search_opendir
  13884. if test "$ac_res" != no; then :
  13885. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13886. fi
  13887. fi
  13888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13889. $as_echo_n "checking for ANSI C header files... " >&6; }
  13890. if ${ac_cv_header_stdc+:} false; then :
  13891. $as_echo_n "(cached) " >&6
  13892. else
  13893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13894. /* end confdefs.h. */
  13895. #include <stdlib.h>
  13896. #include <stdarg.h>
  13897. #include <string.h>
  13898. #include <float.h>
  13899. int
  13900. main ()
  13901. {
  13902. ;
  13903. return 0;
  13904. }
  13905. _ACEOF
  13906. if ac_fn_c_try_compile "$LINENO"; then :
  13907. ac_cv_header_stdc=yes
  13908. else
  13909. ac_cv_header_stdc=no
  13910. fi
  13911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13912. if test $ac_cv_header_stdc = yes; then
  13913. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13915. /* end confdefs.h. */
  13916. #include <string.h>
  13917. _ACEOF
  13918. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13919. $EGREP "memchr" >/dev/null 2>&1; then :
  13920. else
  13921. ac_cv_header_stdc=no
  13922. fi
  13923. rm -f conftest*
  13924. fi
  13925. if test $ac_cv_header_stdc = yes; then
  13926. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13928. /* end confdefs.h. */
  13929. #include <stdlib.h>
  13930. _ACEOF
  13931. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13932. $EGREP "free" >/dev/null 2>&1; then :
  13933. else
  13934. ac_cv_header_stdc=no
  13935. fi
  13936. rm -f conftest*
  13937. fi
  13938. if test $ac_cv_header_stdc = yes; then
  13939. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13940. if test "$cross_compiling" = yes; then :
  13941. :
  13942. else
  13943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13944. /* end confdefs.h. */
  13945. #include <ctype.h>
  13946. #include <stdlib.h>
  13947. #if ((' ' & 0x0FF) == 0x020)
  13948. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13949. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13950. #else
  13951. # define ISLOWER(c) \
  13952. (('a' <= (c) && (c) <= 'i') \
  13953. || ('j' <= (c) && (c) <= 'r') \
  13954. || ('s' <= (c) && (c) <= 'z'))
  13955. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13956. #endif
  13957. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13958. int
  13959. main ()
  13960. {
  13961. int i;
  13962. for (i = 0; i < 256; i++)
  13963. if (XOR (islower (i), ISLOWER (i))
  13964. || toupper (i) != TOUPPER (i))
  13965. return 2;
  13966. return 0;
  13967. }
  13968. _ACEOF
  13969. if ac_fn_c_try_run "$LINENO"; then :
  13970. else
  13971. ac_cv_header_stdc=no
  13972. fi
  13973. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13974. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13975. fi
  13976. fi
  13977. fi
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13979. $as_echo "$ac_cv_header_stdc" >&6; }
  13980. if test $ac_cv_header_stdc = yes; then
  13981. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13982. fi
  13983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13984. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13985. if ${ac_cv_header_sys_wait_h+:} false; then :
  13986. $as_echo_n "(cached) " >&6
  13987. else
  13988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13989. /* end confdefs.h. */
  13990. #include <sys/types.h>
  13991. #include <sys/wait.h>
  13992. #ifndef WEXITSTATUS
  13993. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13994. #endif
  13995. #ifndef WIFEXITED
  13996. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13997. #endif
  13998. int
  13999. main ()
  14000. {
  14001. int s;
  14002. wait (&s);
  14003. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  14004. ;
  14005. return 0;
  14006. }
  14007. _ACEOF
  14008. if ac_fn_c_try_compile "$LINENO"; then :
  14009. ac_cv_header_sys_wait_h=yes
  14010. else
  14011. ac_cv_header_sys_wait_h=no
  14012. fi
  14013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14014. fi
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  14016. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  14017. if test $ac_cv_header_sys_wait_h = yes; then
  14018. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  14019. fi
  14020. 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
  14021. do :
  14022. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14023. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14024. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14025. cat >>confdefs.h <<_ACEOF
  14026. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14027. _ACEOF
  14028. fi
  14029. done
  14030. # Checks for typedefs, structures, and compiler characteristics.
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  14032. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14033. if ${ac_cv_header_stat_broken+:} false; then :
  14034. $as_echo_n "(cached) " >&6
  14035. else
  14036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14037. /* end confdefs.h. */
  14038. #include <sys/types.h>
  14039. #include <sys/stat.h>
  14040. #if defined S_ISBLK && defined S_IFDIR
  14041. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14042. #endif
  14043. #if defined S_ISBLK && defined S_IFCHR
  14044. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14045. #endif
  14046. #if defined S_ISLNK && defined S_IFREG
  14047. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14048. #endif
  14049. #if defined S_ISSOCK && defined S_IFREG
  14050. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14051. #endif
  14052. _ACEOF
  14053. if ac_fn_c_try_compile "$LINENO"; then :
  14054. ac_cv_header_stat_broken=no
  14055. else
  14056. ac_cv_header_stat_broken=yes
  14057. fi
  14058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14059. fi
  14060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  14061. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14062. if test $ac_cv_header_stat_broken = yes; then
  14063. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  14064. fi
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14066. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14067. if ${ac_cv_c_const+:} false; then :
  14068. $as_echo_n "(cached) " >&6
  14069. else
  14070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14071. /* end confdefs.h. */
  14072. int
  14073. main ()
  14074. {
  14075. #ifndef __cplusplus
  14076. /* Ultrix mips cc rejects this sort of thing. */
  14077. typedef int charset[2];
  14078. const charset cs = { 0, 0 };
  14079. /* SunOS 4.1.1 cc rejects this. */
  14080. char const *const *pcpcc;
  14081. char **ppc;
  14082. /* NEC SVR4.0.2 mips cc rejects this. */
  14083. struct point {int x, y;};
  14084. static struct point const zero = {0,0};
  14085. /* AIX XL C 1.02.0.0 rejects this.
  14086. It does not let you subtract one const X* pointer from another in
  14087. an arm of an if-expression whose if-part is not a constant
  14088. expression */
  14089. const char *g = "string";
  14090. pcpcc = &g + (g ? g-g : 0);
  14091. /* HPUX 7.0 cc rejects these. */
  14092. ++pcpcc;
  14093. ppc = (char**) pcpcc;
  14094. pcpcc = (char const *const *) ppc;
  14095. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14096. char tx;
  14097. char *t = &tx;
  14098. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14099. *t++ = 0;
  14100. if (s) return 0;
  14101. }
  14102. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14103. int x[] = {25, 17};
  14104. const int *foo = &x[0];
  14105. ++foo;
  14106. }
  14107. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14108. typedef const int *iptr;
  14109. iptr p = 0;
  14110. ++p;
  14111. }
  14112. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  14113. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14114. struct s { int j; const int *ap[3]; } bx;
  14115. struct s *b = &bx; b->j = 5;
  14116. }
  14117. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14118. const int foo = 10;
  14119. if (!foo) return 0;
  14120. }
  14121. return !cs[0] && !zero.x;
  14122. #endif
  14123. ;
  14124. return 0;
  14125. }
  14126. _ACEOF
  14127. if ac_fn_c_try_compile "$LINENO"; then :
  14128. ac_cv_c_const=yes
  14129. else
  14130. ac_cv_c_const=no
  14131. fi
  14132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14133. fi
  14134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14135. $as_echo "$ac_cv_c_const" >&6; }
  14136. if test $ac_cv_c_const = no; then
  14137. $as_echo "#define const /**/" >>confdefs.h
  14138. fi
  14139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14140. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14141. if ${ac_cv_header_stdbool_h+:} false; then :
  14142. $as_echo_n "(cached) " >&6
  14143. else
  14144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14145. /* end confdefs.h. */
  14146. #include <stdbool.h>
  14147. #ifndef bool
  14148. "error: bool is not defined"
  14149. #endif
  14150. #ifndef false
  14151. "error: false is not defined"
  14152. #endif
  14153. #if false
  14154. "error: false is not 0"
  14155. #endif
  14156. #ifndef true
  14157. "error: true is not defined"
  14158. #endif
  14159. #if true != 1
  14160. "error: true is not 1"
  14161. #endif
  14162. #ifndef __bool_true_false_are_defined
  14163. "error: __bool_true_false_are_defined is not defined"
  14164. #endif
  14165. struct s { _Bool s: 1; _Bool t; } s;
  14166. char a[true == 1 ? 1 : -1];
  14167. char b[false == 0 ? 1 : -1];
  14168. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14169. char d[(bool) 0.5 == true ? 1 : -1];
  14170. /* See body of main program for 'e'. */
  14171. char f[(_Bool) 0.0 == false ? 1 : -1];
  14172. char g[true];
  14173. char h[sizeof (_Bool)];
  14174. char i[sizeof s.t];
  14175. enum { j = false, k = true, l = false * true, m = true * 256 };
  14176. /* The following fails for
  14177. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14178. _Bool n[m];
  14179. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14180. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14181. /* Catch a bug in an HP-UX C compiler. See
  14182. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14183. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14184. */
  14185. _Bool q = true;
  14186. _Bool *pq = &q;
  14187. int
  14188. main ()
  14189. {
  14190. bool e = &s;
  14191. *pq |= q;
  14192. *pq |= ! q;
  14193. /* Refer to every declared value, to avoid compiler optimizations. */
  14194. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14195. + !m + !n + !o + !p + !q + !pq);
  14196. ;
  14197. return 0;
  14198. }
  14199. _ACEOF
  14200. if ac_fn_c_try_compile "$LINENO"; then :
  14201. ac_cv_header_stdbool_h=yes
  14202. else
  14203. ac_cv_header_stdbool_h=no
  14204. fi
  14205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14206. fi
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14208. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14209. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14210. if test "x$ac_cv_type__Bool" = xyes; then :
  14211. cat >>confdefs.h <<_ACEOF
  14212. #define HAVE__BOOL 1
  14213. _ACEOF
  14214. fi
  14215. if test $ac_cv_header_stdbool_h = yes; then
  14216. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14217. fi
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14219. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14220. if ${ac_cv_type_uid_t+:} false; then :
  14221. $as_echo_n "(cached) " >&6
  14222. else
  14223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14224. /* end confdefs.h. */
  14225. #include <sys/types.h>
  14226. _ACEOF
  14227. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14228. $EGREP "uid_t" >/dev/null 2>&1; then :
  14229. ac_cv_type_uid_t=yes
  14230. else
  14231. ac_cv_type_uid_t=no
  14232. fi
  14233. rm -f conftest*
  14234. fi
  14235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14236. $as_echo "$ac_cv_type_uid_t" >&6; }
  14237. if test $ac_cv_type_uid_t = no; then
  14238. $as_echo "#define uid_t int" >>confdefs.h
  14239. $as_echo "#define gid_t int" >>confdefs.h
  14240. fi
  14241. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14242. if test "x$ac_cv_type_pid_t" = xyes; then :
  14243. else
  14244. cat >>confdefs.h <<_ACEOF
  14245. #define pid_t int
  14246. _ACEOF
  14247. fi
  14248. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14249. if test "x$ac_cv_type_size_t" = xyes; then :
  14250. else
  14251. cat >>confdefs.h <<_ACEOF
  14252. #define size_t unsigned int
  14253. _ACEOF
  14254. fi
  14255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14256. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14257. if ${ac_cv_header_time+:} false; then :
  14258. $as_echo_n "(cached) " >&6
  14259. else
  14260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14261. /* end confdefs.h. */
  14262. #include <sys/types.h>
  14263. #include <sys/time.h>
  14264. #include <time.h>
  14265. int
  14266. main ()
  14267. {
  14268. if ((struct tm *) 0)
  14269. return 0;
  14270. ;
  14271. return 0;
  14272. }
  14273. _ACEOF
  14274. if ac_fn_c_try_compile "$LINENO"; then :
  14275. ac_cv_header_time=yes
  14276. else
  14277. ac_cv_header_time=no
  14278. fi
  14279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14280. fi
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14282. $as_echo "$ac_cv_header_time" >&6; }
  14283. if test $ac_cv_header_time = yes; then
  14284. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14285. fi
  14286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14287. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14288. if ${ac_cv_struct_tm+:} false; then :
  14289. $as_echo_n "(cached) " >&6
  14290. else
  14291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14292. /* end confdefs.h. */
  14293. #include <sys/types.h>
  14294. #include <time.h>
  14295. int
  14296. main ()
  14297. {
  14298. struct tm tm;
  14299. int *p = &tm.tm_sec;
  14300. return !p;
  14301. ;
  14302. return 0;
  14303. }
  14304. _ACEOF
  14305. if ac_fn_c_try_compile "$LINENO"; then :
  14306. ac_cv_struct_tm=time.h
  14307. else
  14308. ac_cv_struct_tm=sys/time.h
  14309. fi
  14310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14311. fi
  14312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14313. $as_echo "$ac_cv_struct_tm" >&6; }
  14314. if test $ac_cv_struct_tm = sys/time.h; then
  14315. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14316. fi
  14317. # Checks for library functions.
  14318. for ac_header in unistd.h
  14319. do :
  14320. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14321. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14322. cat >>confdefs.h <<_ACEOF
  14323. #define HAVE_UNISTD_H 1
  14324. _ACEOF
  14325. fi
  14326. done
  14327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14328. $as_echo_n "checking for working chown... " >&6; }
  14329. if ${ac_cv_func_chown_works+:} false; then :
  14330. $as_echo_n "(cached) " >&6
  14331. else
  14332. if test "$cross_compiling" = yes; then :
  14333. ac_cv_func_chown_works=no
  14334. else
  14335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14336. /* end confdefs.h. */
  14337. $ac_includes_default
  14338. #include <fcntl.h>
  14339. int
  14340. main ()
  14341. {
  14342. char *f = "conftest.chown";
  14343. struct stat before, after;
  14344. if (creat (f, 0600) < 0)
  14345. return 1;
  14346. if (stat (f, &before) < 0)
  14347. return 1;
  14348. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14349. return 1;
  14350. if (stat (f, &after) < 0)
  14351. return 1;
  14352. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14353. ;
  14354. return 0;
  14355. }
  14356. _ACEOF
  14357. if ac_fn_c_try_run "$LINENO"; then :
  14358. ac_cv_func_chown_works=yes
  14359. else
  14360. ac_cv_func_chown_works=no
  14361. fi
  14362. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14363. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14364. fi
  14365. rm -f conftest.chown
  14366. fi
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14368. $as_echo "$ac_cv_func_chown_works" >&6; }
  14369. if test $ac_cv_func_chown_works = yes; then
  14370. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14371. fi
  14372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14373. $as_echo_n "checking whether closedir returns void... " >&6; }
  14374. if ${ac_cv_func_closedir_void+:} false; then :
  14375. $as_echo_n "(cached) " >&6
  14376. else
  14377. if test "$cross_compiling" = yes; then :
  14378. ac_cv_func_closedir_void=yes
  14379. else
  14380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14381. /* end confdefs.h. */
  14382. $ac_includes_default
  14383. #include <$ac_header_dirent>
  14384. #ifndef __cplusplus
  14385. int closedir ();
  14386. #endif
  14387. int
  14388. main ()
  14389. {
  14390. return closedir (opendir (".")) != 0;
  14391. ;
  14392. return 0;
  14393. }
  14394. _ACEOF
  14395. if ac_fn_c_try_run "$LINENO"; then :
  14396. ac_cv_func_closedir_void=no
  14397. else
  14398. ac_cv_func_closedir_void=yes
  14399. fi
  14400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14401. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14402. fi
  14403. fi
  14404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14405. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14406. if test $ac_cv_func_closedir_void = yes; then
  14407. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14408. fi
  14409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14410. $as_echo_n "checking for error_at_line... " >&6; }
  14411. if ${ac_cv_lib_error_at_line+:} false; then :
  14412. $as_echo_n "(cached) " >&6
  14413. else
  14414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14415. /* end confdefs.h. */
  14416. #include <error.h>
  14417. int
  14418. main ()
  14419. {
  14420. error_at_line (0, 0, "", 0, "an error occurred");
  14421. ;
  14422. return 0;
  14423. }
  14424. _ACEOF
  14425. if ac_fn_c_try_link "$LINENO"; then :
  14426. ac_cv_lib_error_at_line=yes
  14427. else
  14428. ac_cv_lib_error_at_line=no
  14429. fi
  14430. rm -f core conftest.err conftest.$ac_objext \
  14431. conftest$ac_exeext conftest.$ac_ext
  14432. fi
  14433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14434. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14435. if test $ac_cv_lib_error_at_line = no; then
  14436. case " $LIBOBJS " in
  14437. *" error.$ac_objext "* ) ;;
  14438. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14439. ;;
  14440. esac
  14441. fi
  14442. for ac_header in vfork.h
  14443. do :
  14444. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14445. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14446. cat >>confdefs.h <<_ACEOF
  14447. #define HAVE_VFORK_H 1
  14448. _ACEOF
  14449. fi
  14450. done
  14451. for ac_func in fork vfork
  14452. do :
  14453. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14454. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14455. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14456. cat >>confdefs.h <<_ACEOF
  14457. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14458. _ACEOF
  14459. fi
  14460. done
  14461. if test "x$ac_cv_func_fork" = xyes; then
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14463. $as_echo_n "checking for working fork... " >&6; }
  14464. if ${ac_cv_func_fork_works+:} false; then :
  14465. $as_echo_n "(cached) " >&6
  14466. else
  14467. if test "$cross_compiling" = yes; then :
  14468. ac_cv_func_fork_works=cross
  14469. else
  14470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14471. /* end confdefs.h. */
  14472. $ac_includes_default
  14473. int
  14474. main ()
  14475. {
  14476. /* By Ruediger Kuhlmann. */
  14477. return fork () < 0;
  14478. ;
  14479. return 0;
  14480. }
  14481. _ACEOF
  14482. if ac_fn_c_try_run "$LINENO"; then :
  14483. ac_cv_func_fork_works=yes
  14484. else
  14485. ac_cv_func_fork_works=no
  14486. fi
  14487. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14488. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14489. fi
  14490. fi
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14492. $as_echo "$ac_cv_func_fork_works" >&6; }
  14493. else
  14494. ac_cv_func_fork_works=$ac_cv_func_fork
  14495. fi
  14496. if test "x$ac_cv_func_fork_works" = xcross; then
  14497. case $host in
  14498. *-*-amigaos* | *-*-msdosdjgpp*)
  14499. # Override, as these systems have only a dummy fork() stub
  14500. ac_cv_func_fork_works=no
  14501. ;;
  14502. *)
  14503. ac_cv_func_fork_works=yes
  14504. ;;
  14505. esac
  14506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14507. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14508. fi
  14509. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14510. if test "x$ac_cv_func_vfork" = xyes; then
  14511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14512. $as_echo_n "checking for working vfork... " >&6; }
  14513. if ${ac_cv_func_vfork_works+:} false; then :
  14514. $as_echo_n "(cached) " >&6
  14515. else
  14516. if test "$cross_compiling" = yes; then :
  14517. ac_cv_func_vfork_works=cross
  14518. else
  14519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14520. /* end confdefs.h. */
  14521. /* Thanks to Paul Eggert for this test. */
  14522. $ac_includes_default
  14523. #include <sys/wait.h>
  14524. #ifdef HAVE_VFORK_H
  14525. # include <vfork.h>
  14526. #endif
  14527. /* On some sparc systems, changes by the child to local and incoming
  14528. argument registers are propagated back to the parent. The compiler
  14529. is told about this with #include <vfork.h>, but some compilers
  14530. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14531. static variable whose address is put into a register that is
  14532. clobbered by the vfork. */
  14533. static void
  14534. #ifdef __cplusplus
  14535. sparc_address_test (int arg)
  14536. # else
  14537. sparc_address_test (arg) int arg;
  14538. #endif
  14539. {
  14540. static pid_t child;
  14541. if (!child) {
  14542. child = vfork ();
  14543. if (child < 0) {
  14544. perror ("vfork");
  14545. _exit(2);
  14546. }
  14547. if (!child) {
  14548. arg = getpid();
  14549. write(-1, "", 0);
  14550. _exit (arg);
  14551. }
  14552. }
  14553. }
  14554. int
  14555. main ()
  14556. {
  14557. pid_t parent = getpid ();
  14558. pid_t child;
  14559. sparc_address_test (0);
  14560. child = vfork ();
  14561. if (child == 0) {
  14562. /* Here is another test for sparc vfork register problems. This
  14563. test uses lots of local variables, at least as many local
  14564. variables as main has allocated so far including compiler
  14565. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14566. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14567. reuse the register of parent for one of the local variables,
  14568. since it will think that parent can't possibly be used any more
  14569. in this routine. Assigning to the local variable will thus
  14570. munge parent in the parent process. */
  14571. pid_t
  14572. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14573. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14574. /* Convince the compiler that p..p7 are live; otherwise, it might
  14575. use the same hardware register for all 8 local variables. */
  14576. if (p != p1 || p != p2 || p != p3 || p != p4
  14577. || p != p5 || p != p6 || p != p7)
  14578. _exit(1);
  14579. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14580. from child file descriptors. If the child closes a descriptor
  14581. before it execs or exits, this munges the parent's descriptor
  14582. as well. Test for this by closing stdout in the child. */
  14583. _exit(close(fileno(stdout)) != 0);
  14584. } else {
  14585. int status;
  14586. struct stat st;
  14587. while (wait(&status) != child)
  14588. ;
  14589. return (
  14590. /* Was there some problem with vforking? */
  14591. child < 0
  14592. /* Did the child fail? (This shouldn't happen.) */
  14593. || status
  14594. /* Did the vfork/compiler bug occur? */
  14595. || parent != getpid()
  14596. /* Did the file descriptor bug occur? */
  14597. || fstat(fileno(stdout), &st) != 0
  14598. );
  14599. }
  14600. }
  14601. _ACEOF
  14602. if ac_fn_c_try_run "$LINENO"; then :
  14603. ac_cv_func_vfork_works=yes
  14604. else
  14605. ac_cv_func_vfork_works=no
  14606. fi
  14607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14608. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14609. fi
  14610. fi
  14611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14612. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14613. fi;
  14614. if test "x$ac_cv_func_fork_works" = xcross; then
  14615. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14617. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14618. fi
  14619. if test "x$ac_cv_func_vfork_works" = xyes; then
  14620. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14621. else
  14622. $as_echo "#define vfork fork" >>confdefs.h
  14623. fi
  14624. if test "x$ac_cv_func_fork_works" = xyes; then
  14625. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14626. fi
  14627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14628. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14629. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14630. $as_echo_n "(cached) " >&6
  14631. else
  14632. rm -f conftest.sym conftest.file
  14633. echo >conftest.file
  14634. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14635. if test "$cross_compiling" = yes; then :
  14636. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14637. else
  14638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14639. /* end confdefs.h. */
  14640. $ac_includes_default
  14641. int
  14642. main ()
  14643. {
  14644. struct stat sbuf;
  14645. /* Linux will dereference the symlink and fail, as required by POSIX.
  14646. That is better in the sense that it means we will not
  14647. have to compile and use the lstat wrapper. */
  14648. return lstat ("conftest.sym/", &sbuf) == 0;
  14649. ;
  14650. return 0;
  14651. }
  14652. _ACEOF
  14653. if ac_fn_c_try_run "$LINENO"; then :
  14654. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14655. else
  14656. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14657. fi
  14658. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14659. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14660. fi
  14661. else
  14662. # If the `ln -s' command failed, then we probably don't even
  14663. # have an lstat function.
  14664. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14665. fi
  14666. rm -f conftest.sym conftest.file
  14667. fi
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14669. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14670. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14671. cat >>confdefs.h <<_ACEOF
  14672. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14673. _ACEOF
  14674. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14675. case " $LIBOBJS " in
  14676. *" lstat.$ac_objext "* ) ;;
  14677. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14678. ;;
  14679. esac
  14680. fi
  14681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14682. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14683. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14684. $as_echo_n "(cached) " >&6
  14685. else
  14686. if test "$cross_compiling" = yes; then :
  14687. ac_cv_func_lstat_empty_string_bug=yes
  14688. else
  14689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14690. /* end confdefs.h. */
  14691. $ac_includes_default
  14692. int
  14693. main ()
  14694. {
  14695. struct stat sbuf;
  14696. return lstat ("", &sbuf) == 0;
  14697. ;
  14698. return 0;
  14699. }
  14700. _ACEOF
  14701. if ac_fn_c_try_run "$LINENO"; then :
  14702. ac_cv_func_lstat_empty_string_bug=no
  14703. else
  14704. ac_cv_func_lstat_empty_string_bug=yes
  14705. fi
  14706. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14707. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14708. fi
  14709. fi
  14710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14711. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14712. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14713. case " $LIBOBJS " in
  14714. *" lstat.$ac_objext "* ) ;;
  14715. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14716. ;;
  14717. esac
  14718. cat >>confdefs.h <<_ACEOF
  14719. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14720. _ACEOF
  14721. fi
  14722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14723. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14724. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14725. $as_echo_n "(cached) " >&6
  14726. else
  14727. rm -f conftest.sym conftest.file
  14728. echo >conftest.file
  14729. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14730. if test "$cross_compiling" = yes; then :
  14731. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14732. else
  14733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14734. /* end confdefs.h. */
  14735. $ac_includes_default
  14736. int
  14737. main ()
  14738. {
  14739. struct stat sbuf;
  14740. /* Linux will dereference the symlink and fail, as required by POSIX.
  14741. That is better in the sense that it means we will not
  14742. have to compile and use the lstat wrapper. */
  14743. return lstat ("conftest.sym/", &sbuf) == 0;
  14744. ;
  14745. return 0;
  14746. }
  14747. _ACEOF
  14748. if ac_fn_c_try_run "$LINENO"; then :
  14749. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14750. else
  14751. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14752. fi
  14753. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14754. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14755. fi
  14756. else
  14757. # If the `ln -s' command failed, then we probably don't even
  14758. # have an lstat function.
  14759. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14760. fi
  14761. rm -f conftest.sym conftest.file
  14762. fi
  14763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14764. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14765. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14766. cat >>confdefs.h <<_ACEOF
  14767. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14768. _ACEOF
  14769. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14770. case " $LIBOBJS " in
  14771. *" lstat.$ac_objext "* ) ;;
  14772. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14773. ;;
  14774. esac
  14775. fi
  14776. for ac_header in stdlib.h
  14777. do :
  14778. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14779. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14780. cat >>confdefs.h <<_ACEOF
  14781. #define HAVE_STDLIB_H 1
  14782. _ACEOF
  14783. fi
  14784. done
  14785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14786. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14787. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14788. $as_echo_n "(cached) " >&6
  14789. else
  14790. if test "$cross_compiling" = yes; then :
  14791. ac_cv_func_malloc_0_nonnull=no
  14792. else
  14793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14794. /* end confdefs.h. */
  14795. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14796. # include <stdlib.h>
  14797. #else
  14798. char *malloc ();
  14799. #endif
  14800. int
  14801. main ()
  14802. {
  14803. return ! malloc (0);
  14804. ;
  14805. return 0;
  14806. }
  14807. _ACEOF
  14808. if ac_fn_c_try_run "$LINENO"; then :
  14809. ac_cv_func_malloc_0_nonnull=yes
  14810. else
  14811. ac_cv_func_malloc_0_nonnull=no
  14812. fi
  14813. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14814. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14815. fi
  14816. fi
  14817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14818. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14819. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14820. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14821. else
  14822. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14823. case " $LIBOBJS " in
  14824. *" malloc.$ac_objext "* ) ;;
  14825. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14826. ;;
  14827. esac
  14828. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14829. fi
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14831. $as_echo_n "checking for working memcmp... " >&6; }
  14832. if ${ac_cv_func_memcmp_working+:} false; then :
  14833. $as_echo_n "(cached) " >&6
  14834. else
  14835. if test "$cross_compiling" = yes; then :
  14836. ac_cv_func_memcmp_working=no
  14837. else
  14838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14839. /* end confdefs.h. */
  14840. $ac_includes_default
  14841. int
  14842. main ()
  14843. {
  14844. /* Some versions of memcmp are not 8-bit clean. */
  14845. char c0 = '\100', c1 = '\200', c2 = '\201';
  14846. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14847. return 1;
  14848. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14849. or more and with at least one buffer not starting on a 4-byte boundary.
  14850. William Lewis provided this test program. */
  14851. {
  14852. char foo[21];
  14853. char bar[21];
  14854. int i;
  14855. for (i = 0; i < 4; i++)
  14856. {
  14857. char *a = foo + i;
  14858. char *b = bar + i;
  14859. strcpy (a, "--------01111111");
  14860. strcpy (b, "--------10000000");
  14861. if (memcmp (a, b, 16) >= 0)
  14862. return 1;
  14863. }
  14864. return 0;
  14865. }
  14866. ;
  14867. return 0;
  14868. }
  14869. _ACEOF
  14870. if ac_fn_c_try_run "$LINENO"; then :
  14871. ac_cv_func_memcmp_working=yes
  14872. else
  14873. ac_cv_func_memcmp_working=no
  14874. fi
  14875. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14876. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14877. fi
  14878. fi
  14879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14880. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14881. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14882. *" memcmp.$ac_objext "* ) ;;
  14883. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14884. ;;
  14885. esac
  14886. for ac_header in $ac_header_list
  14887. do :
  14888. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14889. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14890. "
  14891. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14892. cat >>confdefs.h <<_ACEOF
  14893. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14894. _ACEOF
  14895. fi
  14896. done
  14897. for ac_func in getpagesize
  14898. do :
  14899. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14900. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14901. cat >>confdefs.h <<_ACEOF
  14902. #define HAVE_GETPAGESIZE 1
  14903. _ACEOF
  14904. fi
  14905. done
  14906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14907. $as_echo_n "checking for working mmap... " >&6; }
  14908. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14909. $as_echo_n "(cached) " >&6
  14910. else
  14911. if test "$cross_compiling" = yes; then :
  14912. ac_cv_func_mmap_fixed_mapped=no
  14913. else
  14914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14915. /* end confdefs.h. */
  14916. $ac_includes_default
  14917. /* malloc might have been renamed as rpl_malloc. */
  14918. #undef malloc
  14919. /* Thanks to Mike Haertel and Jim Avera for this test.
  14920. Here is a matrix of mmap possibilities:
  14921. mmap private not fixed
  14922. mmap private fixed at somewhere currently unmapped
  14923. mmap private fixed at somewhere already mapped
  14924. mmap shared not fixed
  14925. mmap shared fixed at somewhere currently unmapped
  14926. mmap shared fixed at somewhere already mapped
  14927. For private mappings, we should verify that changes cannot be read()
  14928. back from the file, nor mmap's back from the file at a different
  14929. address. (There have been systems where private was not correctly
  14930. implemented like the infamous i386 svr4.0, and systems where the
  14931. VM page cache was not coherent with the file system buffer cache
  14932. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14933. For shared mappings, we should conversely verify that changes get
  14934. propagated back to all the places they're supposed to be.
  14935. Grep wants private fixed already mapped.
  14936. The main things grep needs to know about mmap are:
  14937. * does it exist and is it safe to write into the mmap'd area
  14938. * how to use it (BSD variants) */
  14939. #include <fcntl.h>
  14940. #include <sys/mman.h>
  14941. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14942. char *malloc ();
  14943. #endif
  14944. /* This mess was copied from the GNU getpagesize.h. */
  14945. #ifndef HAVE_GETPAGESIZE
  14946. # ifdef _SC_PAGESIZE
  14947. # define getpagesize() sysconf(_SC_PAGESIZE)
  14948. # else /* no _SC_PAGESIZE */
  14949. # ifdef HAVE_SYS_PARAM_H
  14950. # include <sys/param.h>
  14951. # ifdef EXEC_PAGESIZE
  14952. # define getpagesize() EXEC_PAGESIZE
  14953. # else /* no EXEC_PAGESIZE */
  14954. # ifdef NBPG
  14955. # define getpagesize() NBPG * CLSIZE
  14956. # ifndef CLSIZE
  14957. # define CLSIZE 1
  14958. # endif /* no CLSIZE */
  14959. # else /* no NBPG */
  14960. # ifdef NBPC
  14961. # define getpagesize() NBPC
  14962. # else /* no NBPC */
  14963. # ifdef PAGESIZE
  14964. # define getpagesize() PAGESIZE
  14965. # endif /* PAGESIZE */
  14966. # endif /* no NBPC */
  14967. # endif /* no NBPG */
  14968. # endif /* no EXEC_PAGESIZE */
  14969. # else /* no HAVE_SYS_PARAM_H */
  14970. # define getpagesize() 8192 /* punt totally */
  14971. # endif /* no HAVE_SYS_PARAM_H */
  14972. # endif /* no _SC_PAGESIZE */
  14973. #endif /* no HAVE_GETPAGESIZE */
  14974. int
  14975. main ()
  14976. {
  14977. char *data, *data2, *data3;
  14978. const char *cdata2;
  14979. int i, pagesize;
  14980. int fd, fd2;
  14981. pagesize = getpagesize ();
  14982. /* First, make a file with some known garbage in it. */
  14983. data = (char *) malloc (pagesize);
  14984. if (!data)
  14985. return 1;
  14986. for (i = 0; i < pagesize; ++i)
  14987. *(data + i) = rand ();
  14988. umask (0);
  14989. fd = creat ("conftest.mmap", 0600);
  14990. if (fd < 0)
  14991. return 2;
  14992. if (write (fd, data, pagesize) != pagesize)
  14993. return 3;
  14994. close (fd);
  14995. /* Next, check that the tail of a page is zero-filled. File must have
  14996. non-zero length, otherwise we risk SIGBUS for entire page. */
  14997. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14998. if (fd2 < 0)
  14999. return 4;
  15000. cdata2 = "";
  15001. if (write (fd2, cdata2, 1) != 1)
  15002. return 5;
  15003. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15004. if (data2 == MAP_FAILED)
  15005. return 6;
  15006. for (i = 0; i < pagesize; ++i)
  15007. if (*(data2 + i))
  15008. return 7;
  15009. close (fd2);
  15010. if (munmap (data2, pagesize))
  15011. return 8;
  15012. /* Next, try to mmap the file at a fixed address which already has
  15013. something else allocated at it. If we can, also make sure that
  15014. we see the same garbage. */
  15015. fd = open ("conftest.mmap", O_RDWR);
  15016. if (fd < 0)
  15017. return 9;
  15018. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15019. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15020. return 10;
  15021. for (i = 0; i < pagesize; ++i)
  15022. if (*(data + i) != *(data2 + i))
  15023. return 11;
  15024. /* Finally, make sure that changes to the mapped area do not
  15025. percolate back to the file as seen by read(). (This is a bug on
  15026. some variants of i386 svr4.0.) */
  15027. for (i = 0; i < pagesize; ++i)
  15028. *(data2 + i) = *(data2 + i) + 1;
  15029. data3 = (char *) malloc (pagesize);
  15030. if (!data3)
  15031. return 12;
  15032. if (read (fd, data3, pagesize) != pagesize)
  15033. return 13;
  15034. for (i = 0; i < pagesize; ++i)
  15035. if (*(data + i) != *(data3 + i))
  15036. return 14;
  15037. close (fd);
  15038. return 0;
  15039. }
  15040. _ACEOF
  15041. if ac_fn_c_try_run "$LINENO"; then :
  15042. ac_cv_func_mmap_fixed_mapped=yes
  15043. else
  15044. ac_cv_func_mmap_fixed_mapped=no
  15045. fi
  15046. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15047. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15048. fi
  15049. fi
  15050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15051. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15052. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15053. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  15054. fi
  15055. rm -f conftest.mmap conftest.txt
  15056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  15057. $as_echo_n "checking return type of signal handlers... " >&6; }
  15058. if ${ac_cv_type_signal+:} false; then :
  15059. $as_echo_n "(cached) " >&6
  15060. else
  15061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15062. /* end confdefs.h. */
  15063. #include <sys/types.h>
  15064. #include <signal.h>
  15065. int
  15066. main ()
  15067. {
  15068. return *(signal (0, 0)) (0) == 1;
  15069. ;
  15070. return 0;
  15071. }
  15072. _ACEOF
  15073. if ac_fn_c_try_compile "$LINENO"; then :
  15074. ac_cv_type_signal=int
  15075. else
  15076. ac_cv_type_signal=void
  15077. fi
  15078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15079. fi
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  15081. $as_echo "$ac_cv_type_signal" >&6; }
  15082. cat >>confdefs.h <<_ACEOF
  15083. #define RETSIGTYPE $ac_cv_type_signal
  15084. _ACEOF
  15085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  15086. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  15087. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  15088. $as_echo_n "(cached) " >&6
  15089. else
  15090. if test "$cross_compiling" = yes; then :
  15091. ac_cv_func_stat_empty_string_bug=yes
  15092. else
  15093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15094. /* end confdefs.h. */
  15095. $ac_includes_default
  15096. int
  15097. main ()
  15098. {
  15099. struct stat sbuf;
  15100. return stat ("", &sbuf) == 0;
  15101. ;
  15102. return 0;
  15103. }
  15104. _ACEOF
  15105. if ac_fn_c_try_run "$LINENO"; then :
  15106. ac_cv_func_stat_empty_string_bug=no
  15107. else
  15108. ac_cv_func_stat_empty_string_bug=yes
  15109. fi
  15110. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15111. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15112. fi
  15113. fi
  15114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15115. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  15116. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15117. case " $LIBOBJS " in
  15118. *" stat.$ac_objext "* ) ;;
  15119. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15120. ;;
  15121. esac
  15122. cat >>confdefs.h <<_ACEOF
  15123. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15124. _ACEOF
  15125. fi
  15126. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15127. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15128. ac_have_decl=1
  15129. else
  15130. ac_have_decl=0
  15131. fi
  15132. cat >>confdefs.h <<_ACEOF
  15133. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15134. _ACEOF
  15135. for ac_func in strerror_r
  15136. do :
  15137. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15138. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15139. cat >>confdefs.h <<_ACEOF
  15140. #define HAVE_STRERROR_R 1
  15141. _ACEOF
  15142. fi
  15143. done
  15144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15145. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15146. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15147. $as_echo_n "(cached) " >&6
  15148. else
  15149. ac_cv_func_strerror_r_char_p=no
  15150. if test $ac_cv_have_decl_strerror_r = yes; then
  15151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15152. /* end confdefs.h. */
  15153. $ac_includes_default
  15154. int
  15155. main ()
  15156. {
  15157. char buf[100];
  15158. char x = *strerror_r (0, buf, sizeof buf);
  15159. char *p = strerror_r (0, buf, sizeof buf);
  15160. return !p || x;
  15161. ;
  15162. return 0;
  15163. }
  15164. _ACEOF
  15165. if ac_fn_c_try_compile "$LINENO"; then :
  15166. ac_cv_func_strerror_r_char_p=yes
  15167. fi
  15168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15169. else
  15170. # strerror_r is not declared. Choose between
  15171. # systems that have relatively inaccessible declarations for the
  15172. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15173. # former has a strerror_r that returns char*, while the latter
  15174. # has a strerror_r that returns `int'.
  15175. # This test should segfault on the DEC system.
  15176. if test "$cross_compiling" = yes; then :
  15177. :
  15178. else
  15179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15180. /* end confdefs.h. */
  15181. $ac_includes_default
  15182. extern char *strerror_r ();
  15183. int
  15184. main ()
  15185. {
  15186. char buf[100];
  15187. char x = *strerror_r (0, buf, sizeof buf);
  15188. return ! isalpha (x);
  15189. ;
  15190. return 0;
  15191. }
  15192. _ACEOF
  15193. if ac_fn_c_try_run "$LINENO"; then :
  15194. ac_cv_func_strerror_r_char_p=yes
  15195. fi
  15196. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15197. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15198. fi
  15199. fi
  15200. fi
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15202. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15203. if test $ac_cv_func_strerror_r_char_p = yes; then
  15204. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15205. fi
  15206. for ac_func in strftime
  15207. do :
  15208. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15209. if test "x$ac_cv_func_strftime" = xyes; then :
  15210. cat >>confdefs.h <<_ACEOF
  15211. #define HAVE_STRFTIME 1
  15212. _ACEOF
  15213. else
  15214. # strftime is in -lintl on SCO UNIX.
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15216. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15217. if ${ac_cv_lib_intl_strftime+:} false; then :
  15218. $as_echo_n "(cached) " >&6
  15219. else
  15220. ac_check_lib_save_LIBS=$LIBS
  15221. LIBS="-lintl $LIBS"
  15222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15223. /* end confdefs.h. */
  15224. /* Override any GCC internal prototype to avoid an error.
  15225. Use char because int might match the return type of a GCC
  15226. builtin and then its argument prototype would still apply. */
  15227. #ifdef __cplusplus
  15228. extern "C"
  15229. #endif
  15230. char strftime ();
  15231. int
  15232. main ()
  15233. {
  15234. return strftime ();
  15235. ;
  15236. return 0;
  15237. }
  15238. _ACEOF
  15239. if ac_fn_c_try_link "$LINENO"; then :
  15240. ac_cv_lib_intl_strftime=yes
  15241. else
  15242. ac_cv_lib_intl_strftime=no
  15243. fi
  15244. rm -f core conftest.err conftest.$ac_objext \
  15245. conftest$ac_exeext conftest.$ac_ext
  15246. LIBS=$ac_check_lib_save_LIBS
  15247. fi
  15248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15249. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15250. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15251. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15252. LIBS="-lintl $LIBS"
  15253. fi
  15254. fi
  15255. done
  15256. for ac_func in vprintf
  15257. do :
  15258. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15259. if test "x$ac_cv_func_vprintf" = xyes; then :
  15260. cat >>confdefs.h <<_ACEOF
  15261. #define HAVE_VPRINTF 1
  15262. _ACEOF
  15263. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15264. if test "x$ac_cv_func__doprnt" = xyes; then :
  15265. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15266. fi
  15267. fi
  15268. done
  15269. for ac_func in setrlimit endpwent ftruncate getcwd gethostbyname inet_ntoa localtime_r memmove memset mkdir munmap putenv rmdir socket strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strstr strtol tzset
  15270. do :
  15271. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15272. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15273. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15274. cat >>confdefs.h <<_ACEOF
  15275. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15276. _ACEOF
  15277. fi
  15278. done
  15279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15280. $as_echo_n "checking for --enable-debug... " >&6; }
  15281. # Check whether --enable-debug was given.
  15282. if test "${enable_debug+set}" = set; then :
  15283. enableval=$enable_debug;
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15285. $as_echo "yes" >&6; }
  15286. debug_defs="-g3 -DDEBUG -DMCC_DEBUG"
  15287. else
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15289. $as_echo "no" >&6; }
  15290. debug_defs=""
  15291. fi
  15292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-asan" >&5
  15293. $as_echo_n "checking for --enable-asan... " >&6; }
  15294. # Check whether --enable-asan was given.
  15295. if test "${enable_asan+set}" = set; then :
  15296. enableval=$enable_asan;
  15297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15298. $as_echo "yes" >&6; }
  15299. asan_defs="-fsanitize=address -fno-omit-frame-pointer"
  15300. else
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15302. $as_echo "no" >&6; }
  15303. asan_defs=""
  15304. fi
  15305. if test -f /usr/lib/rpm/redhat/redhat-hardened-cc1; then
  15306. RPM_HARDEND_CC_TRUE=
  15307. RPM_HARDEND_CC_FALSE='#'
  15308. else
  15309. RPM_HARDEND_CC_TRUE='#'
  15310. RPM_HARDEND_CC_FALSE=
  15311. fi
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-gcc-security" >&5
  15313. $as_echo_n "checking for --enable-gcc-security... " >&6; }
  15314. # Check whether --enable-gcc-security was given.
  15315. if test "${enable_gcc_security+set}" = set; then :
  15316. enableval=$enable_gcc_security;
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15318. $as_echo "yes" >&6; }
  15319. if test -z "$RPM_HARDEND_CC_TRUE"; then :
  15320. 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 "
  15321. else
  15322. gccsec_defs="-Wall -Wp,-D_FORITY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security"
  15323. fi
  15324. else
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15326. $as_echo "no" >&6; }
  15327. gccsec_defs=""
  15328. fi
  15329. # Used for legacy style packaging where we bundle all of the dependencies.
  15330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15331. $as_echo_n "checking for --enable-bundle... " >&6; }
  15332. # Check whether --enable-bundle was given.
  15333. if test "${enable_bundle+set}" = set; then :
  15334. enableval=$enable_bundle;
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15336. $as_echo "yes" >&6; }
  15337. bundle="1";
  15338. else
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15340. $as_echo "no" >&6; }
  15341. bundle="";
  15342. fi
  15343. if test "$bundle" = "1"; then
  15344. BUNDLE_TRUE=
  15345. BUNDLE_FALSE='#'
  15346. else
  15347. BUNDLE_TRUE='#'
  15348. BUNDLE_FALSE=
  15349. fi
  15350. # these enables are for optional or experimental features
  15351. if test -z "$enable_pam_passthru" ; then
  15352. enable_pam_passthru=yes # if not set on cmdline, set default
  15353. fi
  15354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15355. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15356. # Check whether --enable-pam-passthru was given.
  15357. if test "${enable_pam_passthru+set}" = set; then :
  15358. enableval=$enable_pam_passthru;
  15359. fi
  15360. if test "$enable_pam_passthru" = yes ; then
  15361. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15362. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15363. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15364. else
  15365. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15366. fi
  15367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15368. $as_echo "yes" >&6; }
  15369. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15370. else
  15371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15372. $as_echo "no" >&6; }
  15373. fi
  15374. if test "$enable_pam_passthru" = "yes"; then
  15375. enable_pam_passthru_TRUE=
  15376. enable_pam_passthru_FALSE='#'
  15377. else
  15378. enable_pam_passthru_TRUE='#'
  15379. enable_pam_passthru_FALSE=
  15380. fi
  15381. if test -z "$enable_dna" ; then
  15382. enable_dna=yes # if not set on cmdline, set default
  15383. fi
  15384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15385. $as_echo_n "checking for --enable-dna... " >&6; }
  15386. # Check whether --enable-dna was given.
  15387. if test "${enable_dna+set}" = set; then :
  15388. enableval=$enable_dna;
  15389. fi
  15390. if test "$enable_dna" = yes ; then
  15391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15392. $as_echo "yes" >&6; }
  15393. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15394. else
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15396. $as_echo "no" >&6; }
  15397. fi
  15398. if test "$enable_dna" = "yes"; then
  15399. enable_dna_TRUE=
  15400. enable_dna_FALSE='#'
  15401. else
  15402. enable_dna_TRUE='#'
  15403. enable_dna_FALSE=
  15404. fi
  15405. if test -z "$enable_ldapi" ; then
  15406. enable_ldapi=yes # if not set on cmdline, set default
  15407. fi
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15409. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15410. # Check whether --enable-ldapi was given.
  15411. if test "${enable_ldapi+set}" = set; then :
  15412. enableval=$enable_ldapi;
  15413. fi
  15414. if test "$enable_ldapi" = yes ; then
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15416. $as_echo "yes" >&6; }
  15417. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15418. else
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15420. $as_echo "no" >&6; }
  15421. fi
  15422. if test "$enable_ldapi" = "yes"; then
  15423. enable_ldapi_TRUE=
  15424. enable_ldapi_FALSE='#'
  15425. else
  15426. enable_ldapi_TRUE='#'
  15427. enable_ldapi_FALSE=
  15428. fi
  15429. if test -z "$enable_autobind" ; then
  15430. enable_autobind=no # if not set on cmdline, set default
  15431. fi
  15432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15433. $as_echo_n "checking for --enable-autobind... " >&6; }
  15434. # Check whether --enable-autobind was given.
  15435. if test "${enable_autobind+set}" = set; then :
  15436. enableval=$enable_autobind;
  15437. fi
  15438. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15440. $as_echo "yes" >&6; }
  15441. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15442. else
  15443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15444. $as_echo "no" >&6; }
  15445. fi
  15446. if test "$enable_autobind" = "yes"; then
  15447. enable_autobind_TRUE=
  15448. enable_autobind_FALSE='#'
  15449. else
  15450. enable_autobind_TRUE='#'
  15451. enable_autobind_FALSE=
  15452. fi
  15453. if test -z "$enable_auto_dn_suffix" ; then
  15454. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15455. fi
  15456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15457. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15458. # Check whether --enable-autobind was given.
  15459. if test "${enable_autobind+set}" = set; then :
  15460. enableval=$enable_autobind;
  15461. fi
  15462. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15464. $as_echo "yes" >&6; }
  15465. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15466. else
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15468. $as_echo "no" >&6; }
  15469. fi
  15470. if test "$enable_auto_dn_suffix" = "yes"; then
  15471. enable_auto_dn_suffix_TRUE=
  15472. enable_auto_dn_suffix_FALSE='#'
  15473. else
  15474. enable_auto_dn_suffix_TRUE='#'
  15475. enable_auto_dn_suffix_FALSE=
  15476. fi
  15477. if test -z "$enable_bitwise" ; then
  15478. enable_bitwise=yes # if not set on cmdline, set default
  15479. fi
  15480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15481. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15482. # Check whether --enable-bitwise was given.
  15483. if test "${enable_bitwise+set}" = set; then :
  15484. enableval=$enable_bitwise;
  15485. fi
  15486. if test "$enable_bitwise" = yes ; then
  15487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15488. $as_echo "yes" >&6; }
  15489. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15490. else
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15492. $as_echo "no" >&6; }
  15493. fi
  15494. if test "$enable_bitwise" = "yes"; then
  15495. enable_bitwise_TRUE=
  15496. enable_bitwise_FALSE='#'
  15497. else
  15498. enable_bitwise_TRUE='#'
  15499. enable_bitwise_FALSE=
  15500. fi
  15501. if test -z "$enable_presence" ; then
  15502. enable_presence=no # if not set on cmdline, set default
  15503. fi
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15505. $as_echo_n "checking for --enable-presence... " >&6; }
  15506. # Check whether --enable-presence was given.
  15507. if test "${enable_presence+set}" = set; then :
  15508. enableval=$enable_presence;
  15509. fi
  15510. if test "$enable_presence" = yes ; then
  15511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15512. $as_echo "yes" >&6; }
  15513. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15514. else
  15515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15516. $as_echo "no" >&6; }
  15517. fi
  15518. if test "$enable_presence" = "yes"; then
  15519. enable_presence_TRUE=
  15520. enable_presence_FALSE='#'
  15521. else
  15522. enable_presence_TRUE='#'
  15523. enable_presence_FALSE=
  15524. fi
  15525. if test -z "$enable_acctpolicy" ; then
  15526. enable_acctpolicy=yes # if not set on cmdline, set default
  15527. fi
  15528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15529. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15530. # Check whether --enable-acctpolicy was given.
  15531. if test "${enable_acctpolicy+set}" = set; then :
  15532. enableval=$enable_acctpolicy;
  15533. fi
  15534. if test "$enable_acctpolicy" = yes ; then
  15535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15536. $as_echo "yes" >&6; }
  15537. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15538. else
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15540. $as_echo "no" >&6; }
  15541. fi
  15542. if test "$enable_acctpolicy" = "yes"; then
  15543. enable_acctpolicy_TRUE=
  15544. enable_acctpolicy_FALSE='#'
  15545. else
  15546. enable_acctpolicy_TRUE='#'
  15547. enable_acctpolicy_FALSE=
  15548. fi
  15549. if test -z "$enable_posix_winsync" ; then
  15550. enable_posix_winsync=yes # if not set on cmdline, set default
  15551. fi
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15553. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15554. # Check whether --enable-posix_winsync was given.
  15555. if test "${enable_posix_winsync+set}" = set; then :
  15556. enableval=$enable_posix_winsync;
  15557. fi
  15558. if test "$enable_posix_winsync" = yes ; then
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15560. $as_echo "yes" >&6; }
  15561. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15562. else
  15563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15564. $as_echo "no" >&6; }
  15565. fi
  15566. if test "$enable_posix_winsync" = "yes"; then
  15567. enable_posix_winsync_TRUE=
  15568. enable_posix_winsync_FALSE='#'
  15569. else
  15570. enable_posix_winsync_TRUE='#'
  15571. enable_posix_winsync_FALSE=
  15572. fi
  15573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-nunc-stans" >&5
  15574. $as_echo_n "checking for --enable-nunc-stans... " >&6; }
  15575. # Check whether --enable-nunc_stans was given.
  15576. if test "${enable_nunc_stans+set}" = set; then :
  15577. enableval=$enable_nunc_stans;
  15578. fi
  15579. if test "$enable_nunc_stans" = yes ; then
  15580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15581. $as_echo "yes" >&6; }
  15582. $as_echo "#define ENABLE_NUNC_STANS 1" >>confdefs.h
  15583. else
  15584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15585. $as_echo "no" >&6; }
  15586. fi
  15587. if test "$enable_nunc_stans" = "yes"; then
  15588. enable_nunc_stans_TRUE=
  15589. enable_nunc_stans_FALSE='#'
  15590. else
  15591. enable_nunc_stans_TRUE='#'
  15592. enable_nunc_stans_FALSE=
  15593. fi
  15594. # the default prefix - override with --prefix or --with-fhs
  15595. # BEGIN COPYRIGHT BLOCK
  15596. # Copyright (C) 2006 Red Hat, Inc.
  15597. # All rights reserved.
  15598. #
  15599. # License: GPL (version 3 or any later version).
  15600. # See LICENSE for details.
  15601. # END COPYRIGHT BLOCK
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15603. $as_echo "$as_me: checking for FHS..." >&6;}
  15604. # check for --with-fhs
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15606. $as_echo_n "checking for --with-fhs... " >&6; }
  15607. # Check whether --with-fhs was given.
  15608. if test "${with_fhs+set}" = set; then :
  15609. withval=$with_fhs;
  15610. with_fhs=yes
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15612. $as_echo "yes" >&6; }
  15613. else
  15614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15615. $as_echo "no" >&6; }
  15616. fi
  15617. if test "$with_fhs" = "yes"; then
  15618. $as_echo "#define IS_FHS 1" >>confdefs.h
  15619. fi
  15620. # check for --with-fhs-opt
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15622. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15623. # Check whether --with-fhs-opt was given.
  15624. if test "${with_fhs_opt+set}" = set; then :
  15625. withval=$with_fhs_opt;
  15626. with_fhs_opt=yes
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15628. $as_echo "yes" >&6; }
  15629. else
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15631. $as_echo "no" >&6; }
  15632. fi
  15633. if test "$with_fhs_opt" = "yes"; then
  15634. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15635. fi
  15636. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15637. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15638. fi
  15639. localrundir='/run'
  15640. # installation paths - by default, we store everything
  15641. # under the prefix. The with-fhs option will use /usr,
  15642. # /etc, and /var. The with-fhs-opt option will use the
  15643. # prefix, but it's sysconfdir and localstatedir will be
  15644. # /etc/opt, and /var/opt.
  15645. if test "$with_fhs_opt" = "yes"; then
  15646. # Override sysconfdir and localstatedir if FHS optional
  15647. # package was requested.
  15648. sysconfdir='/etc/opt'
  15649. localstatedir='/var/opt'
  15650. localrundir='/var/opt/run'
  15651. # relative to datadir
  15652. sampledatadir=/data
  15653. # relative to datadir
  15654. scripttemplatedir=/script-templates
  15655. # relative to datadir
  15656. updatedir=/updates
  15657. # relative to libdir
  15658. serverdir=
  15659. # relative to includedir
  15660. serverincdir=
  15661. # relative to libdir
  15662. serverplugindir=/plugins
  15663. # relative to datadir
  15664. infdir=/inf
  15665. # relative to datadir
  15666. mibdir=/mibs
  15667. # location of property/resource files, relative to datadir
  15668. propertydir=/properties
  15669. # relative to libdir
  15670. perldir=/perl
  15671. # relative to libdir
  15672. pythondir=/python
  15673. else
  15674. if test "$with_fhs" = "yes"; then
  15675. ac_default_prefix=/usr
  15676. prefix=$ac_default_prefix
  15677. exec_prefix=$prefix
  15678. sysconfdir='/etc'
  15679. localstatedir='/var'
  15680. localrundir='/run'
  15681. fi
  15682. # relative to datadir
  15683. sampledatadir=/$PACKAGE_NAME/data
  15684. # relative to datadir
  15685. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15686. # relative to datadir
  15687. updatedir=/$PACKAGE_NAME/updates
  15688. # relative to libdir
  15689. serverdir=/$PACKAGE_NAME
  15690. # relative to includedir
  15691. serverincdir=/$PACKAGE_NAME
  15692. # relative to libdir
  15693. serverplugindir=/$PACKAGE_NAME/plugins
  15694. # relative to datadir
  15695. infdir=/$PACKAGE_NAME/inf
  15696. # relative to datadir
  15697. mibdir=/$PACKAGE_NAME/mibs
  15698. # location of property/resource files, relative to datadir
  15699. propertydir=/$PACKAGE_NAME/properties
  15700. # relative to libdir
  15701. perldir=/$PACKAGE_NAME/perl
  15702. # relative to libdir
  15703. pythondir=/$PACKAGE_NAME/python
  15704. fi
  15705. # if mandir is the default value, override it
  15706. # otherwise, the user must have set it - just use it
  15707. if test X"$mandir" = X'${prefix}/man' ; then
  15708. mandir='$(datadir)/man'
  15709. fi
  15710. # Shared paths for all layouts
  15711. # relative to sysconfdir
  15712. configdir=/$PACKAGE_NAME/config
  15713. # relative to sysconfdir
  15714. schemadir=/$PACKAGE_NAME/schema
  15715. # default user, group
  15716. defaultuser=dirsrv
  15717. defaultgroup=dirsrv
  15718. if test -z "$with_tmpfiles_d" ; then
  15719. if test -d $sysconfdir/tmpfiles.d ; then
  15720. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15721. fi
  15722. fi
  15723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15724. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15725. # Check whether --with-tmpfiles-d was given.
  15726. if test "${with_tmpfiles_d+set}" = set; then :
  15727. withval=$with_tmpfiles_d;
  15728. fi
  15729. if test "$with_tmpfiles_d" = yes ; then
  15730. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15731. elif test "$with_tmpfiles_d" = no ; then
  15732. with_tmpfiles_d=
  15733. else
  15734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15735. $as_echo "$with_tmpfiles_d" >&6; }
  15736. fi
  15737. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15738. if test -n "$ac_tool_prefix"; then
  15739. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15740. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15742. $as_echo_n "checking for $ac_word... " >&6; }
  15743. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15744. $as_echo_n "(cached) " >&6
  15745. else
  15746. case $PKG_CONFIG in
  15747. [\\/]* | ?:[\\/]*)
  15748. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15749. ;;
  15750. *)
  15751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15752. for as_dir in $PATH
  15753. do
  15754. IFS=$as_save_IFS
  15755. test -z "$as_dir" && as_dir=.
  15756. for ac_exec_ext in '' $ac_executable_extensions; do
  15757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15758. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15760. break 2
  15761. fi
  15762. done
  15763. done
  15764. IFS=$as_save_IFS
  15765. ;;
  15766. esac
  15767. fi
  15768. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15769. if test -n "$PKG_CONFIG"; then
  15770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15771. $as_echo "$PKG_CONFIG" >&6; }
  15772. else
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15774. $as_echo "no" >&6; }
  15775. fi
  15776. fi
  15777. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15778. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15779. # Extract the first word of "pkg-config", so it can be a program name with args.
  15780. set dummy pkg-config; ac_word=$2
  15781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15782. $as_echo_n "checking for $ac_word... " >&6; }
  15783. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15784. $as_echo_n "(cached) " >&6
  15785. else
  15786. case $ac_pt_PKG_CONFIG in
  15787. [\\/]* | ?:[\\/]*)
  15788. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15789. ;;
  15790. *)
  15791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15792. for as_dir in $PATH
  15793. do
  15794. IFS=$as_save_IFS
  15795. test -z "$as_dir" && as_dir=.
  15796. for ac_exec_ext in '' $ac_executable_extensions; do
  15797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15798. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15800. break 2
  15801. fi
  15802. done
  15803. done
  15804. IFS=$as_save_IFS
  15805. ;;
  15806. esac
  15807. fi
  15808. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15809. if test -n "$ac_pt_PKG_CONFIG"; then
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15811. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15812. else
  15813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15814. $as_echo "no" >&6; }
  15815. fi
  15816. if test "x$ac_pt_PKG_CONFIG" = x; then
  15817. PKG_CONFIG=""
  15818. else
  15819. case $cross_compiling:$ac_tool_warned in
  15820. yes:)
  15821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15822. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15823. ac_tool_warned=yes ;;
  15824. esac
  15825. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15826. fi
  15827. else
  15828. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15829. fi
  15830. fi
  15831. if test -n "$PKG_CONFIG"; then
  15832. _pkg_min_version=0.9.0
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15834. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15835. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15837. $as_echo "yes" >&6; }
  15838. else
  15839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15840. $as_echo "no" >&6; }
  15841. PKG_CONFIG=""
  15842. fi
  15843. fi
  15844. if test -n "$PKG_CONFIG" ; then
  15845. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15846. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15847. fi
  15848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15849. $as_echo_n "checking for --with-perldir... " >&6; }
  15850. # Check whether --with-perldir was given.
  15851. if test "${with_perldir+set}" = set; then :
  15852. withval=$with_perldir;
  15853. fi
  15854. if test -n "$with_perldir"; then
  15855. if test "$with_perldir" = yes ; then
  15856. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15857. elif test "$with_perldir" = no ; then
  15858. with_perldir=
  15859. else
  15860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15861. $as_echo "$with_perldir" >&6; }
  15862. fi
  15863. else
  15864. with_perldir=
  15865. fi
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pythondir" >&5
  15867. $as_echo_n "checking for --with-pythondir... " >&6; }
  15868. # Check whether --with-pythondir was given.
  15869. if test "${with_pythondir+set}" = set; then :
  15870. withval=$with_pythondir;
  15871. fi
  15872. if test -n "$with_pythondir"; then
  15873. if test "$with_pythondir" = yes ; then
  15874. as_fn_error $? "You must specify --with-pythondir=/full/path/to/python" "$LINENO" 5
  15875. elif test "$with_pythondir" = no ; then
  15876. with_pythondir=
  15877. else
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pythondir" >&5
  15879. $as_echo "$with_pythondir" >&6; }
  15880. fi
  15881. else
  15882. with_pythondir=
  15883. fi
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15885. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15886. # Check whether --with-systemdsystemunitdir was given.
  15887. if test "${with_systemdsystemunitdir+set}" = set; then :
  15888. withval=$with_systemdsystemunitdir;
  15889. fi
  15890. if test "$with_systemdsystemunitdir" = yes ; then
  15891. if test -n "$default_systemdsystemunitdir" ; then
  15892. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15894. $as_echo "$with_systemdsystemunitdir" >&6; }
  15895. else
  15896. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15897. fi
  15898. elif test "$with_systemdsystemunitdir" = no ; then
  15899. with_systemdsystemunitdir=
  15900. else
  15901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15902. $as_echo "$with_systemdsystemunitdir" >&6; }
  15903. fi
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15905. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15906. # Check whether --with-systemdsystemconfdir was given.
  15907. if test "${with_systemdsystemconfdir+set}" = set; then :
  15908. withval=$with_systemdsystemconfdir;
  15909. fi
  15910. if test "$with_systemdsystemconfdir" = yes ; then
  15911. if test -n "$default_systemdsystemconfdir" ; then
  15912. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15914. $as_echo "$with_systemdsystemconfdir" >&6; }
  15915. else
  15916. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15917. fi
  15918. elif test "$with_systemdsystemconfdir" = no ; then
  15919. with_systemdsystemconfdir=
  15920. else
  15921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15922. $as_echo "$with_systemdsystemconfdir" >&6; }
  15923. fi
  15924. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15925. if test -z "$with_systemdgroupname" ; then
  15926. with_systemdgroupname=$PACKAGE_NAME.target
  15927. fi
  15928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15929. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15930. # Check whether --with-systemdgroupname was given.
  15931. if test "${with_systemdgroupname+set}" = set; then :
  15932. withval=$with_systemdgroupname;
  15933. fi
  15934. if test "$with_systemdgroupname" = yes ; then
  15935. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15936. elif test "$with_systemdgroupname" = no ; then
  15937. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15938. else
  15939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15940. $as_echo "$with_systemdgroupname" >&6; }
  15941. fi
  15942. fi
  15943. # check for --with-instconfigdir
  15944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15945. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15946. # Check whether --with-instconfigdir was given.
  15947. if test "${with_instconfigdir+set}" = set; then :
  15948. withval=$with_instconfigdir;
  15949. if test $withval = yes ; then
  15950. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15951. fi
  15952. instconfigdir="$withval"
  15953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15954. $as_echo "$withval" >&6; }
  15955. else
  15956. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15958. $as_echo "no" >&6; }
  15959. fi
  15960. # WINNT should be true if building on Windows system not using
  15961. # cygnus, mingw, or the like and using cmd.exe as the shell
  15962. if false; then
  15963. WINNT_TRUE=
  15964. WINNT_FALSE='#'
  15965. else
  15966. WINNT_TRUE='#'
  15967. WINNT_FALSE=
  15968. fi
  15969. # Deal with platform dependent defines
  15970. # initdir is the location for the SysV init scripts - very heavily platform
  15971. # dependent and not specified in fhs or lsb
  15972. # and not used if systemd is used
  15973. initdir='$(sysconfdir)/rc.d'
  15974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15975. $as_echo_n "checking for --with-initddir... " >&6; }
  15976. # Check whether --with-initddir was given.
  15977. if test "${with_initddir+set}" = set; then :
  15978. withval=$with_initddir;
  15979. if test "$withval" = yes -o "$withval" = no ; then
  15980. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15981. fi
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15983. $as_echo "$withval" >&6; }
  15984. else
  15985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15986. $as_echo "no" >&6; }
  15987. fi
  15988. # on most platforms, we will just use perl from PATH
  15989. # On some platforms, we cannot. Why not just use any old
  15990. # perl? Because of perldap. We use a perldap that is
  15991. # compiled to either 32bit or 64bit, so we must use a native
  15992. # perl binary compiled with the same bitsize. On Solaris
  15993. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15994. # those with our 64 bit compiled product.
  15995. if test -n "$with_perldir"; then
  15996. perlexec="$with_perldir/perl"
  15997. else
  15998. perlexec='/usr/bin/env perl'
  15999. fi
  16000. # we use stty in perl scripts to disable password echo
  16001. # this doesn't work unless the full absolute path of the
  16002. # stty command is used e.g. system("stty -echo") does not
  16003. # work but system("/bin/stty -echo") does work
  16004. # since the path of stty may not be the same on all
  16005. # platforms, we set the default here to /bin/stty and
  16006. # allow that value to be overridden in the platform
  16007. # specific section below
  16008. sttyexec=/bin/stty
  16009. case $host in
  16010. *-*-linux*)
  16011. $as_echo "#define Linux 1" >>confdefs.h
  16012. $as_echo "#define LINUX 1" >>confdefs.h
  16013. $as_echo "#define LINUX2_0 1" >>confdefs.h
  16014. $as_echo "#define LINUX2_2 1" >>confdefs.h
  16015. $as_echo "#define LINUX2_4 1" >>confdefs.h
  16016. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  16017. platform="linux"
  16018. initdir='$(sysconfdir)/rc.d/init.d'
  16019. # do arch specific linux stuff here
  16020. case $host in
  16021. i*86-*-linux*)
  16022. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  16023. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16024. ;;
  16025. x86_64-*-linux*)
  16026. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  16027. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16028. ;;
  16029. aarch64-*-linux*)
  16030. $as_echo "#define CPU_arm /**/" >>confdefs.h
  16031. ;;
  16032. arm*-linux*)
  16033. $as_echo "#define CPU_arm /**/" >>confdefs.h
  16034. ;;
  16035. esac
  16036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  16037. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  16038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16039. /* end confdefs.h. */
  16040. int
  16041. main ()
  16042. {
  16043. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  16044. ;
  16045. return 0;
  16046. }
  16047. _ACEOF
  16048. if ac_fn_c_try_link "$LINENO"; then :
  16049. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16051. $as_echo "yes" >&6; }
  16052. else
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16054. $as_echo "no" >&6; }
  16055. fi
  16056. rm -f core conftest.err conftest.$ac_objext \
  16057. conftest$ac_exeext conftest.$ac_ext
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  16059. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  16060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16061. /* end confdefs.h. */
  16062. int
  16063. main ()
  16064. {
  16065. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  16066. ;
  16067. return 0;
  16068. }
  16069. _ACEOF
  16070. if ac_fn_c_try_link "$LINENO"; then :
  16071. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  16072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16073. $as_echo "yes" >&6; }
  16074. else
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16076. $as_echo "no" >&6; }
  16077. fi
  16078. rm -f core conftest.err conftest.$ac_objext \
  16079. conftest$ac_exeext conftest.$ac_ext
  16080. # some programs use the native thread library directly
  16081. THREADLIB=-lpthread
  16082. THREADLIB=$THREADLIB
  16083. LIBCRYPT=-lcrypt
  16084. LIBCRYPT=$LIBCRYPT
  16085. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  16086. ;;
  16087. ia64-hp-hpux*)
  16088. $as_echo "#define hpux 1" >>confdefs.h
  16089. $as_echo "#define HPUX 1" >>confdefs.h
  16090. $as_echo "#define HPUX11 1" >>confdefs.h
  16091. $as_echo "#define HPUX11_23 1" >>confdefs.h
  16092. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  16093. $as_echo "#define OS_hpux 1" >>confdefs.h
  16094. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  16095. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  16096. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  16097. # assume 64 bit
  16098. perlexec='/opt/perl_64/bin/perl'
  16099. platform="hpux"
  16100. initconfigdir="/$PACKAGE_NAME/config"
  16101. # HPUX doesn't use /etc for this
  16102. initdir=/init.d
  16103. ;;
  16104. hppa*-hp-hpux*)
  16105. $as_echo "#define hpux 1" >>confdefs.h
  16106. $as_echo "#define HPUX 1" >>confdefs.h
  16107. $as_echo "#define HPUX11 1" >>confdefs.h
  16108. $as_echo "#define HPUX11_11 1" >>confdefs.h
  16109. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  16110. $as_echo "#define OS_hpux 1" >>confdefs.h
  16111. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  16112. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  16113. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  16114. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16115. # assume 64 bit
  16116. initconfigdir="/$PACKAGE_NAME/config"
  16117. perlexec='/opt/perl_64/bin/perl'
  16118. platform="hpux"
  16119. # HPUX doesn't use /etc for this
  16120. initdir=/init.d
  16121. ;;
  16122. *-*-solaris*)
  16123. $as_echo "#define SVR4 1" >>confdefs.h
  16124. $as_echo "#define __svr4 1" >>confdefs.h
  16125. $as_echo "#define __svr4__ 1" >>confdefs.h
  16126. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  16127. $as_echo "#define SOLARIS 1" >>confdefs.h
  16128. $as_echo "#define OS_solaris 1" >>confdefs.h
  16129. $as_echo "#define sunos5 1" >>confdefs.h
  16130. $as_echo "#define OSVERSION 509" >>confdefs.h
  16131. $as_echo "#define _REENTRANT 1" >>confdefs.h
  16132. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  16133. LIBSOCKET=-lsocket
  16134. LIBSOCKET=$LIBSOCKET
  16135. LIBNSL=-lnsl
  16136. LIBNSL=$LIBNSL
  16137. LIBDL=-ldl
  16138. LIBDL=$LIBDL
  16139. LIBCSTD=-lCstd
  16140. LIBCSTD=$LIBCSTD
  16141. LIBCRUN=-lCrun
  16142. LIBCRUN=$LIBCRUN
  16143. platform="solaris"
  16144. initdir='$(sysconfdir)/init.d'
  16145. case $host in
  16146. i?86-*-solaris2.1[0-9]*)
  16147. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  16148. ;;
  16149. sparc-*-solaris*)
  16150. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  16151. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  16152. TARGET='SPARC'
  16153. ;;
  16154. esac
  16155. ;;
  16156. *)
  16157. platform=""
  16158. ;;
  16159. esac
  16160. # cmd line overrides default setting above
  16161. if test -n "$with_initddir" ; then
  16162. initdir="$with_initddir"
  16163. fi
  16164. # sysv init scripts not used when systemd is used
  16165. # set default initconfigdir if not already set
  16166. # value will be set so as to be relative to $(sysconfdir)
  16167. if test -z "$initconfigdir" ; then
  16168. if test -d /etc/sysconfig ; then
  16169. initconfigdir=/sysconfig
  16170. elif test -d /etc/default ; then
  16171. initconfigdir=/default
  16172. else
  16173. initconfigdir="/$PACKAGE_NAME/config"
  16174. fi
  16175. fi
  16176. if test "$platform" = "hpux"; then
  16177. HPUX_TRUE=
  16178. HPUX_FALSE='#'
  16179. else
  16180. HPUX_TRUE='#'
  16181. HPUX_FALSE=
  16182. fi
  16183. if test "$platform" = "solaris"; then
  16184. SOLARIS_TRUE=
  16185. SOLARIS_FALSE='#'
  16186. else
  16187. SOLARIS_TRUE='#'
  16188. SOLARIS_FALSE=
  16189. fi
  16190. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  16191. SYSTEMD_TRUE=
  16192. SYSTEMD_FALSE='#'
  16193. else
  16194. SYSTEMD_TRUE='#'
  16195. SYSTEMD_FALSE=
  16196. fi
  16197. # Check for library dependencies
  16198. # BEGIN COPYRIGHT BLOCK
  16199. # Copyright (C) 2007 Red Hat, Inc.
  16200. # All rights reserved.
  16201. #
  16202. # License: GPL (version 3 or any later version).
  16203. # See LICENSE for details.
  16204. # END COPYRIGHT BLOCK
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16206. $as_echo "$as_me: checking for NSPR..." >&6;}
  16207. # check for --with-nspr
  16208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16209. $as_echo_n "checking for --with-nspr... " >&6; }
  16210. # Check whether --with-nspr was given.
  16211. if test "${with_nspr+set}" = set; then :
  16212. withval=$with_nspr;
  16213. if test "$withval" = "yes"
  16214. then
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16216. $as_echo "yes" >&6; }
  16217. elif test "$withval" = "no"
  16218. then
  16219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16220. $as_echo "no" >&6; }
  16221. as_fn_error $? "NSPR is required." "$LINENO" 5
  16222. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16223. then
  16224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16225. $as_echo "using $withval" >&6; }
  16226. NSPRDIR=$withval
  16227. nspr_inc="-I$NSPRDIR/include"
  16228. nspr_lib="-L$NSPRDIR/lib"
  16229. nspr_libdir="$NSPRDIR/lib"
  16230. else
  16231. echo
  16232. as_fn_error $? "$withval not found" "$LINENO" 5
  16233. fi
  16234. else
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16236. $as_echo "yes" >&6; }
  16237. fi
  16238. # check for --with-nspr-inc
  16239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16240. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16241. # Check whether --with-nspr-inc was given.
  16242. if test "${with_nspr_inc+set}" = set; then :
  16243. withval=$with_nspr_inc;
  16244. if test -e "$withval"/nspr.h
  16245. then
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16247. $as_echo "using $withval" >&6; }
  16248. nspr_inc="-I$withval"
  16249. else
  16250. echo
  16251. as_fn_error $? "$withval not found" "$LINENO" 5
  16252. fi
  16253. else
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16255. $as_echo "no" >&6; }
  16256. fi
  16257. # check for --with-nspr-lib
  16258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16259. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16260. # Check whether --with-nspr-lib was given.
  16261. if test "${with_nspr_lib+set}" = set; then :
  16262. withval=$with_nspr_lib;
  16263. if test -d "$withval"
  16264. then
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16266. $as_echo "using $withval" >&6; }
  16267. nspr_lib="-L$withval"
  16268. nspr_libdir="$withval"
  16269. else
  16270. echo
  16271. as_fn_error $? "$withval not found" "$LINENO" 5
  16272. fi
  16273. else
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16275. $as_echo "no" >&6; }
  16276. fi
  16277. # if NSPR is not found yet, try pkg-config
  16278. # last resort
  16279. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16280. # Extract the first word of "pkg-config", so it can be a program name with args.
  16281. set dummy pkg-config; ac_word=$2
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16283. $as_echo_n "checking for $ac_word... " >&6; }
  16284. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16285. $as_echo_n "(cached) " >&6
  16286. else
  16287. case $PKG_CONFIG in
  16288. [\\/]* | ?:[\\/]*)
  16289. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16290. ;;
  16291. *)
  16292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16293. for as_dir in $PATH
  16294. do
  16295. IFS=$as_save_IFS
  16296. test -z "$as_dir" && as_dir=.
  16297. for ac_exec_ext in '' $ac_executable_extensions; do
  16298. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16299. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16300. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16301. break 2
  16302. fi
  16303. done
  16304. done
  16305. IFS=$as_save_IFS
  16306. ;;
  16307. esac
  16308. fi
  16309. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16310. if test -n "$PKG_CONFIG"; then
  16311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16312. $as_echo "$PKG_CONFIG" >&6; }
  16313. else
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16315. $as_echo "no" >&6; }
  16316. fi
  16317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16318. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16319. if test -n "$PKG_CONFIG"; then
  16320. if $PKG_CONFIG --exists nspr; then
  16321. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16322. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16323. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16325. $as_echo "using system NSPR" >&6; }
  16326. elif $PKG_CONFIG --exists dirsec-nspr; then
  16327. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16328. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16329. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16331. $as_echo "using system dirsec NSPR" >&6; }
  16332. else
  16333. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16334. fi
  16335. fi
  16336. fi
  16337. # BEGIN COPYRIGHT BLOCK
  16338. # Copyright (C) 2007 Red Hat, Inc.
  16339. # All rights reserved.
  16340. #
  16341. # License: GPL (version 3 or any later version).
  16342. # See LICENSE for details.
  16343. # END COPYRIGHT BLOCK
  16344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16345. $as_echo "$as_me: checking for NSS..." >&6;}
  16346. # check for --with-nss
  16347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16348. $as_echo_n "checking for --with-nss... " >&6; }
  16349. # Check whether --with-nss was given.
  16350. if test "${with_nss+set}" = set; then :
  16351. withval=$with_nss;
  16352. if test "$withval" = "yes"
  16353. then
  16354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16355. $as_echo "yes" >&6; }
  16356. elif test "$withval" = "no"
  16357. then
  16358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16359. $as_echo "no" >&6; }
  16360. as_fn_error $? "NSS is required." "$LINENO" 5
  16361. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16362. then
  16363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16364. $as_echo "using $withval" >&6; }
  16365. NSSDIR=$withval
  16366. nss_inc="-I$NSSDIR/include"
  16367. nss_lib="-L$NSSDIR/lib"
  16368. nss_libdir="$NSSDIR/lib"
  16369. else
  16370. echo
  16371. as_fn_error $? "$withval not found" "$LINENO" 5
  16372. fi
  16373. else
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16375. $as_echo "yes" >&6; }
  16376. fi
  16377. # check for --with-nss-inc
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16379. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16380. # Check whether --with-nss-inc was given.
  16381. if test "${with_nss_inc+set}" = set; then :
  16382. withval=$with_nss_inc;
  16383. if test -e "$withval"/nss.h
  16384. then
  16385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16386. $as_echo "using $withval" >&6; }
  16387. nss_inc="-I$withval"
  16388. else
  16389. echo
  16390. as_fn_error $? "$withval not found" "$LINENO" 5
  16391. fi
  16392. else
  16393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16394. $as_echo "no" >&6; }
  16395. fi
  16396. # check for --with-nss-lib
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16398. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16399. # Check whether --with-nss-lib was given.
  16400. if test "${with_nss_lib+set}" = set; then :
  16401. withval=$with_nss_lib;
  16402. if test -d "$withval"
  16403. then
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16405. $as_echo "using $withval" >&6; }
  16406. nss_lib="-L$withval"
  16407. nss_libdir="$withval"
  16408. else
  16409. echo
  16410. as_fn_error $? "$withval not found" "$LINENO" 5
  16411. fi
  16412. else
  16413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16414. $as_echo "no" >&6; }
  16415. fi
  16416. # if NSS is not found yet, try pkg-config
  16417. # last resort
  16418. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16419. # Extract the first word of "pkg-config", so it can be a program name with args.
  16420. set dummy pkg-config; ac_word=$2
  16421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16422. $as_echo_n "checking for $ac_word... " >&6; }
  16423. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16424. $as_echo_n "(cached) " >&6
  16425. else
  16426. case $PKG_CONFIG in
  16427. [\\/]* | ?:[\\/]*)
  16428. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16429. ;;
  16430. *)
  16431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16432. for as_dir in $PATH
  16433. do
  16434. IFS=$as_save_IFS
  16435. test -z "$as_dir" && as_dir=.
  16436. for ac_exec_ext in '' $ac_executable_extensions; do
  16437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16438. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16440. break 2
  16441. fi
  16442. done
  16443. done
  16444. IFS=$as_save_IFS
  16445. ;;
  16446. esac
  16447. fi
  16448. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16449. if test -n "$PKG_CONFIG"; then
  16450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16451. $as_echo "$PKG_CONFIG" >&6; }
  16452. else
  16453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16454. $as_echo "no" >&6; }
  16455. fi
  16456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16457. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16458. if test -n "$PKG_CONFIG"; then
  16459. if $PKG_CONFIG --exists nss; then
  16460. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16461. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16462. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16464. $as_echo "using system NSS" >&6; }
  16465. elif $PKG_CONFIG --exists dirsec-nss; then
  16466. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16467. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16468. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16470. $as_echo "using system dirsec NSS" >&6; }
  16471. else
  16472. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16473. fi
  16474. fi
  16475. fi
  16476. # BEGIN COPYRIGHT BLOCK
  16477. # Copyright (C) 2009 Red Hat, Inc.
  16478. # All rights reserved.
  16479. #
  16480. # License: GPL (version 3 or any later version).
  16481. # See LICENSE for details.
  16482. # END COPYRIGHT BLOCK
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16484. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16485. # check for --with-openldap
  16486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16487. $as_echo_n "checking for --with-openldap... " >&6; }
  16488. # Check whether --with-openldap was given.
  16489. if test "${with_openldap+set}" = set; then :
  16490. withval=$with_openldap;
  16491. if test "$withval" = yes
  16492. then
  16493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16494. $as_echo "using system OpenLDAP" >&6; }
  16495. elif test "$withval" = no
  16496. then
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16498. $as_echo "no" >&6; }
  16499. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16500. then
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16502. $as_echo "using $withval" >&6; }
  16503. OPENLDAPDIR=$withval
  16504. openldap_incdir="$OPENLDAPDIR/include"
  16505. openldap_inc="-I$openldap_incdir"
  16506. openldap_lib="-L$OPENLDAPDIR/lib"
  16507. openldap_libdir="$OPENLDAPDIR/lib"
  16508. openldap_bindir="$OPENLDAPDIR/bin"
  16509. with_openldap=yes
  16510. else
  16511. echo
  16512. as_fn_error $? "$withval not found" "$LINENO" 5
  16513. fi
  16514. else
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16516. $as_echo "no" >&6; }
  16517. fi
  16518. # check for --with-openldap-inc
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16520. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16521. # Check whether --with-openldap-inc was given.
  16522. if test "${with_openldap_inc+set}" = set; then :
  16523. withval=$with_openldap_inc;
  16524. if test -e "$withval"/ldap.h
  16525. then
  16526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16527. $as_echo "using $withval" >&6; }
  16528. openldap_incdir="$withval"
  16529. openldap_inc="-I$withval"
  16530. with_openldap=yes
  16531. else
  16532. echo
  16533. as_fn_error $? "$withval not found" "$LINENO" 5
  16534. fi
  16535. else
  16536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16537. $as_echo "no" >&6; }
  16538. fi
  16539. # check for --with-openldap-lib
  16540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16541. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16542. # Check whether --with-openldap-lib was given.
  16543. if test "${with_openldap_lib+set}" = set; then :
  16544. withval=$with_openldap_lib;
  16545. if test -d "$withval"
  16546. then
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16548. $as_echo "using $withval" >&6; }
  16549. openldap_lib="-L$withval"
  16550. openldap_libdir="$withval"
  16551. with_openldap=yes
  16552. else
  16553. echo
  16554. as_fn_error $? "$withval not found" "$LINENO" 5
  16555. fi
  16556. else
  16557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16558. $as_echo "no" >&6; }
  16559. fi
  16560. # check for --with-openldap-bin
  16561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16562. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16563. # Check whether --with-openldap-bin was given.
  16564. if test "${with_openldap_bin+set}" = set; then :
  16565. withval=$with_openldap_bin;
  16566. if test -d "$withval"
  16567. then
  16568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16569. $as_echo "using $withval" >&6; }
  16570. openldap_bindir="$withval"
  16571. with_openldap=yes
  16572. else
  16573. echo
  16574. as_fn_error $? "$withval not found" "$LINENO" 5
  16575. fi
  16576. else
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16578. $as_echo "no" >&6; }
  16579. fi
  16580. # if OPENLDAP is not found yet, try pkg-config
  16581. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16582. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16583. # Extract the first word of "pkg-config", so it can be a program name with args.
  16584. set dummy pkg-config; ac_word=$2
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16586. $as_echo_n "checking for $ac_word... " >&6; }
  16587. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16588. $as_echo_n "(cached) " >&6
  16589. else
  16590. case $PKG_CONFIG in
  16591. [\\/]* | ?:[\\/]*)
  16592. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16593. ;;
  16594. *)
  16595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16596. for as_dir in $PATH
  16597. do
  16598. IFS=$as_save_IFS
  16599. test -z "$as_dir" && as_dir=.
  16600. for ac_exec_ext in '' $ac_executable_extensions; do
  16601. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16602. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16603. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16604. break 2
  16605. fi
  16606. done
  16607. done
  16608. IFS=$as_save_IFS
  16609. ;;
  16610. esac
  16611. fi
  16612. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16613. if test -n "$PKG_CONFIG"; then
  16614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16615. $as_echo "$PKG_CONFIG" >&6; }
  16616. else
  16617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16618. $as_echo "no" >&6; }
  16619. fi
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16621. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16622. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16623. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16624. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16625. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16626. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16627. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16629. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16630. else
  16631. openldap_incdir="/usr/include"
  16632. openldap_inc="-I$openldap_incdir"
  16633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16634. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16635. fi
  16636. fi
  16637. fi
  16638. if test "$with_openldap" = yes ; then
  16639. save_cppflags="$CPPFLAGS"
  16640. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16641. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16642. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16643. else
  16644. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16645. fi
  16646. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16647. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16648. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16649. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16650. save_ldflags="$LDFLAGS"
  16651. LDFLAGS="$openldap_lib $LDFLAGS"
  16652. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16654. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16655. if eval \${$as_ac_Lib+:} false; then :
  16656. $as_echo_n "(cached) " >&6
  16657. else
  16658. ac_check_lib_save_LIBS=$LIBS
  16659. LIBS="-lldap$ol_libver $LIBS"
  16660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16661. /* end confdefs.h. */
  16662. /* Override any GCC internal prototype to avoid an error.
  16663. Use char because int might match the return type of a GCC
  16664. builtin and then its argument prototype would still apply. */
  16665. #ifdef __cplusplus
  16666. extern "C"
  16667. #endif
  16668. char ldap_initialize ();
  16669. int
  16670. main ()
  16671. {
  16672. return ldap_initialize ();
  16673. ;
  16674. return 0;
  16675. }
  16676. _ACEOF
  16677. if ac_fn_c_try_link "$LINENO"; then :
  16678. eval "$as_ac_Lib=yes"
  16679. else
  16680. eval "$as_ac_Lib=no"
  16681. fi
  16682. rm -f core conftest.err conftest.$ac_objext \
  16683. conftest$ac_exeext conftest.$ac_ext
  16684. LIBS=$ac_check_lib_save_LIBS
  16685. fi
  16686. eval ac_res=\$$as_ac_Lib
  16687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16688. $as_echo "$ac_res" >&6; }
  16689. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16690. have_ldap_lib=1
  16691. fi
  16692. if test -z "$have_ldap_lib" ; then
  16693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16694. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16695. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16696. $as_echo_n "(cached) " >&6
  16697. else
  16698. ac_check_lib_save_LIBS=$LIBS
  16699. LIBS="-lldap $LIBS"
  16700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16701. /* end confdefs.h. */
  16702. /* Override any GCC internal prototype to avoid an error.
  16703. Use char because int might match the return type of a GCC
  16704. builtin and then its argument prototype would still apply. */
  16705. #ifdef __cplusplus
  16706. extern "C"
  16707. #endif
  16708. char ldap_initialize ();
  16709. int
  16710. main ()
  16711. {
  16712. return ldap_initialize ();
  16713. ;
  16714. return 0;
  16715. }
  16716. _ACEOF
  16717. if ac_fn_c_try_link "$LINENO"; then :
  16718. ac_cv_lib_ldap_ldap_initialize=yes
  16719. else
  16720. ac_cv_lib_ldap_ldap_initialize=no
  16721. fi
  16722. rm -f core conftest.err conftest.$ac_objext \
  16723. conftest$ac_exeext conftest.$ac_ext
  16724. LIBS=$ac_check_lib_save_LIBS
  16725. fi
  16726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16727. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16728. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16729. unset ol_libver
  16730. else
  16731. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16732. fi
  16733. fi
  16734. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16736. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16737. if eval \${$as_ac_Lib+:} false; then :
  16738. $as_echo_n "(cached) " >&6
  16739. else
  16740. ac_check_lib_save_LIBS=$LIBS
  16741. LIBS="-lldap$ol_libver $LIBS"
  16742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16743. /* end confdefs.h. */
  16744. /* Override any GCC internal prototype to avoid an error.
  16745. Use char because int might match the return type of a GCC
  16746. builtin and then its argument prototype would still apply. */
  16747. #ifdef __cplusplus
  16748. extern "C"
  16749. #endif
  16750. char ldap_url_parse_ext ();
  16751. int
  16752. main ()
  16753. {
  16754. return ldap_url_parse_ext ();
  16755. ;
  16756. return 0;
  16757. }
  16758. _ACEOF
  16759. if ac_fn_c_try_link "$LINENO"; then :
  16760. eval "$as_ac_Lib=yes"
  16761. else
  16762. eval "$as_ac_Lib=no"
  16763. fi
  16764. rm -f core conftest.err conftest.$ac_objext \
  16765. conftest$ac_exeext conftest.$ac_ext
  16766. LIBS=$ac_check_lib_save_LIBS
  16767. fi
  16768. eval ac_res=\$$as_ac_Lib
  16769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16770. $as_echo "$ac_res" >&6; }
  16771. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16772. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16773. fi
  16774. ldap_lib_ldif=""
  16775. LDFLAGS="$LDFLAGS -lldap$ol_libver"
  16776. as_ac_Lib=`$as_echo "ac_cv_lib_ldif$ol_libver''__init" | $as_tr_sh`
  16777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _init in -lldif$ol_libver" >&5
  16778. $as_echo_n "checking for _init in -lldif$ol_libver... " >&6; }
  16779. if eval \${$as_ac_Lib+:} false; then :
  16780. $as_echo_n "(cached) " >&6
  16781. else
  16782. ac_check_lib_save_LIBS=$LIBS
  16783. LIBS="-lldif$ol_libver $LIBS"
  16784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16785. /* end confdefs.h. */
  16786. /* Override any GCC internal prototype to avoid an error.
  16787. Use char because int might match the return type of a GCC
  16788. builtin and then its argument prototype would still apply. */
  16789. #ifdef __cplusplus
  16790. extern "C"
  16791. #endif
  16792. char _init ();
  16793. int
  16794. main ()
  16795. {
  16796. return _init ();
  16797. ;
  16798. return 0;
  16799. }
  16800. _ACEOF
  16801. if ac_fn_c_try_link "$LINENO"; then :
  16802. eval "$as_ac_Lib=yes"
  16803. else
  16804. eval "$as_ac_Lib=no"
  16805. fi
  16806. rm -f core conftest.err conftest.$ac_objext \
  16807. conftest$ac_exeext conftest.$ac_ext
  16808. LIBS=$ac_check_lib_save_LIBS
  16809. fi
  16810. eval ac_res=\$$as_ac_Lib
  16811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16812. $as_echo "$ac_res" >&6; }
  16813. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16814. ldap_lib_ldif=-lldif$ol_libver
  16815. else
  16816. ldap_lib_ldif=
  16817. fi
  16818. LDFLAGS="$save_ldflags"
  16819. CPPFLAGS="$save_cppflags"
  16820. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16821. # where to find ldapsearch, et. al.
  16822. ldaptool_bindir=$openldap_bindir
  16823. # default options to pass to the tools
  16824. # use -x because all of our scripts use simple bind
  16825. ldaptool_opts=-x
  16826. # get plain output from ldapsearch - no version, no comments
  16827. plainldif_opts=-LLL
  16828. fi
  16829. # BEGIN COPYRIGHT BLOCK
  16830. # Copyright (C) 2007 Red Hat, Inc.
  16831. # All rights reserved.
  16832. #
  16833. # License: GPL (version 3 or any later version).
  16834. # See LICENSE for details.
  16835. # END COPYRIGHT BLOCK
  16836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16837. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16838. # check for --with-ldapsdk
  16839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16840. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16841. # Check whether --with-ldapsdk was given.
  16842. if test "${with_ldapsdk+set}" = set; then :
  16843. withval=$with_ldapsdk;
  16844. if test "$withval" = yes
  16845. then
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16847. $as_echo "yes" >&6; }
  16848. elif test "$withval" = no
  16849. then
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16851. $as_echo "no" >&6; }
  16852. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16853. then
  16854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16855. $as_echo "using $withval" >&6; }
  16856. LDAPSDKDIR=$withval
  16857. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16858. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16859. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16860. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16861. with_ldapsdk=yes
  16862. else
  16863. echo
  16864. as_fn_error $? "$withval not found" "$LINENO" 5
  16865. fi
  16866. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16867. then
  16868. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16869. fi
  16870. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16871. then
  16872. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16873. fi
  16874. else
  16875. if test "$with_openldap" = yes
  16876. then
  16877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16878. $as_echo "no" >&6; }
  16879. else
  16880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16881. $as_echo "yes" >&6; }
  16882. with_ldapsdk=yes
  16883. fi
  16884. fi
  16885. # check for --with-ldapsdk-inc
  16886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16887. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16888. # Check whether --with-ldapsdk-inc was given.
  16889. if test "${with_ldapsdk_inc+set}" = set; then :
  16890. withval=$with_ldapsdk_inc;
  16891. if test -e "$withval"/ldap.h
  16892. then
  16893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16894. $as_echo "using $withval" >&6; }
  16895. ldapsdk_inc="-I$withval"
  16896. with_ldapsdk=yes
  16897. else
  16898. echo
  16899. as_fn_error $? "$withval not found" "$LINENO" 5
  16900. fi
  16901. else
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16903. $as_echo "no" >&6; }
  16904. fi
  16905. # check for --with-ldapsdk-lib
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16907. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16908. # Check whether --with-ldapsdk-lib was given.
  16909. if test "${with_ldapsdk_lib+set}" = set; then :
  16910. withval=$with_ldapsdk_lib;
  16911. if test -d "$withval"
  16912. then
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16914. $as_echo "using $withval" >&6; }
  16915. ldapsdk_lib="-L$withval"
  16916. ldapsdk_libdir="$withval"
  16917. with_ldapsdk=yes
  16918. else
  16919. echo
  16920. as_fn_error $? "$withval not found" "$LINENO" 5
  16921. fi
  16922. else
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16924. $as_echo "no" >&6; }
  16925. fi
  16926. # check for --with-ldapsdk-bin
  16927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16928. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16929. # Check whether --with-ldapsdk-bin was given.
  16930. if test "${with_ldapsdk_bin+set}" = set; then :
  16931. withval=$with_ldapsdk_bin;
  16932. if test -d "$withval"
  16933. then
  16934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16935. $as_echo "using $withval" >&6; }
  16936. ldapsdk_bindir="$withval"
  16937. with_ldapsdk=yes
  16938. else
  16939. echo
  16940. as_fn_error $? "$withval not found" "$LINENO" 5
  16941. fi
  16942. else
  16943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16944. $as_echo "no" >&6; }
  16945. fi
  16946. # if LDAPSDK is not found yet, try pkg-config
  16947. # last resort
  16948. if test "$with_ldapsdk" = yes ; then
  16949. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16950. # Extract the first word of "pkg-config", so it can be a program name with args.
  16951. set dummy pkg-config; ac_word=$2
  16952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16953. $as_echo_n "checking for $ac_word... " >&6; }
  16954. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16955. $as_echo_n "(cached) " >&6
  16956. else
  16957. case $PKG_CONFIG in
  16958. [\\/]* | ?:[\\/]*)
  16959. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16960. ;;
  16961. *)
  16962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16963. for as_dir in $PATH
  16964. do
  16965. IFS=$as_save_IFS
  16966. test -z "$as_dir" && as_dir=.
  16967. for ac_exec_ext in '' $ac_executable_extensions; do
  16968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16969. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16971. break 2
  16972. fi
  16973. done
  16974. done
  16975. IFS=$as_save_IFS
  16976. ;;
  16977. esac
  16978. fi
  16979. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16980. if test -n "$PKG_CONFIG"; then
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16982. $as_echo "$PKG_CONFIG" >&6; }
  16983. else
  16984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16985. $as_echo "no" >&6; }
  16986. fi
  16987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16988. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16989. if test -n "$PKG_CONFIG"; then
  16990. if $PKG_CONFIG --exists mozldap6; then
  16991. mozldappkg=mozldap6
  16992. elif $PKG_CONFIG --exists mozldap; then
  16993. mozldappkg=mozldap
  16994. else
  16995. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16996. fi
  16997. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16998. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16999. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  17000. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  17002. $as_echo "using system $mozldappkg" >&6; }
  17003. fi
  17004. fi
  17005. fi
  17006. if test "$with_ldapsdk" = yes ; then
  17007. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  17008. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  17009. fi
  17010. if test -z "$ldapsdk_bindir" ; then
  17011. if -d $libdir/mozldap6 ; then
  17012. ldapsdk_bindir=$libdir/mozldap6
  17013. else
  17014. ldapsdk_bindir=$libdir/mozldap
  17015. fi
  17016. fi
  17017. save_cppflags="$CPPFLAGS"
  17018. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  17019. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  17020. #if LDAP_VENDOR_VERSION < 600
  17021. #error The LDAP C SDK version is not supported
  17022. #endif
  17023. "
  17024. if test "x$ac_cv_header_ldap_h" = xyes; then :
  17025. isversion6=1
  17026. else
  17027. isversion6=
  17028. fi
  17029. CPPFLAGS="$save_cppflags"
  17030. if test -z "$isversion6" ; then
  17031. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  17032. fi
  17033. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  17034. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  17035. # where to find ldapsearch, et. al.
  17036. ldaptool_bindir=$ldapsdk_bindir
  17037. # default options to pass to the tools
  17038. ldaptool_opts=
  17039. # get plain output from ldapsearch - no version
  17040. plainldif_opts=-1
  17041. fi
  17042. # BEGIN COPYRIGHT BLOCK
  17043. # Copyright (C) 2007 Red Hat, Inc.
  17044. # All rights reserved.
  17045. #
  17046. # License: GPL (version 3 or any later version).
  17047. # See LICENSE for details.
  17048. # END COPYRIGHT BLOCK
  17049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  17050. $as_echo "$as_me: checking for db..." >&6;}
  17051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  17052. $as_echo_n "checking for --with-db... " >&6; }
  17053. # Check whether --with-db was given.
  17054. if test "${with_db+set}" = set; then :
  17055. withval=$with_db;
  17056. if test "$withval" = "yes"; then
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17058. $as_echo "yes" >&6; }
  17059. elif test "$withval" = "no"; then
  17060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17061. $as_echo "no" >&6; }
  17062. as_fn_error $? "db is required." "$LINENO" 5
  17063. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17065. $as_echo "using $withval" >&6; }
  17066. DBDIR=$withval
  17067. db_lib="-L$DBDIR/lib"
  17068. db_libdir="$DBDIR/lib"
  17069. db_incdir="$DBDIR/include"
  17070. if ! test -e "$db_incdir/db.h" ; then
  17071. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17072. fi
  17073. db_inc="-I$db_incdir"
  17074. else
  17075. echo
  17076. as_fn_error $? "$withval not found" "$LINENO" 5
  17077. fi
  17078. else
  17079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17080. $as_echo "yes" >&6; }
  17081. fi
  17082. # check for --with-db-inc
  17083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  17084. $as_echo_n "checking for --with-db-inc... " >&6; }
  17085. # Check whether --with-db-inc was given.
  17086. if test "${with_db_inc+set}" = set; then :
  17087. withval=$with_db_inc;
  17088. if test -e "$withval"/db.h
  17089. then
  17090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17091. $as_echo "using $withval" >&6; }
  17092. db_incdir="$withval"
  17093. db_inc="-I$withval"
  17094. else
  17095. echo
  17096. as_fn_error $? "$withval not found" "$LINENO" 5
  17097. fi
  17098. else
  17099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17100. $as_echo "no" >&6; }
  17101. fi
  17102. # check for --with-db-lib
  17103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  17104. $as_echo_n "checking for --with-db-lib... " >&6; }
  17105. # Check whether --with-db-lib was given.
  17106. if test "${with_db_lib+set}" = set; then :
  17107. withval=$with_db_lib;
  17108. if test -d "$withval"
  17109. then
  17110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17111. $as_echo "using $withval" >&6; }
  17112. db_lib="-L$withval"
  17113. db_libdir="$withval"
  17114. else
  17115. echo
  17116. as_fn_error $? "$withval not found" "$LINENO" 5
  17117. fi
  17118. else
  17119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17120. $as_echo "no" >&6; }
  17121. fi
  17122. if test -z "$db_inc"; then
  17123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  17124. $as_echo_n "checking for db.h... " >&6; }
  17125. if test -f "/usr/include/db4/db.h"; then
  17126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  17127. $as_echo "using /usr/include/db4/db.h" >&6; }
  17128. db_incdir="/usr/include/db4"
  17129. db_inc="-I/usr/include/db4"
  17130. db_lib='-L$(libdir)'
  17131. db_libdir='$(libdir)'
  17132. elif test -f "/usr/include/libdb/db.h"; then
  17133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  17134. $as_echo "using /usr/include/libdb/db.h" >&6; }
  17135. db_incdir="/usr/include/libdb"
  17136. db_inc="-I/usr/include/libdb"
  17137. db_lib='-L$(libdir)'
  17138. db_libdir='$(libdir)'
  17139. elif test -f "/usr/include/db.h"; then
  17140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  17141. $as_echo "using /usr/include/db.h" >&6; }
  17142. db_incdir="/usr/include"
  17143. db_inc="-I/usr/include"
  17144. db_lib='-L$(libdir)'
  17145. db_libdir='$(libdir)'
  17146. else
  17147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17148. $as_echo "no" >&6; }
  17149. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  17150. fi
  17151. fi
  17152. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  17153. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  17154. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  17155. db_libver=${db_ver_maj}.${db_ver_min}
  17156. save_ldflags="$LDFLAGS"
  17157. LDFLAGS="$db_lib $LDFLAGS"
  17158. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  17159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  17160. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  17161. if eval \${$as_ac_Lib+:} false; then :
  17162. $as_echo_n "(cached) " >&6
  17163. else
  17164. ac_check_lib_save_LIBS=$LIBS
  17165. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  17166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17167. /* end confdefs.h. */
  17168. /* Override any GCC internal prototype to avoid an error.
  17169. Use char because int might match the return type of a GCC
  17170. builtin and then its argument prototype would still apply. */
  17171. #ifdef __cplusplus
  17172. extern "C"
  17173. #endif
  17174. char db_create ();
  17175. int
  17176. main ()
  17177. {
  17178. return db_create ();
  17179. ;
  17180. return 0;
  17181. }
  17182. _ACEOF
  17183. if ac_fn_c_try_link "$LINENO"; then :
  17184. eval "$as_ac_Lib=yes"
  17185. else
  17186. eval "$as_ac_Lib=no"
  17187. fi
  17188. rm -f core conftest.err conftest.$ac_objext \
  17189. conftest$ac_exeext conftest.$ac_ext
  17190. LIBS=$ac_check_lib_save_LIBS
  17191. fi
  17192. eval ac_res=\$$as_ac_Lib
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17194. $as_echo "$ac_res" >&6; }
  17195. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17196. true
  17197. else
  17198. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17199. fi
  17200. LDFLAGS="$save_ldflags"
  17201. # if DB is not found yet, try pkg-config
  17202. # last resort
  17203. # Although the other db_* variables are correctly assigned at this point,
  17204. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17205. if test -n "$PKG_CONFIG"; then
  17206. if $PKG_CONFIG --exists db; then
  17207. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17208. else
  17209. db_bindir=/usr/bin
  17210. fi
  17211. else
  17212. db_bindir=/usr/bin
  17213. fi
  17214. # BEGIN COPYRIGHT BLOCK
  17215. # Copyright (C) 2007 Red Hat, Inc.
  17216. # All rights reserved.
  17217. #
  17218. # License: GPL (version 3 or any later version).
  17219. # See LICENSE for details.
  17220. # END COPYRIGHT BLOCK
  17221. # -*- tab-width: 4; -*-
  17222. # Configure paths for SASL
  17223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17224. $as_echo "$as_me: checking for SASL..." >&6;}
  17225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17226. $as_echo_n "checking for --with-sasl... " >&6; }
  17227. # Check whether --with-sasl was given.
  17228. if test "${with_sasl+set}" = set; then :
  17229. withval=$with_sasl;
  17230. if test "$withval" = "yes"; then
  17231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17232. $as_echo "yes" >&6; }
  17233. elif test "$withval" = "no"; then
  17234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17235. $as_echo "no" >&6; }
  17236. as_fn_error $? "SASL is required." "$LINENO" 5
  17237. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17239. $as_echo "using $withval" >&6; }
  17240. if test -f "$withval/include/sasl/sasl.h"; then
  17241. sasl_inc="-I$withval/include/sasl"
  17242. elif test -f "$withval/include/sasl.h"; then
  17243. sasl_inc="-I$withval/include"
  17244. else
  17245. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17246. fi
  17247. sasl_lib="-L$withval/lib"
  17248. sasl_libdir="$withval/lib"
  17249. else
  17250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17251. $as_echo "yes" >&6; }
  17252. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17253. fi
  17254. else
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17256. $as_echo "yes" >&6; }
  17257. fi
  17258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17259. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17260. # Check whether --with-sasl-inc was given.
  17261. if test "${with_sasl_inc+set}" = set; then :
  17262. withval=$with_sasl_inc;
  17263. if test -f "$withval"/sasl.h; then
  17264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17265. $as_echo "using $withval" >&6; }
  17266. sasl_inc="-I$withval"
  17267. else
  17268. echo
  17269. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17270. fi
  17271. else
  17272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17273. $as_echo "no" >&6; }
  17274. fi
  17275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17276. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17277. # Check whether --with-sasl-lib was given.
  17278. if test "${with_sasl_lib+set}" = set; then :
  17279. withval=$with_sasl_lib;
  17280. if test -d "$withval"; then
  17281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17282. $as_echo "using $withval" >&6; }
  17283. sasl_lib="-L$withval"
  17284. sasl_libdir="$withval"
  17285. else
  17286. echo
  17287. as_fn_error $? "$withval not found" "$LINENO" 5
  17288. fi
  17289. else
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17291. $as_echo "no" >&6; }
  17292. fi
  17293. if test -z "$sasl_inc"; then
  17294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17295. $as_echo_n "checking for sasl.h... " >&6; }
  17296. if test -f /usr/include/sasl/sasl.h; then
  17297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17298. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17299. sasl_inc="-I/usr/include/sasl"
  17300. elif test -f /usr/include/sasl.h; then
  17301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17302. $as_echo "using /usr/include/sasl.h" >&6; }
  17303. sasl_inc="-I/usr/include"
  17304. else
  17305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17306. $as_echo "no" >&6; }
  17307. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17308. fi
  17309. fi
  17310. # BEGIN COPYRIGHT BLOCK
  17311. # Copyright (C) 2007 Red Hat, Inc.
  17312. # All rights reserved.
  17313. #
  17314. # License: GPL (version 3 or any later version).
  17315. # See LICENSE for details.
  17316. # END COPYRIGHT BLOCK
  17317. #
  17318. # Configure paths for SVRCORE
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17320. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17322. $as_echo_n "checking for --with-svrcore... " >&6; }
  17323. # Check whether --with-svrcore was given.
  17324. if test "${with_svrcore+set}" = set; then :
  17325. withval=$with_svrcore;
  17326. if test "$withval" = "yes"; then
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17328. $as_echo "yes" >&6; }
  17329. elif test "$withval" = "no"; then
  17330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17331. $as_echo "no" >&6; }
  17332. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17333. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17335. $as_echo "using $withval" >&6; }
  17336. if test -f "$withval/include/svrcore.h"; then
  17337. svrcore_inc="-I$withval/include"
  17338. else
  17339. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17340. fi
  17341. svrcore_lib="-L$withval/lib"
  17342. else
  17343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17344. $as_echo "yes" >&6; }
  17345. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17346. fi
  17347. else
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17349. $as_echo "yes" >&6; }
  17350. fi
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17352. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17353. # Check whether --with-svrcore-inc was given.
  17354. if test "${with_svrcore_inc+set}" = set; then :
  17355. withval=$with_svrcore_inc;
  17356. if test -f "$withval"/svrcore.h; then
  17357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17358. $as_echo "using $withval" >&6; }
  17359. svrcore_inc="-I$withval"
  17360. else
  17361. echo
  17362. as_fn_error $? "$withval/svrcore.h 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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17369. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17370. # Check whether --with-svrcore-lib was given.
  17371. if test "${with_svrcore_lib+set}" = set; then :
  17372. withval=$with_svrcore_lib;
  17373. if test -d "$withval"; then
  17374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17375. $as_echo "using $withval" >&6; }
  17376. svrcore_lib="-L$withval"
  17377. else
  17378. echo
  17379. as_fn_error $? "$withval not found" "$LINENO" 5
  17380. fi
  17381. else
  17382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17383. $as_echo "no" >&6; }
  17384. fi
  17385. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17386. # Extract the first word of "pkg-config", so it can be a program name with args.
  17387. set dummy pkg-config; ac_word=$2
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17389. $as_echo_n "checking for $ac_word... " >&6; }
  17390. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17391. $as_echo_n "(cached) " >&6
  17392. else
  17393. case $PKG_CONFIG in
  17394. [\\/]* | ?:[\\/]*)
  17395. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17396. ;;
  17397. *)
  17398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17399. for as_dir in $PATH
  17400. do
  17401. IFS=$as_save_IFS
  17402. test -z "$as_dir" && as_dir=.
  17403. for ac_exec_ext in '' $ac_executable_extensions; do
  17404. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17405. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17406. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17407. break 2
  17408. fi
  17409. done
  17410. done
  17411. IFS=$as_save_IFS
  17412. ;;
  17413. esac
  17414. fi
  17415. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17416. if test -n "$PKG_CONFIG"; then
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17418. $as_echo "$PKG_CONFIG" >&6; }
  17419. else
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17421. $as_echo "no" >&6; }
  17422. fi
  17423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17424. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17425. if test -n "$PKG_CONFIG"; then
  17426. if $PKG_CONFIG --exists svrcore; then
  17427. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17428. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17430. $as_echo "using system svrcore" >&6; }
  17431. fi
  17432. fi
  17433. fi
  17434. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17436. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17437. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17438. $as_echo_n "(cached) " >&6
  17439. else
  17440. ac_check_lib_save_LIBS=$LIBS
  17441. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17443. /* end confdefs.h. */
  17444. /* Override any GCC internal prototype to avoid an error.
  17445. Use char because int might match the return type of a GCC
  17446. builtin and then its argument prototype would still apply. */
  17447. #ifdef __cplusplus
  17448. extern "C"
  17449. #endif
  17450. char SVRCORE_GetRegisteredPinObj ();
  17451. int
  17452. main ()
  17453. {
  17454. return SVRCORE_GetRegisteredPinObj ();
  17455. ;
  17456. return 0;
  17457. }
  17458. _ACEOF
  17459. if ac_fn_c_try_link "$LINENO"; then :
  17460. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17461. else
  17462. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17463. fi
  17464. rm -f core conftest.err conftest.$ac_objext \
  17465. conftest$ac_exeext conftest.$ac_ext
  17466. LIBS=$ac_check_lib_save_LIBS
  17467. fi
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17469. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17470. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17471. havesvrcore=1
  17472. fi
  17473. if test -n "$havesvrcore" ; then
  17474. save_cppflags="$CPPFLAGS"
  17475. CPPFLAGS="$nss_inc $nspr_inc"
  17476. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17477. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17478. havesvrcore=1
  17479. else
  17480. havesvrcore=
  17481. fi
  17482. CPPFLAGS="$save_cppflags"
  17483. fi
  17484. if test -z "$havesvrcore" ; then
  17485. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17486. fi
  17487. fi
  17488. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17489. if test -f /usr/include/svrcore.h; then
  17490. svrcore_inc="-I/usr/include"
  17491. svrcore_lib="-L/usr/lib"
  17492. else
  17493. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17494. fi
  17495. fi
  17496. # BEGIN COPYRIGHT BLOCK
  17497. # Copyright (C) 2006 Red Hat, Inc.
  17498. # All rights reserved.
  17499. #
  17500. # License: GPL (version 3 or any later version).
  17501. # See LICENSE for details.
  17502. # END COPYRIGHT BLOCK
  17503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17504. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17505. # check for --with-icu
  17506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17507. $as_echo_n "checking for --with-icu... " >&6; }
  17508. # Check whether --with-icu was given.
  17509. if test "${with_icu+set}" = set; then :
  17510. withval=$with_icu;
  17511. if test "$withval" = "yes"
  17512. then
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17514. $as_echo "yes" >&6; }
  17515. elif test "$withval" = "no"
  17516. then
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17518. $as_echo "no" >&6; }
  17519. as_fn_error $? "ICU is required." "$LINENO" 5
  17520. elif test -d "$withval"/lib
  17521. then
  17522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17523. $as_echo "using $withval" >&6; }
  17524. ICUDIR=$withval
  17525. icu_lib="-L$ICUDIR/lib"
  17526. icu_inc="-I$withval/include"
  17527. icu_bin="$withval/bin"
  17528. else
  17529. echo
  17530. as_fn_error $? "$withval not found" "$LINENO" 5
  17531. fi
  17532. else
  17533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17534. $as_echo "yes" >&6; }
  17535. fi
  17536. # check for --with-icu-inc
  17537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17538. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17539. # Check whether --with-icu-inc was given.
  17540. if test "${with_icu_inc+set}" = set; then :
  17541. withval=$with_icu_inc;
  17542. if test -d "$withval"
  17543. then
  17544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17545. $as_echo "using $withval" >&6; }
  17546. icu_inc="-I$withval"
  17547. else
  17548. echo
  17549. as_fn_error $? "$withval not found" "$LINENO" 5
  17550. fi
  17551. else
  17552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17553. $as_echo "no" >&6; }
  17554. fi
  17555. # check for --with-icu-lib
  17556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17557. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17558. # Check whether --with-icu-lib was given.
  17559. if test "${with_icu_lib+set}" = set; then :
  17560. withval=$with_icu_lib;
  17561. if test -d "$withval"
  17562. then
  17563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17564. $as_echo "using $withval" >&6; }
  17565. icu_lib="-L$withval"
  17566. else
  17567. echo
  17568. as_fn_error $? "$withval not found" "$LINENO" 5
  17569. fi
  17570. else
  17571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17572. $as_echo "no" >&6; }
  17573. fi
  17574. # check for --with-icu-bin
  17575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17576. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17577. # Check whether --with-icu-bin was given.
  17578. if test "${with_icu_bin+set}" = set; then :
  17579. withval=$with_icu_bin;
  17580. if test -d "$withval"
  17581. then
  17582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17583. $as_echo "using $withval" >&6; }
  17584. icu_bin="$withval"
  17585. else
  17586. echo
  17587. as_fn_error $? "$withval not found" "$LINENO" 5
  17588. fi
  17589. else
  17590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17591. $as_echo "no" >&6; }
  17592. fi
  17593. # if ICU is not found yet, try pkg-config
  17594. # last resort
  17595. if test -z "$icu_lib"; then
  17596. # Extract the first word of "icu-config", so it can be a program name with args.
  17597. set dummy icu-config; ac_word=$2
  17598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17599. $as_echo_n "checking for $ac_word... " >&6; }
  17600. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17601. $as_echo_n "(cached) " >&6
  17602. else
  17603. case $ICU_CONFIG in
  17604. [\\/]* | ?:[\\/]*)
  17605. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17606. ;;
  17607. *)
  17608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17609. for as_dir in $PATH
  17610. do
  17611. IFS=$as_save_IFS
  17612. test -z "$as_dir" && as_dir=.
  17613. for ac_exec_ext in '' $ac_executable_extensions; do
  17614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17615. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17617. break 2
  17618. fi
  17619. done
  17620. done
  17621. IFS=$as_save_IFS
  17622. ;;
  17623. esac
  17624. fi
  17625. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17626. if test -n "$ICU_CONFIG"; then
  17627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17628. $as_echo "$ICU_CONFIG" >&6; }
  17629. else
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17631. $as_echo "no" >&6; }
  17632. fi
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17634. $as_echo_n "checking for icu with icu-config... " >&6; }
  17635. if test -n "$ICU_CONFIG"; then
  17636. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17637. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17638. icu_bin=`$ICU_CONFIG --bindir`
  17639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17640. $as_echo "using system ICU" >&6; }
  17641. else
  17642. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17643. fi
  17644. fi
  17645. # BEGIN COPYRIGHT BLOCK
  17646. # Copyright (C) 2006 Red Hat, Inc.
  17647. # All rights reserved.
  17648. #
  17649. # License: GPL (version 3 or any later version).
  17650. # See LICENSE for details.
  17651. # END COPYRIGHT BLOCK
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17653. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17655. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17656. # Check whether --with-netsnmp was given.
  17657. if test "${with_netsnmp+set}" = set; then :
  17658. withval=$with_netsnmp;
  17659. if test "$withval" = "yes"; then
  17660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17661. $as_echo "yes" >&6; }
  17662. elif test "$withval" = "no"; then
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17664. $as_echo "no" >&6; }
  17665. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17666. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17668. $as_echo "using $withval" >&6; }
  17669. NETSNMPDIR=$withval
  17670. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17671. netsnmp_inc="-I$withval/include"
  17672. else
  17673. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17674. fi
  17675. netsnmp_lib="-L$withval/lib"
  17676. netsnmp_libdir="$withval/lib"
  17677. else
  17678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17679. $as_echo "yes" >&6; }
  17680. as_fn_error $? "$withval not found" "$LINENO" 5
  17681. fi
  17682. else
  17683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17684. $as_echo "yes" >&6; }
  17685. fi
  17686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17687. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17688. # Check whether --with-netsnmp-inc was given.
  17689. if test "${with_netsnmp_inc+set}" = set; then :
  17690. withval=$with_netsnmp_inc;
  17691. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17693. $as_echo "using $withval" >&6; }
  17694. netsnmp_inc="-I$withval"
  17695. else
  17696. echo
  17697. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17698. fi
  17699. else
  17700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17701. $as_echo "no" >&6; }
  17702. fi
  17703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17704. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17705. # Check whether --with-netsnmp-lib was given.
  17706. if test "${with_netsnmp_lib+set}" = set; then :
  17707. withval=$with_netsnmp_lib;
  17708. if test -d "$withval"
  17709. then
  17710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17711. $as_echo "using $withval" >&6; }
  17712. netsnmp_lib="-L$withval"
  17713. netsnmp_libdir="$withval"
  17714. else
  17715. echo
  17716. as_fn_error $? "$withval not found" "$LINENO" 5
  17717. fi
  17718. else
  17719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17720. $as_echo "no" >&6; }
  17721. fi
  17722. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17724. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17725. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17727. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17728. netsnmp_inc="-I/usr/include"
  17729. else
  17730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17731. $as_echo "no" >&6; }
  17732. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17733. fi
  17734. fi
  17735. if test -n "$netsnmp_inc"; then
  17736. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17737. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17738. else
  17739. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17740. set dummy net-snmp-config; ac_word=$2
  17741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17742. $as_echo_n "checking for $ac_word... " >&6; }
  17743. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17744. $as_echo_n "(cached) " >&6
  17745. else
  17746. case $NETSNMP_CONFIG in
  17747. [\\/]* | ?:[\\/]*)
  17748. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17749. ;;
  17750. *)
  17751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17752. for as_dir in $PATH
  17753. do
  17754. IFS=$as_save_IFS
  17755. test -z "$as_dir" && as_dir=.
  17756. for ac_exec_ext in '' $ac_executable_extensions; do
  17757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17758. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17760. break 2
  17761. fi
  17762. done
  17763. done
  17764. IFS=$as_save_IFS
  17765. ;;
  17766. esac
  17767. fi
  17768. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17769. if test -n "$NETSNMP_CONFIG"; then
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17771. $as_echo "$NETSNMP_CONFIG" >&6; }
  17772. else
  17773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17774. $as_echo "no" >&6; }
  17775. fi
  17776. fi
  17777. if test -n "$NETSNMP_CONFIG"; then
  17778. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17779. else
  17780. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17781. fi
  17782. else
  17783. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17784. fi
  17785. # BEGIN COPYRIGHT BLOCK
  17786. # Copyright (C) 2008 Red Hat, Inc.
  17787. # All rights reserved.
  17788. #
  17789. # License: GPL (version 3 or any later version).
  17790. # See LICENSE for details.
  17791. # END COPYRIGHT BLOCK
  17792. # -*- tab-width: 4; -*-
  17793. # Configure paths for Kerberos
  17794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17795. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17796. if test -z "$with_kerberos" ; then
  17797. with_kerberos=yes # if not set on cmdline, set default
  17798. fi
  17799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17800. $as_echo_n "checking for --with-kerberos... " >&6; }
  17801. # Check whether --with-kerberos was given.
  17802. if test "${with_kerberos+set}" = set; then :
  17803. withval=$with_kerberos;
  17804. if test "x$withval" = "xyes"; then
  17805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17806. $as_echo "yes" >&6; }
  17807. elif test "x$withval" = "xno"; then
  17808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17809. $as_echo "no" >&6; }
  17810. with_kerberos=
  17811. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17813. $as_echo "using $withval" >&6; }
  17814. kerberos_incdir="$withval/include"
  17815. kerberos_libdir="$withval/lib"
  17816. else
  17817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17818. $as_echo "yes" >&6; }
  17819. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17820. fi
  17821. else
  17822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17823. $as_echo "no" >&6; }
  17824. with_kerberos=
  17825. fi
  17826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17827. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17828. # Check whether --with-kerberos-inc was given.
  17829. if test "${with_kerberos_inc+set}" = set; then :
  17830. withval=$with_kerberos_inc;
  17831. if test -f "$withval"/krb5.h; then
  17832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17833. $as_echo "using $withval" >&6; }
  17834. kerberos_incdir="$withval"
  17835. with_kerberos=yes # implies use of kerberos
  17836. else
  17837. echo
  17838. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17839. fi
  17840. else
  17841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17842. $as_echo "no" >&6; }
  17843. fi
  17844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17845. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17846. # Check whether --with-kerberos-lib was given.
  17847. if test "${with_kerberos_lib+set}" = set; then :
  17848. withval=$with_kerberos_lib;
  17849. if test -d "$withval"; then
  17850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17851. $as_echo "using $withval" >&6; }
  17852. kerberos_libdir="$withval"
  17853. with_kerberos=yes # implies use of kerberos
  17854. else
  17855. echo
  17856. as_fn_error $? "$withval not found" "$LINENO" 5
  17857. fi
  17858. else
  17859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17860. $as_echo "no" >&6; }
  17861. fi
  17862. if test -n "$with_kerberos" ; then
  17863. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17864. if test -z "$KRB5_CONFIG_BIN" ; then
  17865. # Extract the first word of "krb5-config", so it can be a program name with args.
  17866. set dummy krb5-config; ac_word=$2
  17867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17868. $as_echo_n "checking for $ac_word... " >&6; }
  17869. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17870. $as_echo_n "(cached) " >&6
  17871. else
  17872. case $KRB5_CONFIG_BIN in
  17873. [\\/]* | ?:[\\/]*)
  17874. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17875. ;;
  17876. *)
  17877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17878. for as_dir in $PATH
  17879. do
  17880. IFS=$as_save_IFS
  17881. test -z "$as_dir" && as_dir=.
  17882. for ac_exec_ext in '' $ac_executable_extensions; do
  17883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17884. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17886. break 2
  17887. fi
  17888. done
  17889. done
  17890. IFS=$as_save_IFS
  17891. ;;
  17892. esac
  17893. fi
  17894. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17895. if test -n "$KRB5_CONFIG_BIN"; then
  17896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17897. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17898. else
  17899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17900. $as_echo "no" >&6; }
  17901. fi
  17902. fi
  17903. if test -n "$KRB5_CONFIG_BIN" ; then
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17905. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17906. if test -z "$kerberos_libdir" ; then
  17907. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17908. fi
  17909. if test -z "$kerberos_incdir" ; then
  17910. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17911. fi
  17912. if test -n "$kerberos_lib" ; then
  17913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17914. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17915. have_krb5=yes
  17916. fi
  17917. fi
  17918. fi
  17919. fi
  17920. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17921. # save these in order to set them to use the check macros below
  17922. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17923. save_CPPFLAGS="$CPPFLAGS"
  17924. if test -n "$kerberos_incdir" ; then
  17925. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17926. fi
  17927. save_LDFLAGS="$LDFLAGS"
  17928. if test -n "$kerberos_libdir" ; then
  17929. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17930. fi
  17931. krb5_impl=mit
  17932. for ac_header in heim_err.h
  17933. do :
  17934. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17935. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17936. cat >>confdefs.h <<_ACEOF
  17937. #define HAVE_HEIM_ERR_H 1
  17938. _ACEOF
  17939. fi
  17940. done
  17941. if test $ac_cv_header_heim_err_h = yes ; then
  17942. krb5_impl=heimdal
  17943. fi
  17944. if test "x$krb5_impl" = "xmit"; then
  17945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17946. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17947. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17948. $as_echo_n "(cached) " >&6
  17949. else
  17950. ac_check_lib_save_LIBS=$LIBS
  17951. LIBS="-lk5crypto $LIBS"
  17952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17953. /* end confdefs.h. */
  17954. int
  17955. main ()
  17956. {
  17957. return main ();
  17958. ;
  17959. return 0;
  17960. }
  17961. _ACEOF
  17962. if ac_fn_c_try_link "$LINENO"; then :
  17963. ac_cv_lib_k5crypto_main=yes
  17964. else
  17965. ac_cv_lib_k5crypto_main=no
  17966. fi
  17967. rm -f core conftest.err conftest.$ac_objext \
  17968. conftest$ac_exeext conftest.$ac_ext
  17969. LIBS=$ac_check_lib_save_LIBS
  17970. fi
  17971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17972. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17973. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17974. krb5crypto=k5crypto
  17975. else
  17976. krb5crypto=crypto
  17977. fi
  17978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17979. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17980. if ${ac_cv_lib_krb5_main+:} false; then :
  17981. $as_echo_n "(cached) " >&6
  17982. else
  17983. ac_check_lib_save_LIBS=$LIBS
  17984. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17986. /* end confdefs.h. */
  17987. int
  17988. main ()
  17989. {
  17990. return main ();
  17991. ;
  17992. return 0;
  17993. }
  17994. _ACEOF
  17995. if ac_fn_c_try_link "$LINENO"; then :
  17996. ac_cv_lib_krb5_main=yes
  17997. else
  17998. ac_cv_lib_krb5_main=no
  17999. fi
  18000. rm -f core conftest.err conftest.$ac_objext \
  18001. conftest$ac_exeext conftest.$ac_ext
  18002. LIBS=$ac_check_lib_save_LIBS
  18003. fi
  18004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18005. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18006. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18007. have_krb5=yes
  18008. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  18009. else
  18010. have_krb5=no
  18011. fi
  18012. elif test "x$krb5_impl" = "xheimdal"; then
  18013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  18014. $as_echo_n "checking for main in -ldes... " >&6; }
  18015. if ${ac_cv_lib_des_main+:} false; then :
  18016. $as_echo_n "(cached) " >&6
  18017. else
  18018. ac_check_lib_save_LIBS=$LIBS
  18019. LIBS="-ldes $LIBS"
  18020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18021. /* end confdefs.h. */
  18022. int
  18023. main ()
  18024. {
  18025. return main ();
  18026. ;
  18027. return 0;
  18028. }
  18029. _ACEOF
  18030. if ac_fn_c_try_link "$LINENO"; then :
  18031. ac_cv_lib_des_main=yes
  18032. else
  18033. ac_cv_lib_des_main=no
  18034. fi
  18035. rm -f core conftest.err conftest.$ac_objext \
  18036. conftest$ac_exeext conftest.$ac_ext
  18037. LIBS=$ac_check_lib_save_LIBS
  18038. fi
  18039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  18040. $as_echo "$ac_cv_lib_des_main" >&6; }
  18041. if test "x$ac_cv_lib_des_main" = xyes; then :
  18042. krb5crypto=des
  18043. else
  18044. krb5crypto=crypto
  18045. fi
  18046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  18047. $as_echo_n "checking for main in -lkrb5... " >&6; }
  18048. if ${ac_cv_lib_krb5_main+:} false; then :
  18049. $as_echo_n "(cached) " >&6
  18050. else
  18051. ac_check_lib_save_LIBS=$LIBS
  18052. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  18053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18054. /* end confdefs.h. */
  18055. int
  18056. main ()
  18057. {
  18058. return main ();
  18059. ;
  18060. return 0;
  18061. }
  18062. _ACEOF
  18063. if ac_fn_c_try_link "$LINENO"; then :
  18064. ac_cv_lib_krb5_main=yes
  18065. else
  18066. ac_cv_lib_krb5_main=no
  18067. fi
  18068. rm -f core conftest.err conftest.$ac_objext \
  18069. conftest$ac_exeext conftest.$ac_ext
  18070. LIBS=$ac_check_lib_save_LIBS
  18071. fi
  18072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18073. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18074. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18075. have_krb5=yes
  18076. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  18077. else
  18078. have_krb5=no
  18079. fi
  18080. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  18081. else
  18082. have_krb5=no
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  18084. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  18085. fi
  18086. # reset to original values
  18087. CPPFLAGS="$save_CPPFLAGS"
  18088. LDFLAGS="$save_LDFLAGS"
  18089. if test -n "$kerberos_incdir" ; then
  18090. kerberos_inc="-I$kerberos_incdir"
  18091. fi
  18092. if test -n "$kerberos_libdir" ; then
  18093. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  18094. fi
  18095. fi
  18096. if test -n "$with_kerberos" ; then
  18097. if test "x$have_krb5" = "xyes" ; then
  18098. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  18099. else
  18100. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  18101. fi
  18102. save_LIBS="$LIBS"
  18103. LIBS="$kerberos_lib"
  18104. save_CPPFLAGS="$CPPFLAGS"
  18105. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  18106. for ac_func in krb5_cc_new_unique
  18107. do :
  18108. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  18109. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  18110. cat >>confdefs.h <<_ACEOF
  18111. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  18112. _ACEOF
  18113. fi
  18114. done
  18115. LIBS="$save_LIBS"
  18116. CPPFLAGS="$save_CPPFLAGS"
  18117. fi
  18118. # BEGIN COPYRIGHT BLOCK
  18119. # Copyright (C) 2007 Red Hat, Inc.
  18120. # All rights reserved.
  18121. #
  18122. # License: GPL (version 3 or any later version).
  18123. # See LICENSE for details.
  18124. # END COPYRIGHT BLOCK
  18125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  18126. $as_echo "$as_me: checking for PCRE..." >&6;}
  18127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  18128. $as_echo_n "checking for --with-pcre... " >&6; }
  18129. # Check whether --with-pcre was given.
  18130. if test "${with_pcre+set}" = set; then :
  18131. withval=$with_pcre;
  18132. if test "$withval" = "yes"; then
  18133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18134. $as_echo "yes" >&6; }
  18135. elif test "$withval" = "no"; then
  18136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18137. $as_echo "no" >&6; }
  18138. as_fn_error $? "PCRE is required." "$LINENO" 5
  18139. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18141. $as_echo "using $withval" >&6; }
  18142. PCREDIR=$withval
  18143. pcre_lib="-L$PCREDIR/lib"
  18144. pcre_libdir="$PCREDIR/lib"
  18145. pcre_incdir="$PCREDIR/include"
  18146. if ! test -e "$pcre_incdir/pcre.h" ; then
  18147. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18148. fi
  18149. pcre_inc="-I$pcre_incdir"
  18150. else
  18151. echo
  18152. as_fn_error $? "$withval not found" "$LINENO" 5
  18153. fi
  18154. else
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18156. $as_echo "yes" >&6; }
  18157. fi
  18158. #
  18159. # if PCRE is not found yet, try pkg-config
  18160. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18161. # Extract the first word of "pkg-config", so it can be a program name with args.
  18162. set dummy pkg-config; ac_word=$2
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18164. $as_echo_n "checking for $ac_word... " >&6; }
  18165. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18166. $as_echo_n "(cached) " >&6
  18167. else
  18168. case $PKG_CONFIG in
  18169. [\\/]* | ?:[\\/]*)
  18170. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18171. ;;
  18172. *)
  18173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18174. for as_dir in $PATH
  18175. do
  18176. IFS=$as_save_IFS
  18177. test -z "$as_dir" && as_dir=.
  18178. for ac_exec_ext in '' $ac_executable_extensions; do
  18179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18180. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18182. break 2
  18183. fi
  18184. done
  18185. done
  18186. IFS=$as_save_IFS
  18187. ;;
  18188. esac
  18189. fi
  18190. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18191. if test -n "$PKG_CONFIG"; then
  18192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18193. $as_echo "$PKG_CONFIG" >&6; }
  18194. else
  18195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18196. $as_echo "no" >&6; }
  18197. fi
  18198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18199. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18200. if test -n "$PKG_CONFIG"; then
  18201. if $PKG_CONFIG --exists pcre; then
  18202. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18203. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18204. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18206. $as_echo "using system PCRE" >&6; }
  18207. elif $PKG_CONFIG --exists libpcre; then
  18208. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18209. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18210. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18212. $as_echo "using system PCRE" >&6; }
  18213. else
  18214. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18215. fi
  18216. fi
  18217. fi
  18218. if test -z "$pcre_inc"; then
  18219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18220. $as_echo_n "checking for pcre.h... " >&6; }
  18221. if test -f "/usr/include/pcre/pcre.h"; then
  18222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18223. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18224. pcre_incdir="/usr/include/pcre"
  18225. pcre_inc="-I/usr/include/pcre"
  18226. pcre_lib='-L$(libdir)'
  18227. pcre_libdir='$(libdir)'
  18228. elif test -f "/usr/include/pcre.h"; then
  18229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18230. $as_echo "using /usr/include/pcre.h" >&6; }
  18231. pcre_incdir="/usr/include"
  18232. pcre_inc="-I/usr/include"
  18233. pcre_lib='-L$(libdir)'
  18234. pcre_libdir='$(libdir)'
  18235. else
  18236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18237. $as_echo "no" >&6; }
  18238. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18239. fi
  18240. fi
  18241. # BEGIN COPYRIGHT BLOCK
  18242. # Copyright (C) 2009 Red Hat, Inc.
  18243. # All rights reserved.
  18244. #
  18245. # License: GPL (version 3 or any later version).
  18246. # See LICENSE for details.
  18247. # END COPYRIGHT BLOCK
  18248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18249. $as_echo "$as_me: checking for SELinux..." >&6;}
  18250. # check for --with-selinux
  18251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18252. $as_echo_n "checking for --with-selinux... " >&6; }
  18253. # Check whether --with-selinux was given.
  18254. if test "${with_selinux+set}" = set; then :
  18255. withval=$with_selinux;
  18256. if test "$withval" = "no"; then
  18257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18258. $as_echo "no" >&6; }
  18259. else
  18260. with_selinux=yes
  18261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18262. $as_echo "yes" >&6; }
  18263. fi
  18264. else
  18265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18266. $as_echo "no" >&6; }
  18267. fi
  18268. # BEGIN COPYRIGHT BLOCK
  18269. # License: GPL (version 3 or any later version).
  18270. # See LICENSE for details.
  18271. # END COPYRIGHT BLOCK
  18272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nunc-stans..." >&5
  18273. $as_echo "$as_me: checking for nunc-stans..." >&6;}
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans" >&5
  18275. $as_echo_n "checking for --with-nunc-stans... " >&6; }
  18276. # Check whether --with-nunc-stans was given.
  18277. if test "${with_nunc_stans+set}" = set; then :
  18278. withval=$with_nunc_stans;
  18279. if test "$withval" = "yes"; then
  18280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18281. $as_echo "yes" >&6; }
  18282. elif test "$withval" = "no"; then
  18283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18284. $as_echo "no" >&6; }
  18285. elif test -d "$withval"; then
  18286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18287. $as_echo "using $withval" >&6; }
  18288. nunc_stans_lib="-L$withval/lib"
  18289. nunc_stans_libdir="$withval/lib"
  18290. nunc_stans_incdir="$withval/include"
  18291. if ! test -e "$nunc_stans_incdir/nunc-stans/nunc-stans.h" ; then
  18292. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18293. fi
  18294. nunc_stans_inc="-I$nunc_stans_incdir"
  18295. else
  18296. echo
  18297. as_fn_error $? "$withval not found" "$LINENO" 5
  18298. fi
  18299. else
  18300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18301. $as_echo "no" >&6; }
  18302. fi
  18303. # check for --with-nunc-stans-inc
  18304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-inc" >&5
  18305. $as_echo_n "checking for --with-nunc-stans-inc... " >&6; }
  18306. # Check whether --with-nunc-stans-inc was given.
  18307. if test "${with_nunc_stans_inc+set}" = set; then :
  18308. withval=$with_nunc_stans_inc;
  18309. if test -e "$withval"/nunc-stans/nunc-stans.h
  18310. then
  18311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18312. $as_echo "using $withval" >&6; }
  18313. nunc_stans_incdir="$withval"
  18314. nunc_stans_inc="-I$withval"
  18315. else
  18316. echo
  18317. as_fn_error $? "$withval not found" "$LINENO" 5
  18318. fi
  18319. else
  18320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18321. $as_echo "no" >&6; }
  18322. fi
  18323. # check for --with-nunc-stans-lib
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nunc-stans-lib" >&5
  18325. $as_echo_n "checking for --with-nunc-stans-lib... " >&6; }
  18326. # Check whether --with-nunc-stans-lib was given.
  18327. if test "${with_nunc_stans_lib+set}" = set; then :
  18328. withval=$with_nunc_stans_lib;
  18329. if test -d "$withval"
  18330. then
  18331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18332. $as_echo "using $withval" >&6; }
  18333. nunc_stans_lib="-L$withval"
  18334. nunc_stans_libdir="$withval"
  18335. else
  18336. echo
  18337. as_fn_error $? "$withval not found" "$LINENO" 5
  18338. fi
  18339. else
  18340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18341. $as_echo "no" >&6; }
  18342. fi
  18343. # BEGIN COPYRIGHT BLOCK
  18344. # Copyright (C) 2015 Red Hat, Inc.
  18345. # All rights reserved.
  18346. #
  18347. # License: GPL (version 3 or any later version).
  18348. # See LICENSE for details.
  18349. # END COPYRIGHT BLOCK
  18350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd..." >&5
  18351. $as_echo "$as_me: checking for Systemd..." >&6;}
  18352. # check for --with-systemd
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemd" >&5
  18354. $as_echo_n "checking for --with-systemd... " >&6; }
  18355. # Check whether --with-systemd was given.
  18356. if test "${with_systemd+set}" = set; then :
  18357. withval=$with_systemd;
  18358. if test "$withval" = yes
  18359. then
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using systemd native features" >&5
  18361. $as_echo "using systemd native features" >&6; }
  18362. with_systemd=yes
  18363. else
  18364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18365. $as_echo "no" >&6; }
  18366. fi
  18367. else
  18368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18369. $as_echo "no" >&6; }
  18370. fi
  18371. if test "$with_systemd" = yes; then
  18372. # Extract the first word of "pkg-config", so it can be a program name with args.
  18373. set dummy pkg-config; ac_word=$2
  18374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18375. $as_echo_n "checking for $ac_word... " >&6; }
  18376. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18377. $as_echo_n "(cached) " >&6
  18378. else
  18379. case $PKG_CONFIG in
  18380. [\\/]* | ?:[\\/]*)
  18381. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18382. ;;
  18383. *)
  18384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18385. for as_dir in $PATH
  18386. do
  18387. IFS=$as_save_IFS
  18388. test -z "$as_dir" && as_dir=.
  18389. for ac_exec_ext in '' $ac_executable_extensions; do
  18390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18391. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18393. break 2
  18394. fi
  18395. done
  18396. done
  18397. IFS=$as_save_IFS
  18398. ;;
  18399. esac
  18400. fi
  18401. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18402. if test -n "$PKG_CONFIG"; then
  18403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18404. $as_echo "$PKG_CONFIG" >&6; }
  18405. else
  18406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18407. $as_echo "no" >&6; }
  18408. fi
  18409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Systemd with pkg-config" >&5
  18410. $as_echo_n "checking for Systemd with pkg-config... " >&6; }
  18411. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists systemd libsystemd-journal libsystemd-daemon ; then
  18412. systemd_inc=`$PKG_CONFIG --cflags-only-I systemd libsystemd-journal libsystemd-daemon`
  18413. systemd_lib=`$PKG_CONFIG --libs-only-l systemd libsystemd-journal libsystemd-daemon`
  18414. systemd_defs="-DWITH_SYSTEMD"
  18415. else
  18416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no Systemd pkg-config files" >&5
  18417. $as_echo "no Systemd pkg-config files" >&6; }
  18418. fi
  18419. fi
  18420. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18421. # set sasl_path for wrapper scripts
  18422. if test -z "$sasl_libdir" ; then
  18423. sasl_path="$libdir/sasl2"
  18424. else
  18425. sasl_path="$sasl_libdir/sasl2"
  18426. fi
  18427. if test "$with_selinux" = "yes"; then
  18428. SELINUX_TRUE=
  18429. SELINUX_FALSE='#'
  18430. else
  18431. SELINUX_TRUE='#'
  18432. SELINUX_FALSE=
  18433. fi
  18434. if test "$with_openldap" = "yes"; then
  18435. OPENLDAP_TRUE=
  18436. OPENLDAP_FALSE='#'
  18437. else
  18438. OPENLDAP_TRUE='#'
  18439. OPENLDAP_FALSE=
  18440. fi
  18441. if test "$platform" = "solaris"; then
  18442. SOLARIS_TRUE=
  18443. SOLARIS_FALSE='#'
  18444. else
  18445. SOLARIS_TRUE='#'
  18446. SOLARIS_FALSE=
  18447. fi
  18448. if test "x$TARGET" = xSPARC; then
  18449. SPARC_TRUE=
  18450. SPARC_FALSE='#'
  18451. else
  18452. SPARC_TRUE='#'
  18453. SPARC_FALSE=
  18454. fi
  18455. # write out paths for binary components
  18456. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18457. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18458. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18459. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18460. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18461. # we remove them here
  18462. if test "$GCC" != yes ; then
  18463. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18464. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18465. cp -p libtool libtool.orig
  18466. cp -p libtool libtool.tmp
  18467. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18468. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18469. # perl produced write-only code . . .
  18470. sed -e '/^gcc_dir/ d' \
  18471. -e '/^gcc_ver/ d' \
  18472. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18473. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18474. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18475. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18476. libtool > libtool.tmp
  18477. cp -p libtool.tmp libtool
  18478. rm -f libtool.tmp
  18479. fi
  18480. ac_config_files="$ac_config_files Makefile rpm/389-ds-base.spec"
  18481. cat >confcache <<\_ACEOF
  18482. # This file is a shell script that caches the results of configure
  18483. # tests run on this system so they can be shared between configure
  18484. # scripts and configure runs, see configure's option --config-cache.
  18485. # It is not useful on other systems. If it contains results you don't
  18486. # want to keep, you may remove or edit it.
  18487. #
  18488. # config.status only pays attention to the cache file if you give it
  18489. # the --recheck option to rerun configure.
  18490. #
  18491. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18492. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18493. # following values.
  18494. _ACEOF
  18495. # The following way of writing the cache mishandles newlines in values,
  18496. # but we know of no workaround that is simple, portable, and efficient.
  18497. # So, we kill variables containing newlines.
  18498. # Ultrix sh set writes to stderr and can't be redirected directly,
  18499. # and sets the high bit in the cache file unless we assign to the vars.
  18500. (
  18501. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18502. eval ac_val=\$$ac_var
  18503. case $ac_val in #(
  18504. *${as_nl}*)
  18505. case $ac_var in #(
  18506. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18507. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18508. esac
  18509. case $ac_var in #(
  18510. _ | IFS | as_nl) ;; #(
  18511. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18512. *) { eval $ac_var=; unset $ac_var;} ;;
  18513. esac ;;
  18514. esac
  18515. done
  18516. (set) 2>&1 |
  18517. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18518. *${as_nl}ac_space=\ *)
  18519. # `set' does not quote correctly, so add quotes: double-quote
  18520. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18521. sed -n \
  18522. "s/'/'\\\\''/g;
  18523. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18524. ;; #(
  18525. *)
  18526. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18527. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18528. ;;
  18529. esac |
  18530. sort
  18531. ) |
  18532. sed '
  18533. /^ac_cv_env_/b end
  18534. t clear
  18535. :clear
  18536. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18537. t end
  18538. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18539. :end' >>confcache
  18540. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18541. if test -w "$cache_file"; then
  18542. if test "x$cache_file" != "x/dev/null"; then
  18543. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18544. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18545. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18546. cat confcache >"$cache_file"
  18547. else
  18548. case $cache_file in #(
  18549. */* | ?:*)
  18550. mv -f confcache "$cache_file"$$ &&
  18551. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18552. *)
  18553. mv -f confcache "$cache_file" ;;
  18554. esac
  18555. fi
  18556. fi
  18557. else
  18558. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18559. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18560. fi
  18561. fi
  18562. rm -f confcache
  18563. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18564. # Let make expand exec_prefix.
  18565. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18566. DEFS=-DHAVE_CONFIG_H
  18567. ac_libobjs=
  18568. ac_ltlibobjs=
  18569. U=
  18570. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18571. # 1. Remove the extension, and $U if already installed.
  18572. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18573. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18574. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18575. # will be set to the directory where LIBOBJS objects are built.
  18576. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18577. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18578. done
  18579. LIBOBJS=$ac_libobjs
  18580. LTLIBOBJS=$ac_ltlibobjs
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18582. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18583. if test -n "$am_sleep_pid"; then
  18584. # Hide warnings about reused PIDs.
  18585. wait $am_sleep_pid 2>/dev/null
  18586. fi
  18587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18588. $as_echo "done" >&6; }
  18589. if test -n "$EXEEXT"; then
  18590. am__EXEEXT_TRUE=
  18591. am__EXEEXT_FALSE='#'
  18592. else
  18593. am__EXEEXT_TRUE='#'
  18594. am__EXEEXT_FALSE=
  18595. fi
  18596. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18597. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18598. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18599. fi
  18600. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18601. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18602. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18603. fi
  18604. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18605. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18606. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18607. fi
  18608. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18609. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18610. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18611. fi
  18612. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18613. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18614. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18615. fi
  18616. if test -z "${RPM_HARDEND_CC_TRUE}" && test -z "${RPM_HARDEND_CC_FALSE}"; then
  18617. as_fn_error $? "conditional \"RPM_HARDEND_CC\" was never defined.
  18618. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18619. fi
  18620. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18621. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18622. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18623. fi
  18624. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18625. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18626. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18627. fi
  18628. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18629. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18630. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18631. fi
  18632. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18633. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18634. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18635. fi
  18636. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18637. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18638. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18639. fi
  18640. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18641. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18642. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18643. fi
  18644. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18645. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18646. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18647. fi
  18648. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18649. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18650. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18651. fi
  18652. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18653. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18654. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18655. fi
  18656. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18657. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18658. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18659. fi
  18660. if test -z "${enable_nunc_stans_TRUE}" && test -z "${enable_nunc_stans_FALSE}"; then
  18661. as_fn_error $? "conditional \"enable_nunc_stans\" was never defined.
  18662. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18663. fi
  18664. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18665. as_fn_error $? "conditional \"WINNT\" was never defined.
  18666. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18667. fi
  18668. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18669. as_fn_error $? "conditional \"HPUX\" was never defined.
  18670. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18671. fi
  18672. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18673. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18674. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18675. fi
  18676. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18677. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18678. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18679. fi
  18680. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18681. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18682. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18683. fi
  18684. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18685. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18686. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18687. fi
  18688. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18689. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18690. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18691. fi
  18692. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18693. as_fn_error $? "conditional \"SPARC\" was never defined.
  18694. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18695. fi
  18696. : "${CONFIG_STATUS=./config.status}"
  18697. ac_write_fail=0
  18698. ac_clean_files_save=$ac_clean_files
  18699. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18700. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18701. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18702. as_write_fail=0
  18703. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18704. #! $SHELL
  18705. # Generated by $as_me.
  18706. # Run this file to recreate the current configuration.
  18707. # Compiler output produced by configure, useful for debugging
  18708. # configure, is in config.log if it exists.
  18709. debug=false
  18710. ac_cs_recheck=false
  18711. ac_cs_silent=false
  18712. SHELL=\${CONFIG_SHELL-$SHELL}
  18713. export SHELL
  18714. _ASEOF
  18715. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18716. ## -------------------- ##
  18717. ## M4sh Initialization. ##
  18718. ## -------------------- ##
  18719. # Be more Bourne compatible
  18720. DUALCASE=1; export DUALCASE # for MKS sh
  18721. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18722. emulate sh
  18723. NULLCMD=:
  18724. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18725. # is contrary to our usage. Disable this feature.
  18726. alias -g '${1+"$@"}'='"$@"'
  18727. setopt NO_GLOB_SUBST
  18728. else
  18729. case `(set -o) 2>/dev/null` in #(
  18730. *posix*) :
  18731. set -o posix ;; #(
  18732. *) :
  18733. ;;
  18734. esac
  18735. fi
  18736. as_nl='
  18737. '
  18738. export as_nl
  18739. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18740. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18741. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18742. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18743. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18744. # but without wasting forks for bash or zsh.
  18745. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18746. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18747. as_echo='print -r --'
  18748. as_echo_n='print -rn --'
  18749. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18750. as_echo='printf %s\n'
  18751. as_echo_n='printf %s'
  18752. else
  18753. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18754. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18755. as_echo_n='/usr/ucb/echo -n'
  18756. else
  18757. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18758. as_echo_n_body='eval
  18759. arg=$1;
  18760. case $arg in #(
  18761. *"$as_nl"*)
  18762. expr "X$arg" : "X\\(.*\\)$as_nl";
  18763. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18764. esac;
  18765. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18766. '
  18767. export as_echo_n_body
  18768. as_echo_n='sh -c $as_echo_n_body as_echo'
  18769. fi
  18770. export as_echo_body
  18771. as_echo='sh -c $as_echo_body as_echo'
  18772. fi
  18773. # The user is always right.
  18774. if test "${PATH_SEPARATOR+set}" != set; then
  18775. PATH_SEPARATOR=:
  18776. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18777. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18778. PATH_SEPARATOR=';'
  18779. }
  18780. fi
  18781. # IFS
  18782. # We need space, tab and new line, in precisely that order. Quoting is
  18783. # there to prevent editors from complaining about space-tab.
  18784. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18785. # splitting by setting IFS to empty value.)
  18786. IFS=" "" $as_nl"
  18787. # Find who we are. Look in the path if we contain no directory separator.
  18788. as_myself=
  18789. case $0 in #((
  18790. *[\\/]* ) as_myself=$0 ;;
  18791. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18792. for as_dir in $PATH
  18793. do
  18794. IFS=$as_save_IFS
  18795. test -z "$as_dir" && as_dir=.
  18796. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18797. done
  18798. IFS=$as_save_IFS
  18799. ;;
  18800. esac
  18801. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18802. # in which case we are not to be found in the path.
  18803. if test "x$as_myself" = x; then
  18804. as_myself=$0
  18805. fi
  18806. if test ! -f "$as_myself"; then
  18807. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18808. exit 1
  18809. fi
  18810. # Unset variables that we do not need and which cause bugs (e.g. in
  18811. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18812. # suppresses any "Segmentation fault" message there. '((' could
  18813. # trigger a bug in pdksh 5.2.14.
  18814. for as_var in BASH_ENV ENV MAIL MAILPATH
  18815. do eval test x\${$as_var+set} = xset \
  18816. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18817. done
  18818. PS1='$ '
  18819. PS2='> '
  18820. PS4='+ '
  18821. # NLS nuisances.
  18822. LC_ALL=C
  18823. export LC_ALL
  18824. LANGUAGE=C
  18825. export LANGUAGE
  18826. # CDPATH.
  18827. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18828. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18829. # ----------------------------------------
  18830. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18831. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18832. # script with STATUS, using 1 if that was 0.
  18833. as_fn_error ()
  18834. {
  18835. as_status=$1; test $as_status -eq 0 && as_status=1
  18836. if test "$4"; then
  18837. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18838. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18839. fi
  18840. $as_echo "$as_me: error: $2" >&2
  18841. as_fn_exit $as_status
  18842. } # as_fn_error
  18843. # as_fn_set_status STATUS
  18844. # -----------------------
  18845. # Set $? to STATUS, without forking.
  18846. as_fn_set_status ()
  18847. {
  18848. return $1
  18849. } # as_fn_set_status
  18850. # as_fn_exit STATUS
  18851. # -----------------
  18852. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18853. as_fn_exit ()
  18854. {
  18855. set +e
  18856. as_fn_set_status $1
  18857. exit $1
  18858. } # as_fn_exit
  18859. # as_fn_unset VAR
  18860. # ---------------
  18861. # Portably unset VAR.
  18862. as_fn_unset ()
  18863. {
  18864. { eval $1=; unset $1;}
  18865. }
  18866. as_unset=as_fn_unset
  18867. # as_fn_append VAR VALUE
  18868. # ----------------------
  18869. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18870. # advantage of any shell optimizations that allow amortized linear growth over
  18871. # repeated appends, instead of the typical quadratic growth present in naive
  18872. # implementations.
  18873. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18874. eval 'as_fn_append ()
  18875. {
  18876. eval $1+=\$2
  18877. }'
  18878. else
  18879. as_fn_append ()
  18880. {
  18881. eval $1=\$$1\$2
  18882. }
  18883. fi # as_fn_append
  18884. # as_fn_arith ARG...
  18885. # ------------------
  18886. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18887. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18888. # must be portable across $(()) and expr.
  18889. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18890. eval 'as_fn_arith ()
  18891. {
  18892. as_val=$(( $* ))
  18893. }'
  18894. else
  18895. as_fn_arith ()
  18896. {
  18897. as_val=`expr "$@" || test $? -eq 1`
  18898. }
  18899. fi # as_fn_arith
  18900. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18901. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18902. as_expr=expr
  18903. else
  18904. as_expr=false
  18905. fi
  18906. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18907. as_basename=basename
  18908. else
  18909. as_basename=false
  18910. fi
  18911. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18912. as_dirname=dirname
  18913. else
  18914. as_dirname=false
  18915. fi
  18916. as_me=`$as_basename -- "$0" ||
  18917. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18918. X"$0" : 'X\(//\)$' \| \
  18919. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18920. $as_echo X/"$0" |
  18921. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18922. s//\1/
  18923. q
  18924. }
  18925. /^X\/\(\/\/\)$/{
  18926. s//\1/
  18927. q
  18928. }
  18929. /^X\/\(\/\).*/{
  18930. s//\1/
  18931. q
  18932. }
  18933. s/.*/./; q'`
  18934. # Avoid depending upon Character Ranges.
  18935. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18936. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18937. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18938. as_cr_digits='0123456789'
  18939. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18940. ECHO_C= ECHO_N= ECHO_T=
  18941. case `echo -n x` in #(((((
  18942. -n*)
  18943. case `echo 'xy\c'` in
  18944. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18945. xy) ECHO_C='\c';;
  18946. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18947. ECHO_T=' ';;
  18948. esac;;
  18949. *)
  18950. ECHO_N='-n';;
  18951. esac
  18952. rm -f conf$$ conf$$.exe conf$$.file
  18953. if test -d conf$$.dir; then
  18954. rm -f conf$$.dir/conf$$.file
  18955. else
  18956. rm -f conf$$.dir
  18957. mkdir conf$$.dir 2>/dev/null
  18958. fi
  18959. if (echo >conf$$.file) 2>/dev/null; then
  18960. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18961. as_ln_s='ln -s'
  18962. # ... but there are two gotchas:
  18963. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18964. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18965. # In both cases, we have to default to `cp -pR'.
  18966. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18967. as_ln_s='cp -pR'
  18968. elif ln conf$$.file conf$$ 2>/dev/null; then
  18969. as_ln_s=ln
  18970. else
  18971. as_ln_s='cp -pR'
  18972. fi
  18973. else
  18974. as_ln_s='cp -pR'
  18975. fi
  18976. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18977. rmdir conf$$.dir 2>/dev/null
  18978. # as_fn_mkdir_p
  18979. # -------------
  18980. # Create "$as_dir" as a directory, including parents if necessary.
  18981. as_fn_mkdir_p ()
  18982. {
  18983. case $as_dir in #(
  18984. -*) as_dir=./$as_dir;;
  18985. esac
  18986. test -d "$as_dir" || eval $as_mkdir_p || {
  18987. as_dirs=
  18988. while :; do
  18989. case $as_dir in #(
  18990. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18991. *) as_qdir=$as_dir;;
  18992. esac
  18993. as_dirs="'$as_qdir' $as_dirs"
  18994. as_dir=`$as_dirname -- "$as_dir" ||
  18995. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18996. X"$as_dir" : 'X\(//\)[^/]' \| \
  18997. X"$as_dir" : 'X\(//\)$' \| \
  18998. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18999. $as_echo X"$as_dir" |
  19000. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19001. s//\1/
  19002. q
  19003. }
  19004. /^X\(\/\/\)[^/].*/{
  19005. s//\1/
  19006. q
  19007. }
  19008. /^X\(\/\/\)$/{
  19009. s//\1/
  19010. q
  19011. }
  19012. /^X\(\/\).*/{
  19013. s//\1/
  19014. q
  19015. }
  19016. s/.*/./; q'`
  19017. test -d "$as_dir" && break
  19018. done
  19019. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19020. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  19021. } # as_fn_mkdir_p
  19022. if mkdir -p . 2>/dev/null; then
  19023. as_mkdir_p='mkdir -p "$as_dir"'
  19024. else
  19025. test -d ./-p && rmdir ./-p
  19026. as_mkdir_p=false
  19027. fi
  19028. # as_fn_executable_p FILE
  19029. # -----------------------
  19030. # Test if FILE is an executable regular file.
  19031. as_fn_executable_p ()
  19032. {
  19033. test -f "$1" && test -x "$1"
  19034. } # as_fn_executable_p
  19035. as_test_x='test -x'
  19036. as_executable_p=as_fn_executable_p
  19037. # Sed expression to map a string onto a valid CPP name.
  19038. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19039. # Sed expression to map a string onto a valid variable name.
  19040. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19041. exec 6>&1
  19042. ## ----------------------------------- ##
  19043. ## Main body of $CONFIG_STATUS script. ##
  19044. ## ----------------------------------- ##
  19045. _ASEOF
  19046. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19047. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19048. # Save the log message, to keep $0 and so on meaningful, and to
  19049. # report actual input values of CONFIG_FILES etc. instead of their
  19050. # values after options handling.
  19051. ac_log="
  19052. This file was extended by dirsrv $as_me 1.0, which was
  19053. generated by GNU Autoconf 2.69. Invocation command line was
  19054. CONFIG_FILES = $CONFIG_FILES
  19055. CONFIG_HEADERS = $CONFIG_HEADERS
  19056. CONFIG_LINKS = $CONFIG_LINKS
  19057. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19058. $ $0 $@
  19059. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19060. "
  19061. _ACEOF
  19062. case $ac_config_files in *"
  19063. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19064. esac
  19065. case $ac_config_headers in *"
  19066. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19067. esac
  19068. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19069. # Files that config.status was made for.
  19070. config_files="$ac_config_files"
  19071. config_headers="$ac_config_headers"
  19072. config_commands="$ac_config_commands"
  19073. _ACEOF
  19074. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19075. ac_cs_usage="\
  19076. \`$as_me' instantiates files and other configuration actions
  19077. from templates according to the current configuration. Unless the files
  19078. and actions are specified as TAGs, all are instantiated by default.
  19079. Usage: $0 [OPTION]... [TAG]...
  19080. -h, --help print this help, then exit
  19081. -V, --version print version number and configuration settings, then exit
  19082. --config print configuration, then exit
  19083. -q, --quiet, --silent
  19084. do not print progress messages
  19085. -d, --debug don't remove temporary files
  19086. --recheck update $as_me by reconfiguring in the same conditions
  19087. --file=FILE[:TEMPLATE]
  19088. instantiate the configuration file FILE
  19089. --header=FILE[:TEMPLATE]
  19090. instantiate the configuration header FILE
  19091. Configuration files:
  19092. $config_files
  19093. Configuration headers:
  19094. $config_headers
  19095. Configuration commands:
  19096. $config_commands
  19097. Report bugs to <http://bugzilla.redhat.com/>."
  19098. _ACEOF
  19099. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19100. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19101. ac_cs_version="\\
  19102. dirsrv config.status 1.0
  19103. configured by $0, generated by GNU Autoconf 2.69,
  19104. with options \\"\$ac_cs_config\\"
  19105. Copyright (C) 2012 Free Software Foundation, Inc.
  19106. This config.status script is free software; the Free Software Foundation
  19107. gives unlimited permission to copy, distribute and modify it."
  19108. ac_pwd='$ac_pwd'
  19109. srcdir='$srcdir'
  19110. INSTALL='$INSTALL'
  19111. MKDIR_P='$MKDIR_P'
  19112. AWK='$AWK'
  19113. test -n "\$AWK" || AWK=awk
  19114. _ACEOF
  19115. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19116. # The default lists apply if the user does not specify any file.
  19117. ac_need_defaults=:
  19118. while test $# != 0
  19119. do
  19120. case $1 in
  19121. --*=?*)
  19122. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19123. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19124. ac_shift=:
  19125. ;;
  19126. --*=)
  19127. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19128. ac_optarg=
  19129. ac_shift=:
  19130. ;;
  19131. *)
  19132. ac_option=$1
  19133. ac_optarg=$2
  19134. ac_shift=shift
  19135. ;;
  19136. esac
  19137. case $ac_option in
  19138. # Handling of the options.
  19139. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19140. ac_cs_recheck=: ;;
  19141. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19142. $as_echo "$ac_cs_version"; exit ;;
  19143. --config | --confi | --conf | --con | --co | --c )
  19144. $as_echo "$ac_cs_config"; exit ;;
  19145. --debug | --debu | --deb | --de | --d | -d )
  19146. debug=: ;;
  19147. --file | --fil | --fi | --f )
  19148. $ac_shift
  19149. case $ac_optarg in
  19150. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19151. '') as_fn_error $? "missing file argument" ;;
  19152. esac
  19153. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19154. ac_need_defaults=false;;
  19155. --header | --heade | --head | --hea )
  19156. $ac_shift
  19157. case $ac_optarg in
  19158. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19159. esac
  19160. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19161. ac_need_defaults=false;;
  19162. --he | --h)
  19163. # Conflict between --help and --header
  19164. as_fn_error $? "ambiguous option: \`$1'
  19165. Try \`$0 --help' for more information.";;
  19166. --help | --hel | -h )
  19167. $as_echo "$ac_cs_usage"; exit ;;
  19168. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19169. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19170. ac_cs_silent=: ;;
  19171. # This is an error.
  19172. -*) as_fn_error $? "unrecognized option: \`$1'
  19173. Try \`$0 --help' for more information." ;;
  19174. *) as_fn_append ac_config_targets " $1"
  19175. ac_need_defaults=false ;;
  19176. esac
  19177. shift
  19178. done
  19179. ac_configure_extra_args=
  19180. if $ac_cs_silent; then
  19181. exec 6>/dev/null
  19182. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19183. fi
  19184. _ACEOF
  19185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19186. if \$ac_cs_recheck; then
  19187. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19188. shift
  19189. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19190. CONFIG_SHELL='$SHELL'
  19191. export CONFIG_SHELL
  19192. exec "\$@"
  19193. fi
  19194. _ACEOF
  19195. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19196. exec 5>>config.log
  19197. {
  19198. echo
  19199. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19200. ## Running $as_me. ##
  19201. _ASBOX
  19202. $as_echo "$ac_log"
  19203. } >&5
  19204. _ACEOF
  19205. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19206. #
  19207. # INIT-COMMANDS
  19208. #
  19209. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19210. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19211. # if CDPATH is set.
  19212. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19213. sed_quote_subst='$sed_quote_subst'
  19214. double_quote_subst='$double_quote_subst'
  19215. delay_variable_subst='$delay_variable_subst'
  19216. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19217. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19218. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19219. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19220. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19221. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19222. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19223. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19224. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19225. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19226. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19227. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19228. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19229. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19230. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19231. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19232. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19233. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19234. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19235. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19236. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19237. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19238. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19239. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19240. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19241. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19242. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19243. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19244. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19245. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19246. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19247. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19248. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19249. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19250. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19251. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19252. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19253. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19254. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19255. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19256. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19257. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19258. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19259. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19260. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19261. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19262. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19263. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19264. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19265. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19266. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19267. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19268. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19269. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19270. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19271. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19272. 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"`'
  19273. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19274. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19275. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19276. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19277. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19278. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19279. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19280. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19281. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19282. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19283. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19284. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19285. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19286. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19287. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19288. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19289. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19290. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19291. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19292. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19293. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19294. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19295. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19296. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19297. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19298. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19299. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19300. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19301. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19302. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19303. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19304. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19305. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19306. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19307. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19308. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19309. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19310. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19311. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19312. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19313. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19314. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19315. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19316. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19317. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19318. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19319. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19320. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19321. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19322. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19323. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19324. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19325. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19326. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19327. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19328. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19329. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19330. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19331. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19332. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19333. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19334. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19335. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19336. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19337. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19338. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19339. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19340. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19341. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19342. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19343. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19344. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19345. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19346. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19347. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19348. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19349. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19350. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19351. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19352. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19353. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19354. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19355. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19356. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19357. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19358. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19359. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19360. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19361. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19362. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19363. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19364. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19365. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19366. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19367. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19368. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19369. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19370. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19371. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19372. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19373. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19374. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19375. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19376. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19377. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19378. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19379. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19380. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19381. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19382. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19383. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19384. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19385. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19386. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19387. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19388. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19389. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19390. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19391. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19392. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19393. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19394. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19395. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19396. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19397. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19398. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19399. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19400. LTCC='$LTCC'
  19401. LTCFLAGS='$LTCFLAGS'
  19402. compiler='$compiler_DEFAULT'
  19403. # A function that is used when there is no print builtin or printf.
  19404. func_fallback_echo ()
  19405. {
  19406. eval 'cat <<_LTECHO_EOF
  19407. \$1
  19408. _LTECHO_EOF'
  19409. }
  19410. # Quote evaled strings.
  19411. for var in SHELL \
  19412. ECHO \
  19413. PATH_SEPARATOR \
  19414. SED \
  19415. GREP \
  19416. EGREP \
  19417. FGREP \
  19418. LD \
  19419. NM \
  19420. LN_S \
  19421. lt_SP2NL \
  19422. lt_NL2SP \
  19423. reload_flag \
  19424. OBJDUMP \
  19425. deplibs_check_method \
  19426. file_magic_cmd \
  19427. file_magic_glob \
  19428. want_nocaseglob \
  19429. DLLTOOL \
  19430. sharedlib_from_linklib_cmd \
  19431. AR \
  19432. AR_FLAGS \
  19433. archiver_list_spec \
  19434. STRIP \
  19435. RANLIB \
  19436. CC \
  19437. CFLAGS \
  19438. compiler \
  19439. lt_cv_sys_global_symbol_pipe \
  19440. lt_cv_sys_global_symbol_to_cdecl \
  19441. lt_cv_sys_global_symbol_to_c_name_address \
  19442. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19443. nm_file_list_spec \
  19444. lt_prog_compiler_no_builtin_flag \
  19445. lt_prog_compiler_pic \
  19446. lt_prog_compiler_wl \
  19447. lt_prog_compiler_static \
  19448. lt_cv_prog_compiler_c_o \
  19449. need_locks \
  19450. MANIFEST_TOOL \
  19451. DSYMUTIL \
  19452. NMEDIT \
  19453. LIPO \
  19454. OTOOL \
  19455. OTOOL64 \
  19456. shrext_cmds \
  19457. export_dynamic_flag_spec \
  19458. whole_archive_flag_spec \
  19459. compiler_needs_object \
  19460. with_gnu_ld \
  19461. allow_undefined_flag \
  19462. no_undefined_flag \
  19463. hardcode_libdir_flag_spec \
  19464. hardcode_libdir_separator \
  19465. exclude_expsyms \
  19466. include_expsyms \
  19467. file_list_spec \
  19468. variables_saved_for_relink \
  19469. libname_spec \
  19470. library_names_spec \
  19471. soname_spec \
  19472. install_override_mode \
  19473. finish_eval \
  19474. old_striplib \
  19475. striplib \
  19476. compiler_lib_search_dirs \
  19477. predep_objects \
  19478. postdep_objects \
  19479. predeps \
  19480. postdeps \
  19481. compiler_lib_search_path \
  19482. LD_CXX \
  19483. reload_flag_CXX \
  19484. compiler_CXX \
  19485. lt_prog_compiler_no_builtin_flag_CXX \
  19486. lt_prog_compiler_pic_CXX \
  19487. lt_prog_compiler_wl_CXX \
  19488. lt_prog_compiler_static_CXX \
  19489. lt_cv_prog_compiler_c_o_CXX \
  19490. export_dynamic_flag_spec_CXX \
  19491. whole_archive_flag_spec_CXX \
  19492. compiler_needs_object_CXX \
  19493. with_gnu_ld_CXX \
  19494. allow_undefined_flag_CXX \
  19495. no_undefined_flag_CXX \
  19496. hardcode_libdir_flag_spec_CXX \
  19497. hardcode_libdir_separator_CXX \
  19498. exclude_expsyms_CXX \
  19499. include_expsyms_CXX \
  19500. file_list_spec_CXX \
  19501. compiler_lib_search_dirs_CXX \
  19502. predep_objects_CXX \
  19503. postdep_objects_CXX \
  19504. predeps_CXX \
  19505. postdeps_CXX \
  19506. compiler_lib_search_path_CXX; do
  19507. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19508. *[\\\\\\\`\\"\\\$]*)
  19509. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19510. ;;
  19511. *)
  19512. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19513. ;;
  19514. esac
  19515. done
  19516. # Double-quote double-evaled strings.
  19517. for var in reload_cmds \
  19518. old_postinstall_cmds \
  19519. old_postuninstall_cmds \
  19520. old_archive_cmds \
  19521. extract_expsyms_cmds \
  19522. old_archive_from_new_cmds \
  19523. old_archive_from_expsyms_cmds \
  19524. archive_cmds \
  19525. archive_expsym_cmds \
  19526. module_cmds \
  19527. module_expsym_cmds \
  19528. export_symbols_cmds \
  19529. prelink_cmds \
  19530. postlink_cmds \
  19531. postinstall_cmds \
  19532. postuninstall_cmds \
  19533. finish_cmds \
  19534. sys_lib_search_path_spec \
  19535. sys_lib_dlsearch_path_spec \
  19536. reload_cmds_CXX \
  19537. old_archive_cmds_CXX \
  19538. old_archive_from_new_cmds_CXX \
  19539. old_archive_from_expsyms_cmds_CXX \
  19540. archive_cmds_CXX \
  19541. archive_expsym_cmds_CXX \
  19542. module_cmds_CXX \
  19543. module_expsym_cmds_CXX \
  19544. export_symbols_cmds_CXX \
  19545. prelink_cmds_CXX \
  19546. postlink_cmds_CXX; do
  19547. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19548. *[\\\\\\\`\\"\\\$]*)
  19549. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19550. ;;
  19551. *)
  19552. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19553. ;;
  19554. esac
  19555. done
  19556. ac_aux_dir='$ac_aux_dir'
  19557. xsi_shell='$xsi_shell'
  19558. lt_shell_append='$lt_shell_append'
  19559. # See if we are running on zsh, and set the options which allow our
  19560. # commands through without removal of \ escapes INIT.
  19561. if test -n "\${ZSH_VERSION+set}" ; then
  19562. setopt NO_GLOB_SUBST
  19563. fi
  19564. PACKAGE='$PACKAGE'
  19565. VERSION='$VERSION'
  19566. TIMESTAMP='$TIMESTAMP'
  19567. RM='$RM'
  19568. ofile='$ofile'
  19569. _ACEOF
  19570. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19571. # Handling of arguments.
  19572. for ac_config_target in $ac_config_targets
  19573. do
  19574. case $ac_config_target in
  19575. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19576. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19577. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19578. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19579. "rpm/389-ds-base.spec") CONFIG_FILES="$CONFIG_FILES rpm/389-ds-base.spec" ;;
  19580. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19581. esac
  19582. done
  19583. # If the user did not use the arguments to specify the items to instantiate,
  19584. # then the envvar interface is used. Set only those that are not.
  19585. # We use the long form for the default assignment because of an extremely
  19586. # bizarre bug on SunOS 4.1.3.
  19587. if $ac_need_defaults; then
  19588. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19589. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19590. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19591. fi
  19592. # Have a temporary directory for convenience. Make it in the build tree
  19593. # simply because there is no reason against having it here, and in addition,
  19594. # creating and moving files from /tmp can sometimes cause problems.
  19595. # Hook for its removal unless debugging.
  19596. # Note that there is a small window in which the directory will not be cleaned:
  19597. # after its creation but before its name has been assigned to `$tmp'.
  19598. $debug ||
  19599. {
  19600. tmp= ac_tmp=
  19601. trap 'exit_status=$?
  19602. : "${ac_tmp:=$tmp}"
  19603. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19604. ' 0
  19605. trap 'as_fn_exit 1' 1 2 13 15
  19606. }
  19607. # Create a (secure) tmp directory for tmp files.
  19608. {
  19609. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19610. test -d "$tmp"
  19611. } ||
  19612. {
  19613. tmp=./conf$$-$RANDOM
  19614. (umask 077 && mkdir "$tmp")
  19615. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19616. ac_tmp=$tmp
  19617. # Set up the scripts for CONFIG_FILES section.
  19618. # No need to generate them if there are no CONFIG_FILES.
  19619. # This happens for instance with `./config.status config.h'.
  19620. if test -n "$CONFIG_FILES"; then
  19621. ac_cr=`echo X | tr X '\015'`
  19622. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19623. # But we know of no other shell where ac_cr would be empty at this
  19624. # point, so we can use a bashism as a fallback.
  19625. if test "x$ac_cr" = x; then
  19626. eval ac_cr=\$\'\\r\'
  19627. fi
  19628. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19629. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19630. ac_cs_awk_cr='\\r'
  19631. else
  19632. ac_cs_awk_cr=$ac_cr
  19633. fi
  19634. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19635. _ACEOF
  19636. {
  19637. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19638. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19639. echo "_ACEOF"
  19640. } >conf$$subs.sh ||
  19641. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19642. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19643. ac_delim='%!_!# '
  19644. for ac_last_try in false false false false false :; do
  19645. . ./conf$$subs.sh ||
  19646. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19647. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19648. if test $ac_delim_n = $ac_delim_num; then
  19649. break
  19650. elif $ac_last_try; then
  19651. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19652. else
  19653. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19654. fi
  19655. done
  19656. rm -f conf$$subs.sh
  19657. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19658. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19659. _ACEOF
  19660. sed -n '
  19661. h
  19662. s/^/S["/; s/!.*/"]=/
  19663. p
  19664. g
  19665. s/^[^!]*!//
  19666. :repl
  19667. t repl
  19668. s/'"$ac_delim"'$//
  19669. t delim
  19670. :nl
  19671. h
  19672. s/\(.\{148\}\)..*/\1/
  19673. t more1
  19674. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19675. p
  19676. n
  19677. b repl
  19678. :more1
  19679. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19680. p
  19681. g
  19682. s/.\{148\}//
  19683. t nl
  19684. :delim
  19685. h
  19686. s/\(.\{148\}\)..*/\1/
  19687. t more2
  19688. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19689. p
  19690. b
  19691. :more2
  19692. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19693. p
  19694. g
  19695. s/.\{148\}//
  19696. t delim
  19697. ' <conf$$subs.awk | sed '
  19698. /^[^""]/{
  19699. N
  19700. s/\n//
  19701. }
  19702. ' >>$CONFIG_STATUS || ac_write_fail=1
  19703. rm -f conf$$subs.awk
  19704. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19705. _ACAWK
  19706. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19707. for (key in S) S_is_set[key] = 1
  19708. FS = ""
  19709. }
  19710. {
  19711. line = $ 0
  19712. nfields = split(line, field, "@")
  19713. substed = 0
  19714. len = length(field[1])
  19715. for (i = 2; i < nfields; i++) {
  19716. key = field[i]
  19717. keylen = length(key)
  19718. if (S_is_set[key]) {
  19719. value = S[key]
  19720. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19721. len += length(value) + length(field[++i])
  19722. substed = 1
  19723. } else
  19724. len += 1 + keylen
  19725. }
  19726. print line
  19727. }
  19728. _ACAWK
  19729. _ACEOF
  19730. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19731. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19732. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19733. else
  19734. cat
  19735. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19736. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19737. _ACEOF
  19738. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19739. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19740. # trailing colons and then remove the whole line if VPATH becomes empty
  19741. # (actually we leave an empty line to preserve line numbers).
  19742. if test "x$srcdir" = x.; then
  19743. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19744. h
  19745. s///
  19746. s/^/:/
  19747. s/[ ]*$/:/
  19748. s/:\$(srcdir):/:/g
  19749. s/:\${srcdir}:/:/g
  19750. s/:@srcdir@:/:/g
  19751. s/^:*//
  19752. s/:*$//
  19753. x
  19754. s/\(=[ ]*\).*/\1/
  19755. G
  19756. s/\n//
  19757. s/^[^=]*=[ ]*$//
  19758. }'
  19759. fi
  19760. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19761. fi # test -n "$CONFIG_FILES"
  19762. # Set up the scripts for CONFIG_HEADERS section.
  19763. # No need to generate them if there are no CONFIG_HEADERS.
  19764. # This happens for instance with `./config.status Makefile'.
  19765. if test -n "$CONFIG_HEADERS"; then
  19766. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19767. BEGIN {
  19768. _ACEOF
  19769. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19770. # here-document in config.status, that substitutes the proper values into
  19771. # config.h.in to produce config.h.
  19772. # Create a delimiter string that does not exist in confdefs.h, to ease
  19773. # handling of long lines.
  19774. ac_delim='%!_!# '
  19775. for ac_last_try in false false :; do
  19776. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19777. if test -z "$ac_tt"; then
  19778. break
  19779. elif $ac_last_try; then
  19780. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19781. else
  19782. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19783. fi
  19784. done
  19785. # For the awk script, D is an array of macro values keyed by name,
  19786. # likewise P contains macro parameters if any. Preserve backslash
  19787. # newline sequences.
  19788. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19789. sed -n '
  19790. s/.\{148\}/&'"$ac_delim"'/g
  19791. t rset
  19792. :rset
  19793. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19794. t def
  19795. d
  19796. :def
  19797. s/\\$//
  19798. t bsnl
  19799. s/["\\]/\\&/g
  19800. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19801. D["\1"]=" \3"/p
  19802. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19803. d
  19804. :bsnl
  19805. s/["\\]/\\&/g
  19806. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19807. D["\1"]=" \3\\\\\\n"\\/p
  19808. t cont
  19809. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19810. t cont
  19811. d
  19812. :cont
  19813. n
  19814. s/.\{148\}/&'"$ac_delim"'/g
  19815. t clear
  19816. :clear
  19817. s/\\$//
  19818. t bsnlc
  19819. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19820. d
  19821. :bsnlc
  19822. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19823. b cont
  19824. ' <confdefs.h | sed '
  19825. s/'"$ac_delim"'/"\\\
  19826. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19827. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19828. for (key in D) D_is_set[key] = 1
  19829. FS = ""
  19830. }
  19831. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19832. line = \$ 0
  19833. split(line, arg, " ")
  19834. if (arg[1] == "#") {
  19835. defundef = arg[2]
  19836. mac1 = arg[3]
  19837. } else {
  19838. defundef = substr(arg[1], 2)
  19839. mac1 = arg[2]
  19840. }
  19841. split(mac1, mac2, "(") #)
  19842. macro = mac2[1]
  19843. prefix = substr(line, 1, index(line, defundef) - 1)
  19844. if (D_is_set[macro]) {
  19845. # Preserve the white space surrounding the "#".
  19846. print prefix "define", macro P[macro] D[macro]
  19847. next
  19848. } else {
  19849. # Replace #undef with comments. This is necessary, for example,
  19850. # in the case of _POSIX_SOURCE, which is predefined and required
  19851. # on some systems where configure will not decide to define it.
  19852. if (defundef == "undef") {
  19853. print "/*", prefix defundef, macro, "*/"
  19854. next
  19855. }
  19856. }
  19857. }
  19858. { print }
  19859. _ACAWK
  19860. _ACEOF
  19861. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19862. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19863. fi # test -n "$CONFIG_HEADERS"
  19864. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19865. shift
  19866. for ac_tag
  19867. do
  19868. case $ac_tag in
  19869. :[FHLC]) ac_mode=$ac_tag; continue;;
  19870. esac
  19871. case $ac_mode$ac_tag in
  19872. :[FHL]*:*);;
  19873. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19874. :[FH]-) ac_tag=-:-;;
  19875. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19876. esac
  19877. ac_save_IFS=$IFS
  19878. IFS=:
  19879. set x $ac_tag
  19880. IFS=$ac_save_IFS
  19881. shift
  19882. ac_file=$1
  19883. shift
  19884. case $ac_mode in
  19885. :L) ac_source=$1;;
  19886. :[FH])
  19887. ac_file_inputs=
  19888. for ac_f
  19889. do
  19890. case $ac_f in
  19891. -) ac_f="$ac_tmp/stdin";;
  19892. *) # Look for the file first in the build tree, then in the source tree
  19893. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19894. # because $ac_f cannot contain `:'.
  19895. test -f "$ac_f" ||
  19896. case $ac_f in
  19897. [\\/$]*) false;;
  19898. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19899. esac ||
  19900. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19901. esac
  19902. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19903. as_fn_append ac_file_inputs " '$ac_f'"
  19904. done
  19905. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19906. # use $as_me), people would be surprised to read:
  19907. # /* config.h. Generated by config.status. */
  19908. configure_input='Generated from '`
  19909. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19910. `' by configure.'
  19911. if test x"$ac_file" != x-; then
  19912. configure_input="$ac_file. $configure_input"
  19913. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19914. $as_echo "$as_me: creating $ac_file" >&6;}
  19915. fi
  19916. # Neutralize special characters interpreted by sed in replacement strings.
  19917. case $configure_input in #(
  19918. *\&* | *\|* | *\\* )
  19919. ac_sed_conf_input=`$as_echo "$configure_input" |
  19920. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19921. *) ac_sed_conf_input=$configure_input;;
  19922. esac
  19923. case $ac_tag in
  19924. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19925. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19926. esac
  19927. ;;
  19928. esac
  19929. ac_dir=`$as_dirname -- "$ac_file" ||
  19930. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19931. X"$ac_file" : 'X\(//\)[^/]' \| \
  19932. X"$ac_file" : 'X\(//\)$' \| \
  19933. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19934. $as_echo X"$ac_file" |
  19935. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19936. s//\1/
  19937. q
  19938. }
  19939. /^X\(\/\/\)[^/].*/{
  19940. s//\1/
  19941. q
  19942. }
  19943. /^X\(\/\/\)$/{
  19944. s//\1/
  19945. q
  19946. }
  19947. /^X\(\/\).*/{
  19948. s//\1/
  19949. q
  19950. }
  19951. s/.*/./; q'`
  19952. as_dir="$ac_dir"; as_fn_mkdir_p
  19953. ac_builddir=.
  19954. case "$ac_dir" in
  19955. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19956. *)
  19957. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19958. # A ".." for each directory in $ac_dir_suffix.
  19959. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19960. case $ac_top_builddir_sub in
  19961. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19962. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19963. esac ;;
  19964. esac
  19965. ac_abs_top_builddir=$ac_pwd
  19966. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19967. # for backward compatibility:
  19968. ac_top_builddir=$ac_top_build_prefix
  19969. case $srcdir in
  19970. .) # We are building in place.
  19971. ac_srcdir=.
  19972. ac_top_srcdir=$ac_top_builddir_sub
  19973. ac_abs_top_srcdir=$ac_pwd ;;
  19974. [\\/]* | ?:[\\/]* ) # Absolute name.
  19975. ac_srcdir=$srcdir$ac_dir_suffix;
  19976. ac_top_srcdir=$srcdir
  19977. ac_abs_top_srcdir=$srcdir ;;
  19978. *) # Relative name.
  19979. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19980. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19981. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19982. esac
  19983. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19984. case $ac_mode in
  19985. :F)
  19986. #
  19987. # CONFIG_FILE
  19988. #
  19989. case $INSTALL in
  19990. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19991. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19992. esac
  19993. ac_MKDIR_P=$MKDIR_P
  19994. case $MKDIR_P in
  19995. [\\/$]* | ?:[\\/]* ) ;;
  19996. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19997. esac
  19998. _ACEOF
  19999. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20000. # If the template does not know about datarootdir, expand it.
  20001. # FIXME: This hack should be removed a few years after 2.60.
  20002. ac_datarootdir_hack=; ac_datarootdir_seen=
  20003. ac_sed_dataroot='
  20004. /datarootdir/ {
  20005. p
  20006. q
  20007. }
  20008. /@datadir@/p
  20009. /@docdir@/p
  20010. /@infodir@/p
  20011. /@localedir@/p
  20012. /@mandir@/p'
  20013. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20014. *datarootdir*) ac_datarootdir_seen=yes;;
  20015. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20017. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20018. _ACEOF
  20019. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20020. ac_datarootdir_hack='
  20021. s&@datadir@&$datadir&g
  20022. s&@docdir@&$docdir&g
  20023. s&@infodir@&$infodir&g
  20024. s&@localedir@&$localedir&g
  20025. s&@mandir@&$mandir&g
  20026. s&\\\${datarootdir}&$datarootdir&g' ;;
  20027. esac
  20028. _ACEOF
  20029. # Neutralize VPATH when `$srcdir' = `.'.
  20030. # Shell code in configure.ac might set extrasub.
  20031. # FIXME: do we really want to maintain this feature?
  20032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20033. ac_sed_extra="$ac_vpsub
  20034. $extrasub
  20035. _ACEOF
  20036. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20037. :t
  20038. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20039. s|@configure_input@|$ac_sed_conf_input|;t t
  20040. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20041. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20042. s&@srcdir@&$ac_srcdir&;t t
  20043. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20044. s&@top_srcdir@&$ac_top_srcdir&;t t
  20045. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20046. s&@builddir@&$ac_builddir&;t t
  20047. s&@abs_builddir@&$ac_abs_builddir&;t t
  20048. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20049. s&@INSTALL@&$ac_INSTALL&;t t
  20050. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20051. $ac_datarootdir_hack
  20052. "
  20053. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  20054. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20055. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20056. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  20057. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  20058. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  20059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20060. which seems to be undefined. Please make sure it is defined" >&5
  20061. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20062. which seems to be undefined. Please make sure it is defined" >&2;}
  20063. rm -f "$ac_tmp/stdin"
  20064. case $ac_file in
  20065. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  20066. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  20067. esac \
  20068. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20069. ;;
  20070. :H)
  20071. #
  20072. # CONFIG_HEADER
  20073. #
  20074. if test x"$ac_file" != x-; then
  20075. {
  20076. $as_echo "/* $configure_input */" \
  20077. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  20078. } >"$ac_tmp/config.h" \
  20079. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20080. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  20081. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20082. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20083. else
  20084. rm -f "$ac_file"
  20085. mv "$ac_tmp/config.h" "$ac_file" \
  20086. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20087. fi
  20088. else
  20089. $as_echo "/* $configure_input */" \
  20090. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20091. || as_fn_error $? "could not create -" "$LINENO" 5
  20092. fi
  20093. # Compute "$ac_file"'s index in $config_headers.
  20094. _am_arg="$ac_file"
  20095. _am_stamp_count=1
  20096. for _am_header in $config_headers :; do
  20097. case $_am_header in
  20098. $_am_arg | $_am_arg:* )
  20099. break ;;
  20100. * )
  20101. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20102. esac
  20103. done
  20104. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20105. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20106. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20107. X"$_am_arg" : 'X\(//\)$' \| \
  20108. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20109. $as_echo X"$_am_arg" |
  20110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20111. s//\1/
  20112. q
  20113. }
  20114. /^X\(\/\/\)[^/].*/{
  20115. s//\1/
  20116. q
  20117. }
  20118. /^X\(\/\/\)$/{
  20119. s//\1/
  20120. q
  20121. }
  20122. /^X\(\/\).*/{
  20123. s//\1/
  20124. q
  20125. }
  20126. s/.*/./; q'`/stamp-h$_am_stamp_count
  20127. ;;
  20128. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20129. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20130. ;;
  20131. esac
  20132. case $ac_file$ac_mode in
  20133. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20134. # Older Autoconf quotes --file arguments for eval, but not when files
  20135. # are listed without --file. Let's play safe and only enable the eval
  20136. # if we detect the quoting.
  20137. case $CONFIG_FILES in
  20138. *\'*) eval set x "$CONFIG_FILES" ;;
  20139. *) set x $CONFIG_FILES ;;
  20140. esac
  20141. shift
  20142. for mf
  20143. do
  20144. # Strip MF so we end up with the name of the file.
  20145. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20146. # Check whether this is an Automake generated Makefile or not.
  20147. # We used to match only the files named 'Makefile.in', but
  20148. # some people rename them; so instead we look at the file content.
  20149. # Grep'ing the first line is not enough: some people post-process
  20150. # each Makefile.in and add a new line on top of each file to say so.
  20151. # Grep'ing the whole file is not good either: AIX grep has a line
  20152. # limit of 2048, but all sed's we know have understand at least 4000.
  20153. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20154. dirpart=`$as_dirname -- "$mf" ||
  20155. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20156. X"$mf" : 'X\(//\)[^/]' \| \
  20157. X"$mf" : 'X\(//\)$' \| \
  20158. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20159. $as_echo X"$mf" |
  20160. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20161. s//\1/
  20162. q
  20163. }
  20164. /^X\(\/\/\)[^/].*/{
  20165. s//\1/
  20166. q
  20167. }
  20168. /^X\(\/\/\)$/{
  20169. s//\1/
  20170. q
  20171. }
  20172. /^X\(\/\).*/{
  20173. s//\1/
  20174. q
  20175. }
  20176. s/.*/./; q'`
  20177. else
  20178. continue
  20179. fi
  20180. # Extract the definition of DEPDIR, am__include, and am__quote
  20181. # from the Makefile without running 'make'.
  20182. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20183. test -z "$DEPDIR" && continue
  20184. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20185. test -z "$am__include" && continue
  20186. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20187. # Find all dependency output files, they are included files with
  20188. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20189. # simplest approach to changing $(DEPDIR) to its actual value in the
  20190. # expansion.
  20191. for file in `sed -n "
  20192. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20193. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  20194. # Make sure the directory exists.
  20195. test -f "$dirpart/$file" && continue
  20196. fdir=`$as_dirname -- "$file" ||
  20197. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20198. X"$file" : 'X\(//\)[^/]' \| \
  20199. X"$file" : 'X\(//\)$' \| \
  20200. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20201. $as_echo X"$file" |
  20202. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20203. s//\1/
  20204. q
  20205. }
  20206. /^X\(\/\/\)[^/].*/{
  20207. s//\1/
  20208. q
  20209. }
  20210. /^X\(\/\/\)$/{
  20211. s//\1/
  20212. q
  20213. }
  20214. /^X\(\/\).*/{
  20215. s//\1/
  20216. q
  20217. }
  20218. s/.*/./; q'`
  20219. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20220. # echo "creating $dirpart/$file"
  20221. echo '# dummy' > "$dirpart/$file"
  20222. done
  20223. done
  20224. }
  20225. ;;
  20226. "libtool":C)
  20227. # See if we are running on zsh, and set the options which allow our
  20228. # commands through without removal of \ escapes.
  20229. if test -n "${ZSH_VERSION+set}" ; then
  20230. setopt NO_GLOB_SUBST
  20231. fi
  20232. cfgfile="${ofile}T"
  20233. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20234. $RM "$cfgfile"
  20235. cat <<_LT_EOF >> "$cfgfile"
  20236. #! $SHELL
  20237. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20238. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20239. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20240. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20241. #
  20242. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20243. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20244. # Foundation, Inc.
  20245. # Written by Gordon Matzigkeit, 1996
  20246. #
  20247. # This file is part of GNU Libtool.
  20248. #
  20249. # GNU Libtool is free software; you can redistribute it and/or
  20250. # modify it under the terms of the GNU General Public License as
  20251. # published by the Free Software Foundation; either version 2 of
  20252. # the License, or (at your option) any later version.
  20253. #
  20254. # As a special exception to the GNU General Public License,
  20255. # if you distribute this file as part of a program or library that
  20256. # is built using GNU Libtool, you may include this file under the
  20257. # same distribution terms that you use for the rest of that program.
  20258. #
  20259. # GNU Libtool is distributed in the hope that it will be useful,
  20260. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20261. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20262. # GNU General Public License for more details.
  20263. #
  20264. # You should have received a copy of the GNU General Public License
  20265. # along with GNU Libtool; see the file COPYING. If not, a copy
  20266. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20267. # obtained by writing to the Free Software Foundation, Inc.,
  20268. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20269. # The names of the tagged configurations supported by this script.
  20270. available_tags="CXX "
  20271. # ### BEGIN LIBTOOL CONFIG
  20272. # Whether or not to build static libraries.
  20273. build_old_libs=$enable_static
  20274. # Which release of libtool.m4 was used?
  20275. macro_version=$macro_version
  20276. macro_revision=$macro_revision
  20277. # Whether or not to build shared libraries.
  20278. build_libtool_libs=$enable_shared
  20279. # What type of objects to build.
  20280. pic_mode=$pic_mode
  20281. # Whether or not to optimize for fast installation.
  20282. fast_install=$enable_fast_install
  20283. # Shell to use when invoking shell scripts.
  20284. SHELL=$lt_SHELL
  20285. # An echo program that protects backslashes.
  20286. ECHO=$lt_ECHO
  20287. # The PATH separator for the build system.
  20288. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20289. # The host system.
  20290. host_alias=$host_alias
  20291. host=$host
  20292. host_os=$host_os
  20293. # The build system.
  20294. build_alias=$build_alias
  20295. build=$build
  20296. build_os=$build_os
  20297. # A sed program that does not truncate output.
  20298. SED=$lt_SED
  20299. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20300. Xsed="\$SED -e 1s/^X//"
  20301. # A grep program that handles long lines.
  20302. GREP=$lt_GREP
  20303. # An ERE matcher.
  20304. EGREP=$lt_EGREP
  20305. # A literal string matcher.
  20306. FGREP=$lt_FGREP
  20307. # A BSD- or MS-compatible name lister.
  20308. NM=$lt_NM
  20309. # Whether we need soft or hard links.
  20310. LN_S=$lt_LN_S
  20311. # What is the maximum length of a command?
  20312. max_cmd_len=$max_cmd_len
  20313. # Object file suffix (normally "o").
  20314. objext=$ac_objext
  20315. # Executable file suffix (normally "").
  20316. exeext=$exeext
  20317. # whether the shell understands "unset".
  20318. lt_unset=$lt_unset
  20319. # turn spaces into newlines.
  20320. SP2NL=$lt_lt_SP2NL
  20321. # turn newlines into spaces.
  20322. NL2SP=$lt_lt_NL2SP
  20323. # convert \$build file names to \$host format.
  20324. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20325. # convert \$build files to toolchain format.
  20326. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20327. # An object symbol dumper.
  20328. OBJDUMP=$lt_OBJDUMP
  20329. # Method to check whether dependent libraries are shared objects.
  20330. deplibs_check_method=$lt_deplibs_check_method
  20331. # Command to use when deplibs_check_method = "file_magic".
  20332. file_magic_cmd=$lt_file_magic_cmd
  20333. # How to find potential files when deplibs_check_method = "file_magic".
  20334. file_magic_glob=$lt_file_magic_glob
  20335. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20336. want_nocaseglob=$lt_want_nocaseglob
  20337. # DLL creation program.
  20338. DLLTOOL=$lt_DLLTOOL
  20339. # Command to associate shared and link libraries.
  20340. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20341. # The archiver.
  20342. AR=$lt_AR
  20343. # Flags to create an archive.
  20344. AR_FLAGS=$lt_AR_FLAGS
  20345. # How to feed a file listing to the archiver.
  20346. archiver_list_spec=$lt_archiver_list_spec
  20347. # A symbol stripping program.
  20348. STRIP=$lt_STRIP
  20349. # Commands used to install an old-style archive.
  20350. RANLIB=$lt_RANLIB
  20351. old_postinstall_cmds=$lt_old_postinstall_cmds
  20352. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20353. # Whether to use a lock for old archive extraction.
  20354. lock_old_archive_extraction=$lock_old_archive_extraction
  20355. # A C compiler.
  20356. LTCC=$lt_CC
  20357. # LTCC compiler flags.
  20358. LTCFLAGS=$lt_CFLAGS
  20359. # Take the output of nm and produce a listing of raw symbols and C names.
  20360. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20361. # Transform the output of nm in a proper C declaration.
  20362. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20363. # Transform the output of nm in a C name address pair.
  20364. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20365. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20366. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20367. # Specify filename containing input files for \$NM.
  20368. nm_file_list_spec=$lt_nm_file_list_spec
  20369. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20370. lt_sysroot=$lt_sysroot
  20371. # The name of the directory that contains temporary libtool files.
  20372. objdir=$objdir
  20373. # Used to examine libraries when file_magic_cmd begins with "file".
  20374. MAGIC_CMD=$MAGIC_CMD
  20375. # Must we lock files when doing compilation?
  20376. need_locks=$lt_need_locks
  20377. # Manifest tool.
  20378. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20379. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20380. DSYMUTIL=$lt_DSYMUTIL
  20381. # Tool to change global to local symbols on Mac OS X.
  20382. NMEDIT=$lt_NMEDIT
  20383. # Tool to manipulate fat objects and archives on Mac OS X.
  20384. LIPO=$lt_LIPO
  20385. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20386. OTOOL=$lt_OTOOL
  20387. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20388. OTOOL64=$lt_OTOOL64
  20389. # Old archive suffix (normally "a").
  20390. libext=$libext
  20391. # Shared library suffix (normally ".so").
  20392. shrext_cmds=$lt_shrext_cmds
  20393. # The commands to extract the exported symbol list from a shared archive.
  20394. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20395. # Variables whose values should be saved in libtool wrapper scripts and
  20396. # restored at link time.
  20397. variables_saved_for_relink=$lt_variables_saved_for_relink
  20398. # Do we need the "lib" prefix for modules?
  20399. need_lib_prefix=$need_lib_prefix
  20400. # Do we need a version for libraries?
  20401. need_version=$need_version
  20402. # Library versioning type.
  20403. version_type=$version_type
  20404. # Shared library runtime path variable.
  20405. runpath_var=$runpath_var
  20406. # Shared library path variable.
  20407. shlibpath_var=$shlibpath_var
  20408. # Is shlibpath searched before the hard-coded library search path?
  20409. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20410. # Format of library name prefix.
  20411. libname_spec=$lt_libname_spec
  20412. # List of archive names. First name is the real one, the rest are links.
  20413. # The last name is the one that the linker finds with -lNAME
  20414. library_names_spec=$lt_library_names_spec
  20415. # The coded name of the library, if different from the real name.
  20416. soname_spec=$lt_soname_spec
  20417. # Permission mode override for installation of shared libraries.
  20418. install_override_mode=$lt_install_override_mode
  20419. # Command to use after installation of a shared archive.
  20420. postinstall_cmds=$lt_postinstall_cmds
  20421. # Command to use after uninstallation of a shared archive.
  20422. postuninstall_cmds=$lt_postuninstall_cmds
  20423. # Commands used to finish a libtool library installation in a directory.
  20424. finish_cmds=$lt_finish_cmds
  20425. # As "finish_cmds", except a single script fragment to be evaled but
  20426. # not shown.
  20427. finish_eval=$lt_finish_eval
  20428. # Whether we should hardcode library paths into libraries.
  20429. hardcode_into_libs=$hardcode_into_libs
  20430. # Compile-time system search path for libraries.
  20431. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20432. # Run-time system search path for libraries.
  20433. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20434. # Whether dlopen is supported.
  20435. dlopen_support=$enable_dlopen
  20436. # Whether dlopen of programs is supported.
  20437. dlopen_self=$enable_dlopen_self
  20438. # Whether dlopen of statically linked programs is supported.
  20439. dlopen_self_static=$enable_dlopen_self_static
  20440. # Commands to strip libraries.
  20441. old_striplib=$lt_old_striplib
  20442. striplib=$lt_striplib
  20443. # The linker used to build libraries.
  20444. LD=$lt_LD
  20445. # How to create reloadable object files.
  20446. reload_flag=$lt_reload_flag
  20447. reload_cmds=$lt_reload_cmds
  20448. # Commands used to build an old-style archive.
  20449. old_archive_cmds=$lt_old_archive_cmds
  20450. # A language specific compiler.
  20451. CC=$lt_compiler
  20452. # Is the compiler the GNU compiler?
  20453. with_gcc=$GCC
  20454. # Compiler flag to turn off builtin functions.
  20455. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20456. # Additional compiler flags for building library objects.
  20457. pic_flag=$lt_lt_prog_compiler_pic
  20458. # How to pass a linker flag through the compiler.
  20459. wl=$lt_lt_prog_compiler_wl
  20460. # Compiler flag to prevent dynamic linking.
  20461. link_static_flag=$lt_lt_prog_compiler_static
  20462. # Does compiler simultaneously support -c and -o options?
  20463. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20464. # Whether or not to add -lc for building shared libraries.
  20465. build_libtool_need_lc=$archive_cmds_need_lc
  20466. # Whether or not to disallow shared libs when runtime libs are static.
  20467. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20468. # Compiler flag to allow reflexive dlopens.
  20469. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20470. # Compiler flag to generate shared objects directly from archives.
  20471. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20472. # Whether the compiler copes with passing no objects directly.
  20473. compiler_needs_object=$lt_compiler_needs_object
  20474. # Create an old-style archive from a shared archive.
  20475. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20476. # Create a temporary old-style archive to link instead of a shared archive.
  20477. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20478. # Commands used to build a shared archive.
  20479. archive_cmds=$lt_archive_cmds
  20480. archive_expsym_cmds=$lt_archive_expsym_cmds
  20481. # Commands used to build a loadable module if different from building
  20482. # a shared archive.
  20483. module_cmds=$lt_module_cmds
  20484. module_expsym_cmds=$lt_module_expsym_cmds
  20485. # Whether we are building with GNU ld or not.
  20486. with_gnu_ld=$lt_with_gnu_ld
  20487. # Flag that allows shared libraries with undefined symbols to be built.
  20488. allow_undefined_flag=$lt_allow_undefined_flag
  20489. # Flag that enforces no undefined symbols.
  20490. no_undefined_flag=$lt_no_undefined_flag
  20491. # Flag to hardcode \$libdir into a binary during linking.
  20492. # This must work even if \$libdir does not exist
  20493. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20494. # Whether we need a single "-rpath" flag with a separated argument.
  20495. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20496. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20497. # DIR into the resulting binary.
  20498. hardcode_direct=$hardcode_direct
  20499. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20500. # DIR into the resulting binary and the resulting library dependency is
  20501. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20502. # library is relocated.
  20503. hardcode_direct_absolute=$hardcode_direct_absolute
  20504. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20505. # into the resulting binary.
  20506. hardcode_minus_L=$hardcode_minus_L
  20507. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20508. # into the resulting binary.
  20509. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20510. # Set to "yes" if building a shared library automatically hardcodes DIR
  20511. # into the library and all subsequent libraries and executables linked
  20512. # against it.
  20513. hardcode_automatic=$hardcode_automatic
  20514. # Set to yes if linker adds runtime paths of dependent libraries
  20515. # to runtime path list.
  20516. inherit_rpath=$inherit_rpath
  20517. # Whether libtool must link a program against all its dependency libraries.
  20518. link_all_deplibs=$link_all_deplibs
  20519. # Set to "yes" if exported symbols are required.
  20520. always_export_symbols=$always_export_symbols
  20521. # The commands to list exported symbols.
  20522. export_symbols_cmds=$lt_export_symbols_cmds
  20523. # Symbols that should not be listed in the preloaded symbols.
  20524. exclude_expsyms=$lt_exclude_expsyms
  20525. # Symbols that must always be exported.
  20526. include_expsyms=$lt_include_expsyms
  20527. # Commands necessary for linking programs (against libraries) with templates.
  20528. prelink_cmds=$lt_prelink_cmds
  20529. # Commands necessary for finishing linking programs.
  20530. postlink_cmds=$lt_postlink_cmds
  20531. # Specify filename containing input files.
  20532. file_list_spec=$lt_file_list_spec
  20533. # How to hardcode a shared library path into an executable.
  20534. hardcode_action=$hardcode_action
  20535. # The directories searched by this compiler when creating a shared library.
  20536. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20537. # Dependencies to place before and after the objects being linked to
  20538. # create a shared library.
  20539. predep_objects=$lt_predep_objects
  20540. postdep_objects=$lt_postdep_objects
  20541. predeps=$lt_predeps
  20542. postdeps=$lt_postdeps
  20543. # The library search path used internally by the compiler when linking
  20544. # a shared library.
  20545. compiler_lib_search_path=$lt_compiler_lib_search_path
  20546. # ### END LIBTOOL CONFIG
  20547. _LT_EOF
  20548. case $host_os in
  20549. aix3*)
  20550. cat <<\_LT_EOF >> "$cfgfile"
  20551. # AIX sometimes has problems with the GCC collect2 program. For some
  20552. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20553. # vanish in a puff of smoke.
  20554. if test "X${COLLECT_NAMES+set}" != Xset; then
  20555. COLLECT_NAMES=
  20556. export COLLECT_NAMES
  20557. fi
  20558. _LT_EOF
  20559. ;;
  20560. esac
  20561. ltmain="$ac_aux_dir/ltmain.sh"
  20562. # We use sed instead of cat because bash on DJGPP gets confused if
  20563. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20564. # text mode, it properly converts lines to CR/LF. This bash problem
  20565. # is reportedly fixed, but why not run on old versions too?
  20566. sed '$q' "$ltmain" >> "$cfgfile" \
  20567. || (rm -f "$cfgfile"; exit 1)
  20568. if test x"$xsi_shell" = xyes; then
  20569. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20570. func_dirname ()\
  20571. {\
  20572. \ case ${1} in\
  20573. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20574. \ * ) func_dirname_result="${3}" ;;\
  20575. \ esac\
  20576. } # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\
  20581. func_basename ()\
  20582. {\
  20583. \ func_basename_result="${1##*/}"\
  20584. } # Extended-shell func_basename 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. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20589. func_dirname_and_basename ()\
  20590. {\
  20591. \ case ${1} in\
  20592. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20593. \ * ) func_dirname_result="${3}" ;;\
  20594. \ esac\
  20595. \ func_basename_result="${1##*/}"\
  20596. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20597. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20598. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20599. test 0 -eq $? || _lt_function_replace_fail=:
  20600. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20601. func_stripname ()\
  20602. {\
  20603. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20604. \ # positional parameters, so assign one to ordinary parameter first.\
  20605. \ func_stripname_result=${3}\
  20606. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20607. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20608. } # Extended-shell func_stripname implementation' "$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. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20613. func_split_long_opt ()\
  20614. {\
  20615. \ func_split_long_opt_name=${1%%=*}\
  20616. \ func_split_long_opt_arg=${1#*=}\
  20617. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20618. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20619. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20620. test 0 -eq $? || _lt_function_replace_fail=:
  20621. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20622. func_split_short_opt ()\
  20623. {\
  20624. \ func_split_short_opt_arg=${1#??}\
  20625. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20626. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20627. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20628. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20629. test 0 -eq $? || _lt_function_replace_fail=:
  20630. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20631. func_lo2o ()\
  20632. {\
  20633. \ case ${1} in\
  20634. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20635. \ *) func_lo2o_result=${1} ;;\
  20636. \ esac\
  20637. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20638. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20639. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20640. test 0 -eq $? || _lt_function_replace_fail=:
  20641. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20642. func_xform ()\
  20643. {\
  20644. func_xform_result=${1%.*}.lo\
  20645. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20646. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20647. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20648. test 0 -eq $? || _lt_function_replace_fail=:
  20649. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20650. func_arith ()\
  20651. {\
  20652. func_arith_result=$(( $* ))\
  20653. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20654. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20655. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20656. test 0 -eq $? || _lt_function_replace_fail=:
  20657. sed -e '/^func_len ()$/,/^} # func_len /c\
  20658. func_len ()\
  20659. {\
  20660. func_len_result=${#1}\
  20661. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20662. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20663. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20664. test 0 -eq $? || _lt_function_replace_fail=:
  20665. fi
  20666. if test x"$lt_shell_append" = xyes; then
  20667. sed -e '/^func_append ()$/,/^} # func_append /c\
  20668. func_append ()\
  20669. {\
  20670. eval "${1}+=\\${2}"\
  20671. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20672. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20673. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20674. test 0 -eq $? || _lt_function_replace_fail=:
  20675. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20676. func_append_quoted ()\
  20677. {\
  20678. \ func_quote_for_eval "${2}"\
  20679. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20680. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20681. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20682. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20683. test 0 -eq $? || _lt_function_replace_fail=:
  20684. # Save a `func_append' function call where possible by direct use of '+='
  20685. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20686. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20687. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20688. test 0 -eq $? || _lt_function_replace_fail=:
  20689. else
  20690. # Save a `func_append' function call even when '+=' is not available
  20691. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20692. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20693. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20694. test 0 -eq $? || _lt_function_replace_fail=:
  20695. fi
  20696. if test x"$_lt_function_replace_fail" = x":"; then
  20697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20698. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20699. fi
  20700. mv -f "$cfgfile" "$ofile" ||
  20701. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20702. chmod +x "$ofile"
  20703. cat <<_LT_EOF >> "$ofile"
  20704. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20705. # The linker used to build libraries.
  20706. LD=$lt_LD_CXX
  20707. # How to create reloadable object files.
  20708. reload_flag=$lt_reload_flag_CXX
  20709. reload_cmds=$lt_reload_cmds_CXX
  20710. # Commands used to build an old-style archive.
  20711. old_archive_cmds=$lt_old_archive_cmds_CXX
  20712. # A language specific compiler.
  20713. CC=$lt_compiler_CXX
  20714. # Is the compiler the GNU compiler?
  20715. with_gcc=$GCC_CXX
  20716. # Compiler flag to turn off builtin functions.
  20717. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20718. # Additional compiler flags for building library objects.
  20719. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20720. # How to pass a linker flag through the compiler.
  20721. wl=$lt_lt_prog_compiler_wl_CXX
  20722. # Compiler flag to prevent dynamic linking.
  20723. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20724. # Does compiler simultaneously support -c and -o options?
  20725. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20726. # Whether or not to add -lc for building shared libraries.
  20727. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20728. # Whether or not to disallow shared libs when runtime libs are static.
  20729. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20730. # Compiler flag to allow reflexive dlopens.
  20731. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20732. # Compiler flag to generate shared objects directly from archives.
  20733. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20734. # Whether the compiler copes with passing no objects directly.
  20735. compiler_needs_object=$lt_compiler_needs_object_CXX
  20736. # Create an old-style archive from a shared archive.
  20737. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20738. # Create a temporary old-style archive to link instead of a shared archive.
  20739. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20740. # Commands used to build a shared archive.
  20741. archive_cmds=$lt_archive_cmds_CXX
  20742. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20743. # Commands used to build a loadable module if different from building
  20744. # a shared archive.
  20745. module_cmds=$lt_module_cmds_CXX
  20746. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20747. # Whether we are building with GNU ld or not.
  20748. with_gnu_ld=$lt_with_gnu_ld_CXX
  20749. # Flag that allows shared libraries with undefined symbols to be built.
  20750. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20751. # Flag that enforces no undefined symbols.
  20752. no_undefined_flag=$lt_no_undefined_flag_CXX
  20753. # Flag to hardcode \$libdir into a binary during linking.
  20754. # This must work even if \$libdir does not exist
  20755. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20756. # Whether we need a single "-rpath" flag with a separated argument.
  20757. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20758. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20759. # DIR into the resulting binary.
  20760. hardcode_direct=$hardcode_direct_CXX
  20761. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20762. # DIR into the resulting binary and the resulting library dependency is
  20763. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20764. # library is relocated.
  20765. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20766. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20767. # into the resulting binary.
  20768. hardcode_minus_L=$hardcode_minus_L_CXX
  20769. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20770. # into the resulting binary.
  20771. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20772. # Set to "yes" if building a shared library automatically hardcodes DIR
  20773. # into the library and all subsequent libraries and executables linked
  20774. # against it.
  20775. hardcode_automatic=$hardcode_automatic_CXX
  20776. # Set to yes if linker adds runtime paths of dependent libraries
  20777. # to runtime path list.
  20778. inherit_rpath=$inherit_rpath_CXX
  20779. # Whether libtool must link a program against all its dependency libraries.
  20780. link_all_deplibs=$link_all_deplibs_CXX
  20781. # Set to "yes" if exported symbols are required.
  20782. always_export_symbols=$always_export_symbols_CXX
  20783. # The commands to list exported symbols.
  20784. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20785. # Symbols that should not be listed in the preloaded symbols.
  20786. exclude_expsyms=$lt_exclude_expsyms_CXX
  20787. # Symbols that must always be exported.
  20788. include_expsyms=$lt_include_expsyms_CXX
  20789. # Commands necessary for linking programs (against libraries) with templates.
  20790. prelink_cmds=$lt_prelink_cmds_CXX
  20791. # Commands necessary for finishing linking programs.
  20792. postlink_cmds=$lt_postlink_cmds_CXX
  20793. # Specify filename containing input files.
  20794. file_list_spec=$lt_file_list_spec_CXX
  20795. # How to hardcode a shared library path into an executable.
  20796. hardcode_action=$hardcode_action_CXX
  20797. # The directories searched by this compiler when creating a shared library.
  20798. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20799. # Dependencies to place before and after the objects being linked to
  20800. # create a shared library.
  20801. predep_objects=$lt_predep_objects_CXX
  20802. postdep_objects=$lt_postdep_objects_CXX
  20803. predeps=$lt_predeps_CXX
  20804. postdeps=$lt_postdeps_CXX
  20805. # The library search path used internally by the compiler when linking
  20806. # a shared library.
  20807. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20808. # ### END LIBTOOL TAG CONFIG: CXX
  20809. _LT_EOF
  20810. ;;
  20811. esac
  20812. done # for ac_tag
  20813. as_fn_exit 0
  20814. _ACEOF
  20815. ac_clean_files=$ac_clean_files_save
  20816. test $ac_write_fail = 0 ||
  20817. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20818. # configure is writing to config.log, and then calls config.status.
  20819. # config.status does its own redirection, appending to config.log.
  20820. # Unfortunately, on DOS this fails, as config.log is still kept open
  20821. # by configure, so config.status won't be able to write to it; its
  20822. # output is simply discarded. So we exec the FD to /dev/null,
  20823. # effectively closing config.log, so it can be properly (re)opened and
  20824. # appended to by config.status. When coming back to configure, we
  20825. # need to make the FD available again.
  20826. if test "$no_create" != yes; then
  20827. ac_cs_success=:
  20828. ac_config_status_args=
  20829. test "$silent" = yes &&
  20830. ac_config_status_args="$ac_config_status_args --quiet"
  20831. exec 5>/dev/null
  20832. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20833. exec 5>>config.log
  20834. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20835. # would make configure fail if this is the last instruction.
  20836. $ac_cs_success || as_fn_exit 1
  20837. fi
  20838. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20839. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20840. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20841. fi